
/* Layout: an app with four tabs on a bottom bar. 홈 is a few calm cards under one loud one, the next round
   on a mown fairway (tennis: a hard court); the course list keeps its 7-day tee sheet on its own tab;
   a course opens as a bottom sheet. */
:root {
  --bg: #F3F5F1; --surface: #FFFFFF; --surface-2: #F4F7F5; --title: #173F2D; --tabbar: rgba(255, 255, 255, 0.9);
  --ink: #101913; --ink-2: #3F4C44; --muted: #66736B; --line: #D9E0DB; --line-2: #BCC7BF;
  --brand: #17503A; --brand-ink: #FFFFFF;
  --hdr: #113A2A; --hdr-2: #15432F; --hdr-ink: #F2EEDF; --hdr-muted: #A3BFB0;
  --hdr-chip: rgba(242, 238, 223, 0.08); --hdr-line: rgba(242, 238, 223, 0.16);
  --sel-bg: #F2EEDF; --sel-ink: #113A2A; --sel-sat: #2257B8; --sel-sun: #C23A31;
  --hdr-sat: #A9C9FF; --hdr-sun: #FFAAA2; --live: #5BD27E; --star: #E0A100; --rain: #2A78D6;
  --good: #11953A; --warn: #D39200; --serious: #DD6630; --critical: #D03B3B; --closed: #66736B;
  --good-bg: rgba(17, 149, 58, 0.12); --warn-bg: rgba(250, 178, 25, 0.20); --serious-bg: rgba(236, 131, 90, 0.18);
  --critical-bg: rgba(208, 59, 59, 0.13); --closed-bg: rgba(102, 115, 107, 0.14); --rain-bg: rgba(42, 120, 214, 0.12);
  --focus: #2A78D6; --scrim: rgba(6, 16, 10, 0.48); --shadow: 0 18px 48px rgba(6, 24, 14, 0.22);
  --font-display: "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B100D; --surface: #131A16; --surface-2: #18211C; --title: #E7EDE9; --tabbar: rgba(19, 26, 22, 0.9);
    --ink: #E7EDE9; --ink-2: #B2BEB6; --muted: #84918A; --line: #232E28; --line-2: #36443C;
    --brand: #2E7D59; --hdr: #0E2C20; --hdr-2: #113425; --hdr-muted: #94B1A2;
    --hdr-chip: rgba(242, 238, 223, 0.07); --hdr-line: rgba(242, 238, 223, 0.14);
    --sel-ink: #0E2C20; --star: #F2B92B; --rain: #3987E5;
    --good: #2DB453; --warn: #FAB219; --serious: #EC835A; --critical: #E25A5A; --closed: #8A968F;
    --good-bg: rgba(45, 180, 83, 0.16); --warn-bg: rgba(250, 178, 25, 0.16); --serious-bg: rgba(236, 131, 90, 0.17);
    --critical-bg: rgba(226, 90, 90, 0.18); --closed-bg: rgba(138, 150, 143, 0.16); --rain-bg: rgba(57, 135, 229, 0.18);
    --focus: #5EA2F0; --scrim: rgba(0, 0, 0, 0.6); --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.locked, html.locked body { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh;
  font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1em; height: 1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.t-good { --tone: var(--good); --tone-bg: var(--good-bg); }
.t-warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.t-serious { --tone: var(--serious); --tone-bg: var(--serious-bg); }
.t-critical { --tone: var(--critical); --tone-bg: var(--critical-bg); }
.t-rainy { --tone: var(--rain); --tone-bg: var(--rain-bg); }
.t-unknown { --tone: var(--muted); --tone-bg: transparent; }

/* Status scale, best to worst, as a feedback-face row: dark green, light green, yellow, orange, red.
   정보 없음 is an outlined face with ?? eyes. */
.t-open { --tone: #2E9B4E; --tone-bg: rgba(46, 155, 78, 0.14); }
.t-delayed { --tone: #7CB342; --tone-bg: rgba(139, 195, 74, 0.2); }
.t-closed { --tone: #D9BE14; --tone-bg: rgba(244, 220, 58, 0.28); }
.t-partial { --tone: #F0923A; --tone-bg: rgba(240, 146, 58, 0.18); }
.t-cancel { --tone: #E53935; --tone-bg: rgba(229, 57, 53, 0.14); }
.t-open { --tone-ink: #1F6B37; } .t-delayed { --tone-ink: #4A711C; } .t-closed { --tone-ink: #6E5B00; }
.t-partial { --tone-ink: #9A4A0C; } .t-cancel { --tone-ink: #A8251F; }
@media (prefers-color-scheme: dark) {
  .t-open { --tone-ink: #8AD8A0; } .t-delayed { --tone-ink: #BBDF8A; } .t-closed { --tone-ink: #EBD96B; }
  .t-partial { --tone-ink: #F5B27A; } .t-cancel { --tone-ink: #F29A97; }
}
@media (prefers-color-scheme: dark) {
  .t-open { --tone-bg: rgba(46, 155, 78, 0.24); }
  .t-delayed { --tone-bg: rgba(139, 195, 74, 0.22); }
  .t-closed { --tone-bg: rgba(244, 220, 58, 0.2); }
  .t-partial { --tone-bg: rgba(240, 146, 58, 0.22); }
  .t-cancel { --tone-bg: rgba(229, 57, 53, 0.22); }
}
.face { width: 1.25em; height: 1.25em; flex: none; display: inline-block; --face-ink: #161616; }
.face .fc { fill: var(--face); }
.face .fr { fill: var(--surface); stroke: var(--face-ring); stroke-width: 1.5; }
.face .fi { fill: none; stroke: var(--face-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.face .fd { fill: var(--face-ink); }
.f-open { --face: #2E9B4E; }
.f-delayed { --face: #8BC34A; }
.f-closed { --face: #F4DC3A; }
.f-partial { --face: #F0923A; }
.f-cancel { --face: #E53935; }
.f-unknown { --face-ring: #B6C0BA; --face-ink: var(--muted); }
@media (prefers-color-scheme: dark) {
  .f-unknown { --face-ring: #4A5650; --face-ink: #9AA79F; }
}

.app { max-width: 720px; margin: 0 auto; padding-inline: 16px; padding-block: 0 calc(104px + env(safe-area-inset-bottom, 0px)); }

/* top bar: the name on 홈, the tab's name elsewhere; search and notifications on the right */
.topbar { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.tb-row { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand-text { flex: 1; min-width: 0; }
.logo { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 2.125rem; line-height: 1; letter-spacing: 0.01em; color: var(--title); }
.tagline { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
.tb-title { flex: 1; min-width: 0; margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--title); }
.tb-btns { flex: none; display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.tb-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--title); font-size: 25px; }
.bdot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 0 2px var(--bg); }
.install { display: inline-flex; align-items: center; gap: 5px; height: 32px; margin-right: 4px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--title); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.install .ic { font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--good); white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 2.6s ease-in-out infinite; }
.live.off { color: var(--muted); font-weight: 500; }
.live.off i { background: var(--line-2); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 골프 | 테니스 */
.sport-sw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 14px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sport-sw button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 12px; color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; }
.sport-sw button .ic { font-size: 17px; }
.sport-sw button b { font-weight: 500; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sport-sw button[aria-pressed="true"] { background: var(--hdr); color: var(--hdr-ink); }
.sport-sw button[aria-pressed="true"] b { color: var(--hdr-muted); }

.view { padding-top: 16px; }
#vHome, #vReport, #vMe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }

/* list tab: the 7-day band and the regions stay on top while the list scrolls */
.stick { position: sticky; top: 0; z-index: 20; margin-inline: -16px; background: var(--bg); }
.days-band { padding: 8px 16px 0; }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar, .regions::-webkit-scrollbar { display: none; }
.day { flex: 1 0 50px; min-width: 50px; display: grid; justify-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.day .dw { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.day.sat .dw { color: var(--sel-sat); }
.day.sun .dw { color: var(--sel-sun); }
.day .dn { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.05; }
.day .dr { min-height: 15px; display: inline-flex; align-items: center; gap: 2px; font-size: 0.6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.day .dr .ic { font-size: 11px; }
.day[aria-pressed="true"] { background: var(--hdr); color: var(--hdr-ink); border-color: var(--hdr); }
.day[aria-pressed="true"] .dw, .day[aria-pressed="true"] .dr { color: var(--hdr-muted); }
.day.sat[aria-pressed="true"] .dw { color: var(--hdr-sat); }
.day.sun[aria-pressed="true"] .dw { color: var(--hdr-sun); }

.regions-band { padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.regions { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip b { font-family: var(--font-data); font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.chip .ic { color: var(--star); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip[aria-pressed="true"] b, .chip[aria-pressed="true"] .ic { color: inherit; }

.tools { padding-top: 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted); font-size: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--focus); }

.notice { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--ink-2); }
.notice .ic { font-size: 18px; margin-top: 2px; color: var(--muted); }
.notice.alert { border-color: var(--critical); background: var(--critical-bg); color: var(--ink); }
.notice.alert .ic { color: var(--critical); }

.board { margin-top: 18px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-title { margin: 0; font-size: 1.0625rem; font-weight: 700; text-wrap: balance; }
.board-title span { margin-left: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.sort { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 0.8125rem; color: var(--ink-2); }
.tallies { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tally { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 2px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.tally .face { width: 100%; max-width: 44px; height: auto; aspect-ratio: 1 / 1; margin-bottom: 3px; }
.tally .t-l { max-width: 100%; font-size: 0.75rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally b { font-family: var(--font-data); font-weight: 500; font-size: 1.0625rem; line-height: 1.2; color: var(--ink); }
.tally.zero b { color: var(--muted); }
.tally.zero .face { opacity: 0.45; filter: grayscale(0.75); }
.tally[aria-pressed="true"] { background: var(--tone-bg); border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone); }
.risk-tally { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); text-align: left; }
.risk-tally .ic { font-size: 17px; color: var(--warn); }
.risk-tally span { flex: 1; min-width: 0; }
.risk-tally b { font-family: var(--font-data); font-weight: 500; font-size: 1rem; color: var(--ink); }
.risk-tally.zero b, .risk-tally.zero .ic { color: var(--muted); }
.risk-tally[aria-pressed="true"] { background: var(--warn-bg); border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.board-note { margin: 10px 2px 0; font-size: 0.8125rem; color: var(--muted); }

.list { margin-top: 18px; display: grid; gap: 20px; }
.group-h { margin: 0 2px 8px; display: flex; align-items: baseline; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.03em; }
.group-h b { font-family: var(--font-data); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.fav { flex: none; width: 44px; display: grid; place-items: center; color: var(--line-2); font-size: 18px; }
.fav[aria-pressed="true"] { color: var(--star); }
.fav[aria-pressed="true"] .ic, .fav-btn[aria-pressed="true"] .ic { fill: currentColor; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 0; text-align: left; }
.row-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.name { font-size: 1rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; font-size: 0.8125rem; color: var(--muted); }
.meta .wx { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); }
.meta .wx .ic { font-size: 15px; }
.meta .flag { color: var(--ink-2); }
.meta .nowrain { color: var(--rain); font-weight: 600; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.row-side { flex: none; max-width: 56%; display: flex; align-items: center; gap: 10px; text-align: right; }
.row-side > .face { width: 42px; height: 42px; }
.side-text { display: grid; justify-items: end; gap: 3px; min-width: 0; }
.st-name { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.st-none { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--tone-bg); color: var(--ink); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.badge .ic { font-size: 15px; color: var(--tone); }
.badge .face { width: 28px; height: 28px; }
.badge.t-unknown { padding-right: 0; color: var(--muted); font-weight: 500; }
.src { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.src.official { background: var(--brand); color: var(--brand-ink); }
.src.crowd { border: 1px solid var(--line-2); color: var(--ink-2); }
.src.kma { background: var(--critical); color: #FFFFFF; }
.side-top { display: inline-flex; align-items: center; gap: 5px; }
.conf { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--muted); }
.conf .ic { font-size: 12px; }
.conf .mixed { color: var(--serious); font-weight: 600; }
.upd { display: inline-flex; align-items: center; gap: 3px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upd .ic { font-size: 12px; }
.upd.recent { color: var(--good); font-weight: 600; }
.upd.big { margin: 0; font-size: 0.8125rem; white-space: normal; }
.upd.big .ic { font-size: 14px; }
.row.flash { animation: flash 2.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--good-bg); } 100% { background: transparent; } }
.risk { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; height: 22px; border-radius: 6px; border: 1px solid var(--tone); color: var(--ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.risk .ic { font-size: 13px; color: var(--tone); }
.risk.big { height: 30px; padding: 0 10px; font-size: 0.875rem; border-radius: 8px; }
.risk.big .ic { font-size: 16px; }
.alert-chip { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; height: 22px; border-radius: 6px; background: var(--critical); color: #FFFFFF; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.alert-chip .ic { font-size: 13px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.empty .ic { font-size: 26px; }
.empty .face { width: 56px; height: 56px; }
.empty p { margin: 0; max-width: 30ch; }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; color: var(--ink-2); }
.ghost.sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }

.foot { margin-top: 32px; display: grid; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.foot p { margin: 0; max-width: 62ch; }
.foot .link-btn { justify-self: start; }

.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade 0.18s ease-out; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); outline: none; padding: 10px 16px calc(28px + env(safe-area-inset-bottom, 0px)); animation: rise 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 12px; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 48px)); max-height: 86%; border-radius: 20px; padding-top: 20px; animation: pop 0.2s ease-out; }
  .sheet::before { display: none; }
}
@keyframes rise { from { transform: translateY(28px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translate(-50%, -47%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim, .live i, .row.flash { animation: none; } }

.sh-head { display: flex; align-items: flex-start; gap: 8px; }
.sh-title { flex: 1; min-width: 0; }
.sh-loc { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.sh-name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.sh-aka { margin: 4px 0 0; font-size: 0.8125rem; color: var(--muted); }
.icon-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-size: 20px; background: var(--surface); }
.icon-btn:disabled { opacity: 0.35; }
.fav-btn[aria-pressed="true"] { color: var(--star); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cbtn { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand); text-decoration: none; }
.cbtn.call { background: var(--brand); color: var(--brand-ink); }
.cbtn .ic { font-size: 20px; }
.cbtn > span { display: grid; min-width: 0; }
.cbtn b { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.cbtn small { font-family: var(--font-data); font-size: 0.75rem; line-height: 1.3; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.datebar .icon-btn { width: 38px; height: 38px; border-color: transparent; background: transparent; }
.datebar .dl { font-weight: 600; font-size: 0.9375rem; }
.datebar .dl.sat { color: var(--sel-sat); }
.datebar .dl.sun { color: var(--sel-sun); }

.now { margin-top: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.eyebrow { margin: 0 0 10px; display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.badge.big { font-size: 1.125rem; padding: 5px 16px 5px 5px; gap: 9px; }
.badge.big .ic { font-size: 21px; }
.now-empty { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.now-main { display: flex; align-items: center; gap: 14px; }
.now-main > .face { width: 64px; height: 64px; }
.now-text { display: grid; gap: 5px; min-width: 0; }
.now-label { margin: 0; font-size: 1.3125rem; font-weight: 700; line-height: 1.3; }
.now-label.muted { color: var(--ink-2); }
.now-main .now-sub { margin: 0; }
.now-sub { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.875rem; color: var(--ink-2); }
.now-sub .ic { font-size: 15px; }
.mixed-note { margin: 10px 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-2); }
.mixed-note .ic { font-size: 16px; color: var(--serious); margin-top: 2px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 50px; margin-top: 14px; border-radius: 13px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 1rem; }
.cta .ic { font-size: 18px; }
.cta:disabled { background: var(--line); color: var(--muted); }
.cta.alt { background: var(--surface); color: var(--brand); border: 1.5px solid var(--brand); margin-top: 8px; }
.cta-why { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); text-align: center; }

.rep-form { margin-top: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; }
.rep-form.official { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.form-h { margin: 0 0 12px; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.opts { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt.on { background: var(--tone-bg); border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone); }
.opt:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.opts.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.opts.faces .opt { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 10px 2px 9px; text-align: center; }
.opts.faces .face { width: 100%; max-width: 52px; height: auto; aspect-ratio: 1 / 1; transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease; }
.opts.faces .opt.on .face { transform: scale(1.08); }
.opts.faces.picked .opt:not(.on) .face { opacity: 0.45; filter: grayscale(0.8); }
.opt-name { font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.opt-desc { margin: 10px 2px 0; min-height: 1.5em; font-size: 0.875rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .opts.faces .face { transition: none; } }
.bus { border: 0; padding: 0; margin: 14px 0 0; }
.bus legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.bus legend small, .note small { font-weight: 400; color: var(--muted); }
.bu-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bu-chip { position: relative; }
.bu-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bu-chip span { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.bu-chip span small { font-weight: 400; color: var(--muted); }
.bu-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bu-chip input:checked + span small { color: inherit; }
.bu-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.note { display: grid; gap: 8px; margin-top: 14px; font-size: 0.875rem; font-weight: 600; }
.note input, .note select { height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; min-width: 0; }
.note input:focus, .note select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.form-foot { display: flex; gap: 8px; margin: 8px 0 0; font-size: 0.75rem; color: var(--muted); }
.form-foot .cnt { font-family: var(--font-data); flex: none; }
.form-actions { display: flex; gap: 8px; margin-top: 14px; }
.form-actions .cta { margin-top: 0; flex: 1; }

.sec-h { margin: 26px 0 10px; display: flex; align-items: baseline; gap: 6px; font-size: 0.9375rem; font-weight: 700; }
.sec-h span { font-family: var(--font-data); font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.sec-h span.t { font-family: var(--font-body); font-weight: 400; }
.sec-sub { margin: -4px 0 10px; font-size: 0.8125rem; color: var(--muted); }
.rep-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rep-list.official { border-color: var(--brand); }
.rep { padding: 13px 14px; border-top: 1px solid var(--line); }
.rep:first-child { border-top: 0; }
.rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.6875rem; font-weight: 600; color: var(--ink-2); }
.rep-note { margin: 8px 0 0; font-size: 0.9375rem; overflow-wrap: anywhere; }
.rep-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); flex-wrap: wrap; }
.rep-foot .when { margin-right: auto; }
.rep-foot a { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.thumb { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.thumb .face { width: 30px; height: 30px; }
.thumb b { font-family: var(--font-data); font-weight: 500; }
.thumb[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.thumb:disabled { opacity: 0.6; }
.link-btn { padding: 8px 2px; font-size: 0.8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.link-btn.danger { color: var(--critical); }
.flag-done { font-size: 0.75rem; color: var(--muted); }
.flag-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.flag-pick > span { width: 100%; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.tag.warn { border-color: var(--serious); color: var(--serious); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 44px; margin-top: 8px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; }
.share-btn .ic { font-size: 17px; }
.legal { font-size: 0.75rem; }
.legal a { color: var(--muted); }
.seo { padding: 16px 4px; color: var(--ink-2); font-size: 0.875rem; }
.seo h2 { margin: 0 0 6px; font-size: 1.125rem; color: var(--ink); }
.seo ul { padding-left: 18px; }
.seo a { color: var(--brand); }

.wx-alert { margin: 0 0 12px; display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--critical-bg); border: 1px solid var(--critical); font-size: 0.875rem; }
.wx-alert .ic { font-size: 18px; color: var(--critical); margin-top: 1px; }
.now-wx { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.875rem; }
.now-wx b { font-family: var(--font-data); font-weight: 500; }
.now-wx .ic { font-size: 16px; color: var(--ink-2); }
.now-wx .when { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
.risk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.why { font-size: 0.875rem; color: var(--ink-2); }
.wx-note { margin: 8px 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-2); }
.wx-note .ic { font-size: 15px; margin-top: 2px; color: var(--muted); }
.dry { margin: 14px 0 0; display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.dry .ic { font-size: 17px; color: var(--muted); }
.chart { margin: 16px 0 0; }
.chart figcaption { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 20px; font-size: 0.8125rem; color: var(--ink-2); }
.readout { font-family: var(--font-data); color: var(--ink); white-space: nowrap; }
.plot { position: relative; height: 104px; }
.gridline { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.ytick { position: absolute; transform: translateY(-3px); font-family: var(--font-data); font-size: 0.6875rem; color: var(--muted); }
.bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; border-bottom: 1px solid var(--line-2); touch-action: pan-y; }
.bar-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: crosshair; }
.bar { width: 100%; max-width: 24px; background: var(--rain); border-radius: 4px 4px 0 0; }
.bar.zero { height: 0 !important; }
.bar-col.hl { background: var(--rain-bg); border-radius: 4px 4px 0 0; }
.bar-col.hl .bar { background: color-mix(in srgb, var(--rain) 70%, var(--ink)); }
.cap { position: absolute; left: 50%; transform: translate(-50%, -3px); font-family: var(--font-data); font-size: 0.6875rem; color: var(--ink); white-space: nowrap; }
.xaxis, .buaxis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.xaxis { margin-top: 5px; }
.xaxis span { grid-row: 1; text-align: center; font-family: var(--font-data); font-size: 0.6875rem; color: var(--muted); white-space: nowrap; }
.buaxis { margin-top: 6px; }
.bu-br { grid-row: 1; margin: 0 1px; padding-top: 3px; border-top: 2px solid var(--line-2); text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--ink-2); }
.card3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card3 > div { display: grid; gap: 1px; padding: 10px 12px; border-left: 1px solid var(--line); }
.card3 > div:first-child { border-left: 0; }
.card3 .k { font-size: 0.75rem; color: var(--muted); }
.card3 .v { font-family: var(--font-data); font-size: 1.0625rem; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 14px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 0.875rem; min-width: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-data); white-space: nowrap; }
.table-toggle { margin-top: 10px; }
.hour-wrap { margin-top: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.hour-table { border-collapse: collapse; font-family: var(--font-data); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.hour-table th, .hour-table td { padding: 6px 9px; text-align: center; white-space: nowrap; border-left: 1px solid var(--line); }
.hour-table th { color: var(--muted); font-weight: 500; }
.hour-table tr + tr td { border-top: 1px solid var(--line); }
.hour-table th:first-child, .hour-table td:first-child { border-left: 0; font-family: var(--font-body); color: var(--muted); text-align: left; }
.srcline { margin: 16px 0 0; font-size: 0.75rem; color: var(--muted); }
.srcline .stale { color: var(--serious); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ext { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.ext .ic { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.admin-box { margin-top: 22px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); display: grid; gap: 8px; font-size: 0.875rem; }
.admin-box h3 { margin: 0; font-size: 0.875rem; }
.admin-box > button { justify-self: start; }
.code-out { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.code-out code { font-family: var(--font-data); font-size: 1rem; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); user-select: all; }
.code-panel { display: grid; gap: 12px; margin-top: 6px; }
.code-panel h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.code-panel p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.code-panel a { color: var(--brand); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 0.875rem; box-shadow: var(--shadow); }

/* ---------- growth features: my rounds, round index, policies, reviews, levels, course posts, promos ---------- */

/* 라운드 지수: grade colours run like the faces, best to worst */
.ixc-5 { --ix-c: #2E9B4E; --ix-bg: rgba(46, 155, 78, 0.15); --ix-ink: #1C6E36; }
.ixc-4 { --ix-c: #7CB342; --ix-bg: rgba(139, 195, 74, 0.2); --ix-ink: #456E17; }
.ixc-3 { --ix-c: #D9BE14; --ix-bg: rgba(244, 220, 58, 0.3); --ix-ink: #6B5800; }
.ixc-2 { --ix-c: #F0923A; --ix-bg: rgba(240, 146, 58, 0.2); --ix-ink: #94470A; }
.ixc-1 { --ix-c: #E53935; --ix-bg: rgba(229, 57, 53, 0.15); --ix-ink: #A72420; }
@media (prefers-color-scheme: dark) {
  .ixc-5 { --ix-ink: #7FD79A; } .ixc-4 { --ix-ink: #B5DD86; } .ixc-3 { --ix-ink: #F1DE6B; } .ixc-2 { --ix-ink: #F6B77C; } .ixc-1 { --ix-ink: #F48C89; }
}
.ix { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--ix-bg); color: var(--ix-ink); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ring { --v: 0; width: 56px; height: 56px; flex: none; border-radius: 50%; background: conic-gradient(var(--ix-c) calc(var(--v) * 1%), var(--line) 0); display: grid; place-items: center; }
.ring b { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-data); font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.ixcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ixcard { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 12px 6px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.ixcard.past { opacity: 0.45; }
.ixcard.mine { box-shadow: inset 0 0 0 2px var(--brand); border-color: var(--brand); }
.ixcard-h { font-size: 0.8125rem; font-weight: 700; }
.ixcard-h small { font-weight: 400; color: var(--muted); }
.ixcard .ring { margin: 4px 0 2px; }
.ixcard-l { font-size: 0.875rem; font-weight: 700; }
.ixcard-w { max-width: 100%; font-size: 0.75rem; color: var(--ink-2); overflow-wrap: anywhere; }
.ixcard-m { font-family: var(--font-data); font-size: 0.6875rem; color: var(--muted); }
.ix-foot { margin: 10px 2px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.8125rem; color: var(--ink-2); }
.ix-foot .ic { font-size: 15px; color: var(--muted); }

/* best courses strip */
.best { margin-top: 18px; }
.best-h { margin: 0 2px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.9375rem; font-weight: 700; }
.best-h .ic { font-size: 16px; color: var(--star); }
.best-h span { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.best-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
.best-row::-webkit-scrollbar { display: none; }
.best-card { flex: 0 0 auto; width: 156px; display: grid; gap: 4px; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; scroll-snap-align: start; }
.best-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.best-bu { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.best-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.best-why { font-size: 0.75rem; color: var(--muted); }

/* saved rounds (마이) */
.up-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--brand); text-align: left; }
.up-card > .face { width: 38px; height: 38px; }
.up-card > .ic { margin-left: auto; font-size: 18px; color: var(--muted); }
.up-text { display: grid; gap: 1px; min-width: 0; }
.up-when { font-size: 0.75rem; font-weight: 700; color: var(--brand); }
.up-name { font-weight: 700; overflow-wrap: anywhere; }
.up-meta { font-size: 0.8125rem; color: var(--muted); }
.up-list { display: grid; gap: 8px; }

/* chips on rows */
.deal-chip { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; background: #2257B8; color: #FFFFFF; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.deal-chip .ic { font-size: 12px; }
.lv { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }
.lv .ic { font-size: 12px; }
.lv-3 { border-color: #7CB342; color: var(--ink); }
.lv-4 { border-color: #2E9B4E; color: var(--ink); }
.lv-5 { border-color: #E0A100; color: var(--ink); background: rgba(224, 161, 0, 0.12); }
.lv.king { background: #F2B92B; border-color: #E0A100; color: #3A2A00; }

/* round card panel */
.rc-when { margin: 6px 0 0; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.rc-ix { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rc-ix-l { margin: 0; font-weight: 700; }
.rc-why { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.kv { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 0.875rem; color: var(--ink-2); }
.rc-sun, .rc-dl, .dl-line { margin: 10px 0 0; display: flex; align-items: flex-start; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.rc-sun .ic, .rc-dl .ic, .dl-line .ic { font-size: 16px; margin-top: 2px; color: var(--muted); flex: none; }
.dl-line { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.votes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vote { display: grid; justify-items: center; gap: 2px; padding: 11px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 0.875rem; }
.vote b { font-family: var(--font-data); font-weight: 500; font-size: 1.25rem; }
.vote[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.toggle { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; }
.toggle > .ic { font-size: 20px; color: var(--brand); flex: none; }
.toggle > span:not(.sw) { display: grid; gap: 1px; min-width: 0; }
.toggle small { font-size: 0.75rem; color: var(--muted); }
.toggle .sw { margin-left: auto; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background 0.15s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.toggle[aria-pressed="true"] { border-color: var(--brand); }
.toggle[aria-pressed="true"] .sw { background: var(--brand); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(18px); }
.rc-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; }
.rc-foot .link-btn { display: inline-flex; align-items: center; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .toggle .sw, .toggle .sw::after { transition: none; } }

/* my page */
.push-card { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 6px; }
.push-card.on { border-color: var(--brand); }
.pc-t { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pc-t .ic { font-size: 18px; color: var(--brand); }
.pc-s { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.pc-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.push-card .cta { margin-top: 6px; }
.pick-search { margin-bottom: 8px; }
.pick-results { display: grid; gap: 6px; }
.pick-item, .pick-sel { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.pick-item span, .pick-sel span { font-size: 0.8125rem; color: var(--muted); }
.pick-sel { border-color: var(--brand); }
.pick-sel .link-btn { margin-left: auto; padding: 0; }
.mystat { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.lv-big { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-big .lv { height: 26px; font-size: 0.8125rem; padding: 0 10px; }
.prog { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.staff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.staff-stats > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.staff-stats .k { font-size: 0.6875rem; color: var(--muted); }
.staff-stats b { font-family: var(--font-data); font-weight: 500; font-size: 1.0625rem; }

/* course posts */
.notice-card { margin-top: 12px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--brand); background: var(--surface); }
.notice-card .eyebrow { margin-bottom: 6px; }
.nc-title { margin: 0; font-weight: 700; }
.nc-body { margin: 4px 0 0; font-size: 0.9375rem; overflow-wrap: anywhere; }
.nc-foot { margin: 6px 0 0; font-size: 0.75rem; color: var(--muted); }
.nc-foot a { color: var(--brand); font-weight: 600; }
.deals { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.deals li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.deals li:first-child { border-top: 0; }
.deals li.on { background: var(--rain-bg); }
.deal-when { font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
.deal-main { flex: 1; min-width: 140px; display: grid; gap: 1px; }
.deal-title { font-weight: 700; }
.deal-body { font-size: 0.8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.deal-price { font-family: var(--font-data); font-weight: 500; color: var(--ink); }

/* policies */
.pol { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.pol > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.pol > div:first-child { border-top: 0; }
.pol dt { color: var(--muted); font-weight: 600; }
.pol dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pol-src { margin: 8px 2px 0; font-size: 0.75rem; color: var(--muted); }
.pol-src a { color: var(--brand); }
.std { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.std summary { padding: 10px 12px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.std ul { margin: 0; padding: 0 14px 4px 30px; font-size: 0.8125rem; color: var(--ink-2); display: grid; gap: 4px; }
.std .pol-src { margin: 6px 14px 10px; }
.pol-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.pol-actions .ghost .ic { font-size: 14px; }
textarea.ta { min-height: 76px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; resize: vertical; }
textarea.ta:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }

/* reviews */
.rsum { display: grid; gap: 7px; margin-bottom: 8px; }
.rbar { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 4px 10px; font-size: 0.8125rem; }
.rbar > span:first-child { font-weight: 600; color: var(--ink-2); }
.bar2 { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; }
.bar2 i { display: block; height: 100%; }
.rbar-l { grid-column: 2; font-size: 0.75rem; color: var(--muted); }
.rchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rev-when { font-size: 0.8125rem; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-o { position: relative; }
.seg-o input { position: absolute; opacity: 0; pointer-events: none; }
.seg-o span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.seg-o input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg-o input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.rv-f { border: 0; padding: 0; margin: 14px 0 0; }
.rv-f legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }

/* staff tools */
.staff-box { gap: 10px; }
.staff-box h3 { display: flex; align-items: center; gap: 6px; }
.staff-box h3 small { font-weight: 400; color: var(--muted); }
.staff-box h4 { margin: 4px 0 0; font-size: 0.8125rem; }
.staff-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-actions .ic { font-size: 14px; }
.spark { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 3px; height: 44px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.spark i { display: block; border-radius: 3px 3px 0 0; background: var(--brand); opacity: 0.8; min-height: 2px; }
.sg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sg li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; }
.sg li > span { min-width: 0; overflow-wrap: anywhere; }
.sg .link-btn { flex: none; padding: 0; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.adm-table th, .adm-table td { padding: 4px 6px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.adm-table th:first-child, .adm-table td:first-child { text-align: left; }
.adm-table th { color: var(--muted); font-weight: 600; border-top: 0; }
.adm-wrap { overflow-x: auto; }
.promo-list { display: grid; gap: 6px; }
.promo-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; }
.promo-row.off { opacity: 0.55; }
.promo-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chk-row { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.875rem; font-weight: 400; }
.chk-row label { display: inline-flex; align-items: center; gap: 5px; }
.warn-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); font-size: 0.8125rem; color: var(--ink); }

/* promos: always labelled, never above the status */
.promo-wrap { margin-top: 4px; }
.promo-ds { margin: 0 2px 6px; font-size: 0.6875rem; color: var(--muted); }
.promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); text-decoration: none; color: inherit; }
.promo .ad { flex: none; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); font-size: 0.6875rem; font-weight: 700; color: var(--muted); }
.promo-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.promo-text span { font-size: 0.8125rem; color: var(--ink-2); }
.promo-cta { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 700; color: var(--brand); }
.promo-cta .ic { font-size: 13px; }
#shPromo:not(:empty) { margin-top: 18px; }

/* my courses on the main page */
.mine { margin-top: 14px; }
.mine-h { margin: 0 2px 8px; display: flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 700; }
.mine-h .ic { font-size: 16px; color: var(--star); }
.mine-h span { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.mine-h .link-btn { margin-left: auto; padding: 0; font-size: 0.8125rem; }
.mine-list { display: grid; gap: 6px; }
.mine-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.mine-card > .face { width: 32px; height: 32px; }
.mine-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mine-name { font-weight: 700; overflow-wrap: anywhere; }
.mine-st { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; font-size: 0.8125rem; color: var(--ink-2); }
.mine-side { display: grid; justify-items: end; gap: 3px; flex: none; }
.mine-side small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.mine-hint { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 0.8125rem; color: var(--ink-2); }
.mine-hint .ic { color: var(--star); font-size: 16px; flex: none; }

/* one-tap on-site report */
.quick { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--brand); }
.quick-h { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 700; }
.quick-h .ic { color: var(--brand); font-size: 17px; }
.quick-h small { flex-basis: 100%; font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.quick-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.quick-b { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--tone-bg); color: var(--ink); font-weight: 700; text-align: left; }
.quick-b .face { width: 28px; height: 28px; }
.quick-b:disabled { opacity: 0.6; }
.quick.done { display: flex; align-items: center; gap: 10px; border-color: var(--line); }
.quick.done > .face { width: 34px; height: 34px; }
.quick-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.quick-text small { font-size: 0.75rem; color: var(--muted); }
.quick .link-btn { flex: none; padding: 0; }

/* tee-time strip */
.tee-box { margin-top: 16px; }
.tee-box .sec-h { margin-top: 0; }
.tee-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tee-chips::-webkit-scrollbar { display: none; }
.chip-h { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-h[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tee-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tee-h { display: grid; justify-items: center; gap: 3px; padding: 10px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 0.75rem; color: var(--ink-2); text-align: center; }
.tee-h.first { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tee-h .th { font-weight: 700; color: var(--ink); }
.tee-h .ic { font-size: 22px; color: var(--ink-2); }
.tee-h b { font-family: var(--font-data); font-weight: 500; font-size: 1rem; color: var(--ink); }
.tee-h .wet { color: var(--rain); font-weight: 700; }
.tee-h.past { opacity: 0.45; }
.tee-legend { margin: 6px 2px 0; font-size: 0.75rem; color: var(--muted); }

/* nearby alternatives */
.alts .sec-sub { margin-top: 6px; }
.alt-list { display: grid; gap: 6px; }
.alt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.alt > .face { width: 28px; height: 28px; }
.alt-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.alt-name { font-weight: 700; overflow-wrap: anywhere; }
.alt-meta { font-size: 0.8125rem; color: var(--muted); }
.alt .ix { flex: none; }

/* admin KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.kpi .k { font-size: 0.75rem; color: var(--muted); }
.kpi b { font-family: var(--font-data); font-weight: 500; font-size: 1.125rem; }
.kpi small { font-size: 0.6875rem; color: var(--muted); }
.kpi-note { margin: 6px 0 0; font-size: 0.6875rem; color: var(--muted); }

/* tennis: best time of the day, hourly index chart, three-hour strip */
.tx-best { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tx-best .rc-ix-l { margin: 0; }
.ixchart figcaption { display: grid; gap: 2px; margin-bottom: 12px; }
.ixchart .readout { white-space: normal; font-family: var(--font-body); font-weight: 600; }
.ixchart .plot { height: 88px; }
.ixchart .bar { background: var(--ix-c); }
.ixchart .bar-col.past .bar { opacity: 0.35; }
.ixchart .bar-col.hl { background: var(--surface-2); }
.ixchart .bar-col.hl .bar { background: color-mix(in srgb, var(--ix-c) 75%, var(--ink)); }
.tee-strip.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Tennis wears a hard court the way golf wears a fairway: a blue playing surface inside a green surround,
   crisp white lines (baseline with its centre mark, doubles and singles sidelines) and ball-yellow highlights.
   html[data-sport] is set by the app, and already in the HTML of the tennis pages. */
html[data-sport="tennis"] {
  --brand: #2A5B99; --focus: #2A78D6;
  --hdr: #2B5C99; --hdr-2: #2B5C99; --hdr-ink: #F4F7FB; --hdr-muted: #C2D4EB;
  --hdr-chip: rgba(255, 255, 255, 0.1); --hdr-line: rgba(255, 255, 255, 0.26);
  --sel-bg: #DDF06A; --sel-ink: #16355E; --sel-sat: #1E4FA6; --sel-sun: #B4261E; --hdr-sat: #D6E4FF; --hdr-sun: #FFC4BC;
  --bg: #EEF2F7; --surface-2: #F3F6FA; --ink: #0F1722; --ink-2: #3E4856; --muted: #65707F; --line: #D7DEE8; --line-2: #B9C5D4;
  --court: #2B5C99; --court-out: #3C7754; --court-line: rgba(255, 255, 255, 0.9);
  --title: #183A66; --tabbar: rgba(255, 255, 255, 0.9);
}
@media (prefers-color-scheme: dark) {
  html[data-sport="tennis"] {
    --brand: #3B75C2; --focus: #5EA2F0;
    --hdr: #1E4476; --hdr-2: #1E4476; --hdr-muted: #9FB6D6;
    --sel-bg: #D3E75E; --sel-ink: #13294A;
    --bg: #0B0F15; --surface: #121821; --surface-2: #17202B; --ink: #E6ECF4; --ink-2: #B3BFCD; --muted: #8592A4; --line: #222C39; --line-2: #354355;
    --court: #1E4476; --court-out: #285A3E; --court-line: rgba(255, 255, 255, 0.72);
    --title: #E6ECF4; --tabbar: rgba(18, 24, 33, 0.9);
  }
}
html[data-sport="tennis"] .hero-card {
  --g: 8px; --a: 7px; --t: 10px;   /* green surround beside the court, doubles alley, green behind the baseline */
  background-color: var(--court-out);
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--court-line), var(--court-line)), linear-gradient(var(--court-line), var(--court-line)),
    linear-gradient(var(--court-line), var(--court-line)), linear-gradient(var(--court-line), var(--court-line)),
    linear-gradient(var(--court-line), var(--court-line)), linear-gradient(var(--court-line), var(--court-line)),
    linear-gradient(var(--court), var(--court));
  background-size:
    2px 10px, calc(100% - 2 * var(--g)) 2px,
    2px 100%, 2px 100%, 2px 100%, 2px 100%,
    calc(100% - 2 * var(--g)) 100%;
  background-position:
    50% calc(var(--t) + 2px), var(--g) var(--t),
    var(--g) var(--t), calc(var(--g) + 2px + var(--a)) var(--t),
    calc(100% - var(--g)) var(--t), calc(100% - var(--g) - 2px - var(--a)) var(--t),
    var(--g) var(--t);
  box-shadow: 0 14px 28px -16px rgba(16, 44, 82, 0.6);
}
html[data-sport="tennis"] .hero-card { padding-inline: 26px; }
html[data-sport="tennis"] .sport-sw button[aria-pressed="true"] { background: var(--court); color: #FFFFFF; }
html[data-sport="tennis"] .sport-sw button[aria-pressed="true"] .ic { color: var(--sel-bg); }
html[data-sport="tennis"] .sport-sw button[aria-pressed="true"] b { color: #C2D4EB; }
html[data-sport="tennis"] .day[aria-pressed="true"] { background: var(--court); border-color: var(--court); color: #FFFFFF; }
html[data-sport="tennis"] .day[aria-pressed="true"] .dn { color: var(--sel-bg); }

/* search: results start right under the box */
.search-sum { margin: 0 2px; display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.search-sum .ic { font-size: 15px; color: var(--muted); flex: none; }
.search-sum b { color: var(--ink); }
.search-sum .link-btn { margin-left: auto; padding: 4px 2px; flex: none; }
body.searching .list { margin-top: 12px; gap: 14px; min-height: 85vh; }
.tee-h { align-content: start; }
.tee-h .ix { margin-top: 2px; }
.pol + .links { margin-top: 10px; }

/* ---------- 홈: one loud card, then quiet ones ---------- */
#vHome .notice { margin-top: 0; }
#vHome .best { margin-top: 4px; }
.hero-card { position: relative; display: block; width: 100%; padding: 20px 20px 18px; border-radius: 26px; text-align: left; color: var(--hdr-ink); background-color: var(--hdr); background-image: repeating-linear-gradient(90deg, transparent 0 34px, var(--hdr-2) 34px 68px); box-shadow: 0 14px 28px -16px rgba(8, 36, 24, 0.55); overflow: hidden; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; font-size: 0.875rem; font-weight: 600; color: var(--hdr-muted); }
.hero-top > .ic { flex: none; font-size: 22px; color: var(--hdr-ink); }
.hero-name { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.12; overflow-wrap: anywhere; }
.hero-when { display: block; margin-top: 8px; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-wx { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.9375rem; font-weight: 500; }
.hero-wx > .ic { flex: none; font-size: 21px; }
.hero-wx .go { margin-left: auto; font-size: 18px; opacity: 0.75; }
.hero-note { display: block; margin-top: 8px; max-width: 34ch; font-size: 0.875rem; color: var(--hdr-muted); }
.hero-cta { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin-top: 16px; padding: 0 16px 0 13px; border-radius: 14px; background: var(--sel-bg); color: var(--sel-ink); font-weight: 700; }
.hero-cta .ic { font-size: 18px; }

.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink); font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.pill .face { width: 22px; height: 22px; }
.pill.t-unknown { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.pill.on-dark { background: var(--hdr-ink); color: var(--hdr); }
/* a report nobody else has confirmed yet: the same face and words, drawn lighter, so one person cannot paint a place red */
.face.soft { opacity: 0.5; }
.pill.soft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tone-ink); }
.pill.soft.t-unknown { box-shadow: none; }
.pill.soft.on-dark { background: transparent; color: var(--hdr-ink); box-shadow: inset 0 0 0 1.5px var(--hdr-ink); }
.side-text.soft .st-name { color: var(--muted); }
.tag.ok { border-color: var(--good); color: var(--good); }
.quick-text .q-more { display: block; margin-top: 2px; }

.card { padding: 20px; border-radius: 22px; background: var(--surface); }
.card-h { display: flex; align-items: center; gap: 10px; }
.card-h h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card-h .link-btn { flex: none; padding: 4px 0; }
.card-sub { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
.card-n { flex: none; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-list { margin-top: 6px; }
.hs-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 0; border-top: 1px solid var(--line); text-align: left; }
.hs-row:first-child { border-top: 0; }
.hs-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hs-name { display: flex; align-items: center; gap: 5px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hs-name .ic { flex: none; font-size: 15px; color: var(--star); fill: currentColor; }
.hs-sub { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-empty { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); font-size: 0.875rem; color: var(--ink-2); }
.hs-empty .face { width: 36px; height: 36px; }
.hs-empty p { margin: 0; }
.hs-empty b { color: var(--ink); font-weight: 600; }
.hs-hint { margin: 12px 0 0; display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.hs-hint .ic { flex: none; color: var(--star); }
.hs-all { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 46px; margin-top: 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }
.hs-all .ic { font-size: 17px; }

.qk-title { margin: 0; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.qk-place { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 1.1875rem; font-weight: 700; overflow-wrap: anywhere; }
.qk-place .ic { flex: none; font-size: 18px; color: var(--brand); }
.qk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.qk-btn { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 94px; padding: 12px 8px; border-radius: 18px; background: var(--qk-bg); color: var(--qk-ink); font-size: 1rem; font-weight: 700; }
.qk-btn .ic { font-size: 27px; }
.qk-btn:disabled { opacity: 0.6; }
.qk-btn.go { --qk-bg: #E5F2E8; --qk-ink: #24653A; }
.qk-btn.wait { --qk-bg: #FCF0DA; --qk-ink: #8F5D12; }
.qk-btn.wet { --qk-bg: #E3EDFA; --qk-ink: #22528F; }
.qk-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; padding: 4px 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.qk-more .ic { font-size: 16px; }
.card .quick { margin-top: 14px; padding: 0; border: 0; background: none; }
.card .quick.done { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }

/* ---------- 현장 제보 ---------- */
#vReport .pick-search { margin: 14px 0 8px; }
.pick-label { margin: 6px 2px 2px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }

/* 내 주변: places sorted by distance from the phone (the position never leaves the phone) */
.near-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--brand); background: var(--surface); color: var(--brand); font-weight: 700; }
.near-btn .ic { font-size: 18px; }
.near-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.875rem; color: var(--ink-2); }
.near-note .ic { flex: none; font-size: 18px; color: var(--muted); }
.near-note span { flex: 1; min-width: 0; }
.near-note .link-btn { flex: none; padding: 0; }
.near-note.asking .ic { color: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
.near-item { align-items: center; flex-wrap: wrap; }
.near-item b { min-width: 0; }
.pick-item.near-item .near-d { margin-left: auto; padding-left: 8px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.near-item.here { border: 1.5px solid var(--brand); background: var(--surface-2); }
.here-tag { order: -1; flex-basis: 100%; display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--brand); }
.here-tag .ic { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .near-note.asking .ic { animation: none; } }
.feed { margin-top: 6px; }
.feed-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; }
.feed-row:first-child { border-top: 0; }
.feed-row > .face { width: 34px; height: 34px; }
.feed-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.feed-name { font-weight: 700; overflow-wrap: anywhere; }
.feed-what { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 0.8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.feed-side { flex: none; display: grid; justify-items: end; gap: 3px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed-v { display: inline-flex; align-items: center; gap: 3px; }
.feed-v .ic { font-size: 12px; }
.lv-line { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 18px; border-radius: 18px; background: var(--surface); text-align: left; font-size: 0.875rem; color: var(--ink-2); }
.lv-line > .ic { flex: none; font-size: 18px; color: var(--star); }
.lv-line .go { margin-left: auto; color: var(--muted); }
.lv-line b { color: var(--ink); }

/* ---------- 마이 ---------- */
#vMe .card > .sec-h:first-child { margin-top: 0; }
#vMe .push-card { margin-top: 0; padding: 18px 20px; border-radius: 22px; border: 0; background: var(--surface); }
#vMe .push-card.on { box-shadow: inset 0 0 0 1.5px var(--brand); }
#vMe .mystat { padding: 0; border: 0; background: none; }
#vMe .up-list { margin-top: 12px; }
#vMe .cta { margin-top: 14px; }
.me-sub { margin: 14px 0 8px; display: flex; align-items: baseline; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.me-sub span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.me-links { padding-block: 6px; }
.me-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 600; text-decoration: none; color: inherit; }
.me-link:first-child { border-top: 0; }
.me-link > .ic { flex: none; font-size: 20px; color: var(--ink-2); }
.me-link .go { margin-left: auto; font-size: 18px; color: var(--muted); }
.me-foot { display: grid; gap: 8px; padding: 0 4px; font-size: 0.75rem; color: var(--muted); }
.me-foot p { margin: 0; max-width: 62ch; }
.pick-form { margin-top: 14px; }

/* plan cards: invite the people you play with */
.invite { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--brand); display: grid; gap: 6px; }
.iv-t { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; }
.iv-t .ic { flex: none; font-size: 18px; color: var(--brand); }
.iv-s { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.invite .cta { margin-top: 8px; }
.invite .share-btn { margin-top: 2px; text-decoration: none; }
.iv-n { margin: 2px 0 0; font-size: 0.8125rem; color: var(--muted); }
.alert-bar { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--warn-bg); font-size: 0.875rem; color: var(--ink); }
.alert-bar .ic { flex: none; font-size: 17px; }
.alert-bar span { flex: 1; min-width: 0; }
.alert-bar .ghost.sm { flex: none; }

/* ---------- bottom tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--tabbar); border-top: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); }
.tabbar-in { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tab { display: grid; justify-items: center; align-content: center; gap: 4px; height: 62px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.tab .ic { font-size: 25px; stroke-width: 1.9; }
.tab[aria-current="page"] { color: var(--title); }
.tab[aria-current="page"] .ic { stroke-width: 2.3; }
@media (prefers-color-scheme: dark) {
  .sport-sw button[aria-pressed="true"], .day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
  .sport-sw button[aria-pressed="true"] b, .day[aria-pressed="true"] .dw, .day[aria-pressed="true"] .dr { color: rgba(255, 255, 255, 0.72); }
  .qk-btn.go { --qk-bg: rgba(46, 155, 78, 0.18); --qk-ink: #8AD8A0; }
  .qk-btn.wait { --qk-bg: rgba(250, 178, 25, 0.16); --qk-ink: #F3C76A; }
  .qk-btn.wet { --qk-bg: rgba(57, 135, 229, 0.2); --qk-ink: #9CC3F5; }
}
