/* HELP BOARD 公開版スタイル（モックの確定デザインに合わせたもの）
   テーマ: 白基調、テキスト #16303f、境界 #d6e8f3、面の淡色 #f2f9fd
   アクセント水色 #0284c7 / 濃水色 #075985 / 淡水色 #e0f2fe
   アラート桃色 #db2777 / 濃桃色 #9d174d / 淡桃色 #fce7f3
   ヘッダー: サロンボード風の青グラデーションバー（白文字・下端に濃紺ライン）
   タブ: 青グラデーションの角丸ボタンに白太字 */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f9fd;
  --text: #16303f;
  --dim: #5f7a89;
  --border: #d6e8f3;
  --accent: #0284c7;
  --accent-strong: #075985;
  --accent-soft: #e0f2fe;
  --alert: #db2777;
  --alert-strong: #9d174d;
  --alert-soft: #fce7f3;
  --radius: 12px;
  --bubble-border: #5baddd;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

.error { color: var(--alert); font-weight: 600; font-size: 14px; margin: 12px 0 0; }
.note { color: var(--dim); font-size: 14px; }

/* ---------- 共通ボタン ---------- */
.cta-btn {
  display: block; width: 100%; border: none; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(22, 48, 63, .12);
}
.cta-btn:disabled { opacity: .6; cursor: default; }
.chip-btn {
  background: var(--surface-alt); color: var(--text); border: none;
  box-shadow: inset 0 0 0 1px var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
}

/* ---------- ログイン / パスワード設定 ---------- */
.auth-view { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.auth-main {
  margin: auto; width: 100%; max-width: 384px; padding: 40px 20px;
  display: flex; flex-direction: column; justify-content: center; flex: 1;
}
.brand-card {
  background: var(--surface-alt); border-radius: 24px; text-align: center;
  padding: 28px 24px; box-shadow: inset 0 0 0 1px var(--border);
}
.brand-mascot { height: 112px; width: auto; }
.brand-logo { margin: 12px 0 0; font-size: 30px; line-height: 36px; font-weight: 900; letter-spacing: -0.01em; }
.brand-tagline { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--dim); }
.auth-card {
  margin-top: 20px; background: var(--surface); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.auth-card-title { margin: 0; font-size: 18px; line-height: 28px; font-weight: 800; }
.auth-card-desc { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--dim); }
.auth-card .field { margin-top: 16px; }
.auth-card .field:first-child { margin-top: 0; }
.auth-card-title + .field { margin-top: 16px; }
.field label { display: block; font-size: 14px; line-height: 20px; font-weight: 700; }
.field input {
  margin-top: 6px; width: 100%; border: none; border-radius: 8px;
  background: var(--surface-alt); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 12px 14px; font-size: 16px; line-height: 24px;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--accent);
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
}
.auth-card .cta-btn { margin-top: 20px; }
.forgot-toggle {
  display: block; width: 100%; margin-top: 12px; padding: 4px 0;
  border: none; background: transparent; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.forgot-note {
  margin: 4px 0 0; background: var(--surface-alt); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; line-height: 1.7; color: var(--dim);
}
.auth-notice {
  margin: 20px 0 0; text-align: center;
  font-size: 12px; line-height: 1.7; color: var(--dim);
}

/* ---------- パスコード（PINロック） ---------- */
.passcode-view { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.passcode-main {
  margin: auto; width: 100%; max-width: 384px; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1;
}
.passcode-mascot { height: 72px; width: auto; }
.passcode-title { margin: 20px 0 0; font-size: 20px; line-height: 28px; font-weight: 800; text-align: center; }
.passcode-dots { display: flex; gap: 16px; margin-top: 28px; }
.passcode-dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: transparent;
  transition: background .1s ease;
}
.passcode-dot.filled { background: var(--accent); }
.passcode-dots.shake { animation: pc-shake .45s ease; }
@keyframes pc-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-12px); }
  30% { transform: translateX(10px); }
  45% { transform: translateX(-8px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}
.passcode-error {
  margin: 16px 0 0; min-height: 21px; text-align: center;
  color: var(--alert); font-size: 14px; font-weight: 600;
}
.passcode-pad {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, 76px);
  gap: 14px 18px; justify-content: center;
}
.passcode-pad.disabled { opacity: .45; pointer-events: none; }
.passcode-key {
  width: 76px; height: 76px; border-radius: 50%; border: none;
  background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text); font-size: 30px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.passcode-key:active { background: var(--accent-soft); }
.passcode-key.empty { background: transparent; box-shadow: none; }
.passcode-key.del { background: transparent; box-shadow: none; font-size: 24px; color: var(--dim); }
.passcode-link {
  margin-top: 28px; border: none; background: transparent; padding: 6px 8px;
  color: var(--accent); font-size: 14px; font-weight: 600; text-align: center;
}

/* ---------- アプリロック設定（行リスト） ---------- */
.setting-card .field { margin-top: 12px; }
.lock-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--accent-strong); font-weight: 600; }
.lock-msg.is-error { color: var(--alert); }
.setting-card.lock-rows { padding: 4px 16px; }
.lock-row {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 2px; border: none; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--text); text-align: left;
}
.lock-row.divided { border-top: 1px solid var(--border); }
.lock-row.danger { color: var(--alert-strong); }
.lock-row-arrow { color: var(--dim); font-size: 18px; line-height: 1; }
.lock-after-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.segmented {
  display: flex; background: var(--surface-alt); border-radius: 999px; padding: 3px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.segmented button {
  border: none; background: transparent; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--dim);
}
.segmented button.active { background: var(--accent); color: #fff; }

/* ---------- 初回案内 ---------- */
.onboarding-main { max-width: 672px; margin: 0 auto; padding: 16px 16px 40px; }
.onboarding-head { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
.onboarding-mascot { height: 64px; width: auto; flex-shrink: 0; }
.onboarding-head h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 900; letter-spacing: -0.01em; }
.onboarding-head p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--dim); }
.step-card {
  margin-top: 20px; background: var(--surface); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.step-card h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 700; }
.step-pill {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 900; white-space: nowrap;
}
.step-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; }
.step-card .step-os { margin-top: 12px; font-weight: 700; }
.step-card ol { margin: 4px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.step-card ol li { margin-top: 6px; }
.step-card ol li:first-child { margin-top: 0; }
.push-box {
  margin-top: 12px; background: var(--surface-alt); border-radius: 8px;
  padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--border);
}
.push-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.push-label input[type="checkbox"] {
  margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent);
}
.push-title { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.push-desc { display: block; margin-top: 2px; font-size: 12px; line-height: 1.7; color: var(--dim); }
.step-card .lock-done-note { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-strong); }
.onboarding-main .cta-btn { margin-top: 24px; }
.onboarding-foot { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.7; color: var(--dim); }

/* ---------- ヘッダー・タブ ---------- */
.app-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, #b7c6ea 0%, #93aadb 55%, #7e97cc 100%);
  box-shadow: inset 0 -3px 0 0 #2c4a86;
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  max-width: 672px; margin: 0 auto; padding: 12px 16px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-mascot { height: 36px; width: auto; flex-shrink: 0; }
.header-titles { margin: 0; line-height: 1; }
.header-logo {
  display: block; font-size: 18px; font-weight: 900; letter-spacing: .02em;
  white-space: nowrap; color: #fff; text-shadow: 0 1px 2px rgba(31, 52, 99, .45);
}
.header-org {
  display: block; margin-top: 4px; font-size: 11px; font-weight: 700;
  white-space: nowrap; color: rgba(255, 255, 255, .9);
}
.header-right { display: flex; align-items: center; gap: 8px; }
.header-greeting { display: none; align-items: center; gap: 8px; }
@media (min-width: 640px) { .header-greeting { display: flex; } }
.greeting-stamp { height: 30px; width: auto; }
.header-greeting p {
  margin: 0; font-size: 12px; font-weight: 600; white-space: nowrap; color: rgba(255, 255, 255, .95);
}
.role-badge {
  background: rgba(255, 255, 255, .2); color: #fff; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  padding: 4px 8px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.logout-btn {
  border: none; background: #fff; color: #33507e; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(22, 48, 63, .15);
}
.tabs {
  max-width: 672px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: flex-end; gap: 4px;
}
.tab {
  flex: 1; border: none; border-radius: 10px 10px 0 0; padding: 8px 4px;
  background: linear-gradient(180deg, #6d92d8 0%, #466cb2 60%, #3a5fa3 100%);
  color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(31, 52, 99, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(44, 74, 134, .6);
  opacity: .85;
}
.tab.active {
  background: linear-gradient(180deg, #8fb0ec 0%, #5b83d6 60%, #4a74c4 100%);
  opacity: 1;
}

.tab-page { max-width: 672px; margin: 0 auto; padding: 8px 16px 40px; }

/* ---------- 吹き出し ---------- */
.bubble-row { display: flex; gap: 0; align-items: flex-start; }
.bubble-mascot { height: 56px; width: auto; flex-shrink: 0; }
.speech-bubble {
  position: relative; margin-left: 8px; min-width: 0; flex: 1;
  border: 2px solid var(--bubble-border); border-radius: var(--radius);
  padding: 8px 12px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 48, 63, .08);
  font-size: 14px; line-height: 1.7;
}
.speech-bubble::before {
  content: ""; position: absolute; left: -8px; top: 13px;
  width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--surface);
  border-bottom: 2px solid var(--bubble-border); border-left: 2px solid var(--bubble-border);
}
.speech-bubble p { margin: 0; }

/* ---------- ボード ---------- */
.refresh-btn {
  border: none; border-radius: 999px; background: var(--accent); color: #fff;
  padding: 8px 16px; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(22, 48, 63, .12), inset 0 0 0 1px var(--accent);
}
.refresh-btn:disabled {
  background: var(--surface-alt); color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--border); cursor: default;
}
.refresh-updated { margin: 4px 0 0; font-size: 11px; line-height: 1.4; color: var(--dim); }
.refresh-status { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--dim); }
.refresh-status.pending { color: var(--accent); font-weight: 600; }

.day-section { margin-top: 24px; }
.day-section:first-child { margin-top: 16px; }
.day-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 2px 12px;
}
.day-date { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.day-head-right { display: flex; align-items: baseline; gap: 8px; }
.day-updated { font-size: 12px; white-space: nowrap; color: var(--dim); }
.day-count { font-size: 14px; font-weight: 600; color: var(--alert-strong); }
.day-summary { margin-top: 8px; display: flex; align-items: flex-start; }
.day-summary .stamp { height: 56px; width: auto; flex-shrink: 0; }
.zero-label {
  margin: 8px 0 0; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; color: var(--dim);
}
.candidates-card {
  margin-top: 4px; background: var(--surface); border-radius: var(--radius);
  padding: 0 16px; box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.candidate { border-bottom: 1px solid var(--border); padding: 12px 0; }
.candidate:last-child { border-bottom: none; }
.candidate.handled { opacity: .6; }
.cand-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cand-store { font-size: 16px; font-weight: 700; }
.cand-time { font-size: 16px; font-weight: 600; color: var(--alert-strong); }
.candidate.handled .cand-time { color: var(--dim); }
.zero-badge {
  background: var(--alert-soft); color: var(--alert); border-radius: 4px;
  padding: 2px 6px; font-size: 12px; font-weight: 700;
}
.handled-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-alt); color: var(--dim); border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 2px 6px; font-size: 12px; font-weight: 700;
}
.handled-badge img { height: 24px; width: auto; }
.handled-btn {
  margin-left: auto; border: none; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  background: var(--alert-soft); color: var(--alert);
  box-shadow: inset 0 0 0 1px var(--alert);
}
.handled-btn.is-handled {
  background: var(--surface-alt); color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--border);
}
.handled-btn:disabled { opacity: .5; }
.helpers-line { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.helpers-label { font-size: 12px; color: var(--dim); }
.helper-chip {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--accent-soft); border-radius: 999px; padding: 4px 10px;
  font-size: 14px; line-height: 20px;
}
.helper-chip .h-name { font-weight: 600; }
.helper-chip .h-count { font-weight: 700; color: var(--accent); }
.helper-chip .h-sub { font-size: 12px; color: var(--dim); }
.empty-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.empty-row .stamp { height: 56px; width: auto; flex-shrink: 0; }
.empty-row p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--dim); }
.empty-row p.calm-text { font-size: 16px; color: var(--text); }
.no-helper {
  border-top: 1px dashed var(--border); padding: 12px 0;
  font-size: 12px; line-height: 1.7; color: var(--dim);
}
.no-helper p { margin: 0; }

/* ---------- 全店枠 ---------- */
.date-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.date-pill {
  border: none; border-radius: 999px; padding: 8px 14px;
  font-size: 14px; font-weight: 700;
  background: var(--surface); color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--border);
}
.date-pill.active { background: var(--accent); color: #fff; box-shadow: none; }
.slots-updated { margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--dim); }
.slots-desc { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: var(--dim); }
.slots-legend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--dim); }
.slots-legend .legend-item { display: inline-flex; align-items: center; gap: 4px; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.sw-zero { background: var(--alert-soft); box-shadow: inset 0 0 0 1px var(--alert); }
.sw-one { background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); }
.sw-roomy { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.sw-null { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.slots-empty {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--radius); padding: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.slots-empty .stamp { height: 64px; width: auto; flex-shrink: 0; }
.slots-empty p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--dim); }
.slots-stores { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.slots-store {
  background: var(--surface); border-radius: var(--radius); padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.slots-store-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; }
.slots-store-name { font-size: 16px; font-weight: 700; }
.slots-store-meta { margin-left: auto; font-size: 12px; color: var(--dim); }
.slots-store-updated { margin: 2px 0 0; font-size: 11px; color: var(--dim); }
.slots-grid {
  margin-top: 12px; display: grid; gap: 6px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 420px) { .slots-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .slots-grid { grid-template-columns: repeat(7, 1fr); } }
.slot-cell {
  border-radius: 8px; padding: 6px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--border);
  background: var(--surface-alt); color: var(--text);
}
.slot-cell .slot-time { display: block; font-size: 11px; line-height: 1.3; opacity: .8; }
.slot-cell .slot-value { display: block; font-size: 14px; line-height: 1.3; font-weight: 700; }
.slot-cell.zero { background: var(--alert-soft); color: var(--alert-strong); box-shadow: inset 0 0 0 1px var(--alert); }
.slot-cell.roomy { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.slot-cell.null {
  background: var(--surface); color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--border);
  outline: 1px dashed var(--border); outline-offset: -3px;
}

/* ---------- 設定 ---------- */
.settings-section { margin-top: 32px; }
.settings-section:first-child { margin-top: 16px; }
.settings-section h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.section-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--dim); }
.setting-card {
  margin-top: 12px; background: var(--surface); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--border);
}
.setting-rows { display: flex; flex-direction: column; }
.setting-rows .setting-card { margin-top: 8px; }
.setting-rows .setting-card:first-child { margin-top: 12px; }
.settings-section .setting-card.info-card { margin-top: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-label { font-size: 14px; font-weight: 600; }
.setting-control { display: flex; align-items: center; gap: 4px; }
.setting-control input {
  width: 64px; border: none; border-radius: 8px; text-align: center;
  background: var(--surface-alt); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 8px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.setting-control input[type="text"] { width: 88px; }
.setting-unit { font-size: 14px; color: var(--dim); }
.travel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--border);
}
.travel-row .travel-name { font-size: 14px; font-weight: 600; }
.lock-note {
  margin: 32px 0 0; background: var(--surface-alt); border-radius: var(--radius);
  padding: 12px 16px; font-size: 12px; line-height: 1.7; color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--border);
}
.locked { opacity: .5; pointer-events: none; user-select: none; }
#settings-exec-wrap .cta-btn { margin-top: 24px; }

/* ---------- 基本情報 ---------- */
.info-section {
  margin-top: 16px; background: var(--surface); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.info-section h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.info-body { margin-top: 8px; font-size: 14px; line-height: 1.7; }
.info-body p { margin: 8px 0 0; }
.info-body p:first-child { margin-top: 0; }
.info-body ol, .info-body ul { margin: 8px 0 0; padding-left: 20px; }
.info-body li { margin-top: 6px; }
.info-body li:first-child { margin-top: 0; }
.info-body .info-os { font-weight: 700; }

/* ---------- 管理 ---------- */
.admin-intro { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--dim); }
.reports-link-card {
  margin-top: 12px; width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; text-align: left;
  background: var(--surface); border: none; border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
  color: var(--text);
}
.reports-link-title { display: block; font-size: 14px; font-weight: 700; }
.reports-link-desc { display: block; margin-top: 2px; font-size: 12px; line-height: 1.7; color: var(--dim); }
.reports-link-arrow { flex-shrink: 0; font-size: 18px; font-weight: 700; color: var(--accent); }
#tab-admin .bubble-row { margin-top: 12px; }
.admin-section { margin-top: 32px; }
.admin-section h2 { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 700; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  border: none; border-radius: 999px; padding: 8px 14px;
  font-size: 14px; font-weight: 700;
  background: var(--surface); color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--border);
}
.filter-chip.active { background: var(--accent); color: #fff; box-shadow: none; }
#admin-accounts { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.account-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.account-card.stopped { opacity: .6; }
.acc-top { display: flex; align-items: flex-start; gap: 12px; }
.acc-avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.acc-main { min-width: 0; flex: 1; }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acc-name { font-size: 16px; font-weight: 700; }
.badge { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.badge.role-exec { background: var(--accent-strong); color: #fff; }
.badge.role-md { background: var(--accent-soft); color: var(--accent-strong); }
.badge.st-active { background: var(--accent-soft); color: var(--accent-strong); }
.badge.st-unissued { background: var(--surface-alt); color: var(--dim); box-shadow: inset 0 0 0 1px var(--border); }
.badge.st-stopped { background: var(--alert-soft); color: var(--alert-strong); }
.acc-email { margin: 4px 0 0; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-meta { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: var(--dim); }
.logins-card {
  background: var(--surface); border-radius: var(--radius); padding: 4px 16px;
  box-shadow: 0 1px 2px rgba(22, 48, 63, .08), inset 0 0 0 1px var(--border);
}
.login-event {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 0;
  border-top: 1px solid var(--border);
}
.login-event:first-child { border-top: none; }
.login-event .le-time { flex-shrink: 0; font-size: 14px; font-weight: 600; }
.login-event .le-name { min-width: 0; flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logins-empty { padding: 8px 0; font-size: 14px; color: var(--dim); }
.back-btn {
  border: none; border-radius: 999px; background: var(--surface); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 8px 16px; font-size: 14px; font-weight: 700;
}
.reports-title { margin-top: 16px !important; font-size: 18px !important; }
.report-row {
  margin-top: 12px; background: var(--surface); border-radius: var(--radius);
  padding: 16px; box-shadow: inset 0 0 0 1px var(--border);
}
.report-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.report-row-title { font-size: 14px; font-weight: 700; }
.report-row-title .report-count { margin-left: 8px; font-weight: 600; color: var(--alert-strong); }
.report-row-time { font-size: 12px; color: var(--dim); }
.report-body {
  margin-top: 12px; white-space: pre-wrap; overflow-x: auto;
  background: var(--surface-alt); border-radius: 8px; padding: 12px;
  font-family: inherit; font-size: 14px; line-height: 1.7;
}
