/* Dingmate app: same palette and type as the website, built for phones first. */
:root{
  --ink:#2a1730; --ink-soft:#6b5873; --ground:#f6f2f7; --surface:#ffffff; --line:#e4dbe8;
  --rose:#d8345f; --rose-ink:#ffffff; --rose-soft:#fbe3ea; --mint:#14806a; --mint-soft:#e1f3ee;
  --warn:#9a4a00; --warn-soft:#fdf0dc; --error:#b4233f;
  --display:"Gloock","Iowan Old Style",Georgia,serif;
  --body:"Figtree","Segoe UI",system-ui,-apple-system,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{ --ink:#f4ebf6; --ink-soft:#bba9c2; --ground:#150c18; --surface:#21142a; --line:#3a2944;
    --rose:#ff6b8f; --rose-ink:#1b0f1f; --rose-soft:#3a1a2a; --mint:#4fd1a8; --mint-soft:#12322a;
    --warn:#ffc27a; --warn-soft:#3a2a12; --error:#ff8aa1; color-scheme:dark; }
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
html{background:var(--ground)}
body{margin:0;background:var(--ground);color:var(--ink);font:17px/1.6 var(--body);-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:3px solid var(--rose);outline-offset:2px;border-radius:6px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left));
  border-bottom:1px solid var(--line);background:var(--surface)}
.brand{display:flex;align-items:center;gap:8px;font-weight:700;text-decoration:none;white-space:nowrap}
.brand i{width:10px;height:10px;border-radius:50%;background:var(--rose);display:inline-block}
.top small{color:var(--ink-soft);font-size:.85rem;text-align:right}
@media (max-width:480px){.top small{display:none}}
main{max-width:600px;margin:0 auto;padding:24px max(16px,env(safe-area-inset-right)) 56px max(16px,env(safe-area-inset-left))}
h1,h2{font-family:var(--display);font-weight:400;line-height:1.12;margin:0}
h1{font-size:clamp(1.9rem,6vw,2.5rem);margin-bottom:10px}
h2{font-size:1.35rem;margin-bottom:6px}
p{margin:0 0 12px}
.lead{color:var(--ink-soft);font-size:1.08rem;margin-bottom:22px}
.muted{color:var(--ink-soft)}
.small{font-size:.9rem}

/* progress */
.progress{margin:0 0 22px}
.progress ol{list-style:none;display:flex;gap:6px;padding:0;margin:0 0 8px}
.progress li{flex:1;height:6px;border-radius:99px;background:var(--line)}
.progress li.done,.progress li.now{background:var(--rose)}
.progress p{margin:0;font-size:.88rem;color:var(--ink-soft);font-weight:600}

.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;margin:0 0 16px}
.card > *:last-child{margin-bottom:0}
fieldset{border:0;padding:0;margin:0}
legend{font-family:var(--display);font-size:1.3rem;padding:0;margin-bottom:4px}

.field{display:flex;flex-direction:column;gap:6px;margin:0 0 16px}
label,.label{font-weight:600}
.hint{color:var(--ink-soft);font-size:.9rem;margin-top:-2px}
input[type=text],input[type=email],input[type=tel],input[type=url],select,textarea{
  width:100%;font:inherit;font-size:17px;color:var(--ink);background:var(--ground);
  border:1.5px solid var(--line);border-radius:12px;padding:12px 14px}
textarea{min-height:120px;resize:vertical;line-height:1.5}
textarea.tall{min-height:200px}
::placeholder{color:var(--ink-soft);opacity:.55;font-style:italic}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--rose);background:var(--surface)}
.invalid input,.invalid textarea,.invalid select{border-color:var(--error)}
.err{color:var(--error);font-size:.92rem;font-weight:600}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
@media (max-width:520px){.row2{grid-template-columns:1fr}}
.choices{display:flex;flex-direction:column;gap:8px}
.choice{display:flex;gap:10px;align-items:flex-start;font-weight:500;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--ground);cursor:pointer}
.choice input{margin-top:5px;accent-color:var(--rose);width:18px;height:18px;flex:none}
.choice:has(input:checked){border-color:var(--rose);background:var(--rose-soft)}
.inline-choices{flex-direction:row;flex-wrap:wrap}
.inline-choices .choice{flex:1 1 140px}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:500}
.check input{margin-top:5px;accent-color:var(--rose);width:18px;height:18px;flex:none}
.check > span{flex:1;min-width:0;line-height:1.5}
.check a{color:var(--rose);font-weight:600}

.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  font:700 1.05rem var(--body);padding:15px 20px;border-radius:999px;border:0;cursor:pointer;
  text-decoration:none;background:var(--rose);color:var(--rose-ink)}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn-ig svg{width:22px;height:22px}
.actions{display:flex;flex-direction:column;gap:10px;margin-top:8px}

.list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.list li{display:flex;gap:12px;align-items:flex-start}
.num{flex:none;width:30px;height:30px;border-radius:50%;background:var(--rose-soft);color:var(--rose);
  font-weight:800;display:grid;place-items:center;font-size:.95rem}
.yes,.no{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.8rem;margin-top:2px}
.yes{background:var(--mint-soft);color:var(--mint)}
.no{background:var(--rose-soft);color:var(--rose)}
.note{display:flex;gap:10px;background:var(--mint-soft);border-radius:14px;padding:14px 16px;font-size:.95rem;margin:0 0 16px}
.note.warn{background:var(--warn-soft);color:var(--ink)}
.note.error{background:var(--rose-soft)}
.note b{display:block}
details{border:1px solid var(--line);border-radius:14px;padding:12px 16px;background:var(--surface);margin:0 0 16px}
summary{cursor:pointer;font-weight:700}
details ol{margin:10px 0 0;padding-left:20px}
details li{margin-bottom:6px}
.connected{display:flex;gap:12px;align-items:center;background:var(--mint-soft);border-radius:14px;padding:14px 16px;margin:0 0 18px}
.connected .tick{width:34px;height:34px;border-radius:50%;background:var(--mint);color:var(--surface);display:grid;place-items:center;font-weight:800;flex:none}
.copy{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--ground);border:1px dashed var(--line);border-radius:12px;padding:10px 12px;font-size:.9rem;word-break:break-all}
footer{max-width:600px;margin:0 auto;padding:0 16px 40px;color:var(--ink-soft);font-size:.85rem;text-align:center}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.type-card{align-items:center}
.type-card .type-icon{font-size:1.6rem;line-height:1;flex:none}

/* "Fill this in for me" */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.fill{display:flex;flex-direction:column;gap:10px;border:1.5px dashed var(--rose);background:var(--rose-soft);border-radius:18px;padding:20px;margin:0 0 16px}
.fill h2{margin:0}
.fill .hint{margin:0}
.fill input[type=url]{background:var(--surface)}
.fill .btn.secondary{background:var(--surface)}
.fill-picked{font-weight:600;font-size:.95rem}
.fill-status{margin:0;font-size:.95rem;font-weight:600}
.fill-status:empty{display:none}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--rose);text-decoration:underline;cursor:pointer}
.btn:disabled{opacity:.6;cursor:progress}
.filled textarea,.filled input{border-color:var(--mint)}
.filled-note{color:var(--mint);font-size:.88rem;font-weight:600}
.suggest{border:1.5px solid var(--mint);background:var(--mint-soft);border-radius:12px;padding:12px 14px}
.suggest .label{margin:0 0 6px;font-size:.92rem}
.suggest pre{margin:0 0 10px;white-space:pre-wrap;font:inherit;font-size:.95rem;max-height:240px;overflow:auto}
.suggest-actions{display:flex;flex-wrap:wrap;gap:8px}
.chip{font:600 .92rem var(--body);padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.chip:hover{border-color:var(--rose)}

/* test mode (team only) */
.test-banner{background:var(--warn-soft);color:var(--ink);font-size:.92rem;text-align:center;
  padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}
.test-banner a{color:var(--warn);font-weight:700}
.test-list{display:flex;flex-direction:column}
.test-head{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.test-links{display:flex;flex-wrap:wrap;gap:8px}
.test-links .chip{text-decoration:none}
.actions form{display:contents}
.other-device{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.other-device p{margin:0}

/* live field help */
.live{font-size:.9rem;font-weight:600}
.live:empty{display:none}
.live.ok{color:var(--mint)}
.live.ok a{color:var(--mint)}
.live.bad{color:var(--error)}

/* learn my voice */
.voice{display:flex;flex-direction:column;gap:10px;margin:4px 0 18px;padding:16px;border:1.5px dashed var(--rose);border-radius:14px;background:var(--rose-soft)}
.voice .label,.voice .hint{margin:0}
.voice .btn.secondary{background:var(--surface)}
.voice .field{margin:6px 0 0}
.voice textarea{background:var(--surface)}

/* the owner's Instagram profile card */
.profile{display:flex;align-items:center;gap:14px;background:var(--mint-soft);border-radius:16px;padding:14px 16px;margin:0 0 18px}
.profile-big{flex-direction:column;text-align:center;background:var(--surface);border:1px solid var(--line);padding:26px 20px;gap:12px}
.avatar{position:relative;flex:none;width:52px;height:52px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--rose),#f59e3d);color:#fff;font-weight:800;font-size:1.3rem}
.profile-big .avatar{width:96px;height:96px;font-size:2.4rem;box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--rose)}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-text{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.profile-handle{overflow-wrap:anywhere}
.profile-big .profile-handle{font-size:1.25rem}
.profile-name{color:var(--ink-soft)}
.profile-note{color:var(--mint);font-weight:600;margin-top:2px}
.profile .tick{margin-left:auto;width:30px;height:30px;border-radius:50%;background:var(--mint);color:var(--surface);display:grid;place-items:center;font-weight:800;flex:none}

/* account */
.top-right{display:flex;align-items:center;gap:14px}
.top-link{font-weight:700;font-size:.92rem;text-decoration:none;color:var(--rose);white-space:nowrap}
.acct-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.acct-head h1{margin-bottom:4px}
.pill{display:inline-block;font-size:.8rem;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--line);color:var(--ink-soft);white-space:nowrap}
.pill-live{background:var(--mint-soft);color:var(--mint)}
.pill-now{background:var(--rose-soft);color:var(--rose);padding:2px 8px;font-size:.74rem;vertical-align:2px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.card-head h2{margin:0}
.card-head .chip{text-decoration:none}
.steps{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:0}
.steps li{display:flex;gap:12px;align-items:flex-start;padding:0 0 16px;position:relative}
.steps li:not(:last-child)::before{content:"";position:absolute;left:14px;top:30px;bottom:2px;width:2px;background:var(--line)}
.steps li.step-done:not(:last-child)::before{background:var(--mint)}
.steps .dot{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.85rem;background:var(--line);color:var(--ink-soft);position:relative}
.steps .step-done .dot{background:var(--mint);color:var(--surface)}
.steps .step-now .dot{background:var(--rose);color:var(--rose-ink)}
.steps .step-next b{color:var(--ink-soft);font-weight:600}
.summary{margin:10px 0 0;display:flex;flex-direction:column;gap:14px}
.summary > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.summary dt{font-weight:700;font-size:.92rem}
.summary dd{margin:0;display:flex;flex-direction:column;overflow-wrap:anywhere}
.summary .empty dt{color:var(--ink-soft)}

/* practice replies */
.pr{display:flex;flex-direction:column;gap:10px}
.pr-testing{margin:0;font-size:.85rem;font-weight:700;color:var(--ink-soft)}
.bubble{max-width:88%;padding:10px 14px;border-radius:18px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
.bubble.in{align-self:flex-start;background:var(--ground);border:1px solid var(--line);border-bottom-left-radius:6px}
.bubble.out{align-self:flex-end;background:var(--rose);color:var(--rose-ink);border-bottom-right-radius:6px}
.bubble.none{align-self:flex-end;background:transparent;border:1.5px dashed var(--line);color:var(--ink-soft);font-size:.92rem}
.bubble .ch{display:block;font-size:.75rem;font-weight:700;color:var(--ink-soft);margin-bottom:2px}
.pr-tag{margin:0;align-self:flex-end;font-size:.88rem;font-weight:600;color:var(--mint)}
.pr-tag.warn{color:var(--warn)}
.pr-note{margin:0;font-size:.92rem;background:var(--warn-soft);border-radius:10px;padding:8px 12px}
.pr-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;padding-top:4px;border-top:1px solid var(--line)}
.pr-actions form{margin:0}
.pr-more{border:0;padding:0;margin:0;background:none}
.pr-more summary{list-style:none;display:inline-block}
.pr-more summary::-webkit-details-marker{display:none}
.pr-more[open]{flex-basis:100%}
.pr-more form{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.pr-more textarea{min-height:90px}
.chip-yes{border-color:var(--mint)}
.pr-status{font-weight:700;font-size:.92rem;padding:8px 0}
.pr-status.ok{color:var(--mint)}
.pr-progress{display:flex;flex-direction:column;gap:10px}
.bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.bar span{display:block;height:100%;background:var(--mint)}
.chip-quiet{color:var(--ink-soft);border-style:dashed}

/* activity */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 10px}
@media (max-width:420px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stats div{display:flex;flex-direction:column-reverse;gap:2px}
.stats dt{font-size:.85rem;color:var(--ink-soft);font-weight:600}
.stats dd{margin:0;font-family:var(--display);font-size:2rem;line-height:1}

/* learning from comment replies */
.learn-status{margin:6px 0 12px;font-weight:600}
.learn .actions form{display:contents}

.stats > div{display:flex;flex-direction:column-reverse;justify-content:flex-end}

/* ---------------------------------------------------------------- dashboard
   A step bar, and cards that carry the same step badge (green ✓ done, pink now, grey next). */
main.wide{max-width:1360px}
.acct-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.acct-head .lead{margin-bottom:18px}

.sbadge{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;
  font-weight:700;font-size:.9rem;background:var(--line);color:var(--ink-soft)}
.sbadge.s-done{background:var(--mint);color:var(--surface)}
.sbadge.s-now{background:var(--rose);color:var(--rose-ink);box-shadow:0 0 0 4px var(--rose-soft)}
.sbadge.s-icon{background:var(--ground);color:var(--ink-soft);border:1px solid var(--line)}
.stag{flex:none;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:99px;margin-left:auto}
.stag.s-done{background:var(--mint-soft);color:var(--mint)}
.stag.s-now{background:var(--rose-soft);color:var(--rose)}
.stag.s-next{background:var(--ground);color:var(--ink-soft)}

.stepbar{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 20px;margin:0 0 18px}
.stepbar ol{list-style:none;margin:0;padding:0;display:flex;align-items:center}
.stepbar li{flex:1;display:flex;align-items:center;min-width:0}
.stepbar li:not(:last-child)::after{content:"";flex:1;height:3px;border-radius:3px;margin:0 10px;background:var(--line)}
.stepbar li.s-done:not(:last-child)::after{background:var(--mint)}
.stepbar a,.stepbar li > span{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.stepbar a:hover .slabel{text-decoration:underline}
.slabel{font-weight:600;font-size:.95rem;white-space:nowrap}
.stepbar li.s-next .slabel{color:var(--ink-soft)}
.stepbar li.s-now .slabel{color:var(--rose)}
.stepbar-now{display:none;margin:12px 0 0;font-size:.95rem;color:var(--ink-soft)}

.dgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.tile{margin:0;display:flex;flex-direction:column;gap:12px;min-width:0;height:100%}
.tile > *{margin:0}
.tile-head{display:flex;align-items:center;gap:10px}
.tile-head h2{margin:0;font-size:1.3rem}
.tile-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:auto}
.tile-actions .btn{width:auto;flex:1;min-width:160px}
.tile-hero{grid-column:span 2}
.tile.is-now{border-color:var(--rose);box-shadow:0 0 0 1px var(--rose)}
.tile .profile{margin:0}
.tile .bar{margin:0}
.tile .stats{margin:4px 0}

.info{position:relative;border:0;padding:0;margin:0;background:none;border-radius:0;flex:none}
.info summary{list-style:none;cursor:pointer;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  border:1.5px solid var(--line);color:var(--ink-soft);font:italic 700 .8rem/1 Georgia,serif}
.info summary::-webkit-details-marker{display:none}
.info[open] summary{border-color:var(--rose);color:var(--rose)}
.info p{position:absolute;z-index:5;top:30px;left:-120px;width:min(300px,80vw);margin:0;padding:12px 14px;border-radius:12px;
  background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:.9rem;line-height:1.5;color:var(--ink)}

.checklist{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.checklist li{display:flex;gap:10px;align-items:flex-start;min-width:0}
.ck{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:700;margin-top:3px}
.has .ck{background:var(--mint-soft);color:var(--mint)}
.missing .ck{border:1.5px dashed var(--line);color:var(--ink-soft)}
.ck-text{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.ck-text b{font-size:.9rem}
.ck-val{font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.rows{margin:0;display:flex;flex-direction:column;gap:10px}
.rows div{display:flex;flex-direction:column;gap:0}
.rows dt{font-size:.88rem;font-weight:600;color:var(--ink-soft)}
.rows dd{margin:0;font-size:.95rem;line-height:1.4}
.learn-status{font-size:.98rem}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-size:.92rem;color:var(--ink-soft);text-decoration:underline;cursor:pointer}
.signout{max-width:240px;margin:22px auto 0}

@media (max-width:1280px){
  .dgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1000px){
  .dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .slabel{display:none}
  .stepbar li.s-now .slabel{display:inline}
  .stepbar-now{display:block}
  .stepbar li.s-now .slabel{display:none}
  .dgrid{grid-template-columns:minmax(0,1fr)}
  .tile-hero{grid-column:auto}
  .tile{height:auto}
  .rows div{grid-template-columns:minmax(0,1fr);gap:0}
  .info p{left:auto;right:-10px}
}

/* Practice: a full-width "ask" bar on top, then every answer as cards filling the screen */
.askbar{border-color:var(--rose);display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.askbar h2{margin:0}
.askbar .hint{margin:0}
.askbar-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.askbar-form textarea{min-height:52px;resize:vertical}
.answers-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:6px 0 16px}
.answers-progress{flex:1 1 280px;display:flex;flex-direction:column;gap:6px;max-width:520px}
.answers-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.answers-actions .btn{width:auto}
.answers{column-width:340px;column-gap:18px}
.answers > .pr{break-inside:avoid;display:flex;margin:0 0 18px}
@media (min-width:900px){
  .askbar{grid-template-columns:minmax(220px,300px) minmax(0,1fr);align-items:center}
  .askbar .radios{flex-direction:column;gap:6px}
  .askbar-form{grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch}
  .askbar-form .btn{width:auto;padding-inline:26px}
}

/* radio buttons that look like radio buttons */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.radios{display:flex;gap:8px;margin:0;padding:0;border:0}
.radio{display:flex;align-items:center;gap:8px;padding:10px 16px;border:1.5px solid var(--line);border-radius:12px;
  background:var(--ground);font-weight:600;cursor:pointer;white-space:nowrap}
.radio input{width:18px;height:18px;margin:0;accent-color:var(--rose)}
.radio:has(input:checked){border-color:var(--rose);background:var(--rose-soft)}

/* make every button look pressable */
.btn{box-shadow:0 2px 0 rgba(0,0,0,.25),0 6px 16px -8px var(--rose);transition:transform .08s ease,filter .15s ease,box-shadow .15s ease}
.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.btn.secondary{box-shadow:0 2px 0 rgba(0,0,0,.2)}
.btn.secondary:hover{border-color:var(--rose);background:var(--rose-soft)}
.chip{background:var(--ground);box-shadow:0 2px 0 rgba(0,0,0,.2);transition:transform .08s ease,border-color .15s ease;display:inline-flex;align-items:center;gap:6px}
.chip:hover{transform:translateY(-1px);background:var(--rose-soft)}
.chip:active{transform:translateY(1px);box-shadow:none}
.chip-yes{background:var(--mint-soft);border-color:var(--mint);color:var(--mint)}
.chip-yes:hover{background:var(--mint-soft);border-color:var(--mint)}
.pr-more summary.chip{list-style:none}
.pr-more summary.chip::-webkit-details-marker{display:none}
@media (prefers-reduced-motion: reduce){.btn,.chip{transition:none}.btn:hover,.chip:hover{transform:none}}

/* checked replies: grouped below, greyed out */
.archive{border:0;padding:0;background:none;margin:8px 0 0}
.archive > summary{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1.5px solid var(--line);border-radius:999px;
  background:var(--surface);font-weight:700;margin:0 0 16px;box-shadow:0 2px 0 rgba(0,0,0,.2)}
.archive > summary::before{content:"▸";transition:transform .15s}
.archive[open] > summary::before{transform:rotate(90deg)}
.archive .pr{opacity:.6}
.archive .pr:hover{opacity:1}
.pr-actions .chip{padding:7px 12px;font-size:.88rem}
.pr-actions .chip-quiet{margin-left:auto}

/* Needs you + alert settings */
.btn-inline{width:auto;padding:12px 22px;flex:none}
.kind-tag{display:inline-block;font-size:.8rem;font-weight:700;padding:4px 10px;border-radius:99px;background:var(--ground);color:var(--ink-soft);border:1px solid var(--line)}
.k-health,.k-complaint{background:var(--warn-soft);color:var(--warn);border-color:transparent}
.k-business{background:var(--mint-soft);color:var(--mint);border-color:transparent}
.ny .pr-actions a.chip{text-decoration:none}
.alert-row{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}
.alert-row:first-child{padding-top:0}
.alert-row:last-child{border-bottom:0;padding-bottom:0}
.alert-row legend{padding:0;margin-bottom:2px}
.alert-row .hint{margin:0}
.alert-row .radios{flex-wrap:wrap}
.alert-row .radio{flex:1 1 0;min-width:0;white-space:normal;padding:10px 12px}
.alert-row legend .kind-tag{font-family:var(--body)}
.needs-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.needs-list li{display:flex;justify-content:space-between;gap:10px;font-size:.92rem}
.needs-list .v{color:var(--ink-soft);white-space:nowrap}

.btn.secondary.btn-now{border-color:var(--rose);color:var(--rose)}
.btn.secondary.btn-now:hover{background:var(--rose-soft)}
.confirm-off{border:0;padding:0;margin:0;background:none;position:relative}
.confirm-off > summary{list-style:none;cursor:pointer}
.confirm-off > summary::-webkit-details-marker{display:none}
.confirm-box{position:absolute;z-index:5;right:0;bottom:calc(100% + 8px);width:min(300px,80vw);padding:14px;border-radius:14px;
  background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px}
.confirm-box p{margin:0;font-size:.92rem;line-height:1.45}
.confirm-box .btn{width:100%}

/* Posts (posting add-on) */
.posts-layout{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:900px){.posts-layout{grid-template-columns:1fr}}
.post-form{position:sticky;top:16px}
@media (max-width:900px){.post-form{position:static}}
.drop{display:flex;flex-direction:column;gap:6px;border:1.5px dashed var(--rose);background:var(--rose-soft);border-radius:16px;padding:16px;cursor:pointer}
.drop{position:relative}
.drop input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.drop:focus-within{outline:3px solid var(--rose);outline-offset:2px}
.drop.over{background:var(--surface)}
.drop-text b{color:var(--rose)}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px}
.thumbs img,.thumbs .ph{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.ph{display:grid;place-items:center;background:var(--ground);color:var(--ink-soft);font-size:.8rem;font-weight:700;text-align:center;padding:6px;overflow-wrap:anywhere;border-radius:10px;border:1px solid var(--line);aspect-ratio:4/5}
.writer{gap:8px}
.writer-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.when{border:0;padding:0;display:flex;flex-direction:column;gap:8px}
.when legend{font-weight:700;margin-bottom:6px}
.when .choice span{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.when input[type=datetime-local]{width:auto;height:auto;margin:0;accent-color:auto;font:inherit;padding:8px 10px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
.post-list h2{margin-top:0}
.plist{display:flex;flex-direction:column;gap:14px}
.plist > .card{margin:0}
.post{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:480px){.post{grid-template-columns:84px minmax(0,1fr);gap:12px}}
.post-media{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.post-media > :only-child{grid-column:1 / -1}
.post-media img,.post-media .ph{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:8px}
.post-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.post-cap{margin:0;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.post.is-canceled{opacity:.6}
