:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --surface-dark: #060b14;
  --text: #09111f;
  --muted: #68748b;
  --line: #d8e2f0;
  --accent: #0f63ff;
  --accent-strong: #0a44b5;
  --accent-soft: #dce9ff;
  --green: #16b66e;
  --red: #dc4b4b;
  --orange: #ff9c2a;
  --shadow: 0 20px 55px rgba(11, 23, 45, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

/* ZTX LUCK AGENT V22 */
.ztx-luck-page-v22 {
  min-height: calc(100vh - 112px);
  padding: 12px 26px 22px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
}

.ztx-luck-shell-v22 {
  width: min(100%, 1380px);
  margin: 0 auto;
  min-height: calc(100vh - 138px);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.ztx-luck-head-v22 {
  padding: 8px 58px 14px;
}

.ztx-luck-head-profile-v22 {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ztx-luck-avatar-v22 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(214, 162, 42, 0.46);
  box-shadow: 0 16px 34px rgba(191, 138, 27, 0.18);
  object-fit: cover;
  background: #fffaf0;
}

.ztx-luck-title-row-v22 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ztx-luck-title-row-v22 h2 {
  margin: 0;
  font-size: clamp(2rem, 2.3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #141b2d;
  font-weight: 800;
}

.ztx-luck-live-v22 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-size: 0.98rem;
  font-weight: 700;
}

.ztx-luck-live-v22 i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.ztx-luck-divider-v22 {
  height: 1px;
  margin: 0 58px;
  background: rgba(15, 23, 42, 0.09);
}

.ztx-luck-thread-v22 {
  flex: 1;
  overflow-y: auto;
  padding: 18px 58px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ztx-luck-message-v22 {
  display: flex;
  width: 100%;
}

.ztx-luck-message-v22.is-assistant {
  justify-content: flex-start;
  padding-left: 34px;
}

.ztx-luck-message-v22.is-user {
  justify-content: flex-end;
  padding-right: 24px;
}

.ztx-luck-bubble-v22 {
  position: relative;
  max-width: min(34%, 396px);
  min-width: 0;
  padding: 18px 22px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.68;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.ztx-luck-message-v22.is-assistant .ztx-luck-bubble-v22 {
  background: linear-gradient(135deg, #d39b20 0%, #e1b13a 100%);
  color: #ffffff;
  border-top-left-radius: 8px;
}

.ztx-luck-message-v22.is-user .ztx-luck-bubble-v22 {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(207, 216, 228, 0.9);
  border-top-right-radius: 8px;
  box-shadow: none;
}

.ztx-luck-message-v22.is-system .ztx-luck-bubble-v22 {
  background: linear-gradient(135deg, #d39b20 0%, #e1b13a 100%);
  color: #ffffff;
  border: 0;
}

.ztx-luck-message-v22.is-assistant .ztx-luck-bubble-v22::after,
.ztx-luck-message-v22.is-user .ztx-luck-bubble-v22::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
}

.ztx-luck-message-v22.is-assistant .ztx-luck-bubble-v22::after {
  left: -5px;
  border-right: 16px solid #d39b20;
  border-bottom: 16px solid transparent;
}

.ztx-luck-message-v22.is-user .ztx-luck-bubble-v22::after {
  right: -5px;
  border-left: 16px solid #ffffff;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(1px 0 0 rgba(207, 216, 228, 0.8));
}

.ztx-luck-bubble-content-v22 {
  white-space: pre-wrap;
  word-break: break-word;
}

.ztx-luck-status-note-v22 {
  margin: 14px 58px 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(207, 216, 228, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #667085;
  font-size: 0.96rem;
  line-height: 1.5;
}

.ztx-luck-typing-v22 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ztx-luck-typing-v22 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: ztx-luck-dot 1s infinite ease-in-out;
}

.ztx-luck-typing-v22 i:nth-child(2) {
  animation-delay: 0.15s;
}

.ztx-luck-typing-v22 i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ztx-luck-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ztx-luck-composer-v22 {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  padding: 18px 58px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 28%, rgba(255,255,255,1) 100%);
}

.ztx-luck-attach-v22,
.ztx-luck-send-v22 {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(222, 226, 235, 0.95);
  background: #ffffff;
  color: #111827;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ztx-luck-send-v22 {
  border-color: rgba(191, 138, 27, 0.16);
  background: linear-gradient(135deg, #cf9a28 0%, #e3b340 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(191, 138, 27, 0.18);
}

.ztx-luck-attach-v22:hover,
.ztx-luck-send-v22:hover {
  transform: translateY(-1px);
}

.ztx-luck-input-v22 {
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(222, 226, 235, 0.95);
  padding: 0 16px;
  font-size: 1rem;
  color: #111827;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ztx-luck-input-v22::placeholder {
  color: #98a2b3;
}

.ztx-luck-input-v22:focus,
.ztx-luck-attach-v22:focus,
.ztx-luck-send-v22:focus {
  outline: none;
  border-color: rgba(207, 154, 40, 0.65);
  box-shadow: 0 0 0 4px rgba(207, 154, 40, 0.12);
}

.ztx-luck-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1120px) {
  .ztx-luck-page-v22 {
    padding: 18px 18px 24px;
  }

  .ztx-luck-shell-v22 {
    min-height: calc(100vh - 148px);
  }

  .ztx-luck-bubble-v22 {
    max-width: 62%;
  }
}

@media (max-width: 720px) {
  .ztx-luck-head-v22,
  .ztx-luck-thread-v22,
  .ztx-luck-composer-v22 {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ztx-luck-divider-v22 {
    margin: 0 18px;
  }

  .ztx-luck-status-note-v22 {
    margin-left: 18px;
    margin-right: 18px;
  }

  .ztx-luck-head-profile-v22 {
    align-items: flex-start;
  }

  .ztx-luck-avatar-v22 {
    width: 56px;
    height: 56px;
  }

  .ztx-luck-title-row-v22 h2 {
    font-size: 1.8rem;
  }

  .ztx-luck-bubble-v22 {
    min-width: 0;
    max-width: 84%;
  }
}
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 99, 255, 0.12), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(6, 11, 20, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

#app {
  position: relative;
  min-height: 100vh;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-line,
.ambient-orb {
  position: absolute;
}

.ambient-line {
  height: 1px;
  width: 35vw;
  background: linear-gradient(90deg, transparent, rgba(15, 99, 255, 0.18), transparent);
}

.ambient-line-a {
  top: 14vh;
  left: -4vw;
}

.ambient-line-b {
  bottom: 18vh;
  right: -6vw;
}

.ambient-orb {
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.35;
}

.ambient-orb-a {
  width: 200px;
  height: 200px;
  top: 8vh;
  right: -48px;
  background: rgba(15, 99, 255, 0.18);
}

.ambient-orb-b {
  width: 240px;
  height: 240px;
  left: -70px;
  bottom: 10vh;
  background: rgba(6, 11, 20, 0.08);
}

.cover-screen,
.workspace-shell {
  position: relative;
  z-index: 1;
}

.cover-screen {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.splash-screen,
.name-screen {
  background: radial-gradient(circle at top, rgba(15, 99, 255, 0.08), transparent 38%);
}

.brand-pulse {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.brand-pulse span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 99, 255, 0.18), rgba(15, 99, 255, 1), rgba(6, 11, 20, 0.16));
  animation: pulseBar 1.4s ease-in-out infinite;
}

.brand-pulse span:nth-child(1) { width: 92px; }
.brand-pulse span:nth-child(2) { width: 120px; animation-delay: 0.1s; }
.brand-pulse span:nth-child(3) { width: 78px; animation-delay: 0.2s; }

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.cover-title,
.intro-card h2,
.auth-aside h2,
.name-card h2,
.workspace-topbar h1,
.section-headline h2,
.panel h3,
.modal-head h3,
.profile-copy h3 {
  margin: 10px 0 0;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.cover-title {
  font-size: clamp(3rem, 9vw, 5rem);
}

.cover-title span {
  display: block;
  color: var(--accent);
}

.cover-copy,
.section-copy,
.micro-note,
.record-note,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.splash-screen {
  text-align: center;
}

.splash-bar {
  width: min(280px, 70vw);
  height: 8px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: rgba(15, 99, 255, 0.08);
  overflow: hidden;
}

.splash-bar span {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #58a0ff);
  animation: loadBar 1.8s ease forwards;
}

.intro-card,
.auth-layout,
.name-card,
.workspace-topbar,
.command-strip,
.panel,
.profile-hero,
.bulk-bar,
.shortcut-card,
.modal-card,
.toast {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 226, 240, 0.9);
  box-shadow: var(--shadow);
}

.intro-card,
.name-card {
  width: min(980px, 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.intro-card {
  display: grid;
  gap: 22px;
}

.preview-column,
.auth-points,
.metric-grid,
.planner-charts-grid,
.two-panel-grid,
.triple-panel-grid,
.settings-shortcuts,
.filter-grid {
  display: grid;
  gap: 16px;
}

.preview-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-panel,
.metric-card,
.intel-item,
.shortcut-card,
.cloud-chip {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.preview-panel-dark,
.panel-dark,
.metric-card.dark,
.workspace-topbar,
.command-intel,
.side-dock,
.profile-hero {
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.98), rgba(13, 21, 36, 0.96));
  color: #ffffff;
  border-color: rgba(61, 84, 120, 0.45);
}

.preview-panel-dark small,
.panel-dark small,
.panel-dark .micro-note,
.panel-dark .record-note,
.workspace-topbar .eyebrow,
.workspace-topbar .section-copy,
.command-intel small,
.command-intel span,
.profile-hero small,
.profile-hero p,
.side-dock small {
  color: rgba(255, 255, 255, 0.72);
}

.auth-screen .auth-layout {
  width: min(1080px, 100%);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.auth-aside,
.auth-panel {
  padding: 28px;
}

.auth-aside {
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.96), rgba(12, 23, 42, 0.92));
  color: #fff;
}

.auth-points {
  margin-top: 24px;
}

.auth-points span {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 155, 219, 0.24);
}

.segmented-control {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.segment {
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segment.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(15, 99, 255, 0.12);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label,
.filter-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.filter-grid input,
.filter-grid select,
.field-chip select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}

.stack-form textarea {
  resize: vertical;
}

.btn {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.dock-button:hover,
.dock-button:focus-visible,
.weekday-pill:hover,
.weekday-pill:focus-visible,
.mini-btn:hover,
.mini-btn:focus-visible,
.segment:hover,
.segment:focus-visible,
.icon-close:hover,
.icon-close:focus-visible {
  transform: translateY(-1px);
}

.btn:disabled,
.mini-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4693ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 99, 255, 0.2);
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red), #ff7b7b);
  color: #fff;
  box-shadow: 0 14px 28px rgba(220, 75, 75, 0.2);
}

.btn-large {
  min-width: min(340px, 100%);
}

.name-card {
  max-width: 580px;
}

.workspace-shell {
  min-height: 100vh;
}

.side-dock {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 128px;
  border-radius: 28px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 20;
}

.dock-brand {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.dock-brand span {
  font-weight: 900;
}

.dock-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dock-button {
  border: 1px solid rgba(128, 153, 194, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.74);
  padding: 12px 10px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.dock-button.active {
  background: linear-gradient(135deg, rgba(15, 99, 255, 0.22), rgba(255, 255, 255, 0.07));
  color: #fff;
  border-color: rgba(112, 169, 255, 0.36);
}

.dock-icon {
  font-size: 1.15rem;
}

.workspace-body {
  padding: 24px 168px 24px 24px;
  display: grid;
  gap: 18px;
}

.workspace-topbar {
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.topbar-copy,
.topbar-side,
.field-chip,
.user-chip,
.command-strip,
.command-strip-main,
.section-headline,
.action-row,
.panel-head,
.record-head,
.record-title-row,
.record-meta-row,
.record-actions,
.bulk-bar,
.profile-copy,
.inline-form,
.settings-stats,
.modal-head,
.checkbox-row {
  display: flex;
  gap: 12px;
}

.topbar-copy,
.field-chip,
.profile-copy {
  flex-direction: column;
}

.topbar-side,
.action-row,
.panel-head,
.record-head,
.record-meta-row,
.record-actions,
.bulk-bar,
.command-strip,
.command-strip-main {
  align-items: center;
}

.workspace-topbar,
.command-strip,
.section-headline,
.panel-head,
.record-head,
.bulk-bar {
  justify-content: space-between;
}

.user-chip,
.live-chip,
.field-chip,
.command-intel,
.profile-avatar,
.toast,
.modal-card {
  border-radius: var(--radius-lg);
}

.field-chip,
.live-chip,
.user-chip {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(146, 173, 219, 0.24);
}

.live-chip strong,
.user-chip strong,
.workspace-topbar h1 {
  color: #fff;
}

.live-chip {
  min-width: 190px;
}

.live-chip strong {
  font-size: 1.2rem;
}

.user-chip img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-chip {
  align-items: center;
  min-width: 190px;
}

.user-chip > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.command-strip {
  border-radius: var(--radius-xl);
  padding: 18px 22px;
}

.command-strip-main {
  flex: 1;
  flex-wrap: wrap;
}

.command-intel {
  max-width: 360px;
  flex-direction: column;
  align-items: flex-start;
}

.command-intel strong {
  font-size: 1rem;
  color: #fff;
}

.weekday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weekday-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  font-weight: 800;
  color: var(--muted);
}

.weekday-pill.today {
  border-color: rgba(15, 99, 255, 0.42);
}

.weekday-pill.active {
  background: linear-gradient(135deg, #0f63ff, #3b89ff);
  color: #fff;
  border-color: transparent;
}

.tab-stage,
.tab-view,
.column-stack,
.record-list,
.chip-cloud,
.settings-stats,
.line-legend {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid-planner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  gap: 10px;
}

.metric-card small,
.intel-item small,
.panel small,
.shortcut-card small,
.cloud-chip {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-card strong,
.intel-item strong,
.profile-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.metric-card.accent {
  background: linear-gradient(180deg, rgba(15, 99, 255, 0.08), rgba(255, 255, 255, 0.96));
}

.metric-card.warning {
  background: linear-gradient(180deg, rgba(255, 156, 42, 0.12), rgba(255, 255, 255, 0.98));
}

.metric-card.dark {
  border-color: rgba(67, 90, 127, 0.34);
}

.dashboard-grid,
.two-panel-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.triple-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planner-charts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.intel-list {
  display: grid;
  gap: 12px;
}

.intel-item {
  display: grid;
  gap: 8px;
}

.record-list {
  margin: 0;
}

.record-card {
  border-radius: 22px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #000000;
}

.record-card h4,
.record-card p,
.record-card strong {
  color: #000000;
}

.record-card-alert {
  animation: blinkAlert 1.1s ease-in-out infinite alternate;
}

.record-card-danger {
  background: linear-gradient(180deg, rgba(220, 75, 75, 0.06), #fff);
}

.record-card-locked {
  opacity: 0.88;
}

.record-title-box,
.record-link,
.record-note {
  display: block;
}

.record-title-row,
.record-meta-row.wrap {
  flex-wrap: wrap;
}

.record-head {
  align-items: flex-start;
}

.record-meta-row {
  margin-top: 12px;
  flex-wrap: wrap;
}

.record-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

.record-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.record-link-green {
  color: #16a34a;
}

.status-pill,
.meta-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.accent,
.meta-chip-positive,
.mini-btn.is-selected {
  background: rgba(15, 99, 255, 0.12);
  color: var(--accent-strong);
}

.status-pill.warn,
.metric-card.warning strong,
.mini-btn.is-danger {
  background: rgba(255, 156, 42, 0.14);
  color: #bb6a00;
}

.status-pill.positive {
  background: rgba(22, 182, 110, 0.14);
  color: #0b8e53;
}

.status-pill.danger,
.meta-chip-danger {
  background: rgba(220, 75, 75, 0.14);
  color: #b43030;
}

.tag-chip {
  background: color-mix(in srgb, var(--tag-color) 15%, #ffffff 85%);
  color: var(--tag-color);
  border: 1px solid color-mix(in srgb, var(--tag-color) 28%, #ffffff 72%);
}

.meta-chip {
  background: var(--surface-soft);
  color: var(--muted);
}

.mini-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px 14px;
  font-weight: 800;
}

.bulk-bar,
.profile-hero {
  padding: 18px 22px;
}

.profile-hero {
  align-items: center;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.settings-shortcuts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shortcut-card {
  display: grid;
  gap: 6px;
}

.inline-form {
  align-items: end;
}

.chip-cloud {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cloud-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cloud-chip.predefined {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(144, 169, 212, 0.18);
}

.cloud-chip button {
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
}

.filter-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bars-chart {
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 14px;
  align-items: end;
}

.bar-unit {
  display: grid;
  gap: 10px;
  align-items: end;
  text-align: center;
}

.bar-track {
  height: 160px;
  display: flex;
  align-items: end;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 99, 255, 0.05), rgba(15, 99, 255, 0.01));
  padding: 10px;
}

.bar-fill {
  width: 100%;
  border-radius: 12px;
  transition: height 220ms ease;
}

.bar-fill.profit {
  background: linear-gradient(180deg, #4d97ff, #0f63ff);
}

.bar-fill.loss {
  background: linear-gradient(180deg, #ff8a8a, #dc4b4b);
}

.bar-fill.neutral {
  background: linear-gradient(180deg, #bfc9d9, #8a95ab);
}

.line-chart-wrap {
  display: grid;
  gap: 12px;
}

.line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.line-area {
  fill: rgba(15, 99, 255, 0.08);
}

.line-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-dot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 3;
}

.line-legend {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.card-menu {
  position: relative;
}

.card-menu summary {
  list-style: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.3rem;
}

.card-menu.section-menu summary,
.card-menu.settings-menu summary {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
}

.card-menu summary::-webkit-details-marker {
  display: none;
}

.card-menu-box {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 5;
  min-width: 170px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-menu-box button {
  border: 0;
  background: var(--surface-soft);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
}

.card-menu-box button.danger {
  background: rgba(220, 75, 75, 0.1);
  color: #b43030;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.5);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 22px;
}

.modal-card-wide {
  width: min(1080px, calc(100vw - 32px));
}

.modal-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-form-grid > :last-child {
  grid-column: 1 / -1;
}

.planner-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon-close {
  border: 1px solid var(--line);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1.1rem;
}

.checkbox-row {
  align-items: center;
  min-height: 52px;
  padding: 0 6px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast button {
  border: 0;
  background: transparent;
  font-size: 1.1rem;
}

.toast-positive {
  border-color: rgba(22, 182, 110, 0.24);
}

.toast-danger {
  border-color: rgba(220, 75, 75, 0.24);
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

@keyframes pulseBar {
  0%, 100% { transform: scaleX(0.88); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes loadBar {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkAlert {
  from { border-color: rgba(255, 156, 42, 0.32); box-shadow: var(--shadow); }
  to { border-color: rgba(255, 156, 42, 0.76); box-shadow: 0 16px 34px rgba(255, 156, 42, 0.2); }
}

@keyframes splashRise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 0 rgba(212, 175, 55, 0.12); }
  50% { text-shadow: 0 0 28px rgba(212, 175, 55, 0.28); }
}

@keyframes luxuryLoad {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 1180px) {
  .metric-grid,
  .metric-grid-planner,
  .settings-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .two-panel-grid,
  .planner-charts-grid,
  .triple-panel-grid,
  .auth-screen .auth-layout,
  .preview-column,
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .side-dock {
    width: 82px;
    padding: 14px 8px;
  }

  .dock-button strong,
  .dock-brand small {
    font-size: 0.68rem;
  }

  .workspace-body {
    padding: 18px 102px 18px 18px;
  }

  .workspace-topbar,
  .command-strip,
  .section-headline,
  .topbar-side,
  .action-row,
  .bulk-bar,
  .profile-hero,
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .cover-screen,
  .workspace-body,
  .modal-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .intro-card,
  .name-card,
  .panel,
  .workspace-topbar,
  .command-strip,
  .bulk-bar,
  .profile-hero {
    padding: 18px;
  }

  .side-dock {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    height: 76px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .dock-brand {
    display: none;
  }

  .dock-list {
    display: flex;
    width: 100%;
  }

  .dock-button {
    min-width: 92px;
    text-align: center;
  }

  .workspace-body {
    padding: 16px 16px 104px;
  }

  .metric-grid,
  .metric-grid-planner,
  .modal-form-grid,
  .planner-form-grid,
  .settings-shortcuts {
    grid-template-columns: 1fr;
  }
}

.auth-layout-upgraded {
  border-radius: 36px;
  overflow: hidden;
}

.auth-aside-upgraded {
  background:
    radial-gradient(circle at top right, rgba(15, 99, 255, 0.22), transparent 35%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.98), rgba(12, 23, 42, 0.94));
}

.auth-panel-upgraded {
  display: grid;
  gap: 18px;
  align-content: center;
}

.auth-banner {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.auth-banner strong {
  font-size: 0.94rem;
}

.auth-banner-positive {
  border-color: rgba(22, 182, 110, 0.24);
  background: rgba(22, 182, 110, 0.08);
}

.auth-banner-danger {
  border-color: rgba(220, 75, 75, 0.24);
  background: rgba(220, 75, 75, 0.08);
}

.name-card-quiz {
  max-width: 860px;
  display: grid;
  gap: 24px;
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.quiz-grid {
  display: grid;
  gap: 18px;
}

.quiz-field {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.quiz-field legend,
.quiz-field span {
  font-weight: 800;
}

.quiz-field-wide {
  grid-column: 1 / -1;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-chip {
  position: relative;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.choice-chip input:checked + span {
  background: linear-gradient(135deg, #0f63ff, #3b89ff);
  color: #fff;
  border-color: transparent;
}

.field-chip-select {
  min-width: 170px;
}

.field-chip-select select {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
}

.user-chip-fixed {
  min-width: 220px;
}

.user-avatar-frame {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
}

.user-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-frame span {
  font-weight: 900;
  color: #fff;
}

.user-chip > img {
  display: none;
}

.command-strip-clean {
  padding: 14px 18px;
}

.command-mini {
  min-width: 120px;
  text-align: right;
}

.command-mini small {
  color: var(--muted);
}

.section-headline-clean {
  align-items: center;
}

.section-headline-clean h2 {
  line-height: 1;
}

.metric-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.record-card h4,
.record-card p {
  color: var(--text);
}

.metric-card span,
.intel-item span,
.micro-note,
.form-note {
  display: none;
}

.settings-stack {
  display: grid;
  gap: 18px;
}

.settings-account-form {
  display: grid;
  gap: 18px;
}

.settings-section {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 226, 240, 0.92);
  box-shadow: var(--shadow);
}

.settings-section-flat {
  display: grid;
  gap: 16px;
}

.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.settings-section-head h3 {
  margin: 0;
}

.settings-cover {
  min-height: 150px;
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(6, 11, 20, 0.88), rgba(15, 99, 255, 0.35)),
    linear-gradient(180deg, rgba(15, 99, 255, 0.08), rgba(15, 99, 255, 0.02));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.settings-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-profile-row {
  margin-top: -42px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.settings-profile-avatar-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
}

.settings-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  border: 4px solid #fff;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.98), rgba(13, 21, 36, 0.96));
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(11, 23, 45, 0.14);
}

.settings-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.settings-profile-avatar span {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
}

.avatar-pencil {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.settings-profile-main {
  display: grid;
  gap: 12px;
  flex: 1;
}

.settings-profile-name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.settings-inline-field {
  display: grid;
  gap: 8px;
  flex: 1;
}

.settings-inline-field span,
.settings-list-item span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-inline-field input,
.settings-list-item input,
.settings-inline-submit textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.plan-badge-free {
  background: rgba(125, 137, 158, 0.14);
  color: #647189;
}

.plan-badge-pro {
  background: rgba(22, 182, 110, 0.14);
  color: #0b8e53;
}

.plan-badge-team {
  background: rgba(15, 99, 255, 0.12);
  color: var(--accent-strong);
}

.settings-profile-tools,
.settings-actions-row,
.settings-footer-save {
  display: flex;
  gap: 12px;
}

.settings-list {
  display: grid;
  gap: 12px;
}

.settings-list-item {
  display: grid;
  gap: 8px;
}

.settings-list-item-static strong {
  font-size: 1rem;
}

.password-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.password-toggle {
  min-width: 92px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  font-weight: 800;
}

.settings-inline-submit {
  display: grid;
  gap: 12px;
}

.settings-inline-submit textarea {
  resize: vertical;
  min-height: 120px;
}

.settings-copy {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.settings-support-btn {
  width: fit-content;
}

.record-card h4 {
  margin: 0;
}

.record-card-compact {
  padding: 16px;
}

.record-card-compact .record-actions {
  display: none;
}

.digest-list {
  gap: 12px;
}

.mobile-dock,
.mobile-more {
  display: none;
}

.mobile-more {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.mobile-more.is-open {
  display: block;
  pointer-events: auto;
}

.mobile-more-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 11, 20, 0.36);
  backdrop-filter: blur(4px);
}

.mobile-more-sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 96px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(216, 226, 240, 0.94);
  box-shadow: var(--shadow);
}

.mobile-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-more-list {
  display: grid;
  gap: 10px;
}

.mobile-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.mobile-more-item.active {
  background: linear-gradient(135deg, rgba(15, 99, 255, 0.12), rgba(15, 99, 255, 0.04));
  border-color: rgba(15, 99, 255, 0.25);
}

@media (max-width: 1180px) {
  .metric-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .user-chip-fixed {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .side-dock-desktop {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(6, 11, 20, 0.98), rgba(13, 21, 36, 0.96));
    border: 1px solid rgba(61, 84, 120, 0.45);
    box-shadow: var(--shadow);
  }

  .mobile-dock-button {
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 18px;
    text-align: center;
    justify-items: center;
  }

  .mobile-dock-button strong {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .workspace-body {
    padding: 16px 16px 110px;
  }

  .workspace-topbar {
    gap: 14px;
  }

  .command-strip-clean {
    gap: 12px;
  }

  .command-mini {
    text-align: left;
  }

  .metric-grid-wide {
    grid-template-columns: 1fr;
  }

  .quiz-head {
    flex-direction: column;
    align-items: stretch;
  }

  .choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .settings-profile-row,
  .settings-profile-name-row,
  .settings-profile-tools,
  .settings-actions-row,
  .settings-footer-save {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-profile-row {
    margin-top: -28px;
  }

  .settings-profile-avatar-wrap {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }
}


/* ZTX PREMIUM FLOW STYLES START */
.ztx-splash-premium,
.ztx-intro-premium,
.ztx-auth-premium,
.ztx-quiz-premium {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.26), transparent 22%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(145deg, #030303 0%, #0d0d0d 44%, #17130b 100%);
}

.ztx-splash-premium::before,
.ztx-intro-premium::before,
.ztx-auth-premium::before,
.ztx-quiz-premium::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 36px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}

.ztx-splash-core,
.ztx-luxury-panel,
.auth-layout-luxury,
.quiz-shell-premium {
  position: relative;
  z-index: 1;
}

.ztx-splash-core {
  width: min(760px, 100%);
  text-align: center;
  display: grid;
  gap: 14px;
}

.ztx-splash-core-animated {
  animation: splashRise 900ms ease both;
}

.ztx-splash-mark {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 68%);
  filter: blur(8px);
}

.luxury-eyebrow {
  color: #d4af37;
  letter-spacing: 0.28em;
}

.luxury-main-title {
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 5.8rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.94;
  color: #ffffff;
}

.luxury-main-title span {
  color: #d4af37;
}

.luxury-main-title-small {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.ztx-splash-title {
  animation: titlePulse 2.2s ease-in-out infinite;
}

.luxury-subcopy {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.7;
}

.ztx-luxury-panel {
  width: min(920px, 100%);
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 24px;
  text-align: center;
}

.luxury-brand-stack {
  display: grid;
  gap: 16px;
}

.luxury-phrase {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: #ffffff;
}

.ztx-auth-subtitle {
  color: rgba(212, 175, 55, 0.74);
  font-size: clamp(0.94rem, 2vw, 1.08rem);
  max-width: 560px;
  margin: 0 auto;
}

.ztx-splash-loader {
  width: min(260px, 64vw);
  height: 8px;
  margin: 10px auto 0;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.ztx-splash-loader span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, #fff0ae);
  animation: luxuryLoad 1.8s ease forwards;
}

.luxury-stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.luxury-stat-row span {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.luxury-cta {
  background: linear-gradient(135deg, #d4af37, #f6df8b);
  color: #111111;
  border: 0;
  box-shadow: 0 20px 36px rgba(212, 175, 55, 0.28);
}

.luxury-cta-wide {
  min-height: 60px;
  width: min(360px, 100%);
  justify-self: center;
}

.auth-layout-luxury {
  width: min(1120px, 100%);
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(0, 0, 0, 0.3);
}

.auth-aside-luxury {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(18, 18, 18, 0.94));
  color: #ffffff;
  display: grid;
  gap: 20px;
  align-content: center;
}

.auth-brand-lockup {
  display: grid;
  gap: 10px;
}

.auth-support-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.auth-points-luxury span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.14);
}

.auth-panel-luxury {
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 18px;
  align-content: center;
}

.auth-compact-shell {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 24px;
}

.auth-compact-head {
  display: grid;
  gap: 12px;
  text-align: center;
}

.auth-panel-compact {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.auth-tabs-compact {
  justify-self: center;
}

.segmented-control-luxury {
  justify-self: start;
  background: rgba(6, 11, 20, 0.06);
}

.stack-form-luxury {
  gap: 16px;
}

.auth-form-compact {
  gap: 14px;
}

.stack-form-luxury input {
  min-height: 52px;
}

.auth-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: #8b6a14;
  font-weight: 800;
  padding: 0;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: #111111;
}

.auth-link-btn-center {
  justify-self: center;
  margin-top: 2px;
}

.quiz-shell-premium {
  width: min(760px, 100%);
  display: grid;
  gap: 24px;
  border-radius: 32px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.quiz-premium-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.quiz-question-title {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 0.98;
}

.quiz-progress-shell {
  display: grid;
  gap: 10px;
}

.quiz-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

.quiz-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(9, 17, 31, 0.08);
}

.quiz-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #d4af37, #f5de87);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.22);
}

.quiz-card-stage {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(216, 226, 240, 0.92);
  display: grid;
  gap: 14px;
}

.quiz-answer-stack {
  display: grid;
  gap: 10px;
}

.quiz-answer-stack span {
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-answer-control {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 0 18px;
  font-size: 1rem;
  background: #ffffff;
  color: var(--text);
}

.quiz-support-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.quiz-nav-spacer {
  display: block;
  width: 120px;
}

.planner-filter-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.planner-filter-grid label {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .auth-layout-luxury {
    grid-template-columns: 1fr;
  }

  .auth-compact-shell {
    width: min(560px, 100%);
  }

  .planner-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ztx-splash-premium::before,
  .ztx-intro-premium::before,
  .ztx-auth-premium::before,
  .ztx-quiz-premium::before {
    inset: 10px;
    border-radius: 24px;
  }

  .ztx-luxury-panel,
  .quiz-shell-premium {
    padding: 22px;
  }

  .auth-panel-compact {
    padding: 22px;
    border-radius: 24px;
  }

  .luxury-main-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .quiz-premium-top,
  .quiz-progress-copy,
  .quiz-nav-row,
  .auth-tools-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-nav-spacer {
    display: none;
  }

  .planner-filter-grid {
    grid-template-columns: 1fr;
  }
}
/* ZTX PREMIUM FLOW STYLES END */

/* ZTX PROFESSIONAL OPERATIONS STYLES START */
.workspace-body-pro {
  padding-top: 22px;
}

.side-dock-clean {
  justify-content: center;
}

.scope-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 226, 240, 0.92);
  box-shadow: var(--shadow);
}

.scope-bar-main,
.scope-bar-actions,
.action-row-wrap,
.settings-name-line,
.settings-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.scope-month-select {
  min-width: 190px;
  background: #fff;
  border-color: rgba(216, 226, 240, 0.92);
}

.scope-month-select span {
  color: var(--muted);
}

.scope-month-select select {
  color: var(--text);
}

.weekday-row-compact {
  gap: 8px;
}

.panel-head-plain {
  margin-bottom: 14px;
}

.panel-head-plain h3 {
  margin: 0;
}

.floating-pro-cta {
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 28;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f6df8b);
  color: #111111;
  font-weight: 900;
  box-shadow: 0 22px 38px rgba(212, 175, 55, 0.3);
  animation: titlePulse 2.4s ease-in-out infinite;
}

.record-card-wine {
  background: linear-gradient(180deg, rgba(107, 19, 46, 0.08), #fff);
  border-color: rgba(107, 19, 46, 0.16);
}

.metric-card.positive {
  background: linear-gradient(180deg, rgba(22, 182, 110, 0.12), rgba(255, 255, 255, 0.98));
}

.metric-card.danger {
  background: linear-gradient(180deg, rgba(220, 75, 75, 0.12), rgba(255, 255, 255, 0.98));
}

.metric-card.wine {
  background: linear-gradient(180deg, rgba(107, 19, 46, 0.12), rgba(255, 255, 255, 0.98));
}

.metric-card.warn {
  background: linear-gradient(180deg, rgba(255, 156, 42, 0.12), rgba(255, 255, 255, 0.98));
}

.status-pill.wine {
  background: rgba(107, 19, 46, 0.14);
  color: #6b1330;
}

.mini-btn.is-success {
  background: rgba(22, 182, 110, 0.14);
  color: #0b8e53;
}

.mini-btn.is-wine {
  background: rgba(107, 19, 46, 0.14);
  color: #6b1330;
  border-color: rgba(107, 19, 46, 0.16);
}

.finance-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-detail-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(216, 226, 240, 0.92);
  box-shadow: var(--shadow);
}

.settings-home-card {
  gap: 26px;
}

.settings-home-hero {
  display: grid;
  gap: 18px;
}

.settings-cover-clean {
  min-height: 170px;
}

.settings-profile-row-clean {
  margin-top: -40px;
}

.settings-name-line strong {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.settings-inline-edit {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.settings-nav-list {
  display: grid;
  gap: 10px;
}

.settings-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.settings-nav-button {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: var(--text);
}

.settings-nav-button strong {
  font-size: 0.96rem;
}

.settings-nav-button span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.settings-nav-button.is-danger {
  border-color: rgba(220, 75, 75, 0.2);
  background: rgba(220, 75, 75, 0.08);
  color: #b43030;
}

.settings-nav-button.is-gold {
  border-color: rgba(212, 175, 55, 0.32);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 247, 214, 0.98));
  color: #3b2900;
  box-shadow: 0 16px 30px rgba(212, 175, 55, 0.16);
}

.settings-nav-button-logout {
  justify-content: center;
}

.settings-detail-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.settings-detail-head h3,
.settings-detail-head p {
  margin: 0;
}

.settings-detail-head p,
.settings-pro-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.settings-pro-card {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.96));
}

.settings-crop-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.settings-crop-head {
  display: grid;
  gap: 4px;
}

.settings-crop-head small {
  color: var(--muted);
}

.settings-crop-preview {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-soft);
}

.settings-crop-preview.is-avatar {
  width: 132px;
  height: 132px;
}

.settings-crop-preview.is-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.settings-crop-cover-preview {
  min-height: 150px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.settings-crop-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-crop-controls label {
  display: grid;
  gap: 8px;
}

.settings-crop-controls span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.faq-list-pro {
  gap: 12px;
}

.faq-list-pro details {
  border-radius: 18px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: #fff;
  padding: 14px 16px;
}

.faq-list-pro summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list-pro p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.pro-offer-modal {
  display: grid;
  gap: 22px;
}

.pro-offer-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(35, 26, 4, 0.96));
  color: #fff;
}

.pro-offer-hero h3,
.pro-offer-hero p {
  margin: 0;
}

.pro-offer-hero p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.pro-offer-price {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.pro-offer-price span {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.pro-offer-price strong {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.pro-offer-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pro-offer-benefits article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: #fff;
}

.pro-offer-benefits article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-layer {
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  margin: 0;
}

@media (max-width: 900px) {
  .finance-panels-grid {
    grid-template-columns: 1fr;
  }

  .scope-bar,
  .scope-bar-main,
  .scope-bar-actions,
  .settings-name-line,
  .settings-detail-actions,
  .settings-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .workspace-body-pro {
    padding-bottom: 118px;
  }

  .floating-pro-cta {
    top: 14px;
    right: 14px;
    left: auto;
    bottom: auto;
    min-height: 48px;
    padding: 0 16px;
  }

  .settings-profile-row-clean {
    margin-top: -24px;
  }

  .scope-bar {
    padding: 14px;
  }

  .section-actions-desktop {
    display: none;
  }

  .section-actions-mobile {
    display: block;
  }

  .settings-nav-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-crop-controls,
  .pro-offer-hero,
  .pro-offer-benefits {
    grid-template-columns: 1fr;
  }
}
/* ZTX PROFESSIONAL OPERATIONS STYLES END */

/* ZTX FINAL OVERRIDES STYLES START */
.section-actions-mobile,
.section-actions-mobile-label {
  display: none;
}

.action-row-wrap {
  flex-wrap: wrap;
}

.settings-menu {
  justify-self: end;
}

.section-menu {
  justify-self: end;
}

.settings-nav-item.is-gold .settings-menu summary {
  border-color: rgba(212, 175, 55, 0.32);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 247, 214, 0.98));
  color: #3b2900;
}

.settings-home-photo-tools,
.settings-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.settings-cta-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 99, 255, 0.08), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(216, 226, 240, 0.92);
}

.settings-cta-card h3,
.settings-pro-copy h3 {
  margin: 0;
}

.settings-cta-card p,
.settings-pro-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .settings-home-photo-tools,
  .settings-panel-actions {
    flex-direction: column;
  }
}
/* ZTX FINAL OVERRIDES STYLES END */

html,
body,
#app,
.workspace-shell,
.workspace-body,
.tab-stage {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.welcome-overlay-card {
  min-width: min(420px, 92vw);
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(6, 11, 20, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  animation: welcomeFadeIn 320ms ease both;
}

.welcome-overlay-card strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.quiz-premium-subtitle {
  margin: 10px 0 0;
  color: rgba(212, 175, 55, 0.8);
  line-height: 1.7;
  max-width: 560px;
}

.quiz-step-intro {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.quiz-answer-stack.is-choice span {
  margin-bottom: 6px;
}

.quiz-choice-grid {
  display: grid;
  gap: 12px;
}

.quiz-choice-button {
  min-height: 62px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: #fff;
  color: var(--text);
  display: grid;
  gap: 4px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quiz-choice-button span {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
}

.quiz-choice-button.is-active {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(11, 23, 45, 0.1);
}

.quiz-choice-button.is-gold.is-active,
.quiz-choice-button.is-active:not(.is-rose) {
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 247, 214, 0.98));
}

.quiz-choice-button.is-rose.is-active {
  border-color: rgba(242, 106, 184, 0.34);
  background: linear-gradient(135deg, rgba(242, 106, 184, 0.14), rgba(255, 240, 248, 0.98));
}

.quiz-age-preview {
  min-height: 24px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.side-dock-clean {
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: 78px;
  padding: 18px 10px;
  border-radius: 0;
  justify-content: flex-start;
  background: linear-gradient(180deg, #030303 0%, #0b0b0b 62%, #161109 100%);
  border: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.24);
  transition: width 0.28s ease;
}

.side-dock-clean.is-expanded {
  width: 220px;
}

.dock-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.side-dock-clean .dock-list {
  gap: 8px;
}

.side-dock-clean .dock-button {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.side-dock-clean .dock-button.active {
  background: linear-gradient(135deg, #d4af37, #f6df8b);
  color: #111;
  border-color: transparent;
}

.side-dock-clean .dock-icon {
  font-size: 1.05rem;
}

.dock-label {
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

.side-dock-clean.is-collapsed .dock-button {
  grid-template-columns: 1fr;
  justify-items: center;
}

.side-dock-clean.is-collapsed .dock-label {
  max-width: 0;
  opacity: 0;
  transform: translateX(-10px);
}

.side-dock-clean.is-expanded .dock-label {
  max-width: 160px;
  opacity: 1;
  transform: translateX(0);
}

.workspace-body-pro {
  padding: 24px 24px 24px 104px;
  transition: padding 0.28s ease;
}

.workspace-shell-pro.is-dock-expanded .workspace-body-pro {
  padding-left: 246px;
}

.workspace-shell-pro.is-dock-collapsed .workspace-body-pro {
  padding-left: 104px;
}

.settings-nav-list {
  gap: 8px;
}

.settings-nav-button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.settings-nav-button.is-accent {
  background: linear-gradient(135deg, rgba(15, 99, 255, 0.12), rgba(255, 255, 255, 0.96));
  border-color: rgba(15, 99, 255, 0.2);
}

.settings-nav-button.is-muted {
  background: linear-gradient(180deg, #fafbfd, #f5f7fb);
}

.settings-nav-button-logout {
  justify-content: flex-start;
  color: #925a5a;
  background: rgba(220, 75, 75, 0.04);
  border-color: rgba(220, 75, 75, 0.08);
}

.settings-upload-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 11, 20, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.delete-confirm-modal {
  max-width: 520px;
}

.delete-confirm-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.delete-confirm-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.delete-confirm-warning {
  margin: 0;
  color: #9c2f2f;
  font-weight: 700;
}

.gold-member-form-grid {
  display: grid;
  gap: 18px;
}

.gold-member-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: linear-gradient(180deg, #ffffff, #fafbfd);
}

.gold-member-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gold-archive-tools {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.gold-archive-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.gold-archive-stack {
  display: grid;
  gap: 16px;
}

.planner-charts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .planner-charts-grid,
  .gold-member-block-grid,
  .gold-archive-tools {
    grid-template-columns: 1fr;
  }

  .gold-archive-actions {
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .workspace-body-pro {
    padding: 16px 16px 110px;
  }

  .workspace-shell-pro.is-dock-expanded .workspace-body-pro,
  .workspace-shell-pro.is-dock-collapsed .workspace-body-pro {
    padding-left: 16px;
  }

  .side-dock-clean {
    display: none;
  }

  .quiz-shell-premium {
    padding: 20px;
  }

  .quiz-premium-top,
  .quiz-nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-nav-spacer {
    display: none;
  }
}

/* ZTX refinement overrides */
.floating-pro-cta {
  top: 18px;
  right: 20px;
  left: auto;
  bottom: auto;
  z-index: 24;
}

.settings-nav-item {
  grid-template-columns: minmax(0, 1fr);
}

.settings-nav-button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.settings-nav-button strong {
  font-size: 0.92rem;
}

.settings-nav-button-logout {
  justify-content: flex-start;
}

.settings-cover-clean {
  position: relative;
  overflow: hidden;
}

.settings-cover-edit,
.avatar-pencil,
.settings-inline-edit {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(216, 226, 240, 0.95);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 14px 24px rgba(9, 17, 31, 0.08);
}

.settings-cover-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  cursor: pointer;
}

.settings-cover-edit input,
.avatar-pencil input {
  display: none;
}

.avatar-pencil {
  right: -4px;
  bottom: -4px;
}

.settings-inline-edit {
  flex: 0 0 38px;
}

.settings-cover-actions,
.settings-menu {
  display: none !important;
}

.settings-home-photo-tools {
  min-height: 22px;
  display: flex;
  align-items: center;
}

.pro-offer-countdown {
  display: inline-grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.pro-offer-countdown span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pro-offer-countdown strong {
  font-size: 1.35rem;
  color: #fff4c7;
}

.pro-offer-countdown.is-pro strong {
  color: #ffffff;
}

.pro-offer-actions {
  align-items: center;
}

.pro-offer-warning {
  margin: 0;
  color: #b43030;
  font-weight: 800;
}

.gold-archive-tools {
  align-items: end;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfcff, #f4f8ff);
  border: 1px solid rgba(216, 226, 240, 0.92);
}

.gold-archive-tools label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
}

.gold-archive-tools input,
.gold-archive-tools select {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(216, 226, 240, 0.96);
  background: #fff;
  color: var(--text);
}

.gold-archive-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.gold-archive-group {
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.gold-archive-stack .empty-state {
  padding: 28px;
  border-radius: 22px;
}

.quiz-premium-subtitle {
  display: none;
}

.settings-tab-single {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: start center;
}

.settings-single-shell {
  width: min(860px, 100%);
}

.settings-tab-single .settings-detail-card {
  width: 100%;
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 28px;
}

.settings-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-about-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(216, 226, 240, 0.92);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.settings-about-item span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.settings-about-item strong {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .floating-pro-cta {
    top: auto;
    bottom: 90px;
    right: 14px;
  }
}

@media (max-width: 640px) {
  .gold-archive-tools {
    padding: 14px;
  }

  .gold-archive-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .settings-about-grid {
    grid-template-columns: 1fr;
  }

  .settings-nav-button {
    min-height: 42px;
    border-radius: 12px;
  }

  .floating-pro-cta {
    bottom: 94px;
    right: 16px;
    top: auto;
  }
}

/* ZTX final stability overrides */
html,
body,
#app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  touch-action: pan-y;
}

.workspace-shell,
.workspace-body,
.workspace-body-pro,
.tab-stage,
.panel,
.record-card,
.modal-card {
  min-width: 0;
}

.settings-modal-card {
  width: min(560px, calc(100vw - 20px));
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.settings-modal-card .settings-tab-single {
  min-height: auto;
}

.settings-modal-card .settings-single-shell {
  width: 100%;
}

.settings-modal-card .settings-detail-card,
.settings-modal-card .settings-home-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(216, 226, 240, 0.96);
  box-shadow: 0 24px 60px rgba(8, 16, 32, 0.16);
}

.settings-home-card {
  gap: 18px;
}

.settings-cover-clean {
  min-height: 132px;
}

.settings-cover-edit,
.avatar-pencil {
  width: 36px;
  height: 36px;
  font-size: 0.96rem;
}

.settings-profile-avatar-wrap,
.settings-profile-avatar {
  aspect-ratio: 1 / 1;
}

.settings-nav-list {
  display: grid;
  gap: 10px;
}

.settings-nav-item {
  display: block;
}

.settings-nav-button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
}

.settings-nav-button strong {
  font-size: 0.9rem;
}

.settings-logout-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.settings-nav-button-logout {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border-color: rgba(148, 163, 184, 0.28);
  color: #6b7280;
  justify-content: center;
}

.settings-nav-button-logout strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.settings-menu,
.settings-cover-actions,
.settings-inline-edit {
  display: none !important;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dock-brand-text {
  color: #d4af37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.side-dock-clean {
  padding-top: 16px;
}

.side-dock-clean.is-collapsed .dock-header {
  justify-content: center;
}

.side-dock-clean.is-collapsed .dock-brand-text {
  display: none;
}

.dock-toggle {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
}

.floating-pro-cta {
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 40;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f5db76);
  color: #221700;
  border: 1px solid rgba(212, 175, 55, 0.36);
  box-shadow: 0 18px 34px rgba(212, 175, 55, 0.28);
  animation: ztxProFloat 1.8s ease-in-out infinite;
}

@keyframes ztxProFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.pro-offer-modal {
  gap: 18px;
}

.pro-offer-hero-premium {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: stretch;
  background: linear-gradient(135deg, #111111, #241c05);
}

.pro-offer-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pro-offer-copy h3,
.pro-offer-copy p {
  margin: 0;
}

.pro-offer-timer-block {
  display: inline-grid;
  gap: 6px;
  justify-items: start;
}

.pro-offer-timer-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pro-offer-timer-value {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: #ff4d4d;
  text-shadow: 0 0 14px rgba(255, 77, 77, 0.4);
}

.pro-offer-support-note {
  color: rgba(255, 255, 255, 0.8);
}

.pro-price-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: #0f1a36;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-price-head {
  display: grid;
  gap: 4px;
}

.pro-price-plan {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.pro-price-head p {
  margin: 0;
  color: #cdd7ee;
}

.pro-price-value {
  display: grid;
  gap: 2px;
}

.pro-price-value small {
  color: #aeb8cf;
  font-size: 0.78rem;
}

.pro-price-value strong {
  color: #fff;
  font-size: 2rem;
}

.pro-price-cta {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  font-weight: 900;
  text-decoration: none;
}

.pro-plan-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cdd7ee;
}

.pro-plan-status strong {
  color: #fff;
}

.pro-offer-benefits-list {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(216, 226, 240, 0.92);
}

.pro-benefits-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.pro-benefits-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pro-benefits-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  line-height: 1.5;
}

.pro-benefits-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 182, 110, 0.16);
  color: #0c9b5b;
  font-size: 0.82rem;
  font-weight: 900;
}

.pro-offer-footer {
  display: grid;
  gap: 10px;
}

.pro-offer-main-cta {
  width: fit-content;
}

.pro-offer-footer p {
  margin: 0;
  color: var(--muted);
}

.pro-offer-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.history-edit-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.gold-archive-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.8fr 0.8fr auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
}

.gold-archive-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.gold-archive-stack {
  display: grid;
  gap: 16px;
}

@media (max-width: 900px) {
  .floating-pro-cta {
    top: auto;
    bottom: 88px;
    right: 14px;
  }

  .pro-offer-hero-premium,
  .gold-archive-tools {
    grid-template-columns: 1fr;
  }

  .gold-archive-actions {
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .settings-modal-card {
    width: min(100vw - 12px, 560px);
  }

  .settings-cover-clean {
    min-height: 118px;
  }

  .settings-profile-row-clean {
    margin-top: -18px;
  }

  .floating-pro-cta {
    bottom: 92px;
    right: 14px;
    top: auto;
    min-height: 44px;
    padding: 0 15px;
  }
}

.auth-code-info {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.auth-code-info strong {
  color: #fff;
  font-size: 0.92rem;
}

.auth-code-info span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.auth-code-input {
  text-align: center;
  letter-spacing: 0.44em;
  font-size: 1.35rem;
  font-weight: 900;
}

.auth-code-input::placeholder {
  color: rgba(104, 116, 139, 0.5);
}

.auth-code-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ZTX final reference interface */
.auth-screen-final {
  background: linear-gradient(145deg, #050505 0%, #080808 54%, #111111 100%);
}

.auth-screen-final::before {
  display: none;
}

.auth-compact-shell-final {
  width: min(500px, 100%);
}

.auth-panel-final {
  border-color: rgba(226, 232, 240, 0.92);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.auth-panel-final .luxury-cta {
  box-shadow: none;
}

.auth-form-final label span {
  color: #263244;
}

.auth-reset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.auth-reset-head strong {
  color: var(--text);
}

.auth-code-info-light {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.22);
}

.auth-code-info-light strong,
.auth-code-info-light span {
  color: var(--text);
}

.workspace-shell-pro {
  background: #f4f5f7;
}

.workspace-body-pro {
  background: #f4f5f7;
}

.side-dock-clean {
  background: linear-gradient(180deg, #04070b 0%, #080b10 58%, #10100a 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.16);
}

.dock-brand-text {
  color: #d4af37;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
}

.side-dock-clean.is-collapsed .dock-brand-text {
  display: block;
  font-size: 0.98rem;
}

.side-dock-clean.is-collapsed .dock-header {
  justify-content: space-between;
}

.side-dock-clean .dock-button {
  border-radius: 12px;
}

.side-dock-clean .dock-button.active {
  background: linear-gradient(135deg, #d4af37, #f2d879);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.2);
}

.floating-pro-cta {
  background: linear-gradient(135deg, #d4af37, #f5db76);
  border-color: rgba(255, 244, 184, 0.55);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.22);
}

.dashboard-reference {
  gap: 22px;
}

.dashboard-ref-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto);
  gap: 18px;
  align-items: start;
}

.dashboard-ref-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.dashboard-ref-header p {
  margin: 0;
  color: var(--muted);
}

.dashboard-ref-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) minmax(170px, auto);
  gap: 12px;
  align-items: end;
}

.dashboard-ref-filters label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.dashboard-ref-filters select {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(216, 226, 240, 0.95);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
}

.dashboard-sync-badge {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a101b;
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.dashboard-sync-badge i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16b66e;
  box-shadow: 0 0 0 5px rgba(22, 182, 110, 0.12);
}

.dashboard-sync-badge strong {
  display: block;
  color: #24d982;
  font-size: 0.9rem;
}

.dashboard-sync-badge small {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-kpi-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(216, 226, 240, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  display: grid;
  align-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.dashboard-kpi-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0));
}

.dashboard-kpi-dark {
  background: linear-gradient(180deg, #0a101b, #070a10);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.18);
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #b9870f;
  font-weight: 900;
}

.dashboard-kpi-trend {
  color: #16a34a;
  font-size: 0.84rem;
  font-weight: 900;
}

.dashboard-kpi-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.dashboard-kpi-dark small,
.dashboard-kpi-dark p {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-kpi-card strong {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.dashboard-kpi-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-ref-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.34fr);
  gap: 16px;
}

.dashboard-alert-panel,
.dashboard-chart-panel {
  border-radius: 18px;
}

.dashboard-alert-list {
  display: grid;
  gap: 10px;
}

.dashboard-alert {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(216, 226, 240, 0.9);
}

.dashboard-alert span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.dashboard-alert strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-alert p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-alert-critical span {
  background: rgba(220, 75, 75, 0.12);
  color: #c73636;
}

.dashboard-alert-warning span {
  background: rgba(212, 175, 55, 0.16);
  color: #a87908;
}

.dashboard-alert-positive span {
  background: rgba(22, 182, 110, 0.14);
  color: #0e9858;
}

.dashboard-alert-info span {
  background: rgba(15, 99, 255, 0.12);
  color: #0f63ff;
}

.dashboard-chart-panel .line-chart-wrap {
  min-height: 300px;
}

.dashboard-chart-panel .line-chart {
  min-height: 260px;
}

@media (max-width: 1180px) {
  .dashboard-ref-header,
  .dashboard-ref-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-ref-filters,
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-card {
    min-height: 150px;
  }

  .auth-compact-shell-final {
    gap: 18px;
  }
}

/* ZTX reference dashboard final layer */
html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}

body {
  background: #05080d;
  touch-action: pan-y;
}

.workspace-shell-pro {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 12%, rgba(212, 175, 55, 0.12), transparent 26%),
    linear-gradient(180deg, #05080d 0%, #080d14 100%) !important;
  color: #f5f7fb;
  overflow: visible;
}

.workspace-body-pro {
  min-height: 100vh;
  background: transparent !important;
  overflow: visible;
  padding-top: 28px;
  padding-right: 28px;
  padding-bottom: 32px;
}

.tab-stage {
  max-width: 1600px;
}

.ztx-ref-sidebar {
  width: 76px;
  padding: 18px 12px;
  background: linear-gradient(180deg, #05090f 0%, #070b11 62%, #0c0e10 100%) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 26px 0 60px rgba(0, 0, 0, 0.34);
  gap: 16px;
  overflow: visible;
}

.ztx-ref-sidebar.is-expanded {
  width: 226px;
}

.ztx-ref-dock-toggle {
  position: absolute;
  top: 14px;
  right: -17px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #ffffff;
  color: #090d13;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  z-index: 4;
}

.ztx-ref-dock-toggle .ztx-line-icon {
  width: 18px;
  height: 18px;
}

.ztx-ref-brand {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 70px;
  padding-top: 18px;
}

.ztx-ref-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: #d4af37;
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.34);
}

.ztx-ref-brand span {
  max-width: 168px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ztx-ref-sidebar.is-collapsed .ztx-ref-brand span {
  display: none;
}

.ztx-ref-sidebar.is-collapsed .ztx-ref-brand strong {
  font-size: 1.02rem;
}

.ztx-ref-nav-list {
  display: grid;
  gap: 9px;
  width: 100%;
  padding-top: 8px;
}

.ztx-ref-nav-item {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ztx-ref-nav-item:hover,
.ztx-ref-nav-item:focus-visible {
  background: rgba(212, 175, 55, 0.08);
  color: #fff2bb;
  transform: translateX(2px);
}

.ztx-ref-nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.96), rgba(244, 214, 107, 0.96)) !important;
  color: #11130f !important;
  border-color: rgba(255, 242, 166, 0.4);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.24), 0 14px 34px rgba(212, 175, 55, 0.16);
}

.ztx-line-icon {
  width: 21px;
  height: 21px;
  display: inline-block;
}

.ztx-ref-sidebar.is-collapsed .ztx-ref-nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.ztx-ref-sidebar.is-collapsed .dock-label {
  display: none;
}

.ztx-sidebar-pro-card {
  margin-top: auto;
  width: 100%;
  min-height: 92px;
  border: 1px solid rgba(255, 232, 143, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at top, rgba(255, 244, 184, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(66, 49, 5, 0.94), rgba(22, 18, 10, 0.98));
  color: #f8de75;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: inset 0 0 28px rgba(212, 175, 55, 0.12), 0 16px 34px rgba(0, 0, 0, 0.2);
  animation: ztxGoldPulse 2.6s ease-in-out infinite;
}

.ztx-sidebar-pro-card strong {
  color: #f8de75;
  font-size: 0.92rem;
}

.ztx-sidebar-pro-card small {
  color: rgba(255, 247, 206, 0.72);
  font-size: 0.66rem;
  line-height: 1.25;
}

.ztx-ref-sidebar.is-collapsed .ztx-sidebar-pro-card {
  min-height: 52px;
  border-radius: 14px;
  padding: 0;
}

.ztx-ref-sidebar.is-collapsed .ztx-sidebar-pro-card strong,
.ztx-ref-sidebar.is-collapsed .ztx-sidebar-pro-card small {
  display: none;
}

@keyframes ztxGoldPulse {
  0%, 100% { box-shadow: inset 0 0 24px rgba(212, 175, 55, 0.12), 0 16px 34px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: inset 0 0 36px rgba(212, 175, 55, 0.22), 0 18px 42px rgba(212, 175, 55, 0.15); }
}

.workspace-shell-pro.is-dock-expanded .workspace-body-pro {
  padding-left: 254px !important;
}

.workspace-shell-pro.is-dock-collapsed .workspace-body-pro {
  padding-left: 104px !important;
}

.ztx-dark-dashboard {
  display: grid;
  gap: 22px;
  color: #f4f7fb;
}

.ztx-dark-header {
  grid-template-columns: minmax(320px, 1fr) minmax(520px, auto);
  align-items: start;
}

.ztx-dark-header h2 {
  margin: 0 0 8px;
  color: #f6f8fb;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ztx-dark-header p {
  color: rgba(255, 255, 255, 0.58);
}

.ztx-dark-filters {
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(190px, auto);
}

.ztx-dark-filters label span {
  color: rgba(255, 255, 255, 0.58);
}

.ztx-dark-filters select {
  background: #0c1119;
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.04);
}

.ztx-dark-filters .dashboard-sync-badge {
  background: #101822;
  border-color: rgba(255, 255, 255, 0.09);
}

.ztx-dark-filters .dashboard-sync-badge strong {
  color: #24d982;
}

.ztx-dark-kpi-grid {
  gap: 18px;
}

.ztx-dark-kpi {
  min-height: 210px;
  background:
    radial-gradient(circle at 14% 12%, rgba(212, 175, 55, 0.08), transparent 34%),
    linear-gradient(180deg, #111821 0%, #0b1017 100%) !important;
  color: #f6f8fb;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.ztx-dark-kpi::after {
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0));
}

.ztx-dark-kpi .dashboard-kpi-icon {
  width: 56px;
  height: 56px;
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.06);
}

.ztx-dark-kpi small {
  color: rgba(255, 255, 255, 0.62);
}

.ztx-dark-kpi strong {
  color: #ffffff;
  min-height: 44px;
}

.ztx-dark-kpi p {
  color: rgba(255, 255, 255, 0.58);
}

.ztx-dark-kpi em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.44);
}

.ztx-dark-kpi .dashboard-kpi-trend {
  color: #38d47b;
}

.ztx-dark-kpi .dashboard-kpi-trend.is-red,
.ztx-dark-kpi.is-critical .dashboard-kpi-icon {
  color: #ff6b6b;
}

.ztx-dark-kpi.is-critical {
  border-bottom-color: #ff5b5b;
}

.ztx-dark-kpi.is-critical .dashboard-kpi-icon {
  border-color: rgba(255, 91, 91, 0.7);
  animation: ztxCriticalPulse 1.25s ease-in-out infinite;
}

@keyframes ztxCriticalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(255, 91, 91, 0.04); }
}

.ztx-dark-bottom-grid {
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.45fr);
  gap: 18px;
}

.ztx-dark-panel {
  background: #0b1017 !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f5f7fb;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25);
}

.ztx-dark-panel h3 {
  color: #f6f8fb;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ztx-view-all-btn {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.24);
  color: #f2d06c;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ztx-view-all-btn .ztx-line-icon {
  width: 16px;
  height: 16px;
}

.ztx-dark-alert-list .dashboard-alert {
  background: #0f151d;
  border-color: rgba(255, 255, 255, 0.08);
}

.ztx-dark-alert-list .dashboard-alert strong {
  color: #eef3fb;
}

.ztx-dark-alert-list .dashboard-alert p {
  color: rgba(255, 255, 255, 0.58);
}

.ztx-dark-panel .empty-state {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.58);
}

.ztx-dark-panel .line-chart-wrap {
  min-height: 315px;
}

.ztx-dark-panel .line-chart {
  min-height: 270px;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.12));
}

.ztx-dark-panel .line-legend {
  color: rgba(255, 255, 255, 0.72);
}

.ztx-dark-panel .line-legend small {
  color: rgba(255, 255, 255, 0.5);
}

.ztx-dark-panel .line-legend strong {
  color: #ffffff;
}

.quiz-answer-stack > span {
  text-align: center;
}

.quiz-date-control {
  width: min(320px, 100%);
  margin: 0 auto;
  text-align: center;
  display: block;
}

.quiz-choice-grid .quiz-choice-button {
  text-align: left;
}

.list-gold-page .luxury-cta {
  background: linear-gradient(135deg, #d4af37, #f3d66d);
  color: #151006;
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.22);
}

.list-gold-page .panel-dark,
.list-gold-master {
  background: #0b1017 !important;
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.09);
}

.gold-member-card-pro {
  border-color: rgba(212, 175, 55, 0.16);
}

.gold-member-modal-pro {
  background: #f7f8fb;
}

.ztx-pro-upgrade-modal {
  position: relative;
  width: min(1180px, calc(100vw - 28px));
  min-height: min(780px, calc(100vh - 28px));
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(340px, 1.12fr);
  gap: 28px;
  padding: 34px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 222, 118, 0.08), transparent 18%, rgba(255, 222, 118, 0.06) 42%, transparent 62%),
    radial-gradient(circle at 72% 26%, rgba(212, 175, 55, 0.24), transparent 32%),
    radial-gradient(circle at 30% 92%, rgba(212, 175, 55, 0.12), transparent 34%),
    linear-gradient(135deg, #050608 0%, #0b0d10 60%, #171102 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #fff;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.ztx-pro-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.ztx-pro-left,
.ztx-pro-right {
  display: grid;
  align-content: center;
}

.ztx-pro-left {
  gap: 20px;
}

.ztx-pro-mark {
  color: #d4af37;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ztx-pro-left h3 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 0.82;
  color: #d4af37;
  letter-spacing: -0.08em;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.32);
}

.ztx-pro-title-animated {
  animation: ztxProGlow 2.8s ease-in-out infinite;
}

@keyframes ztxProGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
    text-shadow: 0 0 42px rgba(212, 175, 55, 0.48);
  }
}

.ztx-pro-left p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.ztx-pro-subtitle {
  margin-top: -12px !important;
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: 0.01em;
}

.ztx-current-plan {
  width: fit-content;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.ztx-current-plan span {
  color: #d4af37;
}

.ztx-current-plan small {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ztx-current-plan strong {
  color: #fff;
}

.ztx-pro-price {
  display: grid;
  gap: 3px;
}

.ztx-pro-price small {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.ztx-pro-price strong {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.07em;
}

.ztx-pro-price span {
  font-size: 1rem;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.66);
}

.ztx-pro-main-button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #d4af37, #ffe680);
  color: #171207;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ztx-pro-safe {
  font-size: 0.86rem;
}

.ztx-pro-right {
  gap: 22px;
}

.ztx-diamond-stage {
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f5d568;
  background:
    radial-gradient(circle, rgba(255, 238, 156, 0.24), transparent 62%),
    radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  filter: drop-shadow(0 0 36px rgba(212, 175, 55, 0.28));
}

.ztx-diamond-stage .ztx-line-icon {
  width: 148px;
  height: 148px;
  stroke-width: 1.25;
  animation: ztxDiamondTurn 8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(245, 213, 104, 0.42));
  transform-origin: center;
}

@keyframes ztxDiamondTurn {
  0%, 100% {
    transform: perspective(460px) rotateY(-7deg) rotateX(0deg);
  }
  50% {
    transform: perspective(460px) rotateY(12deg) rotateX(4deg);
  }
}

.ztx-benefit-box {
  padding: 24px;
  border-radius: 26px;
  background: rgba(5, 7, 10, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: inset 0 0 34px rgba(212, 175, 55, 0.07);
}

.ztx-benefit-box h4 {
  margin: 0 0 16px;
  color: #f6d96e;
  font-size: 1.05rem;
}

.ztx-benefit-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ztx-benefit-box li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.ztx-benefit-box li .ztx-line-icon {
  width: 18px;
  height: 18px;
  color: #20c874;
}

.ztx-pro-trust-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ztx-pro-trust-row span {
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(212, 175, 55, 0.16);
  color: rgba(255, 255, 255, 0.75);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  text-align: left;
}

.ztx-pro-trust-row .ztx-line-icon {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  color: #d4af37;
}

.ztx-pro-trust-row strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.ztx-pro-trust-row small {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.25;
}

.ztx-settings-pro-open {
  background: linear-gradient(135deg, #d4af37, #f4dd79) !important;
  color: #171207 !important;
  border-color: rgba(255, 242, 166, 0.5) !important;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.18);
}

.ztx-checkout-frame-modal {
  width: min(980px, calc(100vw - 22px));
  height: min(760px, calc(100vh - 22px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #060a11;
  color: #fff;
  border-color: rgba(212, 175, 55, 0.26);
}

.ztx-checkout-frame-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

.ztx-checkout-frame-modal p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.ztx-checkout-frame-modal a {
  color: #f0cf63;
}

.ztx-mobile-pro-item {
  background: linear-gradient(135deg, #d4af37, #f2d66b) !important;
  color: #171207 !important;
  border-color: rgba(255, 237, 158, 0.5) !important;
}

@media (max-width: 1180px) {
  .ztx-dark-header,
  .ztx-dark-bottom-grid {
    grid-template-columns: 1fr;
  }

  .ztx-dark-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .workspace-body-pro,
  .workspace-shell-pro.is-dock-expanded .workspace-body-pro,
  .workspace-shell-pro.is-dock-collapsed .workspace-body-pro {
    padding: 16px 14px 108px !important;
  }

  .ztx-dark-header {
    gap: 16px;
  }

  .ztx-dark-filters,
  .ztx-dark-kpi-grid,
  .ztx-pro-upgrade-modal,
  .ztx-pro-trust-row {
    grid-template-columns: 1fr;
  }

  .ztx-dark-kpi {
    min-height: 158px;
  }

  .ztx-pro-upgrade-modal {
    padding: 24px 18px;
    min-height: auto;
  }

  .ztx-diamond-stage {
    height: 180px;
  }

  .ztx-diamond-stage .ztx-line-icon {
    width: 104px;
    height: 104px;
  }
}

/* ZTX white operations final override */
body {
  background: #ffffff !important;
  color: #111827;
}

#app,
.workspace-shell-pro,
.workspace-body-pro {
  background:
    radial-gradient(circle at 86% 10%, rgba(212, 175, 55, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%) !important;
  color: #111827 !important;
}

.tab-stage {
  color: #111827;
}

.ztx-dark-dashboard,
.tab-view {
  color: #111827 !important;
}

.ztx-dark-header h2,
.section-headline-clean h2 {
  color: #111827 !important;
}

.ztx-dark-header h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem) !important;
}

.ztx-dark-header p,
.ztx-dark-filters label span,
.section-copy,
.record-note,
.micro-note {
  color: #4b5563 !important;
}

.eyebrow,
.luxury-eyebrow,
.section-headline-clean .eyebrow,
.panel small {
  color: #b9870f !important;
}

.panel,
.record-card,
.metric-card,
.intel-item,
.shortcut-card,
.dashboard-kpi-card,
.ztx-dark-kpi,
.ztx-dark-panel,
.dashboard-alert,
.settings-about-item,
.gold-member-block {
  background: #f5f5f5 !important;
  color: #111827 !important;
  border: 1px solid #e1e4e8 !important;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06) !important;
}

.panel-dark,
.metric-card.dark,
.list-gold-page .panel-dark,
.list-gold-master {
  background: #f0f0f0 !important;
  color: #111827 !important;
  border-color: #d7dbe0 !important;
}

.panel h3,
.ztx-dark-panel h3,
.record-card h4,
.metric-card strong,
.intel-item strong,
.dashboard-kpi-card strong,
.dashboard-alert strong,
.line-legend strong,
.panel-dark small,
.panel-dark .record-note {
  color: #111827 !important;
}

.panel p,
.dashboard-kpi-card p,
.dashboard-alert p,
.metric-card span,
.line-legend small,
.panel-dark p {
  color: #4b5563 !important;
}

.dashboard-sync-badge {
  background: #f5f5f5 !important;
  color: #111827 !important;
  border-color: #e1e4e8 !important;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.06);
}

.dashboard-sync-badge strong {
  color: #16a34a !important;
}

.dashboard-sync-badge small {
  color: #4b5563 !important;
}

.ztx-dark-filters select,
.dashboard-ref-filters select,
.filter-grid input,
.filter-grid select,
.stack-form input,
.stack-form textarea,
.stack-form select {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #d8dde5 !important;
}

.ztx-dark-kpi .dashboard-kpi-icon,
.dashboard-kpi-icon {
  color: #b9870f !important;
  border-color: rgba(212, 175, 55, 0.55) !important;
  background: rgba(212, 175, 55, 0.08) !important;
}

.ztx-dark-kpi.is-critical {
  border-color: rgba(255, 91, 91, 0.5) !important;
}

.ztx-dark-panel .empty-state,
.empty-state {
  background: #eceff3 !important;
  color: #4b5563 !important;
}

.luxury-cta,
.btn-primary,
.list-gold-page .luxury-cta {
  background: linear-gradient(135deg, #d4af37, #f1d875) !important;
  color: #171207 !important;
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.2) !important;
}

.ztx-premium-lock {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
}

.ztx-premium-lock .ztx-line-icon {
  width: 15px;
  height: 15px;
}

.ztx-ref-nav-item.active .ztx-premium-lock {
  color: rgba(17, 19, 15, 0.65);
}

.ztx-ref-sidebar.is-collapsed .ztx-premium-lock {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 14px;
  height: 14px;
}

.ztx-locked-page {
  min-height: min(620px, calc(100vh - 70px));
  display: grid;
  place-items: center;
}

.ztx-locked-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: #f5f5f5;
  border: 1px solid #e1e4e8;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
  text-align: center;
  display: grid;
  gap: 14px;
}

.ztx-locked-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.14);
  color: #b9870f;
}

.ztx-settings-fixed-panel {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, #111827, #070b12);
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.settings-modal-card {
  width: auto !important;
  max-height: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ztx-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ztx-settings-head small {
  color: #d4af37;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ztx-settings-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.ztx-settings-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.ztx-settings-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ztx-settings-nav-btn {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 850;
}

.ztx-settings-nav-btn.is-active {
  background: linear-gradient(135deg, #d4af37, #f1d875);
  color: #171207;
  border-color: rgba(255, 242, 166, 0.55);
}

.ztx-settings-nav-btn.is-logout {
  margin-top: 10px;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  font-size: 0.84rem;
  color: #b8bec9;
  background: rgba(255, 255, 255, 0.05);
}

.ztx-settings-content {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.ztx-settings-pane {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: #f5f5f5;
  color: #111827;
  border: 1px solid #e1e4e8;
}

.ztx-settings-pane h3,
.ztx-account-form label span {
  color: #111827;
}

.ztx-settings-pane small,
.ztx-settings-pane p {
  color: #4b5563;
}

.ztx-pro-inline-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.13);
  color: #8a6506;
  font-weight: 800;
  font-size: 0.84rem;
}

.ztx-pro-inline-lock .ztx-line-icon {
  width: 16px;
  height: 16px;
}

.ztx-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e1e4e8;
}

.ztx-plan-card small,
.ztx-plan-card span {
  display: block;
  color: #4b5563;
}

.ztx-plan-card strong {
  display: block;
  margin: 3px 0;
  color: #111827;
  font-size: 1.25rem;
}

.ztx-plan-card.is-pro {
  border-color: rgba(212, 175, 55, 0.38);
  background: linear-gradient(135deg, #fffdf3, #ffffff);
}

.ztx-plan-card a,
.ztx-plan-card button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4af37, #f1d875);
  color: #171207;
  font-weight: 900;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
}

.ztx-renewal-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8dc, #ffffff);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ztx-renewal-banner span {
  color: #4b5563;
}

.ztx-renewal-banner a {
  margin-left: auto;
  color: #8a6506;
  font-weight: 900;
}

.ztx-pro-upgrade-modal {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}

.ztx-pro-main-button {
  text-decoration: none;
  display: grid;
  place-items: center;
}

.ztx-pro-welcome-modal {
  width: min(720px, calc(100vw - 28px));
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(212, 175, 55, 0.24), transparent 38%),
    linear-gradient(135deg, #050608, #111827);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.32);
}

.ztx-welcome-diamond {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f1d875;
  background: rgba(212, 175, 55, 0.1);
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.4));
}

.ztx-welcome-diamond .ztx-line-icon {
  width: 84px;
  height: 84px;
}

.ztx-pro-welcome-modal h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.ztx-pro-welcome-modal p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.ztx-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ztx-confetti i {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: hsl(calc(var(--i) * 29), 82%, 58%);
  animation: ztxConfettiFall 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.07s);
}

@keyframes ztxConfettiFall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(620px) rotate(360deg); opacity: 0; }
}

@media (max-width: 760px) {
  .ztx-settings-fixed-panel {
    width: min(100vw - 14px, 1040px);
    max-height: calc(100vh - 14px);
    padding: 16px;
    border-radius: 24px;
  }

  .ztx-settings-layout {
    grid-template-columns: 1fr;
  }

  .ztx-settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-settings-content {
    max-height: 58vh;
  }

  .ztx-plan-card,
  .ztx-renewal-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .ztx-renewal-banner a {
    margin-left: 0;
  }
}

/* ZTX checkout rebuild + theme toggle + PC scroll */
html,
body,
#app {
  overflow-y: auto !important;
}

body {
  overscroll-behavior-y: auto !important;
  scroll-behavior: smooth;
}

.workspace-shell-pro,
.workspace-body-pro,
.tab-stage {
  overflow: visible !important;
}

.ztx-pro-inline-note {
  margin-top: -8px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.9rem;
}

.ztx-theme-toggle {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  padding: 0;
}

.ztx-theme-toggle-track {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(230,234,240,0.98));
  border: 1px solid rgba(8, 12, 19, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 12px 24px rgba(9,17,31,0.08);
}

.ztx-theme-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #18202d;
}

.ztx-theme-icon .ztx-line-icon {
  width: 20px;
  height: 20px;
}

.ztx-theme-toggle-thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, #1c1f26, #0b0d11);
  box-shadow: 0 14px 24px rgba(0,0,0,0.22);
  transition: transform 180ms ease;
}

.ztx-theme-toggle.is-dark .ztx-theme-toggle-track {
  background: linear-gradient(180deg, rgba(16,18,24,0.98), rgba(34,38,48,0.98));
  border-color: rgba(255,255,255,0.08);
}

.ztx-theme-toggle.is-dark .ztx-theme-icon {
  color: #f6f7fa;
}

.ztx-theme-toggle.is-dark .ztx-theme-toggle-thumb {
  transform: translateX(100%);
  background: linear-gradient(180deg, #f7f7fa, #d9dde5);
}

.ztx-theme-toggle.is-dark .ztx-theme-icon-moon {
  color: #171a21;
}

.ztx-theme-toggle.is-light .ztx-theme-icon-sun {
  color: #171a21;
}

.ztx-mobile-theme-slot {
  padding-top: 10px;
}

.ztx-mobile-theme-slot .ztx-theme-toggle {
  margin-top: 0;
}

.ztx-ref-sidebar.is-collapsed .ztx-theme-toggle-track {
  min-height: 50px;
  padding: 5px;
}

.ztx-ref-sidebar.is-collapsed .ztx-theme-icon .ztx-line-icon {
  width: 17px;
  height: 17px;
}

html[data-theme="dark"] body {
  background: #06090f !important;
  color: #eef2f7 !important;
}

html[data-theme="dark"] #app,
html[data-theme="dark"] .workspace-shell-pro,
html[data-theme="dark"] .workspace-body-pro {
  background:
    radial-gradient(circle at 86% 10%, rgba(212, 175, 55, 0.12), transparent 22%),
    linear-gradient(180deg, #070a10 0%, #0d1219 100%) !important;
  color: #eef2f7 !important;
}

html[data-theme="dark"] .ambient-line {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.18), transparent);
}

html[data-theme="dark"] .ambient-orb-a {
  background: rgba(212, 175, 55, 0.18);
}

html[data-theme="dark"] .ambient-orb-b {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .ztx-dark-dashboard,
html[data-theme="dark"] .tab-view,
html[data-theme="dark"] .tab-stage,
html[data-theme="dark"] .workspace-body-pro {
  color: #eef2f7 !important;
}

html[data-theme="dark"] .ztx-dark-header h2,
html[data-theme="dark"] .section-headline h2,
html[data-theme="dark"] .section-headline-clean h2,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .eyebrow {
  color: #d4af37 !important;
}

html[data-theme="dark"] .ztx-dark-header p,
html[data-theme="dark"] .section-copy,
html[data-theme="dark"] .micro-note,
html[data-theme="dark"] .record-note,
html[data-theme="dark"] .panel small,
html[data-theme="dark"] .intel-item small,
html[data-theme="dark"] .shortcut-card small,
html[data-theme="dark"] .cloud-chip,
html[data-theme="dark"] .filter-grid label span,
html[data-theme="dark"] .ztx-plan-card small,
html[data-theme="dark"] .ztx-plan-card span {
  color: rgba(235, 241, 249, 0.72) !important;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .record-card,
html[data-theme="dark"] .shortcut-card,
html[data-theme="dark"] .cloud-chip,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .metric-card.warning,
html[data-theme="dark"] .metric-card.accent,
html[data-theme="dark"] .metric-card.dark,
html[data-theme="dark"] .record-card-danger,
html[data-theme="dark"] .filter-grid input,
html[data-theme="dark"] .filter-grid select,
html[data-theme="dark"] .stack-form input,
html[data-theme="dark"] .stack-form textarea,
html[data-theme="dark"] .stack-form select,
html[data-theme="dark"] .field-chip select,
html[data-theme="dark"] .ztx-settings-fixed-panel,
html[data-theme="dark"] .ztx-settings-content,
html[data-theme="dark"] .ztx-settings-pane,
html[data-theme="dark"] .settings-about-item,
html[data-theme="dark"] .ztx-plan-card {
  background: #10161f !important;
  color: #eef2f7 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .filter-grid input,
html[data-theme="dark"] .filter-grid select,
html[data-theme="dark"] .stack-form input,
html[data-theme="dark"] .stack-form textarea,
html[data-theme="dark"] .stack-form select,
html[data-theme="dark"] .field-chip select {
  color: #f5f7fb !important;
}

html[data-theme="dark"] .btn-soft,
html[data-theme="dark"] .mini-btn,
html[data-theme="dark"] .card-menu summary,
html[data-theme="dark"] .icon-close,
html[data-theme="dark"] .ztx-settings-nav-btn {
  background: #171d28 !important;
  color: #eef2f7 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ztx-settings-nav-btn.is-active {
  background: linear-gradient(135deg, rgba(212,175,55,0.95), rgba(244,214,107,0.95)) !important;
  color: #15120b !important;
  border-color: rgba(255, 238, 169, 0.4) !important;
}

html[data-theme="dark"] .record-link,
html[data-theme="dark"] .ztx-renewal-banner a {
  color: #f3d462 !important;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .record-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .settings-about-item,
html[data-theme="dark"] .ztx-plan-card,
html[data-theme="dark"] .ztx-calendar-day,
html[data-theme="dark"] .ztx-calendar-alert-banner,
html[data-theme="dark"] .ztx-calendar-event-pill,
html[data-theme="dark"] .scope-bar,
html[data-theme="dark"] .ztx-calendar-shell,
html[data-theme="dark"] .ztx-calendar-events-panel {
  background: #f5f6f8 !important;
  color: #141922 !important;
  border-color: rgba(202, 209, 220, 0.9) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.55) inset !important;
}

html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .record-card h4,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .ztx-calendar-day strong,
html[data-theme="dark"] .ztx-calendar-alert-banner strong,
html[data-theme="dark"] .settings-about-item strong,
html[data-theme="dark"] .ztx-calendar-record h4 {
  color: #161b23 !important;
}

html[data-theme="dark"] .metric-card small,
html[data-theme="dark"] .metric-card p,
html[data-theme="dark"] .record-card p,
html[data-theme="dark"] .record-note,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .settings-about-item span,
html[data-theme="dark"] .ztx-calendar-day-add,
html[data-theme="dark"] .ztx-calendar-alert-list span,
html[data-theme="dark"] .ztx-calendar-event-pill span {
  color: #5f6978 !important;
}

html[data-theme="dark"] .meta-chip,
html[data-theme="dark"] .status-pill.accent,
html[data-theme="dark"] .status-pill.warn,
html[data-theme="dark"] .status-pill.positive,
html[data-theme="dark"] .status-pill.danger {
  border-color: rgba(202, 209, 220, 0.9) !important;
}

html[data-theme="dark"] .scope-bar,
html[data-theme="dark"] .field-chip,
html[data-theme="dark"] .field-chip select,
html[data-theme="dark"] .weekday-pill,
html[data-theme="dark"] .mini-btn,
html[data-theme="dark"] .btn-soft {
  color: #171c24 !important;
}

html[data-theme="dark"] .field-chip,
html[data-theme="dark"] .field-chip select,
html[data-theme="dark"] .weekday-pill,
html[data-theme="dark"] .mini-btn,
html[data-theme="dark"] .btn-soft,
html[data-theme="dark"] .ztx-calendar-search {
  background: #eef1f5 !important;
  border-color: rgba(195, 203, 214, 0.95) !important;
}

html[data-theme="dark"] .ztx-calendar-search {
  color: #171c24 !important;
}

html[data-theme="dark"] .record-list .record-card,
html[data-theme="dark"] .ztx-calendar-event-pill {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

.ztx-manage-subscription-btn {
  justify-content: center;
}

.settings-reset-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  text-decoration: underline;
  font-weight: 800;
  padding: 0;
}

.ztx-account-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 2px;
}

.ztx-account-reset-row span {
  font-size: 0.92rem;
  font-weight: 700;
}

.ztx-calendar-page {
  display: grid;
  gap: 18px;
}

.ztx-calendar-alert-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
}

.ztx-calendar-alert-banner small {
  display: block;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ztx-calendar-alert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}

.ztx-calendar-shell,
.ztx-calendar-events-panel {
  padding: 20px;
  border-radius: 26px;
}

.ztx-calendar-toolbar,
.ztx-calendar-toolbar-main,
.ztx-calendar-filters,
.ztx-calendar-filter-chips {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ztx-calendar-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.ztx-calendar-summary-grid {
  margin-bottom: 18px;
}

.ztx-calendar-grid-head,
.ztx-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.ztx-calendar-grid-head {
  margin-bottom: 10px;
  padding: 0 4px;
}

.ztx-calendar-grid-head span {
  text-align: center;
  font-weight: 800;
  color: #202633;
}

.ztx-calendar-day {
  min-height: 138px;
  border-radius: 18px;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

.ztx-calendar-day.is-empty {
  min-height: 138px;
  border-radius: 18px;
  border: 1px dashed rgba(203, 213, 225, 0.7);
  background: rgba(255, 255, 255, 0.45);
}

.ztx-calendar-day.is-today {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(247, 247, 244, 0.96));
}

.ztx-calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ztx-calendar-day-top strong {
  font-size: 1.02rem;
}

.ztx-calendar-day-add,
.ztx-calendar-more {
  border: 0;
  background: transparent;
  font-weight: 800;
}

.ztx-calendar-day-items {
  display: grid;
  gap: 8px;
}

.ztx-calendar-event-pill {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ztx-calendar-event-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--calendar-accent, #c79b2d);
}

.ztx-calendar-event-pill strong {
  font-size: 0.82rem;
  color: #111827;
}

.ztx-calendar-event-pill span {
  font-size: 0.74rem;
}

.ztx-calendar-event-list {
  display: grid;
  gap: 12px;
}

.ztx-calendar-record {
  padding: 16px 18px;
}

.ztx-calendar-search {
  width: min(320px, 100%);
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
}

.ztx-calendar-modal,
.ztx-calendar-detail-modal,
.ztx-calendar-months-modal {
  width: min(880px, calc(100vw - 32px));
}

.ztx-calendar-form-grid .ztx-calendar-form-full {
  grid-column: 1 / -1;
}

.ztx-calendar-modal-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.ztx-calendar-months-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ztx-calendar-detail-notes {
  display: grid;
  gap: 8px;
}

.ztx-calendar-detail-notes span {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 980px) {
  .ztx-calendar-alert-banner,
  .ztx-calendar-toolbar,
  .ztx-calendar-toolbar-main,
  .ztx-calendar-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .ztx-calendar-grid-head,
  .ztx-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ztx-calendar-grid-head,
  .ztx-calendar-grid,
.ztx-calendar-months-grid {
  grid-template-columns: 1fr;
}
}

.ztx-theme-toggle,
.ztx-mobile-theme-slot {
  display: none !important;
}

.ztx-ref-sidebar {
  width: 84px;
  padding: 16px 12px 18px;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.1), transparent 22%),
    linear-gradient(180deg, #06080d 0%, #090b10 58%, #0d1015 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.36), inset -1px 0 0 rgba(212, 175, 55, 0.08);
  gap: 18px;
}

.ztx-ref-sidebar.is-expanded {
  width: 238px;
}

.ztx-ref-dock-toggle {
  top: 18px;
  right: -18px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.ztx-ref-brand {
  gap: 10px;
  padding-top: 10px;
  min-height: 118px;
}

.ztx-ref-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08), 0 16px 28px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ztx-ref-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ztx-ref-avatar span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f7f2d0;
}

.ztx-ref-brand strong {
  font-size: 1.28rem;
  letter-spacing: 0.14em;
}

.ztx-ref-nav-list {
  gap: 10px;
  padding-top: 0;
}

.ztx-ref-nav-item {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92);
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
}

.ztx-ref-nav-item:hover,
.ztx-ref-nav-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ztx-ref-nav-item.active {
  background: linear-gradient(180deg, #f0d15a 0%, #d4af37 100%) !important;
  color: #0d1015 !important;
  border-color: rgba(255, 242, 166, 0.32);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.ztx-ref-sidebar.is-collapsed .ztx-ref-nav-item {
  min-height: 52px;
  border-radius: 16px;
}

.ztx-sidebar-pro-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  border-radius: 16px;
  border: 1px solid rgba(240, 209, 90, 0.44);
  background:
    radial-gradient(circle at 18% 18%, rgba(248, 226, 120, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(21, 18, 12, 0.98), rgba(12, 10, 8, 1));
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1), 0 18px 28px rgba(0, 0, 0, 0.22);
  animation: ztxGoldPulse 3.4s ease-in-out infinite;
}

.ztx-sidebar-pro-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(247,223,134,0.9), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
  animation: ztxGoldSweep 4.6s linear infinite;
}

.ztx-sidebar-pro-card::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.24), transparent 68%);
  opacity: 0.45;
  z-index: -1;
  animation: ztxGoldBreath 3.8s ease-in-out infinite;
}

.ztx-ref-sidebar.is-collapsed .ztx-sidebar-pro-card {
  min-height: 58px;
}

.ztx-pending-delete-inline,
.ztx-delete-pending-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(234, 179, 8, 0.22);
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.96), rgba(245, 235, 194, 0.92));
  color: #2b2112;
}

.ztx-pending-delete-inline {
  margin-bottom: 18px;
}

.ztx-pending-delete-inline small,
.ztx-delete-pending-banner strong {
  color: #8a6511;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ztx-pending-delete-inline strong,
.ztx-delete-pending-banner strong {
  display: block;
  margin-top: 4px;
}

.ztx-pending-delete-inline p,
.ztx-delete-pending-banner p {
  margin: 6px 0 0;
  color: rgba(43, 33, 18, 0.8);
}

.ztx-delete-reason-list {
  display: grid;
  gap: 10px;
}

.ztx-delete-reason-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ztx-delete-reason-option.is-selected {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.95), rgba(249, 240, 199, 0.95));
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.12);
}

.ztx-calendar-alert-banner {
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(circle at right top, rgba(255, 248, 220, 0.88), transparent 24%),
    radial-gradient(circle at center, rgba(245, 221, 146, 0.18), transparent 55%),
    linear-gradient(135deg, #fff9e2 0%, #f6e4a5 42%, #fff4cf 100%);
  color: #2a1d08;
  box-shadow: 0 18px 34px rgba(212, 175, 55, 0.16);
}

.ztx-calendar-alert-banner small {
  color: #b27a00;
  letter-spacing: 0.16em;
}

.ztx-calendar-alert-banner strong {
  color: #241a0b;
  font-size: 1.25rem;
}

.ztx-calendar-alert-banner .action-row {
  gap: 12px;
}

.ztx-calendar-alert-banner .mini-btn {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  box-shadow: 0 10px 18px rgba(212, 175, 55, 0.08);
}

.ztx-calendar-alert-banner .mini-btn.is-selected {
  background: #f7fbff;
  color: #1d4ed8;
}

@keyframes ztxGoldSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes ztxGoldBreath {
  0%, 100% { opacity: 0.22; transform: scale(0.96); }
  50% { opacity: 0.42; transform: scale(1); }
}

@media (max-width: 900px) {
  .ztx-pending-delete-inline,
  .ztx-delete-pending-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Final premium page/account/delete/ads/gold refinements */
.ztx-settings-page {
  gap: 22px;
}

.ztx-settings-page-header small,
.ztx-surface-header small {
  display: block;
  margin-bottom: 8px;
  color: #b7881d;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.ztx-settings-page-header h2,
.ztx-surface-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  color: #111827;
}

.ztx-settings-page-header p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 1rem;
}

.ztx-settings-page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ztx-settings-page-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #081019 0%, #0d1724 100%);
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 26px 36px rgba(5, 12, 24, 0.16);
}

.ztx-settings-page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.9);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ztx-settings-page-nav-btn:hover {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(255,255,255,0.06);
}

.ztx-settings-page-nav-btn.is-active {
  color: #1d1402;
  border-color: rgba(212, 175, 55, 0.48);
  background: linear-gradient(135deg, #c89621 0%, #f4da71 48%, #e5be3d 100%);
  box-shadow: 0 16px 28px rgba(212, 175, 55, 0.22);
}

.ztx-settings-page-nav-btn.is-logout {
  margin-top: 10px;
  min-height: 44px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
}

.ztx-settings-page-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.ztx-settings-page-content,
.ztx-clean-surface {
  display: grid;
  gap: 22px;
}

.ztx-settings-page-pane,
.ztx-clean-surface .panel {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,248,250,0.98));
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 24px 38px rgba(15, 23, 42, 0.08);
}

.ztx-settings-profile-pane {
  overflow: hidden;
}

.ztx-settings-profile-hero {
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.ztx-settings-profile-cover {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(120deg, rgba(17,24,39,0.18), rgba(17,24,39,0.08)),
    linear-gradient(120deg, #d6c8b7 0%, #efe3d4 34%, #f7f4ef 100%);
  background-size: cover;
  background-position: center;
}

.ztx-settings-profile-cover-edit,
.ztx-settings-profile-avatar-edit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  cursor: pointer;
}

.ztx-settings-profile-cover-edit { top: 18px; right: 18px; }
.ztx-settings-profile-avatar-edit { right: -4px; bottom: 4px; width: 38px; height: 38px; }

.ztx-settings-profile-summary {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: end;
  padding: 0 22px 22px;
  margin-top: -62px;
}

.ztx-settings-profile-avatar-wrap { position: relative; width: 124px; }

.ztx-settings-profile-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f6ef, #ece7db);
  border: 6px solid #fff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #b7881d;
}

.ztx-settings-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ztx-settings-profile-heading { padding-bottom: 10px; }
.ztx-settings-profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ztx-settings-profile-name-row strong { font-size: 2rem; color: #111827; }
.ztx-settings-profile-heading p { margin: 4px 0 0; color: #6b7280; }

.ztx-profile-pro-pill,
.ztx-inline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(228, 190, 61, 0.18);
  color: #8a6511;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ztx-inline-status.is-positive { background: rgba(34, 197, 94, 0.16); color: #11763c; }
.ztx-inline-status.is-negative { background: rgba(239, 68, 68, 0.14); color: #b42318; }

.ztx-settings-form-grid,
.ztx-account-panel-form {
  display: grid;
  gap: 20px;
  padding: 0 22px 22px;
}

.ztx-settings-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.ztx-field {
  display: grid;
  gap: 8px;
  color: #111827;
}

.ztx-field > span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
}

.ztx-field input,
.ztx-field select,
.ztx-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.ztx-field textarea {
  min-height: 132px;
  padding: 16px;
  resize: vertical;
}

.ztx-field small {
  color: #6b7280;
  font-size: 0.83rem;
}

.ztx-field-span-2 { grid-column: 1 / -1; }

.ztx-settings-form-footer {
  display: flex;
  justify-content: flex-end;
}

.ztx-settings-section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.ztx-settings-section-head h3,
.ztx-settings-section-head h4 {
  margin: 0;
  color: #111827;
}

.ztx-settings-section-head::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212,175,55,0.85), rgba(212,175,55,0));
}

.ztx-account-plan-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(252,246,228,0.92));
}

.ztx-account-plan-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b7881d;
  background: radial-gradient(circle, rgba(255,248,220,0.98), rgba(248,235,184,0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ztx-account-plan-main strong { display: block; font-size: 2rem; color: #111827; }
.ztx-account-plan-main p { margin: 8px 0 0; color: #6b7280; }
.ztx-account-plan-title-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ztx-account-plan-meta {
  display: grid;
  gap: 12px;
}

.ztx-account-plan-meta div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 4px 10px;
  align-items: start;
}

.ztx-account-plan-meta span {
  grid-row: 1 / span 2;
  color: #b7881d;
}

.ztx-account-plan-meta small,
.ztx-account-bottom-bar small {
  color: #6b7280;
}

.ztx-account-plan-meta strong,
.ztx-account-bottom-bar strong {
  color: #111827;
}

.ztx-account-manage-link,
.ztx-account-reset-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: #fff;
  color: #2c2f36;
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.08);
}

.ztx-account-manage-link strong,
.ztx-account-reset-button span { display: inline-flex; align-items: center; }

.ztx-account-info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 4px;
}

.ztx-account-inner-head { margin-bottom: -6px; }

.ztx-account-security-row,
.ztx-account-bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.ztx-account-security-action {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.ztx-account-meta-line { margin: 0 0 6px; color: #111827; }

.ztx-account-danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: linear-gradient(135deg, rgba(255, 244, 244, 0.98), rgba(255, 247, 247, 0.98));
}

.ztx-account-danger-zone p,
.ztx-account-danger-zone small { margin: 0; color: #7a3030; }

.ztx-account-delete-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d83b3b, #ef5350);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.18);
}

.ztx-account-bottom-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.ztx-account-save-button[data-role="submit-watch"]:disabled,
.ztx-settings-form-grid [data-role="submit-watch"]:disabled {
  opacity: 0.54;
  filter: saturate(0.8);
  cursor: not-allowed;
  box-shadow: none;
}

.ztx-account-security-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #8a94a6;
  font-size: 0.86rem;
}

.ztx-delete-premium-modal {
  width: min(1100px, calc(100vw - 48px));
  padding: 34px 38px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,249,246,0.98));
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.24);
}

.ztx-delete-premium-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ztx-delete-premium-topbar small {
  color: #b7881d;
  font-size: 0.88rem;
  font-weight: 700;
}

.ztx-delete-premium-close {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(17,24,39,0.1);
  color: #111827;
  font-size: 2rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.ztx-delete-premium-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.ztx-delete-premium-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b7881d;
  background: radial-gradient(circle, rgba(255,248,220,0.98), rgba(248,235,184,0.86));
  border: 1px solid rgba(212,175,55,0.28);
}

.ztx-delete-premium-head h3 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
  color: #111827;
}

.ztx-delete-premium-head p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 1.1rem;
}

.ztx-delete-premium-form {
  display: grid;
  gap: 18px;
}

.ztx-delete-premium-divider {
  height: 1px;
  background: rgba(17, 24, 39, 0.1);
}

.ztx-delete-premium-actions {
  display: flex;
  justify-content: flex-end;
}

.ztx-delete-premium-continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #b9851f, #d9b158);
  box-shadow: 0 16px 28px rgba(212, 175, 55, 0.18);
}

.ztx-delete-premium-continue.is-disabled,
.ztx-delete-premium-continue:disabled {
  background: linear-gradient(135deg, #ddd7c8, #e9e4d7);
  color: rgba(17, 24, 39, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

.ztx-delete-premium-info {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbf7ef, #f8f5ee);
}

.ztx-delete-premium-info span {
  color: #b7881d;
}

.ztx-delete-premium-info strong,
.ztx-delete-premium-info small { display: block; }

.ztx-delete-premium-info strong { color: #374151; }
.ztx-delete-premium-info small { margin-top: 6px; color: #8a94a6; }

.ztx-delete-reason-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ztx-surface-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.ztx-surface-header p {
  margin: 8px 0 0;
  color: #6b7280;
  max-width: 720px;
}

.ztx-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ztx-filter-bar-gold {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ztx-dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ztx-dashboard-stat {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
}

.ztx-dashboard-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b7881d;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.98), rgba(248, 239, 212, 0.98));
}

.ztx-dashboard-stat small,
.ztx-dashboard-stat span { display: block; color: #6b7280; }
.ztx-dashboard-stat strong { display: block; margin: 4px 0; color: #111827; font-size: 1.8rem; }

.ztx-alert-grid,
.ztx-two-column-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ztx-inline-alert {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.18);
}

.ztx-inline-alert.is-gold { background: linear-gradient(135deg, rgba(255,248,220,0.9), rgba(255,244,214,0.96)); }
.ztx-inline-alert.is-rose { background: linear-gradient(135deg, rgba(255,246,246,0.98), rgba(255,237,237,0.98)); border-color: rgba(239,68,68,0.12); }
.ztx-inline-alert strong { color: #111827; }
.ztx-inline-alert p { margin: 6px 0 0; color: #6b7280; }

.ztx-empty-panel,
.ztx-gold-table-panel,
.ztx-gold-side-panel {
  padding: 20px;
}

.ztx-empty-state-rich {
  display: grid;
  gap: 14px;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  color: #6b7280;
}

.ztx-empty-bars {
  display: flex;
  gap: 16px;
  align-items: end;
  min-height: 86px;
}

.ztx-empty-bars i {
  width: 26px;
  height: var(--h, 44px);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17,24,39,0.06), rgba(17,24,39,0.1));
}

.ztx-platform-bars,
.ztx-month-lines,
.ztx-status-bars {
  display: grid;
  gap: 14px;
}

.ztx-platform-bar,
.ztx-month-line-row,
.ztx-status-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
}

.ztx-platform-bar div,
.ztx-month-line-row div,
.ztx-status-bar-row div {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(17,24,39,0.06);
  overflow: hidden;
}

.ztx-platform-bar i,
.ztx-month-line-row i,
.ztx-status-bar-row i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, #f4d87a);
}

.ztx-month-line-row i.is-dark {
  background: linear-gradient(90deg, #111827, #4b5563);
  margin-top: 6px;
}

.ztx-gold-main-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
}

.ztx-gold-table {
  overflow-x: auto;
}

.ztx-gold-table-head,
.ztx-gold-table-row,
.ztx-record-table-head,
.ztx-record-table-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.ztx-gold-table-head,
.ztx-gold-table-row {
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr 0.9fr 0.9fr 1.4fr 0.5fr;
}

.ztx-record-table-head,
.ztx-record-table-row {
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.6fr 0.7fr 0.5fr 0.7fr;
}

.ztx-gold-table-head,
.ztx-record-table-head {
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ztx-gold-table-row,
.ztx-record-table-row {
  min-width: 920px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  color: #111827;
}

.ztx-gold-table-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ztx-gold-table-row i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(212,175,55,0.14);
  color: #8a6511;
  font-style: normal;
  font-weight: 700;
}

.ztx-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 700;
}

.ztx-status-tag.is-blue { background: rgba(59,130,246,0.12); color: #2563eb; }
.ztx-status-tag.is-gold { background: rgba(212,175,55,0.18); color: #8a6511; }
.ztx-status-tag.is-green { background: rgba(34,197,94,0.14); color: #15803d; }
.ztx-status-tag.is-red { background: rgba(239,68,68,0.14); color: #b42318; }
.ztx-status-tag.is-slate { background: rgba(148,163,184,0.16); color: #475569; }

.ztx-gold-actions { letter-spacing: 0.2em; text-align: center; color: #6b7280; }
.ztx-link-button,
.ztx-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b7881d;
  font-weight: 700;
}

.ztx-gold-next-actions {
  display: grid;
  gap: 12px;
}

.ztx-gold-next-action {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17,24,39,0.06);
}

.ztx-gold-next-date {
  width: 54px;
  min-height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,248,220,0.9), rgba(248,239,212,0.96));
  color: #8a6511;
}

.ztx-gold-next-date strong,
.ztx-gold-next-copy strong,
.ztx-gold-next-action time { color: #111827; }
.ztx-gold-next-copy p { margin: 4px 0 0; color: #6b7280; }

.ztx-gold-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.ztx-status-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
}

.ztx-status-donut {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    conic-gradient(#8ab4f8 0 24%, #f4d87a 24% 50%, #92d293 50% 72%, #58a55c 72% 89%, #f58a82 89% 100%);
  color: #111827;
  position: relative;
}

.ztx-status-donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
}

.ztx-status-donut strong,
.ztx-status-donut span {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .ztx-settings-page-shell,
  .ztx-two-column-panels,
  .ztx-gold-main-grid,
  .ztx-alert-grid,
  .ztx-status-summary-grid,
  .ztx-account-plan-card,
  .ztx-account-info-grid,
  .ztx-account-security-row,
  .ztx-account-danger-zone,
  .ztx-account-bottom-bar {
    grid-template-columns: 1fr;
  }

  .ztx-dashboard-stat-grid,
  .ztx-gold-stat-grid,
  .ztx-filter-bar,
  .ztx-filter-bar-gold,
  .ztx-settings-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-delete-premium-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ztx-settings-page-shell,
  .ztx-dashboard-stat-grid,
  .ztx-gold-stat-grid,
  .ztx-filter-bar,
  .ztx-filter-bar-gold,
  .ztx-settings-form-grid,
  .ztx-account-info-grid {
    grid-template-columns: 1fr;
  }

  .ztx-delete-premium-modal {
    width: min(100vw - 20px, 1100px);
    padding: 22px;
    border-radius: 28px;
  }

  .ztx-settings-profile-summary {
    grid-template-columns: 1fr;
    margin-top: -48px;
  }

  .ztx-settings-profile-avatar-wrap {
    width: 108px;
  }

  .ztx-settings-profile-avatar {
    width: 108px;
    height: 108px;
  }
}

.ztx-notification-shell {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 90;
}

.ztx-notification-trigger {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(9, 14, 24, 0.92);
  color: #f8fafc;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

.ztx-notification-bell svg,
.ztx-notification-bell {
  width: 20px;
  height: 20px;
}

.ztx-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.ztx-notification-badge.is-idle {
  background: #94a3b8;
}

.ztx-notification-badge.is-alert {
  background: #ef4444;
}

.ztx-notification-panel {
  width: 360px;
  margin-top: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.ztx-notification-panel-head strong {
  display: block;
  color: #111827;
  font-size: 1rem;
}

.ztx-notification-panel-head small {
  color: #6b7280;
}

.ztx-notification-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ztx-notification-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ztx-notification-item.is-critical {
  background: #fff4f4;
  border-color: rgba(239, 68, 68, 0.18);
}

.ztx-notification-item.is-important {
  background: #fff9eb;
  border-color: rgba(212, 175, 55, 0.24);
}

.ztx-notification-item strong {
  color: #111827;
}

.ztx-notification-item p,
.ztx-notification-empty p {
  margin: 4px 0 0;
  color: #6b7280;
}

.ztx-notification-action {
  justify-self: start;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #8a6511;
  padding: 9px 14px;
  font-weight: 700;
}

.ztx-list-gold-header h2 {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.ztx-list-gold-header p {
  font-size: 0.98rem;
}

.ztx-gold-table-panel-dark {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 30%),
    linear-gradient(180deg, #0b1019 0%, #121926 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.28);
}

.ztx-gold-table-panel-dark .panel-head h3,
.ztx-gold-table-panel-dark .ztx-gold-table-head,
.ztx-gold-table-panel-dark .ztx-gold-table-row {
  color: #f8fafc;
}

.ztx-gold-table-panel-dark .ztx-gold-table-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e8d7a6;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ztx-gold-table-panel-dark .ztx-gold-table-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.ztx-gold-table-panel-dark .ztx-gold-table-row i {
  background: rgba(212, 175, 55, 0.2);
  color: #f4d87a;
}

.ztx-gold-table-row.is-featured {
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(44, 34, 12, 0.98), rgba(18, 16, 10, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.1);
}

.ztx-gold-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  letter-spacing: normal;
}

.ztx-inline-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: rgba(15, 23, 42, 0.88);
  color: #f4d87a;
  display: inline-grid;
  place-items: center;
}

.ztx-inline-icon-btn svg,
.ztx-inline-icon-btn {
  font-size: 0.95rem;
}

.ztx-inline-icon-btn.is-danger {
  border-color: rgba(248, 113, 113, 0.26);
  color: #fda4af;
}

.ztx-link-button-dark {
  margin-top: 18px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #f4d87a;
  padding: 12px 16px;
}

.ztx-gold-contact-modal {
  width: min(1120px, calc(100vw - 28px));
  padding: 24px;
  border-radius: 28px;
  background: #fbfbf8;
}

.ztx-gold-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ztx-gold-contact-head small {
  color: #b7881d;
  font-weight: 700;
}

.ztx-gold-contact-head h3 {
  margin: 4px 0;
  color: #111827;
  font-size: 2rem;
}

.ztx-gold-contact-head p {
  margin: 0;
  color: #6b7280;
}

.ztx-gold-contact-form {
  gap: 16px;
}

.ztx-gold-contact-form .gold-member-block {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 18px;
}

.ztx-gold-contact-form .gold-member-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ztx-gold-contact-form textarea {
  min-height: 120px;
}

.ztx-quiz-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at left center, rgba(33, 58, 98, 0.24), transparent 25%),
    radial-gradient(circle at right center, rgba(212, 175, 55, 0.15), transparent 22%),
    linear-gradient(180deg, #050b14 0%, #0a1220 100%);
}

.ztx-quiz-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px;
}

.ztx-quiz-card {
  width: min(100%, 820px);
  margin: 0 auto;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250,248,243,0.98));
  box-shadow: 0 28px 70px rgba(7, 15, 28, 0.34);
  padding: 26px 28px;
}

.quiz-progress-copy strong,
.ztx-quiz-copy small {
  color: #b7881d;
}

.quiz-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.quiz-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, #f3da7f);
}

.ztx-quiz-copy h2 {
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.ztx-quiz-copy p {
  color: #6b7280;
}

.quiz-choice-grid {
  display: grid;
  gap: 12px;
}

.quiz-choice-button {
  justify-content: flex-start;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  padding: 18px 20px;
}

.quiz-choice-button.is-active {
  background: linear-gradient(135deg, rgba(255,248,220,0.95), rgba(252,243,214,0.96));
  border-color: rgba(212, 175, 55, 0.42);
}

@media (max-width: 760px) {
  .ztx-notification-shell {
    top: 14px;
    right: 14px;
  }

  .ztx-notification-panel {
    width: min(92vw, 360px);
  }

  .ztx-gold-contact-form .gold-member-block-grid {
    grid-template-columns: 1fr;
  }
}

/* ZTX final notification + settings + quiz + sidebar refinements */

.ztx-ref-sidebar.is-expanded {
  width: 252px;
}

.workspace-shell-pro.is-dock-expanded .workspace-body-pro {
  padding-left: 268px !important;
}

.ztx-ref-nav-item .dock-label {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
}

.ztx-settings-page-header h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
}

.ztx-settings-page-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
}

.ztx-settings-page-content {
  max-width: 1080px;
}

.ztx-settings-profile-hero {
  position: relative;
  overflow: visible;
}

.ztx-settings-profile-cover {
  min-height: 236px;
}

.ztx-settings-profile-summary {
  position: relative;
  z-index: 2;
  grid-template-columns: 136px 1fr;
  gap: 24px;
  align-items: start;
  padding: 0 28px 24px;
  margin-top: -54px;
}

.ztx-settings-profile-avatar-wrap {
  width: 136px;
}

.ztx-settings-profile-avatar {
  width: 136px;
  height: 136px;
}

.ztx-settings-profile-heading {
  display: grid;
  gap: 6px;
  padding-top: 58px;
  padding-bottom: 0;
}

.ztx-settings-profile-name-row strong {
  font-size: clamp(2rem, 3vw, 2.35rem);
}

.ztx-gold-name-stack {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ztx-gold-name-stack > span {
  display: grid;
  gap: 4px;
}

.ztx-gold-name-stack small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(212, 175, 55, 0.16);
  color: #c89d2e;
  font-size: 0.7rem;
  font-weight: 700;
}

.ztx-gold-table-row.is-notification-focus {
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(250, 243, 221, 0.98), rgba(255, 250, 240, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: inset 4px 0 0 #d4af37, 0 12px 28px rgba(212, 175, 55, 0.14);
  color: #23190a;
}

.ztx-quiz-screen {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.74), rgba(7, 13, 24, 0.88)),
    radial-gradient(circle at left center, rgba(33, 58, 98, 0.28), transparent 24%),
    radial-gradient(circle at right center, rgba(212, 175, 55, 0.16), transparent 24%),
    url("https://t3.ftcdn.net/jpg/07/43/02/70/360_F_743027058_xgLVEVjMdrY0qYUhJPWLIffoe1vyV4WA.jpg") center/cover no-repeat,
    linear-gradient(180deg, #050b14 0%, #0a1220 100%);
}

.ztx-quiz-card {
  width: min(100%, 860px);
  padding: 32px 34px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: 0 34px 78px rgba(7, 15, 28, 0.38);
}

.ztx-notification-shell {
  top: 20px;
  right: 24px;
  z-index: 120;
}

.ztx-notification-trigger {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #121820 0%, #0d1219 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(2, 6, 14, 0.28);
}

.ztx-notification-bell,
.ztx-notification-bell .ztx-line-icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
}

.ztx-notification-panel {
  width: min(380px, calc(100vw - 28px));
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.2);
}

.ztx-notification-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.ztx-notification-panel-head strong {
  font-size: 1.08rem;
}

.ztx-notification-mark-read {
  border: 0;
  background: transparent;
  color: #b7881d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}

.ztx-notification-list {
  display: grid;
  gap: 14px;
  padding: 14px 14px 10px;
  margin-top: 0;
}

.ztx-notification-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.14);
  background: linear-gradient(180deg, rgba(255, 243, 243, 0.98), rgba(255, 247, 247, 0.98));
}

.ztx-notification-card.is-read {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(246, 247, 249, 0.98));
}

.ztx-notification-dot {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.ztx-notification-card.is-read .ztx-notification-dot {
  background: #cbd5e1;
}

.ztx-notification-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.12);
  color: #ca8a04;
  display: grid;
  place-items: center;
}

.ztx-notification-card-body {
  display: grid;
  gap: 8px;
}

.ztx-notification-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ztx-notification-card-top strong {
  color: #111827;
  font-size: 1rem;
}

.ztx-notification-card-top time {
  color: #9ca3af;
  font-size: 0.8rem;
}

.ztx-notification-card-body p {
  margin: 0;
  color: #6b7280;
  line-height: 1.45;
}

.ztx-notification-action {
  justify-self: start;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: #8a6511;
  padding: 9px 14px;
  font-weight: 700;
}

.ztx-notification-footer-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #fffdf8;
  color: #8a6511;
}

.ztx-notification-footer-action strong {
  flex: 1;
  text-align: left;
  font-size: 0.95rem;
}

.ztx-notification-preview-layer .modal-backdrop {
  background: rgba(9, 14, 24, 0.46);
  backdrop-filter: blur(8px);
}

.ztx-notification-preview-modal {
  width: min(1120px, calc(100vw - 28px));
  padding: 28px 30px;
  border-radius: 30px;
  background: #fcfcf8;
}

.ztx-notification-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ztx-notification-preview-head h3 {
  margin: 0;
  color: #111827;
  font-size: 2rem;
}

.ztx-notification-preview-head small {
  display: block;
  margin-top: 4px;
  color: #b7881d;
  font-weight: 700;
}

.ztx-notification-preview-head p {
  margin: 10px 0 0;
  color: #6b7280;
}

.ztx-notification-preview-table {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  overflow-x: auto;
}

.ztx-notification-preview-row {
  min-width: 980px;
  display: grid;
  grid-template-columns: 1.55fr 1.1fr 0.8fr 0.95fr 1fr 0.95fr 0.95fr 0.8fr;
  gap: 14px;
  align-items: center;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  color: #374151;
}

.ztx-notification-preview-row:last-child {
  border-bottom: 0;
}

.ztx-notification-preview-row-head {
  background: #fffaf0;
  color: #8a6511;
  font-size: 0.78rem;
  font-weight: 700;
}

.ztx-notification-preview-row.is-focus {
  background: linear-gradient(135deg, rgba(250, 243, 221, 0.98), rgba(255, 250, 240, 0.98));
  box-shadow: inset 4px 0 0 #d4af37;
}

.ztx-notification-preview-next {
  color: #dc2626;
  font-weight: 700;
}

.ztx-notification-context-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.98), rgba(255, 251, 241, 0.98));
}

.ztx-notification-context-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #b7881d;
  background: rgba(212, 175, 55, 0.14);
}

.ztx-notification-context-card strong {
  color: #111827;
}

.ztx-notification-context-card p {
  margin: 4px 0 0;
  color: #6b7280;
}

.ztx-notification-preview-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ztx-notification-preview-actions .btn,
.ztx-account-manage-link,
.ztx-account-reset-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ztx-notification-center-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 980px) {
  .ztx-settings-page-shell {
    grid-template-columns: 1fr;
  }

  .ztx-settings-page-nav {
    position: static;
  }

  .ztx-notification-context-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .ztx-ref-sidebar.is-expanded {
    width: 232px;
  }

  .ztx-quiz-shell {
    padding: 18px;
  }

  .ztx-quiz-card {
    padding: 24px 20px;
  }

  .ztx-settings-profile-summary {
    grid-template-columns: 1fr;
    margin-top: -42px;
    gap: 14px;
  }

  .ztx-settings-profile-heading {
    padding-top: 0;
  }

  .ztx-notification-preview-modal {
    padding: 22px 18px;
  }

  .ztx-notification-preview-actions {
    flex-direction: column-reverse;
  }
}

/* Final layout stabilization: settings, sidebar, bell and onboarding */

.ztx-premium-lock {
  display: none !important;
}

.ztx-ref-sidebar.is-expanded {
  width: 248px;
}

.workspace-body-pro {
  transition: padding-left 180ms ease;
}

.workspace-shell-pro.is-dock-expanded .workspace-body-pro {
  padding-left: 280px !important;
}

.workspace-shell-pro.is-dock-collapsed .workspace-body-pro {
  padding-left: 108px !important;
}

.ztx-ref-nav-item {
  min-height: 52px;
  padding: 0 16px;
  grid-template-columns: 20px minmax(0, 1fr);
}

.ztx-ref-sidebar.is-collapsed .ztx-ref-nav-item {
  justify-items: center;
}

.ztx-ref-sidebar.is-collapsed .dock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ztx-settings-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 8px 28px 24px 22px;
  gap: 24px;
}

.ztx-settings-page-header {
  padding-left: 10px;
}

.ztx-settings-page-header small {
  margin-bottom: 10px;
}

.ztx-settings-page-header h2 {
  font-size: clamp(1.95rem, 2.7vw, 2.75rem);
}

.ztx-settings-page-shell {
  grid-template-columns: 240px minmax(0, 940px);
  gap: 28px;
  align-items: start;
  justify-content: start;
}

.ztx-settings-page-nav {
  top: 24px;
  padding: 20px 18px;
  border-radius: 24px;
}

.ztx-settings-page-content {
  width: min(100%, 940px);
  max-width: 940px;
}

.ztx-settings-page-pane {
  border-radius: 26px;
}

.ztx-settings-profile-cover {
  min-height: 196px;
}

.ztx-settings-profile-cover-edit {
  top: 18px;
  right: 22px;
}

.ztx-settings-profile-summary {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 0 28px 18px;
  margin-top: -48px;
  align-items: end;
}

.ztx-settings-profile-avatar-wrap {
  width: 132px;
}

.ztx-settings-profile-avatar {
  width: 132px;
  height: 132px;
}

.ztx-settings-profile-avatar-edit {
  right: -2px;
  bottom: 6px;
}

.ztx-settings-profile-heading {
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 38px 0 4px;
}

.ztx-settings-profile-name-row {
  gap: 12px;
}

.ztx-settings-profile-name-row strong {
  font-size: clamp(1.85rem, 2.3vw, 2.2rem);
  line-height: 1.04;
}

.ztx-profile-pro-pill {
  min-height: 24px;
  padding: 0 9px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.ztx-profile-pro-pill.is-free {
  background: rgba(148, 163, 184, 0.18);
  color: #526071;
}

.ztx-settings-form-grid {
  gap: 18px;
  padding: 0 28px 24px;
}

.ztx-field input,
.ztx-field select,
.ztx-field textarea {
  min-height: 50px;
  border-radius: 14px;
}

.ztx-field textarea {
  min-height: 108px;
}

.ztx-settings-form-footer {
  padding-top: 2px;
}

.ztx-notification-shell {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 56px;
  z-index: 140;
}

.ztx-notification-trigger {
  position: relative;
  z-index: 2;
}

.ztx-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  margin-top: 0;
  width: min(380px, calc(100vw - 28px));
}

.ztx-notification-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.1);
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.98), rgba(255, 249, 249, 0.98));
}

.ztx-notification-card.is-read {
  opacity: 0.72;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(255, 255, 255, 0.98));
}

.ztx-notification-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
}

.ztx-notification-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 232, 232, 0.95);
  color: #d14343;
}

.ztx-notification-card-body {
  display: grid;
  gap: 10px;
}

.ztx-notification-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ztx-notification-card-top strong {
  color: #111827;
  font-size: 0.98rem;
}

.ztx-notification-card-top time {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.ztx-notification-card-body p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ztx-notification-action {
  justify-self: start;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: #fff;
  color: #9a6e16;
  font-weight: 700;
}

.ztx-notification-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: #9a6e16;
}

.ztx-quiz-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 34px 22px;
}

.ztx-quiz-card {
  width: min(100%, 760px);
  padding: 38px 40px 28px;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(251,249,244,0.99));
  box-shadow: 0 34px 80px rgba(5, 12, 25, 0.34);
}

.quiz-progress-top {
  display: grid;
  gap: 12px;
}

.quiz-progress-copy {
  display: grid;
  gap: 6px;
}

.quiz-progress-copy strong {
  color: #c2911d;
  font-size: 0.95rem;
}

.quiz-progress-copy small {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

.ztx-quiz-copy {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ztx-quiz-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.95rem);
  line-height: 1.08;
  color: #8a650f;
  font-weight: 800;
}

.ztx-quiz-copy p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.ztx-quiz-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.ztx-quiz-answer-stack {
  display: grid;
  gap: 12px;
}

.ztx-quiz-answer-stack.is-date {
  justify-items: center;
}

.ztx-quiz-answer-stack.is-date .quiz-answer-control {
  width: min(100%, 420px);
  text-align: center;
  font-size: 1.05rem;
}

.quiz-answer-control {
  min-height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.quiz-answer-control:focus {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.quiz-age-preview {
  min-height: 26px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7a8597;
  font-size: 0.98rem;
}

.quiz-age-preview::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(212, 175, 55, 0.66);
  display: inline-block;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.96);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(212,175,55,0.06) 60%, transparent 65%);
}

.quiz-choice-grid {
  gap: 12px;
}

.quiz-choice-button {
  min-height: 64px;
  padding: 16px 18px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.quiz-choice-copy {
  display: grid;
  gap: 4px;
}

.quiz-choice-copy strong {
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.25;
}

.quiz-choice-copy span {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.35;
}

.quiz-choice-indicator {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  display: inline-block;
  position: relative;
}

.quiz-choice-button.is-active .quiz-choice-indicator {
  border-color: rgba(212, 175, 55, 0.64);
  background: linear-gradient(180deg, #efd46a 0%, #d4af37 100%);
}

.quiz-choice-button.is-active .quiz-choice-indicator::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: #fffdf7;
}

.quiz-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.quiz-actions-row .btn {
  min-width: 170px;
  min-height: 56px;
  border-radius: 18px;
}

.quiz-actions-row .btn[disabled] {
  opacity: 0.6;
}

@media (max-width: 980px) {
  .ztx-settings-page {
    padding: 8px 18px 24px 14px;
  }

  .ztx-settings-page-shell {
    grid-template-columns: 1fr;
  }

  .ztx-settings-page-content {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .ztx-notification-shell {
    top: 14px;
    right: 14px;
    width: 56px;
  }

  .ztx-notification-panel {
    width: min(92vw, 380px);
  }

  .ztx-settings-page {
    padding: 2px 12px 18px 10px;
  }

  .ztx-settings-page-header {
    padding-left: 4px;
  }

  .ztx-settings-profile-cover {
    min-height: 168px;
  }

  .ztx-settings-profile-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: -36px;
    padding: 0 18px 14px;
  }

  .ztx-settings-profile-heading {
    padding: 0;
  }

  .ztx-settings-form-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 20px;
  }

  .ztx-field-span-2 {
    grid-column: auto;
  }

  .ztx-quiz-shell {
    padding: 20px 14px;
  }

  .ztx-quiz-card {
    padding: 28px 18px 22px;
  }

  .ztx-quiz-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .quiz-actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quiz-actions-row .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Final auth/header/calendar stabilization */

.workspace-shell-pro {
  overflow-x: clip;
}

.workspace-body-pro {
  padding-top: 12px !important;
  padding-right: clamp(14px, 2vw, 26px) !important;
}

.ztx-app-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  width: min(100%, 1380px);
  margin: 0 auto 16px;
  padding: 4px 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 56%, rgba(255,255,255,0) 100%);
  backdrop-filter: blur(18px);
}

.ztx-app-topbar-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 32px;
}

.ztx-app-stage,
.ztx-calendar-page,
.ztx-settings-page {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.ztx-settings-page {
  padding-left: 30px;
  padding-right: 30px;
}

.ztx-settings-page-shell {
  align-items: start;
}

.ztx-settings-page-content,
.ztx-settings-page-pane {
  align-self: start;
}

.ztx-settings-page-pane {
  min-height: 620px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.faq-list-pro {
  display: grid;
  margin-top: 0;
}

.settings-support-btn {
  justify-self: start;
}

.ztx-notification-shell {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 28px !important;
  margin-left: auto;
  z-index: 2 !important;
}

.ztx-notification-trigger {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: rgba(9, 14, 24, 0.96) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18) !important;
}

.ztx-notification-bell,
.ztx-notification-bell svg {
  width: 10px !important;
  height: 10px !important;
}

.ztx-notification-badge {
  min-width: 14px !important;
  width: 14px !important;
  height: 14px !important;
  top: -4px !important;
  right: -4px !important;
  font-size: 8px !important;
  line-height: 14px !important;
  border-width: 1px !important;
}

.ztx-notification-badge.is-idle {
  background: #cbd5e1 !important;
  color: #475569 !important;
}

.ztx-notification-badge.is-alert {
  background: #ef4444 !important;
  color: #fff !important;
}

.ztx-notification-panel {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(360px, calc(100vw - 32px)) !important;
  margin-top: 0 !important;
}

.ztx-calendar-page {
  display: grid;
  gap: 18px;
}

.ztx-calendar-focus-panel,
.ztx-calendar-timeline-panel,
.ztx-calendar-list-panel,
.ztx-calendar-weekly-summary,
.ztx-calendar-shell,
.ztx-calendar-events-panel {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.ztx-calendar-focus-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,248,231,0.92));
}

.ztx-calendar-focus-copy {
  display: grid;
  gap: 8px;
}

.ztx-calendar-focus-copy small {
  color: #b9870f;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ztx-calendar-focus-copy strong {
  color: #111827;
  font-size: 1.05rem;
}

.ztx-calendar-focus-copy p,
.ztx-calendar-weekly-summary p {
  margin: 0;
  color: #6b7280;
}

.ztx-calendar-view-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ztx-calendar-ops-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ztx-calendar-timeline-panel,
.ztx-calendar-list-panel,
.ztx-calendar-weekly-summary {
  padding: 20px 22px;
}

.ztx-calendar-timeline-list {
  display: grid;
  gap: 12px;
}

.ztx-calendar-timeline-item {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.98));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.ztx-calendar-timeline-item.is-danger {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, rgba(255,247,247,0.99), rgba(255,251,251,0.98));
}

.ztx-calendar-timeline-main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ztx-calendar-timeline-main > strong {
  color: #b9870f;
  font-size: 1rem;
  line-height: 1.2;
}

.ztx-calendar-timeline-main h4 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
}

.ztx-calendar-timeline-main p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.ztx-calendar-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ztx-calendar-quick-actions .mini-btn.is-danger {
  border-color: rgba(239, 68, 68, 0.22);
  color: #b42318;
}

.ztx-calendar-filters {
  align-items: start;
  gap: 14px;
}

.ztx-calendar-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ztx-calendar-search {
  min-width: 220px;
}

.ztx-calendar-modal-clean {
  width: min(860px, calc(100vw - 24px));
  padding: 24px 24px 20px;
}

.ztx-calendar-modal-head-clean {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
}

.ztx-calendar-modal-head-clean h3 {
  margin: 0;
  color: #111827;
  font-size: 1.55rem;
}

.ztx-calendar-form-grid {
  align-items: start;
}

.ztx-calendar-form-grid > label,
.ztx-calendar-form-grid > .ztx-calendar-custom-category-list {
  display: grid;
  gap: 8px;
}

.ztx-calendar-form-grid label small {
  color: #6b7280;
  font-size: 0.82rem;
}

.ztx-calendar-custom-category-list {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.ztx-calendar-custom-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: #fffdf7;
  color: #8a6511;
  font-weight: 700;
}

.ztx-calendar-custom-chip strong {
  color: #dc2626;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .ztx-calendar-focus-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ztx-settings-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ztx-settings-page-pane {
    min-height: auto;
  }

  .ztx-calendar-timeline-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ztx-app-topbar {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .ztx-notification-panel {
    width: min(92vw, 340px) !important;
  }

  .ztx-calendar-timeline-panel,
  .ztx-calendar-list-panel,
  .ztx-calendar-weekly-summary,
  .ztx-calendar-focus-panel,
  .ztx-calendar-shell,
  .ztx-calendar-events-panel {
    padding: 18px 16px;
  }

  .ztx-calendar-quick-actions {
    flex-direction: column;
  }
}

.ztx-session-check-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding-top: 28px;
}

.ztx-session-check-dot {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212,175,55,0.2), rgba(212,175,55,0.9), rgba(212,175,55,0.2));
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.16);
  animation: ztxSessionPulse 1.2s ease-in-out infinite;
}

.ztx-session-loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.ztx-session-loading-card {
  width: min(100%, 340px);
  display: grid;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.ztx-session-loading-card strong {
  color: #111827;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.ztx-session-loading-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.94rem;
}

.ztx-session-loading-bar {
  width: 132px;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212,175,55,0.2), rgba(212,175,55,1), rgba(212,175,55,0.2));
  background-size: 180% 100%;
  animation: ztxSessionLoadingBar 1.1s linear infinite;
}

@keyframes ztxSessionLoadingBar {
  0% { background-position: 180% 0; }
  100% { background-position: -20% 0; }
}

@keyframes ztxSessionPulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Final settings foundation + modal layering stabilization */

.workspace-shell-pro.has-global-modal .ztx-app-topbar,
.ztx-app-topbar.is-hidden {
  display: none !important;
}

.workspace-shell-pro.has-global-modal .ztx-notification-shell {
  display: none !important;
}

.modal-layer {
  z-index: 1000 !important;
}

.modal-backdrop {
  background: rgba(6, 11, 20, 0.62) !important;
  backdrop-filter: blur(10px) !important;
}

.modal-card {
  position: relative;
  z-index: 1001;
}

.workspace-body-pro {
  padding-right: clamp(16px, 2vw, 28px) !important;
}

.ztx-app-topbar {
  padding: 6px 0 16px !important;
}

.ztx-app-topbar-actions {
  min-height: 34px !important;
}

.ztx-notification-shell {
  width: 34px !important;
  min-width: 34px !important;
}

.ztx-notification-trigger {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 13px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
}

.ztx-notification-bell,
.ztx-notification-bell svg {
  width: 16px !important;
  height: 16px !important;
}

.ztx-notification-badge {
  min-width: 12px !important;
  width: 12px !important;
  height: 12px !important;
  top: -3px !important;
  right: -3px !important;
  font-size: 8px !important;
  line-height: 12px !important;
}

.ztx-settings-page-shell-foundation,
.ztx-settings-page-shell {
  grid-template-columns: minmax(260px, 280px) minmax(0, 1fr) !important;
  gap: 26px !important;
}

.ztx-settings-page-nav-foundation,
.ztx-settings-page-nav {
  min-height: 100%;
  padding: 22px !important;
}

.ztx-settings-page-nav-list {
  display: grid;
  gap: 10px;
}

.ztx-settings-page-nav-btn {
  justify-content: flex-start;
}

.ztx-settings-logout-row {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ztx-settings-page-content-foundation,
.ztx-settings-page-content {
  min-width: 0;
}

.ztx-settings-pane-head {
  display: grid;
  gap: 8px;
  padding: 24px 22px 0;
}

.ztx-settings-pane-head h3 {
  margin: 0;
  color: #111827;
  font-size: 1.45rem;
}

.ztx-settings-pane-head p {
  margin: 0;
  color: #6b7280;
}

.ztx-settings-wide-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ztx-settings-quiz-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ztx-settings-quiz-answer-card,
.ztx-settings-empty-card,
.ztx-settings-note-card,
.ztx-settings-info-item,
.ztx-settings-ticket-card {
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.98));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.ztx-settings-quiz-answer-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.ztx-settings-quiz-answer-card small,
.ztx-settings-info-item small {
  color: #8a6511;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ztx-settings-quiz-answer-card strong,
.ztx-settings-info-item strong,
.ztx-settings-empty-card strong,
.ztx-settings-note-card strong {
  color: #111827;
}

.ztx-settings-empty-card,
.ztx-settings-note-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.ztx-settings-empty-card p,
.ztx-settings-note-card p,
.ztx-settings-ticket-card p {
  margin: 0;
  color: #6b7280;
}

.ztx-settings-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 22px 4px;
}

.ztx-settings-info-item {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.ztx-settings-info-item.is-accent {
  border-color: rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, rgba(255,251,237,0.98), rgba(255,247,224,0.96));
}

.ztx-settings-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 22px;
}

.ztx-settings-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 22px;
}

.ztx-settings-ticket-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.ztx-settings-ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
}

.ztx-settings-ticket-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.ztx-settings-ticket-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: #8a6511;
  font-size: 0.78rem;
  font-weight: 700;
}

.ztx-settings-ticket-meta small {
  color: #6b7280;
  font-weight: 700;
}

.ztx-toggle-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.98));
}

.ztx-toggle-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.ztx-toggle-card div {
  display: grid;
  gap: 5px;
}

.ztx-toggle-card strong {
  color: #111827;
}

.ztx-toggle-card span {
  color: #6b7280;
  font-size: 0.88rem;
}

.ztx-quiz-select-wrap {
  position: relative;
  width: min(100%, 480px);
}

.ztx-quiz-select-control {
  appearance: none;
  padding-right: 52px;
  cursor: pointer;
  background: #fff;
}

.ztx-quiz-select-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a6e16;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
}

.ztx-quiz-select-arrow svg {
  width: 16px;
  height: 16px;
}

.ztx-quiz-custom-field {
  display: grid;
  gap: 8px;
}

.ztx-quiz-custom-field > span {
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .ztx-settings-page-shell-foundation,
  .ztx-settings-page-shell {
    grid-template-columns: 1fr !important;
  }

  .ztx-settings-page-nav-foundation,
  .ztx-settings-page-nav {
    position: static;
  }

  .ztx-settings-support-grid,
  .ztx-settings-info-grid,
  .ztx-settings-quiz-answer-grid,
  .ztx-settings-wide-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ztx-notification-shell {
    width: 34px !important;
    min-width: 34px !important;
  }

  .ztx-settings-action-grid {
    grid-template-columns: 1fr;
  }

  .ztx-settings-support-grid,
  .ztx-settings-info-grid,
  .ztx-settings-ticket-card {
    grid-template-columns: 1fr;
  }

  .ztx-settings-ticket-meta {
    justify-items: start;
  }

  .ztx-quiz-select-wrap {
    width: 100%;
  }
}

/* Final dark settings reconstruction */

body:has(.ztx-settings-page--final) .ambient-grid {
  opacity: 0 !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) {
  background: #000 !important;
  box-shadow: none !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-app-topbar {
  background: transparent !important;
  padding: 0 0 16px !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-app-stage {
  background: transparent !important;
  padding-top: 0 !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-shell {
  width: 36px !important;
  min-width: 36px !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-trigger {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(227, 182, 55, 0.75) !important;
  background: rgba(8, 8, 8, 0.9) !important;
  color: #f5f5f5 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-bell,
.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-bell svg {
  width: 16px !important;
  height: 16px !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-badge {
  top: -2px !important;
  right: -1px !important;
  min-width: 12px !important;
  width: 12px !important;
  height: 12px !important;
  font-size: 8px !important;
  line-height: 12px !important;
}

.ztx-settings-page--final {
  min-height: calc(100vh - 120px);
  padding: 6px 0 28px !important;
  background: #000 !important;
  color: #f5f5f5 !important;
}

.ztx-settings-page-header--final {
  display: grid;
  gap: 8px;
  padding: 0 4px 24px !important;
}

.ztx-settings-page-header--final small,
.ztx-settings-page-header--final h2 {
  margin: 0 !important;
  color: #d8ad40 !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ztx-settings-page-header--final small {
  font-size: 0.82rem !important;
  font-weight: 700;
}

.ztx-settings-page-header--final h2 {
  font-size: clamp(2rem, 3vw, 2.55rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

.ztx-settings-page-shell--final {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.ztx-settings-page-nav--final {
  display: flex !important;
  flex-direction: column;
  min-height: 740px;
  padding: 20px 18px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(6, 6, 6, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 36px rgba(0,0,0,0.32) !important;
}

.ztx-settings-page-nav-list--final {
  display: grid;
  gap: 10px;
}

.ztx-settings-page-nav-btn--final {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100%;
  min-height: 56px !important;
  padding: 0 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(12, 12, 12, 0.96) !important;
  color: #f5f5f5 !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.ztx-settings-page-nav-btn--final:hover {
  border-color: rgba(216, 173, 64, 0.28) !important;
  background: rgba(20, 20, 20, 0.98) !important;
  transform: translateY(-1px);
}

.ztx-settings-page-nav-btn--final.is-active {
  background: linear-gradient(135deg, #c99726, #efc95d) !important;
  border-color: rgba(240, 205, 109, 0.86) !important;
  color: #111 !important;
  box-shadow: 0 12px 30px rgba(201, 151, 38, 0.22) !important;
}

.ztx-settings-page-nav-btn--final.is-active .ztx-settings-page-nav-icon,
.ztx-settings-page-nav-btn--final.is-active .ztx-line-icon {
  color: #111 !important;
}

.ztx-settings-page-nav-btn--final .ztx-settings-page-nav-icon,
.ztx-settings-page-nav-btn--final .ztx-line-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

.ztx-settings-logout-row--final {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ztx-settings-page-content--final {
  min-width: 0;
}

.ztx-settings-page--final .ztx-settings-page-pane,
.ztx-settings-page--final .ztx-settings-page-pane--final,
.ztx-settings-page--final .ztx-settings-page-content,
.ztx-settings-page--final .ztx-settings-page-content--final {
  background: transparent !important;
}

.ztx-settings-page-pane--final,
.ztx-settings-page--final .ztx-settings-page-pane {
  min-height: 740px;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: linear-gradient(180deg, rgba(8,8,8,0.98), rgba(4,4,4,0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 20px 40px rgba(0,0,0,0.26) !important;
  overflow: hidden;
}

.ztx-settings-profile-hero-final {
  display: grid;
}

.ztx-settings-profile-cover-final {
  position: relative;
  height: 190px;
  background: radial-gradient(circle at top right, rgba(220, 185, 92, 0.18), transparent 42%), linear-gradient(180deg, #1b1710, #090909);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ztx-settings-profile-cover-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.58));
  pointer-events: none;
}

.ztx-settings-profile-cover-edit-final,
.ztx-settings-profile-avatar-edit-final {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.82);
  color: #f5f5f5;
  cursor: pointer;
}

.ztx-settings-profile-cover-edit-final {
  top: 16px;
  right: 16px;
}

.ztx-settings-profile-summary-final {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-top: -66px;
  padding: 0 24px 6px;
  position: relative;
  z-index: 2;
}

.ztx-settings-profile-avatar-wrap-final {
  position: relative;
  width: 132px;
}

.ztx-settings-profile-avatar-final {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #f4f4f4;
  background: #111;
  display: grid;
  place-items: center;
  color: #f5f5f5;
  font-size: 2rem;
  font-weight: 700;
}

.ztx-settings-profile-avatar-final img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ztx-settings-profile-avatar-edit-final {
  right: 2px;
  bottom: 8px;
}

.ztx-settings-profile-heading-final {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
}

.ztx-settings-profile-name-row-final {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ztx-settings-profile-name-row-final strong {
  color: #f7f7f7;
  font-size: clamp(2rem, 2.6vw, 2.45rem);
  font-weight: 700;
}

.ztx-settings-profile-heading-final p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 1rem;
}

.ztx-profile-pro-pill-final {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(222, 183, 67, 0.68);
  background: rgba(7, 7, 7, 0.78);
  color: #dfb54d;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ztx-profile-pro-pill-final i,
.ztx-profile-pro-pill-final svg {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.ztx-settings-form-grid-final {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 18px 24px 24px;
}

.ztx-settings-page--final .ztx-field span,
.ztx-settings-page--final .ztx-settings-pane-head h3,
.ztx-settings-page--final .ztx-settings-ticket-card strong,
.ztx-settings-page--final .ztx-settings-info-item strong,
.ztx-settings-page--final .ztx-toggle-card strong,
.ztx-settings-page--final .ztx-settings-note-card strong {
  color: #f5f5f5 !important;
}

.ztx-settings-page--final .ztx-settings-pane-head {
  padding: 24px 24px 0;
}

.ztx-settings-page--final .ztx-settings-pane-head h3 {
  font-size: 1.35rem !important;
}

.ztx-settings-page--final .ztx-settings-pane-head p,
.ztx-settings-page--final .ztx-settings-ticket-card p,
.ztx-settings-page--final .ztx-settings-note-card p,
.ztx-settings-page--final .ztx-toggle-card span,
.ztx-settings-page--final .ztx-settings-info-item small,
.ztx-settings-page--final .ztx-settings-ticket-meta small {
  color: rgba(255,255,255,0.65) !important;
}

.ztx-settings-page--final .ztx-field input,
.ztx-settings-page--final .ztx-field select,
.ztx-settings-page--final .ztx-field textarea,
.ztx-settings-page--final .ztx-settings-readonly-field {
  background: #0d0d0d !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  box-shadow: none !important;
}

.ztx-settings-page--final .ztx-field input:focus,
.ztx-settings-page--final .ztx-field select:focus,
.ztx-settings-page--final .ztx-field textarea:focus {
  border-color: rgba(214, 173, 68, 0.68) !important;
  outline: none !important;
}

.ztx-settings-readonly-field {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 16px;
  min-height: 54px;
  padding-right: 44px;
}

.ztx-settings-readonly-field input {
  border: 0 !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  padding-right: 0 !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

.ztx-settings-readonly-field i,
.ztx-settings-readonly-field svg {
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.72);
}

.ztx-settings-page--final .ztx-settings-info-item,
.ztx-settings-page--final .ztx-settings-note-card,
.ztx-settings-page--final .ztx-settings-ticket-card,
.ztx-settings-page--final .ztx-toggle-card,
.ztx-settings-page--final .ztx-settings-danger-zone {
  border-color: rgba(255,255,255,0.08) !important;
  background: rgba(12, 12, 12, 0.96) !important;
  box-shadow: none !important;
}

.ztx-settings-page--final .ztx-settings-info-item.is-accent {
  border-color: rgba(214, 173, 68, 0.32) !important;
  background: linear-gradient(180deg, rgba(31,24,7,0.96), rgba(12,12,12,0.98)) !important;
}

.ztx-settings-page--final .ztx-toggle-card input {
  accent-color: #d8ad40;
}

.ztx-settings-page--final .btn.btn-soft {
  background: rgba(16, 16, 16, 0.96) !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.ztx-settings-page--final .luxury-cta {
  color: #111 !important;
}

.ztx-settings-page--final .ztx-settings-form-footer {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .ztx-settings-page-shell--final {
    grid-template-columns: 1fr !important;
  }

  .ztx-settings-page-nav--final,
  .ztx-settings-page-pane--final,
  .ztx-settings-page--final .ztx-settings-page-pane {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .ztx-settings-profile-summary-final {
    grid-template-columns: 1fr;
    margin-top: -56px;
  }

  .ztx-settings-profile-avatar-wrap-final {
    width: 116px;
  }

  .ztx-settings-profile-avatar-final {
    width: 116px;
    height: 116px;
  }

  .ztx-settings-form-grid-final,
  .ztx-settings-page--final .ztx-settings-info-grid,
  .ztx-settings-page--final .ztx-settings-support-grid,
  .ztx-settings-page--final .ztx-settings-action-grid,
  .ztx-settings-page--final .ztx-settings-wide-form {
    grid-template-columns: 1fr !important;
  }
}

/* Final notification + settings V5 */

.ztx-app-topbar {
  position: fixed !important;
  top: 16px !important;
  right: 22px !important;
  width: auto !important;
  padding: 0 !important;
  z-index: 120 !important;
  background: transparent !important;
}

.ztx-app-topbar-actions {
  min-height: 40px !important;
}

.ztx-notification-shell {
  position: relative !important;
  width: 40px !important;
  min-width: 40px !important;
}

.ztx-notification-trigger {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(244, 246, 248, 0.72) !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  color: #121212 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

.ztx-notification-bell,
.ztx-notification-bell svg {
  width: 17px !important;
  height: 17px !important;
  color: #171717 !important;
  stroke-width: 1.7 !important;
}

.ztx-notification-badge {
  top: -2px !important;
  right: -1px !important;
  min-width: 14px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 8px !important;
  line-height: 14px !important;
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2) !important;
}

.ztx-settings-page--final {
  padding: 0 0 26px !important;
}

.ztx-settings-page-header--final {
  padding: 2px 4px 18px !important;
}

.ztx-settings-page-header--final small,
.ztx-settings-page-header--final h2 {
  color: #d8ad40 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
}

.ztx-settings-page-header--final h2 {
  text-transform: none !important;
}

.ztx-settings-page-shell--final {
  gap: 16px !important;
}

.ztx-settings-page-nav--final {
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
  min-height: 710px !important;
}

.ztx-settings-page-nav-btn--final {
  min-height: 54px !important;
}

.ztx-settings-page-pane--final,
.ztx-settings-page--final .ztx-settings-page-pane {
  min-height: 710px !important;
}

.ztx-settings-profile-cover-final {
  height: 172px !important;
}

.ztx-settings-profile-summary-final {
  margin-top: -58px !important;
  padding: 0 24px 2px !important;
}

.ztx-settings-profile-heading-final.is-pro .ztx-settings-profile-name-row-final strong,
.ztx-settings-profile-name-row-final.is-pro strong {
  color: #dfb54d !important;
}

.ztx-settings-profile-heading-final.is-free .ztx-settings-profile-name-row-final strong,
.ztx-settings-profile-name-row-final.is-free strong {
  color: #ffffff !important;
}

.ztx-profile-pro-pill-final.is-pro {
  border-color: rgba(222, 183, 67, 0.68) !important;
  background: rgba(7, 7, 7, 0.78) !important;
  color: #dfb54d !important;
}

.ztx-profile-pro-pill-final.is-free {
  border-color: rgba(255,255,255,0.18) !important;
  background: rgba(12, 12, 12, 0.78) !important;
  color: #ffffff !important;
}

.ztx-profile-pro-pill-final.is-free i {
  display: none !important;
}

.ztx-settings-readonly-field {
  min-height: 54px !important;
  padding: 0 44px 0 16px !important;
  border-radius: 16px !important;
}

.ztx-settings-readonly-value {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: #f5f5f5;
  font-size: 1.02rem;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .ztx-app-topbar {
    top: 12px !important;
    right: 16px !important;
  }
}

/* Final settings + onboarding hotfix V6 */

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-trigger {
  background: rgba(18, 18, 18, 0.58) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26) !important;
}

.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-bell,
.workspace-body-pro:has(.ztx-settings-page--final) .ztx-notification-bell svg {
  color: #ffffff !important;
}

.ztx-settings-page--final {
  padding: 6px 0 24px !important;
}

.ztx-settings-page-header--final {
  display: none !important;
}

.ztx-settings-page-shell--final {
  align-items: stretch !important;
}

.ztx-settings-page-nav--final {
  min-height: 700px !important;
}

.ztx-settings-page-pane--final,
.ztx-settings-page--final .ztx-settings-page-pane {
  min-height: 700px !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 36px rgba(0, 0, 0, 0.22) !important;
}

.ztx-settings-page--final .ztx-settings-info-item,
.ztx-settings-page--final .ztx-settings-note-card,
.ztx-settings-page--final .ztx-settings-ticket-card,
.ztx-settings-page--final .ztx-toggle-card,
.ztx-settings-page--final .ztx-settings-danger-zone {
  border: 0 !important;
}

.ztx-settings-profile-cover-final {
  height: 178px !important;
  border-bottom: 0 !important;
}

.ztx-settings-profile-summary-final {
  grid-template-columns: 148px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: center !important;
  margin-top: -38px !important;
  padding: 0 28px 12px !important;
}

.ztx-settings-profile-avatar-wrap-final {
  width: 148px !important;
}

.ztx-settings-profile-avatar-final {
  width: 148px !important;
  height: 148px !important;
}

.ztx-settings-profile-heading-final {
  gap: 10px !important;
  padding-top: 34px !important;
  padding-bottom: 0 !important;
}

.ztx-settings-profile-name-row-final {
  gap: 14px !important;
}

.ztx-settings-profile-name-row-final strong {
  font-size: clamp(2.05rem, 2.5vw, 2.35rem) !important;
}

.ztx-settings-profile-form-final {
  display: flex !important;
  flex-direction: column;
  min-height: 300px;
  padding: 18px 24px 24px !important;
}

.ztx-settings-profile-fields-row-final {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.ztx-settings-form-footer-profile-final {
  margin-top: auto;
  justify-content: flex-end !important;
  padding-top: 26px;
}

.ztx-settings-save-button-final {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  background: #2f3640 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f5f7fa !important;
  box-shadow: none !important;
}

.ztx-settings-save-button-final:hover {
  background: #39414d !important;
}

.ztx-settings-readonly-field {
  background: #090909 !important;
}

.ztx-account-delete-row-final {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.ztx-account-delete-button--subtle {
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 91, 91, 0.32) !important;
  background: rgba(110, 22, 22, 0.35) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.ztx-account-delete-button--subtle:hover {
  background: rgba(130, 30, 30, 0.42) !important;
}

.ztx-delete-premium-form input[name="confirmText"] {
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .ztx-settings-profile-summary-final {
    grid-template-columns: 1fr !important;
    margin-top: -52px !important;
  }

  .ztx-settings-profile-avatar-wrap-final {
    width: 124px !important;
  }

  .ztx-settings-profile-avatar-final {
    width: 124px !important;
    height: 124px !important;
  }

  .ztx-settings-profile-heading-final {
    padding-top: 10px !important;
  }

  .ztx-settings-profile-fields-row-final {
    grid-template-columns: 1fr !important;
  }
}

/* Lista Gold reference rebuild V7 */

.ztx-list-gold-page-v7 {
  display: grid;
  gap: 16px;
  padding: 12px 0 24px;
}

.ztx-list-gold-page-v7 .ztx-pro-inline-lock {
  margin-bottom: 2px;
}

.ztx-list-gold-topbar-v7 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  padding-right: 72px;
}

.ztx-list-gold-add-btn-v7 {
  min-height: 42px !important;
  padding: 0 20px !important;
  border-radius: 13px !important;
  box-shadow: 0 14px 24px rgba(212, 175, 55, 0.16) !important;
}

.ztx-list-gold-summary-grid-v7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.ztx-gold-summary-card-v7 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 118px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.ztx-gold-summary-card-icon-v7 {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #c58e18;
  background: linear-gradient(180deg, rgba(255, 242, 207, 0.96), rgba(255, 250, 235, 0.98));
}

.ztx-gold-summary-card-icon-v7 svg {
  width: 17px;
  height: 17px;
}

.ztx-gold-summary-card-copy-v7 {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ztx-gold-summary-card-copy-v7 small {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.ztx-gold-summary-card-copy-v7 strong {
  color: #111827;
  font-size: clamp(1.5rem, 1.8vw, 1.95rem);
  line-height: 1;
}

.ztx-gold-summary-card-copy-v7 p {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ztx-gold-summary-card-footer-v7 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.ztx-gold-summary-card-footer-v7.is-positive {
  color: #22c55e;
}

.ztx-gold-summary-card-footer-v7.is-warning {
  color: #d97706;
}

.ztx-gold-summary-card-footer-v7.is-danger {
  color: #ef4444;
}

.ztx-gold-summary-card-footer-v7.is-gold {
  color: #f4cf62;
}

.ztx-gold-summary-card-footer-v7.is-neutral {
  color: #64748b;
}

.ztx-gold-summary-card-v7.is-elite {
  background: linear-gradient(180deg, #0f1014 0%, #050608 100%);
  border-color: rgba(212, 175, 55, 0.52);
  box-shadow: 0 16px 30px rgba(17, 12, 0, 0.22);
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-icon-v7 {
  background: rgba(212, 175, 55, 0.08);
  color: #f4cf62;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 small,
.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 p {
  color: rgba(255, 255, 255, 0.84);
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 small {
  color: #f2e6be;
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 strong,
.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-footer-v7 {
  color: #f4cf62;
}

.ztx-gold-summary-card-v7.is-danger {
  background: linear-gradient(180deg, #fff8f8 0%, #fffefe 100%);
  border-color: rgba(248, 113, 113, 0.22);
}

.ztx-gold-summary-card-v7.is-danger .ztx-gold-summary-card-icon-v7 {
  background: rgba(254, 226, 226, 0.9);
  color: #ef4444;
}

.ztx-gold-summary-card-v7.is-danger .ztx-gold-summary-card-footer-v7 {
  color: #ef4444;
}

.ztx-list-gold-layout-v7 {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.ztx-list-gold-list-card-v7,
.ztx-list-gold-side-card-v7 {
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08) !important;
}

.ztx-list-gold-card-head-v7 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.ztx-list-gold-card-head-v7 h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
}

.ztx-list-gold-card-head-v7.is-side {
  padding-bottom: 14px;
}

.ztx-list-gold-filters-v7 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 12px;
}

.ztx-list-gold-filters-v7 .ztx-field span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ztx-list-gold-filters-v7 .ztx-field input,
.ztx-list-gold-filters-v7 .ztx-field select {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: none;
  font-size: 0.84rem;
  padding-top: 0;
  padding-bottom: 0;
}

.ztx-list-gold-filter-button-v7 {
  align-self: end;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 12px;
}

.ztx-list-gold-filter-button-v7 svg {
  width: 14px;
  height: 14px;
}

.ztx-list-gold-filter-button-v7.is-open,
.ztx-list-gold-filter-button-v7:hover {
  border-color: rgba(212, 175, 55, 0.24);
  color: #8a6511;
}

.ztx-list-gold-filter-chips-v7 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.ztx-list-gold-filter-chip-v7 {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
}

.ztx-list-gold-filter-chip-v7.is-active {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.3);
  color: #8a6511;
}

.ztx-list-gold-table-wrap-v7 {
  padding: 0 12px 8px 18px;
}

.ztx-list-gold-table-v7 {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: #fff;
  overflow: hidden;
}

.ztx-list-gold-table-head-v7,
.ztx-list-gold-table-row-v7 {
  display: grid;
  grid-template-columns: minmax(176px, 2.15fr) minmax(114px, 1.18fr) minmax(78px, 0.84fr) minmax(122px, 1fr) minmax(124px, 1.05fr) minmax(108px, 0.94fr) minmax(154px, 1.28fr) minmax(104px, 0.84fr);
  gap: 10px;
  align-items: center;
}

.ztx-list-gold-table-head-v7 {
  padding: 12px 14px;
  background: rgba(248, 250, 252, 0.94);
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ztx-list-gold-table-row-v7 {
  padding: 11px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  color: #111827;
  font-size: 0.86rem;
}

.ztx-list-gold-table-row-v7.is-highlighted {
  background: linear-gradient(180deg, rgba(255, 248, 226, 0.72), rgba(255, 255, 255, 0.98));
}

.ztx-list-gold-contact-cell-v7,
.ztx-list-gold-owner-cell-v7 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ztx-list-gold-contact-cell-v7 i,
.ztx-list-gold-owner-cell-v7 i {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #fde9b4, #fff5db);
  color: #b7791f;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
}

.ztx-list-gold-contact-cell-v7 span,
.ztx-list-gold-owner-cell-v7 span {
  display: grid;
  min-width: 0;
}

.ztx-list-gold-contact-cell-v7 strong,
.ztx-list-gold-owner-cell-v7 span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ztx-list-gold-contact-cell-v7 small {
  color: #64748b;
  font-size: 0.74rem;
}

.ztx-list-gold-date-cell-v7 {
  display: grid;
  gap: 2px;
}

.ztx-list-gold-date-cell-v7 strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.ztx-list-gold-date-cell-v7 small {
  color: #64748b;
  font-size: 0.74rem;
}

.ztx-list-gold-next-cell-v7 {
  display: grid;
  gap: 3px;
}

.ztx-list-gold-next-cell-v7 strong {
  font-size: 0.84rem;
}

.ztx-list-gold-next-cell-v7 small {
  color: #64748b;
  font-size: 0.74rem;
}

.ztx-list-gold-next-cell-v7.is-late strong,
.ztx-list-gold-next-cell-v7.is-late small {
  color: #ef4444;
}

.ztx-list-gold-actions-v7 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ztx-list-gold-action-btn-v7 {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
}

.ztx-list-gold-action-btn-v7 svg {
  width: 13px;
  height: 13px;
}

.ztx-list-gold-action-btn-v7.is-wa {
  color: #16a34a;
}

.ztx-list-gold-action-btn-v7.is-danger {
  color: #ef4444;
}

.ztx-list-gold-action-btn-v7.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ztx-list-gold-empty-v7,
.ztx-list-gold-empty-side-v7 {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 18px;
  color: #64748b;
  text-align: center;
}

.ztx-list-gold-pagination-v7 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 18px;
}

.ztx-list-gold-pagination-v7 small {
  color: #64748b;
  font-size: 0.78rem;
}

.ztx-list-gold-pagination-controls-v7 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ztx-list-gold-page-btn-v7 {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.ztx-list-gold-page-btn-v7.is-active {
  border-color: rgba(212, 175, 55, 0.34);
  background: rgba(212, 175, 55, 0.14);
  color: #8a6511;
}

.ztx-list-gold-page-btn-v7:disabled {
  opacity: 0.45;
}

.ztx-list-gold-page-size-v7 select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 0 12px;
  font-size: 0.8rem;
}

.ztx-list-gold-side-card-v7 {
  padding: 0 0 18px;
}

.ztx-list-gold-inline-btn-v7 {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 249, 235, 0.9);
  color: #8a6511;
  font-size: 0.76rem;
  font-weight: 700;
}

.ztx-list-gold-inline-btn-v7.is-footer {
  width: calc(100% - 36px);
  margin: 8px auto 0;
  justify-content: center;
}

.ztx-list-gold-next-actions-v7 {
  display: grid;
}

.ztx-list-gold-next-action-v7 {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 22px 18px;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.ztx-list-gold-next-action-v7:first-child {
  border-top: 0;
}

.ztx-list-gold-next-action-v7.is-late {
  background: rgba(254, 242, 242, 0.62);
}

.ztx-list-gold-next-date-v7 {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 14px;
  background: #fff8eb;
  color: #b7791f;
}

.ztx-list-gold-next-date-v7 strong {
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 800;
}

.ztx-list-gold-next-date-v7 small {
  font-size: 0.74rem;
}

.ztx-list-gold-next-copy-v7 {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ztx-list-gold-next-copy-v7 strong {
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ztx-list-gold-next-copy-v7 p {
  margin: 0;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.25;
}

.ztx-list-gold-next-copy-v7 .ztx-status-tag {
  justify-self: start;
}

.ztx-list-gold-next-icon-v7 {
  color: #16a34a;
  display: inline-grid;
  place-items: center;
  font-size: 0.88rem;
}

.ztx-list-gold-next-link-v7 {
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.ztx-status-tag.is-blog-active {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.ztx-status-tag.is-blog-insane {
  background: #0f1014;
  color: #f4cf62;
}

.ztx-status-tag.is-blog-instagram {
  background: rgba(96, 165, 250, 0.16);
  color: #2563eb;
}

.ztx-status-tag.is-blog-bad {
  background: rgba(254, 226, 226, 0.94);
  color: #dc2626;
}

.ztx-status-tag.is-influencer-partner {
  background: rgba(255, 237, 213, 0.92);
  color: #c76c0c;
}

.ztx-status-tag.is-influencer-insane {
  background: rgba(233, 213, 255, 0.7);
  color: #7c3aed;
}

.ztx-status-tag.is-followup {
  background: rgba(219, 234, 254, 0.92);
  color: #2563eb;
}

.ztx-gold-contact-form input[name="statusOther"] {
  min-height: 46px;
}

.ztx-notification-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

@media (max-width: 1480px) {
  .ztx-list-gold-summary-grid-v7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ztx-list-gold-filters-v7 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .ztx-list-gold-layout-v7 {
    grid-template-columns: 1fr;
  }

  .ztx-list-gold-side-card-v7 {
    order: 2;
  }

  .ztx-list-gold-list-card-v7 {
    order: 1;
  }
}

@media (max-width: 1040px) {
  .ztx-list-gold-summary-grid-v7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-list-gold-table-wrap-v7 {
    overflow-x: auto;
    padding-right: 22px;
  }

  .ztx-list-gold-table-v7 {
    min-width: 1040px;
  }
}

@media (max-width: 820px) {
  .ztx-list-gold-page-v7 {
    gap: 14px;
    padding-top: 8px;
  }

  .ztx-list-gold-topbar-v7 {
    padding-right: 52px;
  }

  .ztx-list-gold-add-btn-v7 {
    min-height: 42px !important;
    padding: 0 18px !important;
  }

  .ztx-list-gold-filters-v7 {
    grid-template-columns: 1fr;
  }

  .ztx-list-gold-pagination-v7 {
    flex-direction: column;
    align-items: stretch;
  }

  .ztx-list-gold-pagination-controls-v7 {
    justify-content: center;
  }
}

.ztx-list-gold-add-btn-v7.is-icon-only {
  width: 54px;
  min-width: 54px;
  padding: 0 !important;
  font-size: 1.4rem;
  font-weight: 800;
}

.ztx-gold-avatar-v9 {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fde9b4, #fff5db);
  color: #b7791f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.ztx-gold-avatar-v9 strong {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.ztx-gold-avatar-v9.has-photo strong {
  display: none;
}

.ztx-gold-avatar-v9.is-owner {
  width: 28px;
  height: 28px;
}

.ztx-gold-avatar-v9.is-large {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.ztx-gold-avatar-v9.is-large strong {
  font-size: 1.08rem;
}

.ztx-list-gold-owner-cell-v7 span {
  font-size: 0.8rem;
  font-weight: 700;
}

.ztx-gold-action-icon-v9 {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
}

.ztx-gold-action-icon-v9 svg,
.ztx-gold-action-btn-v7 .ztx-line-icon {
  width: 14px;
  height: 14px;
}

.ztx-gold-action-icon-v9.is-whatsapp {
  color: #16a34a;
}

.ztx-gold-action-icon-v9.is-mail {
  color: #c76c0c;
}

.ztx-gold-action-icon-v9.is-clock {
  color: #d97706;
}

.ztx-gold-action-icon-v9.is-follow {
  color: #2563eb;
}

.ztx-list-gold-next-icon-v7 .ztx-gold-action-icon-v9 {
  width: 18px;
  height: 18px;
}

.ztx-list-gold-next-icon-v7 .ztx-gold-action-icon-v9 svg {
  width: 18px;
  height: 18px;
}

.ztx-list-gold-next-date-v7 strong {
  text-transform: lowercase;
}

.ztx-gold-contact-modal-v9 {
  position: relative;
}

.ztx-gold-photo-panel-v9 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.84), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.ztx-gold-photo-meta-v9 {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ztx-gold-photo-meta-v9 strong {
  display: block;
  color: #111827;
  font-size: 0.96rem;
  margin-bottom: 2px;
}

.ztx-gold-photo-meta-v9 small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ztx-gold-photo-actions-v9 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ztx-gold-photo-btn-v9 {
  min-height: 38px !important;
  border-radius: 12px !important;
}

.ztx-gold-photo-btn-v9.is-danger {
  color: #dc2626 !important;
}

.ztx-gold-hidden-input-v9 {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ztx-gold-responsible-layer-v9 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
}

.ztx-gold-responsible-backdrop-v9 {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
}

.ztx-gold-responsible-card-v9 {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 48px));
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.18);
  padding: 22px;
}

.ztx-gold-responsible-head-v9 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ztx-gold-responsible-head-v9 h4 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 1.2rem;
}

.ztx-gold-responsible-head-v9 p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
}

.ztx-gold-responsible-grid-v9 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ztx-gold-responsible-grid-v9 .is-span-2 {
  grid-column: 1 / -1;
}

.ztx-gold-responsible-form-v9 textarea {
  min-height: 92px;
  resize: vertical;
}

.ztx-list-gold-contact-cell-v7 strong,
.ztx-list-gold-owner-cell-v7 span,
.ztx-list-gold-next-copy-v7 strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ztx-list-gold-next-copy-v7 p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 820px) {
  .ztx-gold-photo-panel-v9 {
    flex-direction: column;
    align-items: stretch;
  }

  .ztx-gold-photo-actions-v9 {
    justify-content: flex-start;
  }

  .ztx-gold-responsible-card-v9 {
    width: min(100%, calc(100% - 24px));
    padding: 18px;
  }

  .ztx-gold-responsible-grid-v9 {
    grid-template-columns: 1fr;
  }

  .ztx-gold-responsible-grid-v9 .is-span-2 {
    grid-column: auto;
  }
}

/* Lista Gold final approved adjustments V10 */

.workspace-body-pro:has(.ztx-list-gold-page-v7) .ztx-app-stage {
  width: min(100%, 1496px);
  margin: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.ztx-list-gold-page-v7 {
  gap: 14px;
  padding: 8px 0 20px;
  width: 100%;
  max-width: none;
}

.ztx-list-gold-topbar-v7 {
  min-height: 40px;
  padding-right: 76px;
}

.ztx-list-gold-summary-grid-v7 {
  gap: 10px;
}

.ztx-gold-summary-card-v7 {
  min-height: 110px;
  padding: 13px 13px 11px;
  border-radius: 16px;
}

.ztx-gold-summary-card-copy-v7 strong {
  font-size: clamp(1.4rem, 1.65vw, 1.8rem);
}

.ztx-gold-summary-card-copy-v7 p {
  font-size: 0.74rem;
}

.ztx-gold-summary-card-v7.is-elite {
  position: relative;
  overflow: hidden;
}

.ztx-gold-summary-card-v7.is-elite::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0));
  pointer-events: none;
}

.ztx-list-gold-layout-v7 {
  grid-template-columns: minmax(0, 1.88fr) minmax(296px, 0.72fr);
  gap: 14px;
}

.ztx-list-gold-list-card-v7,
.ztx-list-gold-side-card-v7 {
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.055) !important;
}

.ztx-list-gold-card-head-v7 {
  padding: 16px 18px 0;
}

.ztx-list-gold-card-head-v7 h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.12rem;
}

.ztx-list-gold-card-head-v7 h3 .ztx-line-icon {
  width: 16px;
  height: 16px;
  color: #d09a1f;
}

.ztx-list-gold-card-head-v7.is-side {
  padding-bottom: 12px;
}

.ztx-list-gold-filters-v7 {
  gap: 9px;
  padding: 12px 18px 10px;
}

.ztx-list-gold-table-wrap-v7 {
  padding: 0 10px 8px 18px;
}

.ztx-list-gold-table-v7 {
  border: 0;
  background: #fff;
}

.ztx-list-gold-table-head-v7 {
  background: rgba(248, 250, 252, 0.82);
}

.ztx-list-gold-table-row-v7 {
  padding: 10px 14px;
}

.ztx-list-gold-contact-cell-v7 {
  gap: 9px;
}

.ztx-list-gold-contact-cell-v7 small {
  margin-top: 2px;
}

.ztx-list-gold-date-cell-v7 small,
.ztx-list-gold-next-cell-v7 small {
  line-height: 1.25;
}

.ztx-list-gold-actions-v7 {
  gap: 5px;
}

.ztx-list-gold-action-btn-v7 {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.ztx-list-gold-pagination-v7 {
  padding: 8px 18px 16px;
}

.ztx-list-gold-side-card-v7 {
  padding-bottom: 14px;
}

.ztx-list-gold-next-actions-v7 {
  gap: 0;
}

.ztx-list-gold-next-action-v7 {
  grid-template-columns: 56px minmax(0, 1fr) 22px 16px;
  gap: 11px;
  padding: 12px 16px;
}

.ztx-list-gold-next-date-v7 {
  justify-items: center;
  gap: 1px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  color: #b7791f;
}

.ztx-list-gold-next-date-v7 strong {
  font-size: 1.2rem;
  line-height: 1;
}

.ztx-list-gold-next-date-v7 small {
  font-size: 0.72rem;
  font-weight: 700;
}

.ztx-list-gold-next-date-v7 span {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
}

.ztx-list-gold-inline-btn-v7.is-footer {
  min-height: 38px;
  width: calc(100% - 30px);
  margin-top: 12px;
}

.ztx-gold-contact-modal-v9 {
  width: min(1100px, calc(100vw - 28px));
  padding: 24px 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  box-shadow: 0 30px 64px rgba(15, 23, 42, 0.16);
}

.ztx-gold-contact-head {
  margin-bottom: 14px;
}

.ztx-gold-contact-head h3 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.05;
}

.ztx-gold-contact-head small,
.ztx-gold-contact-head p {
  display: none;
}

.ztx-gold-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
}

.ztx-gold-contact-form .gold-member-block {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.035);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.98));
  padding: 14px 16px;
  box-shadow: none;
}

.ztx-gold-contact-form .gold-member-block .panel-head {
  margin-bottom: 10px;
}

.ztx-gold-contact-form .gold-member-block .panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
}

.ztx-gold-contact-form .gold-member-block .panel-head .ztx-line-icon {
  width: 15px;
  height: 15px;
  color: #e39a00;
}

.ztx-gold-contact-form .gold-member-block-grid {
  gap: 12px 14px;
}

.ztx-gold-contact-form .gold-member-block label {
  gap: 6px;
}

.ztx-gold-contact-form .gold-member-block label span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.ztx-gold-contact-form .gold-member-block input,
.ztx-gold-contact-form .gold-member-block select,
.ztx-gold-contact-form .gold-member-block textarea {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: none;
  padding: 10px 12px;
  font-size: 0.84rem;
}

.ztx-gold-photo-panel-v9 {
  padding: 8px 0 12px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ztx-gold-photo-meta-v9 {
  gap: 12px;
}

.ztx-gold-photo-meta-v9 strong {
  font-size: 0.82rem;
}

.ztx-gold-photo-meta-v9 small {
  font-size: 0.72rem;
  max-width: 240px;
}

.ztx-gold-photo-btn-v9 {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 0.76rem !important;
}

.ztx-gold-observation-field-v9 textarea,
.ztx-gold-contact-form textarea {
  min-height: 78px;
}

.ztx-gold-contact-form > .gold-member-block:nth-of-type(5),
.ztx-gold-contact-form > .modal-actions-row {
  grid-column: 1 / -1;
}

.ztx-gold-contact-form > .modal-actions-row {
  padding-top: 2px;
}

.ztx-gold-contact-form .modal-actions-row {
  justify-content: flex-start;
}

.ztx-gold-contact-form .modal-actions-row .luxury-cta {
  min-height: 40px;
}

@media (max-width: 1240px) {
  .workspace-body-pro:has(.ztx-list-gold-page-v7) .ztx-app-stage {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 900px) {
  .ztx-gold-contact-modal-v9 {
    width: min(100vw - 18px, 100%);
    padding: 20px 18px 16px;
  }

  .ztx-gold-contact-form {
    grid-template-columns: 1fr;
  }
}

/* Lista Gold reference alignment V11 */

.workspace-body-pro:has(.ztx-list-gold-page-v7) .ztx-app-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 14px;
  padding-right: 14px;
}

.ztx-list-gold-page-v7 {
  gap: 26px;
  padding: 18px 0 26px;
}

.ztx-list-gold-topbar-v7 {
  min-height: 48px;
  padding-right: 78px;
}

.ztx-list-gold-add-btn-v7.is-icon-only {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 15px !important;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #111827 !important;
  box-shadow: 0 16px 28px rgba(212, 175, 55, 0.22) !important;
}

.ztx-list-gold-summary-grid-v7 {
  gap: 16px;
}

.ztx-gold-summary-card-v7 {
  position: relative;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  min-height: 160px;
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid #eef0f3;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ztx-gold-summary-card-icon-v7 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff4d1, #fff9ea);
}

.ztx-gold-summary-card-icon-v7 svg {
  width: 18px;
  height: 18px;
}

.ztx-gold-summary-card-copy-v7 {
  align-content: start;
  gap: 10px;
}

.ztx-gold-summary-card-copy-v7 small {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.15;
}

.ztx-gold-summary-card-copy-v7 strong {
  font-size: clamp(2.45rem, 2.7vw, 3.1rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.ztx-gold-summary-card-copy-v7 p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.18;
  -webkit-line-clamp: 1;
}

.ztx-gold-summary-card-v7.is-elite {
  background: linear-gradient(180deg, #111318 0%, #08090d 100%);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 44px rgba(17, 12, 0, 0.24);
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-icon-v7 {
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.22);
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 small {
  color: rgba(255, 255, 255, 0.92);
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 strong {
  color: #ffffff;
}

.ztx-gold-summary-card-v7.is-elite .ztx-gold-summary-card-copy-v7 p {
  color: #f4cf62;
}

.ztx-gold-summary-card-v7.is-danger,
.ztx-gold-summary-card-v7.is-danger-soft {
  background: linear-gradient(180deg, #fff9f9 0%, #fffefe 100%);
  border-color: rgba(248, 113, 113, 0.16);
}

.ztx-gold-summary-card-v7.is-danger .ztx-gold-summary-card-icon-v7,
.ztx-gold-summary-card-v7.is-danger-soft .ztx-gold-summary-card-icon-v7 {
  background: rgba(254, 226, 226, 0.88);
  color: #ef4444;
}

.ztx-gold-summary-card-v7.is-danger .ztx-gold-summary-card-copy-v7 p {
  color: #ef4444;
}

.ztx-gold-summary-card-accent-v11 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 94px;
  height: 62px;
  background:
    radial-gradient(circle at 18% 26%, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0) 48%),
    repeating-radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.44) 0 1px, transparent 1px 8px);
  border-bottom-right-radius: 22px;
  pointer-events: none;
  opacity: 0.95;
}

.ztx-list-gold-layout-v7 {
  grid-template-columns: minmax(0, 2.16fr) minmax(388px, 1fr);
  gap: 28px;
}

.ztx-list-gold-list-card-v7,
.ztx-list-gold-side-card-v7 {
  border-radius: 22px !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08) !important;
}

.ztx-list-gold-card-head-v7 {
  padding: 28px 30px 0;
}

.ztx-list-gold-card-head-v7 h3 {
  gap: 10px;
  font-size: 1.06rem;
  font-weight: 800;
}

.ztx-list-gold-card-head-v7 h3 .ztx-line-icon {
  width: 17px;
  height: 17px;
  color: #d09a1f;
}

.ztx-list-gold-filters-v7 {
  grid-template-columns: 1.08fr 0.92fr 0.98fr 0.98fr 1.28fr auto;
  gap: 12px;
  padding: 18px 30px 18px;
}

.ztx-list-gold-filters-v7 .ztx-field span {
  font-size: 0.72rem;
}

.ztx-list-gold-filters-v7 .ztx-field input,
.ztx-list-gold-filters-v7 .ztx-field select {
  min-height: 48px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.08);
  font-size: 0.88rem;
}

.ztx-list-gold-field-v11 .ztx-list-gold-input-shell-v11 {
  position: relative;
  display: flex;
  align-items: center;
}

.ztx-list-gold-field-v11 .ztx-list-gold-input-shell-v11 > .ztx-line-icon {
  position: absolute;
  width: 15px;
  height: 15px;
  color: #64748b;
  pointer-events: none;
}

.ztx-list-gold-field-v11.is-month .ztx-list-gold-input-shell-v11 > .ztx-line-icon {
  left: 14px;
}

.ztx-list-gold-field-v11.is-month select {
  padding-left: 40px;
}

.ztx-list-gold-field-v11.is-search .ztx-list-gold-input-shell-v11 > .ztx-line-icon {
  right: 14px;
}

.ztx-list-gold-field-v11.is-search input {
  padding-right: 40px;
}

.ztx-list-gold-field-v11.is-date-operational {
  position: relative;
}

.ztx-list-gold-date-control-v21 {
  position: relative;
}

.ztx-list-gold-date-trigger-v21 {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ztx-list-gold-date-trigger-v21 .ztx-line-icon {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex: 0 0 auto;
}

.ztx-list-gold-date-trigger-v21 .ztx-line-icon:last-child {
  margin-left: auto;
}

.ztx-list-gold-date-trigger-v21 strong {
  font-size: 0.9rem !important;
  font-weight: 700;
  color: #0f172a;
}

.ztx-list-gold-date-control-v21.is-open .ztx-list-gold-date-trigger-v21 {
  border-color: rgba(208, 154, 31, 0.42);
  box-shadow: 0 18px 36px rgba(208, 154, 31, 0.12);
}

.ztx-list-gold-date-popover-v21 {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 356px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.ztx-list-gold-date-popover-head-v21 strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.ztx-list-gold-date-mode-grid-v21 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ztx-list-gold-date-mode-btn-v21 {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.ztx-list-gold-date-mode-btn-v21.is-active {
  border-color: rgba(208, 154, 31, 0.42);
  background: linear-gradient(135deg, #f7cf4a 0%, #e8b529 100%);
  color: #1f2937;
  box-shadow: 0 14px 28px rgba(232, 181, 41, 0.22);
}

.ztx-list-gold-date-input-group-v21 {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ztx-list-gold-date-input-group-v21 > span {
  font-size: 0.72rem !important;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.01em;
}

.ztx-list-gold-date-input-group-v21 input {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ztx-list-gold-date-range-grid-v21 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ztx-list-gold-date-actions-v21 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ztx-list-gold-date-secondary-v21,
.ztx-list-gold-date-primary-v21 {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 800;
}

.ztx-list-gold-date-secondary-v21 {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
}

.ztx-list-gold-date-primary-v21 {
  border: 1px solid rgba(208, 154, 31, 0.18);
  background: linear-gradient(135deg, #f7cf4a 0%, #e8b529 100%);
  color: #1f2937;
  box-shadow: 0 16px 28px rgba(232, 181, 41, 0.2);
}

@media (max-width: 920px) {
  .ztx-list-gold-date-popover-v21 {
    width: min(100vw - 56px, 356px);
  }

  .ztx-list-gold-date-mode-grid-v21,
  .ztx-list-gold-date-range-grid-v21 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ztx-list-gold-filter-button-v7 {
  min-width: 116px;
  min-height: 48px;
  align-self: end;
}

.ztx-list-gold-table-wrap-v7 {
  padding: 0 18px 12px 30px;
}

.ztx-list-gold-table-v7 {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.045);
}

.ztx-list-gold-table-head-v7,
.ztx-list-gold-table-row-v7 {
  grid-template-columns: minmax(214px, 2.28fr) minmax(126px, 1.04fr) minmax(92px, 0.74fr) minmax(132px, 0.98fr) minmax(136px, 0.98fr) minmax(128px, 0.92fr) minmax(188px, 1.3fr) minmax(78px, 0.5fr);
  gap: 14px;
}

.ztx-list-gold-table-head-v7 {
  padding: 14px 16px;
  font-size: 0.67rem;
}

.ztx-list-gold-table-row-v7 {
  padding: 14px 16px;
}

.ztx-list-gold-contact-cell-v7,
.ztx-list-gold-owner-cell-v7 {
  gap: 11px;
}

.ztx-list-gold-contact-cell-v7 strong {
  font-size: 0.98rem;
}

.ztx-list-gold-contact-cell-v7 small,
.ztx-list-gold-owner-cell-v7 span {
  font-size: 0.8rem;
}

.ztx-list-gold-page-v7 .ztx-status-tag {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.79rem;
  line-height: 1;
}

.ztx-list-gold-date-cell-v7 strong,
.ztx-list-gold-next-cell-v7 strong {
  font-size: 0.88rem;
}

.ztx-list-gold-date-cell-v7 small,
.ztx-list-gold-next-cell-v7 small {
  font-size: 0.76rem;
}

.ztx-list-gold-next-cell-v7 {
  min-width: 0;
}

.ztx-list-gold-next-cell-v7 strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ztx-list-gold-next-cell-v7.is-late strong,
.ztx-list-gold-next-cell-v7.is-late small {
  color: #dc2626;
}

.ztx-list-gold-actions-v7 {
  gap: 8px;
}

.ztx-list-gold-action-btn-v7 {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.ztx-list-gold-row-menu-v11 {
  position: relative;
}

.ztx-list-gold-row-menu-v11 summary {
  list-style: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ztx-list-gold-row-menu-v11 summary::-webkit-details-marker {
  display: none;
}

.ztx-list-gold-row-menu-v11 .card-menu-box {
  top: 38px;
  right: 0;
  min-width: 152px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.ztx-list-gold-pagination-v7 {
  padding: 16px 30px 22px;
}

.ztx-list-gold-side-card-v7 {
  padding-bottom: 14px;
}

.ztx-list-gold-card-head-v7.is-side {
  padding-bottom: 14px;
}

.ztx-list-gold-next-action-v7 {
  grid-template-columns: 68px minmax(0, 1fr) 18px 12px;
  gap: 12px;
  padding: 15px 18px;
}

.ztx-list-gold-next-date-v7 {
  justify-items: center;
  gap: 3px;
  min-width: 62px;
}

.ztx-list-gold-next-date-v7 strong {
  font-size: 1.1rem;
}

.ztx-list-gold-next-date-v7 small {
  font-size: 0.78rem;
}

.ztx-list-gold-next-date-v7 span {
  font-size: 0.7rem;
}

.ztx-list-gold-next-copy-v7 strong {
  font-size: 0.95rem;
}

.ztx-list-gold-next-copy-v7 p {
  font-size: 0.82rem;
  color: #475569;
}

.ztx-list-gold-next-icon-v7 {
  font-size: 1rem;
}

.ztx-list-gold-inline-btn-v7.is-footer {
  min-height: 42px;
  width: calc(100% - 36px);
  margin-top: 14px;
}

@media (max-width: 1280px) {
  .workspace-body-pro:has(.ztx-list-gold-page-v7) .ztx-app-stage {
    width: 100%;
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ztx-list-gold-summary-grid-v7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ztx-list-gold-layout-v7 {
    grid-template-columns: 1fr;
  }
}

/* Calendario Gold reference rebuild V14 */

.ztx-calendar-ref-page {
  width: 100%;
  margin: 0;
  gap: 22px;
  padding: 6px 0 30px;
}

.ztx-calendar-ref-page .panel {
  width: 100%;
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(221, 228, 238, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.ztx-calendar-ref-glyph,
.ztx-calendar-ref-glyph svg {
  width: 18px;
  height: 18px;
}

.ztx-calendar-ref-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ztx-calendar-ref-create {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.98rem;
}

.ztx-calendar-ref-create svg {
  width: 17px;
  height: 17px;
}

.ztx-calendar-ref-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.ztx-calendar-ref-attention {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-color: rgba(212, 175, 55, 0.26) !important;
}

.ztx-calendar-ref-attention-head {
  display: flex;
  align-items: center;
}

.ztx-calendar-ref-attention-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c08a11;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ztx-calendar-ref-attention-label svg {
  width: 18px;
  height: 18px;
}

.ztx-calendar-ref-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ztx-calendar-ref-attention-metric {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 10px 10px 0;
}

.ztx-calendar-ref-attention-metric + .ztx-calendar-ref-attention-metric {
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  padding-left: 14px;
}

.ztx-calendar-ref-attention-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d29a1d;
  background: rgba(255, 248, 233, 0.92);
  border: 1px solid rgba(240, 210, 140, 0.85);
}

.ztx-calendar-ref-attention-icon svg {
  width: 18px;
  height: 18px;
}

.ztx-calendar-ref-attention-metric small,
.ztx-calendar-ref-stat-card small {
  display: block;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.ztx-calendar-ref-attention-metric strong,
.ztx-calendar-ref-stat-card strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 2rem;
  line-height: 1;
}

.ztx-calendar-ref-attention-metric span,
.ztx-calendar-ref-stat-card span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.9rem;
}

.ztx-calendar-ref-view-card {
  padding: 18px;
  display: grid;
  align-items: center;
}

.ztx-calendar-ref-view-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ztx-calendar-ref-tab {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 0.98rem;
}

.ztx-calendar-ref-tab.is-active {
  border-color: rgba(212, 175, 55, 0.48);
  background: linear-gradient(180deg, #f1c83f 0%, #ddb128 100%);
  color: #111827;
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.18);
}

.ztx-calendar-ref-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(520px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.ztx-calendar-ref-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ztx-calendar-ref-panel-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 1rem;
}

.ztx-calendar-ref-panel-head h3 svg {
  width: 18px;
  height: 18px;
  color: #d59a12;
}

.ztx-calendar-ref-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ztx-calendar-ref-link svg {
  width: 15px;
  height: 15px;
}

.ztx-calendar-ref-timeline {
  padding: 18px 18px 14px;
}

.ztx-calendar-ref-timeline-list {
  display: grid;
}

.ztx-calendar-ref-timeline-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto 28px;
  gap: 14px;
  align-items: center;
  padding: 14px 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.ztx-calendar-ref-timeline-time {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ztx-calendar-ref-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--calendar-accent, #d49c18);
  flex: 0 0 auto;
}

.ztx-calendar-ref-timeline-time strong {
  color: #64748b;
  font-size: 0.95rem;
}

.ztx-calendar-ref-timeline-copy {
  min-width: 0;
}

.ztx-calendar-ref-timeline-copy h4 {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
}

.ztx-calendar-ref-timeline-copy p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.ztx-calendar-ref-priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.ztx-calendar-ref-priority-chip svg {
  width: 14px;
  height: 14px;
}

.ztx-calendar-ref-priority-chip em {
  font-style: normal;
}

.ztx-calendar-ref-priority-chip.is-danger {
  color: #ef4444;
  background: #fff1f2;
}

.ztx-calendar-ref-priority-chip.is-warning {
  color: #f59e0b;
  background: #fff7ed;
}

.ztx-calendar-ref-priority-chip.is-positive {
  color: #16a34a;
  background: #ecfdf3;
}

.ztx-calendar-ref-menu-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
}

.ztx-calendar-ref-menu-btn svg {
  width: 16px;
  height: 16px;
}

.ztx-calendar-ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ztx-calendar-ref-stat-card {
  padding: 16px 14px 14px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
}

.ztx-calendar-ref-stat-icon {
  display: inline-flex;
  color: #3b82f6;
  margin-bottom: 10px;
}

.ztx-calendar-ref-stat-icon svg {
  width: 19px;
  height: 19px;
}

.ztx-calendar-ref-stat-card strong {
  font-size: 2.2rem;
}

.ztx-calendar-ref-stat-card.is-cyan .ztx-calendar-ref-stat-icon { color: #06b6d4; }
.ztx-calendar-ref-stat-card.is-positive .ztx-calendar-ref-stat-icon { color: #22c55e; }
.ztx-calendar-ref-stat-card.is-danger .ztx-calendar-ref-stat-icon { color: #ef4444; }
.ztx-calendar-ref-stat-card.is-gold .ztx-calendar-ref-stat-icon { color: #f59e0b; }
.ztx-calendar-ref-stat-card.is-emerald .ztx-calendar-ref-stat-icon { color: #16a34a; }

.ztx-calendar-ref-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(520px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ztx-calendar-ref-calendar {
  padding: 18px 18px 14px;
}

.ztx-calendar-ref-calendar-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ztx-calendar-ref-calendar-tools-left {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ztx-calendar-ref-date-field {
  display: grid;
  gap: 8px;
  min-width: 178px;
}

.ztx-calendar-ref-date-field > span {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.ztx-calendar-ref-date-shell {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
}

.ztx-calendar-ref-date-shell svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.ztx-calendar-ref-date-shell select {
  border: 0;
  background: transparent;
  color: #111827;
  font-weight: 600;
  min-width: 116px;
}

.ztx-calendar-ref-nav-btns {
  display: inline-flex;
  gap: 8px;
}

.ztx-calendar-ref-icon-btn,
.ztx-calendar-ref-soft-btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  color: #475569;
  font-weight: 700;
}

.ztx-calendar-ref-icon-btn {
  width: 46px;
  display: grid;
  place-items: center;
}

.ztx-calendar-ref-icon-btn svg {
  width: 16px;
  height: 16px;
}

.ztx-calendar-ref-soft-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.ztx-calendar-ref-soft-btn.is-filter svg {
  width: 15px;
  height: 15px;
}

.ztx-calendar-ref-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 10px;
}

.ztx-calendar-ref-weekdays span {
  padding: 0 10px 10px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.ztx-calendar-ref-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid rgba(226, 232, 240, 0.82);
  border-left: 1px solid rgba(226, 232, 240, 0.82);
}

.ztx-calendar-ref-day {
  min-height: 102px;
  padding: 10px 9px 8px;
  border-right: 1px solid rgba(226, 232, 240, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: #fff;
}

.ztx-calendar-ref-day.is-muted {
  background: #fcfdff;
}

.ztx-calendar-ref-day.is-muted strong {
  color: #cbd5e1;
}

.ztx-calendar-ref-day.is-today {
  background: linear-gradient(180deg, rgba(255,251,237,0.96), rgba(255,247,228,0.92));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.45);
}

.ztx-calendar-ref-day-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.ztx-calendar-ref-day-head strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.ztx-calendar-ref-day-items {
  display: grid;
  gap: 5px;
}

.ztx-calendar-ref-cell-event {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
  font-size: 0.71rem;
  text-align: left;
}

.ztx-calendar-ref-cell-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--calendar-accent, #d29a16);
  flex: 0 0 auto;
}

.ztx-calendar-ref-cell-event span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ztx-calendar-ref-period {
  padding: 18px 18px 14px;
}

.ztx-calendar-ref-period-head {
  margin-bottom: 12px;
}

.ztx-calendar-ref-period-head h3 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
}

.ztx-calendar-ref-period-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ztx-calendar-ref-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ztx-calendar-ref-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
}

.ztx-calendar-ref-pill.is-active {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, #f2c94b 0%, #ddb12a 100%);
}

.ztx-calendar-ref-pill em {
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: 0.7rem;
}

.ztx-calendar-ref-search-field {
  min-width: 230px;
  position: relative;
}

.ztx-calendar-ref-search-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  color: #111827;
}

.ztx-calendar-ref-search-field svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #64748b;
}

.ztx-calendar-ref-agenda-table {
  display: grid;
}

.ztx-calendar-ref-agenda-head,
.ztx-calendar-ref-agenda-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(132px, 0.9fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(100px, 0.78fr) 26px;
  gap: 14px;
  align-items: center;
}

.ztx-calendar-ref-agenda-head {
  padding: 0 6px 10px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ztx-calendar-ref-agenda-row {
  padding: 14px 6px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.ztx-calendar-ref-agenda-commitment {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ztx-calendar-ref-agenda-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ztx-calendar-ref-agenda-commitment strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 0.92rem;
}

.ztx-calendar-ref-agenda-meta {
  color: #475569;
  font-size: 0.88rem;
}

.ztx-calendar-ref-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.ztx-calendar-ref-status-chip.is-danger {
  color: #ef4444;
  background: #fff1f2;
}

.ztx-calendar-ref-status-chip.is-warning {
  color: #f59e0b;
  background: #fff7ed;
}

.ztx-calendar-ref-status-chip.is-positive {
  color: #16a34a;
  background: #ecfdf3;
}

.ztx-calendar-ref-status-chip.is-neutral,
.ztx-calendar-ref-status-chip.is-info {
  color: #475569;
  background: #f1f5f9;
}

.ztx-calendar-ref-footer-link {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid rgba(229, 212, 160, 0.92);
  background: linear-gradient(180deg, rgba(255,250,236,0.98), rgba(255,247,224,0.98));
  color: #a36f08;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ztx-calendar-ref-footer-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1500px) {
  .ztx-calendar-ref-hero,
  .ztx-calendar-ref-overview,
  .ztx-calendar-ref-main-grid {
    grid-template-columns: 1fr;
  }

  .ztx-calendar-ref-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .ztx-calendar-ref-view-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-calendar-ref-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-calendar-ref-period-tools,
  .ztx-calendar-ref-calendar-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .ztx-calendar-ref-agenda-head,
  .ztx-calendar-ref-agenda-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.9fr) minmax(100px, 0.75fr) minmax(110px, 0.75fr) minmax(100px, 0.75fr) 24px;
  }
}

@media (max-width: 860px) {
  .ztx-calendar-ref-attention-grid,
  .ztx-calendar-ref-stats-grid,
  .ztx-calendar-ref-view-switch {
    grid-template-columns: 1fr;
  }

  .ztx-calendar-ref-timeline-row {
    grid-template-columns: 1fr;
  }

  .ztx-calendar-ref-agenda-head {
    display: none;
  }

  .ztx-calendar-ref-agenda-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ztx-calendar-ref-grid,
  .ztx-calendar-ref-weekdays {
    min-width: 860px;
  }

  .ztx-calendar-ref-calendar {
    overflow-x: auto;
  }
}

/* Calendario Gold fidelity refinements V15 */

.workspace-body-pro:has(.ztx-calendar-ref-page) .ztx-app-topbar {
  width: 100%;
  max-width: none;
  margin: 0 auto 10px;
  padding: 4px 18px 12px 14px;
}

.workspace-body-pro:has(.ztx-calendar-ref-page) .ztx-app-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 14px;
  padding-right: 18px;
}

.ztx-calendar-ref-page {
  gap: 20px;
  padding: 8px 0 30px;
}

.ztx-calendar-ref-topbar {
  min-height: 48px;
  padding-right: 78px;
}

.ztx-calendar-ref-create {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.96rem;
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.18);
}

.ztx-calendar-ref-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(540px, 0.97fr);
  gap: 18px;
}

.ztx-calendar-ref-attention,
.ztx-calendar-ref-view-card {
  min-height: 160px;
}

.ztx-calendar-ref-attention {
  padding: 14px 20px 12px;
}

.ztx-calendar-ref-attention-grid {
  gap: 0;
}

.ztx-calendar-ref-attention-metric {
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 12px 8px 12px 0;
}

.ztx-calendar-ref-attention-metric + .ztx-calendar-ref-attention-metric {
  padding-left: 18px;
}

.ztx-calendar-ref-attention-metric small {
  font-size: 0.84rem;
}

.ztx-calendar-ref-attention-metric strong {
  font-size: 2.05rem;
}

.ztx-calendar-ref-attention-metric span {
  font-size: 0.92rem;
}

.ztx-calendar-ref-view-card {
  padding: 18px 20px;
}

.ztx-calendar-ref-overview {
  grid-template-columns: minmax(0, 1.18fr) minmax(680px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ztx-calendar-ref-timeline {
  min-height: 196px;
  padding: 18px 18px 16px;
}

.ztx-calendar-ref-panel-head {
  margin-bottom: 14px;
}

.ztx-calendar-ref-timeline-row {
  grid-template-columns: 66px minmax(0, 1fr) 92px 24px;
  gap: 16px;
  padding: 14px 8px;
}

.ztx-calendar-ref-timeline-copy h4 {
  font-size: 1rem;
}

.ztx-calendar-ref-timeline-copy p {
  font-size: 0.86rem;
}

.ztx-calendar-ref-priority-chip {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.ztx-calendar-ref-stats-grid {
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 10px;
}

.ztx-calendar-ref-stat-card {
  min-height: 178px;
  padding: 16px 14px 14px;
  border-radius: 18px;
}

.ztx-calendar-ref-stat-card small {
  font-size: 0.79rem;
}

.ztx-calendar-ref-stat-card strong {
  font-size: 2.05rem;
}

.ztx-calendar-ref-stat-card span {
  font-size: 0.87rem;
}

.ztx-calendar-ref-main-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(640px, 0.92fr);
  gap: 22px;
}

.ztx-calendar-ref-calendar,
.ztx-calendar-ref-period {
  padding: 18px 18px 14px;
}

.ztx-calendar-ref-date-field {
  min-width: 182px;
}

.ztx-calendar-ref-date-shell select {
  min-width: 126px;
  font-size: 0.94rem;
}

.ztx-calendar-ref-icon-btn,
.ztx-calendar-ref-soft-btn {
  min-height: 44px;
}

.ztx-calendar-ref-day {
  min-height: 124px;
  padding: 10px 10px 8px;
}

.ztx-calendar-ref-cell-event {
  min-height: 22px;
  padding: 4px 7px;
  font-size: 0.72rem;
}

.ztx-calendar-ref-period-head {
  margin-bottom: 14px;
}

.ztx-calendar-ref-search-field {
  min-width: 240px;
}

.ztx-calendar-ref-search-field input {
  min-height: 42px;
  font-size: 0.9rem;
}

.ztx-calendar-ref-agenda-head,
.ztx-calendar-ref-agenda-row {
  grid-template-columns: minmax(220px, 1.52fr) minmax(140px, 0.95fr) minmax(112px, 0.84fr) minmax(112px, 0.84fr) minmax(102px, 0.82fr) 24px;
}

.ztx-calendar-ref-agenda-row {
  padding: 15px 6px;
}

.ztx-calendar-ref-agenda-commitment strong {
  font-size: 0.91rem;
}

.ztx-calendar-ref-agenda-meta {
  font-size: 0.87rem;
}

.ztx-calendar-ref-status-chip {
  min-height: 28px;
  padding: 0 11px;
  font-size: 0.79rem;
}

.ztx-calendar-ref-footer-link {
  min-height: 48px;
  margin-top: 16px;
}

.ztx-calendar-ref-timeline .empty-state,
.ztx-calendar-ref-agenda-table .empty-state {
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: #f3f6fb;
  color: #64748b;
  display: grid;
  place-items: center;
}

@media (max-width: 1680px) {
  .ztx-calendar-ref-overview {
    grid-template-columns: minmax(0, 1.12fr) minmax(620px, 0.98fr);
  }

  .ztx-calendar-ref-main-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(600px, 0.96fr);
  }
}

@media (max-width: 1360px) {
  .ztx-calendar-ref-hero,
  .ztx-calendar-ref-overview,
  .ztx-calendar-ref-main-grid {
    grid-template-columns: 1fr;
  }

  .ztx-calendar-ref-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dashboard reference rebuild V17 */

.workspace-body-pro:has(.ztx-dashboard-page-v17) .ztx-app-topbar {
  width: 100%;
  max-width: none;
  margin: 0 auto 8px;
  padding: 4px 18px 10px 12px !important;
}

.workspace-body-pro:has(.ztx-dashboard-page-v17) .ztx-app-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 18px 30px 12px;
}

.ztx-dashboard-page-v17 {
  display: grid;
  gap: 14px;
  padding: 0 0 24px;
  color: #162033;
}

.ztx-dashboard-controls-v17 {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 2px;
}

.ztx-dashboard-date-field-v17 {
  display: grid;
  gap: 8px;
  min-width: 164px;
}

.ztx-dashboard-date-field-v17 > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.ztx-dashboard-date-shell-v17 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.ztx-dashboard-date-shell-v17 svg {
  width: 18px;
  height: 18px;
  color: #7b879b;
}

.ztx-dashboard-date-shell-v17 select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 600;
  outline: none;
}

.ztx-dashboard-tabs-v17 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 4px;
  border: 1px solid #ebeff5;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.ztx-dashboard-tab-v17 {
  min-width: 72px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #1f2937;
  font-size: 0.94rem;
  font-weight: 600;
}

.ztx-dashboard-tab-v17.is-active {
  border-color: rgba(224, 173, 49, 0.32);
  background: linear-gradient(180deg, #ffdf82 0%, #f2c23a 100%);
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.ztx-dashboard-sync-v17 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 282px;
  min-height: 74px;
  padding: 0 16px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.ztx-dashboard-sync-v17 > i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.ztx-dashboard-sync-v17 strong {
  display: block;
  color: #16a34a;
  font-size: 1rem;
  font-weight: 700;
}

.ztx-dashboard-sync-v17 small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.ztx-dashboard-card-v17 {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #edf1f6;
  border-radius: 22px;
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.05),
    0 4px 14px rgba(15, 23, 42, 0.03);
}

.ztx-dashboard-section-title-v17 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ztx-dashboard-section-title-v17.is-between {
  justify-content: space-between;
  align-items: flex-start;
}

.ztx-dashboard-section-title-v17 h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ztx-dashboard-section-title-v17 h3 svg {
  width: 16px;
  height: 16px;
  color: #d79b08;
}

.ztx-dashboard-section-title-v17 p {
  margin: 4px 0 0;
  color: #5f6b81;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ztx-dashboard-attention-v17 {
  padding: 12px 18px 14px;
}

.ztx-dashboard-attention-strip-v17 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.2fr);
  gap: 0;
  margin-top: 10px;
}

.ztx-dashboard-attention-metric-v17 {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 8px 16px;
}

.ztx-dashboard-attention-metric-v17 + .ztx-dashboard-attention-metric-v17 {
  border-left: 1px solid #edf1f6;
}

.ztx-dashboard-attention-icon-v17 {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(219, 170, 39, 0.32);
  background: #fffdf7;
  color: #d79b08;
}

.ztx-dashboard-attention-icon-v17 svg {
  width: 17px;
  height: 17px;
}

.ztx-dashboard-attention-metric-v17.is-danger .ztx-dashboard-attention-icon-v17 {
  border-color: rgba(255, 97, 97, 0.25);
  background: #fff8f8;
  color: #ff5d5d;
}

.ztx-dashboard-attention-metric-v17.is-blue .ztx-dashboard-attention-icon-v17 {
  border-color: rgba(59, 130, 246, 0.24);
  background: #f6f9ff;
  color: #4f7dff;
}

.ztx-dashboard-attention-copy-v17 small {
  display: block;
  color: #445069;
  font-size: 0.82rem;
  font-weight: 600;
}

.ztx-dashboard-attention-copy-v17 strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ztx-dashboard-attention-copy-v17 span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.84rem;
}

.ztx-dashboard-spotlight-v17 {
  padding: 14px 12px 16px;
}

.ztx-dashboard-week-chip-v17 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e9edf4;
  border-radius: 13px;
  background: #ffffff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
}

.ztx-dashboard-week-chip-v17 svg {
  width: 15px;
  height: 15px;
  color: #6e7a8f;
}

.ztx-dashboard-spotlight-grid-v17 {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.92fr);
  gap: 14px;
  margin-top: 14px;
}

.ztx-dashboard-featured-v17 {
  padding: 14px 14px 12px;
  border-color: rgba(228, 182, 63, 0.42);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(228, 182, 63, 0.08) inset;
}

.ztx-dashboard-featured-top-v17 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.ztx-dashboard-featured-person-v17 {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ztx-dashboard-featured-avatar-wrap-v17 {
  position: relative;
}

.ztx-dashboard-avatar-v17 {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe4a6 0%, #f4c95a 100%);
  color: #7b4f00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.ztx-dashboard-avatar-v17.is-large {
  width: 98px;
  height: 98px;
  border: 3px solid #e3a816;
  box-shadow: 0 14px 28px rgba(227, 168, 22, 0.18);
}

.ztx-dashboard-avatar-v17 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ztx-dashboard-featured-crown-v17 {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7c64d 0%, #dfa219 100%);
  color: #fffdf6;
  box-shadow: 0 10px 24px rgba(227, 168, 22, 0.22);
}

.ztx-dashboard-featured-crown-v17 svg {
  width: 14px;
  height: 14px;
}

.ztx-dashboard-featured-copy-v17 h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ztx-dashboard-featured-copy-v17 p {
  margin: 4px 0 0;
  color: #4e5d76;
  font-size: 0.98rem;
}

.ztx-dashboard-featured-badge-v17 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(229, 177, 46, 0.34);
  border-radius: 999px;
  background: #fff8e7;
  color: #d3920c;
  font-size: 0.88rem;
  font-weight: 700;
}

.ztx-dashboard-featured-badge-v17 svg {
  width: 14px;
  height: 14px;
}

.ztx-dashboard-featured-score-v17 {
  min-width: 156px;
  padding-top: 8px;
  text-align: left;
}

.ztx-dashboard-featured-score-v17 small {
  display: block;
  color: #607087;
  font-size: 0.9rem;
}

.ztx-dashboard-featured-score-v17 strong {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 6px;
  color: #0f172a;
  font-size: 4.2rem;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.ztx-dashboard-featured-score-v17 strong em {
  color: #7d8aa0;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 600;
}

.ztx-dashboard-featured-score-v17 span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #15a34a;
  font-size: 0.94rem;
  font-weight: 700;
}

.ztx-dashboard-featured-score-v17 span i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.ztx-dashboard-mini-grid-v17 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ztx-dashboard-mini-stat-v17 {
  min-height: 108px;
  padding: 14px 14px 12px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #ffffff;
}

.ztx-dashboard-mini-stat-icon-v17 {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f8fafc;
  color: #d79b08;
}

.ztx-dashboard-mini-stat-icon-v17 svg {
  width: 15px;
  height: 15px;
}

.ztx-dashboard-mini-stat-v17.is-positive .ztx-dashboard-mini-stat-icon-v17 {
  background: #ecfdf3;
  color: #22c55e;
}

.ztx-dashboard-mini-stat-v17.is-blue .ztx-dashboard-mini-stat-icon-v17 {
  background: #eef4ff;
  color: #3b82f6;
}

.ztx-dashboard-mini-stat-v17.is-gold .ztx-dashboard-mini-stat-icon-v17 {
  background: #fff8e7;
  color: #d79b08;
}

.ztx-dashboard-mini-stat-v17.is-emerald .ztx-dashboard-mini-stat-icon-v17 {
  background: #ecfdf3;
  color: #22c55e;
}

.ztx-dashboard-mini-stat-v17 small {
  display: block;
  margin-top: 12px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.ztx-dashboard-mini-stat-v17 strong {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}

.ztx-dashboard-mini-stat-v17 span {
  display: block;
  margin-top: 12px;
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 700;
}

.ztx-dashboard-mini-stat-v17.is-blue span {
  color: #3b82f6;
}

.ztx-dashboard-mini-stat-v17.is-gold span {
  color: #d79b08;
}

.ztx-dashboard-weight-v17 {
  padding: 16px;
}

.ztx-dashboard-weight-head-v17 h4 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
}

.ztx-dashboard-weight-head-v17 p {
  margin: 4px 0 0;
  color: #5f6b81;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ztx-dashboard-weight-list-v17 {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ztx-dashboard-weight-row-v17 {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 12px;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  background: #ffffff;
}

.ztx-dashboard-weight-check-v17 {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(231, 177, 43, 0.24);
  background: #fffdf7;
  color: #df9f13;
}

.ztx-dashboard-weight-check-v17 svg {
  width: 14px;
  height: 14px;
}

.ztx-dashboard-weight-row-v17 > strong {
  color: #d79b08;
  font-size: 1rem;
  font-weight: 800;
}

.ztx-dashboard-weight-row-v17 h4 {
  margin: 0;
  color: #182133;
  font-size: 0.96rem;
  font-weight: 800;
}

.ztx-dashboard-weight-row-v17 p {
  margin: 3px 0 0;
  color: #607087;
  font-size: 0.83rem;
  line-height: 1.42;
}

.ztx-dashboard-weight-total-v17 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px;
  color: #475569;
  font-size: 0.9rem;
}

.ztx-dashboard-weight-total-v17 strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}

.ztx-dashboard-bottom-grid-v17 {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 252px;
  gap: 14px;
  align-items: stretch;
}

.ztx-dashboard-ranking-v17 {
  padding: 12px 12px 8px;
}

.ztx-dashboard-ranking-head-v17,
.ztx-dashboard-ranking-row-v17 {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1.52fr) minmax(130px, 1fr) minmax(100px, 0.86fr) minmax(112px, 0.98fr) minmax(92px, 0.84fr) minmax(112px, 0.98fr) minmax(118px, 0.94fr);
  align-items: center;
  column-gap: 14px;
}

.ztx-dashboard-ranking-head-v17 {
  min-height: 48px;
  padding: 0 12px;
  color: #5b677d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ztx-dashboard-ranking-body-v17 {
  border-top: 1px solid #edf1f6;
}

.ztx-dashboard-ranking-row-v17 {
  min-height: 70px;
  padding: 0 12px;
  border-top: 1px solid #f2f5f9;
}

.ztx-dashboard-rank-badge-v17 {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
  background: #eef2f7;
}

.ztx-dashboard-rank-badge-v17.is-excellent {
  background: linear-gradient(180deg, #f5c44e 0%, #dfa220 100%);
  color: #fffdf7;
}

.ztx-dashboard-rank-badge-v17.is-great {
  background: #eff4fb;
  color: #334155;
}

.ztx-dashboard-rank-badge-v17.is-good {
  background: #f5b481;
  color: #fffdf7;
}

.ztx-dashboard-rank-badge-v17.is-regular {
  background: #eef2f7;
  color: #475569;
}

.ztx-dashboard-ranking-member-v17 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ztx-dashboard-ranking-member-v17 .ztx-dashboard-avatar-v17 {
  width: 36px;
  height: 36px;
  font-size: 0.92rem;
}

.ztx-dashboard-ranking-member-v17 strong {
  display: block;
  color: #111827;
  font-size: 0.93rem;
  font-weight: 700;
}

.ztx-dashboard-ranking-row-v17 > span,
.ztx-dashboard-ranking-role-v17 {
  color: #243146;
  font-size: 0.91rem;
}

.ztx-dashboard-ranking-role-v17 {
  color: #66748a;
}

.ztx-dashboard-ranking-score-v17 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ztx-dashboard-ranking-score-v17 strong {
  color: #111827;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ztx-dashboard-score-chip-v17 {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.ztx-dashboard-score-chip-v17.is-excellent {
  background: #e9f9ee;
  color: #1b9b49;
}

.ztx-dashboard-score-chip-v17.is-great {
  background: #eef4ff;
  color: #3b82f6;
}

.ztx-dashboard-score-chip-v17.is-good {
  background: #fff5df;
  color: #d89406;
}

.ztx-dashboard-score-chip-v17.is-regular {
  background: #eef2f7;
  color: #64748b;
}

.ztx-dashboard-note-v17 {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.07), transparent 42%),
    linear-gradient(180deg, #f6f9ff 0%, #eff5ff 100%);
  border-color: #dbe7fb;
  display: grid;
  align-content: space-between;
}

.ztx-dashboard-note-icon-v17 {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  color: #3b82f6;
}

.ztx-dashboard-note-icon-v17 svg {
  width: 15px;
  height: 15px;
}

.ztx-dashboard-note-v17 p {
  margin: 14px 0 0;
  color: #243146;
  font-size: 0.9rem;
  line-height: 1.78;
}

.ztx-dashboard-note-illustration-v17 {
  justify-self: end;
  align-self: end;
  color: #4f7dff;
  opacity: 0.88;
}

.ztx-dashboard-note-illustration-v17 svg {
  width: 46px;
  height: 46px;
}

@media (max-width: 1600px) {
  .ztx-dashboard-attention-strip-v17 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.12fr);
  }

  .ztx-dashboard-spotlight-grid-v17 {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  }

  .ztx-dashboard-bottom-grid-v17 {
    grid-template-columns: minmax(0, 1.12fr) 232px;
  }

  .ztx-dashboard-ranking-head-v17,
  .ztx-dashboard-ranking-row-v17 {
    grid-template-columns: 52px minmax(168px, 1.42fr) minmax(116px, 0.92fr) minmax(92px, 0.82fr) minmax(104px, 0.92fr) minmax(84px, 0.8fr) minmax(104px, 0.92fr) minmax(112px, 0.92fr);
    column-gap: 12px;
  }
}

@media (max-width: 1360px) {
  .ztx-dashboard-controls-v17,
  .ztx-dashboard-spotlight-grid-v17,
  .ztx-dashboard-bottom-grid-v17 {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }

  .ztx-dashboard-controls-v17 {
    justify-content: flex-start;
  }

  .ztx-dashboard-attention-strip-v17 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-dashboard-attention-metric-v17:nth-child(3),
  .ztx-dashboard-attention-metric-v17:nth-child(5) {
    border-left: 0;
  }

  .ztx-dashboard-mini-grid-v17 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-dashboard-ranking-v17 {
    overflow-x: auto;
  }

  .ztx-dashboard-ranking-head-v17,
  .ztx-dashboard-ranking-body-v17 {
    min-width: 980px;
  }

  .ztx-dashboard-note-v17 {
    min-height: 220px;
  }
}

.ztx-closure-register-trigger-v19 {
  min-width: 146px;
  justify-content: center;
}

.ztx-closure-register-actions-v19 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.ztx-readonly-field-v19 input {
  background: #f8fafc;
  color: #475569;
  cursor: default;
}

.ztx-closure-register-notes-v19 {
  grid-column: 1 / -1;
}

.ztx-finance-panels-v19 {
  align-items: start;
}

.workspace-body-pro:has(.ztx-control-gold-page-v25) .ztx-app-stage {
  width: min(1520px, calc(100vw - 300px));
  max-width: 1520px;
}

.ztx-control-gold-page-v25 {
  display: grid;
  gap: 22px;
  padding: 22px 0 34px;
}

.ztx-control-gold-top-v25 h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
  font-weight: 800;
  color: #172033;
  letter-spacing: -0.04em;
}

.ztx-control-gold-stats-primary-v25,
.ztx-control-gold-stats-secondary-v25 {
  display: grid;
  gap: 14px;
}

.ztx-control-gold-stats-primary-v25 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ztx-control-gold-stats-secondary-v25 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ztx-control-gold-card-v25 {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(224, 231, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.05);
}

.ztx-control-gold-card-icon-v25 {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #fff9eb;
  color: #c38c22;
}

.ztx-control-gold-card-v25.is-positive .ztx-control-gold-card-icon-v25 { background: #ecfdf3; color: #16a34a; }
.ztx-control-gold-card-v25.is-danger .ztx-control-gold-card-icon-v25 { background: #fef2f2; color: #ef4444; }
.ztx-control-gold-card-v25.is-warning .ztx-control-gold-card-icon-v25 { background: #fff7ed; color: #f97316; }
.ztx-control-gold-card-v25.is-purple .ztx-control-gold-card-icon-v25 { background: #f5f3ff; color: #7c3aed; }
.ztx-control-gold-card-v25.is-emerald .ztx-control-gold-card-icon-v25 { background: #ecfdf3; color: #0f9f76; }
.ztx-control-gold-card-v25.is-blue .ztx-control-gold-card-icon-v25 { background: #eff6ff; color: #2563eb; }
.ztx-control-gold-card-v25.is-dark .ztx-control-gold-card-icon-v25 { background: #f8fafc; color: #0f172a; }

.ztx-control-gold-card-copy-v25 {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ztx-control-gold-card-head-v25 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ztx-control-gold-card-copy-v25 small {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ztx-control-gold-card-copy-v25 strong {
  color: #172033;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ztx-control-gold-card-copy-v25 span {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ztx-control-gold-card-copy-v25:has(strong:last-child) {
  align-content: center;
}

.ztx-control-gold-card-edit-v25 {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(217, 226, 242, 0.95);
  background: #fff;
  color: #8f691a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ztx-control-gold-card-edit-v25:hover {
  background: #fff9eb;
  border-color: rgba(213, 154, 40, 0.35);
}

.ztx-control-gold-card-v25.is-limit-v25 {
  position: relative;
}

.ztx-control-gold-card-v25.is-limit-warning {
  border-color: rgba(249, 115, 22, 0.22);
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.ztx-control-gold-card-v25.is-limit-alert {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  box-shadow: 0 24px 60px rgba(239, 68, 68, 0.08);
}

.ztx-control-gold-card-v25.is-limit-alert .ztx-control-gold-card-icon-v25 {
  background: #fef2f2;
  color: #dc2626;
}

.ztx-control-gold-card-v25.is-limit-alert .ztx-control-gold-card-copy-v25 strong {
  color: #b91c1c;
}

.ztx-control-gold-limit-progress-v25 {
  height: 8px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
  margin-top: 2px;
}

.ztx-control-gold-limit-progress-v25 span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e9b43b 0%, #d59a28 100%);
}

.ztx-control-gold-limit-inline-v30 {
  display: grid;
  gap: 10px;
}

.ztx-control-gold-limit-inline-v30 input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(217, 226, 242, 0.95);
  background: #fff;
  color: #172033;
  font-size: 1rem;
  font-weight: 700;
}

.ztx-control-gold-limit-inline-actions-v30 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ztx-control-gold-limit-inline-actions-v30 .btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.ztx-control-gold-card-v25.is-limit-warning .ztx-control-gold-limit-progress-v25 span {
  background: linear-gradient(90deg, #f5b24c 0%, #f97316 100%);
}

.ztx-control-gold-card-v25.is-limit-alert .ztx-control-gold-limit-progress-v25 span {
  background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.ztx-control-gold-panel-v25 {
  display: grid;
  gap: 18px;
  padding: 28px 30px 26px;
  background: #fff;
  border: 1px solid rgba(224, 231, 255, 0.82);
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.06);
}

.ztx-control-gold-panel-head-v25 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.ztx-control-gold-panel-left-v25 {
  display: grid;
  gap: 12px;
}

.ztx-control-gold-panel-copy-v25 h2 {
  margin: 0;
  color: #172033;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.ztx-control-gold-panel-toolbar-v25 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ztx-control-gold-panel-actions-v25 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ztx-control-gold-date-v25 {
  position: relative;
}

.ztx-control-gold-date-trigger-v25 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d8e1f0;
  background: #fff;
  color: #172033;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ztx-control-gold-date-trigger-v25 strong {
  font-size: 0.98rem;
}

.ztx-control-gold-date-trigger-v25 .ztx-line-icon:last-child {
  width: 15px;
  height: 15px;
  transform: rotate(90deg);
  opacity: 0.65;
}

.ztx-control-gold-date-popover-v25 {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: 320px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(224, 231, 255, 0.96);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.ztx-control-gold-date-popover-v25 strong {
  color: #172033;
  font-size: 0.96rem;
}

.ztx-control-gold-date-grid-v25 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ztx-control-gold-date-grid-v25 label,
.ztx-control-gold-custom-range-v25 label,
.ztx-control-gold-form-grid-v25 label {
  display: grid;
  gap: 8px;
}

.ztx-control-gold-date-grid-v25 span,
.ztx-control-gold-custom-range-v25 span,
.ztx-control-gold-form-grid-v25 span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.ztx-control-gold-date-grid-v25 select,
.ztx-control-gold-custom-range-v25 input,
.ztx-control-gold-form-grid-v25 input,
.ztx-control-gold-form-grid-v25 select,
.ztx-control-gold-form-grid-v25 textarea {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d9e2f2;
  background: #fff;
  color: #172033;
  font: inherit;
}

.ztx-control-gold-form-grid-v25 textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.ztx-control-gold-date-actions-v25 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ztx-control-gold-periods-v25,
.ztx-control-gold-categories-v25,
.ztx-control-gold-type-tabs-v25 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ztx-control-gold-period-btn-v25,
.ztx-control-gold-category-v25,
.ztx-control-gold-type-tab-v25 {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d9e2f2;
  background: #fff;
  color: #475467;
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.18s ease;
}

.ztx-control-gold-period-btn-v25.is-active,
.ztx-control-gold-category-v25.is-active,
.ztx-control-gold-type-tab-v25.is-active {
  background: linear-gradient(135deg, #f4c64b 0%, #d59a28 100%);
  border-color: rgba(213, 154, 40, 0.52);
  color: #2a1703;
  box-shadow: 0 16px 34px rgba(214, 162, 56, 0.2);
}

.ztx-control-gold-custom-range-v25 {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.ztx-control-gold-chart-v25 {
  display: grid;
  gap: 16px;
  padding: 20px 22px 18px;
  border-radius: 24px;
  border: 1px solid rgba(224, 231, 255, 0.9);
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.ztx-control-gold-chart-head-v25 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.ztx-control-gold-chart-copy-v25 {
  display: grid;
  gap: 6px;
}

.ztx-control-gold-chart-copy-v25 strong {
  color: #172033;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ztx-control-gold-chart-copy-v25 span,
.ztx-control-gold-chart-meta-v25 span,
.ztx-control-gold-chart-axis-v25 span {
  color: #667085;
  font-size: 0.9rem;
}

.ztx-control-gold-chart-meta-v25 {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.ztx-control-gold-chart-meta-v25 b {
  color: #172033;
}

.ztx-control-gold-pie-wrap-v25 {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.ztx-control-gold-pie-v25 {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 24px 60px rgba(15, 23, 42, 0.08);
}

.ztx-control-gold-pie-core-v25 {
  width: 56%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.ztx-control-gold-pie-core-v25 strong {
  color: #172033;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.ztx-control-gold-pie-core-v25 span {
  color: #667085;
  font-size: 0.84rem;
}

.ztx-control-gold-pie-legend-v25 {
  display: grid;
  gap: 12px;
}

.ztx-control-gold-pie-legend-item-v25 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(224, 231, 255, 0.82);
}

.ztx-control-gold-pie-legend-item-v25 i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 5px;
  flex: 0 0 auto;
}

.ztx-control-gold-pie-legend-item-v25 strong {
  display: block;
  color: #172033;
  font-size: 0.95rem;
  line-height: 1.25;
}

.ztx-control-gold-pie-legend-item-v25 span {
  display: block;
  color: #667085;
  font-size: 0.86rem;
  margin-top: 3px;
}

.ztx-control-gold-analysis-v28 {
  display: grid;
  gap: 18px;
}

.ztx-control-gold-analysis-head-v28 h3 {
  margin: 0;
  color: #172033;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.ztx-control-gold-analysis-grid-top-v28 {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 18px;
}

.ztx-control-gold-chart-card-v28 {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(224, 231, 255, 0.92);
  background: #fff;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.05);
}

.ztx-control-gold-chart-card-head-v28 strong {
  color: #172033;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.ztx-control-gold-analysis-empty-v28 {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64748b;
  border-radius: 18px;
  background: #fbfcff;
  border: 1px dashed rgba(203, 213, 225, 0.9);
}

.ztx-control-gold-bar-chart-v28 {
  display: grid;
  gap: 14px;
}

.ztx-control-gold-bar-row-v28 {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
}

.ztx-control-gold-bar-row-v28 span,
.ztx-control-gold-line-legend-v28 span {
  color: #475467;
  font-size: 0.92rem;
  font-weight: 700;
}

.ztx-control-gold-bar-row-v28 b {
  color: #172033;
  font-size: 0.92rem;
  text-align: right;
}

.ztx-control-gold-bar-track-v28 {
  height: 14px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}

.ztx-control-gold-bar-track-v28 i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ztx-control-gold-line-chart-v28 {
  display: grid;
  gap: 12px;
}

.ztx-control-gold-line-legend-v28 {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ztx-control-gold-line-legend-v28 span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ztx-control-gold-line-legend-v28 i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.ztx-control-gold-line-legend-v28 i.is-positive { background: #16a34a; }
.ztx-control-gold-line-legend-v28 i.is-danger { background: #ef4444; }
.ztx-control-gold-line-legend-v28 i.is-blue { background: #2563eb; }

.ztx-control-gold-line-svg-v28 {
  width: 100%;
  height: 240px;
  overflow: visible;
}

.ztx-control-gold-line-grid-v28 {
  stroke: rgba(203, 213, 225, 0.6);
  stroke-dasharray: 5 7;
  stroke-width: 1;
}

.ztx-control-gold-line-series-v28 {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ztx-control-gold-line-series-v28.is-positive { stroke: #16a34a; }
.ztx-control-gold-line-series-v28.is-danger { stroke: #ef4444; }
.ztx-control-gold-line-series-v28.is-blue { stroke: #2563eb; }

.ztx-control-gold-line-axis-v28 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ztx-control-gold-line-axis-v28 span {
  color: #667085;
  font-size: 0.9rem;
}

.ztx-control-gold-table-v25 {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(224, 231, 255, 0.9);
  background: #fff;
  min-height: 460px;
}

.ztx-control-gold-table-head-v25,
.ztx-control-gold-row-v25 {
  display: grid;
  grid-template-columns: 1.65fr 0.9fr 0.8fr 1fr 0.9fr 1fr 0.7fr;
  gap: 16px;
  align-items: center;
}

.ztx-control-gold-table-head-v25 {
  padding: 16px 18px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ztx-control-gold-table-body-v25 {
  display: grid;
  align-content: start;
  min-height: 360px;
}

.ztx-control-gold-row-v25 {
  width: 100%;
  padding: 18px;
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
  background: #fff;
  text-align: left;
  font: inherit;
  color: #334155;
  cursor: pointer;
}

.ztx-control-gold-row-v25:hover {
  background: #fcfcfd;
}

.ztx-control-gold-row-description-v25 {
  color: #172033;
  font-weight: 700;
}

.ztx-control-gold-row-value-v25 {
  font-weight: 800;
}

.ztx-control-gold-row-value-v25.is-positive { color: #16a34a; }
.ztx-control-gold-row-value-v25.is-danger { color: #ef4444; }
.ztx-control-gold-row-value-v25.is-warning { color: #f97316; }
.ztx-control-gold-row-value-v25.is-purple { color: #7c3aed; }
.ztx-control-gold-row-value-v25.is-emerald { color: #0f9f76; }
.ztx-control-gold-row-value-v25.is-cyan { color: #0891b2; }
.ztx-control-gold-row-value-v25.is-pink { color: #db2777; }
.ztx-control-gold-row-value-v25.is-blue { color: #2563eb; }
.ztx-control-gold-row-value-v25.is-slate { color: #475569; }

.ztx-control-gold-table-foot-v25 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: #fffdf7;
  color: #172033;
}

.ztx-control-gold-table-foot-v25 strong,
.ztx-control-gold-table-foot-v25 span {
  font-size: 1rem;
  font-weight: 800;
}

.ztx-control-gold-empty-v25 {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 42px 20px;
  color: #64748b;
  text-align: center;
}

.ztx-control-gold-investment-grid-v30 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.ztx-control-gold-investment-bars-v30 {
  display: grid;
  gap: 12px;
}

.ztx-control-gold-investment-summary-v30 {
  display: grid;
  gap: 12px;
}

.ztx-control-gold-investment-summary-v30 > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfa;
  border: 1px solid rgba(209, 250, 229, 0.9);
}

.ztx-control-gold-investment-summary-v30 small {
  display: block;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ztx-control-gold-investment-summary-v30 strong {
  display: block;
  margin-top: 6px;
  color: #172033;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.ztx-control-gold-drawer-v25 {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  padding: 18px;
  display: flex;
  justify-content: flex-end;
}

.ztx-control-gold-drawer-card-v25 {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px 24px 22px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(224, 231, 255, 0.92);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.ztx-control-gold-drawer-head-v25 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.ztx-control-gold-drawer-head-v25 h3 {
  margin: 0;
  color: #172033;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.ztx-control-gold-drawer-head-v25 p {
  margin: 6px 0 0;
  color: #667085;
}

.ztx-control-gold-limit-modal-v25 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.ztx-control-gold-limit-card-v25 {
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(224, 231, 255, 0.92);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.ztx-control-gold-form-v25 {
  display: grid;
  gap: 18px;
}

.ztx-control-gold-form-grid-v25 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ztx-control-gold-form-full-v25 {
  grid-column: 1 / -1;
}

.ztx-control-gold-toggle-v25 {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d9e2f2;
  border-radius: 16px;
}

.ztx-control-gold-toggle-v25 input {
  min-height: auto;
  width: 20px;
  height: 20px;
  padding: 0;
}

.ztx-control-gold-actions-v25 {
  justify-content: flex-end;
}

@media (max-width: 1280px) {
  .ztx-control-gold-stats-primary-v25 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ztx-control-gold-stats-secondary-v25 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ztx-control-gold-panel-head-v25 {
    flex-direction: column;
  }

  .ztx-control-gold-panel-toolbar-v25 {
    flex-direction: column;
    align-items: stretch;
  }

  .ztx-control-gold-chart-head-v25 {
    flex-direction: column;
  }

  .ztx-control-gold-chart-meta-v25 {
    justify-items: start;
    text-align: left;
  }

  .ztx-control-gold-pie-wrap-v25 {
    grid-template-columns: 1fr;
  }

  .ztx-control-gold-analysis-grid-top-v28 {
    grid-template-columns: 1fr;
  }

  .ztx-control-gold-investment-grid-v30 {
    grid-template-columns: 1fr;
  }

  .ztx-control-gold-bar-row-v28 {
    grid-template-columns: 1fr;
  }

  .ztx-control-gold-table-head-v25,
  .ztx-control-gold-row-v25 {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 0.9fr 1fr 0.7fr;
  }
}

@media (max-width: 960px) {
  .workspace-body-pro:has(.ztx-control-gold-page-v25) .ztx-app-stage {
    width: 100%;
  }

  .ztx-control-gold-stats-primary-v25,
  .ztx-control-gold-stats-secondary-v25 {
    grid-template-columns: 1fr;
  }

  .ztx-control-gold-form-grid-v25,
  .ztx-control-gold-date-grid-v25 {
    grid-template-columns: 1fr;
  }

  .ztx-control-gold-table-head-v25 {
    display: none;
  }

  .ztx-control-gold-row-v25 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ztx-control-gold-table-foot-v25,
  .ztx-control-gold-custom-range-v25,
  .ztx-control-gold-panel-actions-v25 {
    flex-direction: column;
    align-items: stretch;
  }
}
