/* ============================================================
   PACESET（旧 ROLL CALL・ランとも）— デザイン A「計器」
   2026-10-26: TRAIL STATUS のデザイン A に合わせて刷新。
   黒の地＋1px の枠、差し色は信号オレンジ1色。英数字は Space Mono、和文はシステムの書体。
   丸い大きなカード・グラデーション・光る影は使わない。
   ============================================================ */
:root {
  --bg: #141413;
  --surface: #1f1f1d;
  --surface-2: #262624;
  --surface-3: #2e2e2b;
  --border: #353530;
  --border-2: #4a4a43;
  --text: #f6f3ec;
  --text-2: #cfcbc2;
  --muted: #a29e94;
  --dim: #959188;
  --tick: #55524b;
  --signal: #ef5e26;
  --sig-rgb: 239, 94, 38;
  --on-signal: #141413;
  --signal-ink: #f37949;   /* 暗い面の上の信号色の字 */
  --lcd: #a9b1b2; --lcd-ink: #141617;
  --danger: #ea4d42;
  --r: 2px;
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Hiragino Sans", "Noto Sans JP", sans-serif;
  /* 2026-10-26: 数字は読みやすい書体に（Space Mono の 0・1 が読みにくいと持ち主から）。英字のラベルは Space Mono のまま */
  --font-num: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; font-family: var(--font-jp); color: var(--text); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
.num { font-family: var(--font-num); }
.eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.ic.s { width: 15px; height: 15px; }
.ic.l { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* 札（枠で囲んだ等幅のラベル） */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border: 1px solid currentColor;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.tag.solid { background: var(--on-signal); color: var(--signal); border-color: var(--on-signal); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 500; height: 60px; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand h1 { margin: 0; font-family: var(--font-mono); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: .08em; }
.brand .sub { display: block; font-size: 11px; margin-top: 4px; color: var(--dim); letter-spacing: .1em; }
.mode-badge { width: 8px; height: 8px; background: var(--dim); margin-left: 4px; }
.mode-badge.live { background: var(--signal); }
.mode-badge.demo { background: none; border: 1px solid var(--dim); }

.seg { display: flex; border: 1px solid var(--border); }
.seg button { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 36px; border: none; border-right: 1px solid var(--border); background: none; color: var(--muted); font-size: 13px; font-weight: 700; transition: .15s; }
.seg button:last-child { border-right: none; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--signal); color: var(--on-signal); }

.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 1px solid var(--border); color: var(--muted); transition: .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.chip-btn { white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; background: none; border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 700; transition: .15s; }
.chip-btn:hover { border-color: var(--border-2); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; background: var(--signal); border: none; color: var(--on-signal); font-size: 14px; font-weight: 800; transition: .15s; white-space: nowrap; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: none; border: 1px solid var(--border-2); color: var(--text-2); font-size: 13px; font-weight: 700; transition: .15s; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }

/* ---------- Avatars（イニシャルの札） ---------- */
.av { width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text); background: var(--surface-3); border: 1px solid var(--bg); flex: none; line-height: 1; }
.av.sm { width: 22px; height: 22px; font-size: 11px; }
.av.me { background: var(--signal); color: var(--on-signal); }
.av.more { background: var(--surface-2); color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.av.none { background: none; color: var(--muted); border-color: transparent; }
.av-stack { display: inline-flex; align-items: center; }
.av-stack .av + .av { margin-left: -3px; }

/* ---------- Controls ---------- */
.controls { padding: 18px 24px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; }
.search { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: none; border: 1px solid var(--border); color: var(--dim); min-width: 240px; transition: .15s; }
.search:focus-within { border-color: var(--border-2); color: var(--muted); }
.search input { border: none; background: none; color: var(--text); font-size: 13px; outline: none; width: 100%; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: none; border: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 600; transition: .15s; white-space: nowrap; }
.chip:hover { border-color: var(--border-2); }
.chip.active { background: var(--signal); border-color: var(--signal); color: var(--on-signal); font-weight: 800; }
.chip .box { width: 14px; height: 14px; border: 1.5px solid var(--dim); display: grid; place-items: center; }
.chip .box svg { width: 11px; height: 11px; stroke-width: 3; opacity: 0; }
.chip.active .box { background: var(--on-signal); border-color: var(--on-signal); }
.chip.active .box svg { opacity: 1; color: var(--signal); }
.chip-select { position: relative; display: inline-flex; align-items: center; height: 34px; background: none; border: 1px solid var(--border); transition: .15s; }
.chip-select:hover { border-color: var(--border-2); }
.chip-select select { appearance: none; -webkit-appearance: none; border: none; background: none; color: var(--text-2); font-size: 13px; font-weight: 600; height: 100%; padding: 0 30px 0 12px; outline: none; cursor: pointer; }
.chip-select select option { background: var(--surface); }
.chip-select svg { position: absolute; right: 10px; pointer-events: none; color: var(--dim); }
.vsep { width: 1px; height: 22px; background: var(--border-2); margin: 0 4px; }
.controls .sort { margin-left: auto; }
.controls .sort select { color: var(--muted); }

/* ---------- Main ---------- */
main { padding: 18px 24px 48px; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.listwrap { display: flex; flex-direction: column; gap: 18px; }
.empty { text-align: center; color: var(--dim); padding: 72px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; }
.empty svg { width: 40px; height: 40px; color: var(--tick); }

/* ---------- Hero（次の練習: 信号色で塗る） ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.hero.nomap { grid-template-columns: 1fr; }
.hero-body { display: flex; flex-direction: column; min-width: 0; }
.hero-top { background: var(--signal); color: var(--on-signal); padding: 22px 28px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.hero-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-clock { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 -4px; container-type: inline-size; }
/* 2026-10-26: 等幅の数字だと「1」のまわりが空きすぎるので、ふつうの字幅（proportional）で詰める。コロンは前後に少し間を取る */
.hero-clock .clk { font-family: var(--font-num); font-weight: 800; font-size: min(112px, 25cqw); white-space: nowrap; line-height: .86; letter-spacing: -.035em; font-variant-numeric: proportional-nums; font-feature-settings: "tnum" 0; }
.hero-clock .clk .colon { display: inline-block; margin: 0 .05em; transform: translateY(-.06em); }
.hero-clock .clk-sup { flex: none; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.hero-clock .clk-sup b { font-size: 26px; line-height: 1; letter-spacing: .02em; }
.hero-title { font-size: 26px; font-weight: 900; line-height: 1.25; }
.hero-desc { font-size: 15px; line-height: 1.6; font-weight: 600; opacity: .82; }
.drows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-width: 640px; }
.drow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; min-width: 0; }
.drow .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; white-space: nowrap; flex: none; }
.drow .lead { flex: 1; min-width: 24px; border-bottom: 2px dotted currentColor; opacity: .45; transform: translateY(2px); }
.drow .v { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow .v a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; overflow: hidden; text-overflow: ellipsis; }
.drow .lv { font-family: var(--font-num); font-size: 18px; }
.drow .lbl { font-size: 13px; }
.hero-top .heat i { background: rgba(20,20,19,.22); }
.hero-top .heat.i1 i:nth-child(-n+1), .hero-top .heat.i2 i:nth-child(-n+2), .hero-top .heat.i3 i:nth-child(-n+3),
.hero-top .heat.i4 i:nth-child(-n+4), .hero-top .heat.i5 i:nth-child(-n+5) { background: var(--on-signal); }

/* 点呼（参加の数） */
.rollcall { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 28px; border-bottom: 1px solid var(--border); color: var(--muted); }
.rc-nums { display: flex; gap: 22px; align-items: flex-end; }
.rc { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rc b { font-family: var(--font-num); font-size: 34px; line-height: 1; color: var(--text); letter-spacing: -.03em; }
.rc.going b { color: var(--signal-ink); }
.hero .card-detail { padding: 16px 28px 22px; border-top: none; }

.hero-map { position: relative; background: #111; border-left: 1px solid var(--border); min-height: 320px; cursor: pointer; }
.hero-map .lmap { position: absolute; inset: 0; }
.hero-map .pill { position: absolute; left: 16px; bottom: 16px; z-index: 450; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--bg); border: 1px solid var(--border-2); font-size: 12px; color: var(--text-2); font-weight: 700; pointer-events: none; }
.hero-map .pill svg { color: var(--signal); }
/* 四隅だけの括弧 */
.brk { position: absolute; inset: 10px; z-index: 440; pointer-events: none; --c: var(--text-2);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px 16px no-repeat; }
.dot { width: 4px; height: 4px; background: var(--tick); }

/* ---------- Date block（カードの日付） ---------- */
.dblock { display: flex; flex-direction: column; align-items: center; min-width: 60px; flex: none; font-family: var(--font-mono); }
.dblock .wd { font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 3px 5px; border: 1px solid var(--signal-ink); color: var(--signal-ink); line-height: 1; }
.dblock .day { font-family: var(--font-num); font-size: 34px; font-weight: 800; line-height: 1; margin-top: 6px; letter-spacing: -.04em; }
.dblock .mo { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--dim); margin-top: 2px; }
.dblock .tm { font-family: var(--font-num); font-size: 14px; font-weight: 700; color: var(--text-2); margin-top: 6px; letter-spacing: .02em; }
.dblock.past .wd { border-color: var(--dim); color: var(--dim); }
.dblock.past .day, .dblock.past .tm { color: var(--dim); }

/* ---------- 強度（目盛りの棒） ---------- */
.heat { display: inline-flex; gap: 2px; flex: none; }
.heat i { width: 5px; height: 14px; background: var(--surface-3); display: block; }
.heat.sm i { width: 4px; height: 11px; }
.heat.i1 i:nth-child(-n+1), .heat.i2 i:nth-child(-n+2), .heat.i3 i:nth-child(-n+3),
.heat.i4 i:nth-child(-n+4), .heat.i5 i:nth-child(-n+5) { background: var(--signal); }
.heat-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.heat-row .soon { color: var(--signal-ink); font-weight: 800; }

/* ---------- Attendees / reactions ---------- */
.attend { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.attend b { color: var(--text); font-weight: 700; }
.react-seg { display: flex; border: 1px solid var(--border-2); }
.react-seg button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 12px; border: none; border-right: 1px solid var(--border-2); background: none; color: var(--text-2); font-size: 13px; font-weight: 700; transition: .15s; flex: 1 1 0; min-width: 0; white-space: nowrap; }
.react-seg button:last-child { border-right: none; }
.react-seg button .cnt { font-family: var(--font-num); color: var(--muted); font-weight: 700; }
.react-seg button:hover { color: var(--text); background: var(--surface-2); }
.react-seg button.on { background: var(--signal); color: var(--on-signal); }
.react-seg button.on .cnt { color: var(--on-signal); }
.action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.react-names { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.react-names .grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.react-names .tag { border: none; padding: 0; height: auto; font-family: var(--font-jp); letter-spacing: 0; font-size: 13px; color: var(--text-2); min-width: 60px; }
.react-names .tag.going { color: var(--signal-ink); }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.card { display: flex; gap: 16px; padding: 16px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.card:hover { background: var(--surface-2); }
.card.open { background: var(--surface); cursor: default; box-shadow: inset 3px 0 0 var(--signal); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.card-title { font-size: 16px; font-weight: 800; line-height: 1.35; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; padding: 2px 6px; border: 1px solid var(--border-2); color: var(--muted); }
.card-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.card-sub svg { color: var(--muted); }
.card-sub .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 8px; }
.counts { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.counts span { display: flex; align-items: center; gap: 4px; }
.counts .going.me { color: var(--signal-ink); }
.counts .num { font-family: var(--font-num); font-weight: 700; font-size: 13px; }
.card-detail { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; border-top: 1px dashed var(--border-2); }
.card-actions { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--dim); font-size: 12px; font-weight: 700; padding: 0; transition: .15s; }
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: var(--danger); }
.link-btn.accent { color: var(--signal-ink); }

/* ---------- Comments ---------- */
.comments { display: flex; flex-direction: column; gap: 8px; }
.comment-list { display: flex; flex-direction: column; gap: 7px; }
.comment-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; }
.comment-item .av { margin-top: 1px; }
.comment-item .c-body { flex: 1; min-width: 0; }
.comment-item .c-name { font-weight: 700; color: var(--text-2); margin-right: 6px; }
.comment-item .c-text { color: var(--text-2); word-break: break-word; }
.comment-item .c-del { background: none; border: none; color: var(--dim); padding: 2px; line-height: 1; display: grid; place-items: center; }
.comment-item .c-del:hover { color: var(--danger); }
.comment-form { display: flex; gap: 0; }
.comment-input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--border-2); border-right: none; background: var(--bg); color: var(--text); font-size: 13px; outline: none; border-radius: 0; }
.comment-input:focus { border-color: var(--signal); }
.comment-send { height: 38px; padding: 0 14px; background: none; border: 1px solid var(--border-2); color: var(--text-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.comment-send:hover { color: var(--on-signal); background: var(--signal); border-color: var(--signal); }

/* ---------- Calendar（タイルの格子） ---------- */
.cal { display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; align-items: center; gap: 10px; }
.cal-title { font-size: 16px; font-weight: 800; min-width: 140px; }
.cal-title .num { font-size: 26px; letter-spacing: -.03em; }
.cal-nav { width: 34px; height: 34px; background: none; border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; }
.cal-nav:hover { border-color: var(--border-2); }
.cal-today { white-space: nowrap; flex: none; margin-left: auto; height: 34px; padding: 0 14px; background: none; border: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 700; }
.cal-today:hover { border-color: var(--border-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.cal-grid:not(.cal-wd) { border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal-wdcell { text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--dim); padding: 2px 6px; text-transform: uppercase; }
.cal-wdcell.sun { color: var(--signal-ink); }
.cal-cell { min-height: 92px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; position: relative; }
.cal-cell.blank { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--border) 6px 7px); }
.cal-cell.has { cursor: pointer; }
.cal-cell.has:hover { background: var(--surface-2); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--signal); }
.cal-cell.selected { background: var(--signal); }
.cal-cell.selected .cal-day, .cal-cell.selected .cal-more { color: var(--on-signal); }
.cal-cell.selected .cal-chip { background: var(--on-signal); color: var(--signal); }
.cal-day { font-family: var(--font-num); font-size: 14px; font-weight: 700; color: var(--text); }
.cal-day.sun { color: var(--signal-ink); }
.cal-chip { font-size: 11px; font-weight: 700; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); border-left: 2px solid var(--signal); background: rgba(var(--sig-rgb), .08); }
.cal-chip.i4 { background: rgba(var(--sig-rgb), .2); }
.cal-chip.i5 { background: var(--signal); color: var(--on-signal); }
.cal-more { font-size: 11px; color: var(--dim); font-weight: 700; padding-left: 3px; font-family: var(--font-mono); }
.cal-panel { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.cal-panel-head { font-size: 15px; font-weight: 800; }
.cal-panel-head .link-btn { margin-left: 12px; }

/* ---------- Map ---------- */
.map { height: 68vh; overflow: hidden; border: 1px solid var(--border); background: #111; position: relative; }
#map { width: 100%; height: 100%; }
.leaflet-container { background: #111; font-family: var(--font-jp); }
/* OSMタイルをCSSで暗く・色を抜く（APIキー不要） */
.leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.82) contrast(1.05); }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: var(--r); border: 1px solid var(--border-2); box-shadow: none; }
.leaflet-popup-tip { background: var(--surface); box-shadow: none; }
.leaflet-popup-content { font-size: 13px; margin: 12px 14px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-control-attribution { background: rgba(20,20,19,.7) !important; color: var(--dim) !important; font-size: 11px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar { border-radius: 0 !important; border: 1px solid var(--border-2) !important; box-shadow: none !important; }
.leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--border); border-radius: 0 !important; }
.leaflet-bar a:hover { background: var(--surface-2); }
.pop-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; color: var(--muted); }
.pop-meta .m { display: flex; align-items: center; gap: 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,10,9,.8); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-card { background: var(--surface); border: 1px solid var(--border-2); width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; }
.modal-card.small { max-width: 380px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--signal); color: var(--on-signal); }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 900; }
.modal-head .icon-btn { width: 32px; height: 32px; color: var(--on-signal); border-color: var(--on-signal); }
.form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.form input[type=text], .form input[type=url], .form input[type=date], .form input[type=time], .form input[type=number], .form select {
  height: 42px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 0; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; outline: none; width: 100%;
}
.form input:focus, .form select:focus { border-color: var(--signal); }
.form input:disabled { opacity: .5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.place-row { display: flex; gap: 8px; }
.place-row input { flex: 1; min-width: 0; }
.place-row .btn-ghost { height: 42px; padding: 0 14px; }
.range { display: flex; align-items: center; gap: 12px; }
input[type=range] { flex: 1; accent-color: var(--signal); }
.intensity-out { font-weight: 700; color: var(--signal-ink); font-size: 14px; min-width: 100px; font-family: var(--font-num); }
.map-pick { display: flex; flex-direction: column; gap: 6px; }
.map-pick-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
#pick-map { height: 200px; border: 1px solid var(--border-2); overflow: hidden; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.hint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.dim { opacity: .5; }

/* ---------- Gate ---------- */
.gate { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.gate-card { background: var(--surface); border: 1px solid var(--border); padding: 32px 26px; width: 100%; max-width: 340px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gate-card .mark { width: 48px; height: 48px; }
.gate-card h2 { margin: 6px 0 0; font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.gate-sub { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
#gate-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
#gate-input { height: 46px; padding: 0 13px; border: 1px solid var(--border-2); background: var(--bg); color: var(--text); font-size: 16px; text-align: center; outline: none; }
#gate-input:focus { border-color: var(--signal); }
.gate-err { color: var(--danger); font-size: 13px; margin: 6px 0 0; font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; font-size: 13px; font-weight: 700; z-index: 2000; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Mobile: tab bar + FAB ---------- */
.tabbar, .fab { display: none; }

@media (max-width: 760px) {
  .topbar { height: 54px; padding: 0 16px; gap: 10px; }
  .topbar .seg, #ics-btn, .brand .sub, .mode-badge { display: none; }
  .brand h1 { font-size: 16px; }
  .chip-btn .lbl { display: none; }
  .chip-btn { padding: 0 6px; height: 36px; }
  .topbar .btn-primary { display: none; }
  .controls { padding: 12px 16px 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; }
  .controls::-webkit-scrollbar { display: none; }
  .controls .search { min-width: 190px; flex: none; }
  .chips { flex-wrap: nowrap; }
  .chip, .chip-select { flex: none; }
  .controls .sort { margin-left: 0; flex: none; }
  main { padding: 12px 16px 110px; gap: 14px; }
  .hero, .hero.nomap { grid-template-columns: minmax(0, 1fr); }
  .hero-map { min-height: 180px; border-left: none; border-top: 1px solid var(--border); }
  .hero-top { padding: 16px 18px 18px; gap: 10px; }
  .hero-clock .clk { font-size: min(84px, 25cqw); }
  .hero-clock .clk-sup b { font-size: 20px; }
  .hero-title { font-size: 21px; }
  .hero-desc { font-size: 13px; }
  .drow { font-size: 13px; }
  .rollcall { padding: 14px 18px; gap: 12px; }
  .rc-nums { gap: 16px; }
  .rc b { font-size: 28px; }
  .hero .card-detail { padding: 14px 18px 18px; }
  .react-seg button { padding: 0 4px; font-size: 12px; gap: 4px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 14px; gap: 14px; }
  .dblock { min-width: 50px; }
  .dblock .day { font-size: 28px; }
  .map { height: 60vh; }
  .cal-cell { min-height: 62px; padding: 3px; }
  .cal-chip { font-size: 11px; padding: 1px 3px; }
  .cal-title .num { font-size: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .place-row { flex-direction: column; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom); grid-template-columns: repeat(3, 1fr); background: var(--bg); border-top: 1px solid var(--border); z-index: 600; }
  .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: none; border-right: 1px solid var(--border); background: none; color: var(--dim); font-size: 11px; font-weight: 700; }
  .tabbar button:last-child { border-right: none; }
  .tabbar button.active { color: var(--signal-ink); box-shadow: inset 0 2px 0 var(--signal); }
  .fab { display: grid; position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; place-items: center; background: var(--signal); color: var(--on-signal); border: none; z-index: 600; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
/* 2026-10-26: 表示の崩れ（段取り7） */
/* 時刻は折り返さず、枠の幅に合わせて小さくする（上の 27cqw）。iPhone で入力欄を押したときに拡大されないよう 16px */
@media (max-width: 760px) {
  .place-row input { flex: none; }
}
/* 日付・時刻の欄（iPhone Safari は中央寄せで、幅からはみ出すことがある） */
.form input[type=date], .form input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; text-align: left; }
.form input::-webkit-date-and-time-value { text-align: left; }
/* タブレットの幅: 上の帯が詰まって字が縦に割れていたので、ラベルを減らし、次の練習は地図を下に回す */
@media (min-width: 761px) and (max-width: 1100px) {
  .brand .sub, .mode-badge, #ics-btn, .chip-btn .lbl { display: none; }
  .chip-btn { padding: 0 6px; }
  .topbar { gap: 12px; padding: 0 18px; }
  .seg button { padding: 0 11px; }
  .hero, .hero.nomap { grid-template-columns: minmax(0, 1fr); }
  .hero-map { min-height: 240px; border-left: none; border-top: 1px solid var(--border); }
}
/* 点線でつないだ行: 長い値は切らずに右寄せで折り返す（承認後に正確な場所・紹介した人など） */
.drow .v { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; white-space: normal; text-align: right; row-gap: 2px; overflow: visible; }

/* ---------- アカウント（表示名＋連携） ---------- */
.acct { border-top: 1px solid var(--border); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.acct-head { display: flex; align-items: center; gap: 10px; }
.acct-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 8px; border: 1px solid var(--border-2); color: var(--muted); }
.acct-status.linked { border-color: var(--signal); color: var(--signal-ink); }
.acct-status .dotm { width: 6px; height: 6px; background: currentColor; }
.acct-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-actions .btn-ghost { flex: 1; justify-content: center; min-width: 0; }
.acct-actions .btn-ghost:disabled { opacity: .55; }

/* ---------- サイトフッター（姉妹アプリ＋規約リンク） ---------- */
.sitefoot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0 4px; }
.footlinks { display: flex; justify-content: center; gap: 20px; }
.footlinks a { color: var(--dim); font-size: 12px; text-decoration: none; }
.footlinks a:hover { color: var(--muted); }
.cross-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px;
  background: none; border: 1px solid var(--border); color: var(--muted); font-size: 12px; text-decoration: none; transition: border-color .15s, color .15s; }
.cross-link:hover { border-color: var(--signal); color: var(--text); }
.cross-link svg { width: 18px; height: 18px; flex: none; stroke: var(--signal); fill: none; stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter; }
.cross-link b { color: var(--text); font-weight: 700; margin-right: 7px; font-family: var(--font-mono); letter-spacing: .06em; }
.cross-link span { white-space: nowrap; }
@media (max-width: 420px) { .cross-link b { margin-right: 5px; } }

/* ---------- 共有リンクで開かれたときの表示 ---------- */
.focusbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(var(--sig-rgb), .1); border: 1px solid var(--signal); font-size: 13px; font-weight: 700; color: var(--signal-ink); }
.focusbar > span { flex: 1; min-width: 0; }
.focusbar .link-btn { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- 会員と安全（2026-10-26） ---------- */
.btn-primary.wide, .btn-ghost.wide { width: 100%; justify-content: center; height: 44px; }
.hint.small { font-size: 12px; }
.hint a, .form a { color: var(--signal-ink); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); font-weight: 600; line-height: 1.5; }
.form label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--signal); flex: none; }
.form textarea, .form input[type=url] { padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 0; background: var(--bg); color: var(--text); font-size: 14px; outline: none; width: 100%; font-family: inherit; }
.form input[type=url] { height: 42px; padding: 0 12px; }
.form textarea:focus, .form input[type=url]:focus { border-color: var(--signal); }
.reasons { border: 1px solid var(--border); margin: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.reasons legend { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding: 0 6px; }
.modal-card.wide { max-width: 720px; }
.standing { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--signal); background: rgba(var(--sig-rgb), .1); color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.6; }
.standing svg { color: var(--signal); margin-top: 2px; }
.standing a { color: var(--signal-ink); }
[data-uid] { cursor: pointer; }
.pname[data-uid] { border-bottom: 1px dotted var(--dim); }
.pname[data-uid]:hover, .c-name[data-uid]:hover { color: var(--text); border-color: var(--signal); }
.av[data-uid]:hover { outline: 1px solid var(--signal); outline-offset: 1px; }
.av.xl { width: 64px; height: 64px; font-size: 28px; }
.av.alert { box-shadow: 0 0 0 2px var(--signal); }
.person-head { display: flex; gap: 16px; align-items: center; }
.person-head .drows { flex: 1; min-width: 0; }
.person-head .drow .k { color: var(--muted); }
.person-head .drow .lead { color: var(--dim); }
.person-bio { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.person-link { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-ink); font-size: 13px; text-decoration: none; word-break: break-all; }
.person-actions { justify-content: stretch; }
.person-actions .btn-ghost { flex: 1; justify-content: center; }
.btn-ghost.danger:hover, .chip.danger:hover { border-color: var(--danger); color: var(--danger); }
.blocks-list { display: flex; flex-direction: column; gap: 8px; }
.block-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.block-row .grow { flex: 1; min-width: 0; }
.admin-sum { display: flex; gap: 24px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.report-item { border: 1px solid var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.report-item.open { border-left: 3px solid var(--signal); }
.report-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-2); }
.report-top .tag.solid-sig { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.report-date { font-size: 12px; color: var(--muted); margin-left: auto; }
.report-item .drow { font-size: 13px; }
.report-item .drow .k, .report-item .drow .lead { color: var(--muted); }
.report-note { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; border-left: 2px solid var(--border-2); padding-left: 10px; }
.report-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.report-acts .chip { height: 32px; }

/* ---------- 2026-10-26: 申し込みと承認（entries.js） ---------- */
.tag.solid-sig { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.entry-box { display: flex; flex-direction: column; gap: 10px; }
.entry-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entry-state { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); padding: 10px 12px; border: 1px dashed var(--border-2); }
.entry-state.ok { border-style: solid; border-color: var(--signal); }
.entry-state .tag { flex: none; }
.entry-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.entry-item .grow { flex: 1 1 160px; min-width: 0; }
.entry-item.declined { opacity: .6; }
.entry-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.entry-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.entry-meta .num { font-family: var(--font-num); color: var(--text-2); }
.approval-row { padding: 10px 12px; border: 1px solid var(--border-2); }
.approval-fields { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--border); border-top: none; margin-top: -12px; }
.btn-primary.wide .num { font-family: var(--font-num); margin-left: 4px; }

/* ---------- 2026-10-26: クルーと招待（crews.js） ---------- */
.badge.crew { color: var(--signal-ink); border-color: var(--signal-ink); }
.crew-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.crew-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crew-name { font-size: 17px; font-weight: 800; }
.crew-count { margin-left: auto; display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.crew-count b { font-size: 24px; line-height: 1; color: var(--text); }
.crew-invite, .crew-members, .invitees { display: flex; flex-direction: column; gap: 8px; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px; }
.crew-create { display: flex; align-items: flex-end; gap: 10px; padding-top: 8px; }
.crew-create label { flex: 1; }

/* ---------- 2026-10-26: 公開範囲と申し込める人の条件（rules.js） ---------- */
.hint.warn { color: var(--signal-ink); border-left: 2px solid var(--signal); padding-left: 10px; }

/* ---------- 2026-10-26: 一緒に走った記録（ran.js） ---------- */
.ran-block { border: 1px solid var(--border-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ran-block.on { border-color: var(--signal); }
.ran-head { display: flex; align-items: baseline; gap: 10px; }
.ran-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.ran-n b { font-family: var(--font-num); font-size: 26px; font-weight: 800; color: var(--text); margin-right: 3px; line-height: 1; }
.ran-block.on .ran-n b { color: var(--signal-ink); }
.ran-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ran-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--signal); background: none; color: var(--signal-ink); font-size: 14px; font-weight: 800; transition: .15s; }
.ran-btn:hover { background: rgba(var(--sig-rgb), .12); }
.ran-btn.on { background: var(--signal); color: var(--on-signal); }
.ran-people { min-width: 0; }

.ran-ask { background: var(--signal); color: var(--on-signal); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ran-ask-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }
.ran-ask-head .eyebrow { color: var(--on-signal); font-size: 13px; }
.ran-ask-head .hint { color: var(--on-signal); opacity: .85; }
.ran-ask-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(0,0,0,.28); flex-wrap: wrap; }
.ran-ask-item .grow { flex: 1 1 140px; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ran-date { display: inline-flex; align-items: baseline; gap: 6px; }
.ran-date b { font-family: var(--font-num); font-size: 22px; font-weight: 800; line-height: 1; }
.ran-date i { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; border: 1px solid currentColor; padding: 1px 4px; }
.ran-ask .chip { border-color: var(--on-signal); color: var(--on-signal); height: 32px; }
.ran-ask .chip.active { background: var(--on-signal); color: var(--signal); border-color: var(--on-signal); }

.ran-log-row .ran-last { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.ran-log-row .ran-cnt { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 44px; text-align: right; }
.ran-log-row .ran-cnt b { font-family: var(--font-num); font-size: 18px; color: var(--text); margin-right: 2px; }

/* 2026-10-26: iPhone で入力欄を押したときに拡大されないよう、スマホでは入力の字を 16px に（後ろの指定より強く、最後に置く） */
@media (max-width: 760px) {
  .form input[type=text], .form input[type=url], .form input[type=date], .form input[type=time], .form input[type=number], .form select, .form textarea, .search input { font-size: 16px; }
}
/* 2026-10-26: 点呼の数字は狭い幅で折り返す。場所の「承認後に正確な場所」は途中で割らない */
.rc-nums { flex-wrap: wrap; row-gap: 8px; }
.rc { white-space: nowrap; }
.drow .v .lbl { white-space: nowrap; }
@media (max-width: 380px) { .rc-nums { gap: 14px; } .rc b { font-size: 26px; } }
.cross-link svg.ts-mark { width: 20px; height: 20px; stroke: none; fill: var(--signal); }

/* ---------- 2026-10-27: はじめての人への案内（guide.js） ---------- */
.guide-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.guide-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: none; border-right: 1px solid var(--border); background: none; color: var(--muted); font-size: 13px; font-weight: 800; text-align: left; white-space: nowrap; }
.guide-tabs button:last-child { border-right: none; }
.guide-tabs button .gt-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.guide-tabs button.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--signal); }
.guide-tabs button.on .gt-n { color: var(--signal-ink); }
.guide-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.guide-hero { background: var(--signal); color: var(--on-signal); margin: -18px -20px 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.guide-hero .eyebrow { color: var(--on-signal); }
.guide-hero b { font-family: var(--font-mono); font-size: 44px; line-height: 1.05; letter-spacing: .04em; }
.guide-hero .gh-sub { font-size: 13px; font-weight: 800; }
.guide-lead { margin: 0; font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--text-2); }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.guide-steps li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--border-2); }
.guide-steps li:last-child { border-bottom: 1px dashed var(--border-2); }
.guide-steps .gs-n { font-family: var(--font-num); font-size: 30px; font-weight: 800; line-height: 1; color: var(--signal-ink); min-width: 44px; letter-spacing: -.02em; }
.guide-steps .gs-k { display: block; font-size: 14px; font-weight: 900; margin-bottom: 3px; color: var(--text); }
.guide-steps .gs-v { display: block; font-size: 13px; line-height: 1.65; color: var(--muted); }
.guide-foot { justify-content: space-between; }
.guide-foot .btn-primary:only-child { margin-left: auto; }

.start-card { border: 1px solid var(--signal); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.start-head { display: flex; align-items: baseline; gap: 10px; }
.start-head .eyebrow { color: var(--signal-ink); }
.start-n { margin-left: auto; font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--muted); }
.start-n b { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.start-ticks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.start-ticks i { height: 8px; background: var(--surface-3); }
.start-ticks i.on { background: var(--signal); }
.start-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.start-list li { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; font-weight: 700; color: var(--muted); }
.start-list li.done { color: var(--dim); }
.start-list li.done .sl-k { text-decoration: line-through; text-decoration-color: var(--border-2); }
.start-list li.next { color: var(--text); }
.start-list .sl-mark { font-family: var(--font-num); font-size: 13px; font-weight: 800; min-width: 22px; display: inline-flex; color: var(--dim); }
.start-list li.done .sl-mark { color: var(--signal-ink); }
.start-list li.next .sl-mark { color: var(--signal-ink); }
.start-list .lead { flex: 1; min-width: 12px; border-bottom: 2px dotted currentColor; opacity: .35; transform: translateY(2px); }
.start-list .sl-v { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }
.start-list .chip { height: 30px; flex: none; }
.start-foot { display: flex; gap: 16px; justify-content: flex-end; }
.newbar b { font-family: var(--font-mono); letter-spacing: .06em; }
@media (max-width: 760px) {
  .guide-tabs button { padding: 9px 8px; font-size: 12px; }
  .guide-hero b { font-size: 34px; }
  .guide-steps .gs-n { font-size: 24px; min-width: 34px; }
}

/* ---------- 2026-10-27: 路面・距離・ペースと「合う練習」（fit.js） ---------- */
.fit-set { border: 1px solid var(--border); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fit-set legend { padding: 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); font-weight: 700; }
.pace-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.pace-range span { color: var(--dim); font-weight: 700; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-chips .slot-k { width: 100%; font-size: 12px; font-weight: 700; color: var(--muted); }
.slot-chips .chip { cursor: pointer; height: 34px; }
.slot-chips .chip input { position: absolute; opacity: 0; pointer-events: none; }
.slot-chips .chip:focus-within { outline: 2px solid var(--signal); outline-offset: 1px; }
.fit-chip { font-family: var(--font-mono); letter-spacing: .04em; }

.pace-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pace-meta { font-family: var(--font-num); font-weight: 700; letter-spacing: .02em; }
.pace-meta i { font-style: normal; color: var(--dim); margin: 0 5px; }
.fit-g { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border: 1px solid var(--border-2); color: var(--muted); }
.fit-g .fit-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.fit-g b { font-family: var(--font-num); font-size: 14px; font-weight: 800; color: var(--text); }
.fit-bar { display: inline-grid; grid-template-columns: repeat(10, 3px); gap: 1.5px; height: 10px; }
.fit-bar i { background: var(--surface-3); }
.fit-bar i.on { background: var(--muted); }
.fit-g.hi { border-color: var(--signal); color: var(--signal-ink); }
.fit-g.hi .fit-bar i.on { background: var(--signal); }
.fit-g.hi b { color: var(--signal-ink); }
.fit-g.on-sig { border-color: var(--on-signal); color: var(--on-signal); }
.fit-g.on-sig b { color: var(--on-signal); }
.fit-g.on-sig .fit-bar i { background: rgba(20,20,19,.22); }
.fit-g.on-sig .fit-bar i.on { background: var(--on-signal); }
.drow .lv.sm { font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em; }
/* 2026-10-27: 狭い幅でフッターの TRAIL STATUS の札がはみ出さないよう、説明を折り返す */
.cross-link { max-width: 100%; }
@media (max-width: 360px) { .cross-link span { white-space: normal; } }

/* ---------- 主催者の認証（badges.js・2026-10-27） ---------- */
.vbadge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--signal-ink); vertical-align: baseline; white-space: nowrap; }
.vbadge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vb-l { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.vcard { margin: 12px 0 2px; padding: 11px 13px; border: 1px solid rgba(var(--sig-rgb), .45); background: rgba(var(--sig-rgb), .07); display: flex; flex-direction: column; gap: 7px; }
.vcard-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.vcard-top .vbadge { margin-left: 0; }
.vcard-label { font-size: 15px; font-weight: 800; }
.vcard-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; text-decoration: none; }
.vcard-link:hover { color: var(--text); }
.vcard-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.vcard .hint { margin: 0; }

/* 持ち主だけの操作 */
.vadmin { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 8px; }
.vadmin-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.vadmin-f { display: flex; gap: 8px; }
.vadmin select.vb-sel, .vadmin input { height: 38px; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 16px; }
/* .form select（幅100%）より強くしないと、となりの入力欄がつぶれる */
.vadmin select.vb-sel { flex: 0 0 104px; width: 104px; }
.vadmin-f input.vb-in { flex: 1 1 auto; width: auto; min-width: 0; }
.vadmin input:focus, .vb-sel:focus { outline: none; border-color: var(--signal); }
.vadmin-a { display: flex; gap: 8px; }
.vadmin-a .chip.danger { color: var(--danger); border-color: var(--danger); }

/* 管理の画面の一覧 */
.vlist { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.vitem { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.vitem .vbadge { margin-left: 0; }
.vi-name { font-weight: 700; font-size: 14px; }
.vi-sub { color: var(--muted); font-size: 12px; }
.vitem .chip { margin-left: auto; height: 30px; }
@media (max-width: 480px) { .vadmin-f { flex-direction: column; } .vadmin select.vb-sel { flex: none; width: 100%; } }

/* ============================================================
   週の帯 / Runnable のコース / 曜日別の棒（2026-10-27）
   ============================================================ */

/* ---------- 週の帯（week.js）: リストの上に月曜はじまりの2週間。列が曜日なので縦に読める ---------- */
.wkbar { display: flex; flex-direction: column; gap: 8px; }
.wkbar.off { padding: 2px 0; }
.wk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wk-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wk-range { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.wk-range .num { font-family: var(--font-num); font-size: 15px; }
.wk-head .cal-today { margin-left: 0; height: 30px; padding: 0 10px; }
.wk-head .cal-nav { width: 30px; height: 30px; }
.wk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.wk-wd { display: flex; align-items: baseline; gap: 5px; padding: 4px 6px; background: var(--surface);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wk-wd b { font-size: 12px; font-weight: 800; color: var(--text-2); }
.wk-wd.sat b, .wk-wd.sun b { color: var(--signal-ink); }
.wk-wn { font-family: var(--font-num); font-size: 16px; font-weight: 700; color: var(--text); line-height: 1; }
.wk-wn.zero { color: var(--tick); }
.wk-cell { position: relative; min-height: 54px; background: var(--surface); color: var(--text);
  border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 5px 6px 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.wk-cell:disabled { background: var(--bg); cursor: default; }
.wk-cell.past { opacity: .55; }
.wk-cell.has:hover { background: var(--surface-2); }
.wk-cell.today { box-shadow: inset 0 0 0 2px var(--signal); }
.wk-mo { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--dim); line-height: 1; }
.wk-d { font-family: var(--font-num); font-size: 15px; font-weight: 700; line-height: 1; }
.wk-cell.sat .wk-d, .wk-cell.sun .wk-d { color: var(--signal-ink); }
.wk-dots { display: flex; align-items: center; gap: 3px; margin-top: auto; }
.wk-dots i { width: 7px; height: 7px; background: var(--signal); }
.wk-dots em { font-family: var(--font-mono); font-style: normal; font-size: 11px; font-weight: 700; color: var(--dim); }
/* 自分が主催・参加している日は、左端に細い印（cal-chip の左線と同じ考え方） */
.wk-me { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal-ink); }
/* 選んだ日の塗り（曜日の色より後に置く。先に置くと土日の色が勝つ） */
.wk-cell.sel, .wk-cell.sel:hover { background: var(--signal); }
.wk-cell.sel .wk-d, .wk-cell.sel .wk-mo, .wk-cell.sel .wk-dots em { color: var(--on-signal); }
.wk-cell.sel .wk-dots i { background: var(--on-signal); }
.wk-cell.sel .wk-me { background: var(--on-signal); }

/* ---------- Runnable のコース（runnable.js） ---------- */
#course-row { display: flex; flex-direction: column; gap: 6px; }
.course-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; color: var(--text-2); padding: 8px 0 2px; }
.course-line .ic { flex: none; color: var(--signal-ink); }
.co-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-km { font-family: var(--font-num); font-size: 14px; color: var(--text); }
.co-open { font-size: 12px; color: var(--signal-ink); text-decoration: none;
  border-bottom: 1px solid currentColor; white-space: nowrap; }
.co-link { color: inherit; }

/* ---------- 曜日別の棒（metrics.js） ---------- */
#host-body { display: flex; flex-direction: column; gap: 10px; }
.dowbars { display: flex; flex-direction: column; gap: 4px; }
.dowbar { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 8px; }
.dowbar.zero { opacity: .5; }
.dw-k { font-size: 12px; font-weight: 800; color: var(--text-2); text-align: center; }
.dowbar.we .dw-k { color: var(--signal-ink); }
.dw-bar { height: 10px; background: var(--surface-3); display: block; }
.dw-bar i { display: block; height: 100%; background: var(--signal); }
.dw-n { font-family: var(--font-num); font-size: 13px; font-weight: 700; text-align: right; min-width: 34px; }
.dw-a { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; min-width: 64px; text-align: right; }

@media (max-width: 760px) {
  .wk-cell { min-height: 48px; padding: 4px 4px 6px; }
  .wk-wd { padding: 3px 4px; }
  .wk-head .eyebrow { font-size: 11px; letter-spacing: .1em; }
}
