/* 講講樂 — grown-up corner */

.adult-page { width: min(100% - clamp(20px, 5vw, 56px), 900px); margin-inline: auto; padding-block: var(--s-5) var(--s-8); }

.adult-head { margin-bottom: var(--s-5); }
.adult-head h1 { font-size: var(--fs-h1); font-weight: 900; letter-spacing: .03em; }
.adult-head p { color: var(--ink-soft); font-size: var(--fs-small); margin-top: 6px; max-width: 62ch; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--cream-deep);
  overflow-x: auto;
  margin-bottom: var(--s-5);
}
.tab {
  flex: 1 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.panel { display: grid; gap: var(--s-4); }

.card-block {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-block h2 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 4px; }
.card-block .hint { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--s-4); }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 14px 0;
  border-bottom: 1px solid rgba(35, 33, 30, .07);
}
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row .label b { display: block; font-size: .98rem; }
.setting-row .label small { display: block; color: var(--ink-faint); font-size: var(--fs-tiny); line-height: 1.5; }

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--cream-deep);
  flex: 0 0 auto;
}
.seg button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-tiny);
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }

.switch {
  position: relative;
  width: 72px; height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(35, 33, 30, .18);
  cursor: pointer;
  transition: background var(--base) var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  transition: transform var(--base) var(--ease);
}
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"]::after { transform: translateX(28px); }

input[type="range"] {
  width: 170px;
  accent-color: var(--teal);
}

/* voice pack */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.voice-item {
  padding: 10px;
  border: 1.5px solid rgba(35, 33, 30, .10);
  border-radius: var(--r-md);
  background: var(--cream);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}
.voice-item.has-rec { border-color: var(--teal); background: var(--teal-soft); }
.voice-item .v-art { width: 54px; height: 54px; }
.voice-item .v-art svg { width: 100%; height: 100%; }
.voice-item b { font-size: 1.05rem; }
.voice-item small { font-size: .7rem; color: var(--ink-faint); }
.voice-item .v-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

.mini-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.mini-btn:hover { background: var(--teal-soft); }
.mini-btn.danger:hover { background: var(--coral-soft); color: #9A3324; }

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: .66rem;
  font-weight: 800;
  background: rgba(35, 33, 30, .08);
  color: var(--ink-soft);
}
.status-tag.ok { background: var(--correct-soft); color: var(--correct); }

/* log */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: var(--s-4);
}
.stat {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--cream);
  text-align: center;
}
.stat b { display: block; font-size: 1.6rem; line-height: 1.2; }
.stat span { font-size: var(--fs-tiny); color: var(--ink-soft); }

.log-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.log-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
  border-bottom: 1px solid rgba(35, 33, 30, .1);
}
.log-table td { padding: 8px 10px; border-bottom: 1px solid rgba(35, 33, 30, .06); color: var(--ink-soft); }
.log-table tr:last-child td { border-bottom: 0; }

.empty {
  padding: var(--s-6) var(--s-4);
  text-align: center;
  color: var(--ink-faint);
  font-size: var(--fs-small);
}

.disclaimer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--sun-soft);
  color: #6B4E0E;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.disclaimer svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }

/* guide */
.guide { display: grid; gap: var(--s-4); }
.guide h2 { font-size: var(--fs-h2); font-weight: 800; margin-top: var(--s-3); }
.guide h3 { font-size: var(--fs-h3); font-weight: 800; margin-top: var(--s-3); }
.guide p, .guide li { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.75; }
.guide ul, .guide ol { margin: 0; padding-left: 1.3em; }
.guide li { margin-bottom: 4px; }

.steps { counter-reset: step; display: grid; gap: 10px; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 54px;
  border-radius: var(--r-md);
  background: var(--cream);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
  display: grid;
  place-items: center;
}

.flag-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.flag-list li {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--coral-soft);
  color: #7A2E22;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.flag-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; }

.privacy-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.privacy-box svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; }

.danger-zone {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed rgba(35, 33, 30, .18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* consent */
.consent-checks { display: grid; gap: 10px; margin: var(--s-4) 0; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--cream);
  font-size: var(--fs-small);
  line-height: 1.55;
  cursor: pointer;
}
.check-row input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); flex: 0 0 auto; }

@media (max-width: 640px) {
  .setting-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { border-radius: var(--r-md); }
  .tab { flex: 0 0 auto; }
  input[type="range"] { width: 100%; }
}
