/* マイページの見直し・前期の選択・団体の詳細・案内・同期の読み取りなど、
   app.css の後から足した画面の見た目。**値は app.css の変数から取る。** */

/* 本文の頭に置く案内の文。 */
.page-lead { margin: 0 4px 14px; color: var(--sub); font-size: calc(13 * var(--u)); line-height: 1.7; }
.page-lead.warn-note { color: var(--warn); }

/* 壊す操作の行(すべてリセット)。 */
.row-link.danger-row .rl-t { color: var(--danger); }

/* 過去の科目の区分: 名前と区分の選択を1行に。 */
.pf-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 44px; }
.pf-row + .pf-row { box-shadow: inset 0 1px 0 var(--sep); }
.pf-row .rl-body { flex: 1 1 auto; min-width: 0; }
.pf-row .rl-t { display: block; font-size: calc(14.5 * var(--u)); }
.pf-row .rl-s { display: block; font-size: calc(12 * var(--u)); color: var(--sub); }
.pf-sel {
  flex: 0 0 auto; max-width: 50%; background: var(--fill); color: var(--brand-ink); border: 0;
  border-radius: 10px; padding: 8px 10px; font-size: 16px; font-weight: 600;
}

/* 前期の時間割: コマの表と選ぶ行。 */
.sp-grid {
  display: grid; grid-template-columns: 26px repeat(5, 1fr); gap: 1px;
  background: var(--sep); border-radius: 10px; overflow: hidden;
}
.sp-ax {
  background: var(--axis); color: var(--axis-ink); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; min-height: 24px;
}
.sp-cell {
  border: 0; background: var(--card); color: var(--sub); font-size: 12px; min-height: 40px;
}
.sp-cell:disabled { background: var(--card); }
.sp-cell.mine { background: color-mix(in srgb, var(--brand) 18%, var(--card)); color: var(--brand-ink); font-weight: 700; }
.sp-cell.clash { background: color-mix(in srgb, var(--warn) 25%, var(--card)); color: var(--warn); font-weight: 700; }
.sp-cell.on { background: var(--brand); color: var(--on-brand); font-weight: 700; }
.sp-lists .sec { margin-top: 18px; }
.sp-check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--sep); color: var(--on-brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.sp-check.on { background: var(--brand); box-shadow: none; }

/* 課題を直す(課題のシート)。 */
#tBody .d-date[hidden], #tBody .todo-hint[hidden] { display: none; }
#tBody textarea.d-field { resize: vertical; font-family: inherit; line-height: 1.5; }
.todo-due-on { margin: 2px 0 10px; min-height: 32px; align-items: center; }
.todo-hint { margin: 6px 0 10px; color: var(--sub); font-size: calc(12 * var(--u)); line-height: 1.6; }
.todo-imported { background: var(--fill); border-radius: 10px; padding: 10px; }

/* 団体の詳細(clubs.js)。 */
button.club-open {
  width: 100%; border: 0; background: none; color: inherit; text-align: left; font: inherit;
  align-items: center; cursor: pointer;
}
@media (hover: hover) { button.club-open:hover { background: var(--fill); } }
button.club-open .chev { color: var(--sub); font-size: calc(17 * var(--u)); }
#cBody > * + *, #sBody > * + * { margin-top: 12px; }
.club-head { display: flex; gap: 12px; align-items: center; }
.club-head .club-n { font-size: calc(19 * var(--u)); }
.club-text { margin: 0; font-size: calc(14 * var(--u)); line-height: 1.7; white-space: pre-wrap; }
.club-info .club-kv {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; min-height: 44px;
  align-items: center; color: inherit; text-decoration: none;
}
.club-info .club-kv + .club-kv { box-shadow: inset 0 1px 0 var(--sep); }
.club-kv .k { color: var(--sub); font-size: calc(13 * var(--u)); }
.club-kv .v { font-size: calc(14 * var(--u)); font-weight: 600; text-align: right; }
.club-go .v { text-align: left; color: var(--brand-ink); }
@media (hover: hover) { .club-go:hover { background: var(--fill); } }
.club-empty { margin: 0; padding: 20px; text-align: center; color: var(--sub); font-size: calc(13 * var(--u)); }
.club-sec { margin: 0; font-size: calc(15 * var(--u)); font-weight: 700; }
.club-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 8px; }
.club-month { font-weight: 600; font-size: calc(14 * var(--u)); }
.club-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px; }
.club-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--sub); padding: 2px 0 4px; }
.club-wd.sun { color: var(--sun); }
.club-wd.sat { color: var(--sat-ink); }
.club-day {
  border: 0; background: none; color: inherit; border-radius: 10px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: calc(14 * var(--u));
}
.club-day i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.club-day.has i { background: var(--brand); }
.club-day.today span { font-weight: 800; color: var(--brand-ink); }
.club-day.on { background: var(--brand); color: var(--on-brand); }
.club-day.on span { color: var(--on-brand); }
.club-day.on i { background: var(--on-brand); }
@media (hover: hover) { .club-day:not(.on):hover { background: var(--fill); } }
.club-ev { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; }
.club-ev + .club-ev { box-shadow: inset 0 1px 0 var(--sep); }
.club-note-t { font-size: calc(12.5 * var(--u)); white-space: pre-wrap; }
.club-hint { margin: 0; color: var(--sub); font-size: calc(12 * var(--u)); line-height: 1.6; }
.club-sub { width: 100%; color: var(--brand-ink); }
.club-sub.unsub { color: var(--danger); }
.club-links { display: flex; flex-wrap: wrap; gap: 8px; }
.club-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--sep); color: var(--brand-ink); text-decoration: none;
  font-size: calc(13 * var(--u)); font-weight: 600;
}
.club-report { align-self: flex-start; text-decoration: underline; }
.club-pad { padding: 12px 14px; }
.club-pad b { display: block; font-size: calc(15 * var(--u)); margin-bottom: 4px; }
.club-about { margin: 0; font-size: calc(13 * var(--u)); font-weight: 600; }
.club-url { margin: 0; font-size: calc(11.5 * var(--u)); color: var(--sub); word-break: break-all; user-select: all; }
#sBody .d-field { margin: 0; }
.report-text { resize: vertical; font-family: inherit; line-height: 1.6; }
.report-send { width: 100%; }
.report-fail { background: color-mix(in srgb, var(--danger) 8%, var(--card)); border-radius: 10px; padding: 12px; }
.report-fail[hidden] { display: none; }
.report-why { margin: 0 0 8px; color: var(--danger); font-size: calc(12.5 * var(--u)); }
.report-acts { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.report-done { text-align: center; padding: 28px 12px; }
.report-done b { display: block; font-size: calc(17 * var(--u)); margin-bottom: 8px; color: var(--good); }

/* 検索の探す場所と、検索履歴(search.js)。 */
.scope-bar { display: flex; gap: 6px; }
.scope-btn {
  flex: 0 0 auto; border: 0; background: var(--card); color: inherit; border-radius: 999px; min-height: 36px;
  padding: 0 16px; font-size: calc(13.5 * var(--u)); font-weight: 600;
}
.scope-btn.on { background: color-mix(in srgb, var(--brand-ink) 14%, transparent); color: var(--brand-ink); }
/* 欄と札(`buildSearchDock`)。**札は探しているあいだだけ。** */
.search-dock { display: flex; flex-direction: column; gap: 8px; }
.search-dock:not(:focus-within):not(.searching) .scope-bar { display: none; }
.search-dock-row { display: flex; align-items: center; gap: 8px; }
.search-dock-row .searchbar { flex: 1 1 auto; min-width: 0; }
.search-cancel {
  flex: 0 0 auto; border: 0; background: none; color: var(--brand-ink); min-height: 44px; padding: 0 4px;
  font-size: calc(15 * var(--u));
}
.search-dock:not(:focus-within) .search-cancel { display: none; }
/* **スマホ・タブレット幅は画面の下、キーボードの真上。** 閉じているときは下のタブのすぐ上
   (タブの帯 64px と間 8px)。キーボードが出たら、その高さ(`--kb`)の上へ。 */
@media not all and (min-width: 980px) {
  .search-dock {
    position: fixed; left: 12px; right: 12px; z-index: 41; margin: 0 auto; max-width: 560px;
    bottom: calc(14px + 64px + 8px + env(safe-area-inset-bottom));
    padding: 8px; border-radius: 22px; background: var(--screen);
  }
  .search-dock:focus-within { bottom: max(calc(var(--kb, 0px) + 8px), calc(14px + 64px + 8px + env(safe-area-inset-bottom))); }
  .search-dock .searchbar { margin: 0; }
  body.search-docked main { padding-bottom: calc(104px + 120px + env(safe-area-inset-bottom)); }
}
.recent-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.recent-chip {
  flex: 0 0 auto; border: 0; background: var(--card); color: inherit; border-radius: 999px;
  padding: 8px 14px; min-height: 36px; font-size: calc(12.5 * var(--u)); white-space: nowrap;
}

/* KULASIS の取り込みの行き先(確定 / 候補にする)。 */
.kulasis-line { display: flex; align-items: center; gap: 8px; }
.kulasis-line .kulasis-row { flex: 1 1 auto; min-width: 0; }
.kulasis-dest {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 6px 10px; font-size: 16px; font-weight: 600;
  background: var(--fill); color: var(--sub);
}
.kulasis-dest.cand { background: color-mix(in srgb, var(--brand) 14%, var(--card)); color: var(--brand-ink); }

/* 合言葉の QR を読む(qr.js の scan)。 */
.qr-scan { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto; }
.qr-scan video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 課題を足す: 名前から読んだ締切(`parseDuePhrase`)に色を敷く。
   欄の後ろに同じ字を写した下敷きを置き、欄は地を透かす。**字の寸法は欄と下敷きで揃える。** */
.due-field { position: relative; margin: 0 0 4px; }
#tBody .due-field .d-field, .due-mirror {
  font-family: inherit; font-size: calc(15 * var(--u)); line-height: 1.4; letter-spacing: normal;
  padding: 10px; border: 0; text-indent: var(--due-lead, 0px); }
#tBody .due-field .d-field { position: relative; margin: 0; background: transparent; }
.due-mirror { position: absolute; inset: 0; overflow: hidden; white-space: pre; color: transparent;
  background: var(--fill); border-radius: 10px; pointer-events: none; }
/* 字の外へ広げる(左右 4・上下 2)。左右の余白は負の margin で打ち消し、上の入力欄の字とずらさない。 */
.due-mirror mark { color: transparent; border-radius: 6px; padding: 2px 4px; margin: 0 -4px;
  background: color-mix(in srgb, var(--brand) 22%, transparent); }
/* 締切の近さで敷く色を替える(`duePhraseNearness`)。黄だけは薄いと白地に消えるので濃いめ。 */
.due-mirror mark.near { background: color-mix(in srgb, var(--danger) 20%, transparent); }
.due-mirror mark.week { background: color-mix(in srgb, #ffcc00 40%, transparent); }
.due-mirror mark.far { background: color-mix(in srgb, var(--good) 20%, transparent); }

/* 時間割タブの掲載の1枠(アプリの `ClubCard`)。**罫線1本と PR の札で、時間割とは別種のものだと言う。**
   団体の色は左の帯と、ごく薄い敷き(5%)・縁(30%)だけ。毎日開くものなので、うるさくしない。 */
.ad-wrap { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--sep); }
.ad-wrap + .today-body-card { margin-top: 14px; }
.ad-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ad-pr { font-size: calc(11 * var(--u)); padding: 1px 5px; }
.ad-all {
  border: 0; background: none; padding: 4px 2px; font: inherit;
  font-size: calc(13 * var(--u)); color: var(--brand-ink); cursor: pointer;
}
.ad-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--ad) 5%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ad) 30%, transparent);
}
/* 同じ時期の掲載を同じ升に重ね、数秒ごとに1件ずつ見せる(`ClubCard`)。
   **高さはいちばん高い1件に揃う**ので、入れ替えで下の時間割が跳ねない。 */
.ad-stack { display: grid; }
.ad-stack > .ad-card { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.ad-stack > .ad-card.on { opacity: 1; visibility: visible; transition: opacity .2s ease; }
@media (hover: hover) { .ad-card:hover { background: color-mix(in srgb, var(--ad) 9%, var(--card)); } }
.ad-bar { flex: 0 0 4px; align-self: stretch; margin: 2px 0; border-radius: 2px; background: var(--ad); }
.ad-ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.ad-glyph {
  display: grid; place-items: center; color: #fff;
  font-size: calc(20 * var(--u)); font-weight: 700;
}
/* 時間割の大見出しの右の小さい広告(`renderTitleAd`。アプリの `ClubBadgeAd`)。
   **題の段の高さを変えない**(題の上下の余白の中に収まる)。名前と一言は1行で切る。 */
.title-row { display: flex; align-items: center; gap: 16px; }
.title-row .large-title { flex: 0 0 auto; }
header#nav.inline .title-row .large-title { flex: 1 1 auto; }
.title-ad-slot { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.title-ad-slot:empty { display: none; }
.title-ad {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
  padding: 5px 10px 5px 5px; border-radius: 12px; text-align: left; color: var(--ink); font: inherit;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--ad) 30%, transparent);
}
@media (hover: hover) { .title-ad:hover { background: color-mix(in srgb, var(--ad) 9%, var(--card)); } }
/* カレンダーの予定の名前の頭に付ける団体の丸(団体の催しから足した予定)。字の大きさに合わせる。 */
.cal-club-ic.ad-glyph {
  display: inline-grid; width: 1.8em; height: 1.8em; font-size: .62em; line-height: 1;
  border-radius: 50%; overflow: hidden; vertical-align: -.35em; margin-right: .35em;
}
.title-ad-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.title-ad-ic.ad-glyph { font-size: 15px; }
.title-ad-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.title-ad-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.title-ad-pr { flex: 0 0 auto; font-size: 9px; padding: 0 3px; }
.title-ad-n, .title-ad-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-ad-n { font-size: 13px; font-weight: 600; }
.title-ad-t { font-size: 11px; color: var(--sub); }
/* PC は上の帯が1行で、右の欄に広告のカードが見えている。とても狭い画面も題とぶつかるので出さない。 */
@media (min-width: 980px) {
  .title-row { display: contents; }
  .title-ad-slot { display: none; }
}
@media (max-width: 319px) { .title-ad-slot { display: none; } }
.ad-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* **行数で止める。** 中身を書くのは広告主で、長い一言でカードが伸びて時間割を押し下げないように。 */
.ad-n, .ad-t, .ad-when { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ad-n { font-size: calc(15 * var(--u)); font-weight: 600; -webkit-line-clamp: 2; }
.ad-t { font-size: calc(12 * var(--u)); color: var(--sub); -webkit-line-clamp: 3; }
.ad-when { font-size: calc(11 * var(--u)); font-weight: 500; color: var(--ad); -webkit-line-clamp: 2; }
.ad-m { font-size: calc(11 * var(--u)); color: var(--sub); }
.ad-free {
  align-self: flex-start; margin-top: 1px; padding: 3px 8px; border-radius: 999px;
  font-size: calc(11 * var(--u)); font-weight: 600; color: var(--good);
  background: color-mix(in srgb, var(--good) 12%, transparent);
}
.ad-card .chev { color: var(--sub); font-size: calc(17 * var(--u)); align-self: center; }

/* ── 利用規約・初回設定(welcome.js) ─────────────────────────
   画面いっぱいの1枚。本文は読める幅に収め、下にボタンを据える(アプリの `TermsGateView` / `OnboardingView`)。 */
.gate-open, .gate-open body { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--screen); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.gate-body {
  flex: 1 0 auto; width: 100%; max-width: 700px; margin: 0 auto; box-sizing: border-box;
  padding: calc(24px + env(safe-area-inset-top)) 16px 24px;
}
.gate-foot {
  position: sticky; bottom: 0; display: flex; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--screen); border-top: 1px solid var(--sep);
}
.gate-foot .btn { flex: 0 1 668px; font-size: calc(16 * var(--u)); }
.gate-title { margin: 0 0 6px; font-size: calc(26 * var(--u)); font-weight: 700; }
.gate-lead { margin: 0 0 22px; color: var(--sub); font-size: calc(13 * var(--u)); }
.terms-points { display: flex; flex-direction: column; gap: 16px; }
.terms-point { display: flex; gap: 12px; align-items: flex-start; }
.terms-point svg { width: 22px; height: 22px; flex: 0 0 28px; color: var(--brand-ink); margin-top: 2px; }
.terms-point p { margin: 0; font-size: calc(15 * var(--u)); line-height: 1.7; }
.terms-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 0; padding: 8px 0;
  border: 0; background: none; color: var(--brand-ink);
  font: inherit; font-size: calc(15 * var(--u)); font-weight: 600; cursor: pointer;
}
.terms-mark { font-size: calc(12 * var(--u)); }
.terms-sec { margin-top: 18px; }
.terms-sec h2 { margin: 0 0 6px; font-size: calc(15 * var(--u)); font-weight: 600; }
.terms-sec p { margin: 0 0 8px; color: var(--sub); font-size: calc(14 * var(--u)); line-height: 1.7; }
.terms-sec b { color: var(--ink); }
.setup-step { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px;
              font-size: calc(17 * var(--u)); font-weight: 600; }
.setup-num {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--on-brand); font-size: calc(13 * var(--u)); font-weight: 700;
}
.gate .sec-note { margin-top: 10px; }
/* 入口(`showEntry`)。題と2つのボタンを画面の中央に寄せ、ボタンは縦に積む。 */
.gate-body.gate-center { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.entry-stack { display: flex; flex-direction: column; gap: 8px; }
.entry-stack .btn { flex: none; width: 100%; font-size: calc(16 * var(--u)); }
.entry-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.entry-card .add-row { margin-top: 0; }
.entry-card .warn-note { margin: 0; text-align: left; }

/* 通知の設定(`renderNotify`。アプリの `NotificationSettingsSheet`) */
.notify-gap { margin-bottom: 14px; }
.notify-card { padding: 4px 14px 12px; margin-top: 10px; }
.notify-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.notify-row:last-of-type { border-bottom: 0; }
.notify-t { flex: 1 1 auto; font-size: calc(14 * var(--u)); font-weight: 600; }
.notify-d { font-size: calc(12 * var(--u)); color: var(--sub); text-align: right; }
.notify-note { margin: 10px 0 0; font-size: calc(12 * var(--u)); color: var(--sub); line-height: 1.7; }
.notify-fine { margin: 6px 0 0; font-size: calc(11 * var(--u)); color: var(--sub); line-height: 1.7; }
.notify-status { margin: 8px 4px 0; font-size: calc(12 * var(--u)); }

/* KURONOS のお知らせ(mypage.js)。未読は題の前の点と太字で示し(授業のお知らせの未読と同じ濃青)、字でも「未読」と言う。 */
.news-unread .rl-t::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--brand-ink); vertical-align: middle; }
.news-unread .rl-t { font-weight: 600; }
.news-item { padding: calc(18 * var(--u)) calc(16 * var(--u)); }
.news-item .news-date { font-size: calc(12.5 * var(--u)); color: var(--sub); }
.news-item .news-title { margin: 4px 0 12px; font-size: calc(19 * var(--u)); line-height: 1.4; }
.news-item .news-p { margin: 0 0 .9em; line-height: 1.75; }
.news-item .news-h { margin: 1.4em 0 .5em; font-size: calc(16.5 * var(--u)); line-height: 1.4; }
.news-item .news-ul { margin: 0 0 .9em; padding-left: 1.3em; list-style: disc; line-height: 1.75; }
.news-item :is(.news-p, .news-ul) a { color: var(--brand-ink); }
.news-item .news-img { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 12px; }
.news-item .news-link { display: inline-block; margin-top: 16px; font-weight: 700; }

/* 友達(`friends-ui.js`)。授業の行の「友達: 田中・佐藤」と、同じ授業の印。 */
.hit .friend-m { color: var(--brand-ink); font-weight: 600; }
.row-link .rl-t .tag { color: var(--brand-ink); font-weight: 700; margin-right: 6px; }
.friend-avs { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
             width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 600;
             font-size: calc(15 * var(--u)); line-height: 1; }
.friend-av.sm { margin-right: 10px; }
.friend-av-btn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.friend-av-btn .friend-av { pointer-events: none; }
.friend-req { cursor: default; }
.meet-dates { display: flex; gap: 12px; flex-wrap: wrap; padding: 4px 16px 12px; }
.meet-date { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.meet-grid { margin-bottom: 8px; }
.meet-grid .ax { white-space: pre-line; text-align: center; }
.friend-tt .ft-cell.meet-free { background: var(--brand); color: #fff; border: 0; font: inherit; font-size: .75rem; cursor: pointer; }
.friend-tt button.meet-free:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.friend-tt .ft-cell.meet-part { background: color-mix(in srgb, var(--brand) 30%, var(--card)); }
.meet-row { cursor: default; }
.meet-sub { color: var(--sub); font-weight: 400; }
.meet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.meet-chip { padding: 2px 10px; border-radius: 8px; background: var(--card); font-size: 13px; }
@media (hover: hover) { .friend-req:hover { background: none; } }
.friend-req .btn { flex: 0 0 auto; min-height: 36px; padding: 6px 14px; }
.friend-apply-name { margin: 0; padding: 4px 14px 0; text-align: center; font-weight: 700;
                     font-size: calc(17 * var(--u)); color: var(--ink); }
.friend-apply .card-note { padding-top: 8px; padding-bottom: 8px; }
/* 届いた申請の数(マイページの「友達」の行)。タブの印と同じ色。 */
.row-link .badge { flex: 0 0 auto; background: var(--danger-fill); color: #fff; font-size: calc(11 * var(--u));
                   font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; padding: 0 6px;
                   display: inline-flex; align-items: center; justify-content: center; }
.friend-tt-wrap { padding: 0 0 8px; }
.friend-tt { display: grid; grid-template-columns: 20px repeat(5, 1fr); gap: 1px; background: var(--sep);
             border-radius: 10px; overflow: hidden; }
.friend-tt .ax { background: var(--axis); color: var(--axis-ink); font-size: calc(11 * var(--u)); font-weight: 600;
                 display: flex; align-items: center; justify-content: center; min-height: 22px; }
.friend-tt .ft-cell { min-height: 56px; padding: 2px; background: var(--card); color: var(--ink);
                      font-size: calc(9.5 * var(--u)); font-weight: 600; line-height: 1.2; overflow: hidden;
                      white-space: pre-line; word-break: break-all; }
.friend-tt .ft-cell.same { background: color-mix(in srgb, var(--brand) 22%, var(--card)); font-weight: 800;
                           box-shadow: inset 0 0 0 2px var(--brand); }
.friend-tt-key { margin: 8px 2px 0; font-size: calc(12 * var(--u)); color: var(--sub); }

.friend-names { margin: 0; font-size: calc(14 * var(--u)); line-height: 1.6; }

/* チュートリアル(tutorial.js・app.js の `tutorialSection`)。行全体が押せて、右に字の「スキップ」(44px)。 */
.tut-sec { margin: 0 0 16px; }
.tut-row { display: flex; align-items: center; }
.tut-row + .tut-row { box-shadow: inset 0 1px 0 var(--sep); }
.tut-row .row-link { flex: 1 1 auto; width: auto; min-width: 0; }
.tut-row .row-link + .row-link { box-shadow: none; }
.tut-mark {
  flex: 0 0 auto; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid var(--sub); display: inline-flex; align-items: center; justify-content: center;
}
.tut-mark.done { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--card); }
.tut-mark svg { width: 12px; height: 12px; }
.tut-skip {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 14px 0 4px;
  background: none; border: 0; color: var(--sub); font-size: calc(13 * var(--u));
}
@media (hover: hover) { .tut-skip:hover { color: var(--ink); } }
.tut-row .chev { display: none; }

/* 授業の札の節の見出し: 右端の「＋」(字なし)と、見出しごと押して開け閉めする形(印は閉「›」・開は下向き)。 */
.sec-plus { margin-left: auto; min-width: 44px; min-height: 44px; border: 0; background: none;
            color: var(--brand-ink); font-size: calc(20 * var(--u)); font-weight: 600; }
.sec-toggle { display: flex; align-items: center; gap: 6px; flex: 1; min-height: 44px; border: 0;
              background: none; padding: 0; text-align: left; color: inherit; }
.sec-toggle h3 { margin: 0; }
.sec-toggle .chev { display: inline-block; color: var(--brand-ink); font-size: calc(17 * var(--u));
                    line-height: 1; transition: transform .15s; }
.sec-toggle.open .chev { transform: rotate(90deg); }
/* マイページの行の値(.rl-v)は行の右。 */
.row-link .rl-v { flex: 0 1 auto; max-width: 55%; color: var(--sub); font-size: calc(13.5 * var(--u));
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 空き時間を探す(availability-ui.js)。相手と候補は行、条件と Google は畳む。 */
.av-person { cursor: pointer; }
.av-person input[type=checkbox] { flex: 0 0 auto; width: 24px; height: 24px; }
.av-cand .btn.av-make { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; color: var(--brand-ink); }
.av-fold > .section-toggle { width: 100%; padding: 0 14px; }
.av-fold > .section-toggle .av-sum { margin-left: auto; color: var(--sub); font-size: calc(12.5 * var(--u)); font-weight: 400; }
.av-fold-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 14px; }
.av-fold-body[hidden] { display: none; }
.av-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* チェックは相手の行と同じく字の右端・縦中央に置く(字の下の左端に落とさない)。 */
.av-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.av-check input[type=checkbox] { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; }
