/* Generated by scripts/frontend_styles.py; do not edit. sources=23 sha256=db228a6f38e094ad98485a4b57c81f5b8504edd8553564a98028b34f74e6b7f9 */
/* source: /web/styles.css */
:root {
  --bg: #04070b;
  --panel: #0a1118;
  --panel-2: #0d151d;
  --border: #17303a;
  --text: #d8f7ff;
  --muted: #7e9cab;
  --green: #35ff8d;
  --red: #ff5c7a;
  --amber: #ffbf47;
  --cyan: #53d9ff;
  --white: #f2ffff;
  --member-surface-solid: #0b141d;
  --member-surface-solid-alt: #101b25;
  --member-surface-border: rgba(83, 217, 255, 0.16);
  --member-surface-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  --member-surface-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --member-highlight-solid: rgba(255, 209, 102, 0.05);
  --member-highlight-border: rgba(255, 209, 102, 0.18);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

:root[data-theme="light"] {
  --bg: #f4f8fc;
  --panel: #ffffff;
  --panel-2: #edf4fa;
  --border: #d5e2ec;
  --text: #163244;
  --muted: #5c778a;
  --white: #0f2533;
  --soft-panel: #f7fbff;
  --soft-panel-2: #f1f7fc;
  --warm-panel: #fff8e6;
  --warm-border: rgba(232, 181, 54, 0.34);
  --warm-accent: #d39a12;
  --member-surface-solid: #f7fbff;
  --member-surface-solid-alt: #eef5fb;
  --member-surface-border: rgba(108, 146, 173, 0.22);
  --member-surface-shadow: 0 16px 38px rgba(101, 131, 154, 0.16);
  --member-surface-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  --member-highlight-solid: #fff8e6;
  --member-highlight-border: rgba(232, 181, 54, 0.34);
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(83, 217, 255, 0.1), transparent 28%),
    radial-gradient(circle at top left, rgba(53, 255, 141, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: "SFMono-Regular", "JetBrains Mono", "Menlo", "Consolas", monospace;
  min-height: 100vh;
  min-height: 100dvh;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(83, 217, 255, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(53, 255, 141, 0.1), transparent 22%),
    linear-gradient(180deg, #fbfdff, #eef5fb 58%, #e7f0f8);
}

[data-theme="light"] .notice-dismiss-btn {
  background: rgba(255, 255, 255, 0.74);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}




@media (max-width: 780px) {
  .ai-insight-grid {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.left-column,
.right-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0;
  min-width: 0;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel-head a,
.muted {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 760px) {



  .ai-output-field {
    min-height: 200px;
  }



}

.price-fraction-tail {
  display: inline-block;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.02em;
  transform: translateY(-0.42em);
  vertical-align: baseline;
}

.market-price-cell,
.market-change {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
/* source: /web/modules/shell-ui.css */
.splash-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 25% 20%, rgba(83, 217, 255, 0.16), transparent 28%), radial-gradient(circle at 75% 22%, rgba(53, 255, 141, 0.12), transparent 22%), linear-gradient(180deg, rgba(3, 7, 11, 0.96), rgba(4, 7, 11, 0.98)); transition: opacity 280ms ease, visibility 280ms ease; }
.splash-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-card { display: grid; gap: 12px; justify-items: center; text-align: center; }
.fx-logo { position: relative; display: grid; place-items: center; overflow: hidden; color: var(--white); font-weight: 800; letter-spacing: 0.08em; background: radial-gradient(circle at 24% 18%, rgba(83, 217, 255, 0.2), transparent 32%), radial-gradient(circle at 78% 78%, rgba(53, 255, 141, 0.18), transparent 28%), linear-gradient(145deg, rgba(6, 16, 24, 0.98), rgba(10, 25, 35, 0.96)); border: 1px solid rgba(83, 217, 255, 0.32); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
.fx-logo-grid, .fx-logo-stroke { position: absolute; inset: 0; }
.fx-logo-grid { background-image: linear-gradient(rgba(83, 217, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 217, 255, 0.08) 1px, transparent 1px); background-size: 12px 12px; opacity: 0.55; mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 95%); }
.fx-logo-stroke::before, .fx-logo-stroke::after { content: ""; position: absolute; border-radius: 999px; filter: blur(0.2px); }
.fx-logo-stroke::before { width: 128%; height: 10px; left: -16%; top: 28%; background: linear-gradient(90deg, transparent, rgba(83, 217, 255, 0.95), transparent); transform: rotate(-24deg); box-shadow: 0 0 18px rgba(83, 217, 255, 0.45); }
.fx-logo-stroke::after { width: 112%; height: 10px; left: -8%; bottom: 22%; background: linear-gradient(90deg, transparent, rgba(53, 255, 141, 0.92), transparent); transform: rotate(18deg); box-shadow: 0 0 16px rgba(53, 255, 141, 0.32); }
.fx-logo-text { position: relative; z-index: 1; text-shadow: 0 0 18px rgba(83, 217, 255, 0.38); }
.fx-logo-splash { width: 96px; height: 96px; border-radius: 28px; }
.fx-logo-splash .fx-logo-text { font-size: 30px; }
.fx-logo-header { width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto; }
.fx-logo-header .fx-logo-text { font-size: 15px; }
.splash-brand { margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
.splash-tagline { margin: 0; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.splash-loader { position: relative; width: 82px; height: 82px; margin-top: 8px; display: grid; place-items: center; }
.splash-loader-ring, .splash-loader-core { position: absolute; border-radius: 999px; }
.splash-loader-ring { inset: 0; background: conic-gradient(from 0deg, rgba(83, 217, 255, 0.12), rgba(83, 217, 255, 0.92), rgba(53, 255, 141, 0.9), rgba(83, 217, 255, 0.12)); animation: splash-spin 1.25s linear infinite; box-shadow: 0 0 20px rgba(83, 217, 255, 0.22); }
.splash-loader-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 999px; background: rgba(4, 7, 11, 0.98); box-shadow: inset 0 0 0 1px rgba(83, 217, 255, 0.12); }
.splash-loader-core { width: 18px; height: 18px; background: radial-gradient(circle, rgba(242, 255, 255, 1), rgba(83, 217, 255, 0.72)); box-shadow: 0 0 18px rgba(83, 217, 255, 0.38); }
.splash-loading-text { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes splash-spin { to { transform: rotate(360deg); } }
.shell { min-height: 100vh; min-height: 100dvh; padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left)); }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(8, 14, 20, 0.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
html[data-fixed-header="0"] .topbar { position: relative; top: auto; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { font-size: 15px; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.brand-copy span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.pair-switcher { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; min-width: 0; }
.pair-switcher.is-hidden { display: none; }
.pair-status { display: none; }
.pair-switcher label { white-space: nowrap; }
.pair-select { appearance: none; border: 1px solid var(--border); background: #0a1118; color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 12px; width: 188px; min-width: 188px; max-width: 188px; }
.pair-select.pair-select-native { position: absolute; width: 1px; min-width: 1px; max-width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; pointer-events: none; }
.pair-menu-button { position: relative; text-align: left; cursor: pointer; padding-right: 30px; }
.pair-menu-button::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.pair-menu-button[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.pair-menu-button:disabled { cursor: default; opacity: 0.58; }
.pair-menu-panel { position: fixed; z-index: 95; display: grid; gap: 3px; padding: 6px; max-height: min(440px, calc(100dvh - 16px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(83, 217, 255, 0.26); border-radius: 12px; background: rgba(8, 14, 20, 0.99); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38); }
.pair-menu-panel.is-hidden { display: none; }
.pair-menu-group-label { padding: 6px 9px 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pair-menu-option { appearance: none; width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.pair-menu-option:hover, .pair-menu-option:focus-visible, .pair-menu-option[aria-selected="true"] { border-color: rgba(83, 217, 255, 0.34); background: rgba(83, 217, 255, 0.12); outline: none; }
.pair-menu-option[data-locked="1"] { color: var(--muted); }
.lang-switcher { display: inline-flex; gap: 8px; align-items: center; }
.lang-btn { -webkit-appearance: none; appearance: none; border: 1px solid var(--border); background: #0a1118; color: var(--muted); border-radius: 999px; padding: 8px 12px; font: inherit; cursor: pointer; }
.theme-btn { -webkit-appearance: none; appearance: none; border: 1px solid var(--border); background: #0a1118; color: var(--muted); border-radius: 999px; padding: 9px 14px; font: inherit; cursor: pointer; min-width: 112px; }
.theme-btn.is-active { color: var(--text); border-color: rgba(83, 217, 255, 0.55); background: linear-gradient(135deg, rgba(53, 255, 141, 0.12), rgba(83, 217, 255, 0.14)); }
.lang-btn.is-active { color: var(--text); border-color: rgba(83, 217, 255, 0.55); background: linear-gradient(135deg, rgba(53, 255, 141, 0.12), rgba(83, 217, 255, 0.14)); }
.notice-banner { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border-radius: 16px; padding: 12px 16px; }
.notice-banner-update { border: 1px solid rgba(83, 217, 255, 0.18); border-radius: 16px; background: linear-gradient(135deg, rgba(8, 14, 20, 0.94), rgba(9, 24, 32, 0.96)); }
.notice-banner-install { border: 1px solid rgba(53, 255, 141, 0.16); background: linear-gradient(135deg, rgba(9, 14, 18, 0.94), rgba(12, 25, 24, 0.96)); }
.notice-banner.is-hidden { display: none; }
.notice-dismiss-btn { appearance: none; -webkit-appearance: none; width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid rgba(83, 217, 255, 0.24); border-radius: 999px; background: rgba(7, 15, 23, 0.62); color: var(--text); font: inherit; line-height: 1; cursor: pointer; }
.notice-dismiss-btn:hover, .notice-dismiss-btn:focus-visible { border-color: rgba(83, 217, 255, 0.48); background: rgba(43, 213, 255, 0.12); }
.install-copy { display: grid; gap: 3px; }
.install-copy, .install-copy strong, .install-copy span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.install-copy strong { font-size: 13px; }
.install-copy span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.install-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.layout { display: grid; gap: 16px; margin-top: 16px; }
.workspace-tabs { margin-top: 14px; padding: 10px; }
.tabbar { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.workspace-tab { -webkit-appearance: none; appearance: none; border: 1px solid var(--border); border-radius: 14px; background: rgba(8, 14, 20, 0.9); color: var(--muted); padding: 12px 14px; font: inherit; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.workspace-tab.is-active { color: var(--white); border-color: rgba(83, 217, 255, 0.6); background: linear-gradient(135deg, rgba(53, 255, 141, 0.12), rgba(83, 217, 255, 0.16)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02); }
.workspace-tab-settings { letter-spacing: 0.03em; }
.panel { min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: 18px; background-color: var(--panel); background: linear-gradient(180deg, rgba(10, 17, 24, 0.98), rgba(7, 12, 18, 0.98)); box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22); }
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.88); box-shadow: 0 10px 26px rgba(101, 131, 154, 0.12); }
html[data-theme="light"] .panel { background-color: #ffffff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.98)); box-shadow: 0 14px 42px rgba(101, 131, 154, 0.14); }
html[data-theme="light"] .workspace-tab, html[data-theme="light"] .pair-select, html[data-theme="light"] .lang-btn, html[data-theme="light"] .theme-btn { background: rgba(255, 255, 255, 0.92); color: var(--text); border-color: var(--border); }
html[data-theme="light"] .pair-menu-panel { background: rgba(255, 255, 255, 0.99); border-color: rgba(108, 146, 173, 0.3); box-shadow: 0 18px 42px rgba(101, 131, 154, 0.22); }
html[data-theme="light"] .notice-banner-update, html[data-theme="light"] .notice-banner-install { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.98)); border-color: rgba(108, 146, 173, 0.22); box-shadow: 0 16px 38px rgba(101, 131, 154, 0.16); }
html[data-theme="light"] html[data-theme="light"] .fx-logo, html[data-theme="light"] .splash-screen { color-scheme: dark; }

@media (max-width: 1200px) {
  .notice-banner { grid-template-columns: 1fr; }
  .install-actions { justify-content: flex-start; }
  .topbar { top: 0; }
}

@media (max-width: 760px) {
  .shell { padding: calc(10px + var(--safe-top)) calc(10px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(10px + var(--safe-left)); }
  .topbar { display: grid; grid-template-columns: minmax(142px, 1fr) clamp(88px, 23vw, 96px) 96px; grid-template-rows: 52px; align-items: center; column-gap: 4px; row-gap: 0; min-height: 74px; padding: 10px 12px; }
  .brand-lockup { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; max-width: 100%; gap: 8px; overflow: hidden; }
  .fx-logo-header { width: 38px; height: 38px; border-radius: 12px; }
  .brand-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .brand-copy span { display: none; }
  .pair-switcher { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-self: start; width: 100%; gap: 0; }
  .pair-switcher label,
  .pair-switcher .pair-status { display: none; }
  .pair-select { width: 100%; min-width: 0; max-width: 100%; padding: 9px 24px 9px 8px; font-size: 12px; text-overflow: ellipsis; }
  .lang-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tabbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-btn { width: 100%; }
  .install-actions { width: 100%; }
  .install-actions .btn { width: 100%; }
  .notice-banner { min-width: 0; max-width: 100%; padding: 12px; overflow: hidden; }
  .fx-logo-splash { width: 78px; height: 78px; border-radius: 24px; }
}

@media (max-width: 389px) {
  .topbar { grid-template-columns: minmax(0, 1fr) 88px 82px; }
  .brand-copy strong { font-size: 11px; }
}

@media (max-width: 339px) {
  .topbar { grid-template-columns: minmax(0, 1fr) 76px 64px; }
  .brand-lockup { gap: 4px; }
  .fx-logo-header { width: 28px; height: 28px; border-radius: 9px; }
  .fx-logo-header .fx-logo-text { font-size: 12px; }
  .pair-select { padding: 9px 18px 9px 6px; }
}

html[data-theme="light"] .workspace-tab.is-active, html[data-theme="light"] .theme-btn.is-active, html[data-theme="light"] .lang-btn.is-active, html[data-theme="light"] .btn-primary { color: var(--text); border-color: rgba(108, 146, 173, 0.34); background: #e8f2fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .pair-select, html[data-theme="light"] .lang-btn, html[data-theme="light"] .theme-btn, html[data-theme="light"] .btn { background: #fbfdff; }
/* source: /web/modules/compliance-buttons.css */
.compliance-strip { width: 100%; margin: 20px 0 0; padding: 14px 18px; border-color: rgba(255, 191, 71, 0.28); }
.compliance-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; }
.compliance-copy-stack { display: grid; gap: 5px; min-width: 0; }
.compliance-strip strong { color: var(--white); white-space: nowrap; font-size: 13px; line-height: 1.35; }
.compliance-strip span { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.compliance-legal-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.compliance-legal-row::-webkit-scrollbar { display: none; }
.compliance-support, .compliance-copyright { max-width: none; }
.compliance-copyright { white-space: nowrap; }
.compliance-support { max-width: none; white-space: nowrap; }
.eyebrow { margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.btn { -webkit-appearance: none; appearance: none; border: 1px solid var(--border); background: #0f1821; color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--cyan); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.62; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { border-color: var(--border); }
.btn-primary { background: linear-gradient(135deg, rgba(53, 255, 141, 0.12), rgba(83, 217, 255, 0.14)); border-color: rgba(83, 217, 255, 0.55); }
.btn-ghost { background: transparent; }
.btn-inline { border-color: transparent; color: var(--muted); padding-inline: 10px; }
.btn-inline:hover { border-color: rgba(83, 217, 255, 0.24); color: var(--text); }
.btn.is-hidden { display: none; }
html[data-theme="light"] .compliance-strip strong { color: var(--text); }
html[data-theme="light"] .btn, html[data-theme="light"] .ai-output-field { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }
html[data-theme="light"] .compliance-strip strong { color: var(--text); }
.compliance-links { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: inherit; line-height: inherit; white-space: nowrap; }
.compliance-links a { color: var(--cyan); text-decoration: none; display: inline-flex; align-items: center; }
.compliance-links a + a::before { content: ""; width: 3px; height: 3px; margin-right: 10px; border-radius: 999px; background: currentColor; opacity: 0.55; }
.compliance-links a:hover, .compliance-links a:focus-visible { text-decoration: underline; }

@media (max-width: 900px) {
  .compliance-strip { padding: 12px; }
  .compliance-main { grid-template-columns: 1fr; gap: 6px; }
  .compliance-strip strong { font-size: 12px; }
  .compliance-strip span,
  .compliance-links,
  .compliance-legal-row { font-size: 11px; }
  .compliance-legal-row { flex-wrap: wrap; overflow-x: visible; white-space: normal; }
  .compliance-links { flex-wrap: wrap; row-gap: 4px; white-space: normal; }
  .compliance-copyright,
  .compliance-support { max-width: 100%; white-space: normal; }
}
/* source: /web/modules/calendar.css */
.calendar-view-block { display: grid; gap: 14px; justify-items: start; }
.calendar-title-layer { width: 100%; border-bottom: 1px solid var(--border); padding: 0 0 10px; }
.calendar-title-layer h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); }
.calendar-view-tabs { margin: 0; justify-content: flex-start; width: 100%; }
.calendar-range-hint { margin: -4px 0 0; max-width: 860px; font-size: clamp(12px, 1.25vw, 14px); line-height: 1.6; }
.calendar-filter-bar { gap: 12px; margin-top: 6px; }
.calendar-filter-grid { grid-template-columns: repeat(2, minmax(156px, 180px)) repeat(2, minmax(132px, 180px)) auto; }
.calendar-filter-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-start; align-self: end; padding-bottom: 0; }
.calendar-filter-actions .btn { height: 38px; min-height: 38px; }
.calendar-special-nav { align-items: center; justify-content: flex-start; }
.calendar-special-nav .btn { min-width: 52px; }
.calendar-view-tabs .btn.is-active { border-color: rgba(83, 217, 255, 0.62); color: var(--white); background: rgba(83, 217, 255, 0.12); }
.calendar-month-stack { display: grid; gap: 14px; }
.calendar-special-legend { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 10px 16px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 8px 10px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.calendar-special-legend::-webkit-scrollbar { display: none; }
.calendar-special-legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.3; white-space: nowrap; }
.calendar-special-legend-swatch { width: 12px; height: 12px; border-radius: 4px; border: 1px solid currentColor; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.calendar-special-legend-swatch.is-holiday { background: rgba(148, 163, 184, 0.78); border-color: rgba(148, 163, 184, 0.92); }
.calendar-special-legend-swatch.is-important { background: rgba(250, 204, 21, 0.78); border-color: rgba(250, 204, 21, 0.95); }
.calendar-month-card { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 14px; background: rgba(8, 14, 20, 0.82); }
.calendar-month-head { display: flex; align-items: center; justify-content: space-between; }
.calendar-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-month-grid > strong { color: var(--muted); font-size: 12px; text-align: center; }
.calendar-month-cell { min-height: 78px; padding: 8px; border-radius: 12px; border: 1px solid rgba(83, 217, 255, 0.08); background: rgba(255, 255, 255, 0.02); display: grid; align-content: start; gap: 6px; }
.calendar-month-cell strong { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.calendar-month-cell.is-empty { border-color: transparent; background: transparent; }
.calendar-month-cell.is-holiday { border-color: rgba(148, 163, 184, 0.42); background: rgba(71, 85, 105, 0.28); }
.calendar-month-cell.is-important { border-color: rgba(250, 204, 21, 0.42); background: rgba(113, 63, 18, 0.24); }
.calendar-month-cell span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.calendar-day-markers,
.calendar-event-markers { display: inline-flex; align-items: center; gap: 4px; }
.calendar-event-marker { width: 10px; height: 10px; border-radius: 3px; border: 1px solid currentColor; }
.calendar-event-marker.is-holiday { color: rgba(148, 163, 184, 0.92); background: rgba(148, 163, 184, 0.78); }
.calendar-event-marker.is-important { color: rgba(250, 204, 21, 0.95); background: rgba(250, 204, 21, 0.78); }
.calendar-liquidity-dot { display: inline-flex; flex: 0 0 auto; width: 16px; height: 16px; border: 0; border-radius: 999px; padding: 0; cursor: default; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.calendar-liquidity-dot.is-high { background: #ef4444; }
.calendar-liquidity-dot.is-medium { background: #a855f7; }
.calendar-liquidity-dot.is-low { background: #22c55e; }
.calendar-special-legend-swatch.is-liquidity { border-radius: 999px; background: linear-gradient(90deg, #ef4444 0 33%, #a855f7 33% 66%, #22c55e 66% 100%); }
.calendar-liquidity-pairs { display: flex; flex-wrap: wrap; gap: 4px; }
.calendar-liquidity-pairs button,
.calendar-liquidity-pairs span { border: 0; border-radius: 999px; padding: 2px 5px; background: rgba(245, 158, 11, 0.14); color: #fbbf24; font-size: 10px; font-weight: 800; }
.calendar-liquidity-pairs button { cursor: pointer; }
.calendar-liquidity-legend-dot { display: inline-flex; cursor: default; flex: 0 0 auto; }
.calendar-detail-popover { position: fixed; z-index: 120; width: max-content; max-width: min(280px, calc(100vw - 24px)); max-height: min(240px, calc(100vh - 24px)); overflow: auto; overflow-wrap: anywhere; padding: 10px 34px 10px 10px; border: 1px solid rgba(83, 217, 255, 0.34); border-radius: 10px; background: rgba(6, 15, 23, 0.98); color: var(--text); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38); white-space: pre-line; font-size: 10px; line-height: 1.45; }
.calendar-detail-close { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border: 1px solid rgba(83, 217, 255, 0.24); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; }
.calendar-month-cell[data-calendar-details]:focus-visible,
.calendar-detail-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

html[data-theme="light"] .calendar-view-tabs .btn.is-active { color: var(--text); border-color: rgba(108, 146, 173, 0.34); background: #e8f2fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

html[data-theme="light"] .calendar-month-card,
html[data-theme="light"] .calendar-month-cell,
html[data-theme="light"] .calendar-month-grid > strong,
html[data-theme="light"] .calendar-month-cell.is-empty { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }
html[data-theme="light"] .calendar-month-cell span,
html[data-theme="light"] .calendar-month-grid > strong { color: var(--muted); }
html[data-theme="light"] .calendar-month-cell.is-holiday { border-color: rgba(100, 116, 139, 0.28); background: #f1f5f9; }
html[data-theme="light"] .calendar-month-cell.is-empty { border-color: transparent; background: transparent; }
html[data-theme="light"] .calendar-month-cell.is-important { border-color: rgba(217, 119, 6, 0.28); background: #fffbeb; }
html[data-theme="light"] .calendar-detail-popover { border-color: rgba(56, 115, 155, 0.34); background: rgba(248, 252, 255, 0.99); box-shadow: 0 18px 44px rgba(25, 50, 70, 0.2); }

@media (max-width: 1080px) {
  .calendar-view-block { display: block; }
  .calendar-view-tabs { margin: 12px 0 16px; justify-content: flex-start; width: 100%; }
  .calendar-filter-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(130px, 1fr)) repeat(2, minmax(110px, 1fr)) auto;
  }
}

@media (max-width: 720px) {
  .calendar-view-block { display: grid; gap: 10px; }
  .button-row.calendar-view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 0 10px;
    width: 100%;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(83, 217, 255, 0.14);
    border-radius: 14px;
    background: rgba(4, 12, 18, 0.5);
  }
  .calendar-view-tabs .btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border-color: rgba(83, 217, 255, 0.24);
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #calendarSpecialBtn { grid-column: 1 / -1; }
  .calendar-filter-bar {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(83, 217, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 12, 18, 0.38);
  }
  .form-grid.calendar-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 9px 8px;
    padding-bottom: 0;
  }
  .form-grid.calendar-filter-grid > label,
  .form-grid.calendar-filter-grid .text-input { width: 100%; min-width: 0; }
  .form-grid.calendar-filter-grid > label { display: grid; align-content: end; gap: 5px; }
  .form-grid.calendar-filter-grid > label > span { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
  .form-grid.calendar-filter-grid .text-input { height: 40px; min-height: 40px; padding: 7px 9px; font-size: 13px; }
  .form-grid.calendar-filter-grid .calendar-filter-actions { grid-column: 1 / -1; width: 100%; justify-content: stretch; }
  .form-grid.calendar-filter-grid .calendar-filter-actions .btn { width: 100%; height: 40px; min-height: 40px; padding: 7px 12px; }
  .button-row.calendar-special-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    width: 100%;
    padding: 5px;
    border: 1px solid rgba(83, 217, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 12, 18, 0.38);
  }
  .button-row.calendar-special-nav .btn { min-width: 0; width: 100%; height: 42px; min-height: 42px; padding: 7px 8px; }
  #calendarSpecialRangeLabel { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 42px; padding: 0 6px; text-align: center; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
  #calendarSpecialCurrentBtn { grid-column: 1 / -1; }
  .calendar-special-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; padding: 8px; overflow: visible; }
  .calendar-special-legend-item { min-width: 0; white-space: normal; font-size: 11px; }
  .calendar-month-card { padding: 10px; border-radius: 12px; overflow: hidden; }
  .calendar-month-grid { grid-template-columns: 1fr; gap: 8px; }
  .calendar-month-grid > strong,
  .calendar-month-cell.is-empty { display: none; }
  .calendar-month-cell { min-height: auto; padding: 10px; }
  .calendar-month-cell span { overflow-wrap: anywhere; }
  .calendar-liquidity-pairs { gap: 3px; }
  .calendar-liquidity-pairs button,
  .calendar-liquidity-pairs span { padding: 2px 5px; font-size: 9px; }
  .calendar-liquidity-dot { width: 24px; height: 24px; box-shadow: inset 0 0 0 5px rgba(8, 14, 20, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.12); }
  .calendar-liquidity-legend-dot { width: 16px; height: 16px; box-shadow: none; }
  .calendar-detail-popover { position: fixed; left: 12px !important; right: auto; top: auto !important; bottom: max(12px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); max-height: min(40vh, 240px); font-size: 10px; }
  .button-row.calendar-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(83, 217, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 12, 18, 0.38);
  }
  .button-row.calendar-pagination .btn { min-width: 0; width: 100%; height: 42px; min-height: 42px; padding: 6px 8px; font-size: clamp(12px, 3.6vw, 14px); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  #calendarPageLabel { min-width: 34px; padding: 0 5px; text-align: center; font-size: 12px; white-space: nowrap; }
}

@media (max-width: 720px) {
  html[data-theme="light"] .calendar-view-tabs .btn { border-color: rgba(108, 146, 173, 0.28); background: rgba(255, 255, 255, 0.64); }
  html[data-theme="light"] .button-row.calendar-view-tabs,
  html[data-theme="light"] .calendar-filter-bar,
  html[data-theme="light"] .button-row.calendar-special-nav,
  html[data-theme="light"] .button-row.calendar-pagination { border-color: rgba(108, 146, 173, 0.22); background: rgba(231, 241, 248, 0.72); }
}
/* source: /web/modules/subscription.css */
.subscription-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.subscription-card { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 18px; min-height: 460px; padding: 22px; border: 1px solid var(--member-surface-border); border-radius: 16px; background-color: var(--member-surface-solid); background-image: radial-gradient(circle at top left, rgba(83, 217, 255, 0.06), transparent 40%), linear-gradient(180deg, var(--member-surface-solid-alt), var(--member-surface-solid)); box-shadow: var(--member-surface-shadow); }
.subscription-card.is-featured { border-color: rgba(53, 255, 141, 0.38); box-shadow: inset 0 3px 0 rgba(53, 255, 141, 0.82); }
.subscription-card.is-current { border-color: rgba(144, 201, 255, 0.52); }
.subscription-card-head h3 { margin: 0 0 8px; color: var(--white); font-size: 34px; line-height: 1; }
.subscription-card-head p,
.subscription-current p { margin: 0; color: var(--muted); }
.subscription-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.subscription-summary-row { display: grid; gap: 4px; }
.subscription-summary-row dt { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.subscription-summary-row dd { margin: 0; color: var(--text); }
.subscription-renewal-group { display: grid; gap: 10px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--member-surface-border); border-radius: 12px; background-color: var(--member-surface-solid-alt); background-image: linear-gradient(180deg, var(--member-surface-solid-alt), var(--member-surface-solid)); }
.subscription-renewal-group legend { padding: 0 6px; color: var(--text); font-size: 13px; }
.subscription-renewal-group label { display: flex; align-items: center; gap: 10px; color: var(--text); }
.subscription-renewal-group small { color: var(--muted); }
.profile-renewal-group { margin-top: 0; }
.subscription-profile-radio-field { display: grid; grid-column: 1 / -1; gap: 8px; min-width: 0; }
.subscription-profile-radio-field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.subscription-profile-radio-field .settings-inline-help { margin: 0; font-size: 12px; line-height: 1.45; }
.profile-renewal-action-line { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; min-height: 38px; }
.profile-renewal-switch { display: flex; align-items: center; min-height: 34px; }
.profile-renewal-switch .settings-inline-help { max-width: 460px; }
.profile-subscription-cancel-row { display: flex; justify-content: flex-start; align-self: center; margin-left: 0; margin-top: 12px; }
.subscription-refund-deadline-field { opacity: 1; transition: opacity 160ms ease; }
.subscription-refund-deadline-field.is-refund-expired { opacity: 0.58; }
.subscription-cancel-btn.is-refund-eligible { border-color: rgba(83, 217, 255, 0.56); color: var(--text); background: rgba(83, 217, 255, 0.14); }
.subscription-cancel-btn.is-refund-eligible:hover,
.subscription-cancel-btn.is-refund-eligible:focus-visible { border-color: rgba(122, 255, 176, 0.72); color: var(--white); background: rgba(42, 216, 136, 0.18); }
.subscription-cancel-confirm-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--member-surface-border);
  border-radius: 18px;
  background: var(--member-surface-solid);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}
.subscription-cancel-confirm-dialog::backdrop { background: rgba(0, 7, 12, 0.76); backdrop-filter: blur(3px); }
.subscription-cancel-confirm-card { display: grid; gap: 18px; padding: clamp(20px, 5vw, 30px); }
.subscription-cancel-confirm-card h2 { margin: 0; color: var(--white); font-size: clamp(20px, 4.8vw, 24px); line-height: 1.25; }
.subscription-cancel-confirm-card p { margin: 0; color: var(--text); line-height: 1.65; overflow-wrap: anywhere; }
.subscription-cancel-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.subscription-cancel-confirm-actions .btn { min-width: 112px; min-height: 44px; }
html[data-theme="light"] .subscription-cancel-confirm-dialog { background: #f7fbfe; }
html[data-theme="light"] .subscription-cancel-confirm-card h2 { color: var(--text); }
.profile-subscription-feedback { margin: 4px 0 0; }
.btn-compact { min-height: 34px; padding: 7px 14px; border-radius: 12px; font-size: 13px; }
.subscription-policy { display: grid; gap: 6px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--member-highlight-border); border-radius: 12px; background: var(--member-highlight-solid); }
.subscription-policy strong { color: var(--text); }
.subscription-policy p { margin: 0; }
.subscription-policy-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.subscription-policy-list li::marker { color: rgba(255, 209, 102, 0.85); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { color: var(--white); font-size: 34px; line-height: 1; }
.plan-price span { color: var(--muted); }
.subscription-wallet-section { display: grid; gap: 10px; padding: 12px 0 0; border-top: 1px solid var(--member-surface-border); }
.subscription-card-note { display: block; color: var(--muted); line-height: 1.45; }
.subscription-card-actions { display: flex; justify-content: stretch; }
.subscription-card-actions .btn { width: 100%; }
.subscription-plan-btn { width: 100%; min-width: 0; overflow: hidden; }
.subscription-plan-btn-compact { padding: 8px 10px; }
.subscription-btn-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.subscription-btn-content-emphasis { gap: 14px; }
.subscription-btn-main { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.subscription-btn-label { min-width: 0; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.subscription-btn-content-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.subscription-btn-content-compact .subscription-btn-main { min-width: 0; }
.subscription-btn-content-compact .subscription-btn-label { font-size: 12px; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.subscription-flash-text { color: var(--warn); animation: subscription-login-pulse 1.4s ease-in-out infinite; }
.subscription-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; flex: 0 0 auto; }
.subscription-btn-icon svg { width: 18px; height: 18px; }
.subscription-btn-icon-free { background: rgba(144, 201, 255, 0.16); color: #90c9ff; }
.subscription-btn-icon-card { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.subscription-btn-icon-alipay { background: rgba(24, 144, 255, 0.18); color: #4aa8ff; }
.subscription-btn-icon-wechat { background: rgba(58, 201, 109, 0.18); color: #4de089; }
.subscription-brand-strip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.payment-brand-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.payment-brand-badge-visa { color: #7db8ff; }
.payment-brand-badge-master { color: #ffdba0; }
.payment-brand-master-circles { position: relative; display: inline-flex; width: 16px; height: 10px; margin-right: 1px; }
.payment-brand-master-circles span { position: absolute; top: 0; width: 10px; height: 10px; border-radius: 999px; opacity: 0.9; }
.payment-brand-master-circles span:first-child { left: 0; background: #ff5f45; }
.payment-brand-master-circles span:last-child { right: 0; background: #ffb347; }
.subscription-wallet-title { color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.subscription-wallet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subscription-wallet-btn { min-height: 46px; }
.subscription-wallet-section small { color: var(--muted); line-height: 1.5; }
.subscription-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-features { display: grid; gap: 13px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--member-surface-border); list-style: none; }
.subscription-current { border-color: var(--member-surface-border); background-color: var(--member-surface-solid); background-image: radial-gradient(circle at top left, rgba(83, 217, 255, 0.05), transparent 40%), linear-gradient(180deg, var(--member-surface-solid-alt), var(--member-surface-solid)); box-shadow: var(--member-surface-shadow); }
.plan-features li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text); line-height: 1.45; }
.plan-features span { color: var(--accent-2); font-weight: 800; }
.plan-badge { position: absolute; top: 14px; right: 14px; border: 1px solid rgba(53, 255, 141, 0.32); border-radius: 999px; padding: 4px 9px; color: var(--white); background: rgba(53, 255, 141, 0.12); font-size: 12px; }

html[data-theme="light"] .plan-badge { color: var(--text); border-color: rgba(108, 146, 173, 0.34); background: #e8f2fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .subscription-btn-icon-card { background: rgba(24, 49, 64, 0.08); color: var(--text); }
html[data-theme="light"] .payment-brand-badge { border-color: rgba(108, 146, 173, 0.26); background: rgba(255, 255, 255, 0.78); color: var(--text); }
html[data-theme="light"] .subscription-card-head h3,
html[data-theme="light"] .plan-price strong,
html[data-theme="light"] .subscription-summary-row dd { color: var(--text); }
html[data-theme="light"] .subscription-card-head p,
html[data-theme="light"] .subscription-current p,
html[data-theme="light"] .subscription-policy-list { color: var(--muted); }

@media (max-width: 900px) {
  .subscription-plans { grid-template-columns: 1fr; }
  .subscription-card { min-height: 0; }
  .subscription-wallet-actions { grid-template-columns: 1fr; }
  .subscription-btn-content { flex-wrap: wrap; justify-content: flex-start; }
  .subscription-brand-strip { margin-left: 38px; }
  .subscription-btn-content-compact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .subscription-btn-content-compact .subscription-btn-label { font-size: 11px; line-height: 1.3; }
}

@media (max-width: 720px) {
  .subscription-summary-grid { grid-template-columns: 1fr; }
  .subscription-profile-grid { grid-template-columns: 1fr; }
  .profile-subscription-cancel-row { margin-left: 0; margin-top: 0; }
  .subscription-cancel-confirm-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .subscription-cancel-confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-cancel-confirm-actions .btn { min-width: 0; width: 100%; }
}

@keyframes subscription-login-pulse {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}
.subscription-card--plus { border-color: rgba(76, 154, 255, 0.48); box-shadow: inset 0 3px 0 rgba(76, 154, 255, 0.72), var(--member-surface-shadow); }
.subscription-card--pro { border-color: rgba(53, 255, 141, 0.52); box-shadow: inset 0 3px 0 rgba(53, 255, 141, 0.82), 0 22px 58px rgba(53, 255, 141, 0.12); }

.subscription-plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
.subscription-plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.subscription-tabs { display: inline-flex; width: fit-content; gap: 6px; padding: 5px; border: 1px solid var(--member-surface-border); border-radius: 999px; background: var(--member-surface-solid-alt); }
.subscription-tab { min-height: 36px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 800; }
.subscription-tab.is-active { background: linear-gradient(135deg, rgba(83,217,255,.22), rgba(53,255,141,.16)); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.subscription-tab-panel { display: grid; gap: 14px; }
.credits-store-panel { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--member-surface-border); border-radius: 18px; background: radial-gradient(circle at top right, rgba(83,217,255,.08), transparent 36%), var(--member-surface-solid); box-shadow: var(--member-surface-shadow); }
.credits-store-head h3 { margin: 0 0 6px; color: var(--white); font-size: 22px; }
.credits-store-head p, .credits-legal-note { margin: 0; color: var(--muted); line-height: 1.55; }
.credit-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.credit-pack-card { display: grid; gap: 16px; padding: 20px; border: 1px solid rgba(83,217,255,.22); border-radius: 16px; background: linear-gradient(180deg, var(--member-surface-solid-alt), var(--member-surface-solid)); }
.credit-pack-card--credits_5 { border-color: rgba(226,232,240,.34); }
.credit-pack-card--credits_10 { border-color: rgba(255,209,102,.42); box-shadow: inset 0 3px 0 rgba(255,209,102,.72); }
.credit-pack-card--credits_25 { border-color: rgba(168,85,247,.52); box-shadow: inset 0 3px 0 rgba(168,85,247,.68); }
.credit-pack-wallet-section { display: grid; gap: 10px; }
.credit-pack-wallet-title { color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.credit-pack-wallet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.credit-pack-wallet-btn { min-height: 46px; }
.credit-pack-wallet-section small { color: var(--muted); line-height: 1.5; }
.credits-terms-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 14px; border: 1px solid rgba(255,209,102,.2); border-radius: 14px; background: rgba(255,209,102,.06); color: var(--text); line-height: 1.55; }
.credits-terms-check input { margin-top: 3px; }

@media (max-width: 1200px) {
  .subscription-plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .subscription-plans-grid,
  .credit-pack-grid { grid-template-columns: 1fr; }
  .credit-pack-wallet-actions { grid-template-columns: 1fr; }
}
/* source: /web/modules/admin.css */
.admin-card { overflow-x: auto; }
.admin-subtab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.admin-subtab-groups { display: grid; gap: 10px; margin-bottom: 14px; }
.admin-subtab-group { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 10px; }
.admin-subtab-group .admin-subtab-bar { margin-bottom: 0; }
.admin-subtab-group-label { padding-top: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-subtab-btn.is-active { border-color: rgba(83, 217, 255, 0.62); color: var(--white); background: rgba(83, 217, 255, 0.12); }
.admin-tab-panel.is-hidden { display: none; }
.admin-card-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-health-warning { color: #ffb1b1; }
.admin-health-ok { color: #76d8a3; }
.admin-health-subtitle { margin: 18px 0 10px; color: var(--white); }
.admin-health-issue-table .admin-table {
  border-color: rgba(255, 112, 112, 0.34);
  background: rgba(255, 88, 88, 0.035);
}
.admin-health-issue-table .admin-table span { color: #ffb1b1; }
.admin-repair-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-repair-status__item { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.admin-repair-status__item span { color: var(--muted); font-size: 12px; }
.admin-repair-status__item strong { overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.admin-stat-grid--compact { margin-top: 14px; }
.admin-stat-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.admin-stat-card span { color: var(--muted); font-size: 12px; }
.admin-command-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 18px; }
.admin-command-card { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(5, 20, 29, 0.36); }
.admin-command-card span,
.admin-command-card small { color: var(--muted); font-size: 12px; }
.admin-command-card code { white-space: normal; overflow-wrap: anywhere; color: var(--white); font-size: 13px; }
.admin-stat-card strong { color: var(--white); font-size: 28px; line-height: 1; }
.admin-filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.admin-filter-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-filter-row--single { grid-template-columns: minmax(0, 1fr); }
.admin-filter-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.admin-table { display: grid; grid-template-columns: repeat(var(--admin-cols), minmax(120px, 1fr)); gap: 0; min-width: 1040px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; overflow: hidden; }
.admin-table strong,
.admin-table span { padding: 10px 12px; border-bottom: 1px solid rgba(83, 217, 255, 0.1); color: var(--text); overflow-wrap: anywhere; }
.admin-table strong { color: var(--white); background: rgba(83, 217, 255, 0.08); }
.admin-table span { color: var(--muted); }
.admin-pagination { justify-content: flex-start; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-log-actions { justify-content: flex-start; margin-bottom: 14px; }
.admin-maintenance-list { display: grid; gap: 12px; margin: 14px 0 18px; }
.admin-maintenance-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.9fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.admin-maintenance-row strong { color: var(--white); }
.admin-maintenance-row .admin-card-note { margin-top: 4px; }
.admin-maintenance-meta { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.admin-maintenance-row--protected { grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.9fr) max-content; border-color: rgba(255, 193, 7, 0.18); background: rgba(255, 193, 7, 0.035); }
.admin-protected-badge { display: inline-flex; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid rgba(255, 193, 7, 0.28); border-radius: 999px; color: var(--warning); font-size: 12px; font-weight: 800; white-space: nowrap; }
.admin-period-tabs .btn.is-active { border-color: rgba(83, 217, 255, 0.62); color: var(--white); background: rgba(83, 217, 255, 0.12); }

html[data-theme="light"] .admin-subtab-btn.is-active,
html[data-theme="light"] .admin-period-tabs .btn.is-active { color: var(--text); border-color: rgba(108, 146, 173, 0.34); background: #e8f2fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .admin-stat-card,
html[data-theme="light"] .admin-maintenance-row,
html[data-theme="light"] .admin-table strong,
html[data-theme="light"] .admin-table span { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }
html[data-theme="light"] .admin-stat-card strong,
html[data-theme="light"] .admin-maintenance-row strong,
html[data-theme="light"] .admin-table strong { color: var(--text); }
html[data-theme="light"] .admin-table span { color: var(--muted); }

@media (max-width: 900px) {
  .admin-filter-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-maintenance-row { grid-template-columns: minmax(0, 1fr); }
  .admin-subtab-group { grid-template-columns: 1fr; gap: 6px; }
  .admin-subtab-group-label { padding-top: 0; }
  .admin-repair-status { grid-template-columns: 1fr; }
}
/* source: /web/modules/community.css */
.message-compose-block { position: relative; min-height: 46px; }
.form-grid.message-compose-grid { grid-template-columns: minmax(170px, 220px) minmax(460px, 1fr); align-items: start; min-width: 0; }
.message-compose-header { position: absolute; z-index: 1; top: 6px; right: 14px; display: flex; align-items: center; justify-content: flex-end; }
.message-compose-toggle { width: 32px; height: 32px; min-width: 32px; padding: 0; display: inline-grid; place-items: center; border: 1px solid rgba(83, 217, 255, 0.48); border-radius: 9px; color: #b9efff; background: rgba(83, 217, 255, 0.12); font: 700 20px/1 system-ui, sans-serif; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.message-compose-toggle:hover,
.message-compose-toggle:focus-visible { border-color: rgba(122, 255, 176, 0.72); color: #d8ffe9; background: rgba(42, 216, 136, 0.18); outline: none; }
.message-compose-toggle[aria-expanded="false"] { border-color: rgba(42, 216, 136, 0.58); color: #c8ffe0; background: rgba(42, 216, 136, 0.14); }
.message-compose-content { min-width: 0; }
.message-compose-content > .button-row { align-items: center; }
#createMessageBtn { min-height: 34px; height: 34px; padding: 6px 14px; }
.message-compose-grid .message-pair-field { grid-column: 1; min-width: 0; }
.message-compose-grid .message-title-field { grid-column: 2; width: 70%; max-width: 70%; min-width: 0; }
.message-compose-grid .message-body-field { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.message-compose-grid #messageBodyInput { min-height: 132px; width: 100%; min-width: 0; max-width: 100%; }
.form-grid.message-filter-grid { grid-template-columns: minmax(180px, 260px) minmax(112px, 140px) minmax(112px, 140px) auto; min-width: 0; }
#messageTopicFilterInput,
#messagePairInput { font-size: 12px; }
.message-filter-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-self: end; }
.message-filter-grid .text-input,
.message-filter-actions .btn { height: 38px; min-height: 38px; }
.community-keyword-suggestions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-width: 100%; }
.community-keyword-suggestions.is-hidden { display: none; }
.community-keyword-suggestion { appearance: none; max-width: 100%; padding: 4px 9px; border: 1px solid rgba(83, 217, 255, 0.24); border-radius: 999px; background: rgba(83, 217, 255, 0.08); color: var(--muted); font: inherit; font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.community-keyword-suggestion:hover, .community-keyword-suggestion:focus-visible { border-color: rgba(83, 217, 255, 0.48); color: var(--text); background: rgba(83, 217, 255, 0.14); outline: none; }
.message-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.message-meta { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; min-width: 0; }
.message-meta-avatar { position: relative; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 999px; overflow: hidden; border: 1px solid rgba(83, 217, 255, 0.2); background: radial-gradient(circle at top left, rgba(83, 217, 255, 0.16), transparent 36%), linear-gradient(145deg, rgba(10, 24, 32, 0.98), rgba(8, 14, 20, 0.94)); }
.message-meta-copy { min-width: 0; display: grid; gap: 2px; }
.message-meta-copy strong,
.message-meta-copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-meta-copy strong { color: var(--white); }
.message-admin-actions,
.message-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.message-tag,
.message-pin { width: fit-content; border: 1px solid rgba(83, 217, 255, 0.18); border-radius: 999px; padding: 3px 8px; color: var(--muted); background: rgba(83, 217, 255, 0.08); font-size: 12px; }
.message-card--pinned { border-color: rgba(122, 255, 176, 0.36); }
.message-pin { color: var(--white); background: rgba(42, 216, 136, 0.16); }
.message-actions .btn { min-height: 36px; min-width: 58px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.message-actions .btn.is-active { border-color: rgba(122, 255, 176, 0.55); color: var(--white); background: rgba(42, 216, 136, 0.16); }
.message-card { content-visibility: auto; contain-intrinsic-size: 220px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.reaction-icon { font-size: 15px; line-height: 1; }
.reaction-count { min-width: 1.5ch; text-align: left; font-variant-numeric: tabular-nums; }
.message-replies { display: grid; gap: 6px; margin: 8px 0; padding: 8px 10px; border-left: 3px solid rgba(83, 217, 255, 0.28); background: rgba(83, 217, 255, 0.06); border-radius: 10px; }
.message-reply { display: grid; gap: 2px; color: var(--muted); font-size: 12px; }
.message-reply strong { color: var(--text); font-size: 12px; }
.message-reply-form {
  display: grid;
  grid-template-rows: 0fr;
  gap: 0;
  margin-top: 10px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(83, 217, 255, 0.04);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 180ms ease,
    opacity 160ms ease,
    transform 160ms ease,
    padding 160ms ease,
    border-color 160ms ease;
  contain: layout paint;
}
.message-reply-form.is-expanded {
  grid-template-rows: 1fr;
  padding: 10px;
  border-color: rgba(83, 217, 255, 0.16);
  opacity: 1;
  transform: translateY(0);
}
.message-reply-form-inner { display: grid; gap: 8px; min-height: 0; overflow: hidden; }
.message-reply-form .message-reply-input { width: 100%; min-height: 74px; resize: vertical; }
.message-reply-form .form-row--compact { align-items: center; justify-content: flex-end; gap: 8px; }
.message-reply-form .field-count { margin-right: auto; }
.message-tag--feedback { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }

html[data-theme="light"] .message-actions .btn.is-active,
html[data-theme="light"] .message-pin { color: var(--text); border-color: rgba(108, 146, 173, 0.34); background: #e8f2fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .message-tag { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--muted); }
html[data-theme="light"] .community-keyword-suggestion { border-color: rgba(108, 146, 173, 0.26); background: rgba(108, 146, 173, 0.08); }
html[data-theme="light"] .message-meta-copy strong { color: var(--text); }
html[data-theme="light"] .message-reply-form.is-expanded { border-color: rgba(108, 146, 173, 0.22); }
html[data-theme="light"] .message-compose-toggle { border-color: rgba(23, 132, 172, 0.42); color: #075d7c; background: rgba(23, 132, 172, 0.1); }
html[data-theme="light"] .message-compose-toggle:hover,
html[data-theme="light"] .message-compose-toggle:focus-visible,
html[data-theme="light"] .message-compose-toggle[aria-expanded="false"] { border-color: rgba(18, 142, 91, 0.48); color: #075f3d; background: rgba(18, 142, 91, 0.12); }

@media (prefers-reduced-motion: reduce) {
  .message-reply-form {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .form-grid.message-filter-grid {
    grid-template-columns: minmax(160px, 1.45fr) minmax(104px, 0.8fr) minmax(104px, 0.8fr) auto;
    width: 100%;
  }
  .form-grid.message-compose-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .message-compose-grid .message-pair-field,
  .message-compose-grid .message-title-field,
  .message-compose-grid .message-body-field { grid-column: 1; }
  .message-compose-grid .message-pair-field { grid-row: 1; padding-right: 40px; }
  .message-compose-grid .message-title-field { grid-row: 2; }
  .message-compose-grid .message-body-field { grid-row: 3; }
  .message-compose-grid .message-title-field { width: 100%; max-width: 100%; }
}

@media (max-width: 720px) {
  .form-grid.message-filter-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .form-grid.message-filter-grid > label,
  .form-grid.message-filter-grid .text-input,
  .form-grid.message-compose-grid > label,
  .form-grid.message-compose-grid .text-input { width: 100%; min-width: 0; max-width: 100%; }
  .message-filter-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .message-filter-actions .btn { width: 100%; }
  .message-card { width: 100%; box-sizing: border-box; }
  .message-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-actions .btn { width: 100%; min-width: 0; }
  .message-meta { align-items: flex-start; }
  .message-replies { margin-left: 0; margin-right: 0; }
}
/* source: /web/modules/profile.css */
.settings-identity-grid { grid-template-columns: minmax(0, 1fr); }
.profile-name-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.profile-name-control .btn { min-height: 56px; white-space: nowrap; }
.settings-inline-help { margin: 10px 0 0; line-height: 1.45; }
.settings-inline-actions { margin-top: 12px; }
.profile-display-name-feedback { min-height: 18px; margin: 8px 0 0; }
.profile-avatar-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px; margin-top: 8px; }
.profile-language-choices,
.profile-theme-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.profile-avatar-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px; border: 1px solid rgba(88, 198, 255, 0.2); border-radius: 16px; background: rgba(12, 23, 35, 0.92); color: var(--ink); cursor: pointer; transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease; }
.profile-avatar-choice:hover:not(:disabled),
.profile-avatar-choice:focus-visible:not(:disabled) { border-color: rgba(88, 198, 255, 0.55); background: rgba(17, 34, 49, 0.98); transform: translateY(-1px); }
.profile-avatar-choice:disabled { opacity: 0.56; cursor: not-allowed; }
.profile-avatar-choice.is-active { border-color: rgba(88, 198, 255, 0.85); box-shadow: 0 0 0 1px rgba(88, 198, 255, 0.2) inset; }
.profile-avatar-choice-swatch { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(88, 198, 255, 0.32); background: radial-gradient(circle at top, rgba(23, 39, 54, 0.98), rgba(10, 17, 26, 0.98)); }
.profile-avatar-choice-label { font-size: 0.85rem; line-height: 1.2; text-align: center; }

html[data-theme="light"] .profile-avatar-choice { background: rgba(255, 255, 255, 0.92); color: var(--text); border-color: var(--border); }
html[data-theme="light"] .profile-avatar-choice-swatch { border-color: rgba(108, 146, 173, 0.28); background: radial-gradient(circle at top, #ffffff, #eaf3fa); }

@media (max-width: 900px) {
  .profile-name-control { grid-template-columns: minmax(0, 1fr) auto; }
}
/* source: /web/modules/legal.css */
.legal-page { min-height: 100vh; min-height: 100dvh; }
.legal-page .shell { gap: 18px; }
.legal-app-shell { max-width: 1180px; margin: 0 auto; }
.legal-shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.legal-topbar { position: static; }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 700; }
.legal-doc-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.legal-doc-nav a:not(.btn) { padding: 8px 10px; border: 1px solid rgba(103, 232, 249, 0.18); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; background: rgba(255, 255, 255, 0.03); }
.legal-doc-nav a:not(.btn):hover,
.legal-doc-nav a:not(.btn):focus-visible { color: var(--cyan); border-color: rgba(103, 232, 249, 0.42); }
.legal-back { color: var(--cyan); text-decoration: none; font-size: 14px; }
.legal-back:hover,
.legal-back:focus-visible { text-decoration: underline; }
.legal-layout { gap: 18px; }
.legal-document-frame { display: grid; gap: 18px; padding: 22px; }
.legal-document-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(103, 232, 249, 0.14); }
.legal-document-head .legal-eyebrow { margin: 0; }
.legal-panel { max-width: 860px; width: 100%; margin: 0 auto; padding: 10px 0 6px; }
.legal-eyebrow { margin-bottom: 10px; color: var(--cyan); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-panel h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.legal-meta { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.legal-panel section + section { margin-top: 12px; }
.legal-panel h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.legal-panel p,
.legal-panel li { color: var(--text); font-size: 15px; line-height: 1.72; }
.legal-panel ul { margin: 10px 0 0 18px; padding: 0; }
.legal-panel a { color: var(--cyan); }

html[data-theme="light"] .legal-brand,
html[data-theme="light"] .legal-page { color: var(--text); }
html[data-theme="light"] .legal-back,
html[data-theme="light"] .legal-eyebrow,
html[data-theme="light"] .legal-panel a { color: #0877a6; }
html[data-theme="light"] .legal-doc-nav a:not(.btn) { background: rgba(8, 119, 166, 0.06); border-color: rgba(8, 119, 166, 0.16); color: var(--muted); }
html[data-theme="light"] .legal-doc-nav a:not(.btn):hover,
html[data-theme="light"] .legal-doc-nav a:not(.btn):focus-visible { color: #0877a6; border-color: rgba(8, 119, 166, 0.34); }
html[data-theme="light"] .legal-panel h1,
html[data-theme="light"] .legal-panel h2 { color: var(--text); }
html[data-theme="light"] .legal-meta,
html[data-theme="light"] .legal-panel p,
html[data-theme="light"] .legal-panel li { color: var(--muted); }

.offline-page .legal-app-shell {
  width: min(1080px, 100%);
}
.offline-page .legal-topbar {
  display: flex;
  position: static;
}
.offline-page .legal-layout {
  width: min(920px, 100%);
  margin: clamp(34px, 8vh, 88px) auto 0;
}
.offline-page .offline-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border-color: rgba(83, 217, 255, 0.24);
  background:
    radial-gradient(circle at 92% 12%, rgba(83, 217, 255, 0.12), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(53, 255, 141, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(10, 17, 24, 0.99), rgba(7, 12, 18, 0.99));
}
.offline-page .offline-hero-main {
  display: grid;
  gap: 14px;
}
.offline-page .offline-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.offline-page .offline-product-logo {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(83, 217, 255, 0.32);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.offline-page .offline-state-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 191, 71, 0.28);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 191, 71, 0.07);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.offline-page .offline-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 191, 71, 0.48);
}
.offline-page .offline-hero .eyebrow {
  margin: 0;
  color: var(--cyan);
}
.offline-page .offline-hero h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}
.offline-page .offline-hero .hero-line {
  max-width: 66ch;
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.7;
}
.offline-page .legal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.offline-page .legal-hero-actions .btn {
  display: inline-flex;
  min-width: 132px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
}
.offline-page .offline-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  max-width: 920px;
  padding: 22px 24px;
  border-color: rgba(103, 232, 249, 0.14);
}
.offline-page .offline-next-icon {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(83, 217, 255, 0.08);
}
.offline-page .offline-next-copy {
  min-width: 0;
}
.offline-page .offline-panel .legal-eyebrow {
  margin-bottom: 6px;
}
.offline-page .offline-panel h2 {
  margin-bottom: 6px;
}
.offline-page .offline-panel p {
  margin: 0;
}
.offline-page .offline-footer {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  margin: 18px auto 0;
  padding: 2px 4px calc(10px + var(--safe-bottom));
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.offline-page .offline-footer > span {
  white-space: nowrap;
}
.offline-page .offline-footer .compliance-links {
  justify-content: center;
}
html[data-theme="light"] .offline-page .offline-hero {
  border-color: rgba(8, 119, 166, 0.2);
  background:
    radial-gradient(circle at 92% 12%, rgba(83, 217, 255, 0.13), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(53, 255, 141, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 252, 0.99));
}

@media (max-width: 720px) {
  .legal-shell { width: min(100% - 20px, 980px); padding-top: 18px; }
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-topbar { align-items: flex-start; }
  .legal-doc-nav { justify-content: flex-start; width: 100%; }
  .legal-document-frame { padding: 18px; }
  .legal-document-head { align-items: flex-start; flex-direction: column; }
  .legal-panel { padding: 4px 0 0; }
  .offline-page .legal-topbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }
  .offline-page .legal-brand {
    width: auto;
    overflow: visible;
  }
  .offline-page .legal-brand .brand-copy span {
    display: block;
  }
  .offline-page .legal-doc-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .offline-page .legal-doc-nav a {
    justify-content: center;
    text-align: center;
  }
  .offline-page .legal-doc-nav .legal-back {
    grid-column: 1 / -1;
  }
  .offline-page .legal-layout {
    margin-top: 22px;
  }
  .offline-page .offline-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding: 22px 18px;
  }
  .offline-page .offline-product-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .offline-page .legal-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .offline-page .legal-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .offline-page .offline-panel {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }
  .offline-page .offline-footer {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-inline: 2px;
  }
  .offline-page .offline-footer .compliance-links {
    flex-wrap: wrap;
  }
}
/* source: /web/modules/hero.css */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; width: 100%; min-width: 0; max-width: 100%; padding: 16px 18px 24px; align-items: start; }
.hero-main { min-width: 0; }
.hero h1 { margin: 0 0 14px; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.hero-line { margin: -4px 0 0; min-width: 0; max-width: min(78ch, 100%); color: var(--muted); font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; margin-bottom: 0; }
.hero-stat { padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 14px; background: linear-gradient(180deg, rgba(11, 19, 28, 0.96), rgba(8, 14, 20, 0.96)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02); min-width: 0; }
.hero-stat-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-stat-value { display: block; color: var(--white); font-size: 14px; line-height: 1.5; word-break: break-word; }
.hero-stat-note { display: block; margin-top: 7px; color: rgba(148, 177, 191, 0.92); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.hero-skeleton { display: grid; gap: 10px; margin-top: 12px; }

html[data-theme="light"] .hero-stat { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }
html[data-theme="light"] .hero-stat-value { color: var(--text); }
html[data-theme="light"] .hero-stat-note { color: var(--muted); }

@media (max-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero { padding: 14px 18px 18px; }
  .hero h1 { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 12px 14px; }
}
/* source: /web/modules/account-menu.css */
.account-menu-shell { position: relative; margin-left: auto; display: flex; justify-content: flex-end; }
.account-menu-button { -webkit-appearance: none; appearance: none; width: 56px; height: 56px; padding: 0; border: 1px solid rgba(83, 217, 255, 0.24); border-radius: 999px; background: linear-gradient(145deg, rgba(11, 20, 29, 0.98), rgba(8, 14, 20, 0.94)); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24); cursor: pointer; overflow: visible; }
.account-menu-avatar-frame,
.account-menu-avatar-fallback,
.account-menu-avatar-image { width: 100%; height: 100%; border-radius: inherit; }
.account-menu-avatar-frame { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.account-menu-avatar-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; background: linear-gradient(145deg, rgba(10, 24, 32, 0.98), rgba(8, 14, 20, 0.94)); transform: translateZ(0); }
.account-menu-avatar-fallback { display: grid; place-items: center; background: radial-gradient(circle at top left, rgba(83, 217, 255, 0.16), transparent 36%), linear-gradient(145deg, rgba(10, 24, 32, 0.98), rgba(8, 14, 20, 0.94)); }
.account-menu-avatar-fallback[data-avatar-choice="initial"] { background: radial-gradient(circle at top left, rgba(127, 232, 255, 0.2), transparent 38%), linear-gradient(145deg, rgba(15, 72, 98, 0.98), rgba(10, 30, 44, 0.94)); }
.account-menu-avatar-text { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; color: var(--white); }
.account-menu-avatar-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: rgba(238, 251, 255, 0.92); }
.account-menu-avatar-icon svg { width: 100%; height: 100%; }
.account-menu-shell.is-login-pending .account-menu-button { border-color: rgba(83, 217, 255, 0.9); box-shadow: 0 0 0 4px rgba(83, 217, 255, 0.14), 0 16px 34px rgba(0, 0, 0, 0.3); cursor: progress; }
.account-menu-shell.is-login-pending .account-menu-avatar-frame { overflow: visible; }
.account-menu-shell.is-login-pending .account-menu-avatar-frame::before { content: ""; position: absolute; inset: -5px; border-radius: inherit; background: conic-gradient(from 0deg, rgba(83, 217, 255, 0), rgba(83, 217, 255, 0.98), rgba(127, 232, 255, 0.24), rgba(83, 217, 255, 0)); filter: drop-shadow(0 0 10px rgba(83, 217, 255, 0.42)); animation: account-login-ring-spin 0.85s linear infinite; z-index: -1; }
@keyframes account-login-ring-spin { to { transform: rotate(360deg); } }
.account-menu-shell.is-authenticated .account-menu-button { border-color: rgba(83, 217, 255, 0.86); box-shadow: 0 0 0 3px rgba(83, 217, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.28); }
.account-menu-shell.is-authenticated .account-menu-avatar-frame { overflow: visible; }
.account-menu-shell.is-authenticated .account-menu-avatar-frame::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(83, 217, 255, 0.9); box-shadow: 0 0 14px rgba(83, 217, 255, 0.36); pointer-events: none; z-index: 2; }
.account-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: max-content; min-width: min(218px, calc(100vw - 24px)); max-width: min(320px, calc(100vw - 24px)); border: 1px solid rgba(83, 217, 255, 0.18); border-radius: 20px; background: radial-gradient(circle at top left, rgba(83, 217, 255, 0.12), transparent 36%), linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(8, 14, 20, 0.98)); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34); overflow: visible; z-index: 35; }
.account-menu-header { display: grid; gap: 3px; padding: 16px 16px 14px; }
.account-menu-header.is-hidden { display: none; }
.account-guest-badge { position: absolute; right: 50%; bottom: -7px; transform: translateX(50%); min-width: max-content; max-width: 96px; padding: 2px 7px; border: 1px solid rgba(83, 217, 255, 0.28); border-radius: 999px; background: rgba(8, 14, 20, 0.96); color: var(--white); font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: 0.02em; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); z-index: 2; }
.account-menu-header strong { font-size: 15px; line-height: 1.25; letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-header span { color: var(--muted); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#accountMenuTier { color: rgba(216, 247, 255, 0.82); opacity: 1; font-size: 11px; letter-spacing: 0.03em; text-transform: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.account-menu-actions { display: grid; border-top: 1px solid rgba(83, 217, 255, 0.12); }
.account-menu-submenu { position: relative; }
.account-menu-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-top: 1px solid rgba(83, 217, 255, 0.1); background: transparent; color: var(--text); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left; }
.account-menu-actions > :first-child { border-top: 0; }
.account-menu-item-label { justify-self: start; text-align: left; }
.account-menu-item-icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--white); }
.account-menu-item-icon svg { width: 100%; height: 100%; }
.account-menu-item-chevron { color: var(--muted); font-size: 20px; line-height: 1; }
.account-submenu-panel { position: absolute; top: -6px; right: calc(100% - 4px); display: grid; gap: 8px; width: 152px; min-width: 152px; padding: 10px; border: 1px solid rgba(83, 217, 255, 0.18); border-radius: 16px; background: radial-gradient(circle at top left, rgba(83, 217, 255, 0.1), transparent 40%), linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(8, 14, 20, 0.98)); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28); z-index: 4; }
.account-menu-submenu.is-open .account-submenu-panel,
.account-menu-submenu:hover .account-submenu-panel,
.account-menu-submenu:focus-within .account-submenu-panel { display: grid; }
.account-language-panel .lang-btn,
.account-theme-panel .theme-btn { min-width: 0; width: 100%; justify-content: center; padding: 10px 12px; }
.account-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.account-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 12, 0.72); backdrop-filter: blur(8px); }
.account-modal-card { position: relative; width: min(820px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow: auto; }
.account-modal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#accountSettingsCloseButton {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-color: rgba(255, 132, 151, 0.58);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 111, 137, 0.24), rgba(124, 40, 64, 0.24));
  color: #ffd8df;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(107, 25, 49, 0.24);
}
#accountSettingsCloseButton:hover,
#accountSettingsCloseButton:focus-visible {
  border-color: rgba(255, 164, 179, 0.9);
  background: linear-gradient(145deg, rgba(255, 123, 148, 0.38), rgba(144, 45, 73, 0.34));
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 111, 137, 0.14), 0 8px 22px rgba(107, 25, 49, 0.3);
  outline: none;
}
.account-menu-shell.is-guest .account-menu-avatar-frame { background: radial-gradient(circle at 50% 35%, rgba(216, 247, 255, 0.18), transparent 24%), #07121b; }
.account-menu-shell.is-guest #accountMenuButton:hover .account-menu-avatar-frame,
.account-menu-shell.is-guest #accountMenuButton:focus-visible .account-menu-avatar-frame { border-color: rgba(83, 217, 255, 0.72); box-shadow: 0 0 0 4px rgba(83, 217, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.28); }

html[data-theme="light"] .account-menu-item { background: rgba(255, 255, 255, 0.92); color: var(--text); border-color: var(--border); }
html[data-theme="light"] .account-menu-panel,
html[data-theme="light"] .account-submenu-panel,
html[data-theme="light"] .account-menu-button,
html[data-theme="light"] .account-modal-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.98)); border-color: rgba(108, 146, 173, 0.22); box-shadow: 0 16px 38px rgba(101, 131, 154, 0.16); }
html[data-theme="light"] .account-menu-button { background: linear-gradient(145deg, #ffffff, #eef5fb); border-color: rgba(108, 146, 173, 0.3); box-shadow: 0 10px 24px rgba(101, 131, 154, 0.16); }
html[data-theme="light"] .account-menu-avatar-image { background: linear-gradient(145deg, #ffffff, #eef5fb); }
html[data-theme="light"] .account-menu-avatar-fallback { background: radial-gradient(circle at top left, rgba(15, 127, 168, 0.12), transparent 36%), linear-gradient(145deg, #ffffff, #eef5fb); }
html[data-theme="light"] .account-menu-avatar-fallback[data-avatar-choice="initial"] { background: radial-gradient(circle at top left, rgba(15, 127, 168, 0.16), transparent 38%), linear-gradient(145deg, #ffffff, #e7f0f8); }
html[data-theme="light"] .account-menu-avatar-icon { color: #163244; }
html[data-theme="light"] .account-guest-badge { background: rgba(255, 255, 255, 0.98); border-color: rgba(108, 146, 173, 0.3); color: #163244; box-shadow: 0 8px 18px rgba(101, 131, 154, 0.16); }
html[data-theme="light"] .account-menu-shell.is-login-pending .account-menu-button { border-color: rgba(15, 127, 168, 0.74); box-shadow: 0 0 0 4px rgba(15, 127, 168, 0.12), 0 14px 28px rgba(101, 131, 154, 0.18); }
html[data-theme="light"] .account-menu-shell.is-login-pending .account-menu-avatar-frame::before { background: conic-gradient(from 0deg, rgba(15, 127, 168, 0), rgba(15, 127, 168, 0.92), rgba(83, 217, 255, 0.22), rgba(15, 127, 168, 0)); filter: drop-shadow(0 0 8px rgba(15, 127, 168, 0.28)); }
html[data-theme="light"] .account-menu-shell.is-authenticated .account-menu-button { border-color: rgba(15, 127, 168, 0.72); box-shadow: 0 0 0 3px rgba(15, 127, 168, 0.12), 0 14px 28px rgba(101, 131, 154, 0.18); }
html[data-theme="light"] .account-menu-shell.is-authenticated .account-menu-avatar-frame::after { border-color: rgba(15, 127, 168, 0.78); box-shadow: 0 0 12px rgba(15, 127, 168, 0.24); }
html[data-theme="light"] .account-menu-avatar-text,
html[data-theme="light"] .account-menu-item-icon,
html[data-theme="light"] #accountMenuTier { color: var(--text); }
html[data-theme="light"] #accountSettingsCloseButton {
  border-color: rgba(179, 67, 89, 0.4);
  background: linear-gradient(145deg, #fff3f5, #fbdde3);
  color: #9f354b;
  box-shadow: 0 6px 16px rgba(149, 55, 76, 0.14);
}
html[data-theme="light"] #accountSettingsCloseButton:hover,
html[data-theme="light"] #accountSettingsCloseButton:focus-visible {
  border-color: rgba(164, 48, 72, 0.68);
  background: linear-gradient(145deg, #ffe8ed, #f8cad4);
  color: #7f2438;
  box-shadow: 0 0 0 3px rgba(179, 67, 89, 0.1), 0 8px 20px rgba(149, 55, 76, 0.18);
}
html[data-theme="light"] .account-menu-shell.is-guest .account-menu-avatar-frame { background: radial-gradient(circle at 50% 35%, rgba(15, 127, 168, 0.12), transparent 24%), #ffffff; color: #163244; }
html[data-theme="light"] .account-menu-shell.is-guest #accountMenuButton:hover .account-menu-avatar-frame,
html[data-theme="light"] .account-menu-shell.is-guest #accountMenuButton:focus-visible .account-menu-avatar-frame { border-color: rgba(15, 127, 168, 0.58); box-shadow: 0 0 0 4px rgba(15, 127, 168, 0.1), 0 14px 28px rgba(101, 131, 154, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .account-menu-shell.is-login-pending .account-menu-avatar-frame::before { animation: none; }
}

@media (max-width: 760px) {
  .account-menu-shell { grid-column: 3; grid-row: 1; margin-left: 0; align-self: center; justify-self: stretch; width: 100%; height: 44px; }
  .account-menu-button { display: block; width: 44px; height: 44px; margin-inline: auto; transform: translateX(10px); }
  .account-guest-badge { right: 50%; transform: translateX(50%); width: max-content; min-width: 0; max-width: min(96px, calc(100vw - 18px)); font-size: 9px; }
  .account-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: max-content; min-width: min(198px, calc(100vw - 18px)); max-width: min(320px, calc(100vw - 18px)); max-height: calc(100dvh - 112px); overflow-y: auto; overflow-x: hidden; border-radius: 18px; }
  .account-menu-header { padding: 14px 14px 12px; }
  .account-menu-header strong { font-size: 14px; }
  .account-menu-header span { font-size: 11px; }
  #accountMenuTier { line-height: 1.35; }
  .account-menu-item { padding: 13px 14px; font-size: 13px; }
  .account-menu-submenu { position: static; }
  .account-submenu-panel { position: static; right: auto; top: auto; min-width: 0; margin: 0 14px 14px; box-shadow: none; }
  .account-language-panel .lang-btn,
  .account-theme-panel .theme-btn { min-width: 0; }
}

@media (max-width: 389px) {
  .account-guest-badge { max-width: min(82px, calc(100vw - 18px)); font-size: 8px; }
}

@media (max-width: 339px) {
  .account-guest-badge { max-width: min(70px, calc(100vw - 18px)); padding-inline: 3px; font-size: 7px; }
}
/* source: /web/modules/chart.css */
.chart-frame { padding: 18px; }
.chart-shell { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: stretch; }
.lw-chart { width: 100%; min-height: 360px; border: 1px solid var(--border); border-radius: 14px; background: #071018; overflow: hidden; }
.chart-attribution { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 11px; text-decoration: none; }
.chart-attribution:hover { color: var(--accent); }
.chart-side { display: grid; gap: 10px; }
.chart-side div { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(6, 11, 16, 0.95); }
.chart-side span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.chart-side strong { display: block; color: var(--white); font-size: 16px; overflow-wrap: anywhere; }
.chart-legend { display: grid; gap: 10px; }
.chart-legend-head { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(6, 11, 16, 0.95); }
.chart-legend-head strong { display: block; color: var(--white); font-size: 14px; margin-bottom: 6px; }
.chart-legend-head span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.chart-legend-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(6, 11, 16, 0.95); }
.chart-legend-key { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chart-legend-key strong { color: var(--white); font-size: 13px; }
.chart-legend-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.chart-legend-swatches { display: inline-flex; align-items: center; gap: 6px; min-width: 38px; }
.chart-legend-swatch { width: 16px; height: 4px; border-radius: 999px; display: inline-block; }
.chart-legend-swatch-price { background: #53d9ff; }
.chart-legend-swatch-baseline { background: #ffbf47; }
.chart-legend-swatch-support { background: #35ff8d; }
.chart-legend-swatch-resistance { background: #ffbf47; }
.chart-legend-swatch-stop { background: #ff5c7a; }
.chart-legend-swatch-take { background: #53d9ff; }

html[data-theme="light"] .lw-chart { background: #fbfdff; }
html[data-theme="light"] .chart-legend-head { background: var(--warm-panel); border-color: var(--warm-border); }
html[data-theme="light"] .chart-side strong,
html[data-theme="light"] .chart-legend-head strong,
html[data-theme="light"] .chart-legend-key strong { color: var(--text); }
html[data-theme="light"] .chart-side div,
html[data-theme="light"] .chart-legend-item { background: rgba(255, 255, 255, 0.94); }
html[data-theme="light"] .chart-legend-key strong { color: var(--warm-accent); }
html[data-theme="light"] .chart-legend-head span,
html[data-theme="light"] .chart-legend-item p { color: var(--muted); }

@media (max-width: 760px) {
  .chart-frame { padding: 8px; }
  .chart-shell { grid-template-columns: 1fr; }
  .lw-chart { min-height: 300px; border-radius: 10px; }
}
/* source: /web/modules/signals.css */
.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.signal-card { padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); }
.signal-card.buy { background: linear-gradient(180deg, rgba(10, 41, 28, 0.96), rgba(8, 19, 15, 0.96)); }
.signal-card.sell { background: linear-gradient(180deg, rgba(46, 15, 22, 0.96), rgba(17, 8, 11, 0.96)); }
.signal-card.wait { background: linear-gradient(180deg, rgba(44, 35, 15, 0.96), rgba(16, 12, 7, 0.96)); }
.signal-card .label { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.signal-card .value { font-size: 32px; font-weight: 700; margin-bottom: 10px; overflow-wrap: anywhere; }
.signal-card .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--white); font-size: 14px; }
.signal-card .note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.signal-summary-wrap { grid-template-columns: 1fr; }
.buy-text { color: var(--green); }
.sell-text { color: var(--red); }
.wait-text { color: var(--amber); }

html[data-theme="light"] .signal-card { border-color: rgba(108, 146, 173, 0.22); box-shadow: 0 12px 30px rgba(101, 131, 154, 0.08); }
html[data-theme="light"] .signal-card.buy { background: #eefaf3; }
html[data-theme="light"] .signal-card.sell { background: #fff1f5; }
html[data-theme="light"] .signal-card.wait { background: #fff7e2; }
html[data-theme="light"] .signal-card .meta,
html[data-theme="light"] .signal-card .value { color: var(--text); }
html[data-theme="light"] .signal-card .note { color: var(--muted); }

@media (max-width: 1200px) {
  .signal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .signal-grid { grid-template-columns: 1fr; }
}
/* source: /web/modules/loading.css */
.loading-grid { display: grid; }
.loading-panel { overflow: hidden; }
.loading-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr); gap: 16px; padding: 18px; }
.loading-stack,
.loading-side { display: grid; gap: 14px; }
.loading-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.skeleton { position: relative; overflow: hidden; display: block; border-radius: 12px; background: linear-gradient(90deg, rgba(14, 23, 31, 0.95), rgba(20, 33, 42, 0.98), rgba(14, 23, 31, 0.95)); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(83, 217, 255, 0.14), transparent); animation: skeleton-shimmer 1.25s ease-in-out infinite; }
.skeleton-line { height: 14px; }
.skeleton-line-lg { width: min(520px, 88%); height: 18px; }
.skeleton-line-md { width: 56%; }
.skeleton-line-sm { width: 68%; }
.skeleton-block { min-height: 72px; }
.skeleton-chart { min-height: 320px; }
.skeleton-bar { min-height: 46px; }
.skeleton-chip { min-height: 58px; }

html[data-theme="light"] .loading-panel .skeleton { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

@media (max-width: 1200px) {
  .loading-body { grid-template-columns: 1fr; }
}

html[data-theme="light"] .skeleton { background: linear-gradient(90deg, rgba(231, 239, 246, 0.95), rgba(245, 249, 252, 0.98), rgba(231, 239, 246, 0.95)); }
html[data-theme="light"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(108, 146, 173, 0.16), transparent); }

@media (max-width: 760px) {
  .loading-metrics { grid-template-columns: 1fr; }
}
/* source: /web/modules/dashboard-cards.css */
.timeframe-stack { display: grid; gap: 14px; width: 100%; min-width: 0; max-width: 100%; padding: 18px; }
.tf-card { min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-2); padding: 14px; }
.tf-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tf-title { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.tf-title strong { font-size: 22px; min-width: 3.5ch; }
.tf-title span { font-size: 14px; }
.tf-note { color: var(--muted); font-size: 12px; text-align: right; }
.rail-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) 280px; gap: 14px; min-width: 0; max-width: 100%; align-items: start; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; max-width: 100%; }
.price-grid .resistance-level { grid-column: 1; }
.price-grid .support-level { grid-column: 2; }
.price-grid .level-weak { grid-row: 1; }
.price-grid .level-mid { grid-row: 2; }
.price-grid .level-strong { grid-row: 3; }
.support-resistance-explainer { border: 1px solid rgba(41, 214, 255, 0.2); border-radius: 16px; background: rgba(6, 16, 24, 0.82); padding: 14px 16px; min-height: 100%; color: var(--muted); }
.support-resistance-explainer strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 10px; }
.support-resistance-explainer ul { display: grid; gap: 10px; margin: 0; padding-left: 18px; }
.support-resistance-explainer li { line-height: 1.55; font-size: 12px; }
.metric { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: rgba(6, 11, 16, 0.95); }
.metric .k { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.metric .v { font-size: 16px; color: var(--white); overflow-wrap: anywhere; }
.factor-bars,
.status-list,
.history-list { display: grid; gap: 12px; padding: 18px; }
.factor-bars,
.status-list { min-width: 0; max-width: 100%; }
.factor-row { display: grid; gap: 6px; }
.factor-subscribe-card { appearance: none; border: 1px solid rgba(41, 214, 255, 0.32); border-radius: 20px; background: rgba(8, 20, 30, 0.82); color: var(--text); cursor: pointer; display: grid; gap: 8px; padding: 18px; text-align: left; transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease; }
.factor-subscribe-card:hover,
.factor-subscribe-card:focus-visible { border-color: rgba(41, 214, 255, 0.68); background: rgba(10, 35, 46, 0.92); transform: translateY(-1px); outline: none; }
.factor-subscribe-card span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.factor-subscribe-card strong { color: var(--accent); font-size: 15px; }
.factor-head { display: flex; justify-content: space-between; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; align-items: baseline; }
.factor-head span:first-child { min-width: 0; overflow-wrap: anywhere; }
.factor-head span:last-child { min-width: 6ch; text-align: right; font-variant-numeric: tabular-nums; }
.factor-track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 92, 122, 0.08), #09131b 44%, #09131b 56%, rgba(53, 255, 141, 0.08)); border: 1px solid var(--border); overflow: hidden; }
.factor-zero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(83, 217, 255, 0.42); }
.factor-bar { position: absolute; top: 1px; bottom: 1px; }
.factor-bar.positive { border-radius: 0 999px 999px 0; }
.factor-bar.negative { border-radius: 999px 0 0 999px; }
.status-item,
.history-item { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgba(7, 12, 18, 0.9); }
.status-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; min-width: 0; max-width: 100%; align-items: center; }
.status-item-wide { grid-template-columns: 1fr; }
.status-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.status-name strong { font-size: 13px; }
.status-name span { min-width: 0; max-width: 100%; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; word-break: break-word; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--border); }
.badge.ok { color: var(--green); }
.badge.warn,
.badge.degraded,
.badge.stale { color: var(--amber); }
.badge.bad,
.badge.fixed { color: var(--red); }
.badge.none { color: #9aa9b6; background: #020407; border-color: rgba(154, 169, 182, 0.38); }
.history-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; color: var(--muted); font-size: 11px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }

html[data-theme="light"] .metric,
html[data-theme="light"] .support-resistance-explainer,
html[data-theme="light"] .status-item,
html[data-theme="light"] .tf-card { background: rgba(255, 255, 255, 0.92); color: var(--text); border-color: var(--border); }
html[data-theme="light"] .metric .v,
html[data-theme="light"] .support-resistance-explainer strong { color: var(--text); }
html[data-theme="light"] .factor-subscribe-card { background: rgba(255, 255, 255, 0.94); border-color: rgba(108, 146, 173, 0.24); }
html[data-theme="light"] .factor-subscribe-card:hover,
html[data-theme="light"] .factor-subscribe-card:focus-visible { background: rgba(247, 251, 255, 0.98); border-color: rgba(24, 107, 209, 0.52); }
html[data-theme="light"] .status-item,
html[data-theme="light"] .history-item { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 252, 0.96)); border-color: rgba(108, 146, 173, 0.24); box-shadow: 0 10px 24px rgba(101, 131, 154, 0.1); }
html[data-theme="light"] .status-name strong,
html[data-theme="light"] .status-name span { color: var(--text); }
html[data-theme="light"] .status-name span { opacity: 0.72; }
html[data-theme="light"] .badge { background: rgba(255, 255, 255, 0.76); border-color: rgba(108, 146, 173, 0.34); }
html[data-theme="light"] .badge.none { color: #fff; background: #080b0f; border-color: #080b0f; }

@media (max-width: 1200px) {
  .rail-wrap { grid-template-columns: 1fr; }
  .support-resistance-explainer { min-height: auto; }
}

@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-grid .resistance-level,
  .price-grid .support-level { grid-column: auto; }
  .price-grid .level-weak,
  .price-grid .level-mid,
  .price-grid .level-strong { grid-row: auto; }
  .tf-card { padding: 12px; }
  .tf-top { flex-direction: column; }
  .tf-title { justify-content: space-between; width: 100%; }
  .tf-note { text-align: left; }
  .status-item { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
/* source: /web/modules/settings-forms.css */
.settings-grid { display: grid; }
.settings-panel { overflow: hidden; }
.settings-body { display: grid; gap: 18px; padding: 18px; }
.settings-block { display: grid; gap: 12px; border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: color-mix(in srgb, var(--panel) 86%, transparent); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.form-grid label.is-required > span::after { content: " *"; color: var(--amber); font-weight: 800; }
.quota-pill { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 7px 12px; border: 1px solid rgba(83, 217, 255, 0.16); border-radius: 999px; background: rgba(9, 18, 26, 0.88); color: var(--text); font-size: 12px; letter-spacing: 0.02em; }
.text-input { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: #081018; color: var(--text); padding: 10px 12px; font: inherit; min-width: 0; }
textarea.text-input { min-height: 86px; resize: vertical; line-height: 1.55; }
.text-input:required:invalid { border-color: rgba(255, 191, 71, 0.46); }
.required-hint { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.auth-summary { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.auth-provider-shell { display: grid; gap: 12px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid var(--member-surface-border); border-radius: 16px; background-color: var(--member-surface-solid); background-image: linear-gradient(180deg, var(--member-surface-solid-alt), var(--member-surface-solid)); box-shadow: var(--member-surface-inset); }
.auth-provider-shell .auth-summary { margin: 0; }
.auth-portal-card { display: grid; gap: 18px; padding: 22px 24px; margin-bottom: 14px; border: 1px solid var(--member-surface-border); border-radius: 20px; background-color: var(--member-surface-solid); background-image: radial-gradient(circle at top left, rgba(83, 217, 255, 0.08), transparent 42%), linear-gradient(180deg, var(--member-surface-solid-alt), var(--member-surface-solid)); box-shadow: var(--member-surface-inset), var(--member-surface-shadow); }
.auth-portal-head { display: grid; gap: 0; }
.auth-portal-actions { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-portal-provider { min-height: 64px; font-size: 18px; justify-content: center; display: inline-flex; align-items: center; gap: 12px; }
.auth-portal-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.auth-portal-icon svg { width: 100%; height: 100%; }
.field-count { justify-self: end; color: var(--muted); font-size: 11px; line-height: 1; }
.auth-feedback { color: var(--muted); font-size: 13px; line-height: 1.5; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.auth-feedback.is-ai-analyzing { color: #fbbf24; font-weight: 700; animation: ai-diagnosis-analyzing-pulse 1.1s ease-in-out infinite; }
@keyframes ai-diagnosis-analyzing-pulse { 0%, 100% { opacity: 0.42; } 50% { opacity: 1; } }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.compact-filter-grid { width: fit-content; max-width: 100%; align-items: end; grid-template-columns: repeat(2, minmax(156px, 180px)) repeat(2, minmax(132px, 180px)) auto; }
.compact-filter-grid .text-input,
.compact-filter-actions,
.compact-filter-actions .btn { height: 38px; min-height: 38px; }
.compact-filter-grid .text-input { padding: 7px 10px; }
.compact-filter-actions { font-size: 12px; white-space: nowrap; }
.compact-filter-actions .btn { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
.data-list { display: grid; gap: 10px; }
.data-card { display: grid; gap: 7px; padding: 14px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 14px; background: rgba(8, 14, 20, 0.82); }
.data-card--notice { border-color: rgba(88, 217, 178, 0.28); background: rgba(11, 34, 32, 0.72); }
.data-card strong { color: var(--white); }
.data-card a { color: var(--accent); }
.data-card span,
.data-card p { margin: 0; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.settings-label { margin: 0; color: var(--white); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

html[data-theme="light"] .text-input,
html[data-theme="light"] .data-card { background: rgba(255, 255, 255, 0.92); color: var(--text); border-color: var(--border); }
html[data-theme="light"] .settings-block,
html[data-theme="light"] .quota-pill,
html[data-theme="light"] .data-card { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }
html[data-theme="light"] .settings-label { color: var(--text); }
html[data-theme="light"] .settings-block p,
html[data-theme="light"] .data-card span,
html[data-theme="light"] .data-card p { color: var(--muted); }
html[data-theme="light"] .data-card--notice { border-color: rgba(99, 180, 143, 0.28); background: #ecfaf3; }
html[data-theme="light"] .auth-portal-card { background-color: #ffffff; background-image: radial-gradient(circle at top left, rgba(15, 127, 168, 0.1), transparent 42%), linear-gradient(180deg, #ffffff, #f1f7fc); border-color: rgba(108, 146, 173, 0.24); box-shadow: 0 16px 38px rgba(101, 131, 154, 0.14); }
html[data-theme="light"] .auth-portal-provider.btn-secondary { background: #ffffff; color: #163244; border-color: rgba(108, 146, 173, 0.28); }
html[data-theme="light"] .auth-portal-provider.btn-primary { background: linear-gradient(135deg, #0f7fa8, #13a7c7); color: #ffffff; border-color: rgba(15, 127, 168, 0.55); }

@media (max-width: 780px) {
  .auth-portal-actions { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .quota-pill { width: 100%; justify-content: center; }
}
/* source: /web/modules/assistant.css */
.assistant-widget-root {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  font-family: inherit;
}

.assistant-widget-root.is-hidden,
.share-widget-root.is-hidden {
  display: none;
}

.assistant-fab,
.share-fab {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(83, 217, 255, 0.55);
  background: linear-gradient(145deg, rgba(9, 42, 54, 0.96), rgba(3, 16, 26, 0.96));
  color: #e9fbff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  cursor: pointer;
  font-size: 25px;
}

.assistant-panel,
.share-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto auto;
  width: min(380px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 120px));
  border: 1px solid rgba(83, 217, 255, 0.32);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(4, 12, 18, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
  color: var(--text);
}

.assistant-panel.is-hidden,
.share-panel.is-hidden {
  display: none;
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(83, 217, 255, 0.18);
  background: rgba(8, 35, 45, 0.86);
}

.assistant-header strong {
  display: block;
  font-size: 16px;
}

.assistant-header p,
.assistant-boundary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.assistant-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(139, 167, 188, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-size: 20px;
}

.assistant-messages {
  display: flex;
  min-height: 150px;
  max-height: 280px;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.assistant-message {
  max-width: 88%;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.assistant-message-bot {
  align-self: flex-start;
  border: 1px solid rgba(83, 217, 255, 0.18);
  background: rgba(83, 217, 255, 0.08);
}

.assistant-message-user {
  align-self: flex-end;
  background: rgba(255, 195, 74, 0.16);
  border: 1px solid rgba(255, 195, 74, 0.32);
}

.assistant-faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.assistant-faq-chip {
  border: 1px solid rgba(83, 217, 255, 0.28);
  border-radius: 999px;
  background: rgba(83, 217, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  padding: 7px 10px;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 16px 12px;
}

.assistant-input,
.assistant-send {
  border-radius: 14px;
  min-height: 42px;
}

.assistant-input {
  border: 1px solid rgba(139, 167, 188, 0.28);
  background: rgba(2, 10, 16, 0.92);
  color: var(--text);
  padding: 0 12px;
}

.assistant-send {
  border: 1px solid rgba(83, 217, 255, 0.42);
  background: rgba(11, 75, 88, 0.72);
  color: #e9fbff;
  cursor: pointer;
  padding: 0 14px;
}

.assistant-boundary {
  padding: 0 16px 16px;
}

.settings-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(139, 167, 188, 0.28);
  border: 1px solid rgba(139, 167, 188, 0.32);
  transition: background 0.18s ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e9fbff;
  transition: transform 0.18s ease;
}

.switch-control input:checked + .switch-track {
  background: rgba(35, 197, 122, 0.42);
  border-color: rgba(35, 197, 122, 0.58);
}

.switch-control input:checked + .switch-track .switch-thumb {
  transform: translateX(26px);
}

.switch-control input:disabled + .switch-track {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch-control input:disabled + .switch-track .switch-thumb {
  opacity: 0.75;
}

[data-theme="light"] .assistant-fab {
  background: linear-gradient(145deg, #ffffff, #dff0fb);
  color: #0b2638;
  border-color: rgba(30, 112, 148, 0.28);
  box-shadow: 0 18px 42px rgba(45, 83, 110, 0.20);
}

[data-theme="light"] .assistant-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(84, 123, 151, 0.24);
  box-shadow: 0 24px 60px rgba(75, 112, 140, 0.22);
}

[data-theme="light"] .assistant-header {
  background: rgba(231, 243, 251, 0.92);
}

[data-theme="light"] .assistant-input {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 640px) {
  .assistant-widget-root {
    right: 14px;
    bottom: 14px;
  }
  .assistant-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }

  .ai-diagnosis-subtabs {
    width: 100%;
    gap: 6px;
    padding: 5px;
  }

  .ai-diagnosis-subtab {
    min-height: 44px;
    min-width: 0;
    padding: 8px 6px;
    letter-spacing: 0;
    white-space: normal;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }
}

/* Keep floating widgets above the sticky header while product modals remain higher. */
.assistant-widget-root {
  z-index: 90;
}

.switch-track,
.switch-thumb {
  pointer-events: none;
}
/* source: /web/modules/share-widget.css */
.share-widget-root {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 76px);
  z-index: 79;
  font-family: inherit;
}
.share-fab {
  border-color: rgba(255, 195, 74, 0.58);
  background: linear-gradient(145deg, rgba(76, 53, 6, 0.96), rgba(22, 15, 3, 0.96));
}
.share-panel {
  grid-template-rows: auto auto auto auto;
  width: min(340px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 120px));
  border-color: rgba(255, 195, 74, 0.32);
}
.share-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 195, 74, 0.18);
  background: rgba(43, 32, 10, 0.86);
}
.share-panel-copy,
.share-feedback {
  margin: 0;
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.share-feedback {
  min-height: 34px;
  padding-bottom: 12px;
  color: var(--accent);
}
.share-platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 0;
}
.share-platform-btn {
  border: 1px solid rgba(255, 195, 74, 0.28);
  border-radius: 14px;
  background: rgba(255, 195, 74, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  padding: 9px 10px;
  text-align: center;
}
.share-widget-root {
  z-index: 89;
}
[data-theme="light"] .share-fab {
  background: linear-gradient(145deg, #fff8e3, #f6d77b);
  color: #3a2a08;
  border-color: rgba(185, 128, 24, 0.32);
  box-shadow: 0 18px 42px rgba(120, 84, 20, 0.18);
}
[data-theme="light"] .share-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(185, 128, 24, 0.24);
  box-shadow: 0 24px 60px rgba(120, 84, 20, 0.18);
}
[data-theme="light"] .share-panel-head {
  background: rgba(255, 248, 226, 0.94);
}
@media (max-width: 640px) {
  .share-widget-root {
    right: 14px;
    bottom: 86px;
  }
}
/* source: /web/modules/markets.css */
.markets-workspace {
  display: grid;
  gap: 18px;
}

.markets-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.markets-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
  text-align: right;
}

.markets-table-wrap {
  overflow-x: auto;
}

.markets-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 980px;
  width: 100%;
}

.markets-table th {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .05em;
  padding: 0 14px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.markets-table td {
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding: 16px 14px;
  white-space: nowrap;
}

.markets-table td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 16px 0 0 16px;
}

.markets-table td:last-child {
  border-radius: 0 16px 16px 0;
  border-right: 1px solid var(--border);
}

.market-row {
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.market-row--sortable {
  cursor: grab;
}

.market-row--sortable:active {
  cursor: grabbing;
}

.market-row--dragging {
  opacity: .55;
  filter: brightness(1.18);
}

.market-row--drag-before td {
  border-top-color: var(--accent, #22d3ee) !important;
  box-shadow: inset 0 3px 0 rgba(34, 211, 238, .65);
}

.market-row--drag-after td {
  border-bottom-color: var(--accent, #22d3ee) !important;
  box-shadow: inset 0 -3px 0 rgba(34, 211, 238, .65);
}

.market-drag-handle {
  display: inline-flex !important;
  width: 1.15rem;
  margin-right: .35rem;
  color: var(--muted);
  vertical-align: middle;
}


.market-row:hover,
.market-row:focus-visible {
  filter: brightness(1.12);
  outline: none;
  transform: translateY(-1px);
}

.market-pair-cell {
  min-width: 170px;
}

.market-pair-cell strong,
.market-pair-cell span {
  display: block;
}

.market-pair-cell span {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 3px;
}

.market-change--up {
  color: var(--success, #36d399) !important;
}

.market-change--down {
  color: var(--danger, #fb7185) !important;
}

.market-change--flat {
  color: var(--muted) !important;
}

.markets-skeleton {
  display: grid;
  gap: 10px;
}

.markets-skeleton.is-hidden {
  display: none;
}

@media (max-width: 820px) {
  .markets-header {
    flex-direction: column;
  }

  .markets-actions {
    align-items: stretch;
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .markets-table {
    min-width: 860px;
  }
}
/* source: /web/modules/ai-diagnosis.css */
.ai-insight-shell {
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
}

.ai-insight-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}


.ai-diagnosis-work-shell {
  display: grid;
  gap: 14px;
}

.ai-insight-locked {
  display: grid;
  gap: 10px;
  padding: 18px;
  font-size: 12px;
  line-height: 1.6;
}

.ai-insight-locked p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.ai-insight-locked strong {
  font-size: 15px;
}

.ai-insight-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.ai-insight-form,
.ai-insight-output {
  display: grid;
  gap: 12px;
}

.ai-insight-form .button-row {
  margin-top: 2px;
}

.ai-insight-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ai-quota-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  overflow: visible;
}

.ai-quota-card .quota-pill,
.ai-quota-card .ai-insight-intro {
  margin: 0;
}

.ai-quota-card .ai-insight-intro {
  flex: 1 1 360px;
}


.ai-diagnosis-result {
  display: grid;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
}

.ai-diagnosis-generated-at {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-diagnosis-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.ai-diagnosis-value {
  font-size: 22px;
  line-height: 1.2;
}

.ai-diagnosis-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(83, 217, 255, 0.16);
  background: rgba(9, 18, 26, 0.88);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
}


.ai-diagnosis-head .ai-diagnosis-badge {
  animation: ai-diagnosis-suggestion-pulse 1.45s ease-in-out infinite;
}

@keyframes ai-diagnosis-suggestion-pulse {
  0%, 100% { transform: scale(1); filter: brightness(0.96); }
  50% { transform: scale(1.035); filter: brightness(1.22); }
}

.ai-diagnosis-badge.is-positive {
  border-color: rgba(126, 225, 168, 0.35);
  background: rgba(18, 67, 46, 0.24);
  color: #9cf0bf;
}

.ai-diagnosis-badge.is-negative {
  border-color: rgba(255, 106, 139, 0.3);
  background: rgba(100, 26, 42, 0.24);
  color: #ff92ab;
}

.ai-diagnosis-badge.is-caution {
  border-color: rgba(255, 209, 102, 0.32);
  background: rgba(94, 67, 12, 0.2);
  color: #ffd166;
}

.ai-diagnosis-summary {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.ai-diagnosis-risk-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.ai-diagnosis-risk-card:empty,
.ai-diagnosis-risk-list:empty {
  display: none;
}

.ai-diagnosis-disclaimer {
  padding: 12px 14px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.05);
}

[data-theme="light"] .ai-diagnosis-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(90, 116, 139, 0.18);
  color: var(--ink-strong);
}

[data-theme="light"]
.ai-diagnosis-head .ai-diagnosis-badge {
  animation: ai-diagnosis-suggestion-pulse 1.45s ease-in-out infinite;
}

@keyframes ai-diagnosis-suggestion-pulse {
  0%, 100% { transform: scale(1); filter: brightness(0.96); }
  50% { transform: scale(1.035); filter: brightness(1.22); }
}

.ai-diagnosis-badge.is-positive {
  background: rgba(230, 248, 236, 0.96);
  color: #1f7f4b;
}

[data-theme="light"] .ai-diagnosis-badge.is-negative {
  background: rgba(255, 235, 240, 0.96);
  color: #b13d5f;
}

[data-theme="light"] .ai-diagnosis-badge.is-caution {
  background: rgba(255, 248, 221, 0.96);
  color: #9f7a06;
}

.ai-credit-details { position: relative; display: inline-grid; overflow: visible; }
.ai-credit-details > summary { cursor: pointer; color: var(--cyan); font-size: 12px; list-style: none; outline-offset: 4px; }
.ai-credit-details > summary::-webkit-details-marker { display: none; }
.ai-credit-detail-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: max-content;
  min-width: 168px;
  max-width: min(216px, calc(100vw - 32px));
  display: none;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--member-surface-border);
  border-radius: 14px;
  background: var(--member-surface-solid);
  box-shadow: var(--member-surface-shadow);
  font-size: 12px;
  line-height: 1.45;
}
.ai-credit-details[open] .ai-credit-detail-panel { display: grid; }
.ai-credit-detail-group + .ai-credit-detail-group { padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.06); }
.ai-credit-detail-total,
.ai-credit-detail-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(3ch, max-content); gap: 4px 10px; align-items: center; font-size: 12px; line-height: 1.45; }
.ai-credit-detail-total span,
.ai-credit-detail-row span { color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 1.45; }
.ai-credit-detail-total strong,
.ai-credit-detail-row strong { color: var(--white); min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; line-height: 1.45; }

@media (hover: hover) and (pointer: fine) {
  .ai-credit-details:not([data-credit-click-closed="true"]):hover .ai-credit-detail-panel,
  .ai-credit-details:not([data-credit-click-closed="true"]):focus-within .ai-credit-detail-panel { display: grid; }
}

@media (max-width: 720px) {
  .ai-quota-card,
  .weekly-forecast-credit-card { justify-content: center; }

  .ai-quota-card .ai-credit-details,
  .weekly-forecast-credit-card .ai-credit-details { margin-inline: auto; }

  .ai-credit-details { position: relative; }

  .ai-credit-detail-panel {
    left: 50%;
    right: auto;
    width: min(216px, calc(100vw - 32px));
    min-width: 0;
    transform: translateX(-50%);
  }
}
/* source: /web/modules/ai-history.css */
.ai-history-section {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.ai-history-retention-notice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(235, 178, 68, 0.42);
  border-radius: 14px;
  background: rgba(70, 48, 8, 0.28);
  color: var(--text);
}

.ai-history-retention-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ai-history-retention-notice-close {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(235, 178, 68, 0.5);
  border-radius: 10px;
  background: rgba(235, 178, 68, 0.14);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ai-history-retention-notice-close:hover,
.ai-history-retention-notice-close:focus-visible {
  border-color: rgba(235, 178, 68, 0.82);
  background: rgba(235, 178, 68, 0.24);
  outline: none;
}

[data-theme="light"] .ai-history-retention-notice {
  border-color: rgba(150, 102, 18, 0.3);
  background: rgba(255, 244, 214, 0.82);
}

[data-theme="light"] .ai-history-retention-notice-close {
  border-color: rgba(150, 102, 18, 0.42);
  background: rgba(255, 235, 183, 0.78);
}

.ai-diagnosis-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 560px);
  max-width: 100%;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(43, 213, 255, 0.2);
  border-radius: 18px;
  background: rgba(3, 18, 26, 0.48);
}

.ai-diagnosis-subtab {
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  white-space: normal;
}

.ai-diagnosis-subtab.is-active {
  border-color: rgba(43, 213, 255, 0.58);
  background: rgba(43, 213, 255, 0.14);
  color: var(--text);
}

.ai-diagnosis-panel {
  display: grid;
  gap: 14px;
}

[data-theme="light"] .ai-diagnosis-subtabs {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(34, 92, 135, 0.18);
}

[data-theme="light"] .ai-diagnosis-subtab.is-active {
  background: rgba(210, 231, 247, 0.82);
  border-color: rgba(34, 92, 135, 0.36);
}

.ai-history-toolbar {
  display: flex;
  justify-content: flex-start;
}

.ai-history-filters {
  grid-template-columns: repeat(3, minmax(132px, 180px)) auto;
}

.ai-history-actions .btn {
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

.ai-history-actions {
  display: flex;
  align-self: end;
  align-items: end;
  min-height: 0;
  padding: 0;
  font-size: inherit;
}

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

.ai-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(83, 217, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 16, 24, 0.72);
  content-visibility: auto;
  contain-intrinsic-size: 118px;
}

.ai-history-check {
  display: inline-flex;
  align-items: center;
}

.ai-history-main {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(90px, auto) minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.ai-history-time {
  color: var(--muted);
  font-size: 12px;
}

.ai-history-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.ai-history-detail {
  grid-column: 2 / -1;
  display: block;
  max-height: 0;
  min-height: 0;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(83, 217, 255, 0.05);
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 180ms ease,
    opacity 160ms ease,
    transform 160ms ease,
    padding 160ms ease,
    border-color 160ms ease;
  contain: layout paint style;
  will-change: max-height, opacity, transform;
}

.ai-history-row.is-expanded .ai-history-detail,
.ai-history-detail.is-expanded {
  max-height: min(420px, 60vh);
  padding: 10px 12px;
  border-color: rgba(83, 217, 255, 0.12);
  opacity: 1;
  transform: translateY(0);
  overflow: auto;
}

.ai-history-detail-inner {
  min-height: 0;
  overflow: hidden;
}

.ai-history-detail p {
  margin: 0 0 8px;
}

.ai-history-detail ul {
  margin: 0;
  padding-left: 18px;
}

.ai-history-delete {
  min-width: 72px;
}

[data-theme="light"] .ai-history-row {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(90, 116, 139, 0.18);
}

[data-theme="light"] .ai-history-row.is-expanded .ai-history-detail,
[data-theme="light"] .ai-history-detail.is-expanded {
  background: rgba(223, 236, 248, 0.72);
  border-color: rgba(90, 116, 139, 0.16);
}

@media (max-width: 820px) {
  .ai-history-filters,
  .ai-history-row,
  .ai-history-main {
    grid-template-columns: 1fr;
  }

  .ai-history-row {
    align-items: stretch;
  }

  .ai-history-detail {
    grid-column: 1;
  }

  .ai-history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-history-actions,
  .ai-history-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-history-detail {
    transition: none;
    transform: none;
  }
}

#aiWorkspaceFormShell .ai-insight-grid {
  grid-template-columns: minmax(150px, 220px) minmax(120px, 160px) minmax(100px, 130px) auto;
  align-items: end;
  justify-content: start;
  gap: 12px;
}

#aiWorkspaceFormShell .ai-insight-form {
  max-width: 220px;
  gap: 6px;
}

#aiWorkspaceFormShell .text-input {
  height: 38px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

.ai-diagnose-action {
  display: flex;
  align-items: end;
}

.ai-diagnose-action .btn {
  height: 38px;
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  #aiWorkspaceFormShell .ai-insight-grid {
    grid-template-columns: 1fr;
  }

  #aiWorkspaceFormShell .ai-insight-form,
  .ai-diagnose-action .btn {
    max-width: none;
    width: 100%;
  }
}

.ai-history-filters .text-input {
  max-width: 180px;
}
/* source: /web/modules/weekly-forecast.css */
.weekly-forecast-panel { display: grid; gap: 1rem; width: 100%; padding: 14px; box-sizing: border-box; }
.weekly-forecast-panel--guest { align-content: start; }
.weekly-forecast-panel--guest .weekly-forecast-feedback { margin: 0; }
.weekly-forecast-credit-card { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 0; }
.weekly-forecast-controls { display: flex; flex-wrap: wrap; gap: .85rem; align-items: end; }
.weekly-forecast-controls label { display: grid; gap: .35rem; min-width: 0; }
.weekly-forecast-select { width: 11.5rem; max-width: 100%; font-size: 12px; }
.weekly-forecast-run { min-width: 5.5rem; height: 38px; min-height: 38px; padding: 8px 14px; box-sizing: border-box; }
.weekly-forecast-feedback { margin-top: -.15rem; font-size: 13px; }
.weekly-forecast-chart { min-height: 320px; border: 1px solid rgba(148,163,184,.28); border-radius: 18px; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(139,92,246,.08)); overflow: hidden; }
@media (max-width: 640px) { .weekly-forecast-controls { display: grid; grid-template-columns: 1fr; } .weekly-forecast-select, .weekly-forecast-run { width: 100%; } .weekly-forecast-chart { min-height: 260px; } }
/* source: /web/modules/cookie-notice.css */
.cookie-notice {
  position: fixed;
  z-index: 90;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: start;
  width: min(920px, calc(100vw - 24px));
  margin-inline: auto;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(83, 217, 255, 0.28);
  border-radius: 14px;
  background: rgba(8, 17, 24, 0.97);
  color: #d8f7ff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.cookie-notice-text {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cookie-notice-text a {
  color: #53d9ff;
  font-weight: 700;
  text-underline-offset: 3px;
}

.cookie-notice-close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(83, 217, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 15, 23, 0.76);
  color: #f2ffff;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cookie-notice-close:hover,
.cookie-notice-close:focus-visible {
  border-color: rgba(83, 217, 255, 0.72);
  background: rgba(83, 217, 255, 0.12);
  outline: none;
}

html.cookie-notice-visible body {
  padding-bottom: calc(var(--cookie-notice-height, 76px) + max(20px, env(safe-area-inset-bottom)));
}

html.cookie-notice-visible .assistant-widget-root {
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--cookie-notice-height, 76px) + 12px);
}

html.cookie-notice-visible .share-widget-root {
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--cookie-notice-height, 76px) + 88px);
}

html[data-theme="light"] .cookie-notice {
  border-color: rgba(15, 127, 168, 0.28);
  background: rgba(255, 255, 255, 0.98);
  color: #163244;
  box-shadow: 0 16px 38px rgba(101, 131, 154, 0.22);
}

html[data-theme="light"] .cookie-notice-text a {
  color: #0f6f98;
}

html[data-theme="light"] .cookie-notice-close {
  border-color: rgba(15, 127, 168, 0.3);
  background: #f4f8fc;
  color: #163244;
}

@media (max-width: 760px) {
  .cookie-notice {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 8px;
    width: calc(100vw - 16px);
    padding: 10px 10px 10px 12px;
    border-radius: 12px;
  }

  .cookie-notice-text {
    font-size: 10px;
    line-height: 1.55;
  }

  .cookie-notice-close {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    scroll-behavior: auto;
  }
}
