/* Asabi account pages and setup wizard. The planner's own look (css/notion.css + css/polish.css tokens): flat and calm,
   hairline cards, no gradients, no shadows, no emoji. Plum #4D233D, mulberry #75495F, sage #a3a67f / #5F6447 / #eeefe6.
   Red is for errors only. NewEdge666 for headings, Helvetica Neue for everything else. */
@font-face{font-family:"NewEdge666";src:url("../assets/fonts/NewEdge666-RegularRounded.otf") format("opentype");font-display:swap}
:root{
  --page:#ffffff;--sunk:#f7f6f3;--ink:#1a1915;--ink-2:#37352f;--muted:#787774;--faint:#a5a29a;
  --line:#efeeec;--line-2:#e6e5e1;--hover:rgba(55,53,47,.06);--press:rgba(55,53,47,.1);
  --plum:#4D233D;--plum-2:#75495F;--plum-soft:#f2e9ef;--sage:#a3a67f;--sage-2:#5F6447;--sage-soft:#eeefe6;--sage-ink:#4a4e33;
  --red:#9f2f2d;--red-soft:#fbe4e4;
  --r:6px;--r-lg:10px;
  --display:"NewEdge666","Helvetica Neue",Helvetica,Arial,sans-serif;
  --text:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --focus:0 0 0 2px #fff,0 0 0 4px var(--plum-2);
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font:15px/1.5 var(--text);-webkit-font-smoothing:antialiased;min-height:100dvh;display:flex;flex-direction:column}
a{color:var(--plum);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--plum-2)}
:focus{outline:none}
:focus-visible{box-shadow:var(--focus);border-radius:var(--r)}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;background:var(--plum);color:#fff;padding:8px 12px;border-radius:var(--r);z-index:10}
.skip:focus{top:12px}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px max(20px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font:400 21px/1 var(--display);letter-spacing:-.01em}
.brand svg{width:22px;height:22px}
.top nav{display:flex;gap:4px;align-items:center;font-size:14px}
.top nav a{color:var(--muted);text-decoration:none;padding:6px 10px;border-radius:var(--r)}
.top nav a:hover{background:var(--hover);color:var(--ink)}

main{flex:1;width:100%;padding:40px 20px 64px}
.narrow{max-width:400px;margin:0 auto}
.wide{max-width:760px;margin:0 auto}
h1{font:400 40px/1.04 var(--display);letter-spacing:-.02em;margin:0 0 10px;color:var(--ink)}
h2{font:400 26px/1.1 var(--display);letter-spacing:-.01em;margin:0 0 6px}
h3{font-size:15px;font-weight:600;margin:0 0 4px}
.lede{color:var(--muted);margin:0 0 22px;font-size:16px}
.muted{color:var(--muted)}
.small{font-size:13px}
p{margin:0 0 12px}

/* forms */
form{display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.label{font-size:13px;font-weight:600;color:var(--ink-2)}
.hint{font-size:13px;color:var(--muted);margin:0}
.input,select.input,textarea.input{width:100%;min-height:44px;padding:10px 12px;font:16px/1.3 var(--text);color:var(--ink);background:#fff;border:1px solid var(--line-2);border-radius:var(--r);transition:border-color .15s}
textarea.input{min-height:96px;resize:vertical}
.input:hover{border-color:#d8d6d0}
.input:focus-visible{border-color:var(--plum-2);box-shadow:0 0 0 3px var(--plum-soft);border-radius:var(--r)}
.input[aria-invalid=true]{border-color:var(--red)}
.code{letter-spacing:.45em;text-align:center;font-size:24px;font-variant-numeric:tabular-nums}
.code::placeholder{letter-spacing:.08em;font-size:16px}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row>*{flex:1 1 160px;min-width:0}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;cursor:pointer}
.check input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--plum);flex:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:var(--r);border:1px solid var(--line-2);background:#fff;color:var(--ink);font:500 15px/1.2 var(--text);cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}
.btn:hover{background:var(--sunk);color:var(--ink)}
.btn:active{background:var(--press)}
.btn.primary{background:var(--plum);border-color:var(--plum);color:#fff}
.btn.primary:hover{background:#5d2d4b}
.btn.sage{background:var(--sage-soft);border-color:var(--sage-soft);color:var(--sage-ink)}
.btn.danger{color:var(--red);border-color:#efc9c7}
.btn.danger:hover{background:var(--red-soft)}
.btn.block{width:100%}
.btn.small{min-height:34px;padding:6px 10px;font-size:14px}
.btn[disabled],.btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.btn.busy{position:relative;color:transparent!important}
.btn.busy::after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-color:#fff #fff transparent transparent;animation:spin .7s linear infinite}
.btn:not(.primary).busy::after{border-color:var(--ink) var(--ink) transparent transparent}
@keyframes spin{to{transform:rotate(1turn)}}
.linkbtn{border:0;background:none;padding:4px 0;color:var(--muted);font:inherit;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.linkbtn:hover{color:var(--ink)}
.links{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:14px}
.links a{color:var(--muted);padding:4px 0}

.msg{margin:0;font-size:14px;padding:10px 12px;border-radius:var(--r)}
.msg.err{color:var(--red);background:var(--red-soft)}
.msg.ok{color:var(--sage-ink);background:var(--sage-soft)}
.msg:empty{display:none}

/* cards and lists */
.card{border:1px solid var(--line-2);border-radius:var(--r-lg);padding:18px;background:#fff}
.stack{display:flex;flex-direction:column;gap:16px}
.section{border-top:1px solid var(--line);padding-top:28px;margin-top:28px}
.list{list-style:none;margin:0;padding:0;border:1px solid var(--line-2);border-radius:var(--r-lg)}
.list li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line);min-height:56px}
.list li:first-child{border-top:0}
.list .grow{flex:1;min-width:0}
.list .title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list .sub{font-size:13px;color:var(--muted)}
.pill{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;background:var(--sunk);color:var(--ink-2);white-space:nowrap}
.pill.plum{background:var(--plum-soft);color:var(--plum)}
.pill.sage{background:var(--sage-soft);color:var(--sage-ink)}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--plum-soft);color:var(--plum);display:grid;place-items:center;font:400 18px/1 var(--display);overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.lg{width:72px;height:72px;font-size:28px}

/* the setup wizard */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 26px}
.tab{border:0;background:none;padding:10px 12px;font:500 15px var(--text);color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.tab[aria-selected=true]{color:var(--ink);border-bottom-color:var(--plum)}
.tab[aria-disabled=true]{cursor:not-allowed;opacity:.6}
.tab .soon{font-size:11px;font-weight:500;margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--sunk);color:var(--muted)}
.progress{display:flex;gap:4px;margin:0 0 22px}
.progress span{flex:1;height:3px;border-radius:2px;background:var(--line-2)}
.progress span.on{background:var(--plum)}
.steplabel{font-size:13px;color:var(--muted);margin:0 0 4px}
.kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kind{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:16px;border:1px solid var(--line-2);border-radius:var(--r-lg);background:#fff;cursor:pointer;font:inherit;color:inherit;min-height:104px;transition:border-color .15s,background .15s}
.kind:hover{background:var(--sunk)}
.kind[aria-pressed=true]{border-color:var(--plum);background:var(--plum-soft)}
.kind b{font:400 21px/1.1 var(--display)}
.kind span{font-size:13px;color:var(--muted)}
.kind svg{width:26px;height:26px;margin-bottom:6px}
.evrow{border:1px solid var(--line-2);border-radius:var(--r-lg);padding:14px;display:flex;flex-direction:column;gap:10px}
.evrow .head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.nav{display:flex;justify-content:space-between;gap:10px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.nav .btn{min-width:120px}
.addr{display:flex;align-items:stretch;border:1px solid var(--line-2);border-radius:var(--r);overflow:hidden}
.addr span{display:flex;align-items:center;padding:0 10px;background:var(--sunk);color:var(--muted);font-size:14px;white-space:nowrap;border-right:1px solid var(--line-2)}
.addr .input{border:0;border-radius:0;min-width:0}
.addr:focus-within{border-color:var(--plum-2);box-shadow:0 0 0 3px var(--plum-soft)}
.addr .input:focus-visible{box-shadow:none}
.review dl{display:grid;grid-template-columns:140px 1fr;gap:8px 14px;margin:0}
.review dt{color:var(--muted);font-size:14px}
.review dd{margin:0}
.slot{border:1px dashed var(--line-2);border-radius:var(--r-lg);padding:22px;text-align:center;color:var(--muted)}

/* the assistant chat (when platform/ai is on) */
.chat{display:flex;flex-direction:column;gap:12px}
.turns{display:flex;flex-direction:column;gap:10px;min-height:120px}
.turn{max-width:88%;padding:10px 14px;border-radius:var(--r-lg);white-space:pre-wrap;line-height:1.45}
.turn.user{align-self:flex-end;background:var(--plum-soft);color:var(--ink)}
.turn.assistant{align-self:flex-start;background:var(--sunk)}
.draftcard{border:1px solid var(--sage);border-radius:var(--r-lg);padding:16px;background:#fff}

footer.foot{padding:20px;text-align:center;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
footer.foot a{color:var(--muted)}

@media (max-width:560px){
  main{padding:28px 16px 48px}
  h1{font-size:34px}
  .kinds{grid-template-columns:1fr}
  .kind{min-height:0}
  .review dl{grid-template-columns:1fr;gap:2px}
  .review dd{margin-bottom:10px}
  .nav .btn{flex:1;min-width:0}
  .list li{flex-wrap:wrap}
  .list li .grow{flex:1 1 calc(100% - 64px)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.field>label.check{font-weight:400;color:var(--ink-2);font-size:14px}

/* ---------- the planner's glass shell (css/glass.css, js/glass.js; same as platform/billing.js and admin.js) ----------
   Desktop: a plum and sage wash behind one white sheet with a folder tab. Phone: a plain white page. */
:root{--ink:#37352f;--ink-2:#37352f;--muted:#787774;--line:#e6e5e1;--line-2:#e6e5e1;--plum-soft:#f4ecf1;--r:8px}
h1,h2{color:var(--plum);font-weight:400}
.btn.primary:hover{background:var(--plum-2);border-color:var(--plum-2);color:#fff}
.input:focus-visible,.input:focus{border-color:var(--plum);box-shadow:0 0 0 3px rgba(77,35,61,.18);outline:none}
.addr:focus-within{border-color:var(--plum);box-shadow:0 0 0 3px rgba(77,35,61,.18)}
/* chosen options: a light plum fill with plum text */
.opt{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--line-2);border-radius:999px;background:#fff;color:var(--ink);font-size:15px;cursor:pointer;transition:background .15s,border-color .15s;user-select:none}
.opt:hover{background:var(--sunk)}
.opt input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.opt:has(input:checked){background:var(--plum);border-color:var(--plum);color:#fff}
.opt:has(input:checked):hover{background:color-mix(in srgb,var(--plum) 88%,#000)}
.opt:has(input:focus-visible){box-shadow:0 0 0 3px rgba(77,35,61,.18);border-color:var(--plum)}
.opt.small{font-size:14px;padding:6px 12px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.kind[aria-pressed=true],.btn[aria-pressed=true]{background:var(--plum-soft);border-color:var(--plum-soft);color:var(--plum)}
.draftcard{border-color:var(--line-2)}
.draftcard h3{font:400 22px/1.15 var(--display);color:var(--plum)}
@media (min-width:901px){
  html{background:#f6f4f1}
  body{background:transparent}
  body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.5;background-repeat:no-repeat;background-image:
    radial-gradient(circle 1200px at 720px 700px,rgba(163,166,127,0.4362) 0%,rgba(163,166,127,0.4288) 5%,rgba(163,166,127,0.4075) 10%,rgba(163,166,127,0.3741) 15%,rgba(163,166,127,0.3319) 20%,rgba(163,166,127,0.2842) 25%,rgba(163,166,127,0.2349) 30%,rgba(163,166,127,0.1873) 35%,rgba(163,166,127,0.144) 40%,rgba(163,166,127,0.1067) 45%,rgba(163,166,127,0.0761) 50%,rgba(163,166,127,0.0523) 55%,rgba(163,166,127,0.0345) 60%,rgba(163,166,127,0.0219) 65%,rgba(163,166,127,0.0133) 70%,rgba(163,166,127,0.0078) 75%,rgba(163,166,127,0.0044) 80%,rgba(163,166,127,0.0024) 85%,rgba(163,166,127,0.0012) 90%,rgba(163,166,127,0.0006) 95%,rgba(163,166,127,0.0003) 100%),
    radial-gradient(circle 1200px at 1240px 700px,rgba(150,95,125,0.4362) 0%,rgba(150,95,125,0.4288) 5%,rgba(150,95,125,0.4075) 10%,rgba(150,95,125,0.3741) 15%,rgba(150,95,125,0.3319) 20%,rgba(150,95,125,0.2842) 25%,rgba(150,95,125,0.2349) 30%,rgba(150,95,125,0.1873) 35%,rgba(150,95,125,0.144) 40%,rgba(150,95,125,0.1067) 45%,rgba(150,95,125,0.0761) 50%,rgba(150,95,125,0.0523) 55%,rgba(150,95,125,0.0345) 60%,rgba(150,95,125,0.0219) 65%,rgba(150,95,125,0.0133) 70%,rgba(150,95,125,0.0078) 75%,rgba(150,95,125,0.0044) 80%,rgba(150,95,125,0.0024) 85%,rgba(150,95,125,0.0012) 90%,rgba(150,95,125,0.0006) 95%,rgba(150,95,125,0.0003) 100%),
    radial-gradient(circle 1200px at 190px 700px,rgba(201,150,180,0.4362) 0%,rgba(201,150,180,0.4288) 5%,rgba(201,150,180,0.4075) 10%,rgba(201,150,180,0.3741) 15%,rgba(201,150,180,0.3319) 20%,rgba(201,150,180,0.2842) 25%,rgba(201,150,180,0.2349) 30%,rgba(201,150,180,0.1873) 35%,rgba(201,150,180,0.144) 40%,rgba(201,150,180,0.1067) 45%,rgba(201,150,180,0.0761) 50%,rgba(201,150,180,0.0523) 55%,rgba(201,150,180,0.0345) 60%,rgba(201,150,180,0.0219) 65%,rgba(201,150,180,0.0133) 70%,rgba(201,150,180,0.0078) 75%,rgba(201,150,180,0.0044) 80%,rgba(201,150,180,0.0024) 85%,rgba(201,150,180,0.0012) 90%,rgba(201,150,180,0.0006) 95%,rgba(201,150,180,0.0003) 100%),
    radial-gradient(circle 1200px at 1250px 300px,rgba(170,175,128,0.4362) 0%,rgba(170,175,128,0.4288) 5%,rgba(170,175,128,0.4075) 10%,rgba(170,175,128,0.3741) 15%,rgba(170,175,128,0.3319) 20%,rgba(170,175,128,0.2842) 25%,rgba(170,175,128,0.2349) 30%,rgba(170,175,128,0.1873) 35%,rgba(170,175,128,0.144) 40%,rgba(170,175,128,0.1067) 45%,rgba(170,175,128,0.0761) 50%,rgba(170,175,128,0.0523) 55%,rgba(170,175,128,0.0345) 60%,rgba(170,175,128,0.0219) 65%,rgba(170,175,128,0.0133) 70%,rgba(170,175,128,0.0078) 75%,rgba(170,175,128,0.0044) 80%,rgba(170,175,128,0.0024) 85%,rgba(170,175,128,0.0012) 90%,rgba(170,175,128,0.0006) 95%,rgba(170,175,128,0.0003) 100%),
    radial-gradient(circle 1200px at 720px 300px,rgba(225,185,208,0.4362) 0%,rgba(225,185,208,0.4288) 5%,rgba(225,185,208,0.4075) 10%,rgba(225,185,208,0.3741) 15%,rgba(225,185,208,0.3319) 20%,rgba(225,185,208,0.2842) 25%,rgba(225,185,208,0.2349) 30%,rgba(225,185,208,0.1873) 35%,rgba(225,185,208,0.144) 40%,rgba(225,185,208,0.1067) 45%,rgba(225,185,208,0.0761) 50%,rgba(225,185,208,0.0523) 55%,rgba(225,185,208,0.0345) 60%,rgba(225,185,208,0.0219) 65%,rgba(225,185,208,0.0133) 70%,rgba(225,185,208,0.0078) 75%,rgba(225,185,208,0.0044) 80%,rgba(225,185,208,0.0024) 85%,rgba(225,185,208,0.0012) 90%,rgba(225,185,208,0.0006) 95%,rgba(225,185,208,0.0003) 100%),
    radial-gradient(circle 1200px at 180px 300px,rgba(130,70,110,0.4362) 0%,rgba(130,70,110,0.4288) 5%,rgba(130,70,110,0.4075) 10%,rgba(130,70,110,0.3741) 15%,rgba(130,70,110,0.3319) 20%,rgba(130,70,110,0.2842) 25%,rgba(130,70,110,0.2349) 30%,rgba(130,70,110,0.1873) 35%,rgba(130,70,110,0.144) 40%,rgba(130,70,110,0.1067) 45%,rgba(130,70,110,0.0761) 50%,rgba(130,70,110,0.0523) 55%,rgba(130,70,110,0.0345) 60%,rgba(130,70,110,0.0219) 65%,rgba(130,70,110,0.0133) 70%,rgba(130,70,110,0.0078) 75%,rgba(130,70,110,0.0044) 80%,rgba(130,70,110,0.0024) 85%,rgba(130,70,110,0.0012) 90%,rgba(130,70,110,0.0006) 95%,rgba(130,70,110,0.0003) 100%)}
  .top{border-bottom:0;background:transparent}
  .top .brand{visibility:hidden}
  main{padding:56px 20px 64px}
  .narrow,.wide{position:relative;background:#fff;border-radius:0 22px 22px 22px;padding:36px 40px 40px;margin-top:40px}
  .narrow{max-width:480px}
  .wide{max-width:840px}
  /* the folder tab, with its 16px inverse-radius join into the sheet */
  .narrow[data-tab]::before,.wide[data-tab]::before{content:attr(data-tab);position:absolute;left:0;bottom:100%;padding:10px 36px 6px 20px;font:400 15px/1.3 var(--display);color:var(--plum);border-top-left-radius:16px;background-repeat:no-repeat;background-image:
    radial-gradient(circle at 100% 0,transparent 15.5px,#fff 16px),radial-gradient(circle at 0 100%,#fff 15.5px,transparent 16px),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);
    background-size:16px 16px,16px 16px,calc(100% - 32px) 100%,16px calc(100% - 16px);
    background-position:100% 100%,calc(100% - 16px) 0,0 0,calc(100% - 16px) 100%}
  footer.foot{border-top:0;background:transparent}
}
@media (max-width:560px){.tabs{overflow-x:auto;scrollbar-width:none}.tab{white-space:nowrap;padding:10px 8px}.tab .soon{display:none}}

/* the assistant's draft: key facts, then the celebrations in order (hairlines, no boxes inside the card) */
.dfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:2px 0 4px}
.dfacts div{display:flex;flex-direction:column;gap:2px}.dfacts span{font-size:12px;color:#787774}.dfacts b{font-weight:500;color:#4D233D}
.devents{border-top:1px solid #e6e5e1}.devents div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #efeeec;font-size:14px}
.devents b{font-weight:500}.devents span{color:#787774;text-align:right}
@media (max-width:600px){.devents div{flex-direction:column;gap:2px}.devents span{text-align:left}}

/* ---------- Typeform-style flows (body.tf): one question at a time, full page, no sheet ----------
   A number and arrow, the question in large plum type, a big underlined answer or lettered choices, OK and "press Enter".
   Flat: a plain white page, plum on white, hairline borders, no gradients or shadows. */
:root{--q:#4D233D;--q-2:#75495F;--q-line:rgba(77,35,61,.3);--q-fill:rgba(77,35,61,.05);--q-fill-2:rgba(77,35,61,.11);--q-edge:rgba(77,35,61,.38)}
html:has(body.tf){background:#fff}
body.tf{background:#fff}
body.tf::before{display:none}
.tf .top{border-bottom:0;background:transparent;position:relative;z-index:2}
.tf .top .brand{visibility:visible;color:var(--q)}
.tf main{display:flex;align-items:center;justify-content:center;padding:24px 24px 110px}
.tfwrap{width:100%;max-width:720px;padding-left:44px}
.tf .narrow{max-width:720px;padding:0 0 0 44px;margin:0 auto;background:none;border-radius:0}
.tf .narrow::before{display:none}
.tf .narrow h1{font:400 34px/1.2 var(--display);color:var(--q);letter-spacing:-.01em;margin:0 0 12px}
.tf .narrow .lede{font-size:20px;line-height:1.45;color:var(--q-2);margin:0 0 30px}
.tfstage{display:grid}
.tfstage>.tfq{grid-area:1/1;display:block;min-width:0}
.tfq{animation:tfIn .5s cubic-bezier(.2,.75,.25,1) both}
.tfq.from-up{animation-name:tfInBack}
.tfq.leaving{pointer-events:none;animation:tfOut .32s ease-in both}
.tfq.leaving.down{animation-name:tfOutBack}
@keyframes tfIn{from{opacity:0;transform:translateY(56px)}to{opacity:1;transform:none}}
@keyframes tfInBack{from{opacity:0;transform:translateY(-56px)}to{opacity:1;transform:none}}
@keyframes tfOut{to{opacity:0;transform:translateY(-56px)}}
@keyframes tfOutBack{to{opacity:0;transform:translateY(56px)}}

.tfhead{display:flex;align-items:baseline;gap:10px;margin-left:-44px}
.tfq.plain .tfhead,.tfchat .tfhead{margin-left:0}
.tfn{flex:none;width:34px;display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;color:var(--q);font:500 16px/1 var(--text);transform:translateY(-4px)}
.tfn svg{width:14px;height:14px}
.tft{font:400 32px/1.22 var(--display);color:var(--q);letter-spacing:-.01em;margin:0;outline:none;min-width:0;overflow-wrap:anywhere}
.tft:focus,.tft:focus-visible{box-shadow:none;outline:none}
.tfh{font-size:20px;line-height:1.45;color:var(--q-2);margin:12px 0 0}
.tfb{margin-top:32px}
.tfq.plain .tfb:empty,.tfb:empty{margin-top:0}

/* big underlined answers */
.tfin{display:block;width:100%;min-height:0;border:0;border-bottom:1px solid var(--q-line);border-radius:0;background:transparent;padding:4px 0 10px;font:400 28px/1.3 var(--text);color:var(--q);transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none}
.tfin::placeholder{color:rgba(77,35,61,.32)}
.tfin:focus,.tfin:focus-visible{outline:none;border-radius:0;border-bottom-color:var(--q);box-shadow:0 1px 0 0 var(--q)}
.tfin[aria-invalid=true]{border-bottom-color:var(--red);box-shadow:0 1px 0 0 var(--red)}
.tfin[disabled]{opacity:.4}
.tfin[type=date]{min-height:48px}
.tfin[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
select.tfin,.tfmini{cursor:pointer;padding-right:34px;background:no-repeat right 4px center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234D233D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
textarea.tfarea{resize:none;font-size:22px;line-height:1.4;min-height:0}
.tflab{display:block;font-size:15px;color:var(--q-2);margin:0 0 6px}
.tfb .tflab~.tfrow,.tfb .tfin+.tflab{margin-top:26px}
.tfrow{display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;align-items:start}
.tfcheckbox{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:15px;color:var(--q-2);cursor:pointer}
.tfcheckbox input{width:18px;height:18px;margin:0;accent-color:var(--q)}
.tfsub{font-size:15px;color:var(--q-2);margin:16px 0 0;line-height:2}
.tfmini{-webkit-appearance:none;appearance:none;border:0;border-bottom:1px solid var(--q-line);background-color:transparent;padding:2px 26px 2px 0;font:500 15px var(--text);color:var(--q);max-width:100%;background-size:14px;background-position:right 2px center}
.tfmini:focus-visible{outline:none;border-radius:0;box-shadow:0 1px 0 0 var(--q);border-bottom-color:var(--q)}
.tfaddr{display:flex;align-items:baseline;gap:2px;border-bottom:1px solid var(--q-line);transition:box-shadow .15s}
.tfaddr span{flex:0 1 auto;font-size:20px;color:var(--q-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
.tfaddr .tfin{flex:1 1 140px;width:auto;border-bottom:0;box-shadow:none!important;min-width:0}
.tfaddr:focus-within{border-bottom-color:var(--q);box-shadow:0 1px 0 0 var(--q)}
.tfaddr:has([aria-invalid=true]){border-bottom-color:var(--red);box-shadow:0 1px 0 0 var(--red)}

/* lettered choices: as wide as the longest */
.tfcs{display:inline-flex;flex-direction:column;gap:8px;min-width:min(100%,300px);max-width:100%}
.tfc{display:flex;align-items:center;gap:12px;min-height:46px;padding:7px 10px;border:1px solid var(--q-edge);border-radius:6px;background:var(--q-fill);color:var(--q);font:400 19px/1.3 var(--text);text-align:left;cursor:pointer;transition:background .12s,border-color .12s}
.tfc:hover{background:var(--q-fill-2)}
.tfc:focus-visible{border-radius:6px;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--q-2)}
.tfc[aria-pressed=true]{border-color:var(--q);background:var(--q-fill-2);box-shadow:inset 0 0 0 1px var(--q)}
.tfk{flex:none;display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--q-edge);border-radius:4px;background:#fff;font:600 12px/1 var(--text);color:var(--q)}
.tfc[aria-pressed=true] .tfk{background:var(--q);border-color:var(--q);color:#fff}
.tfl{flex:1;min-width:0}
.tfcheck{flex:none;width:18px;height:18px;margin-left:14px;visibility:hidden}
.tfcheck svg{width:18px;height:18px;display:block}
.tfc[aria-pressed=true] .tfcheck{visibility:visible}
.tfc.blink{animation:tfBlink .14s 3}
@keyframes tfBlink{50%{background:var(--q-fill);box-shadow:none}}

/* OK, press Enter, messages, links */
.tfok{display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;margin-top:30px}
.tfbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px 20px;border:0;border-radius:6px;background:var(--q);color:#fff;font:600 19px/1.1 var(--text);cursor:pointer;transition:background .15s}
.tfbtn:hover{background:var(--q-2)}
.tfbtn:focus-visible{border-radius:6px}
.tfbtn svg{width:17px;height:17px}
.tfbtn.busy::after{border-color:#fff #fff transparent transparent}
.tfenter{font-size:13px;color:var(--q-2)}
.tfenter b{font-weight:600}
.tferr{display:inline-flex;margin:16px 0 0;padding:6px 10px;border-radius:4px;background:var(--red-soft);color:var(--red);font-size:15px;line-height:1.35}
.tferr:empty{display:none}
.tfwrap>.tferr{margin:0 0 20px}
.tfmore{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-top:26px}
.tf .linkbtn,.tf .tfmore a{font-size:15px;color:var(--q-2);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;padding:4px 0}
.tf .linkbtn:hover,.tf .tfmore a:hover{color:var(--q)}
.tfkinds{display:flex;gap:8px;flex-wrap:wrap;flex-basis:100%}
.tfkinds .btn{border-color:var(--q-edge);color:var(--q);background:var(--q-fill)}
.tfkinds .btn:hover{background:var(--q-fill-2)}
.tfsmall{font-size:14px;color:var(--q-2);margin:22px 0 0}

/* the summary before creating */
.tfreview{margin:0;border-top:1px solid var(--line)}
.tfreview>div{display:grid;grid-template-columns:150px 1fr auto;gap:4px 18px;padding:13px 0;border-bottom:1px solid var(--line);align-items:baseline}
.tfreview dt{font-size:15px;color:var(--q-2)}
.tfreview dd{margin:0;font-size:17px;color:var(--q);line-height:1.5;min-width:0;overflow-wrap:anywhere}
.tfreview dd .muted{color:var(--q-2);font-size:15px}
.tfreview .tfedit .linkbtn{font-size:14px}
/* the plan step: what the free trial holds, as a flat list with ticks */
.tfplan{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.tfplan li{display:flex;gap:14px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line)}
.tfplan-t{flex:none;width:22px;height:22px;border-radius:50%;background:var(--sage-soft);color:var(--sage-2);display:grid;place-items:center;margin-top:2px}
.tfplan-t svg{width:13px;height:13px}
.tfplan b{display:block;font-weight:500;font-size:17px;color:var(--q);line-height:1.4}
.tfplan small{display:block;font-size:15px;color:var(--q-2);line-height:1.45}
@media (max-width:520px){.tfplan li{padding:9px 0}.tfplan b{font-size:16px}.tfplan small{font-size:14px}}

/* the progress line along the top, and up and down in the corner */
.tfbar{position:fixed;top:0;left:0;right:0;height:4px;background:rgba(77,35,61,.1);z-index:5}
.tfbar span{display:block;height:100%;width:0;background:var(--q);transition:width .45s cubic-bezier(.2,.75,.25,1)}
.tfnav{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:flex;gap:1px;z-index:5}
.tfnav button{display:grid;place-items:center;width:40px;height:36px;border:0;background:var(--q);color:#fff;cursor:pointer;transition:background .15s}
.tfnav button:first-child{border-radius:6px 0 0 6px}
.tfnav button:last-child{border-radius:0 6px 6px 0}
.tfnav button:hover{background:var(--q-2)}
.tfnav button[disabled]{opacity:.35;cursor:default;background:var(--q)}
.tfnav button:focus-visible{border-radius:6px}
.tfnav svg{width:18px;height:18px}

/* the assistant chat, in the same column */
.tfchat .turns{margin-top:26px;min-height:0}
.tfchat .turn{font-size:17px}
.tfchat .turn.user{background:var(--q-fill-2);color:var(--q)}
.tfchat .turn.assistant{background:#f7f6f3}
.tfchat #chatForm{display:block;margin-top:22px}
.tfchat .draftcard{margin-top:16px}

@media (max-width:640px){
  .tf main{align-items:flex-start;padding:9vh 20px 96px}
  .tfwrap,.tf .narrow{padding-left:0}
  .tfhead{margin-left:0;flex-direction:column;gap:8px}
  .tfn{width:auto;justify-content:flex-start;transform:none;font-size:15px}
  .tft{font-size:25px}
  .tf .narrow h1{font-size:28px}
  .tfh,.tf .narrow .lede{font-size:17px}
  .tfb{margin-top:24px}
  .tfin{font-size:23px}
  .tfc{font-size:17px}
  .tfcs{display:flex;min-width:0}
  .tfrow{grid-template-columns:1fr}
  .tfaddr span{font-size:16px}
  .tfreview>div{grid-template-columns:1fr auto}
  .tfreview dt{grid-column:1/-1}
  .tfreview dd:not(.tfedit){grid-column:1}
  .tfnav{bottom:max(14px,env(safe-area-inset-bottom));right:14px}
}
@media (min-width:901px){.tf main{padding:24px 24px 110px}}
.tfsub .tfpair{display:inline-flex;align-items:baseline;gap:6px;margin-right:22px;max-width:100%}
.tfpw{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid var(--q-line);transition:box-shadow .15s}
.tfpw .tfin{border-bottom:0;box-shadow:none!important;flex:1;width:auto;min-width:0}
.tfpw:focus-within{border-bottom-color:var(--q);box-shadow:0 1px 0 0 var(--q)}
.tfpw:has([aria-invalid=true]){border-bottom-color:var(--red);box-shadow:0 1px 0 0 var(--red)}
.tfpw .linkbtn{flex:none}
.tfcode{letter-spacing:.4em;font-variant-numeric:tabular-nums;max-width:320px}
.tfcode::placeholder{letter-spacing:.4em}
.tfnote{flex-basis:100%;margin:0;font-size:15px;color:var(--sage-ink)}
.tfnote:empty{display:none}
.tf footer.foot{border-top:0;background:transparent}
a.tfbtn{text-decoration:none}
a.tfbtn:hover{color:#fff}
.tfbtn.ghost{background:var(--q-fill);color:var(--q);box-shadow:inset 0 0 0 1px var(--q-edge)}
.tfbtn.ghost:hover{background:var(--q-fill-2);color:var(--q)}
.tf .narrow form{display:block}
.tf .narrow .msg.err{margin:0 0 18px;display:inline-block}
.tf .narrow .msg:empty{display:none}
.tf .narrow .hint{font-size:15px;color:var(--q-2);margin-top:16px}
.tf .narrow .small.muted{font-size:15px;color:var(--q-2);margin-top:26px}

/* a one-question flow in a full-screen sheet over an ordinary page (the account page's changes) */
.tfsheet{position:fixed;inset:0;z-index:60;background:#fff;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;animation:tfSheetIn .25s ease-out both}
.tfsheet>main{flex:1 0 auto;min-height:100%}
.tfx{position:fixed;top:calc(14px + env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:6;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--q);cursor:pointer}
.tfx:hover{background:var(--q-fill-2)}
.tfx svg{width:20px;height:20px}
@keyframes tfSheetIn{from{opacity:0}to{opacity:1}}
html:has(.tfsheet){overflow:hidden}
@media (prefers-reduced-motion:reduce){.tfsheet{animation:none}}
/* the account page's settings: a label above the value, Change on the right */
.setlist li,.list.setlist li{flex-wrap:nowrap;align-items:center}
.list.setlist li .grow{flex:1 1 auto;min-width:0}
.setlist .sub+.title{margin-top:2px}
