@font-face{font-family:'Clash Display';src:url('/fonts/ClashDisplay-Variable.ttf') format('truetype-variations');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:'Satoshi';src:url('/fonts/Satoshi-Variable.ttf') format('truetype-variations');font-weight:300 900;font-style:normal;font-display:swap}

/* Tokens from the iOS Assets catalog; the portal mirrors the light-only app. */
:root{
  --pink:#FBA3EA;--pink-bold:#D083C1;--pink-strong:#A56398;
  --canvas:#FEFFFF;--muted-bg:#E6E9EB;--sheet:#F4F6F7;--border:#E8EBEB;
  --fg:#000;--fg-muted:#898D8F;--fg-soft:#5F6466;--danger:#DB340B;--ok:#1C7C54;
  --glass:rgba(255,255,255,.92);--glass-pink:rgba(255,214,246,.9);
  --e-low:0 1px 8px rgba(0,0,0,.078),0 0 1px rgba(0,0,0,.122);
  --e-med:0 4px 12px rgba(0,0,0,.078),0 0 1px rgba(0,0,0,.122);
  --clash:'Clash Display','Satoshi',system-ui,sans-serif;
  --sat:'Satoshi',system-ui,-apple-system,'Segoe UI',sans-serif;
  --safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
html:has(dialog[open]){overflow:hidden}
body{margin:0;min-height:100vh;min-height:100dvh;background:var(--canvas);color:var(--fg);font-family:var(--sat);font-size:15px;line-height:21px;touch-action:manipulation;overflow-x:hidden}
h1,h2,h3{font-family:var(--clash);font-weight:700;margin:0;letter-spacing:-.01em;text-wrap:balance}
p{margin:0}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;border:0;background:none;padding:0;margin:0;cursor:pointer;text-align:inherit}
button:disabled{cursor:default}
input,textarea{font:inherit;color:inherit;margin:0}
a{color:inherit}
:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ic{width:22px;height:22px;flex:0 0 auto;display:block}
.ic.sm{width:18px;height:18px}

/* ---------- atoms ---------- */
.title-sm{font-size:19px;line-height:24px}
.title-md{font-size:28px;line-height:30px;text-align:center}
.title-lg{font-size:30px;line-height:32px}
.title-xl{font-size:32px;line-height:34px}
.title-thanks{font-size:34px;line-height:36px}
.hg{color:var(--pink-bold);font-family:var(--sat);margin-left:.08em}
.lead{font-size:15.5px;line-height:23px}
.gbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 16px;border-radius:999px;background:var(--glass);box-shadow:var(--e-low);border:1px solid rgba(0,0,0,.06);font-weight:700;font-size:15px;white-space:nowrap;color:var(--fg);text-decoration:none;transition:transform .15s cubic-bezier(.4,0,.2,1)}
.gbtn.sm{height:36px;padding:0 12px;font-size:14px;gap:5px}
.gbtn.full{width:100%;height:50px}
.gbtn.pinkglass{background:var(--glass-pink)}
.pbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:50px;border-radius:999px;background:var(--pink);font-weight:700;font-size:16px;color:var(--fg);box-shadow:var(--e-low);transition:transform .15s cubic-bezier(.4,0,.2,1),opacity .15s}
.dbtn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:50px;border-radius:999px;background:#fff;color:var(--danger);font-weight:700;font-size:16px;box-shadow:var(--e-low)}
.gbtn:active,.pbtn:active,.dbtn:active,.circ:active{transform:scale(.98)}
.pbtn[aria-busy="true"],.dbtn[aria-busy="true"]{opacity:.65}
.link{color:var(--pink-strong);text-decoration:underline;text-underline-offset:2px;font-weight:500;font-size:14px}
.link-black{color:var(--fg);font-size:15px}
.link-center{justify-self:center;text-align:center}
.danger-link{display:flex;justify-content:center;align-items:center;gap:6px;color:var(--danger);font-weight:700;padding:6px 12px;justify-self:center;border-radius:999px}
.circ{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.88);box-shadow:var(--e-low);border:1px solid rgba(0,0,0,.06);flex:0 0 auto}
.circ.sm{width:40px;height:40px}
.circ.pinkglass{background:rgba(255,214,246,.85)}
.lbl{font-weight:700;font-size:15px}
.field{display:grid;gap:8px;min-width:0}
.tf{width:100%;border:1px solid var(--border);border-radius:8px;padding:14px;font-size:16px;line-height:20px;background:#fff;min-height:50px;color:var(--fg);-webkit-appearance:none;appearance:none}
.tf::placeholder,.searchcap input::placeholder{color:var(--fg-muted);opacity:1}
.tf:focus{border-color:var(--fg);outline:none}
.tf:focus-visible{outline:none}
.tf[aria-invalid="true"]{border-color:var(--danger)}
.ta{min-height:120px;resize:vertical;display:block}
.errmsg{color:var(--danger);font-size:13.5px;line-height:18px}
.errmsg-center{text-align:center}
.hint{color:var(--fg-muted);font-size:13px;line-height:18px}
.hint.dark{color:var(--fg-soft)}
.badge{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--pink);font-weight:700;font-size:12.5px;white-space:nowrap;justify-self:start;color:var(--fg)}
.notice{background:var(--sheet);border-radius:12px;padding:12px 14px;font-size:14px;line-height:20px;text-align:center}
.stack{display:grid;gap:14px;width:100%}
.row-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
.searchcap{display:flex;align-items:center;gap:10px;height:52px;border-radius:999px;background:rgba(255,255,255,.95);border:1px solid rgba(0,0,0,.06);padding:0 18px;font-size:16px;box-shadow:0 0 0 1px rgba(255,255,255,.4),0 6px 24px rgba(251,163,234,.55),var(--e-low)}
.searchcap:focus-within{border-color:var(--fg)}
.searchcap input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.searchcap input{flex:1;min-width:0;border:0;background:transparent;font-size:16px;height:100%;outline:none;-webkit-appearance:none;appearance:none}
.searchcap.sm{height:44px;padding:0 16px}
.searchcap .ic{color:var(--fg)}
/* language switch: the landing page's lang-pill on the portal's light surfaces */
.lang{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:rgba(0,0,0,.045);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);flex:0 0 auto}
.lang-pill{font-family:var(--sat);font-weight:700;font-size:12px;letter-spacing:.04em;line-height:1;padding:8px 11px;border-radius:999px;color:var(--fg);opacity:.55;transition:opacity .2s ease,background .2s ease,transform .12s ease}
.lang-pill:hover{opacity:.85}
.lang-pill:active{transform:scale(.96)}
.lang-pill[aria-pressed="true"]{background:#fff;opacity:1;box-shadow:var(--e-low)}
.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--pink);border-top-color:transparent}
@media (prefers-reduced-motion:no-preference){.spinner{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}}

/* ---------- views ---------- */
.view{min-height:100vh;min-height:100dvh;position:relative}
.view-center{display:grid;place-items:center}
.view-sheet{background:var(--sheet);display:grid;place-items:center;padding:calc(24px + var(--safe-top)) 26px calc(40px + var(--safe-bottom))}
.view-pink{background:var(--pink)}
.center-col{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;max-width:380px;width:100%}
.center-col .ilu{width:150px;margin-bottom:6px}
.center-col .stack{margin-top:12px}
.center-col .gbtn{margin-top:8px}
.egg{width:80px;height:80px;border-radius:50%;background:#fff;display:grid;place-items:center;margin-bottom:6px}

/* login */
.lang-top{position:absolute;top:calc(14px + var(--safe-top));right:16px;z-index:1}
.login{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;gap:12px;padding:calc(22px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));max-width:440px;margin:0 auto}
.login-ilu{width:150px;margin:10px auto 6px}
.login-sub{text-align:center;font-size:15px;line-height:21px;color:#333}
.login-form{display:grid;gap:14px;margin-top:auto;padding-top:20px}
.login-form .pbtn{margin-top:6px}

/* home */
.pinkhead{background:var(--pink)}
.pinkhead-in{display:flex;flex-direction:column-reverse;padding:calc(12px + var(--safe-top)) 16px 72px;gap:4px}
.write-btn{align-self:flex-end}
.hello{display:grid;gap:10px;justify-items:start}
.hello-sub{font-size:15.5px;line-height:21px}
.add-btn{margin-top:8px}
.overlap{margin-top:-28px;border-radius:28px 28px 0 0;background:#fff;position:relative}
.overlap-in{padding:20px 16px calc(32px + var(--safe-bottom))}
.tips-head{display:grid;gap:10px;margin-bottom:4px}
.tips{list-style:none;margin:0;padding:0}
.row{display:grid;gap:4px;width:100%;padding:14px 0;border-bottom:1px solid #EEF0F1;text-align:left}
.row:focus-visible{outline-offset:-2px;border-radius:8px}
.nm{font-weight:700;font-size:16.5px;line-height:21px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.nm-text{min-width:0;overflow-wrap:anywhere}
.chev{color:var(--fg-muted)}
.meta{font-size:13.5px;line-height:18px;color:var(--fg-muted)}
.tx{font-size:14.5px;line-height:21px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.meta:empty,.tx:empty{display:none}
.tips-none{padding:24px 0;color:var(--fg-muted);text-align:center}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:10px 0 24px}
.empty .ilu{width:190px}
.empty p{font-size:16px;line-height:23px;max-width:260px}
.empty .pbtn{max-width:340px;margin-top:6px}
.home-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.logout-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:18px 0;font-weight:700;font-size:16px;border-radius:8px}

/* thanks */
.thanks{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;text-align:center;padding:calc(24px + var(--safe-top)) 26px calc(28px + var(--safe-bottom));max-width:440px;margin:0 auto}
.thanks-circle{background:#fff;border-radius:50%;width:240px;height:240px;display:grid;place-items:center;flex:0 0 auto;margin-top:24px}
.thanks-circle .ilu{width:200px}
.title-thanks{margin-top:32px}
.title-thanks:focus{outline:none}
.thanks-text{font-size:16px;line-height:24px;margin-top:14px;max-width:290px}
.thanks-actions{margin-top:auto;padding-top:32px}
@media (prefers-reduced-motion:no-preference){.view-pink .thanks-circle{animation:pop .9s cubic-bezier(.2,1.5,.4,1) .1s both}@keyframes pop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}}

/* ---------- dialogs ---------- */
/* The dialog itself is a transparent full-viewport layer, so fixed children (the toast) stay relative to the viewport. */
.modal{position:fixed;inset:0;top:var(--vv-top,0px);width:100%;height:var(--vv-height,100%);max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--fg);overflow:hidden}
.modal[open]{display:flex}
.modal::backdrop{background:rgba(0,0,0,.28)}
#dlg-delete::backdrop{background:rgba(0,0,0,.4)}
.panel{position:relative}
.modal-sheet{align-items:flex-end;padding:calc(6px + var(--safe-top)) 6px calc(6px + var(--safe-bottom))}
.sheetbox{width:100%;background:rgba(246,246,247,.97);border-radius:40px;padding:10px 18px 24px;display:flex;flex-direction:column;gap:14px;max-height:100%;overflow:auto;box-shadow:0 -1px 0 rgba(0,0,0,.04)}
.sheetbox-confirm{gap:12px;align-items:center;text-align:center}
.sheetbox>*,.add-step>*,.overlap-dlg>*{flex-shrink:0}
.grab{width:40px;height:5px;border-radius:9px;background:#C7CBCE;margin:0 auto;flex:0 0 auto}
.sheethead{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:4px}
.sheethead h2{font-size:22px;line-height:26px;text-align:center;overflow-wrap:anywhere}
.badge-start{align-self:flex-start}
.ta-edit{min-height:150px}
.counter{color:var(--fg-muted);font-size:12.5px;line-height:16px;text-align:right;font-variant-numeric:tabular-nums}
.confirm-title{font-size:24px;line-height:26px;margin-top:8px}
.confirm-text{font-size:15px;line-height:22px;max-width:300px;margin-bottom:4px}
.divider{display:flex;align-items:center;gap:10px;color:var(--fg-muted);font-size:13px;margin-top:6px}
.divider span{flex:1;height:1px;background:#DDE0E2}
@media (prefers-reduced-motion:no-preference){.modal[open] .panel{animation:rise .28s cubic-bezier(.2,.8,.2,1)}@keyframes rise{from{transform:translateY(24px);opacity:0}}}

/* add tip: a full screen on phones */
.modal-screen .panel{width:100%;height:100%;display:flex;flex-direction:column;background:#fff;overflow:hidden}
.pinkhead-dlg{padding:calc(12px + var(--safe-top)) 16px 72px;display:grid;gap:10px;justify-items:start;flex:0 0 auto}
.overlap-dlg{flex:1;min-height:0;overflow:auto;padding:20px 16px calc(22px + var(--safe-bottom));display:flex;flex-direction:column}
.add-step{display:flex;flex-direction:column;gap:12px;flex:1}
.add-form{gap:14px}
.list{background:#fff;border-radius:16px;overflow:hidden}
.list.bordered{border:1px solid var(--border)}
.results{list-style:none;margin:0;padding:0}
.it{display:flex;gap:12px;align-items:center;width:100%;padding:12px 14px;border-bottom:1px solid #F0F1F2;text-align:left}
#add-new{border-bottom:0}
.it:focus-visible{outline-offset:-3px;border-radius:12px}
.it .t{min-width:0;flex:1;display:grid;gap:1px}
.it .t b{font-size:15px;overflow-wrap:anywhere}
.it .t span{font-size:13px;color:var(--fg-muted);line-height:17px}
.it .tag{font-size:12px;color:var(--fg-muted);white-space:nowrap}
.dashplus{width:36px;height:36px;border-radius:50%;border:1.5px dashed var(--fg);display:grid;place-items:center;flex:0 0 auto}
.pickd{background:var(--muted-bg);border-radius:8px;padding:12px 14px;display:flex;gap:10px;align-items:center}
.pickd .t{flex:1;min-width:0;display:grid}
.pickd .t span{font-size:13px;color:#333}
.add-form .ta{min-height:110px}

/* toast */
.toast{position:fixed;left:12px;right:12px;bottom:calc(14px + var(--safe-bottom));border-radius:32px;padding:16px 18px;display:flex;gap:12px;align-items:center;color:#fff;font-weight:700;font-size:15px;line-height:20px;z-index:50;box-shadow:0 8px 24px rgba(0,0,0,.18);max-width:520px;margin:0 auto}
.toast.ok{background:rgba(28,124,84,.96)}
.toast.bad{background:rgba(219,52,11,.96)}
.toast.bad .toast-ic{display:none}
.toast .t{flex:1}
.toast .rb{background:#fff;color:var(--danger);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;white-space:nowrap}
.toast .rb:focus-visible{outline-color:#fff}
/* Keeps the bottom save button reachable while a toast covers the lower edge of a phone screen. */
@media (max-width:767px){.has-toast .overlap-dlg,.has-toast .sheetbox{padding-bottom:calc(110px + var(--safe-bottom))}}
@media (prefers-reduced-motion:no-preference){.toast:not([hidden]){animation:rise .25s cubic-bezier(.2,.8,.2,1)}}

/* ---------- desktop ---------- */
@media (min-width:768px){
  .pinkhead-in{flex-direction:row;justify-content:space-between;align-items:flex-start;gap:24px;max-width:1112px;margin:0 auto;padding:calc(30px + var(--safe-top)) 56px 76px;min-height:220px}
  .gbtn.write-btn{align-self:flex-start;height:44px;padding:0 16px;font-size:15px}
  .title-xl{font-size:44px;line-height:46px}
  .hello-sub{font-size:16px}
  .overlap-in{max-width:1112px;margin:0 auto;padding:26px 56px 48px}
  .tips-head{grid-template-columns:1fr minmax(260px,360px);align-items:center;margin-bottom:8px}
  .title-sm{font-size:20px}
  .tips{display:grid;grid-template-columns:1fr 1fr;column-gap:48px}
  .tips-none,.empty{grid-column:1/-1}
  .login{justify-content:center;max-width:420px}
  .lang-top{top:calc(24px + var(--safe-top));right:32px}
  .login-form{margin-top:12px}
  .thanks{justify-content:center}
  .thanks-actions{margin-top:0;max-width:340px}
  .thanks-text{max-width:360px}

  .modal,.modal-sheet{align-items:center;justify-content:center;padding:32px}
  .modal-screen .panel,.sheetbox{width:min(560px,100%);height:auto;max-height:calc(100vh - 64px);border-radius:32px;box-shadow:0 24px 64px rgba(0,0,0,.22)}
  .sheetbox{background:var(--sheet);padding:22px 24px 26px}
  .sheetbox-confirm{width:min(420px,100%)}
  .grab{display:none}
  .pinkhead-dlg{padding:22px 24px 64px}
  .pinkhead-dlg .title-xl{font-size:32px;line-height:34px}
  .overlap-dlg{padding:22px 24px 26px;min-height:min(420px,60vh)}
  .ta-edit{min-height:180px}
  .modal::backdrop{background:rgba(0,0,0,.36)}
}
