:root { color-scheme: dark; --bg: #161514; --fg: #ebe8e3; --muted: #9a958c; --line: #2e2c29; --accent: #fb923c; --card: #1f1e1c; --hi: #2a211b; --ok: #4ade80; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; font-size: 18px; }
.who { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border: 0; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
a { color: var(--accent); }
h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 12px; }
h2 { font-size: 19px; margin: 24px 0 8px; }
.docs { list-style: none; padding: 0; } .docs li { margin: 0 0 10px; }
.docs a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; font-size: 17px; font-weight: 600; }
.files a { font-weight: 400; font-size: 15px; }
.badge { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 13px; }
.progress { position: sticky; top: 49px; z-index: 1; background: var(--bg); padding: 6px 0; font-weight: 600; color: var(--ok); border-bottom: 1px solid var(--line); margin-bottom: 8px; }

/* A block: tick boxes, the text, the comment button; its thread opens full width underneath. */
.blk { display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px; align-items: start; margin: 0 0 10px; border-radius: 8px; }
.blk.k-li { margin: 0 0 2px; padding: 2px 0; }
.blk .body { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.blk:not(.chk) .body { grid-column: 1 / 3; }
.blk .body > :first-child { margin-top: 0; } .blk .body > :last-child { margin-bottom: 0; }
.blk.k-li ul, .blk.k-li ol { margin: 0; padding-left: 20px; }
.blk.chk .body > ul { list-style: none; padding-left: 0; }
.blk.chk .body ul ul { list-style: disc; color: var(--muted); font-size: 14px; }
.blk.open { background: var(--hi); }
.blk.packed .body > ul > li > p:first-child, .blk.packed .body > ul > li { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.boxes { grid-column: 1; display: flex; gap: 4px; padding-top: 1px; }
.box { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; background: var(--card); }
.box input { width: 20px; height: 20px; margin: 0; accent-color: var(--ok); }
.box span:empty { display: none; }
.cbtn { grid-column: 3; min-width: 40px; padding: 2px 6px; color: var(--muted); opacity: .45; font-size: 13px; }
.cbtn.has, .blk.open .cbtn { opacity: 1; }
.cbtn.has { color: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .blk:hover .cbtn { opacity: 1; } }
.thread { grid-column: 1 / -1; margin: 6px 0 4px; padding: 8px; border-left: 3px solid var(--accent); }
.c { margin-bottom: 10px; } .c.done { opacity: .55; }
.meta { font-size: 12px; color: var(--muted); }
.txt { white-space: pre-wrap; }
.acts { display: flex; gap: 6px; margin-top: 4px; } .acts button { font-size: 12px; padding: 3px 8px; }
.add { display: flex; flex-direction: column; gap: 6px; }
.c .add { margin-top: 4px; }
textarea { font: inherit; font-size: 16px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--card); color: var(--fg); }
.orphan blockquote { margin: 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); }
.login { max-width: 360px; margin: 12vh auto; display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 6px; }
.login input { font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
.login button { padding: 12px; font-size: 16px; background: var(--accent); color: #fff; border: 0; }
.err { color: #dc2626; }

/* Each leg of the trip has a colour; pages, tabs, cards and embeds take it from data-theme. */
[data-theme] { --leg: var(--accent); }
[data-theme="departure"], [data-theme="seoul"] { --leg: #60a5fa; }
[data-theme="shenzhen"], [data-theme="hong"] { --leg: #2dd4bf; }
[data-theme="zhangjiajie"] { --leg: #4ade80; }
[data-theme="fenghuang"] { --leg: #fbbf24; }
[data-theme="chongqing"] { --leg: #f87171; }
[data-theme="chengdu"] { --leg: #c084fc; }
[data-theme="guide"] { --leg: #94a3b8; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
article[data-theme] h1 { border-left: 4px solid var(--leg); padding-left: 10px; }

/* Home: hero, timeline, tiles, reference chips. */
.hero { border-radius: 16px; padding: 14px; margin: 4px 0 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--leg, var(--accent)) 22%, var(--card)), var(--card)); border: 1px solid var(--line); }
.hero .when { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--leg, var(--accent)); }
.hero .todaycard .card { background: transparent; border: 0; padding: 0; margin: 6px 0 0; }
.hero .open { display: inline-block; margin-top: 10px; font-weight: 600; }
.timeline { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.leg { flex: 1 0 auto; min-width: 78px; text-decoration: none; border-top: 4px solid var(--leg); background: var(--card); border-radius: 8px; padding: 8px 8px 6px; }
.leg .t, .tile .t { display: block; color: var(--fg); font-weight: 600; font-size: 14px; }
.leg .s, .tile .s { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tile { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tile .ic { font-size: 22px; display: block; margin-bottom: 4px; }
.tile.pack { grid-column: 1 / -1; }
.tile .bar { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.tile .bar span { display: block; height: 100%; background: var(--ok); }
.refs { display: flex; flex-wrap: wrap; gap: 6px; }
.ref { text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--leg, var(--line)); color: var(--fg); }

/* Tabs: one per leg or section, with its dates under the name. */
.tabbar { position: sticky; top: 49px; z-index: 1; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 4px 0 10px;
  background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { flex: none; border-radius: 10px; padding: 5px 12px; white-space: nowrap; color: var(--muted); border-top: 3px solid var(--leg, var(--line)); text-align: left; }
.tabbar button .l { display: block; font-weight: 600; color: var(--fg); }
.tabbar button .d { display: block; font-size: 11px; }
.tabbar button:not([data-theme]) .d:empty, .tabbar button .d:empty { display: none; }
.tabbar button.on { background: color-mix(in srgb, var(--leg, var(--accent)) 25%, var(--card)); border-color: var(--leg, var(--accent)); }
.progress ~ article .tabbar { top: 84px; }
section.tab > .blk.k-heading:first-child h2 { color: var(--leg); }
.tabfoot { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.tabfoot button { font-size: 13px; color: var(--muted); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--leg, var(--line)); }

/* Day cards. */
.card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--leg, var(--accent)); border-radius: 12px; padding: 10px 10px 6px; margin: 0 0 12px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card.today { box-shadow: 0 0 0 2px var(--leg, var(--accent)); }
.card.today h3::after { content: "TODAY"; margin-left: 8px; font-size: 11px; letter-spacing: .06em; color: #111; background: var(--leg, var(--accent)); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }

/* A place opened in place: links that peek get a chevron; the embed takes the place's colour. */
a.peek { text-decoration: none; border-bottom: 1px dashed currentColor; }
a.peek::after { content: " ▾"; font-size: .8em; }
a.peek.peeked::after { content: " ▴"; }
.embed { margin: 4px 0 10px 8px; border: 1px solid var(--line); border-left: 3px solid var(--leg, var(--accent)); border-radius: 10px; background: var(--bg); overflow: hidden; }
.ehead { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--leg, var(--accent)) 14%, var(--bg)); }
.ehead a { font-weight: 600; color: var(--leg, var(--accent)); }
.ebody { padding: 8px 10px 2px; }
.ebody h2 { font-size: 16px; margin: 0 0 6px; color: var(--leg, var(--accent)); }
.ebody .blk { margin-bottom: 6px; }

/* Folded details, the driver card, links back up. */
li.folds > ul, li.folds > ol { display: none; }
li.folds.open > ul, li.folds.open > ol { display: block; }
.more { font-size: 12px; padding: 1px 8px; margin: 2px 0 2px 6px; border-radius: 10px; color: var(--accent); border-color: var(--line); vertical-align: 1px; }
li.folds.open > .more { color: var(--muted); }
.place { white-space: normal; font-size: 13px; }
.place a { color: var(--muted); }
button.zh { font-size: 15px; padding: 1px 8px; border-color: var(--leg, var(--accent)); color: var(--fg); }
.zhcard { position: fixed; inset: 0; z-index: 10; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.zhcard .big { font-size: min(18vw, 120px); line-height: 1.2; text-align: center; word-break: break-all; }
.zhcard .hint { margin-top: 24px; color: #888; font-size: 14px; }
.backlinks { margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
h3 { font-size: 17px; margin: 18px 0 6px; }
blockquote { margin: 0; padding-left: 10px; border-left: 3px solid var(--accent); color: var(--muted); }
table { border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
td, th { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
.net { font-size: 12px; color: var(--muted); }
.net.off { color: #fff; background: #b45309; border-radius: 10px; padding: 1px 8px; }
.c.pending .meta { color: var(--accent); }
.c .add { margin-top: 4px; }
/* Comment buttons show on lines with comments, or everywhere in comment mode. */
.cbtn { display: none; }
.cbtn.has, body.commenting .cbtn, .blk.open .cbtn { display: inline-block; }
#cmode { padding: 3px 8px; opacity: .6; }
#cmode.on { opacity: 1; border-color: var(--accent); background: var(--hi); }
/* A tab's own heading repeats its tab name, so it is hidden. */
section.tab > .blk.k-heading:first-child { display: none; }
.signout { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-size: 13px; color: var(--muted); }
/* A day's options: a quieter line whose items sit in a tinted panel when shown. */
li.options { color: var(--muted); font-style: italic; }
li.options > ul { font-style: normal; color: var(--fg); background: color-mix(in srgb, var(--leg, var(--accent)) 10%, transparent); border-radius: 8px; padding: 6px 8px 6px 24px; margin: 4px 0; }
li.options > ul > li { margin: 4px 0; }
/* Options: the card's button and picked slots, and the fullscreen table. */
.optbtn { border-color: var(--leg, var(--accent)); color: var(--leg, var(--accent)); font-weight: 600; margin: 2px 0 4px; }
.picked { margin: 4px 0 2px; }
.slot { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 3px 0; font-size: 13px; }
.slotname { color: var(--muted); min-width: 70px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chip { background: color-mix(in srgb, var(--leg, var(--accent)) 22%, var(--card)); border-radius: 12px; padding: 2px 9px; }
.chip small { color: var(--muted); }
.chip.pending { outline: 1px dashed var(--accent); }
body.modal-open { overflow: hidden; }
.optmodal { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.ohead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.otitle { font-weight: 700; }
.oclose { font-size: 16px; padding: 4px 12px; }
.otools { padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.otools input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
.ochips { display: flex; gap: 6px; overflow-x: auto; align-items: center; scrollbar-width: none; }
.olabel { font-size: 12px; color: var(--muted); min-width: 36px; }
.ochip { flex: none; border-radius: 14px; padding: 3px 10px; font-size: 13px; text-transform: capitalize; }
.ochip.on { background: var(--accent); color: #1a0f08; border-color: var(--accent); }
.otable { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.otable table { display: table; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.otable th { position: sticky; top: 0; background: var(--card); z-index: 1; cursor: pointer; white-space: nowrap; }
.otable th, .otable td { border: 0; border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; max-width: 260px; }
.otable td:nth-child(2) { font-weight: 600; position: sticky; left: 0; background: var(--bg); min-width: 120px; }
.otable tr.on td { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.ostar { width: 36px; text-align: center; }
.ostarbtn { border: 0; background: none; font-size: 20px; color: var(--accent); padding: 0 4px; }
.ocount { padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.otable td a[href^="/d/"] { text-decoration: none; border-bottom: 1px dashed currentColor; }
.otable td a[href^="/d/"]::after { content: " ▾"; font-size: .8em; }
.otable tr.odetail td { position: static; max-width: none; white-space: normal; padding: 0 8px 8px; background: var(--bg); }
.otable tr.odetail .embed { margin: 0; max-width: calc(100vw - 32px); position: sticky; left: 8px; }
/* Toasts sit above everything at the foot of the screen. */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; background: #7f1d1d; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* Options as stacked blocks: the name on its own line, details in a sideways-scrolling row, alternating shades. */
.osort { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); align-self: flex-start; }
.olist { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.oitem { border: 1px solid var(--line); border-left: 4px solid var(--leg, var(--accent)); border-radius: 10px; padding: 8px 10px; background: var(--card); }
.oitem:nth-child(even) { background: color-mix(in srgb, var(--leg, var(--accent)) 7%, var(--bg)); }
.oitem.on { box-shadow: 0 0 0 2px var(--leg, var(--accent)); }
.oname { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.otext { flex: 1; min-width: 0; }
.oby { font-size: 12px; font-weight: 400; color: var(--muted); }
.ometa { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; scrollbar-width: none; }
.ometa::-webkit-scrollbar { display: none; }
.ocell { flex: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--bg); }
.ocell.wide { flex: 0 0 auto; max-width: 240px; }
.olab { display: block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.oval { display: block; font-size: 13px; white-space: nowrap; }
.ocell.wide .oval { white-space: normal; }
.oname a[href^="/d/"] { text-decoration: none; border-bottom: 1px dashed currentColor; }
.oname a[href^="/d/"]::after { content: " ▾"; font-size: .8em; }
.oitem > .embed { margin: 8px 0 0; }

/* Home: the offline copy and export. */
.offline { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.offline .acts { display: flex; gap: 8px; align-items: center; }
.export { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--accent); text-decoration: none; font-size: 14px; }

/* The export: readable on screen, clean on paper. */
.p-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.p-cover { margin-bottom: 18px; }
.p-toc { color: var(--muted); font-size: 13px; }
.p-doc { border-top: 3px solid var(--leg, var(--line)); padding-top: 10px; margin-top: 24px; }
.p-doc button.zh { border: 0; padding: 0; font-size: inherit; }
.p-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }
.p-opts table { display: table; width: 100%; font-size: 12px; }
.p-picked { font-weight: 600; }
.p-chk { display: flex; gap: 8px; align-items: baseline; }
.p-chk ul { margin: 0; padding-left: 16px; }
.p-marks { flex: none; font-size: 13px; }
.p-box { margin-right: 6px; }
@media print {
  :root { color-scheme: light; --bg: #fff; --fg: #111; --muted: #555; --line: #ccc; --card: #fff; --hi: #fff; }
  header, .p-bar, .backlinks { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  a { color: #111; }
  .p-doc { break-before: page; }
  .p-doc h3, .p-opts tr, .p-chk, li { break-inside: avoid; }
  .p-doc h2, .p-doc h3 { break-after: avoid; }
}
/* A view-only reader sees no comment, tick or pick controls. */
body.viewonly .cbtn, body.viewonly #cmode, body.viewonly .ostarbtn, body.viewonly .thread .add, body.viewonly .acts { display: none !important; }
body.viewonly .box { pointer-events: none; opacity: .7; }

/* Options grid: labels once and pinned on top, names pinned left at full width, details aligned in shared columns. */
.olist { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 0 10px; display: block; }
.ogrid { display: grid; width: max-content; min-width: 100%; }
.ohcell { position: sticky; top: 0; z-index: 2; background: var(--card); border-bottom: 2px solid var(--leg, var(--accent)); padding: 6px 8px;
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ofull { grid-column: 1 / -1; }
.opin { position: sticky; left: 0; width: min(100vw, 100%); max-width: 100vw; box-sizing: border-box; padding: 8px 10px 2px; display: flex; align-items: center; gap: 8px; }
.oname { border-top: 1px solid var(--line); background: var(--bg); }
.oname .opin { font-weight: 600; font-size: 16px; }
.oname.alt, .ocell.alt { background: color-mix(in srgb, var(--leg, var(--accent)) 8%, var(--bg)); }
.oname.on .opin { border-left: 4px solid var(--leg, var(--accent)); }
.ocell { padding: 4px 8px 10px; font-size: 13px; background: var(--bg); overflow-wrap: anywhere; }
.ocell.on { box-shadow: inset 0 -2px 0 var(--leg, var(--accent)); }
.oname a[href^="/d/"] { text-decoration: none; border-bottom: 1px dashed currentColor; }
.oname a[href^="/d/"]::after { content: " ▾"; font-size: .8em; }
.odetail .opin { display: block; padding-top: 0; }
.odetail .embed { margin: 0 0 8px; }
.ofull.oname { display: block; }
.ogrid .ocell { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.zhcard { z-index: 50; }
/* Confirmed options: part of the plan, shown first and solid; the rest are tucked away. */
.slot.confirmed .slotname { color: var(--ok); }
.chip.done { background: color-mix(in srgb, var(--ok) 25%, var(--card)); font-weight: 600; }
.oconf { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.oconf.on { background: var(--ok); border-color: var(--ok); color: #0b1f12; font-weight: 600; }
.ohide { border-style: dashed; }
body.viewonly .oconf { display: none !important; }
/* Confirmed options on the day card: a line each, expanding in place to the details and the place section. */
.confirmed { margin: 6px 0 4px; }
.confirmed > .slotname { color: var(--ok); margin-bottom: 4px; }
.citem { border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); border-radius: 10px; margin: 0 0 6px; overflow: hidden; }
.citem.pending { border-style: dashed; }
.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; border: 0; border-radius: 0; text-align: left;
  background: color-mix(in srgb, var(--ok) 16%, var(--card)); padding: 8px 10px; }
.cname { font-weight: 600; font-size: 15px; }
.cname::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.chead.open .cname::after { content: " ▴"; }
.cbrief { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cbody { padding: 8px 10px 4px; }
.cmeta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-bottom: 8px; font-size: 13px; }
.crow { display: contents; }
.crow .olab { padding-top: 2px; }
.cbody .embed { margin: 4px 0 6px; }
/* Comments: always offered on headings (ask about a day or a place); per option in the options view. */
.blk.k-heading .cbtn { display: inline-block; }
.ocmt { font-size: 12px; padding: 2px 8px; border-radius: 12px; color: var(--muted); }
.ocmt.has { color: var(--accent); border-color: var(--accent); }
.othread .opin { display: block; padding: 4px 10px 10px; border-left: 3px solid var(--accent); background: var(--hi); }
.othread .c { margin: 4px 0 8px; }
body.viewonly .ocmt, body.viewonly .othread form { display: none !important; }

.helpbody { padding: 10px 14px; }
.helpbody section.tab { margin-bottom: 18px; }
.helpbody section.tab > .blk.k-heading:first-child { display: block; }
/* Home's offline row: the buttons sit right, with Connect AI at the far right. */
.offline .acts { margin-left: auto; }
#connectai { order: 3; border-color: var(--accent); color: var(--accent); }
