:root{
  --bg:#fbf7f0; --ink:#2b2b2b; --muted:#6f6a61;
  --accent:#2a9d8f; --accent-d:#218075; --line:#e7e0d4;
  --warn:#b5651d; --card:#fffdf8;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.5;
  padding:18px;
}
.wrap{max-width:640px; margin:0 auto}
.hidden{display:none !important}
.center{text-align:center}

.card{
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:22px; box-shadow:0 6px 22px rgba(120,100,60,.07); margin-bottom:16px;
}
.owl{font-size:54px; line-height:1}
.owl-sm{font-size:26px}
h1{font-size:1.9rem; margin:.2em 0 .1em; letter-spacing:-.5px}
.sub{color:var(--muted); margin:.2em auto 1.1em; max-width:34ch}
.label{font-size:.74rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:0 0 6px}

input[type=text], textarea{
  width:100%; font:inherit; padding:13px 14px; border:1px solid var(--line);
  border-radius:12px; background:#fff; color:var(--ink); resize:vertical;
}
input[type=text]{margin-bottom:12px}
textarea:focus, input:focus{outline:2px solid var(--accent); border-color:transparent}

button{font:inherit; cursor:pointer; border:none; border-radius:12px; padding:12px 18px}
.primary{background:var(--accent); color:#fff; font-weight:600}
.primary:hover{background:var(--accent-d)}
.ghost{background:#fff; border:1px solid var(--line); color:var(--ink)}
.ghost.rec{background:#fdecec; border-color:#e5b4b4; color:#9b2c2c}
.row{display:flex; gap:10px; margin-top:12px}
.row .primary{flex:1}

blockquote{
  margin:0 0 12px; padding:14px 16px; background:#f4efe4; border-left:4px solid var(--accent);
  border-radius:8px; font-size:1.18rem; font-family:Georgia,'Times New Roman',serif;
}
.prompt{font-weight:600; margin:.2em 0 1em}
.frame{background:#fff7e8; border:1px dashed #e3c98c; padding:10px 12px; border-radius:10px; color:#7a5d1f}
.hint{background:#eef7f5; border:1px dashed #bcd7d1; padding:10px 12px; border-radius:10px; color:#2f6b60; margin-top:8px}
.tabs{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px}
.tab{flex:1 1 auto; min-width:84px; background:#fff; border:1px solid var(--line); color:var(--ink); border-radius:10px; padding:9px 6px; font-weight:600; font-size:.92rem; cursor:pointer}
.tab:hover{border-color:var(--accent); color:var(--accent-d)}
.tab.active{background:var(--accent); color:#fff; border-color:var(--accent)}

.topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; padding:0 4px}
.pill{background:var(--accent); color:#fff; border-radius:999px; padding:3px 12px; font-size:.85rem; font-weight:600}

.options{display:flex; flex-wrap:wrap; gap:10px}
.options button{background:#fff; border:1px solid var(--line); color:var(--ink); flex:1 1 40%}
.options button:hover{border-color:var(--accent); color:var(--accent-d)}

.reply{display:flex; gap:12px; align-items:flex-start; background:#eef7f5;
  border:1px solid #cfe8e3; border-radius:16px; padding:16px; margin-bottom:14px}
.bubble{flex:1}
.affirm{margin:.1em 0; font-weight:600}
.followup{margin:.4em 0 0}
.flags{margin:.5em 0 0; color:var(--warn); font-size:.92rem}

.grad{background:#eef7f5; border:1px solid #cfe8e3; border-radius:14px; padding:16px; text-align:center; font-weight:600}
.err{color:#9b2c2c; min-height:1.2em; margin:.4em 0 0}
.foot{margin:1em 0 0; font-size:.9rem}
.foot a{color:var(--muted)}

/* dashboard */
.muted{color:var(--muted); font-size:.9rem; margin:.3em 0 .2em}
.srow{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.badge{background:#eef7f5; border:1px solid #cfe8e3; color:var(--accent-d); border-radius:999px; padding:2px 10px; font-size:.8rem}
details summary{cursor:pointer; color:var(--accent-d); font-weight:600; margin-top:6px}
.att{border-top:1px solid var(--line); padding:10px 0}
.att .ex{font-family:Georgia,'Times New Roman',serif; color:#4a463e}
.att .resp{margin:.3em 0; color:var(--ink)}
.att .sc{font-size:.85rem; color:var(--muted)}
