:root{color-scheme:dark;--bg:#101116;--surface:#191a23;--surface-2:#22232f;--line:#343548;--ink:#f5f2ff;--muted:#b5b2c7;--accent:#d0f7a2;--purple:#b4a0ff;--radius:16px;--radius-lg:24px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 56% -8%,#26203d 0,transparent 45%),#101116}button,input,select,textarea{font:inherit;color:inherit}button{border:1px solid var(--line);border-radius:11px;background:var(--surface-2);cursor:pointer;padding:.55rem .85rem;line-height:1.25;min-height:38px}button:hover:not(:disabled){border-color:var(--purple)}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--purple)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,select,textarea{border:1px solid var(--line);border-radius:10px;background:#14151d;padding:.54rem .67rem;max-width:100%}input[type=checkbox],input[type=radio]{accent-color:var(--purple)}input[type=file][hidden], [hidden]{display:none!important}h1,h2,h3{line-height:1.12;margin-top:0}p{line-height:1.55}.skip{position:absolute;left:1rem;top:-9rem;padding:1rem;z-index:100;background:#161620}.skip:focus{top:1rem}
.mast{position:relative;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;border-bottom:1px solid #302c3c;background:rgba(16,17,22,.92);padding:12px clamp(12px,3vw,42px)}.brand{display:flex;gap:10px;align-items:center;justify-self:start;text-align:left;border:0;background:none;padding:0;white-space:nowrap}.brand strong,.brand small{display:block}.brand img{flex:none}.brand strong{font-size:clamp(1.12rem,2.1vw,1.62rem);font-weight:850;letter-spacing:-.045em;line-height:1}.brand strong span{color:#ffc38a}.brand small{color:var(--muted);font-size:.69rem;letter-spacing:.12em;margin-top:4px}.mast nav{display:flex;gap:4px;align-items:center;padding:4px;border:1px solid #332e46;border-radius:15px;background:#171622;white-space:nowrap}.mast nav button{border:0;background:transparent;color:var(--muted);min-height:38px}.mast nav button[aria-current=page]{background:#30274c;color:#ebe2ff}.mast nav button:hover{color:var(--ink)}.utility{justify-self:end;display:flex;align-items:center;gap:.5rem;background:transparent;color:var(--muted)}
main{width:100%;margin:0 auto;flex:1;padding:clamp(12px,2vw,30px) clamp(10px,2vw,28px)}.boot{background:#1a1925;padding:1.3rem;border-radius:16px}footer{margin-top:auto;padding:12px clamp(14px,3vw,40px);border-top:1px solid #302c3c;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.76rem}footer a{text-underline-offset:3px}.accent{background:var(--accent);color:#14200d;border-color:transparent;font-weight:700}.actions{display:flex;gap:8px;flex-wrap:wrap}.toast{position:fixed;bottom:16px;right:16px;max-width:calc(100% - 32px);padding:12px 16px;background:#d8f5b7;color:#162113;border-radius:12px;z-index:20;box-shadow:0 6px 24px #0008}dialog{width:min(92vw,560px);padding:1.5rem;border:1px solid var(--line);border-radius:20px;background:#1b1a25;color:var(--ink)}dialog::backdrop{background:#0b0a12ba;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dialog-head h2{margin:0}
@media(max-width:720px){.mast{grid-template-columns:1fr auto;gap:8px}.mast nav{grid-row:2;grid-column:1/-1;justify-content:stretch;overflow:auto}.mast nav button{flex:1;padding:.45rem .52rem}.utility span{display:none}footer{flex-direction:column}.brand img{width:36px;height:36px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}} 

/* Table first: keep the navigation available without taking the tabletop. */
#show-navigation{position:fixed;z-index:5;top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));min-height:34px;padding:.25rem .62rem;background:#1c1a28e8;color:#e8defd;font-size:.76rem;border-color:#4b4264}
.mast{grid-template-columns:1fr auto auto 1fr}
#hide-navigation{font-size:.82rem;color:#d3c5fb;white-space:nowrap}
body.table-focus footer{display:none}
main[data-screen]{display:flex;flex-direction:column;min-width:0}
body.table-focus main[data-screen=table]{padding-block-start:max(clamp(4px,1vw,14px),env(safe-area-inset-top));padding-block-end:max(clamp(4px,.9vw,14px),env(safe-area-inset-bottom));padding-inline-start:max(clamp(4px,.9vw,14px),env(safe-area-inset-left));padding-inline-end:max(clamp(4px,.9vw,14px),env(safe-area-inset-right))}
main[data-screen] > :is(.pp-table,.ppc,.pp-t){flex:1;min-width:0}
@media(max-width:600px){main{padding:clamp(6px,2vw,12px)}}
body.table-focus .skip:focus{z-index:12}
@media(max-width:800px){.mast{grid-template-columns:1fr auto auto}.mast nav{grid-column:1/-1}#hide-navigation{justify-self:end}}
@media(max-width:410px){.mast #hide-navigation{font-size:.73rem;padding:.38rem}.mast .brand small{display:none}.mast .brand strong{font-size:clamp(1rem,4.5vw,1.14rem)}}

.pilot-notes{margin-top:1.15rem;border-top:1px solid var(--line);padding-top:.75rem}.pilot-notes summary{cursor:pointer;font-weight:700;color:var(--purple)}.pilot-notes ol{padding-inline-start:1.35rem;line-height:1.48}.pilot-notes li+li{margin-top:.48rem}#settings{max-height:calc(100dvh - 2rem);overflow:auto}

#account-sync-summary{margin:.45rem auto 0;width:min(100% - 1.5rem,72rem);display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.4rem .65rem;border:1px solid #564867;border-radius:.6rem;background:#1c1929;color:#e0cdee;font-size:.85rem}
#account-sync-summary[hidden]{display:none}
#account-sync-summary button{min-height:32px;padding:.25rem .55rem}
.pp-open-account{display:block;margin:.8rem auto}

@media (max-width:600px), (orientation:landscape) and (max-height:540px) and (max-width:1100px){
 body:not(.table-focus) .mast:not([hidden]){position:sticky;top:0;grid-template-columns:1fr auto;gap:3px;padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) 4px max(6px,env(safe-area-inset-left));background:#161321fa;z-index:7}
 .mast nav{width:100%;display:grid;grid-template-columns:.92fr 1.5fr .88fr;border-radius:10px;padding:2px;overflow:visible}
 .mast nav button{padding:.27rem .18rem;min-width:0;min-height:34px;font-size:clamp(.64rem,3.2vw,.84rem)}
 .mast .brand img{width:28px;height:28px}
 .mast .brand small{display:none}
 .mast .brand strong{font-size:1rem}
 .mast .utility{grid-row:1;grid-column:2;min-height:29px;padding:.22rem .4rem}
 #hide-navigation:not([hidden]){grid-row:1;grid-column:2;z-index:1;font-size:.66rem;transform:translateX(-110%)}
}

/* Installed and browser layouts use the same table. Portrait is navigation only. */
#turn-device{margin:auto;max-width:min(92vw,34rem);padding:2rem 1rem;text-align:center}
#turn-device img{display:block;margin:0 auto 1rem}
#turn-device h1{margin:0;color:#ffc38a;font-size:clamp(1.65rem,6vw,2.4rem)}
#turn-device p{margin:.85rem 0 .25rem}
#turn-device small{color:var(--muted)}
#turn-device nav{display:flex;justify-content:center;flex-wrap:wrap;gap:.45rem;margin-top:1.3rem}
.rotate-required :is(#main,#show-navigation,#main-nav,#account-sync-summary,footer,.skip){display:none!important}
