/* 未実装タブの共通プレースホルダ */

/* 上は 30 ではなく 62。右上の歯車（10..54px）の下から始めるため */
.stub { flex: 1; min-height: 0; overflow-y: auto; padding: 62px 20px 24px; }
.stub .tag {
  display: inline-block; font-size: 11px; letter-spacing: .12em;
  color: var(--text-2); border: 1px solid var(--line); border-radius: 3px;
  padding: 2px 7px; margin-bottom: 12px;
}
.stub h2 { font-size: 17px; margin: 0 0 8px; }
.stub p { font-size: 14px; color: var(--text-2); margin: 0 0 12px; }
.stub ul { font-size: 14px; color: var(--text-2); margin: 0 0 12px; padding-left: 1.2em; }
.stub li { margin-bottom: 5px; }
.stub .proto { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
/* --text-3 は --bg に対し 明2.60 / 暗3.94 で 4.5:1 を切る。見出しも読ませる文字なので --text-2 */
.stub .proto h3 {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  margin: 0 0 10px; letter-spacing: .07em;
}
.stub .proto .row { display: flex; flex-wrap: wrap; gap: 8px; }
.stub .proto .note { font-size: 12px; color: var(--text-2); margin: 10px 0 0; line-height: 1.7; }

/* 設定の行。チェックボックスと文が並ぶ。タップ目標は 44px を下回らない */
.stub .setrow {
  display: flex; align-items: center; gap: 11px;
  min-height: 44px; font-size: 14px; color: var(--text);
  cursor: pointer;
}
/* 押す的は行ぜんぶ（label で囲ってある）。四角そのものは素のままで、
   大きさだけ上げる——ここだけ作り込むと、ほかの的と作りが揃わない。
   20px は小さくて、ほかの的（44）と比べて粗く見えていた（レビューの指摘） */
.stub .setrow input { width: 24px; height: 24px; accent-color: var(--bub-edge); }
.stub .note { font-size: 12px; color: var(--text-2); margin: 6px 0 0; line-height: 1.7; }

/* 説明の文は ⓘ を押すまで出さない（Issue #40 の返事。js/screens/settings.js の markInfo）。
   状態・知らせ・エラーの行（aria-live）には .is-info を付けないので、いつも出る */
.stub .is-info { display: none; }
.stub .show-info .is-info { display: block; }
.stub .info-btn {
  appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -14px -8px -14px 0;   /* 押す的は 44px、見出しの行の高さは変えない */
  padding: 0; border: 0; background: transparent;
  font-size: 15px; color: var(--text-2); vertical-align: middle;
}
.stub .info-btn:hover, .stub .info-btn[aria-expanded="true"] { color: var(--text); }
.stub .info-btn:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: -6px; border-radius: 50%; }
/* 見出しの無い所の文と、1行の箱の下の説明（.sub）は、箱の行の ⓘ で出す（Issue #43 の返事） */
.stub .set-more.show-ginfo [data-ginfo] { display: block; }
.stub .set-more > summary .info-btn { margin: 0 -8px 0 4px; flex: none; }

/* 選択肢のボタン（Issue #43。「他の人と一緒に使う」の「サーバーを使う／ブロックチェーンを使う」、
   ブロックチェーンの「やりたいこと」）。選んでいるものを塗る。選んでいない欄は隠す */
.stub .choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.stub .choice-row .btn[aria-pressed="true"] { border-color: var(--bub-edge); background: var(--surface); font-weight: 600; }
.stub .choice-row .btn[aria-pressed="true"]::before { content: '▾ '; }
.stub .choice-pane[hidden] { display: none; }

/* 1行にまとめた箱（Issue #40）。「音と表示」「AI を使う」「他の人と一緒に使う」…。
   押すと中身が開く。1行目は名前、2行目に中身の一覧（.gorow と同じ文字の大きさ）。押す的は 44px */
.stub .set-more { padding: 4px 0; border-top: 1px solid var(--line); }
.stub .set-more:first-of-type { margin-top: 22px; }
.stub .set-more:last-of-type { border-bottom: 1px solid var(--line); }
.stub .set-more[open] { padding-bottom: 16px; }
.stub .set-more > summary {
  display: flex; align-items: center; min-height: 52px; padding: 4px 0;
  font-size: 14px; color: var(--text); cursor: pointer; list-style: none;
}
.stub .set-more > summary .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.stub .set-more > summary .nm { font-size: 14px; font-weight: 600; }
.stub .set-more > summary .sub { font-size: 12.5px; color: var(--text-2); }
.stub .set-more > summary:hover { color: var(--text); }
.stub .set-more > summary:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: 2px; border-radius: 6px; }
.stub .set-more > summary::-webkit-details-marker { display: none; }
.stub .set-more > summary::before { content: '▸'; margin-right: 8px; }
.stub .set-more[open] > summary::before { content: '▾'; }

/* ---------- タグの管理 ---------- */
/* 1行 = 色 / 名前 / 置く向き / 消す。タップ目標は 44px を下回らない */
.stub .tags { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.stub .tags h3 {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  margin: 0 0 8px; letter-spacing: .07em;
}
.stub .taglist { display: grid; gap: 6px; margin: 12px 0; }
.stub .tagrow {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
/* タグの色。無彩色は「タグ無し」の意味なので、ここには来ない */
.stub .tagdot {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tc, var(--text-2)); margin-left: 6px;
}
.stub .tagname {
  flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--text);
  background: transparent; border: 0; padding: 10px 2px; min-height: 44px;
}
.stub input.tagname:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: -2px; border-radius: 6px; }
/* 特別なタグは名前を変えられない。**薄くしない**（レビューの指摘）——
   薄いとユーザーのタグだけが「生きている」ように見え、こちらが無効に読める。
   変えられないことは、入力欄ではなく素の文字で出ていること自体が言っている */
.stub .tagname.is-fixed { color: var(--text); }
.stub .tagdir {
  flex: none; font: inherit; font-size: 13px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  min-height: 44px; padding: 0 8px;
}
/* 向きが固定されているタグ（下＝完了）。選び欄ではなく、字だけ置く。
   押せない的にしないため、枠も背景も出さない（select と見た目で分ける） */
.stub span.tagdir.is-fixed {
  border-color: transparent; background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px;
}
.stub .tagdel {
  flex: none; appearance: none; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--text-2); background: transparent; border: 0;
  min-height: 44px; min-width: 44px; padding: 0 8px;
}
.stub .tagdel:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: -2px; border-radius: 8px; }
.stub .tagadd { display: flex; gap: 8px; }
.stub .tagadd input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px;
  min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--text);
}
.stub .tagadd input::placeholder { color: var(--text-2); }

/* 色の点は白地の上だと輪郭が消える（明テーマで 1.68:1）。細い縁を入れて形を保つ */
.stub .tagdot { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- ふりかえりへ（設定の中に入ったので、そこへ渡す行）----------
   設定の中身は「決める」もの、ふりかえりは「見る」もの。混ぜず、先頭に1行だけ置く。 */
.stub .gorow {
  appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 56px; padding: 10px 14px; margin: 0 0 22px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
  text-align: left;
  transition: border-color .12s, background-color .12s;
}
.stub .gorow:hover { border-color: var(--bub-edge); }
.stub .gorow:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: 2px; }
.stub .gorow .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.stub .gorow .nm { font-size: 14px; font-weight: 600; }
.stub .gorow .sub { font-size: 12.5px; color: var(--text-2); }
.stub .gorow .ar { flex: none; font-size: 16px; color: var(--text-2); }

/* 「海にする／している」。前は左右の選び欄だったところ（海が横一列になった） */
.stub .tagdir.is-sea {
  appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
  min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .12s, color .12s, background-color .12s;
}
.stub .tagdir.is-sea:hover:not(:disabled) { color: var(--text); border-color: var(--bub-edge); }
.stub .tagdir.is-sea:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: 2px; }
.stub .tagdir.is-sea.is-on { color: var(--text); border-color: var(--bub-edge); background: var(--surface); }
.stub .tagdir.is-sea:disabled { cursor: default; opacity: .5; }

/* 行が2つ続くとき（ふりかえり・使い方）は、間を詰める */
.stub .gorow + .gorow { margin-top: -12px; }

/* ---------- すべて初期化（設定も含めて。2026-11-08 Issue #32）----------
   ほかの欄（線で区切るだけ）と見分けがつくよう、赤い枠の箱に入れて、設定のいちばん下に置く。
   開く的は箱の中に1つだけ。消す的は、開いて「初期化」と打つまで押せない */
.stub .reset-all {
  --danger: #b3261e;
  margin-top: 32px; padding: 14px 14px 16px;
  border: 1.5px solid var(--danger); border-radius: 14px;
}
@media (prefers-color-scheme: dark) { .stub .reset-all { --danger: #ff8a80; } }
.stub .reset-all h3 { font-size: 13px; font-weight: 700; color: var(--danger); margin: 0 0 6px; letter-spacing: .05em; }
.stub .reset-all .btn.is-danger { color: var(--danger); border-color: var(--danger); background: transparent; font-weight: 600; }
.stub .reset-all .btn.is-danger.is-go { color: #fff; background: var(--danger); }
@media (prefers-color-scheme: dark) { .stub .reset-all .btn.is-danger.is-go { color: #1a1a1a; } }
.stub .reset-all .btn.is-danger:disabled { opacity: .4; cursor: default; }
.stub .reset-all ul { font-size: 12.5px; line-height: 1.7; margin: 6px 0 10px; }
.stub .reset-all .tagadd { margin-top: 8px; }
.stub .reset-all .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- 共有の面（招待。2026-11-16 Issue #75「招待画面の枠のレイアウトがスマホで良くない」）----------
   js/screens/settings.js の chainBox（part 'hub'）。前は見出し・素の入力欄・丸いボタンが枠なしで続き、
   どこからどこまでが 1 つの操作か分かりにくかった。入力欄はブラウザの素の小さな形で、長いボタンは丸いまま 2〜3 行に折れていた。
   - まとまり（見出し＋欄＋ボタン）を 1 つの枠に入れる
   - 入力欄は 1 行を占め、高さ 44px・字 16px（iPhone で寄って大きくならない）
   - チェックは 1 行ずつ、押す的は 44px
   - 狭い画面（560px 以下）では、ボタンを 1 行に 1 つ、角を浅くして、折れても形が崩れないようにする */
.stub .share-hub .cb-group {
  margin-top: 12px !important; padding: 10px 12px 2px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.stub .share-hub .cb-group > h4 { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.stub .share-hub .cb-row input[type="text"] {
  flex: 1 1 100% !important; min-width: 0 !important; box-sizing: border-box;
  min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text);
}
.stub .share-hub .cb-row input[type="text"]::placeholder { color: var(--text-2); font-size: 13px; }
.stub .share-hub .cb-row input[type="text"]:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: 1px; }
.stub .share-hub .cb-row > label.note {
  flex: 1 1 100%; display: flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 0; font-size: 13px; color: var(--text); cursor: pointer;
}
.stub .share-hub .cb-row > label.note input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--bub-edge); }
.stub .share-hub .cb-row code { max-width: 100%; box-sizing: border-box; }
@media (max-width: 560px) {
  .stub .share-hub .cb-row .btn {
    flex: 1 1 100%; border-radius: 12px; line-height: 1.4;
    white-space: normal; text-align: center; overflow-wrap: anywhere;
  }
  .stub .share-hub .cb-row .btn[aria-pressed="true"] { border-color: var(--bub-edge); font-weight: 600; }
}

/* 画面の大きさの記録（不具合を調べる用） */
.stub .size-log { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.stub .size-log summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.stub .size-log pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; line-height: 1.5; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; max-height: 240px; overflow: auto; }

/* 海域を設定する（2026-11-12。js/screens/settings.js の regionsBox） */
.stub .region-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.stub .region-row { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); }
.stub .region-row.is-on { border-color: var(--bub-edge); }
.stub .region-head { display: flex; align-items: center; gap: 8px; }
.stub .region-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.stub .region-tx .nm { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stub .region-tx .sub { font-size: 11.5px; color: var(--text-2); overflow-wrap: anywhere; }
.stub .region-gear-btn { min-width: 44px; min-height: 44px; padding: 0; }
.stub .region-gear { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.stub .region-gear .tagadd { flex-wrap: wrap; }
.stub .region-gear .tagadd input[type="url"], .stub .region-gear .tagadd input[type="password"] { flex-basis: 100%; }
.stub .region-seas { display: flex; flex-direction: column; gap: 6px; }
.stub .region-sea { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stub .region-sea .nm { flex: 1 1 8em; min-width: 0; font-size: 13.5px; }
.stub .region-remove { align-self: flex-start; color: var(--text-2); }
.stub .region-add { flex-wrap: wrap; }
.stub .region-add input { flex-basis: 100%; }
/* Issue #47: ふだんはボタン1つ。押すと欄が出る。欄の見出しは1行を占める */
.stub .region-add h4 { flex-basis: 100%; margin: 4px 0 0; font-size: 13.5px; }
.stub .region-add-btn { align-self: flex-start; }
/* Issue #47 の返事: 海ごとの同期の設定（js/screens/settings.js の seasBox） */
.stub .region-sync { display: flex; flex-direction: column; gap: 8px; }
.stub .region-add .row, .stub .region-sync .row { flex-basis: 100%; display: flex; align-items: center; gap: 8px; }
.stub .region-lab { font-size: 13px; color: var(--text-2); flex: none; }
.stub .region-add select, .stub .region-sync select { flex: 1 1 auto; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; padding: 0 8px; font: inherit; }
.stub .region-new { flex-basis: 100%; flex-wrap: wrap; }
.stub .region-new input { flex-basis: 100%; }
.stub .region-tx .nm.is-sea-btn::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-right: 6px; vertical-align: middle; }
.stub .region-head .btn, .stub .region-sea .btn { flex: none; white-space: nowrap; }
