:root {
  --bg: #0a0e12;
  --bg-2: #10161c;
  --card: #141b22;
  --line: rgba(226, 199, 120, 0.22);
  --gold: #e2c778;
  --gold-fill: #e2c778;
  --ink: #f3f0e7;
  --muted: #9aa3ad;
  --blue: #84a9f6;
  --green: #16c784;
  --red: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --chart: #0e141b;
  --chart-grid: rgba(255, 255, 255, 0.06);
  --chart-ink: #9aa3ad;
  --row-line: rgba(255, 255, 255, 0.05);
  --mark: #0f1214;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f7f4ee;
  --bg-2: #fffdf8;
  --card: #ffffff;
  --line: rgba(92, 68, 16, 0.22);
  --gold: #8a6412;
  --gold-fill: #e2c778;
  --ink: #1c1914;
  --muted: #5e584e;
  --blue: #2a5fbe;
  --green: #0b7a48;
  --red: #c23030;
  --shadow: 0 10px 28px rgba(70, 50, 10, 0.08);
  --chart: #f3efe6;
  --chart-grid: rgba(28, 25, 20, 0.08);
  --chart-ink: #5e584e;
  --row-line: rgba(28, 25, 20, 0.08);
  --mark: #fffdf8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(226, 199, 120, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.45 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px 28px 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.brand > div { min-width: 0; }
a.mark-link {
  flex: none;
  display: block;
  line-height: 0;
  border-radius: 16px;
  text-decoration: none;
}
.mark {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  background: #f4efe4;
  cursor: pointer;
}
h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.day-note {
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 2px solid var(--red);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.beta {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}
h1 .beta { color: var(--red); }
.sub { margin: 0; color: var(--muted); }
.case-study {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-fill);
  color: #1a1408;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.case-study:hover { color: #1a1408; }
.gain {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #16c784;
  color: #06281a;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.fresh {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.fresh p { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
}
.socials a:hover { border-color: var(--gold); transform: translateY(-1px); }
.socials svg { width: 18px; height: 18px; display: block; }
.theme {
  display: flex;
  position: relative;
  z-index: 3;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  cursor: pointer;
  user-select: none;
}
.theme button {
  border: 0;
  min-height: 44px;
  padding: 8px 18px;
  pointer-events: none;
}
.theme button.on { background: var(--gold-fill); color: #1a1408; font-weight: 650; }
button, select, input { font: inherit; color: inherit; }
button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
button:hover { border-color: var(--gold); color: var(--gold); }
.oki-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  vertical-align: middle;
  line-height: 0;
  cursor: pointer;
}
.oki-mark:hover { border: 0; color: inherit; }
.oki-mark img {
  height: 22px;
  width: 48px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 5px;
}
.no-entry { width: 22px; height: 22px; display: block; flex: none; }
.oki-tip {
  position: fixed;
  z-index: 90;
  max-width: 280px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.4;
}
.oki-tip[hidden] { display: none; }
.short-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  vertical-align: middle;
  line-height: 0;
  cursor: pointer;
  text-decoration: none;
}
.short-mark:hover { border: 0; }
.short-mark img {
  width: 127.89px;
  height: 16.38px;
  max-width: 46vw;
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 4px;
  background: #f4f9fc;
}
#btn-refresh { background: var(--gold-fill); color: #1a1408; border-color: var(--gold-fill); font-weight: 650; }
#btn-refresh[hidden] { display: none; }
#btn-refresh:hover { color: #1a1408; }
#btn-refresh:disabled { opacity: 0.55; cursor: wait; }
main { padding: 18px 28px 36px; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 12px;
}
.nav-burger {
  position: relative;
  z-index: 94;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-burger:hover { border-color: var(--gold); color: inherit; }
.nav-burger[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(226, 199, 120, 0.14);
}
@keyframes nav-burger-glow {
  0%, 100% {
    border-color: rgba(22, 199, 132, 0.28);
    box-shadow: 0 0 0 0 rgba(22, 199, 132, 0);
  }
  50% {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 199, 132, 0.42);
  }
}
.nav-burger {
  animation: nav-burger-glow 2.4s ease-in-out infinite;
}
.nav-burger:hover,
.nav-burger[aria-expanded="true"] {
  animation: none;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger { animation: none; box-shadow: none; }
}
#nav-drawer[hidden] { display: none !important; }
#nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: block;
}
#nav-drawer .nav-drawer-back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}
#nav-drawer .nav-drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 88vw);
  overflow: auto;
  background: var(--card);
  color: inherit;
  border-right: 1px solid var(--line);
  padding: 48px 12px 28px;
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.38);
}
#nav-drawer .nav-drawer-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
body.nav-open { overflow: hidden; }
.views { display: flex; flex-wrap: wrap; gap: 8px; }
#nav-drawer .views {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}
#nav-drawer .views button {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  font-weight: 650;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
#nav-drawer .views button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
#nav-drawer .views button.on {
  background: rgba(226, 199, 120, 0.14);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}
#nav-drawer .views button img {
  display: none;
}
#nav-drawer .views button.oki-filter .no-entry {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}
.views button { min-height: 44px; }
#btn-cols, #btn-csv { min-height: 44px; }
.views button.on {
  background: rgba(226, 199, 120, 0.14);
  border-color: var(--gold);
  color: var(--gold);
}
.views button.brief,
.views button.insiders,
.views button.oki-filter,
.views button.srednie {
  background: var(--bg-2);
  border: 2px solid var(--muted);
  color: inherit;
  font-weight: 650;
  padding: 6px 12px;
  line-height: 0;
}
.views button.oki-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.views button.brief:hover,
.views button.insiders:hover,
.views button.oki-filter:hover,
.views button.srednie:hover {
  background: var(--bg-2);
  border-color: var(--gold);
  color: inherit;
}
.views button.brief.on,
.views button.insiders.on,
.views button.srednie.on,
.views button.oki-filter.on {
  background: rgba(226, 199, 120, 0.14);
  border-color: var(--gold);
}
.toolbar.brief-mode .search,
.toolbar.brief-mode #btn-cols,
.toolbar.brief-mode #btn-csv,
.toolbar.brief-mode .summary,
.toolbar.insider-mode .search,
.toolbar.insider-mode #btn-cols,
.toolbar.insider-mode #btn-csv,
.toolbar.insider-mode .summary { display: none; }
.insider-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 8px;
}
.insider-card[hidden] { display: none; }
.insider-card h2 { margin: 0 0 4px; font-size: 22px; }
.insider-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.insider-card .table-wrap { max-height: calc(100vh - 240px); }
.layout.insider-open { grid-template-columns: minmax(0, 1fr); }
.layout.insider-open .right-col,
.layout.insider-open .detail-card { display: none; }
.layout.insider-open .insider-card .table-wrap { max-height: none; }
.insider-card table { width: 100%; min-width: 760px; }
.insider-card td { white-space: nowrap; }
.insider-card td.who { white-space: normal; min-width: 140px; }
.insider-when { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.brief-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 20px;
}
.brief-card[hidden] { display: none; }
.brief-card h2 { margin: 0 0 14px; font-size: 22px; }
.brief-day + .brief-day { margin-top: 16px; padding-top: 16px; border-top: 3px solid #e2c778; }
.brief-date { margin: 0 0 8px; color: var(--muted); font-weight: 800; }
.brief-text { white-space: pre-wrap; font-size: 16px; line-height: 1.45; }
.brief-emoji { height: 20px; width: 20px; object-fit: contain; vertical-align: -4px; margin: 0 1px; }
.search { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.search input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 220px;
}
.search input:focus { outline: 2px solid rgba(226, 199, 120, 0.45); border-color: var(--gold); }
.summary { margin: 0; color: var(--muted); flex: 1 1 240px; }
.cols[hidden] { display: none; }
.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.cols label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.left-col {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.right-col {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sub-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sub-link {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold-fill);
  color: #1a1408;
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
  padding: 8px 14px;
}
.sub-link:hover { color: #1a1408; }
.sub-scroll {
  position: relative;
  height: auto;
  margin-top: 12px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0;
  -webkit-overflow-scrolling: touch;
}
.shot {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.shot:hover { border: 0; color: inherit; }
.sub-scroll > * + * {
  border-top: 0;
  padding-top: calc(22px * 4 / 9);
  background-image: linear-gradient(
    to bottom,
    #fff 0 calc(22px / 9),
    var(--gold-fill) calc(22px / 9) calc(22px / 3),
    #fff calc(22px / 3) calc(22px * 4 / 9)
  );
  background-size: 100% calc(22px * 4 / 9);
  background-repeat: no-repeat;
  background-position: top center;
}
.shot { min-height: 220px; }
.shot img { width: 100%; height: 220px; object-fit: cover; object-position: top center; display: block; cursor: pointer; }
@media (min-width: 981px) {
  .shot img { height: 220px; object-fit: cover; object-position: top center; }
  .list-card { min-height: 720px; }
}
.shot-block { margin: 0; flex: 0 0 auto; }
.shot-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.shot-note a { color: var(--gold); font-weight: 650; cursor: pointer; }
.hist-note { margin: 0 0 10px; color: var(--gold); font-weight: 650; }
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 16px;
  background: rgba(6, 8, 10, 0.9);
}
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
#lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-fill);
  color: #1a1408;
  border-color: var(--gold-fill);
  font-weight: 650;
}
.list-card, .detail-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.list-card { overflow: hidden; min-width: 0; min-height: 360px; }
.detail-card { min-width: 0; overflow: visible; }
.table-wrap { overflow: auto; max-height: calc(100vh - 210px); -webkit-overflow-scrolling: touch; }
table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.list-card table { min-width: 0; width: max-content; }
th, td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--row-line);
  white-space: nowrap;
}
.list-card th,
.list-card td { width: 1%; padding: 6px 8px; }
.list-card th {
  white-space: normal;
  line-height: 1.2;
  vertical-align: bottom;
}
.list-card th button { white-space: normal; line-height: 1.2; max-width: 8.8em; }
.list-card td.name,
.list-card th.name { max-width: 200px; }
.list-card .name-pack {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.list-card .name-link {
  flex: 1 1 auto;
  min-width: 3.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-card .short-mark,
.list-card .oki-mark,
.list-card .insider-mark { flex: none; }
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}
th button {
  border: 0;
  padding: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: rgba(226, 199, 120, 0.06); }
tbody tr.on { background: rgba(132, 169, 246, 0.12); }
.ticker { color: var(--gold); font-weight: 700; }
td.name { cursor: pointer; }
.name-link { border-bottom: 1px solid transparent; }
.swipe-hint { display: none; }
td.name:hover .name-link { color: var(--gold); border-bottom-color: var(--gold); }
.list-card[hidden] { display: none; }
.detail-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.detail-bar .hist-note { margin: 0; }
.detail-close {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  font-size: 28px;
  line-height: 1;
}
.detail-close[hidden] { display: none; }
td.sell { color: var(--gold); font-weight: 700; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--muted); }
.empty, .detail-empty { padding: 28px 18px; color: var(--muted); }
.detail-card { padding: 16px 16px 22px; }
.detail-card h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.kicker { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.meta { margin: 6px 0 0; color: var(--muted); }
.chart-wrap {
  position: relative;
  height: 220px;
  margin-top: 12px;
  background: var(--chart);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.chart-wrap[hidden] { display: none; }
#chart { width: 100%; height: 100%; display: block; }
h3 { margin: 16px 0 8px; font-size: 15px; }
.hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 8px;
}
.hist-head h3 { margin: 0; }
.hist-wrap { max-height: 824px; border: 1px solid var(--row-line); border-radius: 12px; }
footer { padding: 8px 28px 28px; color: var(--muted); font-size: 13px; }
.site-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.site-foot a { color: var(--muted); }
.consent {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(8, 12, 16, 0.78);
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.consent[hidden] { display: none; }
.consent-card {
  width: min(420px, 92vw);
  min-height: 0;
  max-height: 70vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.consent-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.consent-main { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.consent p { margin: 0; }
.consent-main p { font-size: 14px; line-height: 1.4; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions button { font-size: 14px; padding: 8px 14px; min-height: 40px; }
#consent-yes:hover, #consent-save:hover { color: #1a1408; border-color: var(--gold-fill); }
.consent-panel { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.consent-panel[hidden] { display: none; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 18px; line-height: 1.4; }
.consent-row input { margin-top: 4px; flex: none; width: 22px; height: 22px; }
#consent-yes, #consent-save, #push-yes { background: var(--gold-fill); color: #1a1408; border-color: var(--gold-fill); font-weight: 650; }
.push-open { padding: 6px 10px; font-size: 13px; }
.sell-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.sell-open > span {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.sell-open:hover { border: 0; color: inherit; }
.tap-mark { width: 16px; height: 16px; flex: none; color: var(--gold); }
.sell-panel {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 12, 16, 0.55);
}
.sell-panel[hidden] { display: none; }
.sell-card {
  width: min(720px, 94vw);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.sell-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sell-top h2 { margin: 0; font-size: 22px; }
.sell-corner { display: flex; align-items: flex-start; gap: 10px; margin-left: auto; }
.sell-corner p { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
html:has(.sell-panel:not([hidden])) { overflow: hidden; }
.sell-wrap { max-height: 68vh; }
.sell-wrap th button { width: 100%; text-align: right; cursor: pointer; }
.sell-wrap th button.on { color: var(--gold); font-weight: 750; }
#sell-close { padding: 4px 10px; line-height: 1; }
.push-ask {
  position: fixed;
  z-index: 64;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.push-ask[hidden] { display: none; }
.push-ask p { margin: 0; }
@media (max-width: 980px) {
  .push-ask { flex-direction: column; align-items: stretch; }
}
.policy-page { max-width: 740px; margin: 0 auto; padding: 28px 20px 96px; }
.policy-page h1 { font-size: 32px; margin: 8px 0 12px; }
.policy-page h2 { font-size: 18px; margin: 22px 0 8px; }
.policy-page p { margin: 0 0 10px; }
.policy-page a { color: var(--gold); }
.policy-back { color: var(--muted); text-decoration: none; }
@media (max-width: 980px) {
  .top, main, footer { padding-left: 14px; padding-right: 14px; }
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  main { padding-top: 8px; padding-bottom: 24px; }
  .brand { gap: 10px; align-items: center; }
  .mark { width: 52px; height: 52px; border-radius: 12px; }
  a.mark-link { border-radius: 12px; }
  .fresh { align-items: flex-start; text-align: left; width: 100%; gap: 6px; }
  .head-tools {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }
  .socials { flex: 1 1 auto; gap: 4px; order: 1; min-width: 0; }
  .socials a { width: 30px; height: 30px; }
  .theme { flex: 0 0 auto; order: 2; margin-left: auto; }
  .theme button { padding: 5px 8px; font-size: 12px; min-height: 0; }
  .push-open { order: 3; flex: 0 0 auto; padding: 5px 8px; font-size: 12px; }
  h1 { font-size: 18px; line-height: 1.15; }
  h1 .beta { display: inline; margin-top: 0; font-size: 11px; }
  .profile-line {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .day-note { margin: 6px 0 0; padding: 4px 8px; font-size: 12px; }
  .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .toolbar .search { flex: 1 1 auto; width: auto; min-width: 0; }
  .list-card.sheet-phone .sp-sorts #btn-cols { margin-left: auto; }
  .list-card.sheet-phone .sp-sorts #btn-cols,
  .list-card.sheet-phone .sp-sorts #btn-csv {
    font-size: 11px;
    padding: 6px 10px;
    font-weight: 750;
  }
  .toolbar.brief-mode ~ .list-card #btn-cols,
  .toolbar.brief-mode ~ .list-card #btn-csv,
  .toolbar.insider-mode ~ .list-card #btn-cols,
  .toolbar.insider-mode ~ .list-card #btn-csv { display: none; }
  .layout { display: flex; flex-direction: column; gap: 16px; }
  .left-col { display: contents; }
  .sheet-block { order: 1; width: 100%; max-width: 100%; min-width: 0; }
  .right-col { order: 2; }
  .detail-card { order: 3; overflow: visible; }
  .shot { min-height: 180px; }
  .shot img { height: 180px; object-fit: cover; object-position: top center; }
  .layout, .list-card, .detail-card, .table-wrap, .toolbar { min-width: 0; max-width: 100%; }
  .nav-burger { width: 40px; height: 40px; padding: 8px 8px; flex: 0 0 auto; }
  .list-card, .detail-card { overflow: hidden; }
  .list-card { position: static; }
  .table-wrap { max-height: 520px; }
  .hist-wrap { max-height: 824px; }
  .list-card th,
  .list-card td { padding: 6px 5px; }
  .list-card th.ticker,
  .list-card td.ticker { width: 1%; }
  .list-card th.name,
  .list-card td.name { width: 1%; max-width: 148px; }
  .list-card th.name button {
    display: block;
    width: auto;
    max-width: none;
    white-space: nowrap;
    text-align: left;
    line-height: 1.25;
  }
  .list-card .swipe-hint {
    display: block;
    margin-top: 3px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 800;
    font-size: 11px;
    color: var(--gold);
  }
  .list-card .name-pack { display: inline-flex; width: auto; max-width: 100%; white-space: nowrap; overflow: hidden; }
  .list-card .name-link {
    display: block;
    flex: 1 1 auto;
    min-width: 3.6em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
  .list-card .short-mark img { width: 108px; height: auto; max-width: 108px; }
  .list-card .oki-mark { margin-left: 4px; }
  .list-card .oki-mark img { width: 34px; height: 16px; }
  .list-card .no-entry { width: 16px; height: 16px; }
  .list-card th.num,
  .list-card td.num { text-align: right; }
  .list-card .sell-open { justify-content: flex-end; }
  .list-card th.num button {
    max-width: 7.2em;
    white-space: normal;
    text-align: right;
    line-height: 1.15;
  }
  .search input { min-width: 0; width: 100%; }
  .consent { padding: 12px; align-items: flex-end; }
  .consent-card { width: 100%; min-height: 0; padding: 16px 14px; border-radius: 16px; }
  .consent-card h2 { font-size: 18px; }
  .consent-main p { font-size: 14px; }
  .consent-actions { flex-direction: column; }
  .consent-actions button { width: 100%; }
}
