/* Quest 1.2. The look follows the compass: midnight navy, brass, ivory, and a serif for names and years.
   One column that scrolls like a page. Phones: a bottom bar of four. From 900px: the same four sit in the header. */
:root {
  --bg: #0a1019; --card: #141f31; --card2: #1c2a42; --row: #223250; --line: #293a56; --text: #f3efe6; --dim: #9aa7bd;
  --acc: #d8b25c; --acc2: #f0d48a; --acc-ink: #1a1304; --blue: #8fc1ee; --danger: #ff6b5e; --ok: #7fd4a0; --red: #e2463a;
  --serif: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;   /* one modern face throughout (Ted, 28 Nov 2026: the serif read as old-timey) */
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --wrap: 1240px; --head: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; overscroll-behavior-y: none; overflow-x: clip; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue); text-decoration: none; }
img { display: block; max-width: 100%; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.dim { color: var(--dim); }

/* Header (wide) and bottom bar (phone) ------------------------------------------------------------ */
.head { position: sticky; top: 0; z-index: 20; background: rgba(10, 16, 25, .86); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .07); padding-top: var(--st); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: var(--head); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.01em; color: var(--text); }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.tabs { display: flex; gap: 4px; margin-left: 14px; }
.tabs a { padding: 8px 15px; border-radius: 999px; color: var(--dim); font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--acc-ink); background: var(--acc); }
.head .btn { min-height: 40px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: var(--card); border: 1px solid var(--line); flex: none; }
.icon-btn:hover { background: var(--card2); }
.icon-btn.on { border-color: var(--acc); color: var(--acc); }
.nav4 { display: none; }

.page { max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 90px; }
.page.narrow { max-width: 800px; }
.page.mid { max-width: 1180px; }
.ptop { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.ptop h1 { font-family: var(--serif); font-size: 38px; letter-spacing: -.02em; line-height: 1.05; font-weight: 700; }
.ptop .sub { color: var(--dim); font-size: 14px; padding-bottom: 5px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-weight: 600; margin: -6px 0 14px -6px; padding: 6px; border-radius: 9px; }
.back:hover { color: var(--text); }

/* Buttons, chips, forms -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 13px; background: linear-gradient(180deg, var(--acc2), var(--acc)); color: var(--acc-ink); font-weight: 700; font-size: 15px; border: 1px solid transparent; text-align: center; white-space: nowrap; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(216, 178, 92, .16); }
.btn .ico { width: 18px; height: 18px; }
.btn .picon { width: 22px; height: 22px; border-radius: 6px; flex: none; margin-left: -3px; }
.btn.ghost { background: var(--card2); color: var(--text); border-color: var(--line); font-weight: 600; box-shadow: none; }
.btn.ghost:hover { background: var(--row); }
.btn.danger { background: none; color: var(--danger); border-color: rgba(255, 107, 94, .4); font-weight: 600; box-shadow: none; }
.btn.armed, .btn.danger.armed { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: none; }
.btn.wide { display: flex; width: 100%; }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 14px; border-radius: 11px; }
.btn:disabled { opacity: .55; cursor: default; }
.link { color: var(--blue); font-weight: 600; font-size: 14px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 3px; max-width: 100%; }
.seg button { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.seg button.on { background: var(--text); color: #0a1019; }
.seg.full { display: flex; background: var(--bg); }
.seg.full button { flex: 1; padding: 10px 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--dim); }
.chip.on { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }
.chip .ico { width: 15px; height: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card + .card { margin-top: 14px; }
.card h2 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.005em; }
.card h2 .ico { vertical-align: -4px; margin-right: 7px; color: var(--acc); }
.hint { color: var(--dim); font-size: 13px; }
.empty { color: var(--dim); text-align: center; padding: 40px 14px; }
.empty h2 { color: var(--text); font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }

.form > * + * { margin-top: 15px; }
.form label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--dim); }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .gatecard input, .url {
  display: block; width: 100%; margin-top: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--text); font-size: 16px; outline: 0; -webkit-appearance: none; appearance: none; min-height: 48px; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa7bd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.form textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.form input:focus, .form select:focus, .form textarea:focus, .gatecard input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(216, 178, 92, .14); }
.form .lbl + * { margin-top: 6px; }
.form label.btn, .mcard label.btn { display: inline-flex; font-size: 14px; color: var(--text); font-weight: 600; cursor: pointer; }
.form #f-name { font-family: var(--serif); font-size: 21px; font-weight: 600; min-height: 54px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > * { min-width: 0; }
.span { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; color: var(--dim); font-size: 14px; font-weight: 600; }
.span .btn { grid-column: 2; justify-self: start; }
.mdpick { display: flex; gap: 6px; }
.mdpick select { margin-top: 0 !important; width: auto !important; min-width: 0; }
.mdpick select[data-part="m"] { width: 190px !important; }
.mdpick select[data-part="d"] { width: 78px !important; }
.mdpick select:disabled { opacity: .45; }
.starbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 15px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--dim); font-weight: 600; }
.starbtn.on { color: var(--acc); border-color: var(--acc); }
.starbtn.on .ico { fill: var(--acc); }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.linkrow:first-child { border-top: 0; padding-top: 0; }
.linkrow input { margin-top: 0 !important; }
.linkrow small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addrow { display: flex; gap: 8px; }
.addrow input { margin-top: 0 !important; flex: 1; min-width: 0; }
.photobox { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.photobox img { width: 132px; height: 99px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.photobox .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 14px; border: 1px dashed #3a4f73; color: var(--acc); font-weight: 600; }
.more:hover { background: var(--card); }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; margin: 22px -24px -90px; padding: 12px 24px calc(12px + var(--sb)); background: rgba(10, 16, 25, .93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.savebar .btn:not(.ghost):not(.danger) { min-width: 140px; }

/* Physical demand: one, two or three peaks, plus the word ---------------------------------------- */
.dem { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dem svg { width: 26px; height: 14px; flex: none; }
.dem svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .45; }
.dem svg path.f { fill: currentColor; opacity: 1; }

/* Home: the opening scene, the year rail, then a wall of posters ------------------------------------ */
.scene { position: relative; margin: -28px calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); height: 250px; display: flex; align-items: flex-end; background: #0a1019 url(/static/art/hero.jpg) center 30% / cover no-repeat; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 25, .15) 0%, rgba(10, 16, 25, .35) 45%, var(--bg) 100%); }
.scene-in { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-end; gap: 22px; padding-bottom: 20px; flex-wrap: wrap; }
.scene h1 { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.025em; font-weight: 700; text-shadow: 0 2px 22px rgba(0, 0, 0, .55); }
.scene h1 small { display: block; font: 700 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; text-shadow: none; }
.scene .stats { display: flex; gap: 26px; margin-left: auto; padding-bottom: 4px; }
.scene .stats div { text-align: right; }
.scene .stats b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scene .stats span { color: var(--dim); font-size: 12.5px; font-weight: 600; }

.rail { position: sticky; top: calc(var(--head) + var(--st) + 1px); z-index: 9; margin: 0 calc(50% - 50vw); padding: 12px calc(50vw - 50%); background: rgba(10, 16, 25, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rail-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.rail-in::-webkit-scrollbar { display: none; }
.ychip { flex: none; min-width: 86px; padding: 8px 13px 9px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); color: var(--dim); text-align: left; }
.ychip b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.ychip span { display: block; font-size: 11.5px; font-weight: 600; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ychip.has { color: var(--text); border-color: rgba(216, 178, 92, .55); background: linear-gradient(180deg, #1d2b44, #152137); }
.ychip.has span { color: var(--acc); }
.ychip.sd b { font-size: 16px; line-height: 1.3; }
.ychip:hover { border-color: var(--acc); }

.sec { padding-top: 34px; scroll-margin-top: calc(var(--head) + var(--st) + 70px); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.sec-head h2.word { font-size: 34px; letter-spacing: -.02em; }
.sec-head .tot { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.sec-head .tot b { color: var(--text); font-weight: 600; }
.sec-head .yadd { align-self: center; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--acc); border: 1px solid rgba(216, 178, 92, .45); margin-left: -4px; }
.sec-head .yadd:hover { background: var(--acc); color: var(--acc-ink); }
.sec-head .yadd .ico { width: 17px; height: 17px; }
.sec-head h2 + .tot { margin-left: 0; }
/* Years sit side by side while they are short, so three quiet years do not take three screens. */
.yflow { display: flex; flex-wrap: wrap; gap: 0 46px; align-items: flex-start; }
.yflow .sec { max-width: 100%; }
.yflow .sec-head { gap: 6px 14px; }
.yflow .sec-head .tot { flex-basis: 100%; }
.yflow .posters { display: flex; flex-wrap: wrap; }
.yflow .poster { width: 212px; }
.sec > .hint { margin: -6px 0 16px; font-size: 14px; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px; }
.poster { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #16233a center / cover no-repeat; box-shadow: 0 14px 34px rgba(0, 0, 0, .38); transition: transform .18s ease, box-shadow .18s ease; isolation: isolate; }
.poster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; pointer-events: none; z-index: 3; }
.poster .pl { position: absolute; inset: 0; color: var(--text); display: block; }
.poster .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, 0) 30%, rgba(6, 10, 16, .55) 62%, rgba(6, 10, 16, .92) 100%); }
.poster.art .shade { background: linear-gradient(180deg, rgba(6, 10, 16, .1) 0%, rgba(6, 10, 16, .3) 45%, rgba(6, 10, 16, .82) 100%); }
.poster .ptext { position: absolute; left: 15px; right: 15px; bottom: 14px; }
.poster .ptext b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--serif); font-size: 19px; line-height: 1.18; font-weight: 700; letter-spacing: -.005em; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.poster.art .ptext b { font-size: 22px; -webkit-line-clamp: 4; }
.poster .pmeta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 7px; font-size: 12.5px; color: rgba(243, 239, 230, .8); font-variant-numeric: tabular-nums; }
.poster .pmeta:empty { display: none; }
.pyear { position: absolute; top: 11px; left: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(8, 12, 19, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--acc2); font-size: 12.5px; font-weight: 700; border: 1px solid rgba(216, 178, 92, .45); }
.pyear:hover { background: var(--acc); color: var(--acc-ink); }
.pyear .ico { width: 14px; height: 14px; }
.flag { position: absolute; top: 11px; left: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 8px; border-radius: 999px; background: rgba(8, 12, 19, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 700; pointer-events: none; }
.flag .ico { width: 14px; height: 14px; }
.flag.done { color: var(--ok); }
.flag.star { left: auto; right: 11px; padding: 0 8px; color: var(--acc2); }
.flag.star .ico { fill: var(--acc2); }

.ychip.on { border-color: var(--acc); background: var(--acc); color: var(--acc-ink); }
.ychip.on span { color: var(--acc-ink); }
.rail-in { align-items: stretch; }
.rail-in > .grow { min-width: 6px; }
.assignbtn { align-self: center; flex: none; position: sticky; right: 0; }
.rail.assigning { background: rgba(26, 22, 10, .94); border-bottom-color: rgba(216, 178, 92, .4); }
.assignhint { margin-top: 10px; font-size: 14px; color: #e8dfc8; }
.assignhint b { color: var(--acc2); }
button.poster { display: block; width: 100%; padding: 0; cursor: pointer; opacity: .78; }
button.poster.in { opacity: 1; outline: 3px solid var(--acc); outline-offset: 2px; }
button.poster .ptext { text-align: left; }
.flag.inyear { background: var(--acc); color: var(--acc-ink); }
.posters.assign { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

/* Timeline: a journey down the page. Years are chapters; photos alternate either side of a gold spine. -------- */
.tltop { margin-bottom: 14px; }
.sdock { position: sticky; top: calc(var(--head) + var(--st) + 1px); z-index: 8; margin: 0 -24px; padding: 12px 24px 14px; background: rgba(10, 16, 25, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sdock.over { background: rgba(60, 48, 18, .92); box-shadow: 0 0 0 2px var(--acc) inset; }
.sdock-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sdock-h b { font-family: var(--serif); font-size: 18px; }
.sdock-h span { color: var(--dim); font-weight: 600; font-size: 13px; }
.sdock-in { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sdock-in::-webkit-scrollbar { display: none; }
.qthumb { flex: none; width: 104px; color: var(--text); cursor: grab; user-select: none; -webkit-user-select: none; }
.qthumb .gp { display: block; height: 70px; border-radius: 12px; background: #16233a center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: transform .2s, box-shadow .2s; }
.qthumb b { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; color: #d5dbe6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tjourney { max-width: 1040px; margin: 0 auto; padding-top: 8px; }
.ty { position: relative; padding: 46px 0 10px; border-radius: 26px; }
.ty.over { background: rgba(216, 178, 92, .07); box-shadow: 0 0 0 2px rgba(216, 178, 92, .55) inset; }
.tyh { text-align: center; position: relative; z-index: 1; }
.tyh h2 { font-family: var(--serif); font-size: 92px; line-height: .95; letter-spacing: -.045em; font-weight: 700; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fbf6ea 20%, #c9a858 115%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tyh p { margin-top: 10px; color: var(--acc); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.ty.bare { padding: 18px 0 6px; }
.ty.bare .tyh { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ty.bare .tyh::before, .ty.bare .tyh::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.ty.bare .tyh::after { background: linear-gradient(90deg, var(--line), transparent); }
.ty.bare .tyh h2 { font-size: 30px; letter-spacing: -.02em; background: none; color: #56657f; }
.ty.bare .tyh p { margin: 0; color: #56657f; letter-spacing: .12em; }
/* The months of every year appear only while a photo is in the air */
.ymonths { display: none; grid-template-columns: 1.4fr repeat(12, 1fr); gap: 6px; max-width: 860px; margin: 16px auto 0; padding: 0 12px; }
body.dragging .ymonths { display: grid; }
.ymonths button { height: 44px; border-radius: 12px; border: 1.5px dashed rgba(216, 178, 92, .55); background: rgba(216, 178, 92, .06); color: var(--acc2); font-weight: 700; font-size: 13px; text-align: center; }
.ymonths button.over { background: var(--acc); color: var(--acc-ink); border-style: solid; transform: scale(1.08); }
.tloose { text-align: center; margin-top: 26px; }
.tlabel { display: block; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.tloose-in { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tspine { position: relative; margin-top: 34px; padding-bottom: 20px; }
.tspine::before { content: ""; position: absolute; left: 50%; top: -14px; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, rgba(122, 138, 166, 0), rgba(122, 138, 166, .55) 40px, rgba(122, 138, 166, .55) calc(100% - 40px), rgba(122, 138, 166, 0)); }
.tnode { position: relative; width: 50%; padding: 0 46px; }
.tnode.r { margin-left: 50%; }
.tnode + .tnode { margin-top: -112px; }
.tdot { position: absolute; top: 34px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--acc2); box-shadow: 0 0 0 5px rgba(216, 178, 92, .14), 0 0 18px rgba(240, 212, 138, .6); }
.tnode.l .tdot { right: -7.5px; }
.tnode.r .tdot { left: -7.5px; }
.tnode::after { content: ""; position: absolute; top: 40.5px; width: 34px; height: 2px; background: rgba(122, 138, 166, .55); }
/* A year to scale: a wide slate band of twelve months, each photo tied to its date (not gold: Ted, 27 Nov 2026) */
.tscale { --mh: 110px; --bw: 52px; position: relative; margin-top: 30px; min-height: calc(var(--mh) * 12); }
.tspine + .tscale { margin-top: 4px; }
.tmrow { cursor: pointer; transition: background .15s; }
@media (hover: hover) { .tmrow:hover { background: rgba(255, 255, 255, .03); } }
.yadd { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; height: 34px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 600; }
.yadd .ico { width: 14px; height: 14px; }
.yadd:hover { color: var(--acc2); border-color: rgba(216, 178, 92, .55); }
.ty.bare .yadd { margin-top: 0; height: 28px; padding: 0 11px; font-size: 12px; }
body.dragging .yadd { visibility: hidden; }
/* Timeline on a wide screen: left to right, six years to the screen, small photos above and below one line */
.sdock.hs .sdock-in { display: flex; flex-wrap: wrap; gap: 8px 6px; overflow: visible; }
.page.full .sdock { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }

.hyh { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: visible; background: #111a2a; }
.hyhd { padding: 10px 12px 9px; border-left: 1px solid var(--line); min-width: 0; }
.hyhd:first-child { border-left: 0; border-top-left-radius: 15px; }
.hyhd > div:first-child { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.hyhd b { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hyhd > div > span { color: var(--dim); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hyhd.bare b { color: #6c7b93; }
.hyhd.cur b { color: var(--acc2); }
.hyhd .yadd { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; border: 1px dashed #3a4f73; color: var(--dim); font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.hyhd:hover .yadd, .hyhd .yadd:focus-visible { opacity: 1; }
.hyhd .yadd:hover { color: var(--acc2); border-color: var(--acc); }
.hyhd .yadd .ico { width: 13px; height: 13px; }
.hyhd.over, .sdock.over { background: rgba(216, 178, 92, .14); box-shadow: inset 0 0 0 2px var(--acc); }
.hloose { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 4px; margin-top: 7px; }
.hloose small { flex: 0 0 100%; color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.htrack { position: relative; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: #0e1624; overflow: visible; }
.hynum { max-width: 100%; overflow: hidden; }
.hband { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.hband:first-child { border-left: 0; }
.hband.alt { background: rgba(255, 255, 255, .018); }
.hband.cur { background: rgba(216, 178, 92, .05); }
.hynum { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 92px; font-weight: 800; letter-spacing: -.04em; color: rgba(255, 255, 255, .035); pointer-events: none; user-select: none; }
.hm { position: absolute; top: 0; bottom: 0; cursor: pointer; }
.hm + .hm { border-left: 1px solid rgba(41, 58, 86, .28); }
.hm:nth-child(3n + 5) { border-left-color: rgba(41, 58, 86, .7); }
.hm span { position: absolute; left: 0; right: 0; text-align: center; color: #7f8ca3; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
/* Months already behind us sit a shade darker than the ones still ahead. */
.hm.past { background: rgba(0, 0, 0, .3); }
.hm.past span { color: #55627a; }
.hm:hover { background: rgba(255, 255, 255, .03); }
.hm:hover span { color: var(--text); }
.hm.over { background: rgba(216, 178, 92, .2); box-shadow: inset 0 0 0 1.5px var(--acc2); }
.hm.over span { color: var(--acc2); }
.hline { position: absolute; left: 0; right: 0; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, #b8923f, #f0d48a 50%, #b8923f); box-shadow: 0 0 14px rgba(240, 212, 138, .45); pointer-events: none; }
.hpan { position: absolute; z-index: 6; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--acc2), var(--acc)); color: var(--acc-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 0 4px #0a1019; transition: transform .15s; }
.hpan.l { left: -15px; } .hpan.r { right: -15px; }
.hpan:hover { transform: scale(1.12); }
.hpan .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.hstem { position: absolute; width: 1.5px; margin-left: -.75px; background: linear-gradient(180deg, rgba(240, 212, 138, .5), rgba(240, 212, 138, .5)); opacity: .5; pointer-events: none; }
.hdot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #0e1624; border: 2px solid var(--acc2); pointer-events: none; z-index: 1; }
.hdot.fx { background: var(--acc2); border-radius: 2px; transform: rotate(45deg); }
.hdot.done { border-color: var(--ok); background: var(--ok); }
.hnow { position: absolute; z-index: 2; pointer-events: none; }
.hnow i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 0 0 rgba(240, 212, 138, .6); animation: hnow 2.4s ease-out infinite; }
.hnow b { position: absolute; left: 10px; top: -22px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc2); }
@keyframes hnow { to { box-shadow: 0 0 0 16px rgba(240, 212, 138, 0); } }
.hq { position: absolute; z-index: 3; width: 66px; display: block; text-align: center; color: var(--text); cursor: grab; }
.hq[data-lock="1"] { cursor: pointer; }
.hq .hp { position: relative; display: block; width: 58px; height: 44px; margin: 0 auto; border-radius: 11px; background: #16233a center 40% / cover no-repeat; box-shadow: 0 0 0 1.5px rgba(240, 212, 138, .38), 0 6px 14px rgba(0, 0, 0, .5); transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s; }
.hq > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 10.5px; font-weight: 650; line-height: 1.15; color: #dfe5ee; overflow-wrap: anywhere; }
.hq:hover, .hq:focus-visible { z-index: 20; outline: 0; }
.hq:hover .hp, .hq:focus-visible .hp { transform: scale(1.16); box-shadow: 0 0 0 2px var(--acc2), 0 0 0 6px rgba(240, 212, 138, .18), 0 10px 22px rgba(0, 0, 0, .6); }
.hq:hover > b { color: #fff; }
.hq.done .hp { box-shadow: 0 0 0 2px var(--ok), 0 6px 14px rgba(0, 0, 0, .5); }
.hq .hd { display: block; width: max-content; max-width: 100%; margin: 0 auto 5px; font-style: normal; white-space: nowrap; padding: 1px 7px; border-radius: 7px; background: var(--acc2); color: var(--acc-ink); font-size: 10px; font-weight: 800; line-height: 1.45; }
.hq.dn .hd { margin: 5px auto 0; }
.hq .hp em.ok { position: absolute; font-style: normal; right: -5px; top: -5px; width: 17px; height: 17px; padding: 0; border-radius: 50%; background: var(--ok); color: #06210f; display: grid; place-items: center; }
.hq .hp em.ok .ico { width: 11px; height: 11px; stroke-width: 3; }
.hq.sm { position: relative; width: 58px; }
.hq.sm > b { font-size: 10px; }
/* A quest parked on the year (no month) shows its name, like the ones in Someday (Ted, 28 Nov 2026). */
.hloose .hq.sm { width: 60px; } .hloose .hq.sm .hp { width: 52px; height: 39px; border-radius: 10px; }
.hq.lifting { opacity: .3; }
.hq.ins-before .hp::before, .hq.ins-after .hp::before { content: ""; position: absolute; top: -4px; bottom: -4px; width: 4px; border-radius: 2px; background: var(--acc2); box-shadow: 0 0 12px rgba(240, 212, 138, .9); }
.hq.ins-before .hp::before { left: -7px; } .hq.ins-after .hp::before { right: -7px; }
.hcard { display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: 228px; padding: 8px 8px 10px; border-radius: 16px; background: #1a2740; border: 1px solid #3a4f73; box-shadow: 0 22px 50px rgba(0, 0, 0, .65); text-align: left; pointer-events: none; }
.hq.dn .hcard { bottom: auto; top: calc(100% + 10px); }
.hq.el .hcard { left: 0; transform: none; } .hq.er .hcard { left: auto; right: 0; transform: none; }
.hq:hover .hcard, .hq:focus-visible .hcard { display: block; animation: hcard .16s ease-out; }
body.dragging .hcard { display: none !important; }
@keyframes hcard { from { opacity: 0; margin-bottom: -6px; } }
.hcp { display: block; height: 128px; border-radius: 11px; background: #16233a center / cover no-repeat; margin-bottom: 8px; }
.hcard strong { display: block; padding: 0 4px; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 16px; font-weight: 800; line-height: 1.15; }
.hcard small { display: block; padding: 2px 4px 0; color: var(--acc2); font-size: 12.5px; font-weight: 700; }
.hcard .pmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 5px 4px 0; color: var(--dim); font-size: 12px; font-weight: 600; }
.dghost em { position: absolute; left: 8px; top: 8px; font-style: normal; padding: 2px 9px; border-radius: 999px; background: var(--acc2); color: var(--acc-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.dghost em:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .hnow i { animation: none; } .hq .hp { transition: none; } }

/* Timeline on a phone: one line down the page, a compact row per quest */
.vhint { margin: -8px 0 10px; }
.sdock.vs { position: static; }
.vtl { position: relative; margin-top: 8px; }
.vtl::before { content: ""; position: absolute; left: 50px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #b8923f, #f0d48a 50%, #b8923f); opacity: .75; }
.vy header { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 16px 0 8px 68px; }
.vy header::before { content: ""; position: absolute; left: 44px; top: 50%; width: 15px; height: 15px; margin-top: -4px; border-radius: 50%; background: var(--bg); border: 3px solid var(--acc2); }
.vy header b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.vy header span { flex: 1; min-width: 0; color: var(--dim); font-size: 13px; font-weight: 600; }
.vy.cur header b { color: var(--acc2); }
.vy.bare header { padding-top: 9px; padding-bottom: 5px; }
.vy.bare header b { font-size: 19px; color: #6c7b93; }
.vy.bare header::before { width: 9px; height: 9px; left: 47px; margin-top: -3px; border-width: 2px; border-color: #6c7b93; }
.vy .yadd { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px dashed #3a4f73; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.vy .yadd .ico { width: 14px; height: 14px; }
.vq { position: relative; display: grid; grid-template-columns: 38px 24px 64px minmax(0, 1fr) 18px; align-items: center; gap: 0 10px; padding: 6px 4px 6px 0; color: var(--text); border-radius: 12px; }
.vq:active { background: rgba(255, 255, 255, .05); }
.vq .vm { text-align: right; color: var(--acc2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vq .vdot { justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc2); z-index: 1; margin-left: 5px; }
.vq.fx .vdot { background: var(--acc2); border-radius: 2px; transform: rotate(45deg); }
.vq.done .vdot { background: var(--ok); border-color: var(--ok); }
.vq .vp { position: relative; width: 64px; height: 48px; border-radius: 11px; background: #16233a center 40% / cover no-repeat; box-shadow: 0 0 0 1.5px rgba(240, 212, 138, .35), 0 5px 12px rgba(0, 0, 0, .45); }
.vq.done .vp { box-shadow: 0 0 0 2px var(--ok), 0 5px 12px rgba(0, 0, 0, .45); }
.vq .vp em { position: absolute; right: -5px; top: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--ok); color: #06210f; display: grid; place-items: center; }
.vq .vp em .ico { width: 11px; height: 11px; stroke-width: 3; }
.vq .vx b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vq .vx small { display: block; margin-top: 2px; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vq > .ico { width: 16px; height: 16px; color: #55657f; }

/* Place quests: the sheet that puts many quests in a year, a month or on a day */
.pwhen { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
.pwhen > div { min-width: 0; }
.pwhen select { width: 100%; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: min(46dvh, 420px); overflow: hidden auto; scrollbar-width: thin; padding-right: 4px; }
#pl-q { width: 100%; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; box-sizing: border-box; padding: 7px 12px 7px 7px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); color: var(--text); text-align: left; }
.prow[hidden] { display: none; }
.prow:hover { border-color: var(--acc); }
.prow.on { border-color: var(--acc); background: #1b2740; }
.prow .gp { flex: none; width: 54px; height: 38px; border-radius: 9px; background: #16233a center / cover no-repeat; }
.prow b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow small { flex: none; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.prow.on small { color: var(--acc2); font-weight: 700; }
.prow .ico { flex: none; width: 18px; height: 18px; color: var(--acc); }
.tmrows { position: absolute; top: 0; left: 0; right: 0; }
.tmrow { height: var(--mh); border-radius: 16px; }
.tmrow.over { background: rgba(216, 178, 92, .09); box-shadow: 0 0 0 1.5px rgba(216, 178, 92, .5) inset; }
.tband { position: absolute; top: 0; left: 50%; width: var(--bw); margin-left: calc(var(--bw) / -2); border-radius: 26px; overflow: hidden; background: linear-gradient(90deg, #111a2a, #18243a 50%, #111a2a); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; }
.tband span { display: flex; justify-content: center; align-items: center; height: var(--mh); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #a9b5c9; }
.tband span + span { border-top: 1px solid rgba(255, 255, 255, .09); }
.tnode.at { position: absolute; left: 0; margin: 0 !important; padding: 0 46px; }
.tnode.at.r { left: 50%; }
.tnode.at::after { display: none; }
.tnode.at .tdot { top: calc(var(--dot, 41px) - 7.5px); }
.tnode.at.l .tdot { right: 18.5px; }
.tnode.at.r .tdot { left: 18.5px; }
.tlink { position: absolute; top: calc(var(--dot, 41px) - 1px); width: var(--len, 23px); height: 2px; background: rgba(122, 138, 166, .6); transform: rotate(var(--ang, 0rad)); }
/* A quest with an exact date gets a brighter line than one pencilled in for a month */
.tnode.at.fx .tlink { background: rgba(226, 233, 245, .95); }
.tnode.at.l .tlink { right: 26px; transform-origin: 100% 50%; }
.tnode.at.r .tlink { left: 26px; transform-origin: 0 50%; }
.tnode.l::after { right: 8px; }
.tnode.r::after { left: 8px; }
.tm { position: absolute; top: 31px; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--acc2); white-space: nowrap; }
.tnode.l .tm { left: calc(100% + 22px); }
.tnode.r .tm { right: calc(100% + 22px); }
.qcard { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #16233a center / cover no-repeat; color: var(--text); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 24px 54px rgba(0, 0, 0, .5); cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.qcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, 0) 38%, rgba(6, 10, 16, .5) 68%, rgba(6, 10, 16, .9) 100%); border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.qcard .qtext { position: absolute; left: 20px; right: 20px; bottom: 16px; text-align: left; }
.qcard .qtext b { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.qcard .pmeta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 7px; font-size: 13px; color: rgba(243, 239, 230, .82); font-variant-numeric: tabular-nums; }
.qcard .pmeta:empty { display: none; }
.qbadge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 13px; font-weight: 700; }
.qbadge.soft { background: rgba(8, 12, 19, .72); color: var(--acc2); border: 1px solid rgba(216, 178, 92, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--serif); font-size: 14px; }
.qbadge.unset { color: #c3cbd9; border-color: rgba(195, 203, 217, .4); font-family: inherit; font-size: 12.5px; }
.ysum { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 720px; }
.ys { width: 62px; height: 44px; border-radius: 10px; background: #16233a center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 6px 14px rgba(0, 0, 0, .4); transition: transform .18s, box-shadow .18s; }
.ys:hover { transform: translateY(-2px) scale(1.08); box-shadow: 0 0 0 2px var(--acc2) inset, 0 10px 20px rgba(0, 0, 0, .5); }
.qcard.flash { box-shadow: 0 0 0 3px var(--acc2), 0 0 50px rgba(240, 212, 138, .55), 0 24px 54px rgba(0, 0, 0, .5); }
.qbadge.ok { background: rgba(8, 12, 19, .75); color: var(--ok); }
.qbadge .ico { width: 14px; height: 14px; }
.qcard[data-lock="1"] { cursor: pointer; }
.qcard.ins-before::before, .qcard.ins-after::before { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: var(--acc2); z-index: 5; box-shadow: 0 0 22px rgba(240, 212, 138, .9); }
.qcard.ins-before::before { top: 0; }
.qcard.ins-after::before { bottom: 0; }
.qcard.ins-before, .qcard.ins-after { box-shadow: 0 0 0 2px var(--acc2), 0 24px 54px rgba(0, 0, 0, .5); }
.qcard.sm { width: 208px; aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 12px 28px rgba(0, 0, 0, .45); }
.qcard.sm .qtext { left: 13px; right: 13px; bottom: 11px; }
.qcard.sm .qtext b { font-size: 16px; }
.qcard.sm .pmeta { display: none; }
.qcard.lifting, .qthumb.lifting { opacity: .25; }
.dghost { position: fixed; left: 0; top: 0; z-index: 90; width: 160px; height: 112px; border-radius: 16px; background: #16233a center / cover no-repeat; box-shadow: 0 0 0 2px var(--acc2), 0 30px 60px rgba(0, 0, 0, .65); pointer-events: none; display: flex; align-items: flex-end; overflow: hidden; }
.dghost b { width: 100%; padding: 22px 10px 8px; font-family: var(--serif); font-size: 14px; line-height: 1.15; background: linear-gradient(180deg, transparent, rgba(6, 10, 16, .92)); }
body.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
@media (hover: hover) {
  .qcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 0 0 1.5px rgba(240, 212, 138, .75), 0 30px 64px rgba(0, 0, 0, .6); }
  .qthumb:hover .gp { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--acc2) inset; }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
.tnode .qcard, .tloose .qcard { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.poster { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.poster .pic { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .poster:hover .pic { transform: scale(1.06); } .poster:hover { box-shadow: 0 0 0 1.5px rgba(240, 212, 138, .7), 0 0 36px rgba(240, 212, 138, .18), 0 22px 44px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { .qcard, .poster { animation: none !important; } }

/* The list: a ledger -------------------------------------------------------------------------------- */
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.row:hover { border-color: #3d5480; }
.row .rl { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; color: var(--text); }
.row .th { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; flex: none; background: #16233a center / cover no-repeat; }
.row .rt { min-width: 0; flex: 1; }
.row .rt b { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 17px; font-weight: 700; min-width: 0; line-height: 1.25; }
.row .rt b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rt b .ico { width: 14px; height: 14px; color: var(--acc); fill: var(--acc); }
.row .rt small { display: flex; gap: 3px 10px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.row .yr { flex: none; font-size: 13px; font-weight: 700; color: var(--acc2); padding: 7px 11px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row button.yr:hover { border-color: var(--acc); }
.row .yr.none { color: var(--dim); }
.row .yr.done { color: var(--ok); }

.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.search { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 50px; color: var(--dim); }
.search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(216, 178, 92, .14); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 16px; height: 100%; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.frow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sortsel { background: var(--card); border: 1px solid var(--line); border-radius: 13px; height: 42px; padding: 0 12px; color: var(--text); font-weight: 600; font-size: 14px; outline: 0; }
.count { color: var(--dim); font-size: 13.5px; margin: 0 2px 12px; font-variant-numeric: tabular-nums; }

.lhead { display: flex; align-items: baseline; gap: 14px; margin: 38px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.lhead:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lhead h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.lhead span { color: var(--dim); font-size: 13.5px; font-variant-numeric: tabular-nums; }

.ptags { max-height: min(56vh, 520px); overflow-y: auto; }
.ptags b { display: flex; align-items: center; gap: 9px; }
.ptags b i { width: 11px; height: 11px; border-radius: 50%; flex: none; }

/* Two people: the switch, the small owner label, and the who-sees-this line on a quest */
.whoseg { padding: 3px; }
.whoseg button { padding: 7px 14px; }
.own { font-style: normal; flex: none; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(143, 193, 238, .14); color: var(--blue); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: 2px; }
.own.tg { background: rgba(216, 178, 92, .16); color: var(--acc2); }
.own.me { background: rgba(255, 255, 255, .08); color: var(--dim); }
.row .yr.ro { color: var(--dim); }
.visbtn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; }
button.visbtn:hover { border-color: var(--acc); }
.visbtn > .ico:first-child { color: var(--blue); }
.visbtn.together > .ico:first-child { color: var(--acc2); }
.visbtn.me > .ico:first-child { color: var(--dim); }
.visbtn span { flex: 1; min-width: 0; color: var(--dim); font-size: 13px; }
.visbtn span b { display: block; color: var(--text); font-size: 15px; }
.visbtn > .ico:last-child { width: 16px; height: 16px; color: #55657f; }
.keenbtn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px dashed #4a3f63; text-align: left; }
button.keenbtn:hover { border-color: #f07fb0; }
.keenbtn > .ico:first-child { color: #f07fb0; }
.keenbtn.on { border-style: solid; border-color: rgba(240, 127, 176, .6); background: rgba(240, 127, 176, .09); }
.keenbtn.on > .ico:first-child { fill: #f07fb0; }
.keenbtn span { flex: 1; min-width: 0; color: var(--dim); font-size: 13px; }
.keenbtn span b { display: block; color: var(--text); font-size: 15px; }
.own.keen { background: rgba(240, 127, 176, .14); color: #f5a3c6; }
.visbtn + .acts, .keenbtn + .acts { margin-top: 14px; }
.vislist small { white-space: normal; }

/* Home ------------------------------------------------------------------------------------------------- */
/* His next quest is the cover; small portrait posters in single rows under it. Navy is the stage, ivory the type, and brass
   only where he can act or where the compass points to "next". Blue is the other person, pink "would love to", green done. */
.page.hmpage { max-width: var(--wrap); }  /* same width and side margins as the header */
.hmhero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 250px; border-radius: 22px; overflow: hidden; background: #101a2a center 15% / cover no-repeat; box-shadow: 0 22px 54px rgba(0, 0, 0, .45); }
.hmhero.pic { background-position: center 45%; }
.hmhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 25, .86) 0%, rgba(10, 16, 25, .42) 48%, rgba(10, 16, 25, .06) 74%), linear-gradient(180deg, rgba(10, 16, 25, 0) 55%, rgba(10, 16, 25, .5) 100%); }
.hmhero > * { position: relative; }
.hmhi { padding: 30px 32px 26px; min-width: 0; }
.hmhi .state { font-size: 12px; letter-spacing: .16em; margin-bottom: 10px; }
.hmhero h1 { font-family: var(--serif); font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-shadow: 0 2px 22px rgba(0, 0, 0, .6); }
.hmline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; font-size: 15px; font-weight: 600; }
.hmline a { color: #c9d2e0; } .hmline a b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.hmline a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hmline i { font-style: normal; color: #6c7b93; }
.hmlead { display: inline-flex; align-items: center; gap: 4px; margin: 0 22px 22px 0; padding: 7px 10px 7px 14px; border-radius: 999px; background: rgba(8, 13, 22, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.hmlead:hover { border-color: var(--acc2); }
.hmlead .ico { width: 14px; height: 14px; }
.hmcols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.hms { margin-top: 32px; min-width: 0; }
.hms header, .hduo header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hms h2, .hduo h2, .hpanel h2 { font-family: var(--serif); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.hms h2 { flex: 1; }
.hms h2 span, .hbc h3 span { margin-left: 9px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #9aa7bb; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0; vertical-align: 3px; }
.hms header a { display: inline-flex; align-items: center; gap: 2px; color: var(--dim); font-size: 13px; font-weight: 700; }
.hms header a:hover { color: var(--acc2); }
.hms header a .ico { width: 14px; height: 14px; }
.hmrow { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px -6px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.hmrow::-webkit-scrollbar { display: none; }
.hmc { flex: 0 0 144px; width: 144px; display: block; color: var(--text); animation: hmin .32s ease-out both; }
.hmc:nth-child(2) { animation-delay: .04s; } .hmc:nth-child(3) { animation-delay: .08s; } .hmc:nth-child(4) { animation-delay: .12s; } .hmc:nth-child(5) { animation-delay: .16s; } .hmc:nth-child(n+6) { animation-delay: .2s; }
@keyframes hmin { from { opacity: 0; transform: translateY(8px); } }
.hmp { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; background: #16233a center 40% / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset, 0 8px 18px rgba(0, 0, 0, .4); transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s; }
.hmc:hover .hmp { transform: translateY(-3px); box-shadow: 0 0 0 1.5px rgba(240, 212, 138, .75) inset, 0 14px 26px rgba(0, 0, 0, .5); }
.hmp em { position: absolute; right: 7px; bottom: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #06210f; display: grid; place-items: center; }
.hmp em .ico { width: 12px; height: 12px; stroke-width: 3; }
.hmc > b { display: block; margin-top: 9px; font-size: 14px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmc > small { display: block; margin-top: 2px; color: rgba(243, 239, 230, .6); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmore .hmp { display: grid; place-content: center; text-align: center; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.hmore .hmp b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.hmore > b { color: var(--dim); }
.hmtags { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.hmtags i { font-style: normal; padding: 1px 7px; border-radius: 999px; background: rgba(8, 13, 22, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--blue); font-size: 10.5px; font-weight: 800; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hmtags i.tg { background: var(--acc2); color: var(--acc-ink); }
.hmtags i.kn { background: rgba(240, 127, 176, .92); color: #2a0b19; }
/* panels: the years ahead, and the two-person band */
.hmrail { margin-top: 32px; }
.hpanel, .hduo { border-radius: 22px; background: linear-gradient(180deg, #141f31, #0f1826); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.hpanel { padding: 20px 20px 14px; }
.hpanel h2 { margin-bottom: 10px; }
.hyrs { display: grid; gap: 1px; }
.hyr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; color: var(--text); }
.hyr:hover { background: rgba(255, 255, 255, .04); }
.hyr b { font-family: var(--serif); font-size: 15.5px; font-weight: 800; }
.hyr .bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hyr .bar i { display: block; height: 100%; border-radius: 2px; background: #c9d2e0; }
.hyr.near .bar i { background: linear-gradient(90deg, #b8923f, #f0d48a); }
.hyp { display: flex; }
.hyp i { width: 24px; height: 24px; border-radius: 50%; background: #16233a center / cover no-repeat; box-shadow: 0 0 0 2px #121c2d; margin-left: -8px; }
.hyp i:first-child { margin-left: 0; }
.hyr em { font-style: normal; min-width: 92px; color: #c9d2e0; font-size: 12.5px; font-weight: 600; text-align: right; white-space: nowrap; }
.hyr.bare b, .hyr.bare em { color: #6c7b93; }
.hduo { margin-top: 30px; padding: 22px 24px 20px; }
.hbcols { display: grid; grid-template-columns: 1.05fr 1fr 1.15fr 1fr; gap: 0 28px; }
.hbc { min-width: 0; }
.hbc + .hbc { padding-left: 28px; border-left: 1px solid var(--line); }
.hbc h3 { margin-bottom: 10px; color: #c9d2e0; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbe { color: var(--dim); font-size: 13px; line-height: 1.45; }
.hsplit { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; }
.hsplit button { min-width: 10px; height: 100%; }
.hsplit .tg, .hskey .tg { background: var(--acc2); } .hsplit .sh, .hskey .sh { background: var(--blue); } .hsplit .me, .hskey .me { background: #6c7b93; }
.hskey { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 11px 0 6px; }
.hskey button { display: inline-flex; align-items: center; gap: 6px; color: #c9d2e0; font-size: 13px; font-weight: 600; }
.hskey button:hover { color: #fff; }
.hskey i { width: 8px; height: 8px; border-radius: 50%; }
.hskey b { color: var(--text); font-weight: 800; }
.hsee { display: flex; align-items: center; gap: 3px; width: 100%; padding: 7px 0; color: var(--dim); font-size: 13px; font-weight: 700; text-align: left; }
.hsee:hover { color: var(--acc2); }
.hsee .ico { width: 14px; height: 14px; }
.hmi { padding: 5px 0; }
.hmi a { display: flex; align-items: center; gap: 11px; color: var(--text); min-width: 0; }
.hmi a > span:first-child { flex: none; width: 44px; height: 44px; border-radius: 11px; background: #16233a center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset; }
.hmi a > span:last-child { min-width: 0; }
.hmi b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmi small { display: block; color: rgba(243, 239, 230, .6); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmi a:hover b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hans { display: flex; gap: 6px; margin: 7px 0 4px 55px; }
.hans .btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.hsum { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 8px; margin: -4px 0 18px; }
.hsum > * { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #c9d2e0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hsum b { color: var(--text); font-weight: 800; }
.hsum i { width: 8px; height: 8px; border-radius: 50%; }
.hsum i.on { background: var(--ok); } .hsum i.wt { background: var(--acc2); }
.hsum a:hover { background: rgba(255, 255, 255, .1); }
.hduo.solo .hsum { margin: 10px 0 8px; }
.hduo.solo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hduo.solo p { margin-top: 4px; color: var(--dim); font-size: 14px; }
.hmnudge { margin-top: 32px; }
.hver { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 64px; color: #55657f; font-size: 12px; font-weight: 600; }
.hver img { width: 16px; height: 16px; opacity: .8; }
.hver a { color: #6c7b93; }
.hver a:hover { color: var(--acc2); }
.heroacts { margin-top: 10px; }
.heroacts label, .hero.art label { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hmc { animation: none; } .hmp { transition: none; } }
@media (max-width: 1200px) { .hmcols { grid-template-columns: minmax(0, 1fr); gap: 0; } .hbcols { grid-template-columns: 1fr 1fr; gap: 22px 28px; } .hbc:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 899px) {
  .hmhero { min-height: 200px; border-radius: 18px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; }
  .hmhi { padding: 22px 18px 14px; }
  .hmhero h1 { font-size: 32px; }
  .hmline { font-size: 13.5px; gap: 2px 8px; }
  .hmlead { margin: 0 0 16px 18px; }
  .hmc { flex-basis: 118px; width: 118px; }
  .hduo { padding: 18px 16px; border-radius: 18px; }
  .hbcols { grid-template-columns: 1fr; gap: 18px; }
  .hbc + .hbc { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .hyr { grid-template-columns: 42px minmax(0, 1fr) auto; } .hyp { display: none; }
}

/* One quest ------------------------------------------------------------------------------------------ */
.item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.hero { border-radius: 22px; overflow: hidden; background: #16233a center / cover no-repeat; box-shadow: 0 22px 50px rgba(0, 0, 0, .45); cursor: zoom-in; position: relative; }
.hero img { width: 100%; max-height: 74vh; object-fit: cover; }
.hero.art { aspect-ratio: 5 / 4; cursor: default; display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; }
.hero.art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, 0) 40%, rgba(6, 10, 16, .6) 100%); }
.hero.art .btn { position: relative; background: rgba(8, 12, 19, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .18); }
.smallpic { margin-top: 12px; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
.smallpic img { width: 84px; height: 63px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); cursor: zoom-in; }
.ititle { display: flex; align-items: flex-start; gap: 12px; }
.ititle h1 { font-family: var(--serif); font-size: 42px; line-height: 1.06; letter-spacing: -.02em; font-weight: 700; overflow-wrap: anywhere; flex: 1; }
.ititle .star { color: #3a4f73; padding: 8px; margin: 2px -8px 0 0; }
.ititle .star.on { color: var(--acc); }
.ititle .star.on .ico { fill: var(--acc); }
.ititle .star .ico { width: 28px; height: 28px; }
.why { font-family: var(--serif); color: #dcd6c8; font-size: 19px; line-height: 1.5; margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-style: italic; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--acc); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .16em; }
.state.done { color: var(--ok); }
.state .ico { width: 15px; height: 15px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.facts li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.facts li.wide { grid-column: 1 / -1; }
.facts li.wide:nth-child(2) { border-top: 1px solid var(--line); padding-top: 12px; }
.facts li:last-child { padding-bottom: 0; }
.facts .k { display: block; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.facts .v { display: block; font-weight: 600; font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts .v small { color: var(--dim); font-weight: 500; font-size: 13px; }
.facts .v small.blk { display: block; margin-top: 1px; }
@media (min-width: 900px) { .item > div:first-child { position: sticky; top: calc(var(--head) + 24px + var(--st)); } }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--text); }
.links li:first-child a { padding-top: 0; }
.links li:last-child a { padding-bottom: 0; }
.links a .ico { color: var(--acc); }
.links a .ico:last-child { color: var(--dim); }
.links a b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links a small { display: block; color: var(--dim); font-size: 12.5px; }
.links a > span { min-width: 0; flex: 1; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; color: #dcd9d0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.keep { border-color: rgba(127, 212, 160, .35); }
.keep h2, .keep h2 .ico { color: var(--ok); }

/* Plan: the trip grid ---------------------------------------------------------------------------------- */
.page.full { max-width: 1900px; padding-left: 16px; padding-right: 16px; }
/* The plan uses a modern rounded face instead of the serif (Ted, 28 Nov 2026: the serif read as old-timey here). */
.page.full .tpname h1 { font-weight: 800; letter-spacing: -.025em; }
.page.full .tptot b { font-weight: 800; letter-spacing: -.02em; }
.tpdemo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 18px; border-radius: 14px; background: rgba(216, 178, 92, .1); border: 1px solid rgba(216, 178, 92, .45); color: var(--text); font-size: 14.5px; }
.tpdemo .ico { color: var(--acc); }
.tpdemo b { color: var(--acc2); }
.tphero { position: relative; border-radius: 16px; overflow: hidden; background: #16233a center 35% / cover no-repeat; box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.tphero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 13, 22, .94) 0%, rgba(8, 13, 22, .7) 40%, rgba(8, 13, 22, .35) 68%, rgba(8, 13, 22, .82) 100%); }
.tphero-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 24px 14px; }
.tpname { min-width: 0; display: flex; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.tpname h1 { font-family: var(--serif); font-size: 28px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.tpname p { color: #dfe5ee; font-size: 14.5px; font-weight: 600; }
.tptot { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.tptot span { color: var(--acc); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.tptot b { font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--acc2); font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.tptot small { color: #dfe5ee; font-size: 13px; font-weight: 600; }
.tpctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.tpstate.demo { color: var(--acc2); background: rgba(216, 178, 92, .1); border: 1px solid rgba(216, 178, 92, .4); border-radius: 999px; padding: 6px 13px; }
.tpctl .btn em { font-style: normal; margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: rgba(216, 178, 92, .18); color: var(--acc2); font-size: 12px; }
.tpctl .btn i { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--acc2); margin-left: 2px; }
.tpctl .btn.has i { display: inline-block; }
.tpstart { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 6px 0 13px; border-radius: 11px; background: var(--card2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--dim); }
.tpstart input { background: none; border: 0; outline: 0; height: 34px; font-size: 14px; font-weight: 600; color: var(--text); color-scheme: dark; }
.tpstart:focus-within { border-color: var(--acc); }
.tpstart em { font-style: normal; color: var(--acc2); }
.tpstart.empty input { width: 34px; color: transparent; }
.tpstart.empty input::-webkit-datetime-edit { visibility: hidden; }
.tpstate { color: var(--dim); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; padding: 0 4px; }
.mcard:has(.tpnotesbox) .mhead h2, .mcard:has(#tp-pm) .mhead h2 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 800; }
.mcard:has(.tpd), .mcard:has(.tpmenu) { font-family: inherit; }
.mcard:has(.tpd) { width: min(1120px, 100%); }
.mcard:has(.tplrs) { width: min(680px, 100%); }
.mcard:has(.tplrs) .mhead h2 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 800; }
.mcard:has(.tpd) .mhead h2, .mcard:has(.tpmenu) .mhead h2 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 800; }
.tpmenu { display: grid; gap: 6px; }
.modal.pop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; display: block; padding: 0; }
.modal.pop .mcard { position: fixed; width: 286px; padding: 8px; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .65), 0 0 0 1px rgba(240, 212, 138, .18); }
.modal.pop .mcard > * + * { margin-top: 4px; }
.tpmh { padding: 6px 10px 4px; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.modal.pop .tpmenu { gap: 1px; }
.modal.pop .tpmenu button { min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 10px; font-size: 14.5px; gap: 11px; }
.modal.pop .tpmenu button:hover:not(:disabled) { background: var(--row); }
.modal.pop .tpmenu button .ico { width: 17px; height: 17px; }
.modal.pop .tpmenu button.armed { background: var(--danger); }
.tpmenu button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.tpmenu button:hover { border-color: var(--acc); }
.tpmenu button .ico { color: var(--acc); }
.tpmenu button:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.tpmenu button.danger { color: var(--danger); } .tpmenu button.danger .ico { color: var(--danger); }
.tpmenu button.armed { background: var(--danger); color: #fff; border-color: var(--danger); justify-content: center; }
.tpd { display: grid; gap: 4px; }
.tpdr { display: grid; grid-template-columns: 98px 98px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.tpdr.tpdhd span { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 0 10px; }
.tpdr.head { grid-template-columns: minmax(0, 1fr) auto; margin-top: 8px; }
.tpdr input { width: 100%; min-width: 0; height: 34px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: 0; }
.tpdr input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(216, 178, 92, .14); }
.tpdr.head input { background: rgba(216, 178, 92, .1); border-color: rgba(216, 178, 92, .4); color: var(--acc2); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.tpdb { display: inline-flex; gap: 2px; }
.tpdb button { width: 30px; height: 30px; border-radius: 8px; color: #b9c3d4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tpdb button:hover { background: var(--row); color: var(--text); }
.tpdb button:disabled { opacity: .25; cursor: default; }
.tpdb button.armed { background: var(--danger); color: #fff; width: auto; padding: 0 8px; }
.tpdb .ico { width: 16px; height: 16px; }
.tpdl { display: flex; gap: 6px; align-items: center; min-width: 0; }
.tpgo { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; background: rgba(143, 193, 238, .14); color: var(--blue); font-weight: 700; font-size: 13px; }
.tpgo:hover { background: rgba(143, 193, 238, .26); }
.tplrs { display: grid; gap: 8px; }
.tplr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.tplr input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: 0; }
.tplr input:focus { border-color: var(--acc); }
.tplr button { width: 34px; height: 34px; border-radius: 8px; color: #b9c3d4; display: inline-flex; align-items: center; justify-content: center; }
.tplr button:hover { background: var(--row); color: var(--text); }
/* Links sit on the note's own line, to its right, so a link never makes a row taller (Ted, 28 Nov 2026). */
.tp .tp-note { max-width: 104px; }
.tpnw { display: flex; align-items: flex-start; min-width: 0; }
.tpnw textarea { flex: 1 1 0; min-width: 0; }
.tpnw.nonote textarea { flex: 0 0 22px; padding-left: 4px; padding-right: 0; }
.tpnw.nonote textarea:focus { flex: 1 0 70%; padding-left: 9px; }
.tplks { display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; overflow: hidden; }
.tplks:not(:empty) { padding: 6px 6px 0 2px; flex: 0 1 auto; max-width: 62%; }
.tpnw.nonote .tplks:not(:empty) { max-width: none; flex: 1 1 0; }
.tp .tplks a { flex: 0 1 auto; min-width: 24px; padding: 0 7px; }
.tplks a, .itlk a { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(143, 193, 238, .14); color: var(--blue); font-size: 12px; font-weight: 700; font-style: normal; }
.tplks a:hover, .itlk a:hover { background: rgba(143, 193, 238, .28); }
.tplks a .ico, .itlk a .ico { width: 12px; height: 12px; }
.tplks a span, .itlk a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itlk { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.itt a { color: var(--blue); font-weight: 600; }
/* A day's detail reads as a timeline: a rail in the place's colour, a dot for each line, quiet fields. */
.tpdhead h2 { flex: none !important; font-family: var(--serif); font-weight: 800; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tpdhead h2 small { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tpdnav { width: 36px; height: 36px; }
.tpdnav:disabled { opacity: .25; cursor: default; }
.ico.fwd { transform: rotate(180deg); }
.tpdsub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--dim); font-size: 13.5px; }
.tpdsub em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); }
.tpdsub b { margin-left: auto; color: var(--acc2); font-variant-numeric: tabular-nums; }
.tpd { position: relative; padding-left: 18px; }
.tpd::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--pc); opacity: .85; }
.tpd .tpdr:not(.tpdhd):not(.head) { position: relative; }
.tpd .tpdr:not(.tpdhd):not(.head)::before { content: ""; position: absolute; left: -18px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--pc); }
.tpd .tpdr input { background: transparent; border-color: transparent; border-bottom-color: rgba(255, 255, 255, .1); border-radius: 8px 8px 0 0; }
.tpd .tpdr input:hover { background: rgba(255, 255, 255, .04); }
.tpd .tpdr input:focus { background: var(--bg); border-color: var(--acc); border-radius: 8px; }
.tpd .tpdr input[data-dd="begin"], .tpd .tpdr input[data-dd="end"] { color: var(--acc2); font-weight: 700; font-variant-numeric: tabular-nums; }
.tpd .tpdr input[data-dd="what"] { font-weight: 600; }
.tpd .tpdr input[data-dd="note"], .tpd .tpdr input[data-dd="link"] { color: #aab6c9; font-size: 14px; }
.tpd .tpdr input[data-dd="note"]:placeholder-shown, .tpd .tpdr input[data-dd="link"]:placeholder-shown { border-bottom-color: transparent; opacity: .35; }
.tpd .tpdr:hover input:placeholder-shown, .tpd .tpdr:focus-within input:placeholder-shown { opacity: 1; border-bottom-color: rgba(255, 255, 255, .1); }
.tpd .tpdr .tpdb { opacity: .3; transition: opacity .12s; }
.tpd .tpdr:hover .tpdb, .tpd .tpdr:focus-within .tpdb { opacity: 1; }
.tpd .tpdr.head input { background: transparent; border-color: transparent; border-bottom: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); color: var(--pc); }
.tpdempty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; color: var(--dim); font-size: 13px; }
.tpseg { padding: 2px; border-radius: 11px; }
.tpseg button { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.tpdfoot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tpdempty { padding: 14px 0; }
/* The itinerary: the trip as a page to read and to print */
.itbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.itbar .back { margin-bottom: 0; }
.itin { max-width: 900px; margin: 0 auto; }
.itphoto { width: 100%; height: 190px; object-fit: cover; object-position: center 40%; border-radius: 18px; margin-bottom: 20px; }
.ithrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ith h1 { font-family: var(--serif); font-size: 38px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.ith p { margin-top: 5px; color: var(--dim); font-size: 15.5px; font-weight: 600; }
.ittot { text-align: right; white-space: nowrap; }
.ittot span { display: block; color: var(--acc); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ittot b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 800; color: var(--acc2); font-variant-numeric: tabular-nums; line-height: 1.1; }
.itsum { margin-top: 16px; padding: 11px 0 12px; border-top: 1px solid var(--line); border-bottom: 2px solid var(--acc); display: grid; gap: 7px; }
.itsum:empty { padding: 0; border-top: 0; }
.itstays, .itcosts { display: flex; flex-wrap: wrap; gap: 5px 20px; font-size: 13px; font-weight: 600; color: var(--dim); }
.itstays span, .itcosts span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.itstays i, .itcosts i { width: 9px; height: 9px; border-radius: 3px; background: var(--pc); }
.itstays b, .itcosts b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.itnotes { margin: 16px 0 4px; padding: 12px 16px; border-left: 3px solid var(--acc); background: var(--card); border-radius: 0 12px 12px 0; }
.itnotes h3 { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.itnotes p { margin-top: 5px; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.itd { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.itdate b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.itdate span { display: block; margin-top: 2px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.itdh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; min-height: 22px; }
.itdh em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); }
.itdh i { font-style: normal; margin-left: auto; color: var(--dim); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.its { margin-top: 5px; font-size: 15.5px; line-height: 1.4; }
.its > b { font-weight: 700; }
.its .leg { margin-left: 12px; color: var(--dim); font-size: 13.5px; font-weight: 600; }
.its .leg span { white-space: nowrap; }
.its .leg i { font-style: normal; margin: 0 7px; color: var(--acc); }
.its p { color: var(--dim); font-size: 13.5px; overflow-wrap: anywhere; }
.itlk { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.itn { margin-top: 7px; color: var(--text); font-size: 13.5px; font-weight: 600; }
.itn b { margin-right: 8px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.itt { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.itt td { padding: 5px 12px 5px 0; border-top: 1px solid rgba(41, 58, 86, .6); vertical-align: top; }
.itt td.t { width: 158px; white-space: nowrap; color: var(--acc2); font-weight: 700; font-variant-numeric: tabular-nums; }
.itt td.n { color: var(--dim); font-size: 13px; width: 34%; overflow-wrap: anywhere; padding-right: 0; }
.itt tr.h td { border-top: 0; padding: 12px 0 3px; color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.itt tr.h:first-child td { padding-top: 2px; }
.itt a { color: var(--blue); font-weight: 600; }
@page { margin: .55in .6in; }
@media print {
  :root { --bg: #fff; --card: #f5f6f8; --card2: #fff; --text: #14181f; --dim: #5b6472; --line: #d5d9e0; --acc: #9a7722; --acc2: #7a5c12; --blue: #1d4f91; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; color: #14181f; }
  #head, #nav, .head, .nav4, .noprint, #toast, .tpdemo, #modal, #gate { display: none !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .itin { max-width: none; font-size: 10pt; }
  .itphoto { height: 1.55in; border-radius: 10pt; margin-bottom: 12pt; }
  .ith h1 { font-size: 24pt; }
  .ith p { font-size: 10.5pt; }
  .ittot b { font-size: 20pt; }
  .itsum { margin-top: 9pt; padding: 6pt 0 7pt; }
  .itstays, .itcosts { font-size: 8.5pt; gap: 3pt 14pt; }
  .itnotes { margin-top: 9pt; padding: 7pt 10pt; }
  .itnotes p { font-size: 9.5pt; }
  /* Blocks, not a grid: a day must be able to run on to the next page. */
  .itd { display: block; padding: 8pt 0; border-bottom-color: #c9ced7; }
  .itd::after { content: ""; display: block; clear: both; }
  .itdate { float: left; width: .95in; }
  .itbody { margin-left: 1.08in; }
  .itdate b { font-size: 13.5pt; }
  .itdate span { font-size: 7.5pt; }
  .itdh, .its, .itn { break-inside: avoid; break-after: avoid; }
  .itdate { break-inside: avoid; }
  .ittot, .itdh i { padding-right: 2pt; }
  .itdh { margin-bottom: 3pt; min-height: 0; }
  .itdh em { font-size: 8pt; padding: 1pt 7pt; color: #14181f; background: color-mix(in srgb, var(--pc) 32%, #fff); }
  .itdh i { font-size: 9.5pt; }
  .its { font-size: 10.5pt; margin-top: 2pt; }
  .its .leg, .its p, .itn { font-size: 9pt; }
  .itn { margin-top: 3pt; }
  .itn b { font-size: 7.5pt; }
  .itt { font-size: 9.5pt; margin-top: 5pt; }
  .itt tr { break-inside: avoid; }
  .itt td { padding: 2.5pt 8pt 2.5pt 0; border-top-color: #e2e5ea; }
  .itt td.t { width: 1.4in; }
  .itt td.n { font-size: 8.5pt; }
  .itt tr.h td { font-size: 7.5pt; padding: 6pt 0 1pt; break-after: avoid; }
  .itlk a { height: auto; padding: 1pt 6pt; font-size: 8pt; background: #e9f0f9; }
  a { text-decoration: none; }
}
@media screen and (max-width: 760px) {
  .tpdr { grid-template-columns: 1fr 1fr auto; padding: 8px 0; border-top: 1px solid var(--line); }
  .tpdr.tpdhd { display: none; }
  .tpdr input[data-dd="what"], .tpdr input[data-dd="note"], .tpdr .tpdl { grid-column: 1 / -1; }
  .tplr { grid-template-columns: 1fr auto auto; } .tplr input[data-lf="url"] { grid-column: 1 / -1; }
  .tpdr.head input[data-dd="what"] { grid-column: 1; }
  .tpdr .tpdb { grid-row: 1; grid-column: 3; }
  .itt td.t { width: 104px; white-space: normal; }
  .ith h1 { font-size: 28px; }
  .itphoto { height: 130px; }
  .itd { grid-template-columns: 1fr; }
  .itdate { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
  .its .leg { display: block; margin-left: 0; }
}
.tpnotesbox { display: block; width: 100%; min-height: 240px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; outline: 0; resize: vertical; }
.tpnotesbox:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(216, 178, 92, .14); }
.tppl { display: grid; gap: 8px; }
.tpplace { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 6px 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tpplace > i { width: 10px; height: 24px; border-radius: 5px; background: var(--pc); flex: none; }
.tpplace input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; font-weight: 600; }
.tpplace small { color: var(--pc); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tpplace button { color: var(--dim); padding: 7px; border-radius: 8px; display: inline-flex; font-size: 12px; font-weight: 700; }
.tpplace button .ico { width: 16px; height: 16px; }
.tpplace button.armed, .tp .tptools button.armed { background: var(--danger); color: #fff; padding: 4px 8px; width: auto; opacity: 1; }
.tpplace:focus-within { border-color: var(--acc); }
.tpwrap { overflow: auto; background: #111a2a !important; max-height: calc(100vh - var(--head) - 16px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.tp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.tp th, .tp td { border-bottom: 1px solid #2c3e5c; padding: 0; }
.tp .gs { border-left: 1px solid var(--line); }
.tp .ls { border-left: 1px solid rgba(41, 58, 86, .5); }
.tp thead th { position: sticky; top: 0; z-index: 3; background: #1c2a43; color: #a9b5c8; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; text-align: center; white-space: nowrap; height: 34px; }
.tp thead th small { font-size: 10px; letter-spacing: .04em; opacity: .7; text-transform: none; margin-left: 3px; }
.tp thead tr:nth-child(2) th { top: 34px; height: 38px; border-bottom-color: var(--line); }
.tp thead th.g { text-align: center; color: var(--acc); padding-left: 2px; padding-right: 2px; letter-spacing: .06em; border-bottom-color: rgba(41, 58, 86, .5); }
.tp thead th[rowspan] { border-bottom-color: var(--line); }
.tp thead th.r { text-align: right; white-space: normal; line-height: 1.15; padding: 4px 5px 8px 2px; letter-spacing: .04em; box-shadow: inset 0 -3px 0 var(--pc, transparent); }
.tp thead th.r span { display: block; }
.tp thead th.r b { display: block; margin-top: 5px; font-family: var(--serif); font-size: 11.5px; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp thead th.r b.zero { color: #55657f; }
.tp thead th.r small { display: block; margin: 1px 0 0; min-height: 12px; font-size: 10px; letter-spacing: .02em; opacity: .8; text-transform: none; }
.tp thead th.tpsumh b { color: var(--acc2); font-size: 12.5px; }
.tp thead th.tpsumh { color: var(--acc2); box-shadow: inset 0 -3px 0 var(--acc); }
.tp thead tr:nth-child(2) th { vertical-align: bottom; padding-bottom: 9px; }
.tp thead th.tpph { text-align: center; vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; color: var(--text); width: 26px; min-width: 26px; max-width: 26px; padding: 8px 0 10px; box-shadow: inset 0 -3px 0 var(--pc); }
.tp thead th.tpph span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 112px; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.tp .tpdate { position: sticky; left: 0; z-index: 2; background: #15203a; text-align: left; padding: 0; white-space: nowrap; min-width: 104px; width: 104px; border-right: 1px solid var(--line); }
.tp thead .tpdate { z-index: 4; background: #1c2a43; text-align: center; padding: 8px 10px; }
.tp tfoot .tpdate { padding: 6px 12px; }
.tp .tpdate b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.1; }
.tp .tpdate small { display: block; color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 1px; }
.tpdbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 100%; min-height: 36px; padding: 2px 8px 2px 11px; text-align: left; font-family: inherit; border-radius: 0; }
.tpdbtn:hover { background: rgba(216, 178, 92, .1); }
.tpdbtn:hover b { color: var(--acc2); }
.tpdbtn em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: none; align-items: center; justify-content: center; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tpdbtn.has em { display: inline-flex; }
.tp tr.tpcont .tpdate > * { visibility: hidden; }
.tp tr.tpmore .tpdate { border-bottom-color: transparent; }
.tp tr.tpmore td { border-bottom-color: transparent; }
.tp tr.tpcont .tpsum { color: transparent; }
.tp tr.we .tpdate small { color: var(--text); }
.tp tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.tp tbody tr:focus-within .tpdate { box-shadow: inset 3px 0 0 var(--acc); }
.tp tbody tr:focus-within td { background: rgba(216, 178, 92, .045); }
.tp input, .tp textarea { display: block; width: 100%; height: 36px; padding: 0 9px; background: none; border: 0; outline: 0; color: #b6c1d2; font-size: 14px; border-radius: 0; text-overflow: ellipsis; }
.tp textarea { resize: none; overflow: hidden; padding: 8px 9px 6px; line-height: 1.3; min-height: 36px; }
.tp input:focus, .tp textarea:focus { color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 2px var(--acc); border-radius: 6px; }
.tp input::-webkit-calendar-picker-indicator { display: none !important; }
.tp .tp-what { min-width: 172px; } .tp .tp-dep_time, .tp .tp-arr_time { min-width: 78px; width: 78px; } .tp .tp-dep_loc, .tp .tp-arr_loc { min-width: 104px; width: 108px; } .tp .tp-lodging { min-width: 156px; width: 164px; } .tp .tp-note { min-width: 100px; width: 104px; }
.tp .tp-dep_time input, .tp .tp-arr_time input { padding: 0 4px 0 9px; } .tp .tp-arr_time input { padding-left: 13px; }
.tp .tp-what textarea { color: var(--text); font-weight: 650; font-size: 14.5px; }
.tp .tp-note textarea { color: #aab6c9; font-size: 13px; }
.tp .tpc { min-width: 56px; width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.tp .tpc input { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); padding: 0 8px 0 4px; }
.tp .tpsum { min-width: 72px; padding: 0 8px; font-weight: 700; color: var(--acc2); background: rgba(216, 178, 92, .07) !important; white-space: nowrap; border-left: 1px solid rgba(216, 178, 92, .22); }
.tp .tpat { position: relative; text-align: center; min-width: 26px; width: 26px; height: 36px; }
.tp .tpat button { position: absolute; inset: 0 0 -1px; display: flex; align-items: center; justify-content: center; width: 100%; }
.tp .tpat button i { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--pc); opacity: 0; transition: opacity .12s; }
.tp .tpat button b { position: relative; color: transparent; font-weight: 800; font-size: 13px; }
.tp .tpat button span { display: none; }
.tp .tpat button:hover i { opacity: .25; }
.tp .tpat button.on i { opacity: 1; }
/* Solid blocks, edge to edge, so neighbouring places and days touch (Ted, 28 Nov 2026). */
.tp .tpat button.on b { color: #0a1019; }
.tp tbody .tpat { border-bottom-color: transparent; }
/* A line that goes somewhere: its depart and arrive cells are tinted, with an arrow from one to the other. */
.tp tr.trv .tp-dep_time, .tp tr.trv .tp-dep_loc, .tp tr.trv .tp-arr_time, .tp tr.trv .tp-arr_loc { background: rgba(216, 178, 92, .075); }
.tp tr.trv .tp-dep_time input, .tp tr.trv .tp-dep_loc input, .tp tr.trv .tp-arr_time input, .tp tr.trv .tp-arr_loc input { color: var(--text); }
.tp tr.trv .tp-arr_time { position: relative; }
.tp tr.trv .tp-arr_time::before { content: "→"; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #111a2a; color: var(--acc2); font-size: 12px; line-height: 17px; text-align: center; z-index: 1; pointer-events: none; }
.tp tbody tr:not(.trv) .tp-dep_loc, .tp tbody tr:not(.trv) .tp-arr_time, .tp tbody tr:not(.trv) .tp-arr_loc { border-left-color: transparent; }
.tp .tptools { padding: 0 6px; width: 44px; min-width: 44px; text-align: center; }
.tp .tptools button { color: #b9c3d4; width: 32px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.tp .tptools button:hover { color: var(--text); background: var(--row); }
.tp .tptools .ico { width: 20px; height: 20px; stroke-width: 3.2; }
.ico.up { transform: rotate(90deg); } .ico.dn { transform: rotate(-90deg); }
.tp tfoot th, .tp tfoot td { position: sticky; bottom: 0; z-index: 2; background: #1c2a43; border-bottom: 0; border-top: 1px solid var(--line); height: 44px; font-weight: 700; }
.tp tfoot .tpc { padding: 0 11px; }
.tp tfoot .tpdate { z-index: 4; font-family: var(--serif); font-size: 15px; }
.tp tfoot .tpat { color: var(--pc); }
.tp tfoot .tpsum { font-family: var(--serif); font-size: 16px; }
.tpacts { align-items: center; }

/* On a phone each day is a card: the date on top, the places as buttons, then one field per line. */
@media (max-width: 760px) {
  .tphero { border-radius: 16px; }
  .tphero-in { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .tpname h1 { font-size: 24px; }
  .tpname p { font-size: 13.5px; }
  .tptot b { font-size: 26px; }
  .tpctl { gap: 8px; }
  .tpwrap { overflow: visible; max-height: none; border: 0; background: none; border-radius: 0; box-shadow: none; }
  .tp, .tp tbody, .tp tr, .tp td, .tp th { display: block; }
  .tp thead, .tp tfoot { display: none; }
  .tp tbody tr { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
  .tp th, .tp td, .tp .gs, .tp .ls, .tp .tpsum { border: 0; }
  .tp tr.we td, .tp tbody tr:hover td, .tp tbody tr:focus-within td { background: none; }
  .tp tr.trv td { background: none !important; }
  .tp tr.trv .tp-arr_time::before { content: attr(data-l); position: static; display: block; width: auto; height: auto; margin: 0 0 4px; border-radius: 0; background: none; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: inherit; text-align: left; text-transform: uppercase; }
  .tpnw { display: block; }
  .tpnw textarea, .tpnw.nonote textarea { width: 100%; padding: 10px 9px; }
  .tplks:not(:empty), .tpnw.nonote .tplks:not(:empty) { max-width: none; padding: 8px 0 0; flex-wrap: wrap; }
  .tp .tp-note { max-width: none; }
  .tpseg { display: none; }
  .tp input, .tp textarea { color: var(--text); }
  .tp .tpdate { position: static; background: none; border-right: 0; padding: 0 0 4px; width: 100%; display: flex; align-items: baseline; gap: 10px; box-shadow: none !important; }
  .tp .tpdate b { font-size: 20px; }
  .tp .tpdate { min-width: 0; }
  .tpdbtn { padding: 0; min-height: 0; justify-content: flex-start; gap: 10px; }
  .tpdbtn > span { display: flex; align-items: baseline; gap: 10px; }
  .tp tr.tpcont .tpdate > * { visibility: visible; opacity: .55; }
  .tp tr.tpcont .tpsum { display: none; }
  .tp tr.tpmore { margin-bottom: 6px; }
  .tp td { width: 100%; }
  .tp td[data-l]::before { content: attr(data-l); display: block; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
  .tp input, .tp textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; height: 44px; min-height: 44px; font-size: 16px; }
  .tp textarea { padding: 10px 9px; }
  .tp .tpat { width: auto; min-width: 0; height: auto; }
  .tp .tpat button { position: static; display: inline-flex; width: auto; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: 13.5px; font-weight: 600; }
  .tp .tpat button i, .tp .tpat button b { display: none; } .tp .tpat button span { display: inline; }
  .tp .tpat button.on { color: #0a1019; background: var(--pc); border-color: var(--pc); }
  .tp .tp-what, .tp .tp-lodging, .tp .tp-note { width: 100%; min-width: 0; }
  .tp .tpc, .tp .tpsum { min-width: 0; }
  .tp .tp-dep_time, .tp .tp-arr_time { width: calc(34% - 4px); min-width: 0; } .tp .tp-dep_loc, .tp .tp-arr_loc { width: calc(66% - 4px); min-width: 0; }
  .tp .tpc { width: calc(33.33% - 6px); min-width: 0; text-align: left; }
  .tp .tpc input { text-align: left; }
  .tp td.tpc[data-l]::before { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .03em; }
  .tp .tpsum { width: 100%; background: none !important; padding: 0; display: flex; align-items: baseline; gap: 10px; }
  .tp .tpsum::before { margin: 0 !important; }
  .tp .tptools { width: 100%; min-width: 0; text-align: right; padding: 0; line-height: normal; }
  .tp .tptools button { width: 44px; height: 38px; }
}

/* Menu, guide ------------------------------------------------------------------------------------- */
.menu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; max-width: 940px; }
.mcol { display: grid; gap: 16px; min-width: 0; }
.menu .card + .card { margin-top: 0; }
.card.mnav { padding: 0; overflow: hidden; }
.menu .card.mnav > * + * { margin-top: 0; border-top: 1px solid var(--line); }
.mlink { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 20px; border-radius: 0; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.mlink .mi { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--card2); color: var(--acc); }
.mlink .mt { flex: 1; min-width: 0; }
.mlink b { display: block; font-size: 16px; font-weight: 600; }
.mlink small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; }
.mlink .chev { flex: none; color: var(--dim); transform: rotate(180deg); }
.mlink .chev .ico { width: 16px; height: 16px; }
@media (hover: hover) { .mlink:hover { background: rgba(255, 255, 255, .04); } .mlink:hover .chev { color: var(--acc2); } }
@media (max-width: 760px) { .menu { grid-template-columns: minmax(0, 1fr); } }
.menu .card > * + * { margin-top: 10px; }
.menu .card h2 { margin-bottom: 0; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.mrow b { font-weight: 600; }
.mrow small { display: block; color: var(--dim); font-size: 12.5px; }
.url { font-size: 13px !important; color: var(--dim) !important; margin-top: 0 !important; min-height: 40px !important; padding: 8px 10px !important; }
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.gnav { position: sticky; top: calc(var(--head) + 24px + var(--st)); display: grid; gap: 2px; }
.gnav a { padding: 8px 12px; border-radius: 10px; color: var(--dim); font-weight: 600; }
.gnav a:hover { color: var(--text); background: var(--card); }
.gtopic { scroll-margin-top: calc(var(--head) + 24px + var(--st)); }
.gtopic + .gtopic { margin-top: 14px; }
.gtopic p + p, .gtopic p + ol, .gtopic ol + p { margin-top: 10px; }
.gtopic ol { list-style: decimal; padding-left: 22px; color: #dcd9d0; }
.gtopic ol li + li { margin-top: 5px; }
.gtopic p { color: #dcd9d0; }
.news li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.news b { font-family: var(--serif); font-size: 18px; }
.news small { color: var(--dim); margin-left: 8px; }
.news ul { list-style: disc; padding-left: 20px; margin-top: 8px; color: #dcd9d0; }
.news ul li { margin: 4px 0 0; padding: 0; border: 0; }

/* Gate, modal, toast, photo viewer ----------------------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 40; background: var(--bg) url(/static/art/hero.jpg) center top / cover no-repeat; overflow-y: auto; padding: calc(8vh + var(--st)) 18px 40px; }
.gate::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 25, .55) 0%, rgba(10, 16, 25, .9) 55%, var(--bg) 100%); }
.gatecard { position: relative; max-width: 400px; margin: 0 auto; background: rgba(20, 31, 49, .78); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 28px 24px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.gatecard > * + * { margin-top: 14px; }
.gatecard img { width: 92px; height: 92px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.gatecard h1 { font-family: var(--serif); font-size: 36px; letter-spacing: -.02em; text-align: center; }
.gatecard label { display: block; font-size: 13px; font-weight: 600; color: var(--dim); }
.gatecard .sub { color: var(--dim); text-align: center; }
.gatecard.loading { text-align: center; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.or { color: var(--dim); font-size: 13px; text-align: center; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(4, 7, 12, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; }
.mcard { width: min(480px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--card); border: 1px solid #33466a; border-radius: 22px; padding: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.mcard { scrollbar-width: none; }
.mcard::-webkit-scrollbar { display: none; }
.mcard > * + * { margin-top: 14px; }
.mhead { display: flex; align-items: center; gap: 10px; }
.mhead h2 { font-family: var(--serif); font-size: 24px; flex: 1; letter-spacing: -.01em; }
.mcard > .url { margin-top: 14px !important; }
.ylist { display: grid; gap: 6px; }
.ylist button, .ylist a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.ylist button:hover, .ylist a:hover { border-color: var(--acc); }
.ylist button.on { border-color: var(--acc); background: #1b2740; }
.ylist button b { font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; min-width: 84px; }
.ylist button small { color: var(--dim); font-size: 13px; flex: 1; font-variant-numeric: tabular-nums; }
.ylist button .ico, .ylist a .ico { color: var(--acc); }
.ylist.pick button b { font-size: 16px; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ylist.pick button small { flex: none; color: var(--acc); font-weight: 700; }
/* What the other person will see: a small copy of the shared page */
.preview { display: flex; gap: 14px; align-items: stretch; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.preview .pv { width: 96px; aspect-ratio: 4 / 5; border-radius: 11px; flex: none; object-fit: cover; background: #16233a center / cover no-repeat; }
.preview div { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.preview small { color: var(--acc); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.preview b { font-family: var(--serif); font-size: 20px; line-height: 1.15; margin-top: 5px; overflow-wrap: anywhere; }
.preview span { color: var(--dim); font-size: 13px; margin-top: 5px; }
.sees { display: grid; gap: 10px; }
.sees li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #dcd9d0; }
.sees li .ico { width: 18px; height: 18px; margin-top: 2px; }
.sees li.yes .ico { color: var(--ok); }
.sees li.no .ico { color: var(--danger); }
.sees li b { color: var(--text); }
.toast { position: fixed; left: 50%; top: calc(18px + var(--st)); transform: translate(-50%, -12px); background: #05080d; color: #fff; padding: 11px 16px; border-radius: 13px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: .18s; z-index: 60; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 28px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.act { pointer-events: auto; }
.toast button { color: var(--acc); font-weight: 800; padding: 4px 6px; flex: none; }
.viewer { position: fixed; inset: 0; z-index: 55; background: rgba(3, 5, 8, .96); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: calc(100dvh - 32px); border-radius: 10px; }
.viewer .icon-btn { position: absolute; top: calc(14px + var(--st)); right: 14px; }

/* A shared quest (someone opening a link) ---------------------------------------------------------- */
.sharedby { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13.5px; margin-bottom: 20px; }
.sharedby img { width: 30px; height: 30px; }

@media (min-width: 1500px) { :root { --wrap: 1520px; } .posters { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (hover: hover) { .poster:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0, 0, 0, .5); } }

/* Phone ---------------------------------------------------------------------------------------------- */
@media (max-width: 899px) {
  :root { --head: 54px; }
  .head-in { padding: 0 16px; }
  .head .tabs, .head .btn, .head .icon-btn { display: none; }
  .brand { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .page { padding: 18px 16px calc(100px + var(--sb)); }
  .ptop h1 { font-size: 32px; }
  .nav4 { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; background: rgba(10, 16, 25, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, .08); padding: 6px 6px calc(6px + var(--sb)); }
  .nav4 a { display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; color: var(--dim); font-size: 11.5px; font-weight: 600; border-radius: 12px; }
  .nav4 a .ico { width: 24px; height: 24px; }
  .nav4 a.on { color: var(--text); }
  .nav4 a.add { color: var(--acc); }
  .scene { margin-top: -18px; height: 226px; }
  .scene-in { gap: 10px 18px; padding-bottom: 14px; }
  .scene h1 { font-size: 38px; }
  .scene h1 small { margin-bottom: 9px; font-size: 11px; }
  .scene .stats { gap: 6px 15px; margin-left: 0; width: 100%; flex-wrap: wrap; }
  .scene .stats div { text-align: left; white-space: nowrap; }
  .scene .stats b { font-size: 18px; display: inline; margin-right: 4px; }
  .scene .stats span { font-size: 12px; }
  .rail { padding-top: 10px; padding-bottom: 10px; }
  .ychip { min-width: 78px; padding: 7px 11px 8px; }
  .sec { padding-top: 26px; }
  .sec-head { margin-bottom: 12px; gap: 10px; }
  .sec-head h2 { font-size: 36px; }
  .sec-head h2.word { font-size: 28px; }
  .yflow { display: block; }
  .yflow .posters { display: grid; }
  .yflow .poster { width: auto; }
  .yflow .sec-head .tot { flex-basis: auto; }
  .sec-head .yadd { margin-left: auto; order: 3; }
  .posters { grid-template-columns: 1fr 1fr; gap: 11px; }
  .poster { border-radius: 15px; }
  .poster .ptext { left: 12px; right: 12px; bottom: 11px; }
  .poster .ptext b { font-size: 16.5px; }
  .poster.art .ptext b { font-size: 18px; }
  .poster .pmeta { font-size: 11.5px; gap: 2px 8px; }
  .pyear, .flag { top: 9px; left: 9px; height: 28px; font-size: 12px; }
  .flag.star { right: 9px; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
  .rows { grid-template-columns: 1fr; gap: 8px; }
  .row .th { width: 52px; height: 52px; }
  .row .rt b { font-size: 16px; }
  .item { grid-template-columns: 1fr; gap: 20px; }
  .hero { margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .hero img { max-height: 56vh; }
  .hero.art { aspect-ratio: 16 / 10; }
  .ititle h1 { font-size: 32px; }
  .why { font-size: 17.5px; }
  .item .acts { display: grid; grid-template-columns: 1fr 1fr; }
  .acts .btn { flex: 1; padding: 0 10px; }
  .guide { grid-template-columns: 1fr; gap: 16px; }
  .gnav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .gnav a { background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; }
  .modal { place-items: end center; padding: 0; }
  .mcard { width: 100%; border-radius: 24px 24px 0 0; border-width: 1px 0 0; padding: 20px 16px calc(20px + var(--sb)); max-height: 88dvh; }
  .savebar { margin: 20px -16px calc(-100px - var(--sb)); padding: 10px 16px; bottom: calc(62px + var(--sb)); }
  .savebar .btn:not(.ghost):not(.danger) { flex: 1; }
  .menu { grid-template-columns: 1fr; }
  .assignbtn { position: static; }
  .posters.assign { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .posters.assign .ptext b { font-size: 13.5px; }
  .sdock { margin: 0 -16px; padding: 10px 16px 12px; }
  .qthumb { width: 88px; }
  .qthumb .gp { height: 60px; }
  .ty { padding-top: 34px; }
  .tyh h2 { font-size: 64px; }
  .tspine { margin-top: 24px; }
  .tspine::before { left: 17px; }
  .tscale { --mh: 88px; --bw: 44px; margin-top: 22px; }
  .tband { left: 0; margin-left: 0; }
  .tnode, .tnode.r { width: auto; margin-left: 0; padding: 0 0 0 40px; }
  .tnode + .tnode { margin-top: 18px; }
  .tnode .tdot, .tnode.l .tdot, .tnode.r .tdot { left: 9.5px; right: auto; top: 26px; }
  .tnode.at, .tnode.at.r { left: 0; right: 0; width: auto; padding: 0 0 0 62px; }
  .tnode.at.l .tdot, .tnode.at.r .tdot { left: 36.5px; right: auto; top: calc(var(--dot, 34px) - 7.5px); }
  .tnode.at.l .tlink, .tnode.at.r .tlink { left: 44px; right: auto; transform-origin: 0 50%; }
  .tnode::after { display: none; }
  .tnode .tm, .tnode.l .tm, .tnode.r .tm { position: static; display: block; margin: 0 0 8px; }
  .qcard .qtext b { font-size: 21px; }
  .qcard.sm { width: calc(50% - 7px); }
  .seg.full button { font-size: 13px; gap: 5px; padding: 10px 2px; }
  .seg.full .dem svg { width: 22px; }
  .gate { padding-top: calc(5vh + var(--st)); }
}
@media (max-width: 380px) { .facts { grid-template-columns: 1fr; } .facts li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 12px; } .mdpick select[data-part="m"] { width: 150px !important; } }

/* Has a plan: one teal mark everywhere (tag on Home and in the List, dot on the Timeline). */
.own.pl { background: rgba(111, 211, 199, .15); color: #7fdccf; }
.hmtags i.pl { background: rgba(111, 211, 199, .94); color: #06211e; }
.hq .hp .pdot { position: absolute; right: -4px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #6fd3c7; box-shadow: 0 0 0 2px #0a1019; }
.pword { font-style: normal; color: #7fdccf; font-weight: 700; }

/* One quest, redesigned (1.24): the photo is the cover, one row of actions, then two columns. */
.qhero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; border-radius: 22px; overflow: hidden; background: #101a2a center 45% / cover no-repeat; box-shadow: 0 22px 54px rgba(0, 0, 0, .45); }
.qhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 25, .38) 0%, rgba(10, 16, 25, 0) 26%, rgba(10, 16, 25, 0) 46%, rgba(10, 16, 25, .88) 100%); }
.qhero > * { position: relative; }
.qhi { padding: 0 32px 28px; max-width: 1000px; }
.qhi .state { font-size: 12px; letter-spacing: .16em; margin-bottom: 8px; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.qhi .ititle { display: flex; align-items: center; gap: 14px; }
.qhi h1 { font-family: var(--serif); font-size: 58px; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, .65); }
.qhi .why { margin-top: 10px; font-size: 17px; color: #e6ebf2; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.qplace { margin-top: 8px; color: #c9d2e0; font-size: 14px; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.qchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(8, 13, 22, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.qchip:hover { border-color: var(--acc2); }
.qchip .ico { width: 15px; height: 15px; }
.qback { position: absolute; left: 18px; top: 18px; }
.qchips { position: absolute; right: 18px; top: 18px; display: flex; gap: 8px; }
.qbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; }
.qbar .qgap { flex: 1; }
.qcols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; margin-top: 22px; }
.qmain, .qrail { display: grid; gap: 16px; min-width: 0; }
.qmain > .card, .qrail > .card, .qrail > .visbtn, .qrail > .keenbtn { margin: 0; }
.qmain:empty { display: none; }
.qslim { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.qslim p { margin-top: 4px; color: var(--dim); font-size: 14px; line-height: 1.4; }
.qslim .btn { flex: none; }
.qfacts h2 { margin-bottom: 6px; }
@media (max-width: 1100px) { .qcols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) {
  .qhero { min-height: 300px; border-radius: 18px; }
  .qhi { padding: 0 18px 18px; } .qhi h1 { font-size: 34px; }
  .qback { left: 12px; top: 12px; } .qchips { right: 12px; top: 12px; }
  .qchips .qchip[data-act] { display: none; }
  .qbar { gap: 8px; } .qbar .qgap { display: none; }
  .qslim { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.lhead.lyr { margin: 22px 0 10px; padding-top: 0; border-top: 0; }
.count + .lhead.lyr { margin-top: 6px; }
.lhead.lyr h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.qhi .ititle h1 { flex: none; max-width: 100%; }
.qrail .qslim { flex-direction: column; align-items: flex-start; gap: 12px; }
.qfacts h2 { margin-bottom: 14px; }

.shkind { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; background: rgba(143, 193, 238, .1); color: #c9d2e0; font-size: 14px; line-height: 1.45; }
.shkind b { color: var(--text); }

@media (min-width: 900px) { .hmrow { -webkit-mask-image: none; mask-image: none; } }
@media (min-width: 900px) { .hmc { flex: 1 1 144px; max-width: 172px; } }

/* Draft or final plan: outline for a draft, solid teal for final. */
.own.pl { background: none; box-shadow: 0 0 0 1px rgba(111, 211, 199, .55) inset; }
.own.pl.fin { background: #6fd3c7; color: #06211e; box-shadow: none; }
.hmtags i.pl { background: rgba(8, 13, 22, .78); color: #8fe3d8; box-shadow: 0 0 0 1px rgba(111, 211, 199, .7) inset; }
.hmtags i.pl.fin { background: rgba(111, 211, 199, .96); color: #06211e; box-shadow: none; }
.hq .hp .pdot { background: #0a1019; box-shadow: 0 0 0 2px #6fd3c7 inset, 0 0 0 2px #0a1019; }
.hq .hp .pdot.fin { background: #6fd3c7; box-shadow: 0 0 0 2px #0a1019; }
.plh { display: flex; align-items: center; gap: 8px; }
.plseg { flex: none; padding: 2px; border-radius: 10px; background: var(--bg); }
.plseg button { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 0; }
.plseg button.on[data-v="1"] { background: #6fd3c7; color: #06211e; }
.tphero-in .plseg { align-self: center; margin-left: 16px; background: rgba(8, 13, 22, .7); }

/* A line's note on the sheet: one clipped line that opens the note pop-up. */
.tp .tpnb { display: block; width: 100%; min-width: 0; padding: 4px 6px; border-radius: 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #aab6c9; font-size: 13px; line-height: 1.3; }
.tp .tpnb:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.tp .nonote .tpnb { color: #55657f; }
.tpnw .tpnb { flex: 1 1 0; }
@media (max-width: 899px) { .tp .tpnb { padding: 10px 9px; white-space: normal; } }
/* Day detail rail: the line runs only from the first entry to the last, never above or below them. */
.tpd::before { display: none; }
.tpd .tpdr:not(.tpdhd) { position: relative; }
.tpd .tpdr:not(.tpdhd)::after { content: ""; position: absolute; left: -14px; top: -2px; bottom: -2px; width: 3px; border-radius: 2px; background: var(--pc); opacity: .85; }
.tpd .tpdr.head::after { top: -10px; }
.tpd .tpdhd + .tpdr::after, .tpd .tpdr:first-child::after { top: 50%; }
.tpd .tpdr:last-child::after { bottom: 50%; }
.tpd .tpdhd + .tpdr:last-child::after { display: none; }
.tpd .tpdr:not(.tpdhd):not(.head)::before { z-index: 1; }
.tpd .tpdr:not(.tpdhd)::after { top: -3px; bottom: -3px; }
.tpd .tpdr.head::after { top: -11px; }
.tpd .tpdhd + .tpdr::after, .tpd .tpdr:first-child::after, .tpd .tpdhd + .tpdr.head + .tpdr:not(.head)::after { top: 50%; }
.tpd .tpdhd + .tpdr.head::after, .tpd .tpdr.head:last-child::after { display: none; }
.tpd .tpdr:last-child::after, .tpd .tpdr:has(+ .tpdr.head:last-child)::after { bottom: 50%; }
/* Ted, 28 Nov: What 20% narrower, the space split between the Depart and Arrive places. */
@media (min-width: 900px) { .tp .tp-what { min-width: 150px; } .tp .tp-dep_loc, .tp .tp-arr_loc { min-width: 126px; width: 130px; } }
/* The rail's line runs through the exact centre of each circle. */
.tpd .tpdr:not(.tpdhd):not(.head)::before { box-sizing: border-box; left: -18px; width: 16px; height: 16px; margin-top: -8px; }
.tpd .tpdr:not(.tpdhd)::after { left: -11.5px; width: 3px; }
.tpd .tpdr:not(.tpdhd)::after { opacity: 1; }

.tptip { position: fixed; z-index: 200; max-width: 420px; padding: 8px 12px; border-radius: 10px; background: #1d2b42; border: 1px solid #3a4f72; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); color: var(--text); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; pointer-events: none; }

/* While the app loads: a plain dark page, no card (Ted, 28 Nov). */
.gate.wait { background: var(--bg); }
.gate.wait::before { display: none; }

/* Clear button in every search box */
.sclear { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #c9d2e0; font-size: 12.5px; font-weight: 700; }
.sclear[hidden] { display: none; }
.sclear:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.sclear .ico { width: 13px; height: 13px; }
.swrap { position: relative; display: block; }
.swrap input { padding-right: 86px !important; }
.swrap input::-webkit-search-cancel-button { display: none; }
.swrap .sclear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
/* Plan sheet: nothing wraps, every row is one line high. A cut-off cell shows in full when the pointer rests on it. */
@media (min-width: 900px) { .tp textarea { white-space: nowrap; height: 36px !important; overflow: hidden; } .tp td { white-space: nowrap; } }

/* Plan sheet date cell on one line: day number, weekday, date, then a quiet count of that day's detail lines. */
.tpdbtn > span { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.tp .tpdate .tpdn { font-style: normal; min-width: 15px; text-align: right; color: #6c7b93; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp .tpdate small { display: inline-block; min-width: 27px; margin: 0; font-size: 10.5px; }
.tp .tpdate b { display: inline; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.tp tr.we .tpdate small { color: var(--acc2); }
.tpdbtn em { min-width: 20px; height: 20px; padding: 0 5px; background: rgba(216, 178, 92, .14); box-shadow: 0 0 0 1px rgba(216, 178, 92, .5) inset; color: var(--acc2); font-size: 11.5px; }
@media (min-width: 900px) { .tp .tpdate { min-width: 148px; width: 148px; } .tpdbtn { padding: 2px 9px 2px 8px; } }
.tp .tpdate small { width: 31px; min-width: 31px; }

/* Hover preview: stands out from the sheet, with a pointer to the cell it belongs to. */
.tptip { padding: 10px 14px; border-radius: 11px; background: #f3efe6; border: 2px solid var(--acc); color: #101a2a; font-size: 14.5px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .7), 0 0 0 4px rgba(10, 16, 25, .55); overflow: visible; }
.tptip::before { content: ""; position: absolute; left: var(--ax, 24px); top: -8px; width: 12px; height: 12px; margin-left: -7px; background: #f3efe6; border-left: 2px solid var(--acc); border-top: 2px solid var(--acc); transform: rotate(45deg); }
.tptip.above::before { top: auto; bottom: -8px; transform: rotate(225deg); }
/* Ted, 28 Nov (later): Depart and Arrive places 10% narrower; the What column takes the space. */
@media (min-width: 900px) { .tp .tp-dep_loc, .tp .tp-arr_loc { min-width: 113px; width: 117px; } }

/* Hover preview, toned down: a dark card a step lighter than the sheet, brass edge, ivory text. */
.tptip { background: #263756; border: 1.5px solid var(--acc); color: var(--text); font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, .65); }
.tptip::before { background: #263756; border-left-width: 1.5px; border-top-width: 1.5px; }

/* Cost mix: one bar along the foot of the plan's title graphic, a colour per kind of cost. */
.tpmix { position: relative; display: flex; gap: 2px; height: 22px; background: rgba(8, 13, 22, .6); }
.tpmix[hidden] { display: none; }
.tpmix span { min-width: 3px; display: flex; align-items: center; justify-content: center; gap: 5px; overflow: hidden; white-space: nowrap; color: #0a1019; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tpmix b { font-weight: 800; }
.tpmix .m-air { background: #8fc1ee; } .tpmix .m-ground { background: #b7a3f0; } .tpmix .m-lodg { background: #f0d48a; }
.tpmix .m-meals { background: #f29b7c; } .tpmix .m-activ { background: #6fd3c7; } .tpmix .m-other { background: #9aa7bb; }
@media (max-width: 899px) { .tpmix { height: 18px; } .tpmix span { font-size: 0; } }

/* How many people are going */
.pplc { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.pplc > span { color: var(--dim); font-weight: 600; margin-right: 4px; }
.pplc b { min-width: 62px; text-align: center; color: var(--text); font-variant-numeric: tabular-nums; }
.pplc button { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--text); font-size: 17px; line-height: 1; }
.pplc button:hover { background: rgba(216, 178, 92, .25); }
.pplc.ro { padding-right: 12px; }
.qppl { margin-top: 12px; }

/* Places button: linked (brass, ready to open) or not yet linked (faint, dashed). */
.btn.ghost.plon { border-color: rgba(216, 178, 92, .7); background: rgba(216, 178, 92, .13); color: var(--acc2); }
.btn.ghost.plon:hover { background: rgba(216, 178, 92, .22); }
.btn.ghost.ploff { border-style: dashed; color: var(--dim); background: none; }
.btn.ghost.ploff .picon { filter: grayscale(1); opacity: .5; }
.btn.ghost.ploff:hover { color: var(--text); } .btn.ghost.ploff:hover .picon { filter: none; opacity: 1; }

.row .rppl { margin-left: 6px; color: #8794ab; }

/* List rows: a dot between each piece of info (date, demand, cost, days, people). */
.row .rt small { gap: 3px 0; align-items: center; }
.row .rt small > * + *::before { content: "·"; margin: 0 8px; color: #55657f; font-weight: 800; }
.row .rppl { margin-left: 0; color: var(--dim); }

/* A number field with a minus and a plus on either side */
.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper input { flex: 1; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.stepper button { flex: none; width: 52px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 24px; font-weight: 600; line-height: 1; }
.stepper button:hover { border-color: var(--acc); color: var(--acc2); }
/* Stepper, fixed: one tidy row, buttons the same height as the field, signs centred. */
.stepper { display: flex; align-items: center; gap: 8px; max-width: 250px; }
.stepper input { flex: 1; min-width: 0; height: 48px; margin: 0 !important; text-align: center; font-weight: 700; }
.stepper button { flex: none; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; text-align: center; border-radius: 12px; font-size: 24px; line-height: 1; }

/* Home footer: the compass in the centre, the version on its left and the guide on its right. */
.hver { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hver a:first-child { text-align: right; }
.hver a:last-child { text-align: left; }
.hver img { width: 20px; height: 20px; }
.stepper { margin-top: 6px; }

.hsolob { display: flex; flex-wrap: wrap; gap: 10px; }
.shkind { margin: 16px 0 14px !important; }

/* Share pop-up: send the quest's Places map along */
.shmap { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 12px 11px 14px; border-radius: 14px; border: 1px dashed var(--line); }
.shmap.on { border-style: solid; border-color: rgba(216, 178, 92, .6); background: rgba(216, 178, 92, .08); }
.shmap > span { flex: 1; min-width: 0; }
.shmap b { display: block; font-size: 14.5px; }
.shmap small { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.35; }
.shmap .btn { flex: none; }
.shmaphint { margin-top: 12px; }

/* History of changes on a quest planned together */
.qhist ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 330px; overflow-y: auto; }
.qhist li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.qhist li:first-child { border-top: 0; }
.qhist li span { min-width: 0; color: #c9d2e0; }
.qhist li b { color: var(--text); }
.qhist li small { flex: none; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The plan on a shared quest page */
.shitin { margin-top: 30px; }
.shith { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.shith span { color: var(--dim); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.shitin { max-width: none; margin-left: 0; margin-right: 0; }

/* View-only planning sheet (a visitor on a shared link): everything can be read, nothing can be changed. */
.shbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
body.tpview .tp input, body.tpview .tp textarea, body.tpview .tpat button, body.tpview .tpstart, body.tpview .tpd input { pointer-events: none; }
body.tpview .tp .tptools, body.tpview .tp th.tptools, body.tpview .tpacts, body.tpview .tpacts + .hint, body.tpview [data-act="tpplaces"], body.tpview [data-act="tpnotes"], body.tpview .tpnb,
body.tpview .tpd .tpdb, body.tpview [data-act="tpdadd"], body.tpview [data-act="tpdhead"], body.tpview [data-act="tpdseed"], body.tpview [data-act="tplinks"], body.tpview .tpstart em { display: none !important; }
body.tpview .tpstart.empty { display: none; }
body.tpview .tpd .tpdr input:placeholder-shown { visibility: hidden; }
body.tpview .tpstate { color: var(--acc2); }
body.tpview button.back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 600; }

/* View-only sheet: no money anywhere, not even an empty Day total. */
body.tpview .tpcostg, body.tpview .tpsumh, body.tpview td.tpsum, body.tpview .tptot, body.tpview .tpmix, body.tpview .ittot { display: none !important; }

/* Under the Date heading: how to open a day */
.tp thead .tpdate small { display: block; width: auto; min-width: 0; margin-top: 5px; color: #8794ab; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tp thead .tpdate small { color: #c2a25a; font-weight: 700; }

/* View-only sheet: no Note or Links column at all, and no Note or Link headings in a day's detail. */
body.tpview .tp .tp-note, body.tpview .tp .tp-noteh { display: none !important; }
body.tpview .tpdhd span:nth-child(n+4) { visibility: hidden; }

/* Trips ---------------------------------------------------------------------------------------------- */
/* The trip timeline: built for a phone held in one hand. Date bars, a time on the left, an icon on the line, the booking on the right. */
.page.trpage { max-width: 760px; }
.trhead { margin: 6px 0 14px; }
.trhead h1 { font-family: var(--serif); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.trhead p { margin-top: 4px; color: var(--dim); font-size: 14.5px; font-weight: 600; }
.tracts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.trl { border-radius: 18px; overflow: hidden; background: #0d1522; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.trl .empty { padding: 34px 22px; }
.trday { margin: 0; padding: 9px 18px; background: #1b2740; color: #e6ebf2; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.trev { position: relative; display: grid; grid-template-columns: 74px 44px minmax(0, 1fr); align-items: start; gap: 0 12px; width: 100%; padding: 14px 16px 14px 10px; text-align: left; color: var(--text); }
button.trev:hover, button.trev:active { background: rgba(255, 255, 255, .04); }
.trev::before { content: ""; position: absolute; left: calc(10px + 74px + 12px + 20px); top: 0; bottom: 0; width: 4px; background: #33415c; }
.trday + .trev::before { top: 20px; }
.trev:last-child::before, .trev:has(+ .trday)::before { bottom: calc(100% - 34px); }
.trday + .trev:last-child::before, .trday + .trev:has(+ .trday)::before { display: none; }
.trt { text-align: right; padding-top: 3px; }
.trt b { display: block; color: #c9d2e0; font-size: 21px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.trt small { display: block; margin-top: 2px; color: #8794ab; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.tri { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: #4a5876; color: #0d1522; display: grid; place-items: center; box-shadow: 0 0 0 4px #0d1522; }
.tri .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.trb { min-width: 0; padding-top: 1px; }
.trb b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.trb > span { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; color: #e6ebf2; overflow-wrap: anywhere; }
.trb small { display: block; margin-top: 3px; color: #a6b2c6; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.trb small.trc { color: var(--acc2); font-weight: 700; letter-spacing: .02em; }
.trev.lay { padding-top: 6px; padding-bottom: 6px; align-items: center; }
.trev.lay .tri { width: 34px; height: 34px; margin: 0 5px; background: #33415c; color: #c9d2e0; }
.trev.lay .tri .ico { width: 17px; height: 17px; }
.trev.lay i { color: #c9d2e0; font-size: 15.500px; }
.trow .rt small span + span::before { content: "·"; margin: 0 8px; color: #55657f; font-weight: 800; }
.bkn { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(216, 178, 92, .18); color: var(--acc2); font-size: 11.5px; font-weight: 800; }
/* One booking, to read */
.bkv h3 { font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.bkv > p { margin-top: 3px; color: #c9d2e0; font-size: 16px; font-weight: 600; }
.bkconf { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 4px; padding: 11px 14px; border-radius: 14px; background: rgba(216, 178, 92, .1); border: 1px solid rgba(216, 178, 92, .5); text-align: left; }
.bkconf span { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bkconf b { flex: 1; color: var(--acc2); font-size: 20px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bkconf em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.bkconf em .ico { width: 14px; height: 14px; }
.bkv .facts { margin-top: 12px; }
.bkv .bknote { font-size: 14px; font-weight: 500; color: #c9d2e0; white-space: pre-wrap; }
.bkacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bkf textarea { min-height: 80px; }
.mcard:has(.bkf), .mcard:has(.bkv) { width: min(560px, 100%); }
@media (max-width: 899px) {
  .trl { margin: 0 -14px; border-radius: 0; box-shadow: none; }
  .trev { grid-template-columns: 66px 42px minmax(0, 1fr); gap: 0 10px; padding-left: 6px; }
  .trev::before { left: calc(6px + 66px + 10px + 19px); }
  .tri { width: 42px; height: 42px; }
  .trb b { font-size: 18px; }
}

/* Trips: Past is folded away until asked for */
.pastbtn { width: 100%; text-align: left; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-top: 26px; }
.pastbtn:hover { border-color: var(--acc); }
.pastbtn h2 { font-size: 19px !important; }
.pastbtn em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: var(--acc2); font-size: 13.5px; font-weight: 700; }
.pastbtn em .ico { width: 15px; height: 15px; }
.pastbtn em .ico.dn { transform: rotate(90deg); } .pastbtn em .ico.up { transform: rotate(-90deg); }
.pastbtn + .rows { margin-top: 12px; }
/* Past bar: its own padding and border (the plain heading rule was winning), everything centred on one line. */
.lhead.lyr.pastbtn { display: flex; align-items: center; padding: 13px 16px; margin: 24px 0 0; border: 1px solid var(--line); }
.lhead.lyr.pastbtn h2 { line-height: 1.2; }
.lhead.lyr.pastbtn span { line-height: 1.2; }
/* Trip rows: the line of facts wraps as plain text, with the dot ending a line, never starting one. */
.row.trow .rt small { display: block; line-height: 1.45; }
.row.trow .rt small span { display: inline; }
.row.trow .rt small > * + *::before, .trow .rt small span + span::before { content: none; }
.row.trow .rt small span:not(:last-child)::after { content: " · "; color: #55657f; font-weight: 800; }
/* Trips has three things in its bottom bar, spread evenly. */
@media (max-width: 899px) { html[data-app="trips"] .nav4 { grid-template-columns: repeat(3, 1fr); } }
.row.trow .rt small span { white-space: nowrap; }

/* Add a booking: pick what it is */
.bkpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.bkpick button { display: grid; justify-items: center; gap: 9px; padding: 16px 6px 13px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.bkpick button:hover { border-color: var(--acc); }
.bkpick span { width: 46px; height: 46px; border-radius: 50%; background: #33415c; color: #e6ebf2; display: grid; place-items: center; }
.bkpick .ico { width: 23px; height: 23px; }
.bkf .two.bkdt { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }

/* The app's own "are you sure" for anything that deletes */
.cfm { margin-top: 10px; padding: 14px; border-radius: 14px; background: rgba(229, 72, 77, .09); border: 1px solid rgba(229, 72, 77, .5); }
.cfm > span { display: block; margin-bottom: 11px; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.35; }
.cfm > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cfm .btn { flex: 1 1 140px; min-height: 42px; }
[hidden].btn { display: none !important; }
.two > .cfm { grid-column: 1 / -1; margin-top: 0; }
