:root{--padl:max(20px,env(safe-area-inset-left));--padr:max(20px,env(safe-area-inset-right));--bg:#f5f5f7;--ink:#1d1d1f;--muted:#6e6e73;--card:#fff;--line:#e3e3e8;--field:#c7c7cc;--link:#0066cc;--accent:#0066cc;--accent-ink:#0057b0;--accent-soft:#eaf3ff;--well:#f5f5f7;--fill:#e9e9ee;--dark:#161618;--ease-out:cubic-bezier(.23,1,.32,1);--serif:"Instrument Serif","Times New Roman",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:76px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
a{color:inherit;text-decoration:none}
a,button,summary,label,select{touch-action:manipulation;-webkit-tap-highlight-color:rgba(42,74,154,.14)}
.wrap{max-width:1160px;margin:0 auto;padding-left:var(--padl);padding-right:var(--padr)}
.center{text-align:center}
.narrow{max-width:760px}
.section{padding:84px var(--padr) 84px var(--padl)}

/* nav */
.nav{border-bottom:1px solid var(--line);background:rgba(245,245,247,.88);backdrop-filter:blur(12px);position:sticky;top:0;z-index:10;padding-top:env(safe-area-inset-top)}
.nav-in{display:flex;align-items:center;justify-content:space-between;min-height:60px}
.brand{display:flex;align-items:center;gap:8px;font-family:var(--serif);font-size:26px;min-height:44px}
.brand img{border-radius:7px}
.nav nav{display:flex;align-items:center;gap:6px}
.link{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font-size:16px;color:var(--muted)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:14px 22px;border-radius:12px;font-weight:500;font-size:16px;border:1px solid transparent;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent;transition:transform .16s var(--ease-out),background-color .16s ease,border-color .16s ease}
/* a button answers a press at once, and a pointer resting on it */
.btn:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.btn.dark:hover{background:var(--accent-ink)}.btn.light:hover{background:#fafafc;border-color:#aeaeb2}.btn.quiet:hover{background:rgba(22,22,26,.05);color:var(--ink)}}
@media (prefers-reduced-motion:reduce){.btn{transition:none}.btn:active{transform:none}}
.btn.sm{min-height:44px;padding:0 16px;font-size:15px}
.btn.dark{background:var(--accent);color:#fff;font-weight:600}
.btn.light{background:#fff;border-color:var(--field);color:var(--ink)}
.btn.quiet{background:none;color:var(--muted)}
.btn.cream{background:#fff;color:var(--ink)}
.btn.ghost{background:#1b2230;color:#e8eaf0;border-color:#2c3548}
.btn:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--link);outline-offset:2px}

/* type */
h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.02em;line-height:1.02;margin:0}
h1{font-size:clamp(40px,8vw,92px)}
h2{font-size:clamp(38px,5.5vw,60px)}
h1 em,h2 em{font-style:italic}
.lead{font-size:19px;color:var(--muted);margin:16px auto 0;max-width:720px}
.lead.strong{color:var(--ink);font-weight:500;font-size:21px;margin-top:28px}
.lead.sm{font-size:19px;max-width:440px;margin-top:48px}
.lead.left{margin-left:0}
.narrow-p{max-width:620px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;letter-spacing:.04em;color:var(--muted);margin:0 0 18px}
.eyebrow.plain{display:block}
.dot{width:8px;height:8px;border-radius:50%;background:#d6443a;box-shadow:0 0 0 3px rgba(214,68,58,.18)}
.fine{font-size:13px;color:#8a8a90;margin-top:18px}
.fine.left{text-align:left;max-width:712px;margin:20px auto 0}
.fine a{color:var(--link)}
.muted a{color:var(--link)}

/* hero */
.hero{text-align:center;padding-top:70px}
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}

/* split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.split.rev .art{order:-1}
.split .copy h2{max-width:480px}
.ticks{list-style:none;padding:0;margin:26px 0 30px;display:grid;gap:14px}
.ticks li{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.tick{flex:none;margin-top:1px}
.art{position:relative;min-height:300px}

/* cards */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:48px;text-align:left}
.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:12px 12px 24px}
.card-art{display:block;width:100%;height:auto;border-radius:14px;margin-bottom:18px}
.card h3{font-size:17px;margin:0 12px 8px}
.card p{font-size:14px;color:var(--muted);margin:0 12px 14px}
.dots{margin:0 12px 14px;padding-left:16px;font-size:13px;color:var(--muted);display:grid;gap:8px}
.dots li::marker{color:#3f7a52}
.more{display:inline-flex;gap:6px;align-items:center;min-height:44px;margin:0 12px;font-size:15px;color:var(--link)}

/* ask */
.ask{max-width:760px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px 30px;box-shadow:0 8px 28px -14px rgba(0,0,0,.15)}
.ask-head{display:flex;gap:14px;align-items:center}
.spark{width:36px;height:36px;border-radius:10px;background:#e8ebf8;color:var(--link);display:grid;place-items:center}
.ask h3{margin:0;font-size:21px;font-weight:500}.ask p{margin:2px 0 0;font-size:14px;color:var(--muted)}
.ask-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:22px}
.ask-out{margin:18px 0 0;padding:14px 16px;border-radius:12px;background:var(--bg,#f5f5f7);font-size:16px;line-height:1.5;color:var(--ink);white-space:pre-line}
.ask-out.bad{background:#fbeceb;color:#8f2b22}
.ask label{display:grid;gap:6px;font-size:14px;font-weight:500}
.ask input{padding:12px 14px;min-height:48px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;background:#fff;width:100%}

/* playlists */
.now{font-size:15px;margin:34px 0 18px}.now span{color:var(--muted);margin-left:12px}
.pills{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;align-items:center}
.pill{padding:8px 16px;border-radius:999px;background:#fff;font-size:14px;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.pill.on{background:var(--ink);color:#fff}.again{font-size:13px;color:#8a8a90}
.steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;text-align:left;margin-top:64px;max-width:1130px;margin-left:auto;margin-right:auto}
.steps3 i{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;font-style:normal;font-size:13px;color:var(--muted)}
.steps3 h4{margin:14px 0 6px;font-size:17px;font-weight:600}.steps3 p{margin:0;font-size:14px;color:var(--muted)}

.how{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:56px;text-align:left}
.how-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:26px}
.num{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink);color:#fff;font-size:14px;font-weight:600}
.how-card h3{margin:18px 0 8px;font-size:19px;font-weight:600}.how-card p{margin:0;font-size:15px;color:var(--muted)}

.features{display:grid;grid-template-columns:repeat(3,1fr);gap:0 36px;margin-top:56px;text-align:left}
.features div{padding:32px 0 36px;border-top:1px solid var(--line)}
.features h3{margin:0 0 8px;font-size:18px;font-weight:600}.features p{margin:0;font-size:15px;color:var(--muted)}

/* faq */
.faq{max-width:712px;margin:48px auto 0;text-align:left;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:14px 4px;font-size:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";width:8px;height:8px;border-right:1.5px solid #888;border-bottom:1.5px solid #888;transform:rotate(45deg);margin-top:-4px;flex:none;transition:transform .2s}
.faq details[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.faq details p{margin:0 4px 20px;color:var(--muted);font-size:15px}

/* closer + footer */
.closer{background:radial-gradient(ellipse at 50% 120%,#15264a 0,var(--dark) 60%);color:#fff;text-align:center;padding:120px var(--padr) 110px var(--padl)}
.closer h2{font-size:clamp(38px,6vw,64px)}
.closer p{color:#a5acbb;font-size:17px;margin:18px 0 0}
.foot{background:var(--dark);color:#8c93a3;border-top:1px solid #151a26;padding:48px 0 calc(40px + env(safe-area-inset-bottom))}
.foot-in{display:grid;grid-template-columns:1.6fr repeat(4,auto);gap:40px;align-items:start}
.foot .brand{color:#fff}
.foot-brand p{font-size:13px;max-width:330px;margin:14px 0 0}.foot-brand .copy{margin-top:12px}
.foot h5{margin:0 0 6px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500}
.foot-in>div:not(.foot-brand)>a{display:flex;align-items:center;min-height:44px;font-size:15px;color:#aab1c0}
@media (hover:hover){.foot a:hover{color:#fff}}

@media (max-width:860px){
  .split,.cards,.how,.features,.steps3{grid-template-columns:1fr}
  .split.rev .art{order:0}
  .art{margin-bottom:30px}
  .ask-row{grid-template-columns:1fr}
  .foot-in{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}
  .section{padding:60px 20px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ---------- inner pages ---------- */
.reading{max-width:712px;padding:72px var(--padr) 96px var(--padl);overflow-wrap:anywhere}
.reading.wide{max-width:960px}
.reading p,.reading li{color:var(--muted);font-size:16px}
.reading a{color:var(--link)}
@media (hover:hover){.reading a:hover{text-decoration:underline}}
.kicker{font-size:13px;letter-spacing:.04em;color:var(--muted);margin:0 0 14px}
.kicker a{color:var(--link)}
.page-h1{font-family:var(--serif);font-weight:400;font-size:clamp(42px,7vw,76px);line-height:1.02;letter-spacing:-.02em;margin:0 0 22px}
.page-h1.sm{font-size:clamp(40px,6vw,64px)}
.page-lead{font-size:19px;color:var(--muted);margin:0 0 36px}
.sub{color:#8a8a90!important;font-size:14px!important;margin:0 0 36px}
.sec{font-family:var(--serif);font-weight:400;font-size:clamp(30px,4vw,40px);letter-spacing:-.01em;margin:56px 0 14px}
.prose h2{font-size:21px;font-weight:600;font-family:var(--sans);margin:44px 0 12px;color:var(--ink);letter-spacing:0}
.prose h3{font-size:16px;font-weight:600;margin:26px 0 8px;color:var(--ink)}
.prose p,.prose li{line-height:1.7}
.prose ul{padding-left:22px;display:grid;gap:8px}
.prose .caps{font-size:15px}
.callout{background:#e3e3e5;border-radius:10px;padding:14px 16px;font-size:14px!important;margin-top:28px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0 8px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:24px}
.tile .n{font:12px/1 ui-monospace,Menlo,monospace;color:#8a8a90}
.tile h3{margin:16px 0 8px;font-size:18px;font-weight:600;color:var(--ink)}
.tile p{margin:0;font-size:15px}
.cta-row.left{justify-content:flex-start;margin-top:32px}
.fine.left.big{font-size:15px;color:var(--ink);max-width:none;margin-top:36px}

/* forms */
.form{display:grid;gap:18px;max-width:560px;margin-top:8px}
.form label{display:grid;gap:7px;font-size:14px;font-weight:500;color:var(--ink)}
.form input,.form select,.form textarea{padding:12px 14px;min-height:48px;border:1px solid var(--field);border-radius:12px;background:#fff;font:inherit;font-size:16px;color:var(--ink);width:100%}
.form select{max-width:560px}
.form textarea{resize:vertical}
.form .check{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;font-weight:400;color:var(--muted)}
.form .check input{width:22px;min-height:0;height:22px;flex:none;padding:0}
.btn.block{width:100%;justify-content:center}
.form .hint{margin:-6px 0 0;font-size:13px;color:#8a8a90}
.form .terms{align-items:flex-start;line-height:1.5}
.form .terms input{margin-top:0}
.form .terms a{color:var(--link)}
.form .btn{justify-self:start}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.notice{border-radius:10px;padding:12px 16px;font-size:15px;margin:0 0 20px;max-width:560px}
.notice.ok{background:#e4f1e8;color:#1f5a35}
.notice.bad{background:#f8e5e3;color:#8f2b22}


/* cards (guides, support) */
.gcards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.gcard{display:block;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px 22px;transition:box-shadow .15s,transform .15s}
@media (hover:hover){.gcard:hover{box-shadow:0 8px 24px -12px rgba(0,0,0,.2);transform:translateY(-1px);text-decoration:none!important}}
.gcard h3{margin:0 0 8px;font-size:17px;font-weight:600;line-height:1.3;color:var(--ink)}
.gcard p{margin:0;font-size:14px;line-height:1.5}

/* guide body */
.plain{padding-left:22px;display:grid;gap:8px;margin:0}
.steps{padding-left:22px;display:grid;gap:14px;margin:0}
.steps li{line-height:1.6}.steps b{color:var(--ink)}
.faq.flush{margin:12px 0 0;max-width:none}

/* auth */
.authwrap{display:grid;place-items:start center;padding:96px var(--padr) 140px var(--padl);min-height:62vh}
.authcard{width:100%;max-width:400px;background:var(--card);border:1px solid var(--line);border-radius:26px;padding:28px 28px 30px;box-shadow:0 12px 40px -24px rgba(0,0,0,.25)}
.authcard h1{font-family:var(--serif);font-weight:400;font-size:34px;margin:0 0 6px;letter-spacing:-.01em}
.authcard .sub{margin:0 0 20px}
.authcard .form{max-width:none;gap:16px}
.auth-links{text-align:center;font-size:15px;color:var(--muted);margin:22px 0 0}
.auth-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:4px}
.auth-links a{color:var(--link);display:inline-flex;align-items:center;min-height:44px;padding:0 4px}

@media (max-width:860px){.gcards,.tiles{grid-template-columns:1fr}.reading{padding-top:48px}}

/* real artwork */
.art img{display:block;width:100%;height:auto}
.playlist-img{display:block;width:min(900px,100%);height:auto;margin:48px auto 0}

/* ---------- phones ---------- */
@media (max-width:860px){
  .hero{padding-top:40px}
  .section{padding-top:48px;padding-bottom:48px}
  .art{min-height:0;margin-bottom:0}
  .split{gap:28px}
  .authwrap{padding-top:40px;padding-bottom:80px}
}
@media (max-width:560px){
  .cta-row{flex-direction:column;align-items:stretch}
  .cta-row .btn{width:100%}
  .form .btn{justify-self:stretch;width:100%}
  .ask{padding:22px 18px}
  .authcard{padding:24px 20px 26px;border-radius:22px}
  .reading{padding-top:36px;padding-bottom:72px}
  .closer{padding-top:84px;padding-bottom:80px}
  .foot-in{gap:8px 16px}
  .foot-brand{margin-bottom:20px}
  .auth-links .sep{display:none}
  .auth-links{flex-direction:column}
}

.auth-links.new{margin-top:0;color:var(--muted)}
.docs{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:6px}
.docs a{display:inline-flex;align-items:center;min-height:44px;color:var(--link)}
.docs li{display:flex;flex-direction:column;gap:0}
.docs .when{color:#8a8a90;font-size:14px;margin:-8px 0 4px}

/* ---------- settings ---------- */
.navform{margin:0;display:inline-flex}
.navform .btn{min-height:44px}
.sett{padding-top:40px;padding-bottom:88px;max-width:1000px}
.sett .page-h1{margin-bottom:22px}
.sett-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sett-list a{display:block;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;min-height:64px}
.sett-list a b{display:block;font-size:17px;font-weight:600;color:var(--ink)}
.sett-list a span{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.sett-list a.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.sett.in-section .sett-nav{display:none}
.back{display:inline-flex;align-items:center;min-height:44px;color:var(--link);font-size:16px;margin-bottom:4px}
.sett-main{min-width:0;max-width:640px}
.lead-in{font-size:16px;color:var(--muted);margin:0 0 18px}
.lead-in b{color:var(--ink);overflow-wrap:anywhere}
.h2s{font-family:var(--sans);font-size:19px;font-weight:600;letter-spacing:0;margin:38px 0 14px}
.opt{color:#8a8a90;font-weight:400}
.muted{color:var(--muted);font-size:14px}
.choice{border:0;margin:0;padding:0;display:grid;gap:2px}
.choice legend{font-size:14px;font-weight:500;padding:0;margin-bottom:6px}
.sess-list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:10px}
.sess{display:flex;gap:12px;justify-content:space-between;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.sess>div{min-width:0}
.sess b{overflow-wrap:anywhere}
.sess form{margin:0;flex:none}
.badge{display:inline-block;background:#e4f1e8;color:#1f5a35;border-radius:999px;font-size:12px;font-weight:500;padding:2px 9px;margin-left:6px;vertical-align:middle}
.danger-box{background:#fbeceb;border:1px solid #efc9c5;color:#6d231c;border-radius:16px;padding:16px 18px;margin:0 0 20px}
.danger-box p{color:#6d231c;font-size:15px;margin:8px 0 0}
.btn.danger{background:#b3261e;color:#fff;box-shadow:0 2px 6px rgba(179,38,30,.3)}

/* a logged-in header: links in a row on wider screens, a hamburger menu on phones */
.nav-menu{display:none;position:relative}
.nav-burger{list-style:none;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;border-radius:12px;-webkit-tap-highlight-color:transparent}
.nav-burger::-webkit-details-marker{display:none}
.nav-burger i{position:relative;display:block;width:20px;height:2px;background:var(--ink);box-shadow:0 -6px 0 var(--ink),0 6px 0 var(--ink)}
.nav-menu[open] .nav-burger i{background:transparent;box-shadow:none}
.nav-menu[open] .nav-burger i::before,.nav-menu[open] .nav-burger i::after{content:"";position:absolute;left:0;top:0;width:20px;height:2px;background:var(--ink);transform:rotate(45deg)}
.nav-menu[open] .nav-burger i::after{transform:rotate(-45deg)}
.nav-panel{position:absolute;right:0;top:100%;margin-top:8px;width:min(260px,calc(100vw - 32px));background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgba(22,22,26,.16);padding:6px;display:grid;gap:2px}
.nav-panel a,.nav-out{display:flex;align-items:center;min-height:52px;padding:0 16px;border-radius:12px;font:inherit;font-size:17px;color:var(--ink);background:none;border:0;width:100%;text-align:left;cursor:pointer}
.nav-panel a:active,.nav-out:active{background:#ece9e0}
.nav-panel .navform{display:block;border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
@media (max-width:699px){
  .nav .nav-wide{display:none}
  .nav-menu{display:block}
}

/* ---------- displays (website) ---------- */
.dsp{padding-top:40px;padding-bottom:88px;max-width:720px}
.dsp.wide{max-width:1216px}
.dsp .page-h1{margin-bottom:18px;text-wrap:balance}
/* the top of a page: its name and a line about it on the left, the one thing to do on the right */
.page-top{position:relative;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0 16px;margin:0 0 28px}
.page-top .page-h1{margin:0 0 6px}
.page-top .muted{margin:0;font-size:15px}
/* the list: one card per display, its screen on top */
.dlist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.dcard{display:flex;flex-direction:column;height:100%;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:14px;color:inherit;transition:transform .2s var(--ease-out),box-shadow .2s ease}
.dcard:active{transform:scale(.99)}
@media (hover:hover) and (pointer:fine){.dcard:hover{box-shadow:0 1px 2px rgba(0,0,0,.05),0 18px 34px -22px rgba(0,0,0,.28)}}
@media (prefers-reduced-motion:reduce){.dcard{transition:none}.dcard:active{transform:none}}
.dcard .dc-pic{--fw:16;--fh:11;--inset:1.4px}
.dcard-info{display:grid;gap:4px;padding:14px 8px 6px}
.dcard-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dc-name{font-size:19px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.dcard .muted{margin:0;font-size:13px}
.dcard-now{margin:0;font-size:15px}
.dempty{background:var(--card);border:1px dashed var(--line);border-radius:22px;padding:28px 24px}
.dempty p{margin:0 0 8px}
/* a state in words, with a dot: filled when all is well, hollow otherwise */
.dbadge{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--muted);white-space:nowrap}
.dbadge::before{content:"";width:8px;height:8px;border-radius:50%;border:2px solid currentColor;box-sizing:border-box}
.dbadge.online,.dbadge.waiting{color:#1f6b3a}
.dbadge.online::before,.dbadge.waiting::before{background:#2e8b50;border-color:#2e8b50}
.dbadge.connect{color:var(--accent-ink,#243566)}
.dsp input[name=code]{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:22px;letter-spacing:.12em}
.dsp .panel{margin:16px 0}
.dsp .panel>form.form{margin-top:4px}
.dsp>form,.dsp>.panel+form{margin:0 0 4px}

/* ---------- photos (website) ---------- */
.lib-tabs{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.lib-tabs [role=tab]{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:16px}
.lib-tabs .sel{background:var(--ink);color:#fff;border-color:var(--ink)}
.ph-pickwrap{position:relative;display:inline-flex}
.ph-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.ph-pickwrap:has(.ph-file:focus-visible) .ph-pick{outline:2px solid var(--link);outline-offset:2px}
.ph-msgs .notice{margin:0 0 10px}
.ph-grid{list-style:none;margin:0 0 6px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.ph-card{display:grid;gap:8px;align-content:start}
.ph-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;background:var(--fill)}
/* a photo on its way into the Library keeps a place in the grid */
.ph-adding{aspect-ratio:1/1;place-content:center;text-align:center;border-radius:16px;background:var(--fill);color:var(--muted);font-size:14px}
.ph-types{margin:18px 0 0}
/* what you can do with the photos you have chosen: stays in view while you scroll */
.ph-bar{position:sticky;top:8px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 16px;padding:10px 12px 10px 20px;border-radius:16px;background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.06),0 12px 28px -18px rgba(0,0,0,.3)}
.ph-bar[hidden],.ph-confirm[hidden]{display:none}
.ph-bar-acts,.ph-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ph-confirm{flex:1 0 100%;padding:10px 0 2px;border-top:1px solid var(--line)}
.ph-confirm span{flex:1 1 200px}
.ph-to{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);white-space:nowrap}
.dsp .ph-to select{min-height:44px;max-width:180px;padding:0 10px;border:1px solid var(--field);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:15px}
.ph-row{display:grid;gap:8px}
.ph-row .btn{width:100%}
.ph-empty{background:var(--card);border:1px dashed var(--line);border-radius:18px;padding:22px 20px;margin:0}

/* ---------- add a display: three numbered parts ---------- */
.add{display:grid;gap:16px}
.dsp .add .panel{margin:0;padding:24px}
.add h2{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.add-n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;font-weight:600;display:grid;place-items:center}
.add-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.add-kind{position:relative;display:grid;place-items:center;min-height:56px;padding:8px;border:1px solid var(--field);border-radius:12px;font-weight:500;text-align:center;cursor:pointer}
.add-kind input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.add-kind:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.add-kind:has(input:focus-visible){outline:2px solid var(--link);outline-offset:2px}
.add-how{margin:0 0 6px;color:var(--muted)}
.add-how b{color:var(--ink)}
/* only the words for the screen chosen (all of them where a browser cannot tell) */
@supports selector(:has(a)){.add-how{display:none}
  .add-step:has(input[value=appletv]:checked) .add-how[data-for=appletv],.add-step:has(input[value=ipad]:checked) .add-how[data-for=ipad],.add-step:has(input[value=browser]:checked) .add-how[data-for=browser]{display:block}}
.add .form{max-width:none;margin-top:10px}
.dsp .add input[name=code]{height:76px;font-size:34px;text-align:center;letter-spacing:.2em}
.add-next{margin:-6px 0 0}

/* ---------- a display's screens ---------- */
/* a panel's heading with a quiet line under it */
.panel-h{margin:0 0 6px}
.panel .panel-h h2,.panel-h p{margin:0}
.panel-h p{font-size:14px;margin-top:2px}
/* One row per kind of screen, ruled off from the next: its name (a link to its settings) and what it plays, then how long it
   stays and its switch, each under a small label. On a phone the two controls go under the name. */
.scr{display:grid;gap:12px 24px;padding:16px 0;border-bottom:1px solid var(--line)}
.scr:last-child{border-bottom:0}
/* a screen's row with a grip of six dots at its left (public/screen-order.js adds the grip) */
.scr-item{display:flex;align-items:center;border-bottom:1px solid var(--line)}
.scr-item:last-child{border-bottom:0}
.scr-item>.scr{flex:1;min-width:0;border-bottom:0}
.scr-item>.grip{margin:0 6px 0 -10px}
.scr-what{display:grid;gap:3px;min-width:0}
.scr-name{justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:-8px 0;padding-right:12px;font-size:17px;font-weight:600;color:var(--link)}
.scr-name::after{content:"›";font-weight:400}
@media (hover:hover) and (pointer:fine){.scr-name:hover{text-decoration:underline}}
.scr p{margin:0}
.scr-act{display:flex;gap:24px;align-items:flex-end;justify-content:space-between}
.scr-act form{margin:0}
.scr-stay label,.scr-on{display:grid;gap:4px;font-size:12px;color:var(--muted)}
.scr-on{justify-items:center}
.dsp .scr-stay select{min-height:44px;padding:0 10px;border:1px solid var(--field);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:15px}
@media (min-width:640px){.scr{grid-template-columns:minmax(0,1fr) auto;align-items:center}}
/* a switch: on or off, at a touch. The button is the whole tap area; the track and the knob are drawn inside it. */
.switch{position:relative;display:block;width:52px;height:44px;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.switch::before{content:"";position:absolute;left:0;top:6px;width:52px;height:32px;border-radius:999px;background:var(--field);transition:background-color .2s ease}
.switch::after{content:"";position:absolute;left:3px;top:9px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s var(--ease-out)}
.switch[aria-checked=true]::before{background:var(--accent)}
.switch[aria-checked=true]::after{transform:translateX(20px)}
.switch:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:12px}
@media (prefers-reduced-motion:reduce){.switch::before,.switch::after{transition:none}}
.ph-pick-grid{margin-top:10px}
.ph-choose{position:relative;display:grid;gap:6px;cursor:pointer;min-height:44px}
.ph-choose input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:2}
.ph-choose img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;background:var(--fill)}
.ph-choose input:checked~img{outline:3px solid var(--accent);outline-offset:2px}
.ph-none{display:grid;place-items:center;aspect-ratio:1/1;border-radius:10px;background:var(--fill,#e8e6de);color:var(--muted);font-size:14px}
.ph-name{font-size:14px;color:var(--muted)}
.ph-tick{position:absolute;top:10px;left:10px;width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.9);border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25);z-index:1}
.ph-choose input:checked~.ph-tick{background:var(--accent);box-shadow:none}
.ph-choose input:checked~.ph-tick::after{content:"";position:absolute;left:7px;top:2px;width:7px;height:13px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ph-choose input:focus-visible~.ph-tick{outline:2px solid var(--link);outline-offset:2px}
.dsp select{min-height:48px;font-size:16px}

/* ---------- the display itself (/go and /screen) ---------- */
body.dev{margin:0;background:#090d16;color:#f3f2ee;min-height:100vh;min-height:100dvh}
.dev-main{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px}
.dev-logo{border-radius:14px}
.dev-err{color:#ff9b93;font-size:16px;margin:0}
.dev-foot{color:#8c93a3;font-size:14px;margin:6px 0 0}
.dev-foot a{color:#c4c8d3;display:inline-flex;align-items:center;min-height:44px}
/* /go: the number and the QR code, sized from the screen so a TV can be read from across the room (plain sizes first, for old browsers) */
.go{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;gap:6vmin}
.go-say{flex:1 1 320px;max-width:960px;display:flex;flex-direction:column;align-items:center}
.go .dev-logo{width:56px;width:clamp(48px,7vmin,88px);height:auto}
.go h1{color:#fff;font-size:34px;font-size:clamp(30px,5.4vmin,72px);margin:.5em 0 .35em}
.go-how{color:#c4c8d3;font-size:18px;font-size:clamp(17px,2.9vmin,36px);line-height:1.45;margin:0;max-width:27em}
.go-how b{color:#fff;font-weight:600}
.go-code{font:600 56px/1.1 ui-monospace,Menlo,Consolas,monospace;font-size:clamp(52px,15vmin,190px);letter-spacing:.06em;color:#fff;margin:.3em 0 .1em;white-space:nowrap}
.go-msg{color:#a5acbb;font-size:17px;font-size:clamp(16px,2.4vmin,30px);min-height:1.5em;margin:0}
.go-qr{flex:0 0 auto;width:46vmin;width:clamp(170px,46vmin,520px);background:#fff;padding:3vmin;border-radius:2.4vmin}
.go-qr[hidden]{display:none}
.go-qr img{display:block;width:100%;height:auto}
.stage{width:100%;min-height:100vh;min-height:100dvh;display:grid;place-items:center;overflow:hidden;position:absolute;inset:0;background:radial-gradient(ellipse at 50% 120%,#15264a 0,#090d16 60%)}
.d-wait{display:grid;gap:clamp(10px,2.4vh,22px);justify-items:center;text-align:center;padding:5vh 6vw;animation:d-drift 90s ease-in-out infinite alternate}
.d-wait .dev-logo{width:clamp(48px,9vmin,96px);height:auto}
.d-name{font-family:var(--serif);font-weight:400;font-size:clamp(44px,12vmin,160px);line-height:1;letter-spacing:-.02em;color:#fff;overflow-wrap:anywhere;max-width:90vw;margin:0}
.d-msg{font-size:clamp(18px,3.4vmin,40px);color:#c4c8d3;margin:0;display:flex;align-items:center;gap:.6em}
.d-dot{width:.55em;height:.55em;border-radius:50%;background:#d6443a;box-shadow:0 0 0 .2em rgba(214,68,58,.2);animation:d-pulse 2.4s ease-in-out infinite}
.d-hint{font-size:clamp(14px,2.2vmin,26px);color:#8c93a3;margin:0;max-width:34em}
.d-photos{position:absolute;inset:0;background:#000}
.d-layer{position:absolute;inset:0;overflow:hidden;background:#000;opacity:0;transition:opacity 1.2s ease}
.d-layer.on{opacity:1}
@media (prefers-reduced-motion:reduce){.d-layer{transition:none}}
/* the Stocks screen, laid out like the first Inklyng's. --u is one unit of size, set from the screen by display-stocks.js */
.d-stocks{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font-family:var(--sans);--u:1px;
  --bg:#010101;--ink:#fff;--soft:#e5e5ea;--grey:#8e8e93;--panel:#1c1c1e;--hair:#2c2c2e;--rule:#38383a;--up:#30d158;--down:#ff453a;--upbg:rgba(48,209,88,.16);--downbg:rgba(255,69,58,.16);--tk:#0b0c0e;--tkline:#26272c;--tkink:#f3f2ee}
.d-stocks.light{--bg:#eceae3;--ink:#1b1c20;--soft:#3d3e44;--grey:#6b6c72;--panel:#fefefe;--hair:#e4e2db;--rule:#d3d0c6;--up:#1c8f55;--down:#d2443a;--upbg:rgba(28,143,85,.14);--downbg:rgba(210,68,58,.12);--tk:#e2dfd6;--tkline:#d3d0c6;--tkink:#1b1c20}
.d-stk-view{position:relative;flex:1;min-height:0}
.d-stk-layer{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease}
.d-stk-layer.on{opacity:1}
.d-stk-card{position:absolute;inset:0;display:flex;flex-direction:column;padding:calc(54*var(--u));overflow:hidden}
.d-stk-head{display:flex;justify-content:space-between;align-items:flex-start;height:calc(128*var(--u));flex:none}
.d-stk-who{display:flex;flex-direction:column;min-width:0;flex:1}
.land .d-stk-who{margin-right:calc(40*var(--u))}
.d-stk-name{font-size:calc(74*var(--u));font-weight:700;letter-spacing:calc(-2*var(--u));line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.port .d-stk-name{font-size:calc(84*var(--u))}
.d-stk-sub{display:flex;justify-content:space-between;font-size:calc(30*var(--u));color:var(--grey);margin-top:calc(10*var(--u));white-space:nowrap}
.d-stk-open{font-size:calc(26*var(--u))}
.d-stk-open.on{color:var(--up)}
.d-stk-pill{flex:none;display:flex;align-items:center;gap:calc(10*var(--u));font-size:calc(24*var(--u));font-weight:600;color:var(--grey);margin-top:calc(14*var(--u));padding:calc(6*var(--u)) calc(18*var(--u));border-radius:999px;background:var(--panel);white-space:nowrap}
.d-stk-pill i{width:calc(10*var(--u));height:calc(10*var(--u));border-radius:50%;background:var(--grey)}
.d-stk-pill.on{color:var(--up);background:var(--upbg)}
.d-stk-pill.on i{background:var(--up)}
.d-stk-rule{height:1px;background:var(--rule);margin-top:calc(22*var(--u));flex:none}
.d-stk-body{display:flex;flex:1;min-height:0}
.d-stk-main{display:flex;flex-direction:column;flex:1;min-width:0}
.d-stk-pricebox{height:calc(112*var(--u));margin-top:calc(18*var(--u));flex:none}
.d-stk-pricerow{display:flex;align-items:baseline;gap:calc(22*var(--u))}
.d-stk-price{font-size:calc(62*var(--u));font-weight:700;letter-spacing:calc(-1*var(--u));line-height:1.2;font-variant-numeric:tabular-nums}
.d-stk-day{display:flex;align-items:baseline;gap:calc(18*var(--u));font-size:calc(38*var(--u));font-weight:600}
.d-stk-day.up,.d-mk-move.up,.d-mg-move.up,.d-tk-move.up{color:var(--up)}
.d-stk-day.down,.d-mk-move.down,.d-mg-move.down,.d-tk-move.down{color:var(--down)}
.d-stk-today{font-size:calc(30*var(--u));color:var(--grey);margin-top:calc(4*var(--u));white-space:pre}
.d-stk-tabs{display:flex;align-items:center;gap:calc(8*var(--u));margin-top:calc(18*var(--u));height:calc(68*var(--u));flex:none}
.d-stk-tabs div{display:flex;align-items:center;justify-content:center;height:calc(62*var(--u));min-width:calc(82*var(--u));padding:0 calc(14*var(--u));border-radius:999px;font-size:calc(28*var(--u));font-weight:500;color:var(--soft)}
.d-stk-tabs .sel{font-weight:700;color:var(--ink);background:var(--hair)}
.d-stk-chart{display:flex;flex-direction:column;flex:1;min-height:calc(160*var(--u));margin-top:calc(22*var(--u))}
.d-stk-panel{display:flex;flex:1;min-height:0;background:var(--panel);border-radius:calc(18*var(--u));overflow:hidden;--tone:var(--up)}
.d-stk-panel.down{--tone:var(--down)}
.d-stk-plot{position:relative;flex:1;min-width:0}
.d-stk-plot svg{position:absolute;inset:0;width:100%;height:100%}
.d-stk-grid{stroke:var(--hair);stroke-width:max(1px,calc(1.5*var(--u)))}
.d-stk-line{fill:none;stroke:var(--tone);stroke-width:max(2px,calc(3.2*var(--u)));stroke-linejoin:round;stroke-linecap:round}
.d-stk-stop0{stop-color:var(--tone);stop-opacity:.5}
.d-stk-stop1{stop-color:var(--tone);stop-opacity:.03}
.d-stk-axis{flex:none;display:flex;flex-direction:column;justify-content:space-between;width:calc(150*var(--u));border-left:max(1px,calc(1.5*var(--u))) solid var(--hair);padding:calc(4*var(--u)) 0 calc(4*var(--u)) calc(18*var(--u));font-size:calc(25*var(--u));font-weight:600;color:var(--soft);font-variant-numeric:tabular-nums}
.d-stk-labels{position:relative;flex:none;height:calc(44*var(--u));margin:calc(6*var(--u)) calc(150*var(--u)) 0 0}
.d-stk-labels div{position:absolute;top:calc(6*var(--u));margin-left:calc(12*var(--u));font-size:calc(24*var(--u));font-weight:600;color:var(--soft);white-space:nowrap}
.d-stk-nochart{flex:1;display:flex;align-items:center;justify-content:center;font-size:calc(28*var(--u));color:var(--grey);background:var(--panel);border-radius:calc(18*var(--u));margin-bottom:calc(50*var(--u))}
.d-stk-stats{display:flex;flex:none;margin-top:calc(26*var(--u));height:calc(208*var(--u));background:var(--panel);border-radius:calc(18*var(--u));padding:0 calc(26*var(--u))}
.d-stk-col{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}
.d-stk-col+.d-stk-col{padding-left:calc(22*var(--u));margin-left:calc(22*var(--u));border-left:1px solid var(--hair)}
.d-stk-stat{display:flex;height:calc(66*var(--u));align-items:center;justify-content:space-between;gap:calc(10*var(--u))}
.d-stk-stat span{font-size:calc(28*var(--u));color:var(--grey);white-space:nowrap}
.d-stk-stat b{font-size:calc(30*var(--u));font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.d-mk{display:flex;flex-direction:column;flex:none;width:28%;margin:calc(22*var(--u)) 0 0 calc(34*var(--u));background:var(--panel);border-radius:calc(18*var(--u));padding:calc(30*var(--u));min-height:0}
.d-mk-cap{font-size:calc(20*var(--u));font-weight:600;letter-spacing:calc(2.4*var(--u));color:var(--grey);height:calc(40*var(--u));flex:none}
.d-mk-row{display:flex;flex:1;min-height:0;align-items:center;justify-content:space-between}
.d-mk-row+.d-mk-row{border-top:max(1px,calc(1.5*var(--u))) solid var(--hair)}
.d-mk-who{flex:1;min-width:0}
.d-mk-name{font-size:calc(28*var(--u));font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-mk-note{font-size:calc(18*var(--u));color:var(--grey);margin-top:calc(3*var(--u));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-mk-spark{flex:none;width:calc(96*var(--u));height:calc(44*var(--u));margin-right:calc(14*var(--u));fill:none;stroke-width:max(2px,calc(2.4*var(--u)));stroke-linejoin:round;stroke-linecap:round}
.d-mk-spark.up{stroke:var(--up)}
.d-mk-spark.down{stroke:var(--down)}
.d-mk-right{display:flex;flex-direction:column;align-items:flex-end;flex:none}
.d-mk-level{font-size:calc(28*var(--u));font-weight:600;font-variant-numeric:tabular-nums}
.d-mk-move{font-size:calc(21*var(--u));font-weight:600;border-radius:calc(8*var(--u));padding:calc(2*var(--u)) calc(10*var(--u));margin-top:calc(4*var(--u));font-variant-numeric:tabular-nums}
.d-mk-move.alone{font-size:calc(30*var(--u));margin-top:0}
.d-mk-move.up{background:var(--upbg)}
.d-mk-move.down{background:var(--downbg)}
.d-mg{display:flex;flex-wrap:wrap;flex:none;gap:calc(12*var(--u));margin-top:calc(26*var(--u))}
.d-mg-cell{display:flex;flex-direction:column;justify-content:space-between;width:calc((100% - 24*var(--u))/3);height:calc(92*var(--u));background:var(--panel);border-radius:calc(14*var(--u));padding:calc(12*var(--u)) calc(16*var(--u))}
.d-mg-name{font-size:calc(22*var(--u));font-weight:600;white-space:nowrap}
.d-mg-row{display:flex;justify-content:space-between;align-items:baseline}
.d-mg-level{font-size:calc(20*var(--u));color:var(--grey)}
.d-mg-move{font-size:calc(22*var(--u));font-weight:600}
.d-tk{flex:none;height:10%;background:var(--tk);border-top:1px solid var(--tkline);overflow:hidden;display:flex;align-items:center;font-family:ui-sans-serif,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.d-tk[hidden]{display:none}
.d-tk-strip{display:flex;width:max-content;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.d-tk-unit{display:flex}
.d-tk-item{display:inline-flex;align-items:baseline;gap:.26em;padding-right:1.43em;white-space:nowrap;color:var(--tkink)}
.d-tk-move{font-weight:600}
.d-stk-note{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:var(--grey);font-size:calc(36*var(--u))}
.d-stk-note[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.d-stk-layer{transition:none}}
.d-loading{color:#8c93a3;font-size:20px}
.d-status{position:fixed;right:16px;bottom:16px;background:#1b2230;color:#c4c8d3;border:1px solid #2c3548;border-radius:999px;padding:8px 14px;font-size:14px;z-index:5}
@keyframes d-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes d-drift{from{transform:translate(-1.2vw,-1vh)}to{transform:translate(1.2vw,1vh)}}   /* a slow drift so nothing is static, kind to OLED screens */
@media (prefers-reduced-motion:reduce){.d-wait,.d-dot{animation:none}}

/* ---------- admin ---------- */
.adm{padding-top:24px;padding-bottom:88px;max-width:1180px}
.admtabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 18px;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.admtabs a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:15px}
.admtabs a.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:grid;gap:2px;align-content:start}
.stat b{font-size:28px;font-weight:600;letter-spacing:-.02em}
.stat span{font-size:14px;color:var(--muted)}
.stat em{font-style:normal;font-size:13px;color:#8a8a90}
.stat em a{color:var(--link);display:inline-flex;align-items:center;min-height:44px}
.cols{display:grid;gap:14px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px 16px 12px;margin-bottom:14px;min-width:0}
.panel h2{font-family:var(--sans);font-size:17px;font-weight:600;letter-spacing:0;margin:0 0 10px}
.panel>.muted{margin:-4px 0 10px}
.pad{padding:6px 0 4px;margin:0}
.soon{background:#eef0f8;color:#243566;border-radius:12px;padding:12px 14px;margin:0;font-size:15px}
.tblwrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-weight:500;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:10px;border-bottom:1px solid var(--line);vertical-align:top}
.tbl a{color:var(--link);display:inline-flex;align-items:center;min-height:44px}
.bars{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bars li{display:grid;grid-template-columns:minmax(80px,38%) 1fr auto;gap:10px;align-items:center;font-size:14px}
.bl{overflow-wrap:anywhere}
.bb{height:10px;background:var(--fill,#e8e6de);border-radius:99px;overflow:hidden}
.bb i{display:block;height:100%;background:var(--ink);border-radius:99px}
.bv{color:var(--muted);font-variant-numeric:tabular-nums}
.searchbar{display:flex;gap:10px;margin-bottom:10px}
.searchbar input{flex:1;min-width:0;min-height:48px;padding:0 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;background:var(--card)}
.sortline{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;font-size:14px;color:var(--muted);margin:6px 0 12px}
.sortline a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 12px;border-radius:999px;color:var(--link)}
.sortline a.on{background:var(--ink);color:#fff}
.pager{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px}
.pager a{display:inline-flex;align-items:center;min-height:44px;color:var(--link);padding:0 8px}
.msg{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-bottom:12px}
.msg.done{opacity:.7}
.msg header{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}
.msg p{margin:4px 0;overflow-wrap:anywhere}
.msg .body{white-space:pre-wrap;color:var(--ink);font-size:15px;margin:8px 0 12px}
.msg form{margin:0}
.msg a,.kv a{color:var(--link)}
.kv{margin:0;display:grid;gap:8px}
.kv div{display:flex;justify-content:space-between;gap:14px;font-size:14px}
.kv dt{color:var(--muted);flex:none}
.kv dd{margin:0;text-align:right;overflow-wrap:anywhere}
@media (max-width:759px){
  .tbl thead{display:none}
  .tbl,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
  .tbl tr{border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin-bottom:10px;background:#fff}
  .tbl td{border:0;padding:4px 0;display:flex;justify-content:space-between;gap:14px;text-align:right}
  .tbl td::before{content:attr(data-l);color:var(--muted);text-align:left;flex:none}
  .tbl td:first-child{display:block;text-align:left;font-size:15px}
  .tbl td:first-child::before{display:none}
}
@media (min-width:760px){.stats{grid-template-columns:repeat(3,1fr)}.cols{grid-template-columns:1fr 1fr}}
@media (min-width:1000px){.stats{grid-template-columns:repeat(6,1fr)}}
@media (min-width:900px){
  .sett.in-section{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:start}
  .sett.in-section .sett-nav{display:block;position:sticky;top:84px}
  .sett .back{display:none}
}

/* ---------- adjust a photo for a display ---------- */
.ph-adjust{margin-top:6px;width:100%;justify-content:center}
.adj-grid{display:grid;gap:14px;margin-top:10px}
.adj-stage{position:sticky;top:0;z-index:3;background:var(--bg,#f1efe9);padding:8px 0 6px;margin:0 -2px}
.adj-box{position:relative;overflow:hidden;background:#000;border-radius:12px;width:100%;margin:8px auto 0;touch-action:none;cursor:grab;aspect-ratio:16/9}
.adj-box img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.adj-help{margin:6px 0 0;font-size:13px;text-align:center}
.adj-note{margin:8px 0 0;font-size:13px}
.adj-controls{display:grid;gap:12px;min-width:0}
.adj-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.adj-tools button,.adj .seg button{min-height:44px;padding:0;border-radius:12px;border:1px solid var(--line,#d7d4cc);background:#fff;font:inherit;font-size:14px;color:inherit;cursor:pointer;white-space:nowrap;overflow:hidden}
.adj .seg button{font-size:15px}
.adj-tools button.sel,.adj .seg button.sel{background:#16161a;color:#fff;border-color:#16161a}
.adj .seg{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.adj-sliders{background:var(--card,#fff);border:1px solid var(--line,#d7d4cc);border-radius:16px;padding:6px 14px}
.adj-s{display:grid;grid-template-columns:96px minmax(0,1fr) 46px;align-items:center;gap:8px;min-height:48px;font-size:15px}
.adj-s input[type=range]{width:100%;min-width:0;margin:0}
.adj-s output{text-align:right;color:var(--muted,#6b6b73);font-size:13px;font-variant-numeric:tabular-nums}
.adj-bg input[type=color]{width:44px;height:36px;padding:2px;border-radius:8px;justify-self:start;grid-column:2 / 4}
.adj-save{width:100%}
@media (min-width:860px){.adj-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:24px}.adj-stage{position:static;padding:0}}
@media (max-width:859px){.adj .page-lead{display:none}.adj h1.page-h1{margin-bottom:0}}

/* ---------- a display's page ---------- */
/* A display's preview keeps the screen's own shape (--ar, width / height) and is fitted inside whatever frame holds it
   (--frame, the frame's width / height), so it is never stretched or cropped. */
.dv-prev{position:relative;overflow:hidden;background:#000;border-radius:6px;box-shadow:0 0 0 1px rgba(0,0,0,.12),0 12px 24px -12px rgba(0,0,0,.35);aspect-ratio:var(--ar,16 / 9);width:min(100%,calc(100% * (var(--ar,16 / 9)) / (var(--frame,var(--ar,16 / 9)))));display:grid;place-items:center}
.dv-prev.none{background:#1b2230;color:#aab1c0;font-size:12px;text-align:center;padding:6px}
/* A display's screen stands in a soft well. Wherever one is used, the well is the same shape for every display, so cards line up
   whichever way a display is turned; its padding has the well's own proportions, so the room left for the screen keeps that shape. */
.dc-pic{--fw:4;--fh:3;--inset:4px;--frame:var(--fw) / var(--fh);aspect-ratio:var(--frame);padding:calc(var(--fh)*var(--inset)) calc(var(--fw)*var(--inset));background:var(--well,#eeebe2);border-radius:14px;min-width:0;display:grid;place-items:center}
/* facts, as small labels over their values */
.facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
.facts dt{font-size:12px;color:var(--muted)}
.facts dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* the page: its name and state; then what it is showing with what it plays under it, and the display itself beside them */
.dv-state{margin:0 0 14px;min-height:24px;display:flex;align-items:center;gap:14px}
/* its card: what it is showing, with the display itself beside it (underneath on a phone) */
.dsp .dv-top{display:grid;gap:8px 28px;padding:16px;margin:0 0 24px}
.dv-now{min-width:0}
.dv-now .dc-pic{--fw:16;--fh:10;--inset:2px}
.dv-cap{margin:14px 8px 4px;font-weight:600}
.dv-itself{min-width:0;padding:8px 8px 4px}
.dsp .scrs{padding:22px 24px 6px}
@media (min-width:760px){.dsp .dv-top{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center}.dv-itself{padding:8px 12px 8px 0}}
/* what you can do to the display itself: quiet, at the foot of its panel */
.dv-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;margin:18px 0 0}
.dv-acts form{margin:0}
/* what you can do to the display itself: a card of its own, last on the page */
.dsp .dv-do{padding:16px;margin:24px 0 0}
.dv-do .dv-acts{margin:0}
.dv-acts .rename[open]{flex:1 0 100%}
.panel>form.dv-acts{gap:8px;margin:4px 0 6px}
.swap[open]{flex:1 0 100%}
.swap-body{margin:10px 0 0;padding:16px;border-radius:16px;background:var(--well,#eeebe2)}
.swap .form{max-width:none}
@media (max-width:599px){.panel>form.dv-acts>*,.swap[open] .btn.dark{width:100%}}

/* photos screen: settings save as you go */
.ph-adjust[hidden]{display:none}
.sp-opts{display:grid;gap:12px;margin-top:6px}
.sp-msg{min-height:22px;margin:4px 0 0;font-size:14px}
.sp-msg.bad{color:#8f2b22}
@media (min-width:600px){.sp-opts{grid-template-columns:1fr 1fr}}
.dsp.sp{max-width:1160px}
.sp .form{max-width:none}
.sp .scr-main .panel{margin:0}
@media (min-width:920px){.sp-opts{grid-template-columns:1fr}}   /* beside the photos the choices stack */

/* the app's footer: one quiet line */
.foot.slim{background:none;color:var(--muted);border-top:1px solid var(--line);margin-top:24px;padding:14px 0 calc(14px + env(safe-area-inset-bottom))}
.foot.slim .wrap{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;align-items:center;font-size:13px}
.foot.slim nav{display:flex;gap:4px}
.foot.slim a{color:var(--muted);display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
/* things that open in place (rename a display, connect a different device): a button, and what it opens slides in under it */
.rename summary{list-style:none;display:flex;width:fit-content}
.rename summary::-webkit-details-marker{display:none}
.rename>.form{gap:8px;max-width:none;margin:10px 0 4px}
.rename .form input{background:#fff}
.rename[open]>:not(summary){animation:open-in .22s var(--ease-out)}
@keyframes open-in{from{opacity:0;transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.rename[open]>:not(summary){animation:none}}
@media (min-width:600px){.rename>.form{grid-template-columns:minmax(0,1fr) auto}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* stocks screen settings */
/* ---------- Stocks settings: a picture of the screen, then two panels. One column on a phone; picture beside the panels on a wide screen ---------- */
.dsp.stk{max-width:1160px}
.stk .page-h1{margin-bottom:14px}
.scr-cols{display:grid;gap:14px}
.scr-side{min-width:0}
.scr-main{min-width:0}
.scr-prev{position:relative;width:100%;border-radius:14px;overflow:hidden;background:#010101;box-shadow:0 1px 2px rgba(22,22,26,.08),0 10px 30px rgba(22,22,26,.10)}
.scr-prev.tall{max-width:300px;margin:0 auto}
.scr-prev[hidden]{display:none}
.scr-stage{position:absolute;inset:0}
.stk .sp-msg{margin:10px 2px 0}
.stk .panel{padding:16px;margin:0 0 14px}
.stk .panel h2{margin-bottom:12px}
.stk-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0}
.stk-add input{min-height:48px;font-size:17px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:#fff;width:100%}
.wx-here{margin:12px 0 0}
.wx-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.wx-seg button{min-height:44px;border-radius:12px;border:1px solid var(--line,#d7d4cc);background:#fff;font:inherit;font-size:15px;color:inherit;cursor:pointer}
.wx-seg button.sel{background:#16161a;color:#fff;border-color:#16161a}
.stk-hits{grid-column:1 / -1;list-style:none;margin:0;padding:4px;display:grid;background:#fff;border:1px solid var(--line);border-radius:14px}
.stk-hits[hidden]{display:none}
.stk-hits button{display:flex;align-items:baseline;gap:12px;width:100%;min-height:48px;padding:8px 12px;border:0;border-radius:10px;background:none;font:inherit;font-size:16px;color:inherit;text-align:left;cursor:pointer}
.stk-hits button:hover,.stk-hits button:focus-visible{background:#f1efe7}
.stk-hits b{flex:none;min-width:4.2em;font-weight:600}
.stk-hits span{color:var(--muted);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stk-list{list-style:none;margin:10px 0 0;padding:0}
.stk-list:empty{margin:0}
.stk-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding-left:2px;border-top:1px solid var(--line)}
.stk-list li:first-child{border-top:0}
.stk-list li>span{display:flex;align-items:baseline;gap:12px;min-width:0}
.stk-list b{flex:none;min-width:3.6em;font-size:17px;font-weight:600;letter-spacing:.02em}
.stk-list small{font-size:15px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stk-x{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:none;font:inherit;font-size:24px;line-height:1;color:var(--muted);cursor:pointer}
.stk-x:hover,.stk-x:focus-visible{background:#ece9df;color:var(--ink)}
.stk #stk-empty{margin:12px 2px 0}
.stk-opt{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;min-height:60px;padding:8px 0;border-top:1px solid var(--line);font-size:16px;font-weight:500}
.stk-opts h2+.stk-opt{border-top:0;padding-top:0}
.stk-opt.stack{flex-wrap:wrap}
.stk-opt select{min-height:44px;font-size:16px;width:auto;min-width:0;max-width:55%;padding:0 34px 0 12px;border-radius:10px;border:1px solid var(--line);background-color:#fff}
.scr-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:3px;border-radius:12px;background:var(--fill,#e8e6de);flex:1 1 260px;max-width:420px}
.scr-seg button{min-height:44px;padding:0 4px;border:0;border-radius:9px;background:none;font:inherit;font-size:15px;font-weight:500;color:#4a4a52;cursor:pointer;white-space:nowrap}
#stk-theme{grid-auto-flow:row;grid-template-columns:1fr 1fr 1.7fr}   /* the third choice has the longest name */
.stk-opt>label{white-space:nowrap}
.scr-seg button.sel{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(22,22,26,.16)}
.stk-switch{cursor:pointer}
.stk-switch span{display:grid;gap:2px;min-width:0}
.stk-switch b{font-weight:500}
.stk-switch small{font-size:14px;font-weight:400;color:var(--muted)}
.stk-switch input{flex:none;-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin:0;border-radius:999px;background:#cfccc2;cursor:pointer;transition:background .15s ease}
.stk-switch input::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(22,22,26,.3);transition:transform .15s ease}
.stk-switch input:checked{background:var(--accent,#16161a)}
.stk-switch input:checked::after{transform:translateX(20px)}
.stk-switch input:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.stk-indices{padding:2px 0 6px}
.stk-indices[hidden]{display:none}
.stk-chips{display:flex;flex-wrap:wrap;gap:8px}
.stk-chips button{min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line,#d7d4cc);background:#fff;font:inherit;font-size:15px;color:inherit;cursor:pointer}
.stk-chips button.sel{background:#16161a;color:#fff;border-color:#16161a}
.stk-chips button:disabled{opacity:.45;cursor:default}
.stk-hint{font-size:14px;margin:10px 0 0}
.stk-clone select{width:100%;min-height:48px;font-size:16px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background-color:#fff}
.stk-confirm{margin-top:10px;display:grid;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.stk-confirm[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.stk-switch input,.stk-switch input::after{transition:none}}
@media (max-width:519px){.stk-opt.stack .scr-seg{flex-basis:100%;max-width:none;gap:0}}
@media (max-width:399px){#stk-range{grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr))}}   /* seven choices can't each be a full tap wide on the narrowest phones, so they take two rows */
.stk-margins{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:2px 0 6px}
.stk-margins[hidden]{display:none}
.stk-margins label{display:grid;gap:6px;font-size:14px;font-weight:500;min-width:0}
.stk-margins select{min-height:44px;font-size:16px;width:100%;min-width:0;padding:0 30px 0 12px;border-radius:10px;border:1px solid var(--line);background-color:#fff}
.stk-margins .stk-hint{grid-column:1 / -1;margin:0}
@media (max-width:479px){.stk-margins{grid-template-columns:1fr}}
.scr-side .panel{margin-top:14px}
@media (min-width:920px){
  .scr-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}   /* the picture and the stocks on the left, the choices beside them */
}

/* ---------- the Weather screen on a display (display-weather.js); every size is a multiple of --u ---------- */
.d-wx{position:absolute;inset:0;display:flex;gap:calc(56*var(--u));padding:calc(64*var(--u)) calc(84*var(--u));color:#fff;font-family:var(--sans);--u:1px;background:linear-gradient(180deg,#245f9f,#5b96d0);overflow:hidden}
.d-wx.tall{flex-direction:column;padding:calc(84*var(--u)) calc(64*var(--u))}
.d-wx-main{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:space-between;gap:calc(24*var(--u))}
.d-wx-side{flex:1.1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;gap:calc(28*var(--u))}
/* The right column runs from the top of the place name to the bottom of the fact cards: the radar keeps its shape, the other cards share what is left. */
.d-wx-side>.d-wx-card:not(.d-wx-radar){flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.d-wx-side>.d-wx-card>.d-wx-hours,.d-wx-side>.d-wx-card>.d-wx-days{flex:1 1 auto;align-content:space-around}
.d-wx-side>.d-wx-card>.d-wx-hours{align-items:center}
.d-wx-place{margin:0;font-family:var(--sans);font-size:calc(60*var(--u));font-weight:600;line-height:1.1;letter-spacing:0}
.d-wx-date{margin:calc(8*var(--u)) 0 0;font-size:calc(32*var(--u));opacity:.9}
.d-wx-now{display:flex;align-items:center;gap:calc(36*var(--u))}
.d-wx-temp{font-size:calc(280*var(--u));font-weight:200;line-height:.9;letter-spacing:-.03em}
.d-wx-ic svg{display:block;width:1em;height:1em}
.d-wx-text{margin:0;font-size:calc(56*var(--u));font-weight:500;line-height:1.15}
.d-wx-sub{margin:calc(10*var(--u)) 0 0;font-size:calc(34*var(--u));opacity:.92;white-space:pre-wrap}
.d-wx-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(16*var(--u))}
.d-wx-card{background:rgba(14,32,72,.34);border:1px solid rgba(255,255,255,.14);border-radius:calc(28*var(--u));padding:calc(24*var(--u)) calc(28*var(--u));-webkit-backdrop-filter:blur(calc(26*var(--u))) saturate(1.2);backdrop-filter:blur(calc(26*var(--u))) saturate(1.2);box-shadow:0 calc(8*var(--u)) calc(40*var(--u)) rgba(0,0,0,.12)}
.d-wx-main,.d-wx-side{position:relative;z-index:1;text-shadow:0 1px calc(14*var(--u)) rgba(0,0,0,.18)}
.d-wx-card{text-shadow:none}
.d-wx.night .d-wx-card,.d-wx.rain .d-wx-card,.d-wx.storm .d-wx-card{background:rgba(14,24,48,.4)}
/* the radar card (weather-radar.js): a map with the radar over it, a ring at the range the owner chose and a dot for the place */
.d-wx-rwrap{position:relative}
.d-wx-rtime{position:absolute;left:calc(14*var(--u));bottom:calc(28*var(--u));padding:calc(4*var(--u)) calc(12*var(--u));border-radius:calc(10*var(--u));background:rgba(8,18,40,.62);font-size:calc(22*var(--u));font-weight:500;font-variant-numeric:tabular-nums}
.d-wx-rmap{position:relative;width:100%;aspect-ratio:3 / 1;border-radius:calc(18*var(--u));overflow:hidden;background:#0c1d33;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.d-wx-rmap>*{position:absolute}
.d-wx-rbase,.d-wx-rframe{left:0;top:0;width:100%;height:100%;display:block}
.d-wx-rframe{opacity:0;object-fit:fill}
.d-wx-rframe.on{opacity:1}
.d-wx-rring{left:50%;top:50%;height:94%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:calc(2*var(--u)) dashed rgba(215,228,245,.7)}
.d-wx-rpin{left:50%;top:50%;width:calc(22*var(--u));height:calc(22*var(--u));transform:translate(-50%,-50%);border-radius:50%;background:#ef3b36;border:calc(3*var(--u)) solid #fff;box-shadow:0 0 0 calc(6*var(--u)) rgba(239,59,54,.3)}
.d-wx-rticks{left:calc(14*var(--u));right:calc(14*var(--u));bottom:calc(10*var(--u));height:calc(5*var(--u));display:flex;gap:calc(4*var(--u))}
.d-wx-rticks i{flex:1;border-radius:999px;background:rgba(255,255,255,.22)}
.d-wx-rticks i.on{background:rgba(255,255,255,.85)}
/* with the radar on the screen, the rest is set a little closer so all of it fits */
.d-wx.rad .d-wx-side{gap:calc(20*var(--u))}
.d-wx.rad .d-wx-side .d-wx-card{padding:calc(18*var(--u)) calc(24*var(--u))}
.d-wx.rad .d-wx-h{margin-bottom:calc(10*var(--u))}
.d-wx.rad .d-wx-hour span{font-size:calc(24*var(--u))}
.d-wx.rad .d-wx-hour .d-wx-ic{margin:calc(4*var(--u)) auto;font-size:calc(46*var(--u))}
.d-wx.rad .d-wx-hour b{font-size:calc(32*var(--u))}
.d-wx.rad .d-wx-days{gap:calc(4*var(--u))}
.d-wx.rad .d-wx-day{font-size:calc(30*var(--u));gap:calc(12*var(--u))}
.d-wx.rad .d-wx-day .d-wx-ic{font-size:calc(40*var(--u))}
.d-wx.tall.rad{padding:calc(48*var(--u)) calc(56*var(--u));gap:calc(28*var(--u))}
.d-wx.tall.rad .d-wx-main{flex:0 0 auto;gap:calc(14*var(--u))}
.d-wx.tall.rad .d-wx-side{flex:1 1 0;gap:calc(18*var(--u))}
.d-wx.tall.rad .d-wx-temp{font-size:calc(210*var(--u))}
.d-wx.tall.rad .d-wx-text{font-size:calc(46*var(--u))}
.d-wx.tall.rad .d-wx-fact b{font-size:calc(32*var(--u))}
.d-wx.tall.rad .d-wx-facts .d-wx-card{padding:calc(14*var(--u)) calc(20*var(--u))}
/* the sky behind it (weather-sky.js) */
.d-sky{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.d-sky>*,.d-sky-sun>*,.d-sky-moon>*{position:absolute}
.d-sky-clouds{will-change:transform;inset:-4% -18%;animation:d-sky-drift 280s linear infinite alternate}
.d-sky-clouds svg,.d-sky-stars{display:block;width:100%;height:100%}
.d-sky-stars{inset:0}
.d-sky-gl{inset:0;display:block;width:100%;height:100%}
.d-sky-sun{left:38%;top:20%;width:0;height:0}
.d-wx.tall .d-sky-sun{left:74%;top:14%}
.d-sky.dusk .d-sky-sun{top:70%;left:47%}
.d-wx.tall .d-sky.dusk .d-sky-sun{top:66%;left:28%}
.d-sky-bloom{left:calc(-520*var(--u));top:calc(-520*var(--u));width:calc(1040*var(--u));height:calc(1040*var(--u));border-radius:50%;background:radial-gradient(circle,rgba(255,251,230,.95) 0,rgba(255,238,170,.55) 9%,rgba(255,224,138,.22) 28%,rgba(255,224,138,0) 62%)}
.d-sky.partly .d-sky-bloom{opacity:.8}
.d-sky-disc{left:calc(-64*var(--u));top:calc(-64*var(--u));width:calc(128*var(--u));height:calc(128*var(--u));border-radius:50%;background:radial-gradient(circle,#fffef4 0,#fff6cf 60%,#ffe9a0 100%);box-shadow:0 0 calc(60*var(--u)) calc(30*var(--u)) rgba(255,240,180,.7)}
.d-sky-moon{left:44%;top:20%;width:0;height:0}
.d-wx.tall .d-sky-moon{left:76%;top:12%}
.d-sky-moonglow{left:calc(-300*var(--u));top:calc(-300*var(--u));width:calc(600*var(--u));height:calc(600*var(--u));border-radius:50%;background:radial-gradient(circle,rgba(223,232,255,.45) 0,rgba(157,182,255,.14) 25%,rgba(111,140,255,0) 62%)}
.d-sky-moondisc{left:calc(-56*var(--u));top:calc(-56*var(--u));width:calc(112*var(--u));height:calc(112*var(--u));border-radius:50%;background:radial-gradient(circle at 36% 34%,#fdfdf6 0,#e8ebf2 55%,#c4cad8 100%);box-shadow:0 0 calc(50*var(--u)) calc(14*var(--u)) rgba(190,205,255,.5)}
.d-sky-fall{will-change:transform;left:-10%;top:-100%;width:120%;height:200%;background-repeat:repeat;animation:d-sky-fall linear infinite}
.d-sky-fall.snow{animation-name:d-sky-fall-snow}
.d-sky-fog{left:-30%;width:160%;height:34%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 70%);filter:blur(calc(16*var(--u)))}
.d-sky-fog.a{top:34%;animation:d-sky-mist 90s ease-in-out infinite alternate}
.d-sky-fog.b{top:58%;animation:d-sky-mist 120s ease-in-out infinite alternate-reverse;opacity:.8}
.d-sky-flash{inset:0;background:#dfe8ff;opacity:0;animation:d-sky-flash 11s linear infinite}
.d-sky-shade{inset:0;background:linear-gradient(90deg,rgba(0,0,0,.16) 0,rgba(0,0,0,0) 55%),linear-gradient(0deg,rgba(0,0,0,.14) 0,rgba(0,0,0,0) 40%)}
.d-sky.snow .d-sky-shade,.d-sky.fog .d-sky-shade{background:linear-gradient(90deg,rgba(20,30,50,.2) 0,rgba(0,0,0,0) 55%),linear-gradient(0deg,rgba(20,30,50,.16) 0,rgba(0,0,0,0) 40%)}
@keyframes d-sky-drift{from{transform:translateX(-5%)}to{transform:translateX(5%)}}
@keyframes d-sky-fall{from{transform:translate3d(0,0,0)}to{transform:translate3d(-4%,50%,0)}}
@keyframes d-sky-fall-snow{from{transform:translate3d(0,0,0)}to{transform:translate3d(3%,50%,0)}}
@keyframes d-sky-mist{from{transform:translateX(-6%)}to{transform:translateX(6%)}}
@keyframes d-sky-flash{0%,60%,100%{opacity:0}61%{opacity:.5}62%{opacity:.08}63%{opacity:.4}66%{opacity:0}}
@media (prefers-reduced-motion:reduce){.d-sky *{animation:none!important}}
.d-wx-fact span{display:flex;align-items:center;gap:calc(10*var(--u));font-size:calc(20*var(--u));letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.d-wx-fi,.d-wx-hic{display:inline-block;flex:none;font-style:normal;width:1em;height:1em;line-height:0}
.d-wx-fi{font-size:calc(28*var(--u))}
.d-wx-hic{font-size:calc(26*var(--u));margin-right:calc(10*var(--u));vertical-align:-.15em}
.d-wx-fi svg,.d-wx-hic svg{display:block;width:1em;height:1em}
.d-wx-fact b{display:block;margin-top:calc(8*var(--u));font-size:calc(38*var(--u));font-weight:500;white-space:nowrap}
.d-wx-h{margin:0 0 calc(16*var(--u));font-family:var(--sans);font-size:calc(22*var(--u));font-weight:500;letter-spacing:.06em;text-transform:uppercase;line-height:1.2;opacity:.85}
.d-wx-hours{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:calc(8*var(--u));text-align:center}
.d-wx-hour span{display:block;font-size:calc(26*var(--u));opacity:.92;white-space:nowrap}
.d-wx-hour .d-wx-ic{width:1em;margin:calc(12*var(--u)) auto;font-size:calc(56*var(--u));opacity:1}
.d-wx-hour b{font-size:calc(36*var(--u));font-weight:500}
.d-wx-days{display:grid;gap:calc(12*var(--u))}
.d-wx-day{display:grid;grid-template-columns:calc(130*var(--u)) calc(48*var(--u)) calc(84*var(--u)) calc(76*var(--u)) minmax(0,1fr) calc(76*var(--u));align-items:center;gap:calc(16*var(--u));font-size:calc(34*var(--u))}
.d-wx-day .d-wx-ic{font-size:calc(46*var(--u))}
.d-wx-rain{font-size:calc(26*var(--u));opacity:.9}
.d-wx-lo{text-align:right;opacity:.85}
.d-wx-hi{text-align:right;font-weight:500}
.d-wx-bar{position:relative;height:calc(8*var(--u));border-radius:999px;background:rgba(255,255,255,.24)}
.d-wx-bar i{position:absolute;top:0;bottom:0;border-radius:999px;background:#fff}
.d-wx-note{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:0 8%;text-align:center;font-size:calc(44*var(--u));opacity:.92}

/* ---------- the app (what a logged-in person manages): its shell ---------- */
body.app{font-size:15px}
body.app .panel,body.app .dcard{border-color:transparent;border-radius:22px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
body.app .panel h2{font-size:21px;line-height:28px;font-weight:600}
body.app .page-h1.sm{font-size:clamp(36px,5vw,48px);line-height:1.08}
/* the shell: the places to go down the side, the page beside them */
.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh;min-height:100dvh}
.app-side{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;padding:28px 16px 20px;display:flex;flex-direction:column;gap:28px;border-right:1px solid var(--line)}
.app-side .brand{padding:0 8px;gap:10px;font-size:28px}
.app-side .brand img{border-radius:8px}
.app-places{display:grid;gap:4px}
.app-link{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--ink);font-size:15px}
.app-link[aria-current]{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.app-out{margin:auto 0 0}
.app-out button{width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;color:var(--muted);font:inherit;text-align:left;cursor:pointer}
@media (hover:hover) and (pointer:fine){.app-link:not([aria-current]):hover,.app-out button:hover{background:rgba(0,0,0,.045)}}
.app-body{min-width:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.app-body main{flex:1}
.app-body .wrap{padding-left:48px;padding-right:48px}
/* on a phone or a narrow window: the brand along the top, the places as a bar along the bottom */
@media (max-width:899px){
  .app-shell{display:block}
  .app-side{position:static;height:auto;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;border:0;padding:calc(8px + env(safe-area-inset-top)) var(--padr) 0 var(--padl)}
  .app-side .brand{padding:0;font-size:24px}
  .app-out{margin:0}
  .app-out button{width:auto;padding:0 4px;text-align:right}
  .app-places{position:fixed;left:0;right:0;bottom:0;z-index:10;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:6px max(12px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line)}
  .app-link{flex-direction:column;justify-content:center;gap:2px;min-height:52px;padding:0;font-size:11px;font-weight:500;color:var(--muted)}
  .app-link[aria-current]{background:none;color:var(--accent)}
  .app-body{min-height:0;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  .app-body .wrap{padding-left:var(--padl);padding-right:var(--padr)}
  .dsp{padding-top:16px}
}

/* the Message screen: a split-flap board (public/display-message.js). Each tile is a top half and a bottom half; the top half of the old character falls, then the bottom half of the new one lands. */
.d-board{position:absolute;inset:0;background:#000;overflow:hidden}
.d-fb{position:absolute;inset:0;display:grid;box-sizing:border-box;font-family:var(--sans);font-weight:500;letter-spacing:0;-webkit-font-smoothing:antialiased}
.d-ft{position:relative;border-radius:var(--fr,3px);overflow:hidden;-webkit-perspective:900px;perspective:900px}
.d-ft::after{content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background:rgba(0,0,0,.55);z-index:5}
.d-fh{position:absolute;left:0;right:0;height:50%;overflow:hidden;background:inherit;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.d-fh.top,.d-fh.fall{top:0;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}
.d-fh.bot,.d-fh.land{bottom:0;-webkit-transform-origin:50% 0;transform-origin:50% 0}
.d-fh.fall{z-index:3}.d-fh.land{z-index:4}
.d-fh span{position:absolute;left:0;right:0;height:200%;display:flex;align-items:center;justify-content:center;line-height:1}
.d-fh.top span,.d-fh.fall span{top:0}
.d-fh span svg{display:block;width:.8em;height:.8em}
.d-fh.bot span,.d-fh.land span{top:-100%}

/* the Message screen's settings page */
.msgset{--ink-red:#e33330;--ink-yellow:#fac729;--ink-green:#2eae54;--ink-blue:#2661e0;--ink-white:#f2f0e8;--ink-black:#0f0f12}
.msg-text{display:block;width:100%;box-sizing:border-box;min-height:120px;padding:12px 14px;border:1px solid var(--field,#d7d4cc);border-radius:12px;background:#fff;font:inherit;font-size:18px;line-height:1.4;color:var(--ink);resize:vertical;text-transform:uppercase}
.msg-fit{margin:10px 0 0;font-size:14px}.msg-fit.bad{color:#8f2b22}
.msg-inks{display:flex;gap:10px;flex-wrap:wrap}
.msg-ink{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid rgba(22,22,26,.25);background:var(--ink);cursor:pointer;padding:0}
.msg-ink.sel{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink-black)}
.stk-opt[hidden]{display:none}
.msg-list{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.msg-item{display:flex;gap:8px;align-items:stretch}
.msg-pick{flex:1;min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:8px 14px;border:1px solid var(--line,#e2e0d8);border-radius:12px;background:#fff;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.msg-pick b{font-weight:600;font-size:16px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase}
.msg-st{font-size:13px;color:var(--muted)}
.msg-item.sel .msg-pick{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.msg-del{flex:none;min-width:64px;min-height:56px;padding:0 12px;border:1px solid var(--line,#e2e0d8);border-radius:12px;background:#fff;font:inherit;font-size:14px;color:#8f2b22;cursor:pointer}
.msg-sched{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.msg-sched[hidden],.msg-days[hidden]{display:none}
.msg-sched label{display:grid;gap:6px;font-size:14px;font-weight:500;color:var(--ink)}
.msg-sched input{min-height:48px;padding:10px 12px;border:1px solid var(--field,#d7d4cc);border-radius:12px;background:#fff;font:inherit;font-size:16px;min-width:0}
@media (max-width:479px){.msg-sched{grid-template-columns:1fr}}
.msg-days{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 10px}
.msg-day{min-width:48px;min-height:44px;padding:0 10px;border:1px solid var(--line,#e2e0d8);border-radius:10px;background:#fff;font:inherit;font-size:14px;cursor:pointer;color:var(--ink)}
.msg-day[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
#msg-status.bad{color:#8f2b22}
.msg-icons{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.msg-icon{width:44px;height:44px;padding:6px;border:1px solid var(--line,#e2e0d8);border-radius:10px;background:#1d1d20;cursor:pointer}
.msg-icon svg{display:block;width:100%;height:100%}
.msg-link{display:inline;min-height:44px;padding:0 4px;border:0;background:none;font:inherit;color:var(--link);cursor:pointer;text-decoration:underline}
.msg-item{flex-wrap:wrap}
.msg-pick{flex:1 1 100%}
.msg-item.off .msg-pick b{opacity:.45}
.msg-ctl{display:flex;gap:8px;align-items:center;width:100%}
.msg-on{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-right:4px}
.msg-move{flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line,#e2e0d8);border-radius:10px;background:#fff;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.msg-move:disabled{opacity:.35;cursor:default}
.msg-ctl .msg-del{margin-left:auto;min-height:44px}
/* a message in the list: its words with up and down beside them, and below them the switch and Delete */
.msg-item{display:block}
.msg-top{display:flex;gap:8px;align-items:center}
.msg-top .msg-pick{flex:1 1 auto;min-width:0}
.msg-mv{display:flex;gap:6px;flex:none}
.msg-ctl{margin-top:6px}
.msg-for{font-weight:400;font-size:14px;color:var(--muted)}
.msg-save{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 0}
.msg-item.editing .msg-pick{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink);background:#faf9f4}
.msg-edit-btn{flex:none;min-width:64px;min-height:44px;padding:0 12px;border:1px solid var(--line,#e2e0d8);border-radius:12px;background:#fff;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.msg-item.editing .msg-edit-btn{background:var(--ink);color:#fff;border-color:var(--ink)}
.msg-pick{cursor:default}

/* a grip of six dots at the left of a list item: drag it to move the item (public/reorder.js) */
.grip{flex:none;width:44px;min-height:44px;align-self:stretch;display:flex;align-items:center;justify-content:center;margin:0 2px 0 -6px;padding:0;border:0;border-radius:10px;background:none;color:#9a98a0;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent}
.grip:hover{color:var(--ink)}
.grip:focus-visible{outline:2px solid var(--link);outline-offset:-2px}
.grip svg{width:12px;height:19px;fill:currentColor}
.reordering{-webkit-user-select:none;user-select:none}
.reordering .grip{cursor:grabbing}
.dragging{position:relative;background:#fff;box-shadow:0 8px 24px rgba(22,22,26,.22);border-radius:12px}
.msg-item{display:flex;align-items:stretch}
.msg-body{flex:1;min-width:0}
/* a message in the list: grip, then the words with Edit and Delete on the same line, and the switch under the words */
.msg-top{display:flex;gap:8px;align-items:center}
.msg-top .msg-pick{flex:1 1 auto;min-width:0}
.msg-top .msg-edit-btn,.msg-top .msg-del{flex:none;min-height:44px}
.msg-ctl .msg-del{margin-left:0}
/* a message is a small card: the grip, then the words and when it shows on top, and below them the on/off switch with When, Copy and Remove at the right */
#msg-list .msg-item{padding:10px 12px 10px 6px;border:1px solid var(--line,#e2e0d8);border-radius:14px;background:#fff;align-items:center}
#msg-list .msg-item.off{background:#faf9f6}
#msg-list .msg-item.editing{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
#msg-list .msg-top{flex-wrap:wrap;gap:8px 6px}
#msg-list .msg-pick{flex:1 1 100%;min-height:0;padding:0 4px;border:0;box-shadow:none;background:none;gap:5px}
#msg-list .msg-item.editing .msg-pick{border:0;box-shadow:none;background:none}
#msg-list .msg-pick b{font-size:17px;letter-spacing:.02em}
.msg-st{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.msg-st::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#b9b7bf}
.msg-st.active{color:#1f6b3a}.msg-st.active::before{background:#2e9e57}
.msg-st.upcoming,.msg-st.waiting{color:#7a5a12}.msg-st.upcoming::before,.msg-st.waiting::before{background:#d9a21b}
#msg-list .msg-on{flex:none;margin:0 auto 0 4px}#msg-list .switch{flex:none}
#msg-list .msg-edit-btn,#msg-list .msg-del{min-width:0;min-height:44px;padding:0 12px;font-size:14px}
@media (max-width:479px){
  #msg-list .msg-item{padding-right:10px}
  #msg-list .msg-top{gap:8px 4px}
  #msg-list .msg-edit-btn,#msg-list .msg-del{padding:0 10px;font-size:13px}
  #msg-list .msg-on{margin-left:0;gap:0}#msg-list .msg-on>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}   /* the switch says it all; its On/Off word makes no room for Remove */
}
/* the stocks followed: the grip, then the symbol and the company name left-aligned (the symbols line up), and the remove button at the right */
.stk-list li>span{flex:1 1 auto;min-width:0;justify-content:flex-start;text-align:left}
.stk-list b{min-width:4.2em;text-align:left}


/* ---- the Earth view on a display: time and weather beside a lit globe (sizes are multiples of --u, set by public/display-earth.js) ---- */
.d-earth{position:absolute;inset:0;overflow:hidden;background:#010103;color:#f6f5f1;--u:1px;font-family:var(--sans)}
.d-ea-stars{position:absolute;left:0;top:0;width:100%;height:100%}
.d-ea-gl{position:absolute;pointer-events:none}
.d-ea-ball{position:absolute;pointer-events:none;border-radius:50%;opacity:0;transform:scale(.862)}
.d-ea-ball.plain{opacity:1;background:radial-gradient(circle at 38% 34%,#6fa8ff,#1b4f9c 55%,#06204d);box-shadow:0 0 calc(70*var(--u)) rgba(80,140,255,.45)}
.d-ea-ball.plain::after{content:"";position:absolute;left:50%;top:50%;width:calc(16*var(--u));height:calc(16*var(--u));margin:calc(-8*var(--u)) 0 0 calc(-8*var(--u));border-radius:50%;background:#ee2222}
.d-ea-time{position:absolute;left:calc(56*var(--u));top:calc(72*var(--u));max-width:50%;white-space:nowrap}
.d-ea-clock{font-size:calc(210*var(--u));font-weight:300;line-height:.95;letter-spacing:calc(-7*var(--u))}
.d-ea-ampm{font-size:calc(52*var(--u));font-weight:300;margin-left:calc(10*var(--u))}
.d-ea-date{font-size:calc(34*var(--u));opacity:.86;margin-top:calc(26*var(--u))}
.d-ea-place{font-size:calc(44*var(--u));margin-top:calc(14*var(--u));overflow:hidden;text-overflow:ellipsis}
.d-ea-wx{position:absolute;left:calc(56*var(--u));bottom:calc(72*var(--u));max-width:50%}
.d-ea-now{display:flex;align-items:center;gap:calc(24*var(--u))}
.d-ea-temp{font-size:calc(108*var(--u));font-weight:300;line-height:1;letter-spacing:calc(-4*var(--u))}
.d-ea-hl{display:flex;flex-direction:column;font-size:calc(32*var(--u));font-weight:300;line-height:1.25}
.d-ea-facts{display:flex;flex-wrap:wrap;gap:calc(10*var(--u)) calc(26*var(--u));font-size:calc(26*var(--u));opacity:.92;margin-top:calc(26*var(--u));padding-top:calc(22*var(--u));border-top:1px solid rgba(246,245,241,.22)}
.d-ea-fact{display:inline-flex;align-items:center;gap:calc(10*var(--u));white-space:nowrap}
.d-ea-fi{display:inline-flex;width:calc(36*var(--u));height:calc(36*var(--u));flex:none}
.d-ea-fi svg{width:100%;height:100%}
.d-earth.tall .d-ea-time{left:0;right:0;max-width:none;text-align:center;top:calc(80*var(--u))}
.d-earth.tall .d-ea-clock{font-size:calc(172*var(--u))}
.d-earth.tall .d-ea-wx{left:0;right:0;max-width:none;bottom:calc(90*var(--u));display:flex;flex-direction:column;align-items:center}
.d-earth.tall .d-ea-facts{justify-content:center;border-top:0;padding-top:0}
/* the Earth view's settings page: the 12 or 24 hour choice looks like Weather's radar range, with two choices */
.ea-seg{grid-template-columns:repeat(2,1fr)}
/* the Library's tabs (Photos, Messages) and its Messages list */
.lib-tabs{display:flex;gap:6px;margin:0 0 20px;border-bottom:1px solid var(--line,#e2e0d8)}
.lib-tabs a{padding:10px 16px;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--muted);text-decoration:none;font-weight:500}
.lib-tabs a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--ink)}
.lm-list .msg-item{flex-wrap:wrap;align-items:center;padding:10px 14px;border:1px solid var(--line,#e2e0d8);border-radius:12px;background:#fff}
.lm-list .msg-body{flex:1 1 220px;min-width:0}
.lm-list .msg-body b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase}
.lm-list .msg-st{display:block}
.lm-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lm-acts select{min-height:44px;max-width:200px}
.lm-acts .msg-del,.lm-acts .msg-edit-btn,.lm-acts .btn{min-height:44px}
.lm-acts select{padding:0 12px;border:1px solid var(--line,#e2e0d8);border-radius:12px;background:#fff;font:inherit;font-size:15px;color:var(--ink)}

/* pricing: three plans side by side (one column on a phone) */
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:48px;text-align:left}
.plan{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:28px 26px 30px;display:flex;flex-direction:column}
.plan.yours{border-color:var(--ink)}
.plan h3{margin:0;font-size:19px;font-weight:600}
.plan .tag{margin:4px 0 22px;font-size:14px;color:var(--muted)}
.plan .price{margin:0;font-size:40px;font-weight:600;letter-spacing:-.02em;line-height:1}
.plan .price small{font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted)}
.plan .alt{margin:8px 0 22px;font-size:14px;color:var(--muted)}
.plan ul{list-style:none;margin:0;padding:20px 0 0;border-top:1px solid var(--line);display:grid;gap:11px;font-size:15px}
.plan li{position:relative;padding-left:24px}
.plan li::before{content:"";position:absolute;left:2px;top:.5em;width:9px;height:5px;border-left:2px solid #3f7a52;border-bottom:2px solid #3f7a52;transform:rotate(-45deg)}
.plans-note{max-width:640px;margin:26px auto 0;font-size:14px;color:var(--muted);text-align:center}
.sm-h{margin:32px 0 0;font-size:18px;font-weight:600}
@media (max-width:860px){.plans{grid-template-columns:1fr;margin-top:32px}}
@media (max-width:520px){.nav .link.hide-sm{display:none}}
.authcard .sub a{color:var(--link)}
/* the Text screen: words on a colour, as large as will fit (public/display-text.js) */
.d-textwrap{position:absolute;inset:0;background:#000;overflow:hidden}
.d-text{position:absolute;inset:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;-webkit-font-smoothing:antialiased}
.d-text-body{white-space:pre-wrap;overflow-wrap:break-word;line-height:1.15;box-sizing:border-box}
/* the Text settings page */
.txt-sw{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;border:1px solid rgba(22,22,26,.2);font-weight:700;font-size:16px;margin-right:10px}
.txt-col{flex:1 1 auto;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.txtset .msg-pick{flex-direction:row;align-items:center;justify-content:flex-start}
.txtset .txt-words{display:block;font-weight:600;font-size:16px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none}
.txtset .msg-item>.msg-top{flex:1 1 auto;min-width:0}
/* the Library's Text tab */
.lt-filter{margin:0 0 14px}
.lt-list .msg-item{gap:12px}
.lt-thumb{position:relative;flex:none;width:160px;aspect-ratio:16 / 9;border-radius:10px;overflow:hidden;background:#000;border:1px solid rgba(22,22,26,.15)}
.lt-list .msg-body b.lt-words{text-transform:none}
.lt-state.draft{color:#8a5a00;font-weight:600}
@media (max-width:479px){.lt-thumb{width:100%}}
/* the text editor */
.te-switches{display:grid;gap:0;margin:10px 0 14px}
.te-sw{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;font-weight:500;cursor:pointer}
.te-change{display:block;width:100%;box-sizing:border-box;min-height:48px;margin:6px 0 12px;padding:10px 12px;border:1px solid var(--field,#d7d4cc);border-radius:12px;background:#fff;font:inherit;font-size:16px}
.te-acts{display:flex;gap:8px;flex-wrap:wrap}
.te-color{width:64px;height:44px;padding:2px;border:1px solid var(--line,#e2e0d8);border-radius:10px;background:#fff;cursor:pointer}
.te-style{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.te-b{min-width:44px;min-height:44px;border:1px solid var(--line,#e2e0d8);border-radius:10px;background:#fff;font:inherit;font-size:17px;cursor:pointer;color:var(--ink)}
.te-b[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.te-b:disabled{opacity:.35;cursor:default}
.te-pc{display:flex;align-items:center;gap:8px;font-size:14px}
.te-earlier{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.te-er{display:flex;align-items:center;width:100%;min-height:48px;padding:6px 10px;border:1px solid var(--line,#e2e0d8);border-radius:12px;background:#fff;font:inherit;font-size:15px;text-align:left;cursor:pointer;color:var(--ink)}
.te-er[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.te-er .txt-sw{margin-right:10px}
.txted .msg-text{text-transform:none}
.txted .msg-text::placeholder{text-transform:none}
.txted .msg-text+p{margin-top:10px}
.txted label[for="te-brief"],.txted label[for="te-change"]{display:block;font-weight:600;color:var(--ink)}
/* while the AI Designer works: everything in the panel greys and cannot be pressed */
.ai-busy > *{opacity:.55;pointer-events:none}
.ai-busy .btn:disabled{opacity:1}
.ai-busy #te-ai-go,.ai-busy #te-ai-again{cursor:progress}
.ai-working{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#eef4ff;color:#0a3d91;font-weight:600}
.ai-busy > .ai-working{opacity:1}
/* the buttons for the display itself sit under its facts, small enough for one row; stacked and full width on a phone */
.dv-itself .dv-acts{margin:14px 0 0;gap:8px}
.dv-itself .dv-acts .btn.sm{padding:8px 12px;font-size:14px;min-height:40px}
@media (max-width:479px){.dv-itself .dv-acts>*,.dv-itself .dv-acts .btn.sm,.dv-itself .dv-acts form .btn{width:100%;justify-content:center;text-align:center}.dv-itself .rename summary{width:100%;justify-content:center}}
