:root { --accent: #14466e; --accent-soft: #e4edf5; }
:root[data-theme="dark"] { --accent: #6fa8d6; --accent-ink: #08131c; --accent-soft: #16283a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #6fa8d6; --accent-ink: #08131c; --accent-soft: #16283a; } }
.clock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clock-grid button { min-height: 84px; font-size: 18px; justify-content: center; }
.clock-state { font-size: 15px; margin: 0 0 14px; }
.big-num { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.explain { font-size: 12px; color: var(--muted); max-width: 640px; }
.dp-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 8px 0; border-top: 1px dashed var(--border); }
.claim-text { white-space: pre-wrap; font-family: var(--font); background: var(--surface-2); padding: 14px; border-radius: 8px; border: 1px solid var(--border); }
.pill.unv { background: var(--warn-soft); color: var(--warn); }
.stub-preview { max-width: 100%; max-height: 420px; border-radius: 8px; border: 1px solid var(--border); }
@media (max-width: 760px) { .dp-row { grid-template-columns: 1fr 1fr; } .mobile-nav { grid-template-columns: repeat(5, 1fr); } }
/* Help button (every screen) */
#help-btn { position: fixed; right: 16px; bottom: 16px; z-index: 60; border-radius: 999px; padding: 10px 16px; box-shadow: 0 4px 16px rgba(0,0,0,.18); background: var(--accent); color: var(--accent-ink, #fff); border: 0; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
#help-btn span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 13px; }
#help-panel { position: fixed; right: 16px; bottom: 68px; z-index: 61; width: min(360px, calc(100vw - 32px)); background: var(--surface, #fff); color: var(--text, #111); border: 1px solid var(--border, #ddd); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.22); font-size: 14px; }
#help-panel[hidden] { display: none; }
#help-panel .hp-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
#help-panel .hp-list { padding-left: 18px; margin: 8px 0; color: var(--muted, #555); }
#help-panel .hp-foot { font-size: 12px; color: var(--muted, #666); margin: 8px 0 0; }
@media (max-width: 760px) { #help-btn { bottom: 76px; } #help-panel { bottom: 128px; } }
/* Founder banner + billing */
.founder-banner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 14px; background: linear-gradient(90deg, #f6c453, #f2a541); color: #2b1d00; font-weight: 600; font-size: 14px; text-align: center; }
.founder-banner a { color: inherit; text-decoration: underline; }
.founder-banner .spots { background: rgba(0,0,0,.12); border-radius: 999px; padding: 2px 10px; }
.trial-bar { padding: 8px 14px; background: var(--accent-soft); color: var(--accent); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-card { border: 2px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-card.sel { border-color: var(--accent); }
.plan-card .price { font-size: 30px; font-weight: 800; }
.plan-card .was { text-decoration: line-through; color: var(--muted); font-size: 14px; margin-left: 6px; }
.plan-card .tag { align-self: flex-start; background: #f6c453; color: #2b1d00; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
#paypal-buttons { margin-top: 14px; min-height: 48px; }
.site-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 12px 90px; }
.site-foot a { color: inherit; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---- testers + Tester Hub ---- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: #d93025; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.badge[hidden] { display: none; }
.mobile-nav a { position: relative; } .mobile-nav .badge { position: absolute; top: 2px; right: 18%; margin: 0; }
.hub-post { padding: 12px 0; border-bottom: 1px solid var(--border); } .hub-post:last-child { border-bottom: none; }
.hub-post.staff { background: var(--accent-soft, rgba(30, 90, 160, .06)); margin: 0 -16px; padding: 12px 16px; }
.hub-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.hub-body { white-space: normal; overflow-wrap: anywhere; }
.hub-shot { display: block; max-width: min(100%, 520px); max-height: 360px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; object-fit: contain; }
.hub-thread { color: inherit; text-decoration: none; justify-content: flex-start; } .hub-thread:hover { background: var(--hover, rgba(0, 0, 0, .03)); }
fieldset.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; } fieldset.choice legend { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
fieldset.choice label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.stack { display: grid; gap: 12px; } .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .row input { flex: 1; min-width: 160px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.qr { display: block; width: 180px; height: 180px; margin: 8px auto; image-rendering: pixelated; }
[hidden] { display: none !important; }
fieldset.choice input[type=radio], label input[type=checkbox] { width: auto; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); }
fieldset.choice label { white-space: nowrap; }
td.num input[type=date].sm { width: auto; display: inline-block; }

.warn-text { color: var(--warn); margin-top: 4px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }


/* ---- owner admin tiles (RailRep admin hub pattern) ---- */
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card, #fff); cursor: pointer; min-height: 96px; }
.admin-tile:hover { border-color: var(--accent); }
.admin-tile .at-icon { font-size: 20px; line-height: 1; }
.admin-tile b { font-size: 14px; }
.admin-tile .at-sub { font-size: 12px; color: var(--muted, #667); font-weight: 400; }
.admin-back { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #667); }
