/* ライト（白） */
:root {
  --bg: #EEF2F7;
  --header-bg: #FFFFFF;
  --mine-bg: #EEF4FD;
  --surface: #FFFFFF;
  --surface-2: #F1F3F5;
  --sunken: #F6F7F9;
  --line: #DDE3EA;
  --line-soft: #E4E9F0;
  --text: #1F2328;
  --text-2: #3D444D;
  --muted: #646B75;
  --placeholder: #8A919B;
  --link: #1A64C8;
  --accent-bg: #E8F1FC;
  --accent-line: #B7D2F4;
  --accent-text: #1558B0;
  --bar: #3B82F6;
  --warn: #B45F06;
  --urgent-bg: #FFF1DE;
  --urgent-line: #F0C78C;
  --urgent-text: #9A5500;
  --band-bg: #FFF4E5;
  --ok-bg: #E4F4E9;
  --ok-text: #1C7438;
  --ok-bar: #34A853;
  --soon-bg: #E6F0FC;
  --tester-bg: #EDE7FB;
  --tester-text: #5B3CC4;
  --soon-text: #1558B0;
  --danger: #C62828;
  --dim-bg: #F7F8FA;
  --dim-line: #E6E9ED;
  --dim-text: #5A616B;
  --dashed: #C3C9D0;
  --knob: #FFFFFF;
  --toggle-off: #CDD2D8;
  --shadow: none;
  color-scheme: light;
}

/* ダーク（ダークブルー） */
:root[data-theme="dark"] {
  --bg: #0F1A2B;
  --header-bg: #0F1A2B;
  --mine-bg: #1D3150;
  --surface: #16243A;
  --surface-2: #1E2F4A;
  --sunken: #122036;
  --line: #2A3F61;
  --line-soft: #1F3150;
  --text: #EDF2F9;
  --text-2: #CFD9E8;
  --muted: #A3B3CA;
  --placeholder: #8597B2;
  --link: #8EC3FF;
  --accent-bg: #24497A;
  --accent-line: #3767A6;
  --accent-text: #D3E7FF;
  --bar: #6CB4FF;
  --warn: #F3AA5C;
  --urgent-bg: #3F2F1A;
  --urgent-line: #6A4D24;
  --urgent-text: #F7BD76;
  --band-bg: #33291B;
  --ok-bg: #173A2B;
  --ok-text: #86DCA2;
  --ok-bar: #5FBF7F;
  --soon-bg: #1E3A5F;
  --tester-bg: #2E2550;
  --tester-text: #C9B8FF;
  --soon-text: #A8D1FF;
  --danger: #F59A9A;
  --dim-bg: #132034;
  --dim-line: #22354F;
  --dim-text: #A3B3CA;
  --dashed: #3E5578;
  --knob: #FFFFFF;
  --toggle-off: #34496B;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', 'Yu Gothic UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font-family: inherit; }
a { color: var(--link); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* ヘッダー */
.top {
  position: sticky; top: 0; z-index: 5; background: var(--header-bg);
  box-shadow: 0 0 0 100vmax var(--header-bg); clip-path: inset(0 -100vmax);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
}
.top h1 { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.top .right { display: flex; align-items: center; gap: 8px; }
.top .meta { font-size: 13px; color: var(--muted); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 20px; flex-shrink: 0;
  background: transparent; border: none; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.icon-btn.round { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }

.content { padding: 12px 16px 32px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }

/* ボタン */
.btn {
  height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); font-weight: 500; }
:root:not([data-theme="dark"]) .btn.primary { background: #1A64C8; border-color: #1A64C8; color: #FFFFFF; } /* ライトは青で塗る */
:root:not([data-theme="dark"]) .btn.primary.is-off, :root:not([data-theme="dark"]) .btn.primary:disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); opacity: 1; } /* 押せないときは灰色 */
.btn.big { height: 52px; font-size: 16px; font-weight: 700; border-radius: 12px; width: 100%; }
.btn.warn { background: var(--urgent-bg); border-color: var(--urgent-line); color: var(--urgent-text); font-weight: 500; }
.btn.danger { color: var(--danger); }
.btn.pill { height: 40px; border-radius: 20px; }
.btn:disabled { opacity: .5; cursor: default; }
.link-btn { background: transparent; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 8px 2px; cursor: pointer; align-self: flex-start; }

/* 検索 */
.search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; color: var(--muted);
}
.search input { flex-grow: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-size: 15px; }

/* ピル */
.pills { display: flex; gap: 8px; }
.pills.scroll { overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.pills.scroll::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 20px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px;
}
.pill.small { height: 36px; padding: 0 14px; border-radius: 18px; font-size: 13px; }
.pill.on { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); font-weight: 500; }
.pill.urgent { border-color: var(--urgent-line); color: var(--urgent-text); }
.pill.urgent.on { background: var(--urgent-bg); }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* 並び順：ほかのボタンと同じ白い枠に、⇅ と ⌄ のマーク */
select.sort {
  height: 40px; padding: 0 34px 0 36px; border: 1px solid var(--line); border-radius: 20px; color: var(--text-2); font-size: 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none; field-sizing: content; max-width: 100%; font-family: inherit;
  background:
    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='%235f6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E") no-repeat 12px center,
    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='%235f6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center,
    var(--surface);
}
select.sort option { background: var(--surface); color: var(--text); }

/* カード */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); min-width: 0;
}
.card.dim { background: var(--dim-bg); border-color: var(--dim-line); box-shadow: none; }
.card.dim .name { color: var(--dim-text); }
.card.clickable { cursor: pointer; }
.card-head { display: flex; gap: 12px; align-items: center; }
.app-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.app-icon.large { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
.card-title { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.sub { font-size: 13px; color: var(--muted); }
.badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.badge.urgent { background: var(--urgent-bg); color: var(--urgent-text); }
.badge.soon { background: var(--soon-bg); color: var(--soon-text); }
.badge.full { background: var(--ok-bg); color: var(--ok-text); }
.badge.gray { background: var(--surface-2); color: var(--muted); }

.card-desc {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  height: 4.8em; /* 3行分。短くても長くても、カードの高さをそろえる（PC の2列） */
}
@media (max-width: 899px) { .card-desc { height: auto; } } /* スマホの1列はそろえない（短い説明の下を空けない） */

.progress { display: flex; flex-direction: column; gap: 6px; }
.count { font-size: 15px; font-weight: 700; }
.count small { font-size: 13px; font-weight: 400; color: var(--muted); }
.remain { font-size: 13px; color: var(--text-2); }
.remain.ok { color: var(--ok-text); }
.remain.soon { color: var(--soon-text); }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar > div { height: 100%; border-radius: 3px; background: var(--bar); }
.bar > div.ok { background: var(--ok-bar); }
.small-note { font-size: 12px; color: var(--muted); }
.small-note.stale { color: var(--warn); }

/* 募集者 */
.poster { display: flex; align-items: center; gap: 8px; min-width: 0; }
.poster-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.poster-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex-shrink: 0; border-radius: 50%; overflow: hidden; display: block; object-fit: cover; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; grid-column: 1 / -1; }
.footer-links { display: flex; justify-content: center; gap: 20px; padding-top: 8px; font-size: 13px; }

/* フォーム */
.field { display: flex; flex-direction: column; gap: 8px; }
.label-row { display: flex; align-items: center; gap: 8px; }
.label { font-size: 14px; color: var(--text-2); }
.tag-optional { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
:root:not([data-theme="dark"]) .tag-optional { background: #E1E7EF; color: var(--text-2); }
.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 15px; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent-line); }
.textarea { height: 120px; padding: 12px 14px; resize: none; line-height: 1.6; }
.select option { background: var(--surface); color: var(--text); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.char-count { align-self: flex-end; font-size: 12px; color: var(--muted); }
.error { color: var(--danger); font-size: 13px; }
.icon-pick {
  width: 72px; height: 72px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--dashed);
  color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; padding: 0;
}
.icon-pick img { width: 100%; height: 100%; object-fit: cover; }

/* 数字と−＋（数字は左、ボタンは右） */
.stepper {
  display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.stepper.sunken { background: var(--sunken); }
.stepper .num { font-size: 22px; font-weight: 700; }
.stepper .num small { font-size: 14px; font-weight: 400; color: var(--muted); }
.stepper .btns { display: flex; gap: 6px; }
.step-btn {
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.step-btn:disabled { opacity: .35; cursor: default; }

/* 自分の募集 */
.mine-card { padding: 0; overflow: hidden; gap: 0; }
.mine-card .inner { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.expire-band {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 14px; background: var(--band-bg); color: var(--urgent-text); font-size: 14px;
}
.expire-band .btn { height: 36px; }
.toggle {
  width: 52px; height: 32px; padding: 3px; border-radius: 16px; border: none; cursor: pointer;
  background: var(--toggle-off); display: flex; justify-content: flex-start;
}
.toggle span { width: 26px; height: 26px; border-radius: 13px; background: var(--knob); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: var(--urgent-text); justify-content: flex-end; }
.toggle:disabled { opacity: .4; cursor: default; }
.section-title { font-size: 13px; color: var(--muted); margin: 8px 0 0; font-weight: 500; grid-column: 1 / -1; }

/* 詳細 */
.detail-head { display: flex; gap: 14px; align-items: center; }
/* 詳しいページの上：アイコン・名前・印・説明・共有を1枚の白いカードに（灰色の背景の上より読みやすく） */
.head-card { gap: 12px; }
.desc { font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); margin: 0; }

/* ログイン */
.login { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; gap: 20px; width: 100%; max-width: 440px; margin: 0 auto; }
.login h1 { margin: 0; font-size: 22px; text-align: center; }

/* 設定 */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.test-box { border: 1px dashed var(--dashed); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.build { text-align: center; font-size: 12px; color: var(--muted); padding-top: 16px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 56px)); gap: 10px; }
.choice {
  aspect-ratio: 1; border-radius: 50%; padding: 0; border: 2px solid transparent; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.choice.on { border-color: var(--accent-text); }
.choice svg { width: 100%; height: 100%; display: block; }
.swatch { width: 100%; height: 100%; border-radius: 50%; display: block; }

/* ルール */
.rules h2 { font-size: 16px; margin: 16px 0 8px; }
.rules ul, .rules ol { margin: 0; padding-left: 22px; line-height: 1.8; font-size: 14px; color: var(--text-2); }
.rules li + li { margin-top: 2px; }
.doc-intro { font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 8px 0 0; }
.doc-date { font-size: 13px; color: var(--muted); margin-top: 28px; text-align: right; }

/* お知らせ */
.toast {
  white-space: pre-line; text-align: center;
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* 画像の切り取り */
.crop-back { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.crop-panel { background: var(--surface); color: var(--text); border-radius: 16px; width: min(480px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.crop-title { padding: 14px 16px 8px; font-weight: 700; font-size: 15px; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 70vh; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crop-zoom { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; }
.crop-zoom input { flex: 1; accent-color: var(--accent-text); }
.crop-zoom span { color: var(--muted); font-size: 18px; width: 18px; text-align: center; }
.crop-btns { display: flex; align-items: center; gap: 8px; padding: 12px 16px 14px; }
.crop-btns .sp { flex: 1; }
.pop-body .pop-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-body b.one { -webkit-line-clamp: 1; }

/* 上から降りてくるお知らせ（ほかの人から届いたもの） */
.notice-stack { position: fixed; top: 8px; left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.pop {
  pointer-events: auto; width: min(420px, calc(100% - 24px)); min-height: 52px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .18); display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  transform: translateY(-140%); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s;
  font: inherit; text-align: left;
}
:root[data-theme="dark"] .pop { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.pop.show { transform: translateY(0); opacity: 1; }
.pop.hide { transform: translateY(-140%); opacity: 0; transition: transform .3s ease-in, opacity .3s; }
.pop .notice-type { flex: none; padding-top: 0; }
.pop-body { display: flex; flex-direction: column; min-width: 0; }
.pop-body b { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-body span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .pop, .pop.hide { transition: opacity .2s; transform: none; } }

/* PC */
@media (min-width: 900px) {
  .app { max-width: 1200px; }
  .top { padding: 12px 24px; }
  .top h1 { font-size: 19px; }
  .content { padding: 16px 24px 40px; }
  .pills.scroll { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .search { max-width: 480px; }
  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
  .content.narrow { max-width: 680px; width: 100%; margin: 0 auto; }
  .content.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: stretch; align-content: start; gap: 16px; }
}

/* 自分の募集：どのカードも同じ並び */
.mine-card .inner { flex-grow: 1; }
.expire-row { min-height: 36px; }
.expire-row .btn { height: 36px; }
.expire-text { font-size: 13px; color: var(--muted); }
.expire-text.soon { color: var(--urgent-text); font-weight: 500; }
.link-btn.bottom { margin-top: auto; }
.withdraw-area { padding-top: 24px; border-top: 1px solid var(--line-soft); }
.danger-text { color: var(--danger); }

/* 詳細：参加と参加者・書き込み */
.btn.joined { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok-text); font-weight: 700; }
.section { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.section-head { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
.persons { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 8px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; background: transparent; border: none; padding: 0; font-family: inherit; cursor: pointer; }
.person-name {
  font-size: 12px; line-height: 1.35; color: var(--text-2); max-width: 100%; text-align: center; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.person.more { background: transparent; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.more-circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500;
}
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comments { display: flex; flex-direction: column; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.comment:last-child { border-bottom: none; }
.comment-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.comment-meta .icon-btn.small { width: 32px; height: 32px; margin-left: auto; color: var(--muted); }
.comment-meta .icon-btn.small svg { width: 16px; height: 16px; }
.comment-text { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }

/* 確認のポップアップ */
.modal-back {
  position: fixed; inset: 0; z-index: 30; background: rgba(10, 15, 25, .5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  width: 100%; max-width: 400px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.modal-text { margin: 0 0 18px; font-size: 15px; line-height: 1.7; }
.modal-btns { display: flex; justify-content: flex-end; gap: 8px; }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #FFFFFF; font-weight: 700; }
:root[data-theme="dark"] .btn.danger-fill { color: #2A1010; }

/* 投稿・返信・通報 */
.people-block { display: flex; flex-direction: column; gap: 10px; }
.people-label { font-size: 12px; color: var(--muted); }
.post-item { display: flex; gap: 10px; padding: 12px 8px; margin: 0 -8px; border-radius: 12px; }
.post-item + .post-item { border-top: 1px solid var(--line-soft); border-radius: 0; }
.post-item.mine { background: var(--mine-bg); border-radius: 12px; }
.post-item.mine + .post-item, .post-item + .post-item.mine { border-top-color: transparent; }
.post-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.post-meta .right-tool { margin-left: auto; }
.badge.you { background: var(--ok-bg); color: var(--ok-text); }
.text-btn {
  height: 32px; padding: 0 2px; background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 500; font-family: inherit;
}
.text-btn.accent { color: var(--accent-text); }
.text-btn.small { height: 28px; font-size: 12px; font-weight: 400; }
.reported { font-size: 12px; color: var(--placeholder); }
.post-actions { display: flex; gap: 16px; align-items: center; }
.replies { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.reply-item { display: flex; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; }
.reply-item.mine { background: var(--mine-bg); }
.hidden-post { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hidden-dot { width: 36px; height: 36px; border-radius: 18px; background: var(--surface-2); flex-shrink: 0; }
.reply-item .hidden-dot { width: 28px; height: 28px; }
.reply-form { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.reply-form .textarea { height: 64px; font-size: 14px; }
.reply-form .btn { height: 36px; font-size: 13px; }
.report-reasons { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; border: none; padding: 0; }
.report-reasons label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; cursor: pointer; }
.report-reasons input { width: 18px; height: 18px; accent-color: var(--accent-text); }
.modal .textarea { height: 72px; font-size: 14px; margin-bottom: 16px; }
.modal-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

/* 操作するところの文字は選べないようにする（中身はコピーできるまま） */
.btn, .pill, .text-btn, .link-btn, .icon-btn, .step-btn, .toggle, .choice, .person,
.top, .label, .people-label, .section-head, .section-title, .badge, .tag-optional,
.small-note, .sub, .char-count, .stepper .num, .expire-text, .footer-links,
.modal-text, .modal-title, .report-reasons, .toast, .build, select {
  user-select: none; -webkit-user-select: none;
}
.modal .textarea { user-select: text; -webkit-user-select: text; }
.modal-open #app, .modal-open #toast, .modal-open .site-header, .modal-open .site-footer { user-select: none; -webkit-user-select: none; }

/* ---------- ウェブサイト風（1026-F） ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
.app { max-width: 1080px; width: 100%; margin: 0 auto; min-height: 0; flex-grow: 1; }
.content { padding: 12px 16px 32px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 60px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 700; white-space: nowrap; user-select: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; background: #1A64C8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-nav { display: flex; gap: 22px; flex-grow: 1; }
.nav-link { font-size: 14px; color: var(--text-2); text-decoration: none; padding: 19px 2px 17px; border-bottom: 2px solid transparent; white-space: nowrap; user-select: none; }
.nav-link.on { color: var(--text); font-weight: 700; border-bottom-color: var(--link); }
.site-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me { display: flex; border-radius: 50%; }
.me.on { box-shadow: 0 0 0 2px var(--header-bg), 0 0 0 4px var(--link); }
.login-btn { height: 36px; }
.menu-btn { display: none; }

.site-footer { background: var(--header-bg); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { min-height: 0; padding: 24px 16px; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { font-size: 13px; color: var(--text-2); }
.footer-notes { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.trademark, .copyright { font-size: 12px; color: var(--muted); user-select: none; }

.crumbs { font-size: 12px; color: var(--muted); padding-top: 4px; user-select: none; }
.crumbs a { color: var(--muted); }
.page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 22px; font-weight: 700; }
.page-right { display: flex; align-items: center; gap: 10px; }
.page-right .meta { font-size: 13px; color: var(--muted); }
.span-all { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row .search { flex: 1 1 240px; max-width: 420px; }
.filter-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.post-btn { height: 44px; flex-shrink: 0; }

/* 角の丸みは控えめに */
.card { border-radius: 8px; }
.btn { border-radius: 6px; }
.btn.big { border-radius: 8px; }
.input, .textarea, .select, .search, .stepper, .step-btn { border-radius: 6px; }

/* 一覧のカード */
.cards { display: flex; flex-direction: column; gap: 12px; }
.site-card { text-decoration: none; color: var(--text); gap: 10px; }
.site-card:hover { border-color: var(--accent-line); }
.site-card:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.link-name { color: var(--link); font-size: 15px; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-row .badge { border-radius: 4px; }
.card-bottom { margin-top: auto; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.card-foot .poster { gap: 6px; }

.pager { display: flex; justify-content: center; gap: 6px; padding-top: 4px; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 6px; border-radius: 6px; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; user-select: none;
}
.page-btn.on { background: #1A64C8; border-color: #1A64C8; color: #FFFFFF; font-weight: 700; }
.page-btn:disabled { opacity: .4; cursor: default; }

@media (min-width: 900px) {
  .app { max-width: 1080px; }
  .content { padding: 16px 16px 40px; }
  .content, .content.narrow { max-width: 712px; width: 100%; margin: 0 auto; } /* PC はどのページも同じ幅で真ん中にそろえる */
  .content.mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { max-width: 520px; }
  .page-title h1 { font-size: 24px; }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 899px) {
  .site-inner { gap: 8px; min-height: 56px; }
  .logo { font-size: 16px; gap: 8px; }
  .menu-btn { display: flex; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-bg); border-bottom: 1px solid var(--line); padding: 4px 16px 8px; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .site-nav.open .nav-link { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
  .site-nav.open .nav-link.on { border-bottom-color: var(--line-soft); color: var(--link); }
  .filter-row .search { max-width: none; }
  .filter-tools { margin-left: 0; }
  .page-title h1 { font-size: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-notes { align-items: flex-start; }
}

/* 参加のリンク */
.link-block { display: flex; flex-direction: column; gap: 8px; }
.link-guide { font-size: 13px; color: var(--muted); user-select: none; }
.link-buttons { display: flex; flex-direction: column; gap: 8px; }
.link-buttons .btn { width: 100%; }
.links-locked {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px;
  border: 1px dashed var(--dashed); border-radius: 8px; font-size: 14px; color: var(--muted); user-select: none;
}
.modal .share-text { height: 200px; font-size: 14px; line-height: 1.6; }
@media (min-width: 900px) {
  .link-buttons { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
}

/* プロモーションコード */
.check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--link); flex-shrink: 0; }
.code-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: 8px; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-text { font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .03em; overflow-wrap: anywhere; }
.code-list { padding: 0; gap: 0; }
.code-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.code-item:first-child { border-top: none; }
.person-inline { display: flex; align-items: center; gap: 8px; background: transparent; border: none; padding: 0; cursor: pointer; font-family: inherit; min-width: 120px; }
.code-right { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; justify-content: flex-end; }
.code-input { height: 40px; flex: 1 1 140px; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.code-right .btn { height: 40px; }
.code-done { font-size: 12px; color: var(--ok-text); background: var(--ok-bg); padding: 2px 8px; border-radius: 4px; white-space: nowrap; user-select: none; }
.icon-btn.small { width: 32px; height: 32px; color: var(--muted); }
.btn .small-note { margin-left: 6px; }

/* プロフィール */
.as-btn, .avatar-btn, .name-btn { background: transparent; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; color: inherit; }
.avatar-btn { border-radius: 50%; align-self: flex-start; flex-shrink: 0; }
.name-btn { font-size: 13px; color: var(--text-2); }
.name-btn:hover, .as-btn:hover .poster-name { text-decoration: underline; }
.profile-modal { display: flex; flex-direction: column; gap: 14px; max-height: 85vh; overflow-y: auto; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.profile-links { display: flex; flex-direction: column; gap: 6px; }
.profile-links a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; color: var(--text); font-size: 13px; min-width: 0;
}
.link-site { font-weight: 700; flex-shrink: 0; }
.link-url { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-grow: 1; min-width: 0; }
.profile-posts { display: flex; flex-direction: column; gap: 6px; }
.profile-post { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 6px 0; }
.profile-post .app-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 15px; }
.profile-post > span { display: flex; flex-direction: column; min-width: 0; }
.profile-modal .modal-btns { margin-top: 4px; align-items: center; }

/* お知らせ */
.bell { position: relative; }
.bell-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #D93025; color: #FFFFFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.notice-list { padding: 0; gap: 0; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-top: 1px solid var(--line-soft);
  background: transparent; border-left: none; border-right: none; border-bottom: none; width: 100%; text-align: left;
  font-family: inherit; color: var(--text); cursor: pointer;
}
.notice:first-child { border-top: none; }
/* 未読は白（カードの色）で文字を少し太く、既読はうすい灰色で文字も薄く */
.notice { background: var(--surface-2); }
.notice:not(.unread) .notice-text { color: var(--text-2); }
.notice:not(.unread) .notice-type { opacity: .6; }
.notice.unread { background: var(--surface); }
.notice.unread .notice-text { font-weight: 600; }
.notice-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex-grow: 1; }
.notice-text { font-size: 14px; line-height: 1.6; }
.notice-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--link); margin-top: 8px; flex-shrink: 0; }
.stack { display: flex; align-items: center; }
.stack .avatar { border: 2px solid var(--surface); box-sizing: content-box; }
.stack .avatar + .avatar { margin-left: -14px; }
.notice-icon { width: 36px; height: 36px; border-radius: 18px; background: var(--surface-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.setting-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 14px; }
.setting-toggle .toggle.on { background: var(--link); }
.new-mark { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: #D93025; color: #FFFFFF; margin-left: 6px; }
.error { white-space: pre-line; }

.notice-lead { width: 104px; flex-shrink: 0; display: flex; align-items: center; }
.more-bubble {
  width: 32px; height: 32px; border-radius: 50%; margin-left: -14px; border: 2px solid var(--surface); box-sizing: content-box;
  background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* お知らせ（X風：左に種類のマーク、アイコンは文の上に横並び） */
.notice-type { width: 32px; flex-shrink: 0; display: flex; justify-content: center; padding-top: 4px; }
.notice-type.blue { color: #1A73E8; }
.notice-type.gray { color: var(--muted); }
.notice-type.green { color: #1E8E3E; }
.notice-type.orange { color: #E37400; }
.notice-type.red { color: #D93025; }
:root[data-theme="dark"] .notice-type.blue { color: #8AB4F8; }
:root[data-theme="dark"] .notice-type.green { color: #81C995; }
:root[data-theme="dark"] .notice-type.orange { color: #FDD663; }
:root[data-theme="dark"] .notice-type.red { color: #F28B82; }
.av-row { display: flex; gap: 4px; align-items: center; margin-bottom: 2px; flex-wrap: nowrap; }
.av-row .more-bubble { margin-left: 0; width: 30px; height: 30px; border: none; }
.plus-sp { display: none !important; }
@media (max-width: 899px) {
  .av-row .avatar:nth-child(n+7) { display: none; }
  .plus-pc { display: none !important; }
  .plus-sp { display: flex !important; }
}
.tpl-btn { margin-left: auto; height: 32px; padding: 0 12px; font-size: 13px; }

/* アイコンを選ぶポップアップ */
.av-picker { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.av-picker .modal-btns { margin-top: 4px; }
.av-preview { display: flex; justify-content: center; }
.av-preview svg, .av-preview img { width: 88px; height: 88px; border-radius: 50%; display: block; object-fit: cover; }
.modal:not(.av-picker) > .av-preview { margin-bottom: 14px; }
.modal:not(.av-picker) > .av-preview img { width: 112px; height: 112px; }
.av-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.av-tabs::-webkit-scrollbar { display: none; }
.av-tabs .pill.small { height: 32px; padding: 0 12px; }
.av-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.av-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: -4px; }
.av-grid .choice, .av-colors .choice { width: 100%; max-width: 60px; justify-self: center; }

/* 一覧の見出し：募集するボタンは右に */
.page-title .page-right { flex-grow: 1; }
.page-title .page-right .post-btn { margin-left: auto; height: 40px; }
.list-search { width: 100%; max-width: none !important; }

/* 件数の数字 */
.pill-count { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.pill.on .pill-count { color: inherit; opacity: .75; }
.pill-count.zero { opacity: .55; }

/* スマホとPCで出し分け */
@media (max-width: 899px) { .pc-only { display: none !important; } }
@media (min-width: 900px) { .sp-only { display: none !important; } }

/* スマホのジャンルボタンとポップアップ */
.genre-btn { justify-content: space-between; width: 100%; height: 44px; }
.genre-btn .genre-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-btn.on { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent-text); }
.genre-modal { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); }
.genre-list { overflow-y: auto; display: flex; flex-direction: column; margin: 0 -4px; }
.genre-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; cursor: pointer; }
.genre-item input { width: 18px; height: 18px; accent-color: var(--link); }
.genre-item .pill-count { margin-left: auto; }
.genre-item.zero span:not(.pill-count) { color: var(--muted); }

/* 参加できないときの参加ボタン（押すと理由が出る） */
.btn.is-off { opacity: .45; cursor: not-allowed; }

/* プロフィールの窓：外す・ブロック */
.profile-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-tools .btn { flex: 1 1 auto; }

/* 設定：ブロック中の人 */
.block-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.small-btn { height: 34px; padding: 0 12px; font-size: 13px; }

/* 参加中の目印 */
.badge.joined-badge { display: inline-flex; align-items: center; gap: 3px; background: var(--ok-bg); color: var(--ok-text); }
.badge.joined-badge svg { width: 13px; height: 13px; }
/* 相互テスト：あなたの募集に参加している人の募集・参加者一覧の「相互」 */
.badge.tester-badge { background: var(--tester-bg); color: var(--tester-text); }
.mutual-mark { font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 8px; background: var(--tester-bg); color: var(--tester-text); }
.filter-tools .tester-pill { margin-right: 8px; }

/* 終わった募集・テスト終了の案内 */
.ended-note { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 14px; text-align: center; }

/* 設定：ほかのページへ進む行 */
.setting-link { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px; color: var(--text); text-decoration: none; font-size: 15px; }
.setting-link-right { display: flex; align-items: center; gap: 6px; color: var(--muted); }

/* 参加中のページ：終わった募集の「リストから外す」 */
.ended-wrap { display: flex; flex-direction: column; gap: 8px; }
.ended-wrap .btn { align-self: flex-end; }
.dim-cards .ended-wrap .card { opacity: .6; }

/* ニックネームの変更 */
.nick-row { display: flex; gap: 8px; align-items: center; }
.nick-row .input { flex: 1; min-width: 0; }
.nick-row .btn { flex: none; }
.input:disabled { opacity: .6; }
/* バージョンの横の開発用の番号 */
.build-no { font-size: 11px; opacity: .8; margin-left: 2px; }

/* 投稿の右はしの「削除」「通報」 */
.right-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- 運営からのお知らせ・管理画面（1029-C） ---------- */
:root { --ann: #1558B0; --ann-text: #FFFFFF; --kind-up-bg: #E4F4E9; --kind-up: #1C7438; --kind-bug-bg: #FDE7E7; --kind-bug: #C62828;
  --kind-info-bg: #E8F1FC; --kind-info: #1558B0; --ban-bg: #FDE7E7; --ban-text: #B3261E; --ban-line: #F2B8B5; }
:root[data-theme="dark"] { --ann: #3767A6; --ann-text: #FFFFFF; --kind-up-bg: #173A2B; --kind-up: #86DCA2; --kind-bug-bg: #4A2326; --kind-bug: #F59A9A;
  --kind-info-bg: #1E3A5F; --kind-info: #A8D1FF; --ban-bg: #4A2326; --ban-text: #F9B8B4; --ban-line: #6E3236; }

/* 種類の印 */
.kind-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; white-space: nowrap; }
.kind-tag.k-update { background: var(--kind-up-bg); color: var(--kind-up); }
.kind-tag.k-bug { background: var(--kind-bug-bg); color: var(--kind-bug); }
.kind-tag.k-info { background: var(--kind-info-bg); color: var(--kind-info); }
.kind-tag.k-done { background: var(--surface-2); color: var(--muted); }
.kind-tag.k-band { background: var(--urgent-bg); color: var(--urgent-text); font-weight: 500; }
.kind-tag.k-user { background: var(--surface-2); color: var(--text-2); }

/* 「運営」の丸 */
.ann-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ann); color: var(--ann-text); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; user-select: none; }
.ann-mark.small { width: 30px; height: 30px; font-size: 10px; }
.notice .notice-type .ann-mark { margin-top: -2px; }

/* ヘッダーの下の帯 */
.ann-band { background: var(--band-bg); color: var(--urgent-text); border-bottom: 1px solid var(--urgent-line); }
.ann-band.bug { background: var(--urgent-bg); }
.ann-band.ban { background: var(--ban-bg); color: var(--ban-text); border-bottom-color: var(--ban-line); }
.ann-band-inner { min-height: 0; padding: 10px 16px; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.ann-band-inner svg { flex-shrink: 0; margin-top: 1px; }
.ann-band-text { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.ann-band-body { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; opacity: .9; }
.ann-band-more { color: inherit; white-space: nowrap; font-weight: 500; flex-shrink: 0; }

/* 履歴のページ */
.news-item { gap: 6px; scroll-margin-top: 80px; }
.news-item.focus { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.news-title { margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.news-body { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* 管理画面へのリンク（ヘッダー・設定） */
.admin-link { color: var(--text-2); }
.admin-link.on { color: var(--link); }
.admin-link-text { display: inline-flex; align-items: center; gap: 8px; }
.admin-box { border: 1px dashed var(--dashed); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-box-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* 管理画面 */
.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 899px) {
  .adm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } /* スマホは3つずつ均等 */
  .adm-tabs .pill { width: 100%; justify-content: center; }
}
.adm-acts.rep { display: grid; grid-template-columns: 1fr 1fr; } /* 通報：問題なしを1段目、削除と停止を2段目 */
.adm-acts.rep .btn { width: 100%; justify-content: center; }
.adm-acts.rep .btn:first-child, .adm-acts.rep .btn:nth-child(2):last-child { grid-column: 1 / 3; }
.adm-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #FFFFFF; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
:root[data-theme="dark"] .adm-count { color: #2A0F10; }
.adm .page-right .btn { height: 36px; gap: 4px; }
.adm-section { font-size: 13px; color: var(--muted); margin: 8px 2px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stat-v { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-k { font-size: 12px; color: var(--muted); }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.adm-card-head b { font-size: 15px; }
.pills.seg { gap: 4px; flex-wrap: wrap; }
.pills.seg .pill.small { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; border-bottom: 1px solid var(--line); }
.chart.thin { gap: 2px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; min-width: 0; }
.bar { background: var(--bar); border-radius: 3px 3px 0 0; min-height: 0; }
.bar-v { height: 14px; line-height: 14px; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; }
.chart-days { display: flex; gap: 6px; font-size: 10px; color: var(--muted); }
.chart.thin + .chart-days { gap: 2px; }
.chart-days span { flex: 1; text-align: center; white-space: nowrap; min-width: 0; overflow: visible; }
.rank { display: grid; grid-template-columns: minmax(0, 13em) 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 8px; }
.rank-bar span { display: block; height: 8px; border-radius: 4px; background: var(--accent-line); }
.rank-n { color: var(--muted); font-size: 12px; }
.adm-link-text { display: flex; flex-direction: column; gap: 2px; }
.adm-form { gap: 10px; }
.adm-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.adm-label { font-size: 12px; color: var(--muted); }
.adm-row .input { width: auto; max-width: 100%; }
.adm-row .pills .pill.small, .adm-tabs .pill.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 16px; }
.adm-form .textarea { height: 140px; resize: vertical; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.adm-acts .btn { height: 36px; }
.adm-item { gap: 8px; }
.adm-item.editing { border-color: var(--accent-line); }
.adm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
.adm-meta a { text-decoration: none; }
.badge.adm-red { background: var(--kind-bug-bg); color: var(--kind-bug); border-radius: 4px; }
.adm-meta .badge { border-radius: 4px; }
.adm-title { font-size: 15px; line-height: 1.5; }
.adm-text { margin: 0; background: var(--sunken); border-radius: 6px; padding: 8px 10px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-text.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
  background: none; padding: 0; color: var(--text-2); }
.adm-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.adm-notes { margin: 0; padding-left: 18px; font-size: 12px; color: var(--text-2); }
.adm-row-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; }
.adm-grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-row-card .btn { height: 36px; flex-shrink: 0; }
.adm-search .input { width: 100%; }

/* ---------- 1029-D：停止の印・運営の非表示・アカウントの記録・NGワード ---------- */
.ann-pin { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5;
  background: var(--band-bg); color: var(--urgent-text); border: 1px solid var(--urgent-line); }
.ann-pin.bug { background: var(--urgent-bg); }
.ann-pin svg { flex-shrink: 0; margin-top: 1px; }
.mark-tag { display: inline-block; font-size: 10px; line-height: 16px; padding: 0 6px; border-radius: 4px; white-space: nowrap; font-weight: 500; }
.mark-tag.ban { background: var(--kind-bug-bg); color: var(--kind-bug); }
.mark-tag.blk { background: var(--surface-2); color: var(--muted); }
.person .mark-tag { margin-top: -2px; }
.profile-marks { display: flex; gap: 4px; justify-content: center; }
.profile-marks:empty { display: none; }
.hidden-band { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--kind-bug-bg); color: var(--kind-bug); font-size: 13px; font-weight: 500; border-radius: 8px; }
.mine-card > .hidden-band { border-radius: 0; }
.admin-hidden-card { flex-direction: row; align-items: center; gap: 10px; opacity: .8; }
.admin-hidden-card .app-icon { width: 40px; height: 40px; }
.reporters { display: flex; flex-direction: column; gap: 4px; background: var(--sunken); border-radius: 6px; padding: 8px 10px; }
.rp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.link-like { background: none; border: none; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; text-align: left; }
.link-like.strong { font-weight: 700; color: var(--text); text-decoration: none; }
.cnts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cnt { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.cnt.red { background: var(--kind-bug-bg); color: var(--kind-bug); }
.cnt.amber { background: var(--urgent-bg); color: var(--urgent-text); }
.cnt.warnc { background: var(--urgent-bg); color: var(--urgent-text); font-weight: 700; }
.cnt.okc { background: var(--ok-bg); color: var(--ok-text); }
.cnt.grayc { background: var(--surface-2); color: var(--muted); }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm-bar .btn { height: 34px; font-size: 13px; }
.adm-sort { width: auto; height: 36px; font-size: 13px; padding: 0 10px; }
.as-row { width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; align-items: flex-start; }
.as-row > svg { align-self: center; color: var(--muted); flex-shrink: 0; }
.as-row .adm-grow { display: flex; flex-direction: column; gap: 2px; }
.adm-head-card { flex-direction: row; align-items: center; gap: 12px; }
.adm-name.big { font-size: 16px; }
.adm-acts.start { justify-content: flex-start; }
.hist-card { gap: 0; padding: 0; }
.hist { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-top: 1px solid var(--line); }
.hist:first-child { border-top: none; }
.hist-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.hist-top .badge { border-radius: 4px; }
.hist-date { margin-left: auto; }
.hist-memo { font-size: 13px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.hist-memo.muted { color: var(--muted); }
.ban-modal { display: flex; flex-direction: column; gap: 10px; }
.ban-modal .modal-title { margin: 0; font-weight: 700; font-size: 16px; }
.ban-modal .label { font-size: 13px; }
.ban-modal .pills { gap: 6px; flex-wrap: wrap; }
.ng-add { display: flex; gap: 8px; }
.ng-add .input { flex: 1; }
.ng-add .btn { height: 48px; flex-shrink: 0; }
.ngrow { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ngrow:first-child { border-top: none; }
.ngw { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.code { margin: 0; background: var(--sunken); border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
/* 1029-E */
.adm-av { display: inline-flex; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.adm-av:focus-visible, .as-row:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.card-foot .poster .mark-tag { margin-left: 4px; }
/* 1029-F：リンクを振り分けたときの一言（欄のすぐ下） */
.link-note { display: none; font-size: 13px; font-weight: 500; color: var(--ok-text); background: var(--ok-bg); border-radius: 6px; padding: 6px 10px; align-self: flex-start; }
.link-note.show { display: inline-block; }
/* 1029-G：記録の画面の一覧（押せる行） */
.hist-link { color: var(--text); text-decoration: none; }
.hist-link:hover { background: var(--sunken); }
.hist-link .link-like { pointer-events: none; }

/* ---------- 書き込みの画像 ---------- */
.img-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.img-pick { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer; flex: none; }
.img-pick svg { width: 18px; height: 18px; }
.img-pick.is-off { opacity: .45; }
.img-prev { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--sunken); }
.img-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.img-x svg { width: 16px; height: 16px; }
.send-side { display: flex; align-items: center; gap: 10px; flex: none; }
.c-thumb { display: block; width: max-content; max-width: 100%; margin: 4px 0 2px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--sunken); cursor: zoom-in; }
.c-thumb img { display: block; max-width: 180px; max-height: 180px; }
.c-thumb.small img { max-width: 120px; max-height: 120px; }
/* 大きい表示（2本指で拡大・縮小、拡大中は1本指で動かす、2回押すと拡大／元に戻す） */
.img-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); }
.iv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.iv-img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; transform-origin: center center; will-change: transform; }
.iv-msg { color: #ddd; font-size: 14px; }
.iv-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.iv-x svg { width: 22px; height: 22px; }
/* 2枚以上の画像：正方形に切って並べる（3枚は左に大きく1枚） */
.img-prevs { display: flex; gap: 8px; flex-wrap: wrap; }
.img-prevs .img-prev { width: 72px; height: 72px; }
.mg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 2px; width: min(100%, 260px); border-radius: 10px; overflow: hidden; }
.mg.small { width: min(100%, 180px); }
.mg-cell { display: block; padding: 0; border: none; background: var(--sunken); cursor: zoom-in; aspect-ratio: 1; min-width: 0; }
.mg-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg.n3 { grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 1; }
.mg.n3 .mg-cell { aspect-ratio: auto; min-height: 0; position: relative; overflow: hidden; }
.mg.n3 .mg-cell img { position: absolute; inset: 0; }
.mg.n3 .mg-cell:first-child { grid-row: span 2; }
.iv-count { position: absolute; z-index: 2; top: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; pointer-events: none; }
.iv-nav { position: absolute; z-index: 2; top: 50%; margin-top: -22px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.iv-nav.prev { left: 8px; }
.iv-nav.next { right: 8px; }
.iv-dots { position: absolute; z-index: 2; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.iv-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.iv-dots span.on { background: #fff; }


/* ---------- 規約への同意・押せるリンク ---------- */
.agree { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 14px; line-height: 1.7; cursor: pointer; }
.agree.plain { border: none; padding: 0; background: none; }
.agree input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--link); cursor: pointer; }
.agree a { color: var(--link); }
.c-link { color: var(--link); text-decoration: underline; overflow-wrap: anywhere; }
.ngw.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------- メールアドレスの募集 ---------- */
.em-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.em-status svg { flex: none; width: 18px; height: 18px; margin-top: 4px; }
.em-status.wait { background: var(--urgent-bg); border: 1px solid var(--urgent-line); }
.em-status.done { background: #E7F5EC; border: 1px solid #9BD3AE; }
.em-status .small-note { overflow-wrap: anywhere; }
.em-list { padding-top: 4px; padding-bottom: 4px; }
.em-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.em-row:last-child { border-bottom: none; }
.em-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.em-name { font-size: 14px; }
.em-addr { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.em-ok { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.em-ok svg { width: 14px; height: 14px; }
.em-ok.on { background: #E7F5EC; border-color: #9BD3AE; color: #1E7B3E; }
#linkNote { white-space: pre-line; }

:root[data-theme="dark"] .em-status.done, :root[data-theme="dark"] .em-ok.on { background: #16341F; border-color: #2F6B43; color: #8FD3A6; }

/* 新しいバージョンの帯 */
.ver-band { background: var(--accent-bg); color: var(--accent-text); border-bottom: 1px solid var(--accent-line); }
.ver-band .ann-band-inner { align-items: center; }
.ver-btn { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--accent-line); background: var(--surface);
  color: var(--accent-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.ver-x { flex: none; width: 32px; height: 32px; border: none; background: none; color: inherit; opacity: .75; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; }
.ver-x svg { width: 16px; height: 16px; }

/* 自分の募集を開いたとき */
.owner-box { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-bg); }
.owner-box > span { flex: 1; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.owner-box .btn { height: 36px; flex: none; }

/* 一覧の検索：説明文も検索する */
.search-desc { font-size: 13px; color: var(--text-2); margin-top: -4px; align-items: center; width: max-content; }
.search-desc input { width: 18px; height: 18px; margin: 0; }

/* テスト中のお知らせ：4つを均等に */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grid4 .btn { padding: 0 4px; }

/* プロフィール：14日テスト完了の回数 */
.profile-done { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--ok-bg); }
.profile-done span { font-size: 13px; color: var(--text-2); }
.profile-done b { font-weight: 700; color: var(--ok-text); }

/* 共有：ボタンと、PC のメニュー */
.share-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.btn.share-btn { height: 34px; padding: 0 12px; border-radius: 17px; font-size: 13px; gap: 6px; }
.share-menu { position: absolute; z-index: 60; min-width: 200px; padding: 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); display: flex; flex-direction: column; }
:root[data-theme="dark"] .share-menu { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.share-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: none; border: none; text-align: left; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.share-menu button:hover, .share-menu button:focus-visible { background: var(--surface-2); outline: none; }
.share-menu button svg { color: var(--text-2); }

/* テスト版：ヘッダーの下の帯と、名前の横の β */
.beta-band .ann-band-inner { align-items: center; }
.beta-band .ann-band-text { font-size: 13px; line-height: 1.5; }
.beta-band a { color: inherit; text-decoration: underline; font-weight: 700; }
.beta-mark { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--muted); vertical-align: 3px; }

/* ひろば：部屋のカードと、部屋の中の見出し */
.room-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: var(--text); text-decoration: none; }
.room-card:hover { border-color: var(--accent-line); }
.room-ic { flex: none; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent-text); }
.room-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.room-title { font-weight: 700; font-size: 15px; color: var(--link); overflow-wrap: anywhere; }
.room-sub { font-size: 13px; color: var(--text-2); line-height: 1.5; overflow-wrap: anywhere; }
.room-meta { font-size: 12px; color: var(--muted); }
.room-chev { flex: none; color: var(--muted); display: flex; }
.room-head-ic { flex: none; width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent-text); }
.room-head-ic svg { width: 32px; height: 32px; }
.room-note { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.room-edit { gap: 6px; }
/* 管理画面のひろば：並び替え（右上）・ボタン・削除 */
.room-edit-head { display: flex; align-items: center; gap: 8px; }
.room-edit-head .label { margin: 0; }
.room-move { margin-left: auto; display: flex; gap: 4px; }
.room-move .btn { width: 36px; height: 32px; padding: 0; justify-content: center; }
.room-move .btn:disabled { opacity: .35; }
.room-acts { display: flex; justify-content: flex-end; gap: 6px; }
.room-acts .btn { height: 36px; }
.room-del { align-self: flex-start; color: var(--danger); margin-top: 2px; }
@media (max-width: 600px) { .room-acts .btn { flex: 1; justify-content: center; padding: 0 8px; } }

/* 言語の切りかえ（フッター） */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3, var(--text-2)); }
.lang-btn { background: none; border: 0; padding: 2px 0; font: inherit; color: var(--text-2); cursor: pointer; }
.lang-btn.on { color: var(--text); font-weight: 700; }
.lang-btn:not(.on):hover { text-decoration: underline; }

/* 募集の対応できる言語の印（JA / EN） */
.lang-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: .03em; color: var(--text-2); vertical-align: 1px; }
.lang-tag + .lang-tag { margin-left: 3px; }
.share-row { gap: 8px; align-items: center; }
.share-row .tr-btn { margin-right: auto; }
a.tr-btn { text-decoration: none; }
a.text-btn { display: inline-flex; align-items: center; }
/* その場の翻訳（Chrome の翻訳） */
.tr-busy { font-size: 13px; color: var(--muted); }
.tr-busy.small { font-size: 12px; }
.share-row .tr-busy { margin-right: auto; }
.tr-note { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.tr-off { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
/* 言語の絞り込み：⇅ の代わりに地球のマーク */
select.sort.lang-filter {
  background:
    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='%235f6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") no-repeat 12px center,
    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='%235f6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center,
    var(--surface);
}
/* メンテナンス */
.maint { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 20px 40px; }
.maint-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--band-bg); color: var(--urgent-text); display: flex; align-items: center; justify-content: center; }
.maint-ic svg { width: 30px; height: 30px; }
.maint h1 { margin: 0; font-size: 22px; }
.maint p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.maint .maint-until { font-weight: 700; color: var(--text); font-size: 15px; }
.maint-card { display: flex; flex-direction: column; gap: 14px; }
.maint-card.on { border-color: var(--urgent-line); background: var(--band-bg); }
.maint-state { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.maint-row { display: flex; flex-direction: column; gap: 6px; }
.maint-btn { height: 48px; font-size: 15px; }
.maint-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--danger); margin-left: 6px; vertical-align: 2px; }
.modal-text { white-space: pre-line; }
.scope-grid .btn { white-space: normal; height: auto; min-height: 48px; padding: 8px 10px; line-height: 1.35; }
.lang-tag.scope-tag { border-style: dashed; font-weight: 500; letter-spacing: 0; }

/* 管理画面：部屋の言語（いくつでも選べる） */
.room-langs .pills { flex-wrap: wrap; gap: 6px; }
.room-langs .room-lang-all { margin-bottom: 6px; }
/* 管理画面のひろば：部屋を名前の1行にたたむ */
.room-body { display: flex; flex-direction: column; gap: 6px; }
.room-edit.folded .room-body { display: none; }
.room-fold { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: 15px; color: var(--text); }
.room-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.room-fold-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-chev { flex: none; font-size: 12px; color: var(--text-2); transition: transform .15s; }
.room-edit:not(.folded) .room-chev { transform: rotate(90deg); }
.room-edit-head .lang-tag, .room-edit-head .badge { flex: none; }
