/* スイムコーチ Pro */
.fg { margin-bottom: 22px; }
.min-head { display: flex; justify-content: space-between; align-items: baseline; }
.min-out { font-size: 34px; font-weight: 500; line-height: 1.1; color: var(--night); }
.min-out small { font-size: 14px; margin-left: 3px; color: var(--gold-ink); }
.range { width: 100%; height: 34px; margin: 6px 0 0; accent-color: var(--blue); background: none; }
.range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.lane-g { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.lane-g .field-label { margin-bottom: 0; }
.resume { margin-top: 12px; background: #fff; border: 1px solid var(--hair); border-radius: 12px; }
.quick { display: flex; gap: 7px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { flex: none; }

/* メニュー */
.menu-page .stats { margin-bottom: 12px; }
.warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--gold-wash); border: 1px solid #e4d2a5; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.warn .btn { flex: none; min-height: 40px; padding: 6px 11px; font-size: 13px; }
.zblock { padding: 13px 14px; margin-top: 0; }
.zbar { display: flex; gap: 2px; height: 12px; }
.zbar i { display: block; min-width: 3px; border-radius: 2px; }
.zlegend { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 13px; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink-2); }
.zlegend li { display: inline-flex; align-items: center; gap: 5px; }
.zlegend i { width: 9px; height: 9px; border-radius: 2px; }
.zlegend b { font-weight: 600; color: var(--ink); }
.lane-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px; scrollbar-width: none; }
.lane-tabs::-webkit-scrollbar { display: none; }
.lane-tabs button { flex: none; min-height: 40px; padding: 5px 13px; border: 1px solid #c3d0de; background: #fff; color: var(--ink-2); border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lane-tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.lane-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.msec { margin-top: 18px; }
.msec > header { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 6px; border-bottom: 2px solid var(--night); }
.msec h2 { font-size: 18px; font-weight: 700; letter-spacing: .05em; }
.msec > header p { font-size: 14.5px; font-weight: 600; }
.msec > header span { margin-left: 10px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.msec-lines { background: #fff; border: 1px solid var(--hair); border-top: 0; border-radius: 0 0 12px 12px; }
.ln { display: block; width: 100%; padding: 11px 13px; background: none; border: 0; border-top: 1px solid var(--hair); text-align: left; color: inherit; }
.ln:first-child { border-top: 0; }
button.ln { cursor: pointer; }
button.ln:hover { background: var(--tile); }
.ln > span { display: block; }
.ln-set { font-size: 12px; font-weight: 700; color: var(--gold-ink); margin-bottom: 2px; }
.ln .ln-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.ln-dist { font-size: 25px; font-weight: 600; line-height: 1.15; }
.ln-dist small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 1px; }
.ln-dist em { font-style: normal; font-weight: 300; color: var(--ink-3); margin: 0 6px; font-size: 20px; }
.ln-circle { font-size: 25px; font-weight: 600; line-height: 1.15; color: var(--blue); text-align: right; }
.ln-circle small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-3); line-height: 1.3; }
.ln .ln-tags { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.ln-m { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.ln-note { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.55; }
.ln-note b { color: var(--ink); margin-right: 6px; font-weight: 700; }
.ln-rest { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ln-add { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 40px; background: none; border: 0; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.menu-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.menu-acts .wide { grid-column: 1 / -1; }
.gate-note { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 8px; }

/* カレンダー */
.cal-mode { max-width: 220px; margin: 0 auto; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 6px; }
.cal-nav h2 { font-size: 17px; font-weight: 700; letter-spacing: .03em; }
.cal { background: #fff; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--night); color: #cfdbe8; font-size: 11.5px; text-align: center; padding: 5px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cd { position: relative; height: 56px; padding: 5px 2px; border: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.cd:nth-child(7n + 1) { border-left: 0; }
.cd.other { background: var(--tile); color: #92a3b5; }
.cd-n { font-size: 14px; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; }
.cd.today .cd-n { background: var(--gold); color: var(--night); font-weight: 700; }
.cd-m { font-size: 10.5px; color: #fff; background: var(--blue); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.cal-stats { margin-top: 12px; }
.wk { align-items: flex-start; }
.wk.today { box-shadow: inset 3px 0 0 var(--gold); }
.wk-d { flex: none; width: 34px; text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.wk-d b { display: block; font-size: 19px; font-weight: 600; color: var(--night); }
.sheet-sub { font-size: 14px; font-weight: 700; margin: 20px 0 8px; }
.rows.pick { margin-top: 10px; }

/* 出欠と選手 */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.att-rows { margin-top: 12px; }
.att { padding: 10px 12px; border-top: 1px solid var(--hair); }
.att:first-child { border-top: 0; }
.att .row-main { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.att-seg button { min-height: 38px; font-size: 13px; }
.att-seg button.on-p { background: var(--blue); }
.att-seg button.on-l { background: var(--aqua); color: var(--night); }
.att-seg button.on-o { background: var(--gold); color: var(--night); }
.att-seg button.on-a { background: var(--danger); }
.search-line { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; margin-bottom: 10px; background: #fff; border: 1px solid #bccada; border-radius: 10px; color: var(--ink-3); }
.search-line input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.rate { font-size: 17px; font-weight: 600; }
.rate small { font-size: 11px; font-weight: 400; margin-left: 1px; }
.btn.mini { min-height: 34px; padding: 3px 10px; font-size: 12.5px; margin-left: auto; letter-spacing: .02em; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 4px 6px 5px 0; border-bottom: 1px solid #c3d0de; white-space: nowrap; }
.tbl td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--hair); }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .nw { white-space: nowrap; }
.icon-btn.sm { width: 30px; height: 30px; }
.pre { white-space: pre-wrap; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.hist li:first-child { border-top: 0; }
.ztbl td:first-child { width: 46px; font-weight: 600; font-size: 12.5px; }
.ztbl .z-bar { width: 50%; }
.z-bar i { display: block; height: 10px; border-radius: 2px; min-width: 3px; }
.rep-empty { margin-top: 14px; }
.guide { margin: 0; font-size: 13.5px; }
.guide > div { padding: 8px 0; border-top: 1px solid var(--hair); }
.guide > div:first-child { border-top: 0; }
.guide dt { font-weight: 700; }
.guide dd { margin: 0; color: var(--ink-2); }

@media (min-width: 720px) {
  .quick, .lane-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .cd { height: 74px; }
  .menu-acts { grid-template-columns: repeat(4, 1fr); }
}

/* A4印刷（画面では表示せず、紙に収まる文字サイズの計測にも使います） */
.pm-big { display: flex; gap: 6mm; white-space: nowrap; font-size: 10pt; }
.pm-big b { font-size: 24pt; font-weight: 700; margin-right: .6mm; }
.pm-table { width: 100%; border-collapse: collapse; margin-top: 4mm; table-layout: auto; }
.pm-table th { font-size: 8pt; font-weight: 600; color: #41546b; text-align: left; padding: 0 2mm 1mm 0; border-bottom: .3mm solid #0b2340; white-space: nowrap; }
.pm-table td { padding: 1.2mm 2mm 1.2mm 0; border-bottom: .2mm solid #d3dde8; vertical-align: top; }
.pm-sec td { background: #0b2340; color: #fff; padding: 1mm 2mm; border: 0; }
.pm-sec b { font-size: 1.05em; letter-spacing: .05em; margin-right: 4mm; }
.pm-sec span { font-size: .85em; }
.c-d, .c-c, .c-s { white-space: nowrap; }
.c-d b { font-size: 1.28em; }
.c-c b { font-size: 1.16em; color: #0b5fb0; }
.c-c small, .c-s small { display: block; font-size: .72em; color: #5f7186; line-height: 1.2; }
.c-n { line-height: 1.35; font-size: .86em; }
.c-n b { font-weight: 700; }
.pm-total td { border-top: .5mm solid #0b2340; border-bottom: 0; font-weight: 600; padding-top: 1.5mm; }
.pm tr { break-inside: avoid; }
.pm-lg .pm-table { font-size: 12.5pt; }
.pm-md .pm-table { font-size: 11pt; }
.pm-sm .pm-table { font-size: 9.5pt; }
.pm-xs .pm-table { font-size: 8.3pt; }
.pm-xs .pm-table td { padding-top: .7mm; padding-bottom: .7mm; }
.pm-xxs .pm-table { font-size: 7.3pt; }
.pm-xxs .pm-table td { padding-top: .35mm; padding-bottom: .35mm; line-height: 1.25; }
.pm-xxs .pr-head h1 { font-size: 15pt; }
.pm-xxs .pm-big b { font-size: 18pt; }
.pm-xxs .pr-foot { margin-top: 2mm; }
.pm-many .c-n { font-size: .82em; }
.pm-many .c-c small { font-size: .7em; }
.pr h2 { font-size: 11.5pt; margin: 5mm 0 1.5mm; }
.pr .tbl { font-size: 9pt; }
.pr .tbl th { font-size: 8pt; }
.pr .tbl td { padding: 1mm 2mm 1mm 0; }
.pr .tbl tr { break-inside: avoid; }
