
:root {
  --bg: #0b1533;
  --bg-c: #13214a;
  --gold: #cfae6e;
  --gold-hi: #f1d79a;
  --ink: #e9e2cf;
  --dim: #9a9480;
  --faint: #6b6857;
  --rule: rgba(207, 174, 110, .55);
  --rule-2: rgba(207, 174, 110, .25);
  --card: rgba(11, 21, 51, .9);

  --f-body: -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --f-title: var(--f-body);
  color-scheme: dark;
}

html:lang(ja) {
  --f-title: var(--f-body);
  --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}
html:lang(zh-Hans) {
  --f-title: var(--f-body);
  --f-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html:lang(zh-Hant) {
  --f-title: var(--f-body);
  --f-body: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
html:lang(ar) {
  --f-title: var(--f-body);
  --f-body: "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html:lang(ar) body, html:lang(ar) body * { letter-spacing: 0 !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; color: var(--ink); background: var(--bg); }

html, body { touch-action: pan-x pan-y; }
body { font-family: var(--f-body); font-weight: 300; font-size: 13px; line-height: 1.65;
  background: radial-gradient(900px 700px at 42% 52%, var(--bg-c) 0%, var(--bg) 70%) fixed, var(--bg); }
#cv { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; touch-action: none; cursor: grab; }
#cv:active { cursor: grabbing; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.title { position: fixed; left: max(64px, env(safe-area-inset-left)); top: max(52px, env(safe-area-inset-top)); font-family: var(--f-title); pointer-events: none; }
.title > * { pointer-events: auto; }
.title h1 { margin: 8px 0 0; font-size: 24px; font-weight: 600; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }

.title h1 .t2 { font-weight: 300; }
.title h1 .dash { display: inline-block; font-size: 0; width: 1px; height: 20px; background: rgba(207, 174, 110, .5); margin: 0 13px; vertical-align: middle; position: relative; top: -1px; }

html:lang(ja) .nav, html:lang(ja) .ch, html:lang(zh) .nav, html:lang(zh) .ch { letter-spacing: .06em; }
.sub { font-family: var(--f-body); font-size: 12.5px; color: var(--dim); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.sub b { font-family: var(--f-title); font-weight: 600; color: var(--gold-hi); font-size: 14px; }

.sub .tag { display: block; color: var(--gold); letter-spacing: .08em; font-size: 11.5px; }
.sub .upd { display: block; margin: 4px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 20px; font-size: 12.5px; max-width: 420px; }
.pills:empty { display: none; }
.pill { border: 1px solid var(--gold); color: var(--gold-hi); padding: 4px 14px; font-family: var(--f-title); letter-spacing: .08em; }
.pills .x { color: var(--faint); font-family: var(--f-body); }
.pills .x:hover { color: var(--dim); }

.nav { position: fixed; right: max(64px, env(safe-area-inset-right)); top: max(56px, env(safe-area-inset-top)); display: flex; gap: 22px;
  font-family: var(--f-title); font-size: 13.5px; letter-spacing: .04em; color: var(--dim); transition: opacity .5s ease; }
.nav button { padding-bottom: 6px; border-bottom: 1px solid transparent; }
.nav button:hover { color: var(--ink); }
.nav button[aria-pressed="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

.legend { position: fixed; left: max(64px, env(safe-area-inset-left)); bottom: max(52px, env(safe-area-inset-bottom)); font-size: 12px; color: var(--dim); line-height: 2; pointer-events: none; }
.legend svg { vertical-align: -1px; margin-inline-end: 4px; }

.zoom { position: fixed; right: max(64px, env(safe-area-inset-right)); bottom: max(48px, env(safe-area-inset-bottom)); display: flex; gap: 6px; align-items: center; font-family: var(--f-title); transition: opacity .5s ease; }
.zoom button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--gold-hi); font-size: 15px; background: var(--card); }
.zoom button.wide { width: auto; padding: 0 12px; font-size: 12.5px; }
.zoom button:hover { border-color: var(--gold-hi); }
.zoom span { font-size: 12px; color: var(--dim); margin-inline-start: 8px; min-width: 4em; }

body.idle .nav, body.idle .zoom { opacity: 0; pointer-events: none; }

.cart { position: fixed; right: max(64px, env(safe-area-inset-right)); top: 104px; width: 340px; max-height: calc(100dvh - 104px - 110px);
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); padding: 22px 24px 20px; }
.cart::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule-2); pointer-events: none; }
.cart[hidden] { display: none; }
.cart { touch-action: pan-y; }
.cart.wide { width: 430px; }
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-title); font-size: 11.5px; color: var(--dim); letter-spacing: .04em;
  border-bottom: 1px solid var(--rule-2); padding-bottom: 10px; margin-bottom: 14px; }
.ch button:hover { color: var(--ink); }

.ch #panel-title { margin-inline-end: auto; }
.ch .pn { display: none; gap: 2px; align-self: center; }
.cart.seq .ch .pn { display: inline-flex; }
.ch .pn { margin: -8px 0; }
.ch .pn button { font: 600 22px/1 var(--f-title); color: var(--gold-hi); padding: 4px 9px 6px; letter-spacing: 0; }
.ch .pn button:disabled { opacity: .28; cursor: default; }
.ch .pn button:disabled:hover { color: var(--gold-hi); }
.cbody { overflow-y: auto; min-height: 0; position: relative; padding-inline: 4px; margin-inline: -4px; }
.where { font-family: var(--f-title); font-size: 21px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.hl { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.off { font-size: 13px; color: var(--gold-hi); margin-top: 4px; }
.off small { display: block; color: var(--dim); font-size: 12px; }
.grid { display: grid; grid-template-columns: minmax(4.4em, max-content) minmax(0, 1fr); gap: 7px 12px; margin-top: 14px; font-size: 13px; }
.grid dt { color: var(--dim); font-size: 12px; }
.grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.grid dd small { color: var(--dim); font-size: 12px; }
.tl { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; }
.tl li { display: grid; grid-template-columns: 14px 6.6em minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 2px 0; }
.tl .d { color: var(--dim); font-variant-numeric: tabular-nums; }
.tl small { color: var(--dim); }
.src { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule-2); font-size: 12px; color: var(--dim); }
.src .more { color: var(--dim); text-decoration: underline dotted; text-underline-offset: 3px; }
.src ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.src ul[hidden] { display: none; }
.src li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 6px; }
.src li span { font-variant-numeric: tabular-nums; }
.pick { list-style: none; margin: 0; padding: 0; }
.pick button { width: 100%; text-align: start; padding: 7px 4px; border-bottom: 1px solid var(--rule-2); font-size: 12.5px; }
.pick button:hover { background: rgba(207, 174, 110, .08); }
.pick .d { color: var(--dim); font-variant-numeric: tabular-nums; margin-inline-end: 8px; }

.fl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: 13px; margin: 0; }
.fl .lab { color: var(--dim); font-size: 12px; margin-bottom: 6px; font-family: var(--f-title); letter-spacing: .04em; }
.fl .age { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-title); }
.fl .age label { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 4px; }

.fl .age .step { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--gold-hi); font: 15px/1 var(--f-title); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fl .age .step:hover { border-color: var(--gold-hi); }
.fl input[type=number] { width: 3.2em; font: 600 14px var(--f-title); color: var(--gold-hi); background: transparent; border: 1px solid var(--gold); padding: 4px 8px; text-align: center; -moz-appearance: textfield; }
.fl input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.fl .hint { color: var(--faint); font-size: 12px; margin-inline-start: 8px; }

.fl .cmp { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.fl .cmp .exact { margin-inline-start: 0; }
.fl .exact { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; color: var(--dim); font-size: 12px; cursor: pointer; }
.fl .exact input { accent-color: #cfae6e; margin: 0; }
.fl .seg { display: flex; flex-wrap: wrap; gap: 6px; }

.fl .dates { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--faint); }
.fl input[type=date] { flex: 1 1 0; font: 13px var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--rule-2); padding: 4px 8px; color-scheme: dark; min-width: 0; }
.fl input[type=date]:focus-visible { border-color: var(--gold); outline: none; }
.fl .hint.flat { display: block; margin: 6px 0 0; }
.fl .seg button { padding: 4px 10px; border: 1px solid var(--rule-2); color: var(--dim); font-size: 12.5px; }
.fl .seg button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }
.fl select { font: 13px var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--rule-2); padding: 5px 10px; max-width: 100%; }
.fl .res { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rule-2); padding-top: 12px; color: var(--dim); font-size: 12px; }
.fl .res b { font-family: var(--f-title); font-weight: 600; font-size: 34px; color: var(--gold-hi); margin-inline-end: 4px; }

.fl .res { position: sticky; bottom: 0; background: linear-gradient(rgba(12,22,52,.92), #0c1634 40%); padding-bottom: 2px; }

.lt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lt th { text-align: start; font-weight: 400; color: var(--dim); font-size: 11.5px; padding: 4px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: #0b1533; }
.lt td { padding: 7px 4px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.lt td.n { font-family: var(--f-title); color: var(--gold); width: 1.8em; }
.lt td span.n { font-family: var(--f-title); color: var(--gold); display: inline-block; min-width: 1.8em; }
.lt td.d, .lt td.num { color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lt .m { color: var(--dim); font-size: 12px; }
.lt .hl2 { color: var(--ink); opacity: .82; margin-top: 2px; }
.lt tbody tr.row { cursor: pointer; }
.lt tbody tr.row:hover td { background: rgba(207, 174, 110, .08); }
.lt-more { margin-top: 10px; font-family: var(--f-title); color: var(--gold-hi); border: 1px solid var(--rule); padding: 4px 12px; }
.lead { margin: 0 0 12px; font-size: 12.5px; color: var(--dim); }
.lead b { font-family: var(--f-title); color: var(--gold-hi); font-weight: 600; }
.about p { margin: 0 0 10px; }

.feed { position: fixed; pointer-events: none; transition: opacity .6s ease; }
.feed.off { display: none; }
.feed.side { transform: translateY(-50%); }
.feed .fr { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: start;
  pointer-events: auto; will-change: transform, opacity; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.feed .p { max-width: 100%; font-family: var(--f-title); font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .mk { display: inline-block; margin-inline-end: 6px; vertical-align: 0; opacity: 0; }
.feed .fr.now .mk { opacity: 1; }
.feed .m { max-width: 100%; margin-top: 3px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.feed .m .o { color: var(--gold-hi); }
.feed .fr:hover .p { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.feed .h { max-width: 100%; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink); opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.has-panel .feed, body.zoomed .feed { opacity: 0; }
body.has-panel .feed .fr, body.zoomed .feed .fr { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .feed .fr { transition: opacity .8s ease; } }

@media (max-width: 700px) {
  .title { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); top: max(20px, env(safe-area-inset-top)); text-align: center; }
  .pills { justify-content: center; margin-left: auto; margin-right: auto; }
  .title h1 { margin-top: 4px; }
  .sub .tag { letter-spacing: .06em; font-size: 10px; margin-top: 6px; text-wrap: balance; }

  .title h1 .t1, .title h1 .t2 { display: block; }
  .title h1 .dash { display: none; }

  .title h1 .t1 { font-size: 15px; letter-spacing: .1em; line-height: 1.3; }
  html:lang(ar) .title h1 .t1 { letter-spacing: .1em !important; }
  .title h1 .t2 { font-size: 20px; letter-spacing: .06em; line-height: 1.25; margin-top: 2px; text-wrap: balance; }
  .sub .upd { margin: 3px 0 0; }
  .sub { font-size: 11px; margin-top: 4px; }
  .pills { margin-top: 12px; font-size: 11.5px; }
  .pill { padding: 3px 10px; }
  .nav { left: 0; right: 0; top: auto; bottom: 0; justify-content: space-around; gap: 0; font-size: 12px;
    padding: 12px max(8px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--rule-2); background: rgba(8, 15, 38, .95); }
  html:lang(ja) .nav, html:lang(zh) .nav { letter-spacing: .08em; }
  .nav { z-index: 2; }
  .nav button { padding-bottom: 0; border: 0; }
  .nav button[aria-pressed="true"] { border: 0; }
  .legend { display: none; }
  .zoom { right: max(12px, env(safe-area-inset-right)); bottom: 86px; }
  .zoom span { display: none; }
  .cart, .cart.wide { left: 10px; right: 10px; top: auto; bottom: 74px; width: auto; max-width: calc(100vw - 20px); max-height: 34dvh; padding: 18px 18px 16px; }
  .ch > span { min-width: 0; overflow-wrap: anywhere; }
  .ch .pn button { padding: 4px 12px 6px; }
  .feed.band { left: 16px; right: 16px; }

  .feed.band::before { content: ""; position: absolute; left: -16px; right: -16px; top: -28px; bottom: calc(-1 * var(--below, 8px)); z-index: -1;
    background: linear-gradient(180deg, rgba(11, 21, 51, 0) 0, rgba(11, 21, 51, .85) 70px, rgba(11, 21, 51, .95) 160px, rgba(11, 21, 51, .95) calc(100% - var(--below, 8px) - 24px), rgba(11, 21, 51, 0) 100%); }
  .feed.band .fr { align-items: center; text-align: center; }
  .feed.band .p { font-size: 15px; }
  .feed.band .m { font-size: 11.5px; margin-top: 2px; }
  .feed.band .h { font-size: 13px; margin-top: 2px; }
  .feed.band .fr.has-h .p, .feed.band .fr.has-h .m { line-height: 1.4; }

  .feed.band .m .v { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
  .feed.band .m .sep { display: none; }
  .pick button { white-space: normal; }

  .cart .src { position: sticky; bottom: 0; background: rgb(11, 21, 51); }
  .cart .src ul { max-height: 6.4em; overflow-y: auto; }
  body.has-panel .zoom { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav, .zoom { transition: none; } }

.share { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-hi); }
.share .ok, .share.done .ln { display: none; }
.share.done .ok { display: inline; }
.share svg { flex: none; }
.share:disabled { opacity: .35; cursor: default; }
.ch .share { display: none; align-self: center; font-size: 11.5px; }
.cart.is-case .ch .share { display: inline-flex; }
.fl .res .rl { display: flex; flex-direction: column; gap: 6px; }
.fl .res .share { font-size: 12px; padding: 2px 0; align-self: flex-start; }
.miss { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.7; }

.feed .m { white-space: normal; text-overflow: clip; }

.ch { flex-wrap: wrap; row-gap: 6px; }
.ch #panel-title { flex: 1 1 10em; min-width: 0; overflow-wrap: anywhere; }
.ch .acts { display: flex; align-items: baseline; gap: 12px; flex: none; margin-inline-start: auto; white-space: nowrap; }
.fl .res .share { text-align: start; }

.grid dt { max-width: 11em; overflow-wrap: anywhere; }

.pill { overflow-wrap: anywhere; }
.nav button { white-space: nowrap; }
@media (max-width: 700px) {
  .feed.band .m .v { white-space: normal; text-overflow: clip; }

  .nav { overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: none; }
}

.src .rm-open { float: inline-end; color: var(--faint); font-size: 11.5px; text-decoration: underline dotted; text-underline-offset: 3px; }
.src .rm-open:hover { color: var(--dim); }
.rm p { margin: 10px 0 0; color: var(--dim); font-size: 13px; line-height: 1.7; }
.rm .ts { margin-top: 14px; min-height: 65px; }
.rm .rm-send { margin-top: 12px; padding: 6px 14px; border: 1px solid var(--gold); color: var(--gold-hi); font-size: 12.5px; }
.rm .rm-send:disabled { opacity: .35; cursor: default; }
.rm .rm-msg:empty { display: none; }

