/* Shared stylesheet for every page behind the front page: signup, login, checklist, appointment types, home.
   Restyled 2026-09-14 to match the landing page (static/landing.css): teal on paper white, Newsreader for
   headings, IBM Plex Sans for text, IBM Plex Mono for small labels. Class names unchanged. */
:root {
  --page: #f6f8f8; --ink: #0f1f1c; --ink-2: #3f4f4b; --muted: #66746f; --faint: #7f8c88;
  --line: #dbe3e1; --line-2: #e1e8e6; --line-3: #cfd9d6; --side: #eef3f2; --tint: #edf2f1;
  --accent: #0f766e; --accent-dark: #0c3d38; --accent-soft: #eef6f4; --accent-line: #cfe5e0; --accent-ink: #123b37;
  --green: #15803d; --amber: #b45309;
  --shadow: 0 1px 2px rgba(15,31,28,0.04), 0 12px 32px rgba(15,31,28,0.07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 'IBM Plex Sans', 'Segoe UI', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0b5f59; }
h1, h2, h3 { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 30px; line-height: 36px; }
.mono, .stepper, .nav .group, .visual h3, .table th { font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.mono { color: var(--accent); }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line-2); background: rgba(246,248,248,0.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { font-weight: 600; font-size: 16px; }
.brand .sep { width: 1px; height: 16px; background: var(--line-3); }
.brand span { color: var(--muted); }
.brand .wordmark { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); position: relative; top: 0.1em; }
.brand .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .wordmark i { font-style: normal; color: var(--accent); }
.progress { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.progress a { text-decoration: none; font-weight: 500; }
.bar { width: 120px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar div { height: 6px; background: var(--accent); }
.body { display: flex; flex: 1; }

/* sidebar (checklist steps + home sections) */
.side { width: 280px; flex-shrink: 0; padding: 20px 12px; background: var(--side); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; color: inherit; }
a.step:hover { background: #fff; }
.step.selected { background: #fff; border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.step.active, .step.waiting { background: #fff; border-color: var(--line); }
.step .name { font-weight: 500; color: var(--faint); line-height: 20px; }
.step.active .name, .step.waiting .name { font-weight: 600; color: var(--ink); }
.step.done .name { color: var(--muted); }
.step .note { font-size: 12px; color: var(--faint); margin-top: 2px; }
.mark { width: 18px; height: 18px; border-radius: 999px; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.mark.todo { border: 1.5px solid var(--line-3); }
.mark.done { background: var(--green); color: #fff; }
.mark.active { border: 2px solid var(--accent); }
.mark.waiting { border: 2px solid var(--amber); }
.mark.active i, .mark.waiting i { width: 6px; height: 6px; border-radius: 999px; display: block; }
.mark.active i { background: var(--accent); }
.mark.waiting i { background: var(--amber); }

/* main column */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding: 40px 48px; }
.lead { color: var(--ink-2); max-width: 600px; font-size: 16px; line-height: 26px; margin: 8px 0 0; }
.cols { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.detail { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 18px; }
.kv { border-top: 1px solid var(--line); max-width: 560px; }
.kv div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv div > span:first-child { width: 160px; flex-shrink: 0; color: var(--muted); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #0b5f59; color: #fff; }
.btn:disabled, .btn:disabled:hover { background: var(--line-3); color: #fff; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-3); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.visual { width: 320px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.visual h3 { margin: 0 0 4px; color: var(--accent); }
.node { padding: 12px 14px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); }
.node.strong { background: var(--accent-soft); border-color: var(--accent-line); }
.node b { display: block; font-size: 14px; font-weight: 600; }
.node small { font-size: 12px; color: var(--muted); }
.link { display: flex; align-items: center; gap: 8px; padding-left: 14px; font-size: 12px; color: var(--muted); }
.link i { width: 2px; height: 18px; background: var(--line-3); display: block; }
.link.amber { color: var(--amber); } .link.amber i { background: var(--amber); }
.link.green { color: var(--green); } .link.green i { background: var(--green); }
.row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.row span:first-child { flex: 1; }
.row .min { font-size: 12px; color: var(--muted); }
.numberbox { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; max-width: 560px; }
.numberbox .n { font-family: 'Newsreader', Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; color: var(--accent-ink); }
.numberbox small { color: var(--muted); font-size: 12px; display: block; }
select { height: 44px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); width: 260px; }
ol { margin: 0; padding-left: 20px; max-width: 560px; } ol li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .body { flex-direction: column; } .side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .main { padding: 24px 20px; } .visual { width: 100%; } .top { padding: 0 16px; } .progress .bar { display: none; }
  h1 { font-size: 26px; line-height: 32px; }
}

/* forms (appointment types) */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--side); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.c, .table td.c { text-align: center; }
input[type=text], input[type=number] { height: 40px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; font: inherit; color: var(--ink); width: 100%; background: #fff; }
input[type=number] { width: 88px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
input:disabled { background: var(--side); color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.remove { background: none; border: 0; color: var(--faint); cursor: pointer; font: inherit; padding: 4px 8px; }
.remove:hover { color: var(--ink); }
.dialog { border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 440px; width: calc(100% - 32px); background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.dialog::backdrop { background: rgba(15, 23, 23, .35); }
.dialog h2 { margin: 0 0 8px; font-size: 20px; }
.dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.btn.danger { background: #b42318; border-color: #b42318; }
.btn.danger:hover { background: #912018; }
.error { padding: 12px 14px; border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 10px; max-width: 720px; }
.readonly { color: var(--muted); font-weight: 400; }

/* auth pages (signup, login) */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 2px; }
.auth { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 56px 48px; width: 100%; max-width: 560px; margin: 0 auto; }
.auth h1 { font-size: 34px; line-height: 40px; }
.auth .form, .auth .kv, .form.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.form.card { flex: 1 1 480px; max-width: 560px; }
.auth .kv { max-width: none; border-top: 1px solid var(--line); }
.auth .kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.auth .kv div:first-child { padding-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .help { font-size: 12px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select { height: 44px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; font: inherit; color: var(--ink); width: 100%; background: #fff; }
.field textarea { padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 8px; font: inherit; line-height: 1.5; color: var(--ink); width: 100%; background: #fff; resize: vertical; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .btn { height: 44px; justify-content: center; margin-top: 4px; }
.notice { padding: 12px 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 10px; color: var(--accent-ink); }
.stepper { color: var(--accent); }
.stepper b { color: var(--accent); font-weight: 500; }
.stepper a { text-decoration: none; }
.two { display: flex; gap: 12px; } .two .field { flex: 1; }
@media (max-width: 800px) { .auth { padding: 32px 20px; } .auth .form, .auth .kv { padding: 20px; } .two { flex-direction: column; } .auth h1 { font-size: 28px; line-height: 34px; } }

/* home page (live practice) */
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { background: #fff; color: var(--ink); }
.nav a.selected { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.nav .group { color: var(--faint); padding: 16px 12px 6px; }
.tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.tile { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.tile .n { font-family: 'Newsreader', Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 34px; }
.tile .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list { border-top: 1px solid var(--line); }
.list a.item { display: grid; grid-template-columns: 150px 130px 90px 110px 1fr; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list a.item:hover { background: #fff; }
.list .sum { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.sendto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sendto label { font-size: 13px; font-weight: 500; }
.sendto input { height: 44px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; font: inherit; color: var(--ink); width: 300px; max-width: 100%; background: #fff; }
.msgs { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.msg .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg .head .when { margin-left: auto; color: var(--muted); font-size: 13px; }
.msg p { margin: 10px 0 14px; line-height: 1.55; white-space: pre-wrap; }
.msg.done { background: transparent; color: var(--muted); }
.nav a.sub { padding: 7px 12px 7px 28px; font-size: 13px; }
.nav a.current { color: var(--ink); }
.topics { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.topic { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line-3); border-radius: 4px; padding: 14px 18px; }
.topic.unset { background: transparent; border-style: dashed; }
.topic.chosen { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.topic audio { height: 36px; width: 240px; max-width: 100%; flex-shrink: 0; }
.topic .btn.secondary { height: 36px; padding: 0 14px; font-weight: 500; }
.topic.editing { align-items: flex-start; border-color: var(--accent); }
.topic > b { width: 130px; flex-shrink: 0; font-weight: 500; }
.topic .value { flex: 1; min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.topic .value.none { color: var(--muted); font-size: 13px; }
.topic > a { font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; min-width: 76px; text-align: right; }
.topic .field { flex: 1; min-width: 0; }
.topic .field input[type=text], .topic .field textarea { border-radius: 4px; }
@media (max-width: 800px) { .topic { flex-wrap: wrap; } .topic > b { width: 100%; } .topic .value { flex-basis: 100%; } }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.pill.ok { color: var(--green); border-color: #bbf7d0; background: #f0fdf4; }
.pill.warn { color: var(--amber); border-color: #fde68a; background: #fffbeb; }
.pill.muted { color: var(--muted); }
.empty { padding: 28px; border: 1px dashed var(--line-3); border-radius: 12px; color: var(--muted); max-width: 560px; background: #fff; }
.transcript { display: flex; flex-direction: column; gap: 0; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px; }
.turn { display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.turn:last-child { border-bottom: 0; }
.turn .who { font-weight: 500; color: var(--muted); font-size: 13px; }
.turn.agent .who { color: var(--accent); }
.turn .at { font-size: 12px; color: var(--faint); text-align: right; }
.banner { padding: 12px 14px; border: 1px solid #fde68a; background: #fffbeb; color: var(--amber); border-radius: 10px; max-width: 720px; }
@media (max-width: 800px) { .list a.item { grid-template-columns: 1fr 1fr; } .list .sum { display: none; } .turn { grid-template-columns: 90px 1fr; } .turn .at { display: none; } }
