@font-face {
  font-family: 'Kanit';
  src: url('./fonts/Kanit-Light.ttf') format('truetype');
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kanit';
  src: url('./fonts/Kanit-SemiBold.ttf') format('truetype');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0f1c;
  --outer-bg: #050811;
  --header: rgba(10, 15, 28, 0.92);
  --card: #121a2d;
  --card-hover: #17223a;
  --card-hero: linear-gradient(155deg, #17233d 0%, #10182b 62%, #0d1424 100%);
  --inset: #0c1222;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.25);
  --text: #f1f5f9;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --up: #10d98b;
  --up-bg: rgba(16, 217, 139, 0.13);
  --down: #ff5c72;
  --down-bg: rgba(255, 92, 114, 0.14);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --track: rgba(148, 163, 184, 0.18);
  --sheet: #131c31;
  --btn: rgba(148, 163, 184, 0.11);
  --btn-hover: rgba(148, 163, 184, 0.21);
  --ai-bg: linear-gradient(135deg, rgba(16, 217, 139, 0.14) 0%, rgba(56, 189, 248, 0.14) 100%);
  --ai-border: rgba(56, 189, 248, 0.35);
  --accent: #38bdf8;
}

html.theme-light {
  --bg: #f1f4f9;
  --outer-bg: #e2e8f0;
  --header: rgba(241, 244, 249, 0.94);
  --card: #ffffff;
  --card-hover: #f8fafd;
  --card-hero: linear-gradient(155deg, #ffffff 0%, #f6f9fe 100%);
  --inset: #f4f6fb;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-sub: #475569;
  --text-muted: #64748b;
  --up: #059669;
  --up-bg: rgba(5, 150, 105, 0.10);
  --down: #dc2626;
  --down-bg: rgba(220, 38, 38, 0.10);
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.11);
  --track: rgba(15, 23, 42, 0.10);
  --sheet: #ffffff;
  --btn: rgba(15, 23, 42, 0.06);
  --btn-hover: rgba(15, 23, 42, 0.11);
  --ai-bg: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(2, 132, 199, 0.09) 100%);
  --ai-border: rgba(2, 132, 199, 0.28);
  --accent: #0284c7;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: 'Kanit', 'Noto Sans Thai', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* Splash Screen */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a0f1c;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
.app-splash.done {
  opacity: 0;
  visibility: hidden;
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.splash-logo {
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(16, 217, 139, 0.22);
}
.splash-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.splash-sub {
  font-size: 13px;
  color: #94a3b8;
}
.splash-bar {
  width: 150px;
  height: 4px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10d98b, #38bdf8);
  animation: splashLoad 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes splashLoad {
  to { width: 100%; }
}

/* App Shell */
.app-shell {
  width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  body {
    background: var(--outer-bg);
    display: flex;
    justify-content: center;
    padding: 18px 12px;
  }
  .app-shell {
    width: 430px;
    max-width: 100%;
    min-height: calc(100dvh - 36px);
    max-height: calc(100dvh - 36px);
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
    overflow: hidden;
  }
  .feed-scroll {
    overflow-y: auto;
    flex: 1;
  }
}

/* Sticky Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: var(--header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10d98b 0%, #0ea5e9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  flex-shrink: 0;
}
.status-dot.loading {
  background: var(--warn);
}
.status-dot.error {
  background: var(--down);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fx-pill {
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--inset);
  border: 1px solid var(--border);
  text-align: right;
  line-height: 1.15;
}
.fx-label {
  font-size: 10px;
  color: var(--text-muted);
}
.fx-val-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}
.fx-pct {
  font-size: 10.5px;
  font-weight: 500;
}

.icon-btn {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--text);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.icon-btn:hover { background: var(--btn-hover); }
.icon-btn:active { transform: scale(0.93); }

@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spinning {
  animation: spinOnce 0.65s linear infinite;
}

/* Notice Banner */
.notice-banner {
  margin: 10px 14px 0;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.feed-scroll,
.detail-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}
.feed-scroll::-webkit-scrollbar,
.detail-scroll::-webkit-scrollbar {
  width: 5px;
}
.feed-scroll::-webkit-scrollbar-track,
.detail-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.feed-scroll::-webkit-scrollbar-thumb,
.detail-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 99px;
}

/* Main Feed */
.feed-scroll {
  padding: 14px 14px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
}
.section-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Cards */
.asset-card,
.asset-card-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 15px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
}
.asset-card-hero {
  background: var(--card-hero);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 16px;
}
.asset-card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}
.asset-card:active,
.asset-card-hero:active {
  transform: scale(0.99);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.asset-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.asset-name {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
}
.asset-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.price-col {
  text-align: right;
  flex-shrink: 0;
}
.price-main {
  font-size: 20.5px;
  font-weight: 600;
  line-height: 1.15;
}
.hero-price-row {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-price {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-thb {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.change-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.pill-up { background: var(--up-bg); color: var(--up); }
.pill-down { background: var(--down-bg); color: var(--down); }
.pill-flat { background: var(--btn); color: var(--text-sub); }

/* Range Gauge */
.range-block {
  margin-top: 12px;
}
.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.range-head strong {
  color: var(--text);
  font-weight: 600;
}
.range-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: var(--track);
}
.range-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
}
.range-dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

/* Inset Trays */
.inset-box {
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.mt-10 { margin-top: 10px; }

.thai-gold-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.thai-gold-val {
  font-size: 18px;
  font-weight: 600;
  color: #f5c555;
}
html.theme-light .thai-gold-val {
  color: #b47b09;
}
.thai-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}
.thai-sub-row strong {
  color: var(--text);
  font-weight: 600;
}

.dual-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dual-k {
  font-size: 11.5px;
  color: var(--text-sub);
}
.dual-v {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.stock-thb-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
}
.stock-thb-row strong {
  color: var(--text);
  font-weight: 600;
}

.card-cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.asset-card-hero .card-cta {
  color: var(--accent);
}

.feed-footer {
  padding: 8px 6px 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Skeleton Loader */
.skeleton {
  opacity: 0.55;
  animation: pulseLoad 1.1s ease-in-out infinite;
}
@keyframes pulseLoad {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

/* Detail Slide-In View */
.detail-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
@media (min-width: 520px) {
  .detail-view {
    position: absolute;
  }
}
.detail-view.open {
  transform: translateX(0);
  pointer-events: auto;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.back-btn:hover { background: var(--btn-hover); }

.detail-title-wrap {
  text-align: center;
  min-width: 0;
}
.detail-title {
  font-size: 15.5px;
  font-weight: 600;
}
.detail-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.detail-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.detail-price {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.05;
}
.detail-thb {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-top: 4px;
}
.detail-right-meta {
  text-align: right;
}
.scrub-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-title {
  font-size: 14px;
  font-weight: 600;
}
.panel-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tf-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--inset);
  border: 1px solid var(--border);
}
.tf-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tf-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.ema-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 195px;
  touch-action: none;
  user-select: none;
}
#price-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-sub);
  background: rgba(10, 15, 28, 0.45);
  border-radius: 10px;
}

.period-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.stat-k {
  font-size: 11px;
  color: var(--text-muted);
}
.stat-v {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

/* Technical Analysis */
.signal-badge {
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.rsi-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rsi-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-sub);
}
.rsi-val {
  font-weight: 600;
  color: var(--text);
}
.rsi-bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(16, 217, 139, 0.55) 0%, rgba(16, 217, 139, 0.55) 30%, rgba(148, 163, 184, 0.22) 30%, rgba(148, 163, 184, 0.22) 70%, rgba(255, 92, 114, 0.55) 70%, rgba(255, 92, 114, 0.55) 100%);
}
.rsi-bar .range-dot {
  left: 50%;
  background: var(--text);
}
.quota-box .range-fill {
  width: 0%;
  background: var(--up);
}
.ai-sparkle-icon {
  color: var(--accent);
}
.rsi-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tech-val {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}
.tech-summary {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-sub);
}

/* News & AI Summary */
.ai-btn {
  width: 100%;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.ai-btn-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-cost-tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--inset);
  color: var(--text-sub);
}
.ai-result {
  border-radius: 13px;
  padding: 12px;
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}
.ai-result-title {
  font-weight: 600;
  color: var(--accent);
}
.ai-bullets {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.news-title {
  font-size: 12.5px;
  line-height: 1.42;
}
.news-meta {
  flex-shrink: 0;
  text-align: right;
  font-size: 10.5px;
  color: var(--text-muted);
}
.news-src {
  color: var(--text-sub);
  font-weight: 600;
}

/* Settings Bottom Sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 15, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 520px) {
  .sheet-overlay {
    position: absolute;
  }
}
.sheet-panel {
  width: 100%;
  background: var(--sheet);
  border-top: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-title {
  font-size: 17px;
  font-weight: 600;
}
.sheet-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.setting-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.setting-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
}
.seg-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.seg-btn {
  padding: 9px 6px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--inset);
  color: var(--text-sub);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.seg-btn.active {
  background: var(--up-bg);
  color: var(--up);
  border-color: var(--up);
  font-weight: 600;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.toggle-title {
  font-size: 13px;
  font-weight: 600;
}
.toggle-sub {
  font-size: 11.5px;
  color: var(--text-sub);
}

.silver-calib {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.calib-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-sub);
}
.calib-field input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}

.quota-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.quota-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
}
.quota-note {
  font-size: 11px;
  color: var(--text-muted);
}

.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-sub);
}
.version-pill {
  padding: 3px 11px;
  border-radius: 99px;
  background: var(--inset);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}
