:root {
  color-scheme: light;
  font-family: 'Binance Nova', 'BinanceNova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ink: #15181d;
  --secondary: #707a8a;
  --muted: #92979e;
  --line: #f1f2f4;
  --field: #f5f5f5;
  --yellow: #fcd535;
  --green: #2bb984;
  --red: #f6465d;
  background: #f2f3f5;
  color: var(--ink);
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #bd9400; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-device { margin: 0 auto; width: 100%; max-width: 480px; height: 100dvh; background: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.status-bar { height: 55px; flex: 0 0 55px; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 32px 0 54px; color: #070909; font-size: 17px; font-weight: 650; letter-spacing: -.3px; background: #fff; z-index: 4; }
.status-bar svg { margin-top: 3px; }
#screen { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: none; overscroll-behavior-y: contain; }
#screen:focus { outline: none; }
#screen::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
.tab-bar { flex: 0 0 58px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #f6f6f6; z-index: 4; }
.tab-bar a { display: grid; place-content: center; justify-items: center; gap: 4px; color: #909396; font-size: 10px; font-weight: 500; }
.tab-bar a[aria-current="page"] { color: #171a1f; font-weight: 650; }
.tab-bar a[aria-current="page"] svg { filter: drop-shadow(2px 0 0 #fcd53545); }
.home-indicator { flex: 0 0 21px; background: #fff; display: grid; place-items: start center; padding-top: 8px; }
.home-indicator span { display: block; width: 140px; max-width: 50%; height: 5px; background: #090909; border-radius: 8px; }
.workspace-tools { display: none; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 38px; padding: 0; background: none; border: 0; position: relative; }
.icon-button:disabled { opacity: .4; }
.positive { color: #229c74; }
.negative { color: #d6465e; }
.empty-symbol { color: #b8bec7; }
.status-notice { padding: 8px 14px; border-radius: 7px; font-size: 13px; background: #fff8d6; color: #6f5713; }
.demo-environment { display: flex; align-items: center; gap: 8px; background: #fff8d8; border-block: 1px solid #f0e9c9; color: #524013; padding: 4px 11px; min-height: 32px; font-size: 11px; z-index: 5; }
.demo-environment b { padding: 2px 5px; background: #fcd535; border-radius: 4px; color: #241b08; letter-spacing: .04em; }
.demo-environment span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-environment button, .demo-environment a { border: 0; background: transparent; border-radius: 4px; padding: 3px 5px; font-weight: 650; }
.demo-environment button:hover, .demo-environment a:hover { background: #f4e6aa; }
.demo-server-notice { padding: 7px 11px; background: #fff5f1; color: #8e3442; font-size: 12px; }
.demo-loading { min-height: 80%; display: grid; place-items: center; font-size: 14px; }
@media (display-mode: standalone) {
  html[data-hosted-demo] .app-device { box-shadow: none; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  html[data-hosted-demo] .status-bar, html[data-hosted-demo] .home-indicator { display: none; }
}

.archive { padding: 0 15px 14px; }
.archive-head { display: flex; align-items: center; gap: 8px; min-height: 46px; margin: 0 -6px 6px; }
.archive h1 { font-size: 18px; margin: 0; }
.archive form { display: grid; gap: 8px; margin-bottom: 10px; }
.archive input, .archive select { width: 100%; min-height: 36px; padding: 7px 11px; background: #f6f6f6; border: 1px solid #ededed; border-radius: 7px; font-size: 13px; }
.archive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.archive-card { display: grid; gap: 5px; min-width: 0; }
.archive-card img { width: 100%; aspect-ratio: 131 / 288; display: block; background: #f6f6f6; border: 1px solid #ebedef; border-radius: 6px; object-fit: cover; object-position: top; }
.archive-card:hover img { border-color: #eab907; }
.archive-card span { font-size: 11px; color: var(--secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-pagination { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; font-size: 12px; color: var(--secondary); gap: 4px; }
.archive-pagination button { background: #f5f5f5; min-height: 30px; border: 0; border-radius: 4px; padding: 4px 9px; color: var(--ink); }
.archive-pagination button:disabled { opacity: .35; }
.reference-view { padding: 0 0 12px; }
.reference-tools { display: flex; align-items: stretch; justify-content: space-between; position: sticky; top: 0; z-index: 2; min-height: 40px; border-bottom: 1px solid #eff0f1; background: #fff; }
.reference-tools .reference-title { text-align: center; display: grid; align-content: center; line-height: 1.3; min-width: 0; font-size: 12px; }
.reference-title small { color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reference-tools .reference-nav { display: flex; }
.reference-live { align-self: center; margin-right: 6px; padding: 5px 8px; color: #352c12; border-radius: 5px; background: #fff3b1; font-size: 11px; white-space: nowrap; }
.reference-canvas { position: relative; width: 100%; aspect-ratio: 393 / 892; }
.reference-canvas img { display: block; width: 100%; height: 100%; }
.reference-hit { position: absolute; border: 0; border-radius: 4px; background: transparent; padding: 0; }
.reference-hit:hover, .reference-hit:focus-visible { background: #fcd53535; outline: 1px solid #edb923; }
.reference-steps { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 10px 3px; }
.reference-steps a { border-radius: 5px; background: #f5f5f5; padding: 7px 10px; font-size: 12px; }

@media (min-width: 580px) {
  body { display: grid; place-items: center; min-height: 100dvh; padding: 16px; }
  .app-device { max-width: 393px; height: min(852px, calc(100dvh - 32px)); border-radius: 25px; box-shadow: 0 12px 46px #121a2814, 0 0 0 1px #151d2b0b; }
}

@media (min-width: 880px) {
  .workspace-tools { display: grid; gap: 4px; position: fixed; left: max(30px, calc(50vw - 420px)); top: max(30px, calc((100dvh - 820px) / 2)); width: 165px; font-size: 13px; }
  .workspace-tools a { display: flex; align-items: center; gap: 9px; border-radius: 7px; padding: 8px 9px; color: #49505b; }
  .workspace-tools a:hover { background: #e9eaed; color: #15181d; }
  .workspace-tools .workspace-wordmark { font-size: 15px; color: #1c222b; font-weight: 750; letter-spacing: .075em; margin-bottom: 13px; }
  .workspace-tools .workspace-wordmark span { color: #d8a707; }
  .workspace-tools svg { display: block; }
}
