:root {
    color-scheme: light;
    --paper: #f5f3ed;
    --card: #fffdf8;
    --ink: #202b2a;
    --muted: #5b6862;
    --line: #dedfd5;
    --accent: #9e3827;
    --accent-bg: #f7e9df;
    --route: #1e3530;
    --display: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
    --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 2px solid #176d57;
    outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { min-height: 86px; display: flex; gap: 22px; align-items: center; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--accent); color: #fff6e9; font: 700 18px var(--display); letter-spacing: 0; }
.top-date { margin-left: auto; color: var(--muted); font-size: 13px; }

.route {
    display: flex; align-items: end; justify-content: space-between; gap: 36px;
    position: relative; overflow: hidden; isolation: isolate;
    padding: 38px 44px 39px; border-radius: 13px;
    background: var(--route); color: #fff8eb;
}
.route::before {
    content: ""; position: absolute; z-index: -1; inset: 0 0 0 42%; pointer-events: none;
    background: repeating-linear-gradient(121deg, transparent 0 23px, #f5f1d212 23px 24px);
    mask-image: linear-gradient(to right, transparent, #000 73%);
}
.route-kicker { display: flex; align-items: center; gap: 10px; color: #d6ded2; font-size: 13px; letter-spacing: .19em; }
.demo-tag { color: #ffe8c2; border: 1px solid #ffe8c276; padding: 2px 7px; border-radius: 4px; letter-spacing: 0; }
.route h1 { font: 700 clamp(44px, 7.5vw, 78px)/1.22 var(--display); letter-spacing: .02em; margin: 6px 0 10px; }
.route-arrow { color: #e7a37e; font-family: Georgia, serif; font-weight: 400; }
.route-sub { color: #d6ded2; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.route-meta { display: flex; min-width: 214px; gap: 24px; padding-bottom: 2px; }
.route-meta div { border-left: 1px solid #c7d9ce6b; padding-left: 16px; }
.route-meta span, .route-meta strong { display: block; }
.route-meta span { font-size: 12px; color: #d6ded2; margin-bottom: 6px; }
.route-meta strong { font: 400 33px/1.05 Georgia, serif; font-variant-numeric: tabular-nums; }

.layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(270px, 1fr); gap: 27px; margin: 32px 0 39px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 60px; margin-bottom: 17px; }
h2 { font: 700 23px/1.2 var(--display); }
.section-heading p, .muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.button { min-height: 39px; border: 1px solid transparent; border-radius: 6px; padding: 8px 15px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .18s ease; }
.primary { background: var(--accent); color: #fff9ef; }
.primary:hover:not(:disabled) { background: #832c21; }
.button:disabled { opacity: .53; cursor: default; }
.outline { background: var(--card); color: var(--route); border-color: #919e92; }
.outline:hover { background: #eaf0e8; }
.link-button { background: transparent; border: 0; color: var(--accent); font-size: 13px; min-height: 34px; padding: 3px 0; }
.link-button:hover { text-decoration: underline; }

.sidebar, .date-list { display: grid; gap: 15px; }
.panel, .date-card, .empty { background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.panel { padding: 21px; }
.add-panel h2, .login h1 { margin-bottom: 17px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
input, textarea { display: block; width: 100%; min-width: 0; color: var(--ink); background: #faf9f3; border: 1px solid #cbcec1; border-radius: 5px; padding: 9px 10px; line-height: 1.5; }
textarea { resize: vertical; margin: 8px 0 0; }
.bulk { padding: 10px 0 12px; font-size: 13px; color: var(--muted); }
.add-panel .button { width: 100%; }
.feedback { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 9px; }
.feedback:empty { display: none; }
.feedback[data-error="true"] { color: var(--accent); }
.empty { min-height: 183px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px; text-align: center; border-style: dashed; }
.empty strong { font: 700 21px var(--display); }
.empty p { margin-top: 9px; color: var(--muted); font-size: 14px; }

.date-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.date-head h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font: 700 20px/1.15 Georgia, var(--display); font-variant-numeric: tabular-nums; }
.date-head h3 span { font: 400 12px var(--body); color: var(--muted); }
.date-head .link-button { color: var(--muted); }
.date-card.past { background: #f9f8f3; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote { min-width: 0; padding: 16px; }
.quote + .quote { border-left: 1px dashed var(--line); }
.quote-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.tag { font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 4px; background: #e7eee5; color: #29463b; }
.tag.stale { background: var(--accent-bg); color: #803629; }
.price { color: var(--route); font: 700 38px/1.2 Georgia, serif; margin: 7px 0 5px; overflow-wrap: anywhere; }
.price span { font-size: 20px; margin-right: 3px; }
.quote-line { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.quote-state { margin: 14px 0 4px; font-size: 14px; }
.quote small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.quote a { font-size: 12px; display: inline-block; margin-top: 7px; text-underline-offset: 3px; color: #2a5546; }

.notice-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
#notice-list { display: grid; }
.notice { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 11px; }
.notice summary { font-size: 13px; font-weight: 600; line-height: 1.5; }
.notice-time { display: block; margin: 3px 0 0 13px; color: var(--muted); font-size: 11px; }
.notice-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; margin: 8px 0 0 13px; font: 12px/1.55 var(--body); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 16px 0 27px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer div { display: flex; gap: 18px; }
.footer a { text-underline-offset: 3px; }
.login { max-width: 410px; margin: 32px auto; padding: 28px; }
.login h1 { font: 700 29px var(--display); }
.login .button { margin-top: 12px; width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

@media (max-width: 850px) {
    .wrap { width: calc(100% - 36px); }
    .layout { grid-template-columns: minmax(0, 1.75fr) minmax(228px, 1fr); gap: 14px; }
    .route { padding: 31px; }
    .panel, .quote { padding: 14px; }
}
@media (max-width: 650px) {
    .topbar { min-height: 65px; gap: 12px; }
    .brand { font-size: 15px; }
    .top-date { font-size: 11px; }
    .route { flex-direction: column; align-items: start; gap: 22px; padding: 23px; }
    .route-meta strong { font-size: 26px; }
    .layout { grid-template-columns: 1fr; margin-top: 19px; }
    .sidebar { display: contents; }
    .sidebar .add-panel { grid-row: 1; }
    .price { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
