:root {
  --ink: #151915;
  --muted: #6d746d;
  --paper: #f2f0e9;
  --card: #fcfbf7;
  --line: #d9d7cf;
  --green: #174e3b;
  --green-soft: #dce9e2;
  --lime: #c7ff59;
  --red: #a23b35;
  --red-soft: #f4dfdc;
  --blue: #2457c5;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { width: min(1480px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 32px; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; }
.brand strong { display: block; font-size: 15px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.top-actions { display: flex; gap: 20px; align-items: center; }
.live-dot { color: var(--muted); font-size: 13px; }
.live-dot i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #39a668; box-shadow: 0 0 0 4px #d7eadf; }
.text-button { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
main { padding: 56px 0 80px; }
footer { padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 5vw, 64px); font-weight: 500; line-height: 1.04; }
h2 { margin: 0; font-size: 20px; }
p { color: var(--muted); line-height: 1.7; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.hero-row p { margin-bottom: 0; }
.panel { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 10px 30px rgba(34, 40, 34, .035); }
.panel-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: flex; gap: 12px; align-items: center; }
.panel-heading p { margin: 0; font-size: 13px; }
.section-index { color: var(--muted); font: 12px/1 Georgia, serif; }
.add-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr) auto; gap: 14px; align-items: end; padding: 26px 28px 30px; }
label { position: relative; display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
label span { position: absolute; right: 14px; bottom: 13px; color: var(--muted); font-weight: 500; }
input { width: 100%; min-height: 46px; padding: 0 38px 0 13px; border: 1px solid #c9c8c0; border-radius: 9px; outline: none; background: #fff; color: var(--ink); }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 78, 59, .1); }
.symbol-field input { padding-right: 13px; font-weight: 750; text-transform: uppercase; }
.primary-button, .secondary-button, .small-button { border-radius: 9px; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.primary-button { min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.primary-button:hover { background: var(--green); transform: translateY(-1px); }
.secondary-button { min-height: 42px; padding: 0 17px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 650; }
.secondary-button:hover { background: var(--ink); color: white; }
.notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; }
.notice.error { background: var(--red-soft); color: var(--red); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
td { min-width: 120px; padding: 20px 18px; border-bottom: 1px solid #e8e6df; vertical-align: top; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.paused-row { opacity: .58; }
.ticker { font: 700 22px/1 Georgia, serif; letter-spacing: -.02em; }
.subline, .last-alert { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.last-alert { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote { display: inline-block; padding: 5px 7px; border-radius: 6px; font-weight: 700; }
.quote.call { background: #e3ebff; color: var(--blue); }
.quote.put { margin-left: 3px; background: var(--red-soft); color: var(--red); }
.status-pill { display: inline-block; max-width: 220px; padding: 5px 8px; border-radius: 999px; font-size: 11px; }
.status-pill.ok { background: var(--green-soft); color: var(--green); }
.status-pill.danger { background: var(--red-soft); color: var(--red); }
.status-pill.muted { background: #e4e3de; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.small-button { display: inline-grid; min-height: 31px; padding: 0 9px; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; text-decoration: none; }
.small-button:hover { border-color: var(--ink); }
.danger-text { color: var(--red); }
.empty-state { padding: 70px 24px; text-align: center; }
.empty-state > span { display: grid; width: 50px; height: 50px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 25px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 0; }
.login-wrap { min-height: calc(100vh - 230px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; align-items: center; }
.login-copy h1 { margin-top: 16px; font-size: clamp(48px, 6.7vw, 92px); }
.login-copy p { max-width: 460px; font-size: 16px; }
.login-card { max-width: 480px; width: 100%; justify-self: end; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.login-card h2 { margin: 10px 0 8px; font-size: 28px; }
.stack-form { display: grid; gap: 18px; margin-top: 28px; }
.stack-form input { padding-right: 42px; }
.edit-wrap { max-width: 650px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--ink); text-underline-offset: 4px; }
.edit-card { padding: 38px; }
.edit-card h1 { margin: 12px 0 8px; font-size: 44px; }
@media (max-width: 980px) {
  .add-grid { grid-template-columns: repeat(2, 1fr); }
  .add-grid .primary-button { grid-column: 2; }
  .login-wrap { grid-template-columns: 1fr; gap: 30px; }
  .login-copy { padding-top: 30px; }
  .login-card { justify-self: start; }
}
@media (max-width: 700px) {
  .page-shell { padding: 0 17px; }
  .topbar { height: 72px; }
  .live-dot { display: none; }
  main { padding: 36px 0 60px; }
  .hero-row { align-items: flex-start; flex-direction: column; }
  .hero-row h1 { font-size: 42px; }
  .panel-heading { align-items: flex-start; flex-direction: column; padding: 20px; }
  .add-grid { grid-template-columns: 1fr; padding: 20px; }
  .add-grid .primary-button { grid-column: auto; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 18px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: 105px 1fr; min-width: 0; padding: 10px 0; border: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  td > * { grid-column: 2; }
  td::before { grid-column: 1; grid-row: 1 / span 3; padding-top: 3px; }
  .row-actions { grid-column: 2; }
  .login-copy h1 { font-size: 52px; }
  .login-card, .edit-card { padding: 26px 22px; }
}
