:root {
  --bg: #07111f;
  --panel-line: rgba(255, 255, 255, 0.08);
  --text-dark: #10223d;
  --text-main: #f4f8ff;
  --text-soft: #aebdd7;
  --text-muted: #64748b;
  --primary: #0c7df2;
  --primary-strong: #0669cb;
  --accent: #16c7a1;
  --accent-soft: rgba(22, 199, 161, 0.14);
  --danger: #d84c63;
  --warning: #f6b84c;
  --success: #0b7b63;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 20px 44px rgba(16, 34, 61, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans TC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 184, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(32, 214, 161, 0.14), transparent 26%),
    linear-gradient(135deg, #04101d 0%, #0b1730 44%, #0e1f34 100%);
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 70%);
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  padding: 28px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(380px, 620px) minmax(420px, 1fr);
  gap: 28px;
  min-height: calc(100vh - 56px);
}

.auth-panel,
.insight-panel {
  position: relative;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.95));
  color: var(--text-dark);
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(12, 125, 242, 0.12), transparent 70%);
  pointer-events: none;
}

.panel-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(16, 34, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1a5db4;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 125, 242, 0.28);
  background: #fff;
}

.brand-block {
  display: block;
  gap: 16px;
}

.eyebrow,
.mini-label,
.mini-overline,
.setup-step-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.mini-overline {
  color: #2877d8;
}

.brand-block h1 {
  margin: 0;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-size: clamp(2rem, 2vw, 2.7rem);
  line-height: 1.12;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}

.trust-strip span,
.chart-tags span,
.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-strip span {
  padding: 10px 14px;
  background: rgba(12, 125, 242, 0.08);
  color: #215286;
}

.auth-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(9, 24, 44, 0.08);
  border-radius: 28px;
}

.card-header,
.form-meta,
.chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-header h2,
.chart-title-row h3,
.insight-header h2,
.modal-copy h3 {
  margin: 0;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
}

.card-header h2 {
  font-size: 1.35rem;
}

.card-header p,
.field-hint,
.metric-note,
.insight-copy,
.assurance-strip p:last-child,
.support-copy,
.modal-copy p,
.result-copy,
.setup-step p:not(.setup-step-label):not(.helper-note) {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(12, 125, 242, 0.08);
}

.mode-tab {
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  background: transparent;
  color: #47617f;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mode-tab.is-active {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 8px 20px rgba(12, 125, 242, 0.12);
}

.demo-panel {
  border: 1px solid rgba(12, 125, 242, 0.1);
  border-radius: 18px;
  background: rgba(12, 125, 242, 0.04);
  padding: 16px 18px;
}

.demo-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark);
}

.demo-panel[open] summary {
  margin-bottom: 12px;
}

.demo-panel-body p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.demo-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #38506e;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.demo-actions .secondary-button {
  width: auto;
}

.status-banner {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.55;
}

.status-banner.error {
  background: rgba(216, 76, 99, 0.12);
  color: #ac2844;
}

.status-banner.success {
  background: rgba(22, 199, 161, 0.13);
  color: var(--success);
}

.status-banner.warning {
  background: rgba(246, 184, 76, 0.16);
  color: #9c6107;
}

.auth-form,
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.compact-grid {
  gap: 10px 20px;
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label,
.metric-label,
.assurance-label,
.support-title {
  font-size: 0.94rem;
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 34, 61, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--text-dark);
  padding: 16px 18px;
  font-size: 1rem;
  -webkit-user-select: text;
  user-select: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f738f 50%),
    linear-gradient(135deg, #5f738f 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
}

input[readonly] {
  background: #f7f9fd;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

input::placeholder,
textarea::placeholder {
  color: #96a4b9;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(12, 125, 242, 0.6);
  box-shadow: 0 0 0 4px rgba(12, 125, 242, 0.12);
}

.field-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.caps-warning {
  min-height: 1.2em;
  margin: 0;
  color: #9c6107;
  font-size: 0.86rem;
}

.field-group.invalid input[type="email"],
.field-group.invalid input[type="password"],
.field-group.invalid input[type="text"],
.field-group.invalid select,
.field-group.invalid textarea {
  border-color: rgba(216, 76, 99, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 76, 99, 0.08);
  background: #fffafb;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 96px;
}

.ghost-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 68px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(12, 125, 242, 0.08);
  color: #1958a6;
  font-weight: 700;
  cursor: pointer;
}

.password-strength {
  display: grid;
  gap: 8px;
}

.strength-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.strength-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.strength-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #d84c63;
  transition: width 0.2s ease, background 0.2s ease;
}

.password-strength[data-strength="1"] .strength-fill {
  width: 25%;
  background: #d84c63;
}

.password-strength[data-strength="2"] .strength-fill {
  width: 50%;
  background: #d9942f;
}

.password-strength[data-strength="3"] .strength-fill {
  width: 75%;
  background: #1f7fe3;
}

.password-strength[data-strength="4"] .strength-fill {
  width: 100%;
  background: #0b7b63;
}

.remember-me,
.check-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #39506f;
}

.check-row {
  font-size: 0.94rem;
  font-weight: 500;
}

.check-row span {
  line-height: 1.5;
}

.button-link {
  border: 0;
  background: transparent;
  color: #236ac1;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.button-link:hover,
.legal-footer a:hover {
  text-decoration: underline;
}

.action-stack {
  display: grid;
  gap: 12px;
}

.button-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), #1e90ff);
  color: #fff;
  box-shadow: 0 16px 28px rgba(12, 125, 242, 0.22);
}

.secondary-button,
.google-button {
  border: 1px solid rgba(16, 34, 61, 0.1);
  background: #fff;
  color: var(--text-dark);
}

.compact {
  width: auto;
  min-width: 160px;
}

.primary-button:hover,
.secondary-button:hover,
.google-button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.ghost-toggle:hover,
.ghost-toggle:focus-visible {
  transform: translateY(-50%);
  background: rgba(12, 125, 242, 0.14);
  box-shadow: 0 0 0 3px rgba(12, 125, 242, 0.12);
}

.primary-button:disabled,
.secondary-button:disabled,
.google-button:disabled,
.mode-tab:disabled,
.lang-toggle:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.ghost-toggle:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8ca4;
  font-size: 0.9rem;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(16, 34, 61, 0.08);
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.84);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-glyph {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea4335, #4285f4);
  color: #fff;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.support-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 34, 61, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.support-title,
.support-copy {
  margin: 0;
}

.support-copy {
  margin-top: 10px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 8px;
}

.legal-footer a {
  color: #516783;
  text-decoration: none;
  font-size: 0.94rem;
}

.insight-panel {
  padding: 36px;
  background:
    radial-gradient(circle at 82% 10%, rgba(47, 116, 180, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(5, 15, 29, 0.96), rgba(3, 10, 20, 0.98));
}

.insight-surface {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
}

.intelligence-surface {
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 18px;
}

.insight-header h2 {
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.08;
  max-width: 13ch;
}

.terminal-header h2 {
  max-width: 19ch;
  font-size: clamp(1.7rem, 2.05vw, 2.45rem);
  line-height: 1.16;
}

.mini-console .terminal-header h2 {
  max-width: 23ch;
  font-size: clamp(1.55rem, 1.85vw, 2.2rem);
}

.mini-console .terminal-header .mini-label {
  text-transform: none;
  letter-spacing: 0.08em;
}

.mini-label {
  color: #77c7ff;
  letter-spacing: 0.14em;
}

.insight-copy {
  max-width: 48ch;
  color: var(--text-soft);
}

.terminal-dashboard {
  border-color: rgba(115, 148, 190, 0.18);
}

.market-preview-panel {
  padding: 28px 32px;
}

.intel-section {
  border: 1px solid rgba(126, 154, 196, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(16, 32, 55, 0.72), rgba(9, 20, 37, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 18px;
}

.intel-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.intel-section-head.compact {
  align-items: center;
}

.intel-section h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.terminal-status,
.tracking-count {
  flex: 0 0 auto;
  border: 1px solid rgba(59, 184, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(59, 184, 255, 0.1);
  color: #a9d7ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.terminal-status.muted {
  border-color: rgba(142, 161, 190, 0.2);
  background: rgba(142, 161, 190, 0.08);
  color: #9fb0ca;
}

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

.intel-table-head,
.intel-row {
  display: grid;
  grid-template-columns: 76px minmax(120px, 1fr) minmax(150px, 1.1fr);
  align-items: center;
  gap: 14px;
}

.intel-table-head {
  color: #7890b3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intel-row {
  min-height: 46px;
  border: 1px solid rgba(126, 154, 196, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(4, 13, 26, 0.56);
  color: #dfeaff;
}

.intel-row.is-alert {
  border-color: rgba(246, 184, 76, 0.32);
  background: linear-gradient(90deg, rgba(246, 184, 76, 0.12), rgba(4, 13, 26, 0.56));
}

.stock-code {
  color: #64bdff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 800;
}

.tracking-count {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 10px;
}

.tracking-count span {
  color: #8fa4c3;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tracking-count strong {
  color: #f4f8ff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-size: 1.35rem;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.watch-grid article {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid rgba(126, 154, 196, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(4, 13, 26, 0.5);
}

.watch-grid span {
  color: #64bdff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 800;
}

.watch-grid strong {
  color: #f4f8ff;
}

.watch-grid em {
  color: #9fb0ca;
  font-style: normal;
  font-size: 0.86rem;
}

.ranking-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ranking-actions button {
  height: 42px;
  border: 1px solid rgba(126, 154, 196, 0.18);
  border-radius: 12px;
  background: rgba(4, 13, 26, 0.66);
  color: #dfeaff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 800;
  cursor: default;
}

.ranking-actions button:first-child,
.ranking-actions button:hover {
  border-color: rgba(59, 184, 255, 0.42);
  background: rgba(12, 125, 242, 0.18);
  color: #ffffff;
}

.ranking-note {
  margin: 0;
  color: #91a5c4;
  line-height: 1.6;
}

.mini-console {
  grid-template-rows: auto auto auto auto auto;
  gap: 16px;
}

.mini-console .intel-section {
  padding: 16px;
}

.signal-timeline {
  display: grid;
  gap: 9px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 64px minmax(120px, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(126, 154, 196, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(4, 13, 26, 0.56);
  color: #dfeaff;
}

.timeline-row.is-alert {
  border-color: rgba(246, 184, 76, 0.32);
  background: linear-gradient(90deg, rgba(246, 184, 76, 0.12), rgba(4, 13, 26, 0.56));
}

.event-time {
  color: #64bdff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 800;
}

.timeline-row strong,
.afterhours-table strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row em,
.afterhours-table em {
  justify-self: end;
  color: #aabbd6;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
}

.afterhours-table .intel-table-head,
.afterhours-table .intel-row {
  grid-template-columns: minmax(120px, 0.9fr) minmax(130px, 1fr) minmax(150px, 1.15fr);
}

.period-actions button {
  cursor: default;
}

.period-actions button:first-child {
  border-color: rgba(59, 184, 255, 0.42);
  background: rgba(12, 125, 242, 0.18);
}

.console-summary {
  margin: 0;
  border: 1px solid rgba(126, 154, 196, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(4, 13, 26, 0.58);
  color: #c8d7ee;
  line-height: 1.65;
}

.market-preview-surface {
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.preview-segment {
  justify-self: end;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(460px, 100%);
  min-height: 48px;
  padding: 5px;
  border: 1px solid rgba(126, 154, 196, 0.48);
  border-radius: 999px;
  background: rgba(4, 13, 26, 0.72);
  transform: none;
  margin-top: 10px;
}

.preview-brand-bar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
}

.preview-brand-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.preview-logo {
  display: block;
  width: 100%;
  max-width: clamp(420px, 46vw, 590px);
  height: auto;
  min-width: 0;
}

.preview-brand-message {
  display: grid;
  gap: 0;
  margin: 0;
  justify-items: center;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.preview-brand-message strong {
  display: block;
  color: #f4f8ff;
  font-size: clamp(0.92rem, 1.05vw, 1.12rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.preview-brand-message span {
  display: block;
  color: #f4f8ff;
  font-size: clamp(0.76rem, 0.85vw, 0.94rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.preview-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7082a1;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.preview-tab.is-active {
  background: linear-gradient(180deg, #3da2ff, #1684ef);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(12, 125, 242, 0.24);
}

.preview-panel {
  display: none;
}

.preview-panel.is-active {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
}

.preview-focus-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  min-height: 0;
  padding-top: 0;
}

.preview-focus-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.05vw, 2.35rem);
  line-height: 1.05;
}

.preview-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #91a5c4;
}

.preview-price strong {
  color: #ef5a76;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-size: 1.72rem;
}

.preview-price em {
  color: #ef5a76;
  font-style: normal;
  font-weight: 900;
}

.preview-price.compact strong {
  color: #f4f8ff;
}

.preview-log-card,
.preview-broker-card,
.watch-preview-list article,
.history-empty {
  border: 1px solid rgba(126, 154, 196, 0.18);
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.58);
  padding: 14px;
}

.preview-chart-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  width: 100%;
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.preview-card-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.chart-toggle {
  display: inline-flex;
  gap: 4px;
  border: 1px solid rgba(126, 154, 196, 0.2);
  border-radius: 999px;
  padding: 4px;
  color: #8fa4c3;
  font-size: 0.86rem;
  font-weight: 900;
}

.chart-toggle span,
.chart-toggle strong {
  padding: 7px 14px;
  border-radius: 999px;
}

.chart-toggle strong {
  background: #2f95f4;
  color: #ffffff;
}

.mini-kline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  gap: 12px;
  min-height: 250px;
  padding: 24px 26px;
  border: 1px solid rgba(126, 154, 196, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(3, 10, 20, 0.64);
  background-size: 100% 64px, 80px 100%, auto;
}

.static-kline-preview {
  aspect-ratio: 811 / 538;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(126, 154, 196, 0.18);
  border-radius: 18px;
  background: rgba(3, 10, 20, 0.64);
}

.static-kline-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.mini-kline span {
  position: relative;
}

.mini-kline span::before {
  content: "";
  position: absolute;
  top: calc(var(--top) - 14%);
  bottom: calc(100% - var(--top) - var(--height) - 14%);
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: currentColor;
  opacity: 0.9;
}

.mini-kline span::after {
  content: "";
  position: absolute;
  top: var(--top);
  height: var(--height);
  left: 20%;
  right: 20%;
  border-radius: 999px;
  background: currentColor;
}

.mini-kline .up {
  color: #18c989;
}

.mini-kline .down {
  color: #ff5b78;
}

.preview-note {
  margin: 8px 0 0;
  color: #91a5c4;
  font-size: 0.9rem;
}

.count-pill {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(47, 116, 180, 0.22);
  color: #cde6ff;
  font-weight: 900;
}

.preview-log-list,
.watch-preview-list {
  display: grid;
  gap: 10px;
}

.watch-preview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-log-list div,
.watch-preview-list article {
  display: grid;
  grid-template-columns: 72px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.preview-log-list div {
  min-height: 44px;
  border: 1px solid rgba(126, 154, 196, 0.16);
  border-radius: 16px;
  padding: 9px 12px;
  background: rgba(4, 13, 26, 0.58);
}

.preview-log-list span,
.watch-preview-list span {
  color: #4bb0ff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 900;
}

.preview-log-list em,
.watch-preview-list em {
  color: #dfeaff;
  font-style: normal;
  font-weight: 800;
}

.preview-log-list b,
.watch-preview-list b {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(22, 199, 161, 0.12);
  color: #41e0be;
  font-size: 0.82rem;
}

.watch-preview-list b {
  justify-self: start;
}

.watch-preview-list article {
  grid-template-columns: 1fr;
  align-content: center;
  min-height: 150px;
  gap: 8px;
  padding: 18px 16px;
}

.watch-single-preview,
.watch-broker-summary {
  border: 1px solid rgba(126, 154, 196, 0.18);
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.58);
}

.watch-single-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 18px;
}

.watch-single-preview div {
  display: grid;
  grid-template-columns: 68px minmax(72px, auto) minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.watch-single-preview span,
.watch-single-preview em,
.watch-single-preview b,
.watch-summary-grid span,
.watch-summary-grid em {
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 900;
}

.watch-single-preview span {
  color: #4bb0ff;
}

.watch-single-preview strong,
.watch-summary-grid strong {
  color: #e8f1ff;
}

.watch-single-preview em {
  color: #dfeaff;
  font-style: normal;
}

.watch-single-preview b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(22, 199, 161, 0.12);
  color: #41e0be;
  font-size: 0.84rem;
}

.watch-broker-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.watch-broker-summary .broker-side-toggle {
  justify-self: start;
}

.watch-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.watch-summary-grid div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  border: 1px solid rgba(126, 154, 196, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(4, 13, 26, 0.48);
}

.watch-summary-grid span {
  color: #7fa4cf;
  font-size: 0.82rem;
}

.watch-summary-grid em {
  color: #ef5a76;
  font-style: normal;
  font-size: 0.92rem;
}

.compact-watch-head {
  padding-top: 4px;
}

.compact-chart-card {
  padding: 12px;
}

.watch-static-kline img {
  height: 100%;
}

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

.today-broker-preview {
  gap: 8px;
  padding: 12px;
}

.today-broker-preview .broker-periods button {
  height: 30px;
}

.today-broker-preview .broker-preview-head,
.today-broker-preview .broker-table-preview > div {
  min-height: 32px;
}

.today-broker-preview .broker-table-preview > div:not(.broker-preview-head) {
  padding: 6px 10px;
}

.broker-head-tight {
  margin-bottom: 0;
}

.broker-side-toggle {
  display: inline-flex;
  gap: 6px;
  border: 1px solid rgba(126, 154, 196, 0.2);
  border-radius: 999px;
  padding: 4px;
  color: #8fa4c3;
  font-size: 0.86rem;
  font-weight: 900;
}

.broker-side-toggle strong,
.broker-side-toggle span {
  padding: 7px 12px;
  border-radius: 999px;
}

.broker-side-toggle strong {
  background: rgba(246, 184, 76, 0.9);
  color: #33240a;
}

.broker-periods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(126, 154, 196, 0.16);
  border-radius: 999px;
  background: rgba(4, 13, 26, 0.5);
}

.broker-periods button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #91a5c4;
  font: inherit;
  font-weight: 900;
}

.broker-periods button.is-active {
  background: #2f95f4;
  color: #ffffff;
}

.broker-table-preview {
  display: grid;
  gap: 6px;
}

.broker-preview-head,
.broker-table-preview > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.broker-preview-head {
  color: #7890b3;
  font-size: 0.78rem;
  font-weight: 900;
}

.broker-table-preview > div:not(.broker-preview-head) {
  border: 1px solid rgba(126, 154, 196, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(4, 13, 26, 0.54);
}

.broker-table-preview span {
  color: #64bdff;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  font-weight: 900;
}

.broker-table-preview em {
  justify-self: end;
  color: #ef5a76;
  font-style: normal;
  font-weight: 900;
}

.history-empty {
  display: grid;
  gap: 10px;
  color: #91a5c4;
}

.history-empty strong {
  color: #f4f8ff;
}

.metric-grid,
.assurance-strip {
  display: grid;
  gap: 14px;
}

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

.metric-card,
.chart-card,
.assurance-strip article {
  border: 1px solid rgba(154, 191, 232, 0.16);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 24px;
}

.metric-card {
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-label {
  color: #9fc5f1;
}

.metric-value {
  margin: 12px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #f5c76c;
}

.metric-note {
  color: #89a2c5;
}

.chart-card {
  padding: 22px;
}

.market-pill {
  padding: 9px 14px;
  background: rgba(217, 148, 47, 0.16);
  color: #ffd78b;
}

.chart-visual {
  position: relative;
  margin-top: 18px;
  min-height: 320px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(1, 9, 19, 0.42);
  overflow: hidden;
}

.warrant-preview {
  display: grid;
  grid-template-rows: auto 96px 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(154, 191, 232, 0.12);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  color: #7f98bd;
  font-size: 0.82rem;
  font-weight: 800;
}

.ticker-line {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  padding: 12px 10px 0;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 32px, 48px 100%;
}

.ticker-line span {
  display: block;
  height: var(--height);
  min-height: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #5bd9ff, #0c7df2);
  box-shadow: 0 10px 26px rgba(12, 125, 242, 0.22);
}

.ticker-line span:nth-child(3n),
.ticker-line span:nth-child(5n) {
  background: linear-gradient(180deg, #ffd078, #d9942f);
}

.signal-board {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 191, 232, 0.14);
  border-radius: 16px;
  background: rgba(5, 15, 28, 0.62);
  color: #e7f1ff;
}

.signal-row span {
  color: #61b9ff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.signal-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-row em {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 125, 242, 0.16);
  color: #b7d8ff;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
}

.signal-row.is-hot {
  border-color: rgba(217, 148, 47, 0.38);
  background: rgba(217, 148, 47, 0.1);
}

.signal-row.is-hot em {
  background: rgba(217, 148, 47, 0.2);
  color: #ffd78b;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
}

.chart-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  padding: 26px 18px 18px;
}

.chart-tags {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 2;
}

.warrant-preview .chart-tags {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}

.chart-tags span {
  padding: 10px 14px;
  background: rgba(7, 17, 31, 0.66);
  color: #d9ecff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

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

.assurance-strip article {
  padding: 18px;
}

.assurance-label {
  color: #dcedff;
}

.button-loader {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  order: -1;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.secondary-button .button-loader,
.google-button .button-loader {
  border-color: rgba(12, 125, 242, 0.2);
  border-top-color: currentColor;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 19, 0.62);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.modal-card.wide {
  width: min(860px, 100%);
}

.legal-modal-card {
  width: min(920px, 100%);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 34, 61, 0.06);
  color: #365271;
  font-size: 0;
  cursor: pointer;
}

.modal-close::before {
  content: "\00d7";
  font-size: 1.45rem;
  line-height: 1;
}

.modal-copy {
  margin-bottom: 18px;
  padding-right: 36px;
}

.modal-copy h3 {
  font-size: 1.45rem;
}

.modal-result,
.result-card {
  display: grid;
  gap: 10px;
}

.result-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(12, 125, 242, 0.06);
  border: 1px solid rgba(12, 125, 242, 0.1);
}

.result-title {
  margin: 0;
  font-weight: 800;
}

.code-preview,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 125, 242, 0.08);
  color: #22558a;
  font-weight: 700;
  line-height: 1.4;
}

.helper-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.helper-note.info {
  background: rgba(12, 125, 242, 0.08);
  color: #235f9c;
}

.helper-note.success {
  background: rgba(22, 199, 161, 0.13);
  color: var(--success);
}

.helper-note.warning {
  background: rgba(246, 184, 76, 0.16);
  color: #9c6107;
}

.helper-note.error {
  background: rgba(216, 76, 99, 0.12);
  color: #ac2844;
}

.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-turnstile {
  min-height: 64px;
}

.policy-body {
  display: grid;
  gap: 16px;
}

.policy-section {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(16, 34, 61, 0.08);
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.92);
}

.policy-section h4,
.policy-section p,
.policy-section ul {
  margin: 0;
}

.policy-section h4 {
  font-size: 1rem;
}

.policy-section p,
.policy-section li {
  color: var(--text-muted);
  line-height: 1.75;
}

.policy-section ul {
  padding-left: 20px;
}

.policy-actions {
  margin-top: 18px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.setup-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(16, 34, 61, 0.08);
  background: rgba(247, 250, 255, 0.92);
}

.setup-step.complete {
  border-color: rgba(22, 199, 161, 0.28);
  background: linear-gradient(180deg, rgba(22, 199, 161, 0.1), rgba(22, 199, 161, 0.04));
}

.setup-step-label {
  margin-bottom: 0;
  color: #1d6cbc;
}

.modal-card .primary-button,
.modal-card .secondary-button {
  width: auto;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .insight-header h2 {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .support-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }

  .auth-panel,
  .insight-panel {
    border-radius: 24px;
    padding: 20px 18px;
  }

  .auth-panel {
    gap: 16px;
  }

  .auth-card {
    margin-top: 18px;
  }

  .auth-card,
  .chart-card,
  .metric-card,
  .assurance-strip article,
  .modal-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand-block,
  .card-header,
  .form-meta,
  .chart-title-row,
  .preview-focus-head,
  .preview-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-preview-panel .preview-focus-head,
  .market-preview-panel .preview-card-head {
    flex-direction: row;
    align-items: flex-end;
  }

  .market-preview-panel .preview-card-head {
    align-items: center;
  }

  .market-preview-panel .preview-focus-head > div:first-child {
    min-width: 0;
  }

  .market-preview-panel .preview-focus-head h2,
  .market-preview-panel .mini-label,
  .market-preview-panel .preview-price span,
  .market-preview-panel .preview-price em,
  .market-preview-panel .preview-card-head h3,
  .market-preview-panel .count-pill,
  .market-preview-panel .broker-side-toggle strong,
  .market-preview-panel .broker-side-toggle span,
  .market-preview-panel .broker-periods button,
  .market-preview-panel .preview-log-list span,
  .market-preview-panel .preview-log-list strong,
  .market-preview-panel .preview-log-list em,
  .market-preview-panel .preview-log-list b,
  .market-preview-panel .broker-preview-head > *,
  .market-preview-panel .broker-table-preview > div > * {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-preview-panel .preview-focus-head h2 {
    font-size: clamp(1.32rem, 4.2vw, 2.1rem);
  }

  .market-preview-panel .preview-price {
    flex: 0 0 auto;
    justify-items: end;
    text-align: right;
  }

  .market-preview-panel .preview-price strong {
    font-size: clamp(1.45rem, 4.6vw, 1.72rem);
    line-height: 1;
  }

  .mode-switch,
  .grid-two,
  .metric-grid,
  .assurance-strip,
  .watch-grid,
  .watch-preview-list,
  .watch-summary-grid,
  .ranking-actions,
  .period-actions {
    grid-template-columns: 1fr;
  }

  .watch-single-preview,
  .watch-single-preview div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .watch-single-preview {
    display: grid;
  }

  .timeline-row,
  .preview-log-list div,
  .watch-preview-list article,
  .broker-preview-head,
  .broker-table-preview > div,
  .afterhours-table .intel-table-head,
  .afterhours-table .intel-row,
  .intel-table-head,
  .intel-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-row em,
  .preview-log-list b,
  .watch-preview-list b,
  .broker-table-preview em,
  .afterhours-table em {
    justify-self: start;
  }

  .market-preview-panel .preview-log-list div {
    grid-template-columns: clamp(48px, 10vw, 72px) clamp(58px, 13vw, 92px) minmax(0, 1fr) max-content;
    gap: clamp(7px, 1.6vw, 12px);
  }

  .market-preview-panel .preview-log-list b {
    justify-self: end;
    padding-inline: clamp(7px, 1.6vw, 10px);
  }

  .market-preview-panel .broker-head-tight {
    gap: 10px;
  }

  .market-preview-panel .broker-side-toggle {
    flex: 0 0 auto;
    max-width: min(212px, 48vw);
  }

  .market-preview-panel .broker-side-toggle strong,
  .market-preview-panel .broker-side-toggle span {
    padding-inline: clamp(8px, 1.8vw, 12px);
  }

  .market-preview-panel .broker-preview-head,
  .market-preview-panel .broker-table-preview > div {
    grid-template-columns: clamp(38px, 9vw, 58px) minmax(0, 1fr) clamp(88px, 22vw, 130px);
    gap: clamp(7px, 1.5vw, 12px);
  }

  .market-preview-panel .broker-preview-head {
    font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  }

  .market-preview-panel .broker-table-preview em {
    justify-self: end;
  }

  .preview-segment {
    justify-self: stretch;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .preview-brand-bar {
    grid-template-columns: 1fr;
  }

  .preview-brand-copy {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .preview-brand-message {
    justify-items: center;
    max-width: 36ch;
    text-align: center;
  }

  .preview-logo {
    width: min(240px, 100%);
  }

  .mini-kline {
    min-height: 190px;
    gap: 7px;
    padding: 18px 14px;
  }

  .static-kline-preview img {
    height: 100%;
  }

  .broker-periods {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    border-radius: 18px;
  }

  .brand-block h1 {
    font-size: 1.74rem;
  }

  .chart-visual {
    min-height: 260px;
  }

  .chart-tags {
    left: 16px;
    right: 16px;
  }

  .button-row,
  .inline-actions {
    flex-direction: column;
  }

  .compact {
    width: 100%;
  }

  .demo-actions {
    flex-direction: column;
  }

  .modal-shell {
    padding: 12px;
  }
}
