/* Generated by scripts/build_home_css.py; edit the source files. */

/* pro.css */
.pro-badge{display:inline-flex;vertical-align:middle;flex-shrink:0;align-items:center}.pro-badge-blue{color:#1877db}.pro-badge-gold{color:#a97606}.pro-badge-gray{color:#606c80}.pro-master{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;background:#102b43;color:#fff;border:1px solid #c3a052;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;vertical-align:middle}.pro-master b{color:#f7da88;letter-spacing:.08em}.pro-wrap{max-width:880px;margin:32px auto;padding:0 16px}.pro-hero{padding:28px;border-radius:16px;background:#102b43;color:#fff;margin-bottom:24px}.pro-hero h1{font-size:26px;font-weight:800;margin:8px 0}.pro-hero p{line-height:1.8;color:#dae6f0}.pro-card{border:1px solid var(--line,#ddd);border-radius:12px;padding:22px;margin:16px 0;background:var(--paper,#fff);overflow-wrap:anywhere}.pro-card h2{font-size:20px;font-weight:750;margin-bottom:12px}.pro-card label{display:block;margin:16px 0 6px;font-weight:650}.pro-card input:not([type=checkbox]),.pro-card select,.pro-card textarea{width:100%;border:1px solid #91a6b8;border-radius:6px;padding:10px;color:var(--ink,#102b43);background:var(--paper,#fff)}.pro-card textarea{min-height:120px}.pro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.pro-choice{border:1px solid var(--line,#ddd);border-radius:8px;padding:14px;line-height:1.7}.pro-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.pro-actions button{padding:10px 16px;border:1px solid #72899d;border-radius:6px;background:#fff;color:#102b43;font-weight:700;cursor:pointer}.pro-actions button[value=approved],.pro-actions button[type=submit]{background:#102b43;color:#fff}.pro-actions button:disabled{opacity:.5;cursor:wait}.pro-note{white-space:pre-wrap;line-height:1.8}.pro-muted{font-size:13px;color:var(--ink-3,#56616a)}.pro-error{color:#a12626;min-height:24px;margin-top:10px}.pro-priority{font-size:11px;border:1px solid #ad862f;border-radius:4px;padding:2px 5px;color:#77580e}.pro-status{font-size:13px;font-weight:700;display:inline-block;padding:4px 10px;border-radius:20px;background:#e6edf3;color:#173c57} @media(max-width:600px){.pro-grid{grid-template-columns:1fr}.pro-hero{padding:20px}.pro-hero h1{font-size:23px}.pro-card{padding:16px}.pro-actions button{flex:1}}

/* theboat.css */
/* ============================================================
   THE BOAT — Design System "DEEP BLUE / OPEN WATER"
   Single source of truth for tokens + shared components.
   Rules: no emoji in UI, no decorative gradients, no glass,
   no default shadows on cards (hairline borders instead),
/* ============================================================
   warm accent only for small marks — never for warnings.
   ============================================================ */

:root {
  /* ── Surfaces ── */
  --paper: #F5F7FA;          /* page background */
  --surface: #FFFFFF;        /* cards, lists, sheets */
  --surface-2: #EEF2F7;      /* subtle wells (table heads, inputs on surface) */

  /* ── Deep water (brand dark surfaces) ── */
  --navy: #102A43;           /* header, bridge band, primary dark text */
  --navy-2: #0B1F33;         /* deeper band */
  --on-navy: #FFFFFF;
  --on-navy-2: rgba(255,255,255,.72);
  --on-navy-3: rgba(255,255,255,.52);
  --on-navy-line: rgba(255,255,255,.14);

  /* ── Ink (text) ── */
  --ink: #102A43;
  --ink-2: #526477;
  --ink-3: #6B7A8C;          /* captions — AA on --paper (4.6:1) */

  /* ── Lines ── */
  --line: #DFE6EE;
  --line-strong: #C5D0DC;

  /* ── Brand blue ── */
  --brand: #176BFA;          /* primary action, selected state, active nav */
  --brand-strong: #0F56D6;   /* hover / pressed / small text on white (6.1:1) */
  --brand-tint: #EAF1FF;     /* selected/tinted backgrounds */
  --brand-tint-2: #D6E4FF;

  /* ── Warm accent — tiny marks only (live dot, tick). Never for warnings ── */
  --accent: #F47B52;

  /* ── Signal colors: ◎○△× sailing / fishing verdicts ── */
  --good: #1B7F4B;
  --good-tint: #E6F5EC;
  --fair: #9A6B0F;
  --fair-tint: #FBF3DF;
  --poor: #B42318;
  --poor-tint: #FCEDEA;
  /* on dark surfaces */
  --good-on-navy: #6EE7A0;
  --fair-on-navy: #FFD166;
  --poor-on-navy: #FF8A73;

  /* ── Data series (charts, max 5; distinguish by dash/marker too) ── */
  --s1: #176BFA;
  --s2: #102A43;
  --s3: #2AA198;
  --s4: #9A6B0F;
  --s5: #8B5CF6;

  /* ── Radii ── */
  --radius: 12px;            /* cards */
  --radius-sm: 8px;          /* buttons, inputs, chips */
  --radius-xs: 4px;          /* badges */

  /* ── Type scale ── */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --lh-tight: 1.3;
  --lh-body: 1.7;
  --tap: 44px;

  /* ── Layout ── */
  --gutter: 16px;
  --max-w: 1024px;
  --max-w-text: 680px;

  /* ── Elevation (dropdowns / sheets only) ── */
  --shadow-pop: 0 8px 24px rgba(16,42,67,.12), 0 1px 2px rgba(16,42,67,.06);
  --shadow-sheet: 0 -8px 32px rgba(16,42,67,.16);

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "YuGothic", "Meiryo", -apple-system, "Segoe UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
/* `hidden` must always win — auth.js and page scripts toggle it on elements
   matched by more specific selectors (.tb-nav a, .tb-drawer a, ...). */
[hidden], .hidden { display: none !important; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: var(--lh-body); }
h1, h2, h3, h4 { line-height: var(--lh-tight); letter-spacing: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--brand-tint-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Typography utilities
   ============================================================ */
.tb-num { font-variant-numeric: tabular-nums; }
.tb-h1 { font-size: var(--text-xl); line-height: var(--lh-tight); font-weight: 700; letter-spacing: 0; }
.tb-h2 { font-size: var(--text-lg); font-weight: 700; }
.tb-cap { font-size: var(--text-xs); line-height: 1.4; color: var(--ink-2); }
.tb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--brand-strong); }
.tb-muted { color: var(--ink-3); }
.tb-nowrap { white-space: nowrap; }
.tb-unit { font-size: .68em; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.tb-page-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.3; margin: 0; }
@media (min-width: 768px) { .tb-page-title { font-size: 26px; } }
.tb-lead { font-size: var(--text-base); color: var(--ink-2); line-height: 1.7; margin: 4px 0 0; }

/* ============================================================
   Layout
   ============================================================ */
.tb-container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { .tb-container { padding: 0 20px; } }
.tb-page { padding-top: 20px; padding-bottom: 32px; }
.tb-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tb-bleed { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.tb-scroll-x { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tb-scroll-x::-webkit-scrollbar { display: none; }
.tb-stack { display: flex; flex-direction: column; gap: 12px; }
.tb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) { .tb-grid-2 { gap: 14px; } }

/* ============================================================
   Section header
   ============================================================ */
.tb-section { margin-bottom: 28px; }
.tb-section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tb-section-title { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--ink); position: relative; padding-left: 12px; }
.tb-section-title::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 3px; border-radius: 2px; background: var(--brand); }
.tb-section-link { font-size: 12px; color: var(--brand-strong); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; padding: 8px 0; margin: -8px 0; white-space: nowrap; }
.tb-section-link:hover { color: var(--brand); }

/* ============================================================
   Card / list / table
   ============================================================ */
.tb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tb-card-p { padding: 16px; }
.tb-card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.tb-card-link:hover { border-color: var(--line-strong); }
.tb-card-well { background: var(--surface-2); border-radius: var(--radius-sm); }

.tb-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; text-decoration: none; color: inherit; background: var(--surface); transition: background-color .12s ease; }
.tb-row + .tb-row { border-top: 1px solid var(--line); }
a.tb-row:hover { background: var(--paper); }
.tb-row-main { flex: 1; min-width: 0; }
.tb-row-title { font-size: var(--text-md); font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-row-sub { font-size: var(--text-sm); color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-row-chevron { flex-shrink: 0; color: var(--ink-3); display: inline-flex; }
.tb-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tb-list-head + .tb-row { border-top: 0; }
.tb-row + .tb-list-head { border-top: 1px solid var(--line); }

.tb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb-table tr:last-child td { border-bottom: 0; }
.tb-table .num, .tb-table td.right, .tb-table th.right { text-align: right; font-variant-numeric: tabular-nums; }
.tb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Stat tile: label / value / unit / footnote */
.tb-stat { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; }
.tb-stat-label { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.tb-stat-value { font-size: 24px; font-weight: 700; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.tb-stat-value .tb-unit { font-size: 12px; }
.tb-stat-foot { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.tb-stat-value.is-missing { color: var(--ink-3); font-weight: 500; font-size: 16px; line-height: 1.7; }

/* ============================================================
   Buttons
   ============================================================ */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; min-height: 40px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; -webkit-appearance: none; appearance: none; }
.tb-btn:active { filter: brightness(.96); }
.tb-btn:disabled, .tb-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.tb-btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.tb-btn-lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.tb-btn-block { display: flex; width: 100%; }
@media (pointer: coarse) { .tb-btn { min-height: 44px; } .tb-btn-sm { min-height: 36px; } }

.tb-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.tb-btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.tb-btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.tb-btn-secondary:hover { border-color: var(--ink-2); background: var(--surface); }
.tb-btn-ghost { background: transparent; color: var(--brand-strong); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.tb-btn-ghost:hover { background: var(--brand-tint); }
.tb-btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.tb-btn-navy:hover { background: var(--navy-2); color: #fff; }
.tb-btn-danger { background: var(--surface); color: var(--poor); border-color: var(--line-strong); }
.tb-btn-danger:hover { background: var(--poor-tint); border-color: var(--poor); }
/* on dark band */
.tb-btn-on-navy { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.tb-btn-on-navy:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ============================================================
   Chips (filters) & Tabs
   ============================================================ */
.tb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; flex-shrink: 0; cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease; -webkit-appearance: none; appearance: none; }
.tb-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.tb-chip.is-active, .tb-chip[aria-pressed="true"], .tb-chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tb-chip .tb-chip-count { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tb-chip.is-active .tb-chip-count { color: var(--on-navy-2); }
.tb-chip-sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.tb-chip-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.tb-chip-row::-webkit-scrollbar { display: none; }
.tb-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* Underline tabs */
.tb-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tb-tabs::-webkit-scrollbar { display: none; }
.tb-tab { flex-shrink: 0; padding: 10px 2px; font-size: 14px; font-weight: 700; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tb-tab:hover { color: var(--ink); }
.tb-tab.is-active, .tb-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Segmented control */
.tb-seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--radius-sm); gap: 2px; }
.tb-seg > * { flex: 1; min-height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.tb-seg > .is-active, .tb-seg > [aria-pressed="true"], .tb-seg > [aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,42,67,.12); }

/* ============================================================
   Badges & status
   ============================================================ */
.tb-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: 0; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.tb-badge.brand { background: var(--brand-tint); color: var(--brand-strong); }
.tb-badge.navy  { background: var(--navy); color: #fff; }
.tb-badge.good  { background: var(--good-tint); color: var(--good); }
.tb-badge.fair  { background: var(--fair-tint); color: var(--fair); }
.tb-badge.poor  { background: var(--poor-tint); color: var(--poor); }
.tb-badge.outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); outline: 0; /* Tailwind's .outline utility must not apply */ }
/* WP-M: the outline:0 above also hid the keyboard focus ring on linked outline badges (boat page port chip). */
a.tb-badge.outline:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tb-badge.stale { background: var(--surface-2); color: var(--ink-3); }

/* Live dot (warm accent, tiny) */
.tb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: tb-pulse 2s ease-in-out infinite; }
@keyframes tb-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* Verdict mark ◎○△× */
.tb-mark { font-weight: 700; }
.tb-mark.good { color: var(--good); } .tb-mark.fair { color: var(--fair); } .tb-mark.poor { color: var(--poor); }
.tb-on-navy .tb-mark.good { color: var(--good-on-navy); } .tb-on-navy .tb-mark.fair { color: var(--fair-on-navy); } .tb-on-navy .tb-mark.poor { color: var(--poor-on-navy); }

/* ============================================================
   Forms
   ============================================================ */
.tb-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.tb-input, .tb-select, .tb-textarea { display: block; width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); -webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease; }
.tb-input::placeholder, .tb-textarea::placeholder { color: var(--ink-3); }
.tb-input:focus, .tb-select:focus, .tb-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.tb-input[aria-invalid="true"], .tb-input.is-error { border-color: var(--poor); box-shadow: 0 0 0 3px var(--poor-tint); }
.tb-input:disabled, .tb-select:disabled { background: var(--surface-2); color: var(--ink-3); }
.tb-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526477' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.tb-textarea { min-height: 96px; resize: vertical; }
.tb-field { margin-bottom: 14px; }
.tb-field-hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.tb-field-error { font-size: 12px; color: var(--poor); font-weight: 600; margin-top: 6px; }
@media (min-width: 640px) { .tb-input, .tb-select, .tb-textarea { font-size: 14px; } }
.tb-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 36px; cursor: pointer; }
.tb-check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ============================================================
   States: notice / empty / skeleton / stale
   ============================================================ */
.tb-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tb-notice.info { background: var(--brand-tint); color: var(--ink); border-color: var(--brand-tint-2); }
.tb-notice.success { background: var(--good-tint); color: var(--good); border-color: transparent; }
.tb-notice.warn { background: var(--fair-tint); color: var(--fair); border-color: transparent; }
.tb-notice.error { background: var(--poor-tint); color: var(--poor); border-color: transparent; }
.tb-empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.tb-empty svg { display: block; margin: 0 auto 10px; }
.tb-skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 6px; color: transparent !important; }
.tb-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: tb-shimmer 1.4s infinite; }
@keyframes tb-shimmer { 100% { transform: translateX(100%); } }
.tb-spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: tb-spin .8s linear infinite; display: inline-block; }
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Elevation — dropdowns / popovers / sheets only
   ============================================================ */
.elev { box-shadow: var(--shadow-pop); }

/* Menu — <details>-based dropdown/panel */
.tb-menu summary { list-style: none; cursor: pointer; }
.tb-menu summary::-webkit-details-marker { display: none; }
.tb-menu[open] .tb-menu-panel { margin-top: 6px; }
.tb-menu-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-pop); }
.tb-menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; color: var(--ink); text-decoration: none; }
.tb-menu-panel a + a { border-top: 1px solid var(--line); }
.tb-menu-panel a:hover { background: var(--paper); }
/* dropdown inside the navy nav must not inherit .tb-nav a colours */
.tb-nav .tb-menu-panel a { display: flex; width: 100%; color: var(--ink); background: var(--surface); padding: 0 14px; border-radius: 0; font-weight: 600; }
.tb-nav .tb-menu-panel a:hover { background: var(--paper); color: var(--ink); }

/* Popover (e.g. ⓘ definitions) */
.tb-pop { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 11px 13px; font-size: 12px; line-height: 1.7; color: var(--ink); }

/* Modal */
.tb-modal-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(11,31,51,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tb-modal { background: var(--surface); border-radius: 16px; padding: 24px; max-width: 360px; width: 100%; box-shadow: var(--shadow-pop); }

/* Toast */
.tb-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9999; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow-pop); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Thumbnail
   ============================================================ */
.tb-thumb { background: var(--brand-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-sm); color: var(--brand-strong); }
.tb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-thumb-top { border-radius: var(--radius) var(--radius) 0 0; }

/* ============================================================
   Header (navy bridge)
   ============================================================ */
.tb-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.tb-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .tb-header-inner { padding: 0 20px; } }
.tb-wordmark { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.tb-wordmark img { width: 26px; height: 26px; object-fit: contain; display: block; }
.tb-header .tb-wordmark img { filter: brightness(0) invert(1); }
.tb-nav { display: none; align-items: center; gap: 4px; }
.tb-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--on-navy-2); text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.tb-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.tb-nav a.is-active, .tb-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.tb-nav a.is-primary { color: #fff; }
.tb-nav-sep { width: 1px; height: 16px; background: var(--on-navy-line); margin: 0 6px; }
.tb-header-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 960px) { .tb-nav { display: flex; } .tb-header-actions { display: none; } }
.tb-header a.tb-avatar { width: 44px; height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; }
.tb-header a.tb-avatar > :is(img, svg) { width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); }
.tb-header a.tb-avatar > svg { padding: 5px; }

/* Mobile bottom tab bar (partials/_tabbar.html, <=959px). --tb-tabbar-height is 0
   unless the bar is rendered, so fixed bottom elements can always add it. */
:root { --tb-tabbar-height: 0px; }
.tb-tabbar { display: none; }
@media (max-width: 959px) {
  body.has-tabbar { --tb-tabbar-height: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--tb-tabbar-height); }
  .tb-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; height: var(--tb-tabbar-height); background: var(--surface); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .tb-tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 2px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
  /* #457: /forecast は自動広告のアンカーを下部に出す。下部ナビの上に載せ、重ならないようにする。 */
  body.tb-ads-bottom.has-tabbar ins.adsbygoogle[data-anchor-status] { bottom: var(--tb-tabbar-height) !important; }
  .tb-tabbar-item svg { flex-shrink: 0; }
  .tb-tabbar-item:hover { color: var(--ink); }
  button.tb-tabbar-item { appearance: none; margin: 0; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
  .tb-tabbar-item[aria-current="page"], .tb-tabbar-item[aria-current="true"] { color: var(--brand-strong); font-weight: 700; }
  .tb-tabbar-item[aria-current="page"] svg, .tb-tabbar-item[aria-current="true"] svg { color: var(--brand); }
  .tb-tabbar-item:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
  /* Fixed/sticky bottom elements sit above the bar instead of under it. */
  body.has-tabbar .tb-toast { bottom: calc(16px + var(--tb-tabbar-height)); }
  body.has-tabbar .inbox-composer { bottom: var(--tb-tabbar-height); }
}
@media print { .tb-tabbar { display: none !important; } body.has-tabbar { padding-bottom: 0; } }
.tb-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: transparent; border: 0; cursor: pointer; }
.tb-icon-btn:hover { background: rgba(255,255,255,.1); }
.tb-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 0; cursor: pointer; padding: 0; }
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Drawer (mobile) */
.tb-drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tb-drawer-backdrop { position: absolute; inset: 0; background: rgba(11,31,51,.45); opacity: 0; transition: opacity .2s ease; pointer-events: auto; }
.tb-drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(22.5rem, calc(100% - 24px)); height: 100%; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .22s cubic-bezier(.32,.72,0,1); pointer-events: auto; padding: 0 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
.tb-drawer-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin-bottom: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.tb-drawer-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.tb-drawer-close:hover, .tb-drawer-close:active { background: var(--brand-tint); }
.tb-drawer-close:focus-visible, .tb-drawer a:focus-visible, .tb-drawer-item:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.tb-drawer a:active, .tb-drawer-item:active { background: var(--brand-tint); }
#drawer-avatar { flex-shrink: 0; }
#drawer-avatar-default { display: inline-flex; }
#drawer-username { min-width: 0; overflow-wrap: anywhere; }
.tb-drawer.is-open .tb-drawer-backdrop { opacity: 1; }
.tb-drawer.is-open .tb-drawer-panel { transform: none; }
.tb-drawer a, .tb-drawer button.tb-drawer-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 46px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.tb-drawer a:hover, .tb-drawer button.tb-drawer-item:hover { background: var(--brand-tint); }
.tb-drawer a.is-primary { color: var(--brand-strong); font-weight: 700; }
.tb-drawer a.is-active { background: var(--surface-2); }
.tb-drawer a > svg, .tb-drawer button.tb-drawer-item > svg { color: var(--ink-3); flex-shrink: 0; }
.tb-drawer a.is-primary > svg { color: var(--brand-strong); }
.tb-drawer-sep { border-top: 1px solid var(--line); margin: 6px 0; }
.tb-drawer-group { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); padding: 8px 12px 2px; }

/* ============================================================
   Bridge band — dark summary strip under the header (home / forecast)
   ============================================================ */
.tb-bridge { background: var(--navy-2); color: #fff; }
.tb-bridge-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px var(--gutter) 14px; }
@media (min-width: 640px) { .tb-bridge-inner { padding: 18px 20px; } }
.tb-bridge .tb-kicker { color: #8FB3FF; }
.tb-bridge-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.tb-bridge-date { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tb-bridge-date small { font-size: 14px; font-weight: 600; color: var(--on-navy-2); margin-left: 4px; }
.tb-bridge-verdict { font-size: 16px; font-weight: 700; display: inline-flex; gap: 5px; align-items: baseline; }
.tb-bridge-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; color: var(--on-navy-2); font-variant-numeric: tabular-nums; }
.tb-bridge-stats b { color: #fff; font-weight: 700; font-size: 13px; }
.tb-bridge-meta { font-size: 11px; color: var(--on-navy-3); margin-left: auto; white-space: nowrap; }
/* Area bar (nationwide picker) inside the bridge */
.tb-area-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--on-navy-line); }
.tb-area-bar-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-area-bar .tb-area-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #8FB3FF; margin-right: 2px; }
.tb-area-chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0; }
.tb-area-chips::-webkit-scrollbar { display: none; }
.tb-area-bar-menus { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-area-bar .tb-area-chips > .tb-chip, .tb-area-bar .tb-area-bar-menus > .tb-menu > summary.tb-chip { min-height: 30px; padding: 0 11px; font-size: 12px; background: rgba(255,255,255,.06); border-color: var(--on-navy-line); color: var(--on-navy-2); }
.tb-area-bar .tb-area-chips > .tb-chip:hover, .tb-area-bar .tb-area-bar-menus > .tb-menu > summary.tb-chip:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.tb-area-bar .tb-area-chips > .tb-chip.is-active { background: #fff; border-color: #fff; color: var(--navy); }
.tb-area-bar .tb-area-bar-menus > .tb-menu { position: relative; }
.tb-area-bar .tb-area-bar-menus > .tb-menu[open] > summary.tb-chip { color: #fff; border-color: rgba(255,255,255,.45); }
.tb-area-bar .tb-area-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: 60vh; overflow: auto; padding: 12px; margin-top: 0; color: var(--ink); }
.tb-area-bar .tb-menu[open] .tb-area-panel { margin-top: 0; }
.tb-area-bar .tb-area-panel-group + .tb-area-panel-group { margin-top: 10px; }
.tb-area-bar .tb-area-panel .tb-kicker { color: var(--brand-strong); margin-bottom: 4px; }
.tb-area-bar .tb-area-panel .tb-chip { display: inline-flex; min-height: 30px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 12px; }
.tb-area-bar .tb-area-panel .tb-chip + .tb-chip { border-top: 1px solid var(--line-strong); }
.tb-area-bar .tb-area-panel .tb-chip:hover { background: var(--paper); color: var(--ink); }
.tb-area-bar .tb-area-panel .tb-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tb-week { display: flex; gap: 2px; margin-top: 12px; }
.tb-week a { flex: 1 1 0; min-width: 0; text-align: center; padding: 6px 0 5px; border-radius: 8px; font-size: 11px; color: var(--on-navy-3); line-height: 1.25; text-decoration: none; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.tb-week a b { display: block; font-size: 15px; color: #fff; font-weight: 700; }
.tb-week a span { display: block; font-size: 13px; margin-top: 2px; font-weight: 700; }
.tb-week a.is-off { color: #8FB3FF; }
.tb-week a.is-target { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); }
.tb-week a:hover { background: rgba(255,255,255,.08); }
.tb-week a:focus-visible { outline: 2px solid #8FB3FF; outline-offset: 1px; }
.tb-bridge-verdict.is-note { color: var(--on-navy-2); font-weight: 600; }
.tb-week .good { color: var(--good-on-navy); } .tb-week .fair { color: var(--fair-on-navy); } .tb-week .poor { color: var(--poor-on-navy); } .tb-week .none { color: var(--on-navy-3); }
.tb-bridge-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 48px; padding: 0 16px; background: var(--brand); color: #fff; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .15s ease; }
.tb-bridge-cta:hover { background: var(--brand-strong); color: #fff; }
.tb-bridge-cta > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tb-bridge-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tb-bridge-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--on-navy-line); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.04); }
.tb-bridge-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.tb-bridge-link small { display: block; font-size: 11px; font-weight: 500; color: var(--on-navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-bridge-link .tb-row-main { min-width: 0; }
.tb-bridge-trend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; font-size: 12px; color: var(--on-navy-2); align-items: center; }
.tb-bridge-trend > b { font-weight: 700; color: var(--on-navy-3); }
.tb-bridge-trend a, .tb-bridge-trend > span { color: #fff; font-weight: 700; text-decoration: none; }
.tb-bridge-trend a:hover { text-decoration: underline; color: #fff; }
.tb-bridge-trend .up { color: var(--good-on-navy); }
/* Desktop: two even columns, tops aligned, right column as a rhythmic stack; week strip framed so cells read as one control */
@media (min-width: 768px) {
  .tb-bridge-inner { padding: 22px 20px; }
  .tb-bridge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: stretch; }
  .tb-bridge-grid > div:last-child { display: flex; flex-direction: column; gap: 10px; }
  .tb-bridge-date { font-size: 36px; }
  .tb-bridge-verdict { font-size: 18px; }
  .tb-bridge-stats { margin-top: 8px; font-size: 13px; }
  .tb-bridge-stats b { font-size: 14px; }
  .tb-week { margin-top: 14px; gap: 4px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--on-navy-line); border-radius: 12px; }
  .tb-week a { padding: 8px 0 7px; }
  .tb-week a.is-target { background: rgba(255,255,255,.12); }
  .tb-bridge-cta { margin-top: 0; min-height: 56px; padding: 0 18px; font-size: 16px; }
  .tb-bridge-links { margin-top: 0; gap: 10px; }
  .tb-bridge-link { min-height: 48px; }
  .tb-bridge-trend { margin-top: auto; padding-top: 2px; }
}
@media (min-width: 1024px) {
  .tb-bridge-grid { gap: 20px 48px; }
}

/* ============================================================
   Catch rows (home / boat / fish)
   ============================================================ */
.catch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; min-height: 52px; background: var(--surface); border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .12s ease; }
.catch-row:hover { background: var(--paper); }
.catch-row-boat { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catch-row-port { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.catch-row-identity { display: flex; align-items: center; gap: 6px; overflow: hidden; flex: 1; min-width: 0; }
.catch-row-metrics { flex-shrink: 0; display: flex; align-items: center; gap: 18px; }
.catch-row-size, .catch-count-metric { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.catch-metric-label { font-size: 11px; line-height: 1.3; font-weight: 500; color: var(--ink-2); white-space: nowrap; letter-spacing: .03em; }
.catch-row-size { min-width: 52px; text-align: right; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.catch-size-unit { margin-left: 2px; }
.catch-count-metric { min-width: 80px; }
@media (max-width: 480px) {
 .catch-row { flex-wrap: wrap; gap: 12px; padding: 14px; }
 .catch-row-identity { flex-basis: 100%; }
 .catch-row-boat { white-space: normal; }
 .catch-row-port { display: inline-block; }
 .catch-row-metrics { width: 100%; justify-content: flex-end; gap: 20px; }
}
.catch-row-size b { font-weight: 700; color: var(--ink); font-size: 17px; line-height: 22px; }
.catch-row-count { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.catch-row-count .tilde { font-size: 13px; color: var(--ink-2); font-weight: 500; margin: 0 1px; }
.catch-row-count .unit { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.catch-row-count.is-missing { color: var(--ink-3); font-weight: 500; font-size: 14px; line-height: 22px; }
.catch-row-chevron { flex-shrink: 0; color: var(--ink-3); display: inline-flex; }
/* Species heading on home 釣果速報: the name itself is the link (name + chevron, no duplicated label) */
.catch-species-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 2px; }
.catch-species-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0; }
.catch-species-title a { display: inline-flex; align-items: center; gap: 1px; color: var(--ink); text-decoration: none; padding: 6px 0; margin: -6px 0; }
.catch-species-title a svg { color: var(--brand-strong); flex-shrink: 0; margin-top: 1px; }
.catch-species-title a:hover { color: var(--brand-strong); }
.catch-day { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.catch-day + .catch-row { border-top: 0; }
.catch-day .is-today { color: var(--brand-strong); }
.catch-day .is-sat { color: var(--brand-strong); } .catch-day .is-sun { color: var(--poor); }
.catch-day-count { margin-left: auto; font-weight: 600; color: var(--ink-3); }
.stale-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-3); flex-shrink: 0; }

/* ============================================================
   Footer
   ============================================================ */
.tb-footer { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); margin-top: 24px; }
.tb-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 24px var(--gutter) 20px; }
.tb-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .tb-footer-nav { grid-template-columns: repeat(4, 1fr); } .tb-footer-inner { padding: 28px 20px 20px; } }
.tb-footer-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.tb-footer-nav a { display: block; font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.tb-footer-nav a:hover { color: var(--brand-strong); }
.tb-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--ink-3); }
.tb-footer-bottom .tb-wordmark { color: var(--ink); font-size: 13px; }

/* ============================================================
   Legacy Tailwind bridge: classes still used in old templates
   ============================================================ */
.hide-scrollbar, .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar, .scrollbar-hide::-webkit-scrollbar { display: none; }

/* ============================================================
   social: plan card（釣行予定カード / partials/_plan_card.html）
   ============================================================ */
.plan-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.plan-card-head { display: flex; align-items: center; gap: 8px; }
.plan-card-owner { display: inline-flex; align-items: center; gap: 7px; min-width: 0; text-decoration: none; color: inherit; }
.plan-card-owner:hover .plan-card-name { color: var(--brand-strong); }
.plan-card-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); }
.plan-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.plan-card-avatar-fallback { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.plan-card-name { font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-card-vis { margin-left: auto; flex-shrink: 0; }
.plan-card-date { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.plan-card-date-main { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.plan-card-target { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan-card-place { font-size: 12px; color: var(--ink-2); }
.plan-card-boatstate { font-size: 11px; margin-left: 4px; }
.plan-card-status { display: flex; flex-wrap: wrap; gap: 5px; }
.plan-card-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.plan-card-foot { display: flex; align-items: center; gap: 10px; padding-top: 2px; border-top: 1px solid var(--line); margin-top: 2px; }
.plan-card-reasons { font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-card-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 700; color: var(--brand-strong); text-decoration: none; padding: 8px 0; margin-top: -2px; margin-bottom: -2px; white-space: nowrap; }
.plan-card-cta:hover { text-decoration: underline; }

/* ============================================================
   social: inbox（/inbox, /inbox/{id} — theboat/web/routes/social_inbox.py）
   ============================================================ */
.inbox-tab-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-strong); margin-left: 5px; vertical-align: middle; }
.inbox-tab-count { margin-left: 5px; }
.inbox-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: inherit; text-decoration: none; }
.inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
.inbox-avatar-fallback { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.inbox-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-strong); margin-left: 6px; vertical-align: middle; }
.inbox-conv-row { align-items: flex-start; gap: 12px; }
.inbox-conv-snippet { color: var(--ink-3); }
.inbox-conv-meta { flex-shrink: 0; align-self: center; }
.inbox-plain-link { color: inherit; text-decoration: none; }
.inbox-plain-link:hover { color: var(--brand-strong); }
.inbox-request-row { align-items: flex-start; gap: 12px; }
.inbox-request-message { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.inbox-request-actions { display: flex; gap: 8px; flex-shrink: 0; align-self: center; }
.inbox-notif-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.inbox-notif-row { align-items: flex-start; gap: 12px; }
.inbox-notif-unread .tb-row-title { font-weight: 700; }
.inbox-notif-unread { background: var(--brand-tint); }

/* /inbox/{id} */
.inbox-conv-container { max-width: var(--max-w-text); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.inbox-back { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.inbox-back:hover { color: var(--ink); }
.inbox-conv-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inbox-conv-person-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: inherit; }
.inbox-conv-person-link:hover .inbox-conv-person-name { color: var(--brand-strong); }
.inbox-conv-person-name { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-banner { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 700; text-align: center; }
.inbox-agreement { display: flex; flex-direction: column; gap: 10px; }
.inbox-agreement-row { display: flex; align-items: center; gap: 10px; }
.inbox-agreement-who { width: 44px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.inbox-agreement-status { display: inline-flex; align-items: center; color: var(--brand-strong); flex-shrink: 0; }
.inbox-dash { color: var(--ink-3); font-weight: 700; }
.inbox-reconfirm-note { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.inbox-booking-note { margin: 0; font-size: 12px; }
.inbox-messages { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.inbox-msg { max-width: 82%; align-self: flex-start; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; }
.inbox-msg.is-me { align-self: flex-end; background: var(--brand-tint); }
.inbox-msg.is-system { align-self: center; max-width: 100%; background: none; color: var(--ink-3); font-size: 12px; text-align: center; padding: 2px 8px; }
.inbox-msg-body { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.inbox-msg-time { display: block; margin-top: 3px; }
.inbox-msg.is-me .inbox-msg-time { text-align: right; }
.inbox-composer { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 10px 0; background: var(--paper); }
.inbox-composer-input { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--surface); }
.inbox-composer-input:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 1px; }
/* =====================================================   social: people（釣り人一覧・公開プロフィール拡張・設定・通報）
   ============================================================ */

/* トグルスイッチ（設定/アンケートの listed 等）とその行 */
.ppl-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); }
.ppl-toggle-row:first-child { border-top: 0; }
.ppl-toggle-row > span { font-size: 14px; color: var(--ink); }
.ppl-toggle-hint { font-size: 11px; color: var(--ink-3); margin: -4px 0 0; }
.ppl-switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; flex-shrink: 0; cursor: pointer; transition: background-color .15s ease; }
.ppl-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease; }
.ppl-switch:checked { background: var(--brand); }
.ppl-switch:checked::after { transform: translateX(18px); }
.ppl-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* チップ複数選択（設定フォーム: 活動海域・好きな魚種・釣法・スタイル） */
.ppl-picker { margin-top: 6px; }
.ppl-picker-search { margin-bottom: 8px; }
.ppl-picker-hint { font-size: 11px; color: var(--ink-3); margin: 6px 0 0; }
.ppl-field { margin-bottom: 20px; }
.ppl-field:last-child { margin-bottom: 0; }
.ppl-details { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.ppl-details > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--brand-strong); padding: 6px 0; }
.ppl-details > summary::-webkit-details-marker { display: none; }
.ppl-details[open] > summary { margin-bottom: 12px; }

/* 釣り人一覧カード */
.ppl-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .ppl-grid { grid-template-columns: repeat(2, 1fr); } }
.ppl-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ppl-card-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ppl-card-head:hover .ppl-card-name { color: var(--brand-strong); }
.ppl-card-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); }
.ppl-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ppl-card-avatar-fallback { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.ppl-card-name { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppl-card-intro { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ppl-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* 公開プロフィールのフォロー行 */
.ppl-follow-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ppl-follow-count { font-size: 13px; color: var(--ink-2); }
.ppl-follow-count b { color: var(--ink); font-weight: 700; }

/* ブロック中リスト（設定ページ） */
.ppl-blocked-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ppl-blocked-row:first-child { border-top: 0; }
.ppl-blocked-row .ppl-card-avatar { width: 32px; height: 32px; }
.ppl-blocked-row .ppl-blocked-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 通報モーダル */
.ppl-report-modal { max-width: 400px; text-align: left; }
.ppl-report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ppl-report-reasons { display: flex; flex-direction: column; gap: 2px; }
.ppl-report-reason { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--ink); cursor: pointer; }
.ppl-report-actions { display: flex; gap: 8px; margin-top: 16px; }

/* 管理: 通報キュー */
.ppl-admin-filter { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }

/* ============================================================
   social: home（トップページ「次の釣りを決める」〜「仲間を見つける」）
   ============================================================ */
.home-social-hero-subline { font-size: 12px; color: var(--on-navy-2); margin: 8px 0 0; }
.home-social-post-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 768px) { .home-social-post-grid { grid-template-columns: repeat(3, 1fr); } }
.home-social-next-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; }
.home-social-next-facts a { color: var(--brand-strong); font-weight: 700; text-decoration: none; }
.home-social-next-facts a:hover { text-decoration: underline; }
.home-social-empty-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .home-social-empty-grid { grid-template-columns: 1fr 1fr; } }
/* Keep sparse profiles compact while allowing richer profiles to grow. */
.home-social-people-list { gap: 10px; padding-top: 3px; padding-bottom: 3px; scroll-snap-type: x proximity; align-items: flex-start; }
.home-social-person-card { flex: 0 0 224px; width: 224px; min-width: 0; min-height: 80px; padding: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); scroll-snap-align: start; transition: border-color .15s ease, background-color .15s ease; }
.home-social-person-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.home-social-person-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.home-social-person-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.home-social-person-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--brand-strong); background: var(--brand-tint); }
.home-social-person-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.home-social-person-name { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.home-social-person-area { font-size: 11px; line-height: 1.5; color: var(--ink-3); }
.home-social-person-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.home-social-person-chips .tb-chip { min-height: 24px; padding: 2px 7px; font-size: 11px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.home-social-person-arrow { display: flex; color: var(--ink-3); }
@media (min-width: 1024px) { .home-social-person-card { flex-grow: 1; } }
.home-social-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; flex-shrink: 0; }
/* ヘッダーの丸ボタン内では、アイコン右上に載る通知バッジとして絶対配置にする */
#inbox-btn .home-social-badge { position: absolute; top: 2px; right: 2px; margin-left: 0; border: 2px solid var(--navy); }

/* ============================================================
   social: wp8 discovery（予定カードの海況判定）
   ============================================================ */
.plan-card-sea { font-size: 12px; margin-top: -4px; }

/* ---- social: composer ---- */
/* クイックコンポーザー（partials/_plan_composer.html）。ホームでは
   .is-collapsed で「いつ」＋主ボタンだけを見せ、最初のタップで開く。 */
.pc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pc.is-collapsed { gap: 10px; padding: 12px; }
.pc.is-collapsed .pc-rest, .pc.is-collapsed .pc-summary, .pc.is-collapsed .pc-more, .pc.is-collapsed .pc-hide-collapsed { display: none; }
.pc-rest { display: flex; flex-direction: column; gap: 14px; }
.pc-block { display: flex; flex-direction: column; gap: 8px; }
.pc-head { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.pc-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pc-opt { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.pc-hint { font-size: 12px; color: var(--ink-3); }

/* いつ — 週ストリップと同じ読み方（数字・曜日・判定マーク）を白地で */
.pc-days { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 1px 1px 3px; margin: 0 -1px; }
.pc-days::-webkit-scrollbar { display: none; }
.pc-day { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; min-height: 56px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pc-day b { font-size: 15px; font-weight: 700; color: var(--ink); }
.pc-day .tb-mark, .pc-day .pc-day-none { font-size: 12px; line-height: 1; }
.pc-day .pc-day-none { color: var(--ink-3); }
.pc-day.is-off b { color: var(--brand-strong); }
.pc-day.is-active { background: var(--navy); border-color: var(--navy); color: var(--on-navy-2); }
.pc-day.is-active b { color: #fff; }
.pc-day.is-active .tb-mark.good { color: var(--good-on-navy); }
.pc-day.is-active .tb-mark.fair { color: var(--fair-on-navy); }
.pc-day.is-active .tb-mark.poor { color: var(--poor-on-navy); }
.pc-day.is-active .pc-day-none { color: var(--on-navy-3); }
.pc-day:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pc-day-text { min-width: 0; padding: 6px 12px; font-size: 12px; color: var(--ink-2); }
.pc-datepick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pc-sea { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.pc-sea:empty { display: none; }
.pc-sea .tb-mark { font-size: 13px; }
.pc-ghost { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.pc-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.pc-cand-bar { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-strong); font-size: 11px; font-weight: 700; }
.pc-x { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }

/* なに・船 */
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chips .tb-chip { min-height: 34px; }
.pc-trend { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.tb-chip.is-active .pc-trend { color: var(--on-navy-2); }
.pc-search { position: relative; }
.pc-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 220px; overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); }
.pc-results:empty { display: none; }
.pc-result { display: block; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pc-result:hover { background: var(--surface-2); }
.pc-result small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.pc-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* 仲間 */
.pc-seg { display: flex; width: 100%; }
.pc-stepper { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pc-stepper button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.pc-stepper span { padding: 0 4px; }
.pc-note { min-height: 44px; line-height: 1.5; resize: none; overflow: hidden; }

/* まとめ行とボタン */
.pc-foot { display: flex; flex-direction: column; gap: 10px; }
.pc-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pc-summary .pc-sep { color: var(--ink-3); font-weight: 600; }
.pc-pill { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.pc-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.pc-pill svg { color: var(--ink-3); }
.pc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 700; color: var(--brand-strong); cursor: pointer; }
.pc-link:hover { text-decoration: underline; }
.pc-dot { color: var(--ink-3); font-size: 12px; }
.pc-pop { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.pc-pop button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: left; cursor: pointer; }
.pc-pop button:hover { background: var(--surface-2); }
.pc-pop button[aria-pressed="true"] { color: var(--brand-strong); }

/* 詳細 */
.pc-more { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-field { display: flex; flex-direction: column; gap: 6px; }
.pc-range { display: flex; align-items: center; gap: 8px; }
.pc-onboard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--brand-tint-2); border-radius: var(--radius-sm); background: var(--brand-tint); }
.pc-onboard-row { display: flex; flex-direction: column; gap: 6px; }

/* 詳細ページの海況1行 */
.pd-sea { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
/* ---- social: events attend ---- */
.ev-attend-label { display: inline-flex; align-items: center; gap: 4px; }
.ev-attend-msg { font-size: 12px; color: var(--poor); font-weight: 600; margin: 0; }
.ev-share-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ev-share-strip-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ev-attendees-more { font-size: 12px; color: var(--ink-3); text-align: center; margin: 4px 0 0; }
.ev-attend-count { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }

/* イベントカードの参加人数バッジ（partials/_event_cards.html） */
.ev-attend-count svg { flex-shrink: 0; }

/* 共有シート（partials/_share_sheet.html。汎用の .tb-sheet が無いのでここで定義） */
.tb-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0 auto; width: 100%; max-width: 480px; border: 0; padding: 0; background: transparent; }
.tb-sheet::backdrop { background: rgba(11, 31, 51, .5); }
.tb-sheet-panel { background: var(--surface); border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-sheet); display: flex; flex-direction: column; gap: 4px; margin: 0; }
.tb-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tb-sheet-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.tb-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; -webkit-appearance: none; appearance: none; }
.tb-sheet-close:hover { background: var(--paper); color: var(--ink); }
.tb-sheet-list { display: flex; flex-direction: column; }
.tb-sheet-item { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; width: 100%; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tb-sheet-item + .tb-sheet-item { border-top: 1px solid var(--line); }
.tb-sheet-status { font-size: 12px; color: var(--ink-2); margin: 6px 4px 0; }

/* ---- social: plans-ux ---- */
/* /plans と index.html(ホーム)で共用する部品。plans.html 固有のもの
   (フィルタ・見出し・投稿例カード)は plans.html の extra_style に残す。 */
.plans-lead { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.plans-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; max-height: 52px; padding: 0 16px; margin: 14px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.plans-entry span { display: inline-flex; align-items: center; gap: 8px; }
.plans-entry:hover { border-color: var(--brand); }
.plans-sea { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.plans-sea .tb-mark { font-size: 14px; }
.plans-sea-link { margin-left: auto; flex-shrink: 0; }
.plans-mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 10px 14px; margin-bottom: 12px; }
.plans-mine-text { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plans-mine-date { font-weight: 700; }
.plans-mine-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 12px; white-space: nowrap; }

.plan-card-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.plan-card-foot-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.plan-card-interest-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.plan-card-like { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; -webkit-appearance: none; appearance: none; }
.plan-card-like:hover { color: var(--ink); }
.plan-card-like[aria-pressed="true"], .plan-card-like.is-active { color: var(--brand-strong); }
.plan-card-like svg { flex-shrink: 0; }
.plan-card.is-past { opacity: .7; }

.pc-note-line { font-size: 12px; color: var(--ink-3); text-align: center; margin: 0; }

/* シート(ボトムシート / デスクトップは中央モーダル)。data-sheet は共有シート
   (.tb-sheet, dialog 要素) とクラス名を共用するが構造が div なので、より
   詳細度の高いセレクタで上書きする。 */
.tb-sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(11, 31, 51, .5); }
.tb-sheet[data-sheet] { position: fixed; inset: auto 0 0 0; z-index: 61; width: 100%; max-width: 480px; margin: 0 auto; max-height: 92vh; display: flex; }
.tb-sheet[data-sheet] .tb-sheet-panel { width: 100%; max-height: 92vh; overflow-y: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.tb-sheet[data-sheet] .pc-foot { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .tb-sheet[data-sheet] { inset: 50% auto auto 50%; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 520px; width: 92vw; }
  .tb-sheet[data-sheet] .tb-sheet-panel { border-radius: 16px; }
}
body.is-sheet-open { overflow: hidden; }

/* ---- social: plans-ux-2 ---- */

/* β バッジ(ヘッダー/フッターの共通ワードマーク) */
.tb-beta { display: inline-flex; align-items: center; justify-content: center; height: 16px; padding: 0 5px; margin-left: 6px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.tb-header .tb-wordmark .tb-beta { background: rgba(255, 255, 255, .12); color: #fff; }
.tb-footer-bottom .tb-wordmark .tb-beta { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.tb-footer-beta-note { margin: 8px 0 0; font-size: 13px; }
.tb-footer-beta-note a { color: inherit; text-decoration: underline; }

/* 投稿直後のハイライト(2秒でフェード) */
.plan-card.is-new { border-color: var(--brand); transition: border-color 2s ease; }

/* タイムラインの日付グループ: 左レール */
.plans-day { position: relative; padding-left: 20px; margin-top: 18px; }
.plans-day:first-child { margin-top: 4px; }
.plans-day::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: -8px; width: 2px; background: var(--line); }
.plans-day:last-child::before { bottom: 0; }
.plans-day-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; min-height: 20px; }
.plans-day-head::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.plans-day.has-grade .plans-day-head::before { background: var(--brand); }
.plans-day-date { font-size: 15px; font-weight: 800; color: var(--ink); }
.plans-day-sea { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); }
.plans-day-count { font-size: 12px; color: var(--ink-3); }
.plans-day-post { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--brand-strong); font-size: 12px; font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none; }
.plans-day-post:hover { border-color: var(--brand); }

/* まばらなときの手当て */
.plans-callout { padding: 16px; text-align: center; }
.plans-callout p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.plans-callout-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ホーム: 他の人の予定が0件のときの1行 */
.plans-home-empty { margin: 0 0 12px; font-size: 13px; }
.plans-home-empty a { margin-left: 6px; }

/* カード圧縮(390px で 120px 目安)。既存 .plan-card の宣言をここで上書きする。 */
.plan-card { padding: 11px 14px; gap: 5px; }
.plan-card-head { min-height: 24px; }
.plan-card-avatar { width: 24px; height: 24px; }
.plan-card-note { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.plan-card-target { row-gap: 4px; }
.plan-card-date { flex-wrap: wrap; row-gap: 4px; min-height: 24px; }
.plan-card-date .tb-chip { min-height: 24px; padding: 0 8px; font-size: 11px; }
.plan-card-place { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* foot は折り返さない: 件数はアイコン+数字だけの最小幅、募集バッジは省略可、
   「気になる」「詳しく」は常に全部見せる(flex-shrink:0)。 */
.plan-card-foot { flex-wrap: nowrap; gap: 8px; }
.plan-card-foot > .tb-badge { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-card-interest-count { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); flex-shrink: 0; }
.plan-card-interest-count[hidden] { display: none; }
.plan-card-foot-right { flex-shrink: 0; }
/* タップ領域は 44px を維持しつつ、行の高さには影響させない(padding分を
   負マージンで打ち消す)。 */
.plan-card-like { min-height: 32px; padding: 6px 4px; margin: -6px -4px; }

/* Touch targets: chips and pills reach 44px on coarse pointers (same approach as .tb-btn).
   The leading "html" raises specificity above later-loaded editorial.css and inline template overrides. */
@media (pointer: coarse) {
  html .tb-chip, html .tb-chip-sm, html .tb-chip.tb-chip-sm, html .pc-chips .tb-chip, html .home-social-person-chips .tb-chip,
  html .tb-area-bar .tb-area-chips > .tb-chip, html .tb-area-bar .tb-area-bar-menus > .tb-menu > summary.tb-chip,
  html .fieldnote-weather .tb-area-bar .tb-area-bar-menus > .tb-menu > summary.tb-chip,
  html .tb-area-bar .tb-area-panel .tb-chip, html .boat-section-nav .tb-chip, html .sp-jump .tb-chip,
  html .tb-check, html .pc-pill { min-height: 44px; }
}

/* WP2-E boat page: 44px hit areas regardless of pointer type (owner CTA, per-day source,
   inline source/contact links, in-page nav chips, fish filter chips). The table layout
   itself lives in boat.html so a stale cached theboat.css cannot break it. */
.boat-owner-cta { min-height: 44px; white-space: normal; text-align: center; font-size: 13px; }
.boat-day-source, .boat-tap { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; min-width: 44px; }
/* WP-K: 繰り返しの補足を開く「i」ボタン（partials/_info_tip.html）。JS が有効になるまで hidden。 */
.tb-info-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -12px -10px; padding: 0; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; flex-shrink: 0; }
.tb-info-btn[hidden] { display: none; }
.boat-day-source { justify-content: center; padding: 0 4px; }
html .boat-section-nav .tb-chip, html #fish-pills .tb-chip, html .boat-days-filter .tb-btn { min-height: 44px; }

/* WP-M (acceptance a11y): 44px hit areas without changing the visible size.
   A transparent ::after centred on the target grows the hit box to at least 44x44 and never
   shrinks it (width/height 100% with 44px minimums), so targets that are already 44px are
   unchanged. Neighbours keep enough spacing that the grown boxes do not overlap. */
.tb-breadcrumb a, .tb-chip, .tb-seg > button, .count-info > summary,
.tb-header-account .tb-icon-btn, .inbox-tabs > .tb-tab { position: relative; }
.tb-breadcrumb a::after, .tb-chip::after, .tb-seg > button::after, .count-info > summary::after,
.tb-header-account .tb-icon-btn::after, .inbox-tabs > .tb-tab::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%;
  min-width: 44px; min-height: 44px; transform: translate(-50%, -50%);
}
/* Chips in a horizontal scroller: the scroller clips its overflow (Chromium does not hit-test
   overflow in its bottom padding), so the hit box grows upwards only, into 8px of top padding
   that a negative margin cancels. Rows with their own inline margin-top/padding keep their
   layout untouched. */
.tb-chip-row > .tb-chip::after { top: auto; bottom: 0; transform: translateX(-50%); }
.tb-chip-row:not([style*="margin-top"]):not([style*="padding"]) { padding-top: 8px; margin-top: -8px; }
/* Text-only toggles (no visible box): the padding grows the box, the negative margin keeps the layout. */
.ppl-details > summary { padding: 12px 0; margin: -6px 0; }
.ppl-details[open] > summary { margin-bottom: 6px; }
/* The inbox has three tabs that always fit, so the row does not need to scroll (a scroller would clip the hit box). */
.inbox-tabs { overflow: visible; }
.inbox-tabs > .tb-tab { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* 締切間近 rows: the scroller clips anything outside it, so the row itself is 44px tall
   and the box loses the same vertical padding. */
.deadline-radar { padding-top: 0; padding-bottom: 0; }
.deadline-radar-item { min-height: 44px; }
/* Compact select (fish page period): the select is 44px tall and transparent; the visible
   32px box is drawn behind it, so the look is unchanged and the whole 44px opens the picker. */
.tb-select-hit { position: relative; display: inline-flex; align-items: center; height: 32px; }
.tb-select-hit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.tb-select-hit > .tb-select { position: relative; min-height: 44px; height: 44px; margin: -6px 0; background-color: transparent; border-color: transparent; }
.tb-select-hit > .tb-select:focus { border-color: transparent; box-shadow: none; }
.tb-select-hit:focus-within::before { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
