/* Costa Portal. Tokens and components from docs/design/portal.css (the binding boards);
   the real-page layer (phone/desktop switch, fixed bars, forms) is at the end. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --night:#0f2a2c;--night-raised:#17393c;--sea:#0f5563;--gold:#DCA54A;--gold-deep:#C9963F;--gold-text:#8a6420;
  --sand:#f4f0e8;--ink:#12201f;--text:#44504e;--muted:#5e6967;--line:#e3dccf;--white:#ffffff;
  --danger:#b3361f;--gold-soft:#fbf3e2;--sand-deep:#e9e4da;--av-bg:#e9dcc0;--sw-off:#cfd6d4;--chip-bg:#f1ebdf;--ghost-line:#cdbf9f;--danger-bg:#fbe9e5;--ok:#1f7a4d;--ok-bg:#e3f2e9;--warn-bg:#fbf1dc;--amigo:#c4562f;
  --display:'Fraunces',Georgia,serif;--body:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--sand);color:var(--text);font-family:var(--body);font-size:15px;line-height:1.4;min-height:100vh;min-height:100dvh}
:focus-visible{outline:3px solid var(--sea);outline-offset:2px}
a{color:inherit}
button,input,select{font:inherit}

/* ---------- shared ---------- */
.aicon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.aicon.portal{background:var(--night)}
.aicon.pacct{background:var(--gold-soft);color:var(--gold-text)}
.minis{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.av{flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:var(--av-bg);color:var(--gold-text);display:inline-flex;align-items:center;justify-content:center;font:700 13.5px var(--body);letter-spacing:.02em}
.av.big{width:56px;height:56px;font-size:19px}
.band{display:flex;align-items:center;gap:10px;margin:22px 2px 10px;font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.band i{flex:1;height:1px;background:var(--line)}
.h1{font:600 30px/1.1 var(--display);color:var(--ink);margin:2px 0 0}
.h1.c,.lead.c,.help.c{text-align:center}
.hello{margin:0;font-size:15px;color:var(--muted)}
.lead{font-size:15.5px;line-height:1.5;color:var(--text);margin:10px 0 0}
.help{font-size:14px;line-height:1.5;color:var(--muted);margin:12px 2px 0}
.help svg{vertical-align:-3px;margin-right:6px}
.top16{margin-top:16px}
.stack{display:flex;flex-direction:column;gap:10px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:600;background:var(--sand);color:var(--text)}
.chip.gold{background:#f6e8c8;color:var(--gold-text)}
.chip.ok{background:var(--ok-bg);color:var(--ok)}
.chip.bad{background:var(--danger-bg);color:var(--danger)}
.av.off{background:var(--sand-deep);color:var(--muted)}
.card{background:var(--white);border:1px solid var(--line);border-radius:18px}
.pad{padding:16px 16px 28px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 20px;border-radius:14px;border:0;font:700 16px var(--body);text-decoration:none;cursor:pointer}
.btn.full{width:100%}
.btn.gold{background:var(--gold);color:var(--ink)}
.btn.sea{background:var(--sea);color:#fff}
.btn.line{background:var(--white);color:var(--ink);border:1.5px solid var(--line)}
.btn.text{background:transparent;color:var(--muted);height:44px;font-weight:600}
.btn.danger{background:var(--white);color:var(--danger);border:1.5px solid #e6b9ae}
.btn.red{background:var(--danger);color:#fff}
.btn.sm{height:44px;padding:0 14px;font-size:14.5px;border-radius:12px}

/* switch & segments */
.sw{flex:0 0 auto;position:relative;width:52px;height:32px;border-radius:999px;background:var(--sw-off);display:inline-block}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.sw.on{background:var(--sea)}.sw.on::after{left:23px}
.sw.dis{opacity:.45}
.seg2{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--sand);border-radius:12px;padding:3px;min-width:150px}
.seg2 button{height:44px;border:0;border-radius:9px;background:transparent;color:var(--text);font-weight:600;font-size:14.5px;padding:0 12px;cursor:pointer}
.seg2 button[aria-pressed="true"]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px rgba(15,42,44,.15)}
.seg-l{display:grid;grid-template-columns:1fr 1fr;background:var(--sand-deep);border-radius:12px;padding:4px;margin:12px 0 4px}
.seg-l button{height:44px;border:0;border-radius:9px;background:transparent;color:var(--text);font-weight:600;font-size:14.5px;cursor:pointer}
.seg-l button[aria-pressed="true"]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px rgba(15,42,44,.15)}

/* fields */
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.fld>span:first-child{font-size:14px;font-weight:600;color:var(--ink)}
.fld input{height:52px;border-radius:13px;border:1.5px solid var(--line);background:var(--white);padding:0 14px;font-size:16px;color:var(--ink);width:100%}
.pw{position:relative;display:block}
.ghost-ic{position:absolute;right:4px;top:4px;width:44px;height:44px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.search{display:flex;align-items:center;gap:8px;height:48px;padding:0 14px;border-radius:13px;background:var(--white);border:1.5px solid var(--line);color:var(--muted)}
.search input{border:0;outline:0;flex:1;font-size:15.5px;background:transparent;color:var(--ink)}
.swrow{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:14px 0}
.swrow b{display:block;color:var(--ink);font-size:15.5px}.swrow small{display:block;color:var(--muted);font-size:13.5px;margin-top:2px}
.swrow.lt{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.sel{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:12px;border:1.5px solid var(--line);font-weight:600;color:var(--ink);background:var(--white)}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%}

/* ---------- phone top bars ---------- */
.top{background:var(--night);padding:52px 16px 14px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;min-height:44px}
.word{font:italic 400 25px var(--display);color:var(--gold)}
.acct{display:flex;align-items:center;gap:8px;color:#d9e2df;text-decoration:none;font-weight:600;font-size:14.5px;min-height:44px;padding-left:8px}
.acct .av{width:34px;height:34px;background:var(--night-raised);color:var(--gold);border:1px solid #2c5357}
.sub{background:var(--night);padding:50px 12px 16px;color:#d9e2df}
.backl{display:inline-flex;align-items:center;gap:2px;min-height:44px;color:#d9e2df;text-decoration:none;font-weight:600;font-size:15px}
.sub h1{font:600 28px/1.1 var(--display);color:#fff;margin:2px 6px 0}

/* ---------- login ---------- */
.night-full{position:absolute;inset:0;background:radial-gradient(120% 70% at 50% 0%,#17444a 0%,var(--night) 60%);display:flex;flex-direction:column}
.login-brand{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:60px 28px 20px;text-align:center}
.login-brand.small{flex:0 0 auto;padding:70px 28px 26px}
.bigword{font:600 38px var(--display);color:#fff}
.bigword em{color:var(--gold);font-weight:400}
.bigword.sm{font-size:26px}
.login-brand p{margin:4px 0 0;color:#b9c4c2;font-size:16px;line-height:1.45;max-width:270px}
.sheet{background:var(--sand);border-radius:26px 26px 0 0;padding:24px 20px 34px}
.sheet.tall{flex:1}
.sheet h2{font:600 26px var(--display);color:var(--ink);margin:8px 0 0}
.kicker{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-text)}
.otp{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:20px 0 6px}
.otp span{height:58px;border-radius:13px;background:var(--white);border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;font:600 26px var(--display);color:var(--ink)}
.otp .cur{border-color:var(--sea);box-shadow:0 0 0 3px rgba(15,85,99,.15)}

/* ---------- home ---------- */
.home{padding:20px 16px 28px}
.list{display:flex;flex-direction:column;gap:10px}
.arow{display:flex;align-items:center;gap:14px;min-height:78px;padding:12px 10px 12px 14px;background:var(--white);border:1px solid var(--line);border-radius:18px;text-decoration:none;color:var(--text)}
.rtxt{flex:1;min-width:0;display:flex;flex-direction:column}
.rtxt b{font-size:16.5px;color:var(--ink)}
.rtxt>span,.rtxt small{font-size:14px;color:var(--muted);line-height:1.35}
.rtxt .one{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtxt .cnt{align-self:flex-start;margin-top:7px}
.cnt{flex:0 0 auto;height:26px;padding:0 11px;border-radius:999px;background:var(--chip-bg);color:var(--text);font-size:13.5px;font-weight:700;display:inline-flex;align-items:center}
.cnt.hot{background:var(--sea);color:#fff}
.chev{color:#a3aead;display:flex}
.foothelp{text-align:center;font-size:14.5px;color:var(--muted);margin-top:26px}
.foothelp a{color:var(--sea);font-weight:600;text-decoration:none;padding:12px 4px}

/* empty */
.empty{padding:56px 24px 28px;display:flex;flex-direction:column;align-items:center}
.ghostgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:26px}
.ghostgrid i{width:58px;height:58px;border-radius:16px;border:2px dashed var(--ghost-line)}
.ghostgrid i:first-child{background:#f6e8c8;border-style:solid;border-color:#ead7a8}
.empty .stack{width:100%;margin-top:28px}

/* account */
.who{display:flex;gap:14px;align-items:center;padding:16px}
.who b{display:block;font-size:17.5px;color:var(--ink)}.who small{display:block;color:var(--muted);font-size:14px}
.who.flat{background:transparent;padding:4px 0 0}
.menu{overflow:hidden}
.mrow{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 12px 0 14px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15.5px}
.mrow+.mrow{border-top:1px solid var(--line)}
.mic{color:var(--sea);display:flex}
.mlab{flex:1}
.mval{color:var(--muted);font-weight:500;font-size:14.5px}

/* people */
.withfab{padding-bottom:104px;min-height:calc(100% - 128px)}
.plist{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.prow{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;background:var(--white);border:1px solid var(--line);border-radius:16px;text-decoration:none;min-height:68px}
.ptxt{flex:1;min-width:0;display:flex;flex-direction:column}
.ptxt b{color:var(--ink);font-size:15.5px}.ptxt small{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pstat{font-size:13px;font-weight:700;margin-top:3px}
.papps{font-size:13.5px;color:var(--text);margin-top:2px}
.pstat.bad{color:var(--danger)}.pstat.gold{color:var(--gold-text)}.pstat.wait{color:var(--muted)}.pstat.ok{color:var(--ok)}
.fab{position:absolute;left:16px;right:16px;bottom:26px;height:56px;border-radius:16px;background:var(--sea);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:16px;text-decoration:none;box-shadow:0 10px 24px rgba(15,85,99,.35)}

/* add person */
.withsticky{padding-bottom:110px}
.fld.lt input{background:var(--white)}
.oapp{background:var(--white);border:1px solid var(--line);border-radius:16px;margin-bottom:10px;overflow:hidden}
.oapp.on{border-color:#b7ccd0}
.oapp.dis{background:#f9f7f2}
.ohead{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:66px;cursor:pointer}
.otxt{flex:1;min-width:0;display:flex;flex-direction:column}
.otxt b{color:var(--ink);font-size:15.5px}.otxt small{color:var(--muted);font-size:13px}
.oapp.dis .otxt b{color:var(--muted)}
.opts{border-top:1px solid var(--line);background:#fbfaf6;padding:6px 14px}
.orow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;font-size:14.5px;font-weight:600;color:var(--text)}
.orow+.orow{border-top:1px dashed var(--line)}
.sticky{position:absolute;left:0;right:0;bottom:0;padding:14px 16px 26px;background:linear-gradient(rgba(244,240,232,0),var(--sand) 30%)}

/* result & access */
.banner{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;font-size:14.5px;line-height:1.45;margin-bottom:14px}
.banner svg{flex:0 0 auto}
.banner.warn{background:var(--warn-bg);color:#5c4515;border:1px solid #ecd59f}
.banner.bad{background:var(--danger-bg);color:#6e2213;border:1px solid #efc2b8}
.banner b{color:inherit}
.resl,.accl{overflow:hidden}
.resrow,.accrow{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;min-height:68px;text-decoration:none}
.resrow+.resrow,.accrow+.accrow{border-top:1px solid var(--line)}
.rs{flex:0 0 auto;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.rs.ok{background:var(--ok-bg);color:var(--ok)}.rs.bad{background:var(--danger-bg);color:var(--danger)}
.badt{color:var(--danger)!important;font-weight:600}
.hst{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
.hst i{width:9px;height:9px;border-radius:50%;background:currentColor}
.hst.ok{color:var(--ok)}.hst.bad{color:var(--danger)}.hst.off{color:#8c9694}
.hist{list-style:none;margin:0;padding:0 2px;display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--text)}
.hist time{display:block;font-size:13px;color:var(--muted)}

/* ---------- desktop ---------- */
.dtop{background:var(--night);height:68px;padding:0 32px;display:flex;align-items:center;gap:36px}
.dtop .word{font-size:26px}
.dnav{display:flex;gap:6px;flex:1}
.dnav a{color:#b9c4c2;text-decoration:none;font-weight:600;font-size:15px;padding:10px 14px;border-radius:10px}
.dnav a[aria-current]{color:#fff;background:var(--night-raised)}
.dmain{max-width:1040px;margin:0 auto;padding:36px 0 48px}
.hello.dark{color:var(--muted)}
.dgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.dtile{display:flex;align-items:flex-start;gap:14px;padding:18px;background:var(--white);border:1px solid var(--line);border-radius:18px;text-decoration:none;min-height:104px;transition:border-color .15s,box-shadow .15s}
.dtile:hover{border-color:#b7ccd0;box-shadow:0 8px 20px rgba(15,42,44,.08)}
.ttxt{flex:1;display:flex;flex-direction:column;gap:2px}
.ttxt b{color:var(--ink);font-size:17px}.ttxt span{color:var(--muted);font-size:14.5px}
.tnote{color:var(--text);font-size:13.5px;margin-top:4px}
.dsplit{display:grid;grid-template-columns:1fr 420px;min-height:732px}
.dleft{padding:30px 32px}
.dright{background:#fbfaf6;border-left:1px solid var(--line);padding:30px 28px}
.dhead{display:flex;justify-content:space-between;align-items:center}
.dfilters{display:flex;gap:14px;align-items:center;margin:20px 0 14px}
.dfilters .search{flex:1}.dfilters .seg-l{margin:0;width:300px}
.ptable{width:100%;border-collapse:separate;border-spacing:0;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ptable th{text-align:left;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:12px 16px;border-bottom:1px solid var(--line);background:#fbfaf6}
.ptable td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.ptable tr:last-child td{border-bottom:0}
.ptable tr.picked td{background:#eef4f4}
.ptable tr.picked td:first-child{box-shadow:inset 3px 0 0 var(--sea)}
.ptable .minis{justify-content:flex-start;flex-wrap:nowrap}
.ptable th:nth-child(2){width:170px}.ptable th:nth-child(3){width:190px}
.tn{display:flex;gap:12px;align-items:center}.tn b{display:block;color:var(--ink)}.tn small{color:var(--muted);font-size:13.5px}
.drow-btns{display:flex;flex-direction:column;gap:10px;margin-top:18px}.drow-btns .btn{width:100%;height:48px;font-size:15px}

.chg{display:inline-flex;align-items:center;gap:2px;color:var(--sea);font-weight:700;font-size:14px;text-decoration:none;min-height:44px;margin:-6px 0;padding-right:12px;align-self:flex-start}
.scrim{position:absolute;inset:0;background:rgba(15,42,44,.55);z-index:4}
.bsheet{position:absolute;left:0;right:0;bottom:0;z-index:5;background:var(--sand);border-radius:26px 26px 0 0;padding:12px 20px 30px;box-shadow:0 -10px 30px rgba(0,0,0,.2)}
.bsheet h2{font:600 24px/1.15 var(--display);color:var(--ink);margin:10px 0 0}
.grab{display:block;width:44px;height:5px;border-radius:3px;background:var(--sw-off);margin:0 auto}
.loselist{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.lose{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-height:56px}
.lose>b{color:var(--ink);flex:1}
.shead{display:flex;gap:12px;align-items:center;margin-top:8px}.shead h2{margin:0}.shead small{color:var(--muted);font-size:14px}
.opts.flat{background:var(--white);border:1px solid var(--line);border-radius:16px;margin-top:16px}
.tapps{color:var(--text);font-size:14px}

.langbox{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin-bottom:14px}
.langbox .lb{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:8px}
.langbox small{display:block;color:var(--muted);font-size:13.5px;margin-top:8px}
.seg2.full{display:grid;width:100%}
.lswitch{position:absolute;top:52px;right:16px;display:flex;background:rgba(255,255,255,.1);border-radius:12px;padding:3px;z-index:2}
.lswitch button{min-width:48px;height:44px;border:0;border-radius:9px;background:transparent;color:#d9e2df;font-weight:700;font-size:14px;cursor:pointer}
.lswitch button[aria-pressed="true"]{background:var(--gold);color:var(--ink)}

.top8{margin-top:8px}
.swrow.in{padding:12px 14px}
.linkbox{padding:14px;margin-top:12px;display:flex;flex-direction:column;gap:10px}
.linkbox .lt2{font-weight:700;color:var(--ink);font-size:15px}
.linkbox code{display:block;background:var(--sand);border-radius:10px;padding:10px 12px;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.linkbox small{color:var(--muted);font-size:13.5px;line-height:1.45}

/* ========== the real pages (not on the boards' canvas) ========== */
.sr,.sr-input{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0;border:0;opacity:0}
.dtop,.only-desk{display:none}
.top{padding-top:calc(env(safe-area-inset-top) + 14px)}
.sub{padding-top:calc(env(safe-area-inset-top) + 10px)}
.sub h1{overflow-wrap:anywhere}
.acct{background:none;border:0;cursor:pointer}
form.inline{display:inline}
form.stack{display:flex;flex-direction:column;gap:10px}
button.mrow{width:100%;background:none;border:0;border-top:1px solid var(--line);text-align:left;cursor:pointer;font:inherit;font-weight:600}
.menu>.mrow:first-child,.menu>form:first-child>.mrow{border-top:0}
.menu>form+form>.mrow,.menu>a+form>.mrow,.menu>form+a.mrow{border-top:1px solid var(--line)}
.mrow.static{cursor:default}
a.prow,a.dtile,a.arow{color:inherit}
.btn:disabled{opacity:.55;cursor:not-allowed}
.errpage{max-width:480px;margin:0 auto;padding:80px 24px;display:flex;flex-direction:column;align-items:center;gap:14px}

/* app icons (the boards used inline styles; the CSP allows none) */
img.blk,.aicon img{display:block}
.aicon.s48{width:48px;height:48px;border-radius:14px}
.aicon.s44{width:44px;height:44px;border-radius:13px}
.aicon.s40{width:40px;height:40px;border-radius:12px}
.aicon.s36{width:36px;height:36px;border-radius:10px}
.ic-mark{background:var(--night);color:var(--gold)}
.ic-clock{background:var(--sea);color:#fff}
.ic-grid,.ic-stays{background:var(--gold-soft);color:var(--gold-text)}
.ic-amigo{background:var(--amigo);color:#fff}
.ic-amigo b{font:700 21px var(--display)}
.ic-laptop{background:var(--sand-deep);color:var(--ink)}
.s36.ic-mark img{width:26px}
form.sep{border-top:1px solid var(--line)}

/* switches and segments as real inputs */
.swl{position:relative;flex:0 0 auto;display:inline-flex;cursor:pointer}
.swl input:checked+.sw{background:var(--sea)}
.swl input:checked+.sw::after{left:23px}
.swl input:disabled+.sw{opacity:.45;cursor:not-allowed}
.swl input:focus-visible+.sw{outline:3px solid var(--sea);outline-offset:2px}
button.swbtn{border:0;padding:0;background:none;cursor:pointer;display:inline-flex}
a.swlink{display:inline-flex}
.seg2 label,.seg-l label,.seg-l a{position:relative;display:flex}
.seg2 label span,.seg-l a{flex:1;display:flex;align-items:center;justify-content:center;height:44px;border-radius:9px;color:var(--text);font-weight:600;font-size:14.5px;padding:0 12px;cursor:pointer;text-decoration:none;white-space:nowrap}
.seg2 input:checked+span,.seg-l a[aria-current]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px rgba(15,42,44,.15)}
.seg2 input:focus-visible+span{outline:3px solid var(--sea);outline-offset:-2px}
.langbox .seg2{background:var(--sand)}
select.sel{appearance:none;-webkit-appearance:none;padding-right:34px;font-size:15px;cursor:pointer;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6967' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;max-width:60%}
.fld input:focus,.search:focus-within,select.sel:focus{outline:none;border-color:var(--sea);box-shadow:0 0 0 3px rgba(15,85,99,.15)}
.orow.adopt small{font-weight:600;text-align:right}
.fld .err{color:var(--danger);font-size:13.5px;font-weight:600}

/* P7: the options of an app show when its switch is on */
.oapp .opts{display:none}
.oapp:has(.ohead input:checked){border-color:#b7ccd0}
.oapp:has(.ohead input:checked) .opts{display:block}
@supports not selector(:has(*)){.oapp .opts{display:block}}
.ohead{cursor:pointer}
.oapp.dis .ohead{cursor:default}

/* P2 code */
.otp-input{display:block;width:100%;height:58px;margin:20px 0 6px;border-radius:13px;background:var(--white);border:1.5px solid var(--sea);box-shadow:0 0 0 3px rgba(15,85,99,.15);
  font:600 28px var(--display);letter-spacing:.6em;text-indent:.6em;text-align:center;color:var(--ink)}
.otp-input:focus{outline:none}
.qr{display:flex;justify-content:center;margin:16px 0 8px}
.qr svg{width:200px;height:200px;background:#fff;border-radius:14px;padding:10px}
.secret{display:block;font:600 15px ui-monospace,monospace;letter-spacing:.08em;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:10px 12px;word-break:break-all;color:var(--ink)}

/* sign-in pages fill the screen */
body.night{background:var(--night)}
.night-full{position:relative;min-height:100vh;min-height:100dvh}
.lswitch{top:calc(env(safe-area-inset-top) + 14px)}
.lswitch a{min-width:48px;height:44px;border-radius:9px;color:#d9e2df;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;text-decoration:none}
.lswitch a[aria-current]{background:var(--gold);color:var(--ink)}
.sheet .banner{margin:0 0 14px}

/* the bars that stay at the bottom of a phone */
.fab{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 20px);z-index:3}
.sticky{position:fixed;z-index:3;padding-bottom:calc(env(safe-area-inset-bottom) + 20px)}
.withsticky{padding-bottom:120px}

/* sheets: a link behind them closes them */
.scrim{position:fixed;display:block}
.bsheet{position:fixed;max-height:92vh;overflow:auto;padding-bottom:calc(env(safe-area-inset-bottom) + 26px)}
.bsheet .opts.flat{display:block}
body.has-sheet{overflow:hidden}

/* people: phone shows the list or the card */
.dleft,.dright{padding:16px 16px 28px}
.dright{background:transparent;border:0}
.dsplit{display:block;min-height:0}
.dsplit.has-card .dleft{display:none}
.dsplit:not(.has-card) .dright{display:none}
.dleft .withfab{padding:0 0 96px}
.dfilters{display:block;margin:0}
.dfilters .seg-l{width:auto;margin:12px 0 4px}
.ptable,.dhead .btn{display:none}
.dhead{display:none}
.pick{color:var(--muted);text-align:center;margin-top:80px}
.flash{margin-bottom:14px}
.hist li{line-height:1.4}
.empty-list{color:var(--muted);text-align:center;padding:24px 0}

@media (min-width:1024px){
  .top,.sub,.only-phone{display:none!important}
  .dtop{display:flex}
  .only-desk{display:block}
  .only-desk.desk-who{display:flex;gap:14px;align-items:center}
  .only-desk.drow-btns{display:flex}
  .drow-btns form .btn{width:100%}
  .dtop .acct{margin-left:auto}
  .page{max-width:1040px;margin:0 auto;padding:36px 32px 48px}
  .page.narrow{max-width:640px}
  .page .h1.desk-title{margin-bottom:18px}
  .home{padding:36px 0 48px;max-width:1040px;margin:0 auto}
  .home .list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
  .empty{padding-top:96px;max-width:520px;margin:0 auto}
  .dsplit{display:grid;grid-template-columns:1fr 420px;min-height:calc(100vh - 68px)}
  .dsplit .dleft,.dsplit .dright{display:block!important}
  .dleft{padding:30px 32px}
  .dright{background:#fbfaf6;border-left:1px solid var(--line);padding:30px 28px}
  .dhead{display:flex}
  .dhead .btn{display:inline-flex}
  .ptable{display:table}
  .plist,.fab{display:none}
  .dfilters{display:flex;margin:20px 0 14px}
  .dfilters .seg-l{width:300px;margin:0}
  .ptable tr{cursor:pointer}
  .ptable td a{text-decoration:none;color:inherit;display:block}
  .sticky{position:static;padding:20px 0 0;background:none}
  .withsticky{padding-bottom:48px}
  .bsheet{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(480px,92vw);border-radius:26px;padding:24px 28px 28px}
  .bsheet .grab{display:none}
  .night-full{align-items:center;justify-content:center}
  .night-full .login-brand{flex:0 0 auto;padding:40px 28px 28px}
  .night-full .sheet{width:440px;border-radius:26px;flex:0 0 auto;margin-bottom:60px}
  .dright .who.card{border:0;background:transparent;padding:4px 0 0}
}
