/* Nebulae Protocol™ · © 2026 Giovanni Lupinelli. All rights reserved. Proprietary: see LICENSE. */
/* Nebula design (build 39): the screens approved on the design canvas, carried into
   the app. Values come from the canvas files (Main, Chats, Status, PhotoSend,
   Register, Registering, Registered). Loaded after cosmic-ui.css and wins over it. */

:root{--d-text:#f9f5fe;--d-muted:#b29ec8;--d-soft:#cebce3;--d-line:rgba(196,149,246,.16);--d-panel:rgba(33,16,52,.62);
 --d-grad:linear-gradient(100deg,#9f58f1 0%,#ae62f2 48%,#a34dff 100%);--d-ring:conic-gradient(#5fe0a1,#9f5bf2,#c45cff,#5fe0a1);
 --d-title:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;--d-mono:"JetBrains Mono",ui-monospace,monospace}
#cosmicApp,.nebula-sheet{font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;color:var(--d-text)}

/* The sky: the design's deep space, with the generated nebula faint behind it. */
body.cosmic-mode{background:#0f041a}
body.cosmic-mode::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
 background:radial-gradient(1.2px 1.2px at 36px 140px,rgba(255,255,255,.75) 50%,transparent 52%),radial-gradient(1px 1px at 300px 96px,rgba(255,255,255,.6) 50%,transparent 52%),radial-gradient(1.4px 1.4px at 230px 420px,rgba(224,195,250,.7) 50%,transparent 52%),radial-gradient(1px 1px at 90px 640px,rgba(255,255,255,.5) 50%,transparent 52%),radial-gradient(1.2px 1.2px at 352px 700px,rgba(255,255,255,.6) 50%,transparent 52%),radial-gradient(140% 70% at 50% -20%,var(--sky-a,#391a5a) 0%,var(--sky-b,#160726) 45%,var(--sky-c,#0f041a) 75%)}
#cosmicApp{background:transparent!important}
#cosmicApp:before{opacity:.35!important;animation:none!important}

/* Titles and text share one family (Inter), as in the storyboard. */
.tab-title,.home-title{font-family:var(--d-title)!important;font-size:27px!important;font-weight:500!important;letter-spacing:-.01em!important;background:none!important;color:var(--d-text)!important;-webkit-text-fill-color:currentColor!important}
.tab-head{padding:16px 2px 8px!important;background:linear-gradient(180deg,rgba(18,6,30,.92) 60%,rgba(18,6,30,0))!important}

/* --- Tab bar: a flat bar with five sections ------------------------------------- */
.tab-bar.design-tabs{left:0!important;right:0!important;bottom:0!important;max-width:none!important;border-radius:0!important;padding:8px 8px calc(8px + var(--safe-bottom))!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;background:rgba(15,4,26,.86)!important;border:0!important;border-top:1px solid var(--d-line)!important;box-shadow:none!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.design-tabs .tab-btn{gap:4px;padding:2px 0;color:var(--d-muted)!important;font-size:11px;font-weight:500}
.design-tabs .tab-btn.active{color:#fff!important}
.design-tabs .tab-btn span:last-child{background:none!important;-webkit-text-fill-color:currentColor!important;color:inherit!important}
.design-tabs .tab-ico{position:relative;width:auto!important;height:auto!important;background:none!important;box-shadow:none!important;transform:none!important;padding:0!important}
#cosmicApp .design-tabs .tab-ico svg.ds-ico{width:24px;height:24px}
svg.ds-ico{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.design-tabs .tab-badge{top:-4px;right:-10px}

/* --- Chats (design 4) ------------------------------------------------------------ */
.chats-top .head-actions{display:flex;align-items:center;gap:8px}
.status-pill{height:40px;padding:0 12px 0 6px;border-radius:20px;border:1px solid rgba(95,224,161,.4);background:rgba(95,224,161,.1);color:#c8f7df;display:flex;align-items:center;gap:8px;font:inherit;font-size:13px;cursor:pointer}
.status-pill:not(.on){border-color:rgba(206,167,248,.32);background:rgba(206,167,248,.08);color:#eee1fd}
.sp-av{width:28px;height:28px;border-radius:14px;background:linear-gradient(135deg,#b684f5,#ae62f2);display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff}
.add-round{width:44px;height:44px;border-radius:22px;border:0;background:linear-gradient(135deg,#9f58f1,#a34dff);color:#fff;display:grid;place-items:center;cursor:pointer}
#cosmicApp .add-round svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.conversation-list{display:flex;flex-direction:column;gap:4px;margin:0 -6px}
.chat-row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 8px;border:0;border-radius:18px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.chat-row:active{background:rgba(255,255,255,.04)}
.chat-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.chat-row-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.chat-row-top b{font-weight:700;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-row-top time{font-size:12px;color:var(--d-muted);flex:none}
.chat-row-last{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--d-soft);white-space:nowrap;overflow:hidden}
.chat-row-last span{overflow:hidden;text-overflow:ellipsis}
.chat-badge{min-width:22px;height:22px;padding:0 6px;box-sizing:border-box;border-radius:11px;background:linear-gradient(135deg,#9f58f1,#a34dff);font-size:12px;font-weight:700;display:grid;place-items:center;flex:none}
#cosmicApp svg.read-spiral,svg.read-spiral{width:15px;height:15px;flex:none;fill:none;stroke:#ffb3f0;stroke-width:2;stroke-linecap:round}

/* Faces: gradient + initial inside a ring; the ring lights when there is a status. */
.face{position:relative;flex:none;width:44px;height:44px;border-radius:50%;padding:2px;box-sizing:border-box;background:rgba(206,167,248,.2);display:inline-block}
.face.lit{background:var(--d-ring)}
.face-in{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:16px;color:#221030;overflow:hidden}
.face-in img{width:100%;height:100%;object-fit:cover}
.face.lg{width:56px;height:56px}.face.lg .face-in{font-size:18px}
.face.xl{width:72px;height:72px}.face.xl .face-in{font-family:var(--d-title);font-size:22px;font-weight:500;color:#2a0f2a}
.face-dot{position:absolute;right:-2px;bottom:-2px;width:22px;height:22px;border-radius:11px;border:2px solid #160726;box-sizing:border-box;display:grid;place-items:center}
#cosmicApp .face-dot svg,.face-dot svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* --- Chat (design 1) ------------------------------------------------------------ */
.chat-top.design-chat-top{display:flex!important;align-items:center;gap:12px;padding:12px 0 14px!important;margin:0 -2px;border-bottom:1px solid var(--d-line);background:linear-gradient(180deg,rgba(18,6,30,.95) 80%,rgba(18,6,30,.6))!important}
.round-back{width:44px;height:44px;border-radius:22px;border:0;background:rgba(255,255,255,.06);color:var(--d-text);display:grid;place-items:center;flex:none;cursor:pointer}
.round-call{width:44px;height:44px;border-radius:22px;border:0;background:rgba(95,224,161,.14);color:#5fe0a1;display:grid;place-items:center;flex:none;cursor:pointer}
#cosmicApp .round-back svg,#cosmicApp .round-call svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.round-call:disabled{opacity:.4}
.chat-who{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:0;background:none;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer}
.chat-who .chat-avatar{width:auto;height:auto;background:none;box-shadow:none;border:0}
.chat-who .chat-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.chat-who .chat-name{font-weight:700;font-size:17px;background:none;border:0;padding:0;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-who .chat-state{font-size:12px;color:var(--d-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-who .chat-state::before{display:none!important}
.chat-stream{gap:10px!important;padding:18px 0 calc(150px + var(--safe-bottom))!important}
.chat-sep{display:flex;justify-content:center;margin:2px 0}
.chat-sep span{background:none!important;border:0!important;padding:0!important;font-size:11px!important;letter-spacing:.08em;color:var(--d-muted)!important;text-transform:uppercase;box-shadow:none!important}
.bubble{max-width:76%!important;padding:10px 14px!important;font-size:15px!important;line-height:1.35!important;box-shadow:none!important}
.bubble.in{border-radius:20px 20px 20px 6px!important;background:rgba(44,22,68,.85)!important;border:1px solid var(--d-line)!important}
.bubble .msg-meta{display:none}
.bubble.in .msg-meta{display:block;margin-top:3px;font-size:10.5px;color:var(--d-muted);text-align:right}
.msg-out{align-self:flex-end;max-width:76%;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.msg-out .bubble{max-width:100%!important;position:relative;border-radius:20px 20px 6px 20px!important;border:0!important}
.msg-out .bubble.sent{background:linear-gradient(135deg,#7d3bc9,#8744c4)!important;opacity:.92}
.msg-out .bubble.delivered{background:linear-gradient(135deg,#9f58f1,#ae62f2)!important}
.msg-out .bubble.read{background:linear-gradient(135deg,#7a36c8,#b052ee 70%,#e97ccc)!important;box-shadow:0 6px 20px rgba(20,8,40,.6)!important;animation:dHalo 3.2s ease-in-out infinite}
.msg-out .bubble.read::before{display:none!important}
.bubble-text{position:relative;z-index:1}
.read-nebula{position:absolute;z-index:-1;left:-30px;right:-26px;top:-26px;bottom:-24px;overflow:hidden;border-radius:50%;pointer-events:none;
 -webkit-mask:radial-gradient(closest-side,#000 35%,transparent 100%);mask:radial-gradient(closest-side,#000 35%,transparent 100%);animation:dNebulaIn 1.6s ease-out both}
.read-nebula img{position:absolute;left:-20%;top:-20%;width:140%;height:140%;object-fit:cover;animation:dNebulaDrift 12s ease-in-out infinite alternate}
.msg-out .bubble.read{isolation:isolate;overflow:visible}
.bubble .tw{position:absolute;border-radius:50%;pointer-events:none;animation:dTwinkle 2.4s ease-in-out infinite}
.bubble .tw.a{left:-16px;top:-10px;width:3px;height:3px;background:#fff;box-shadow:0 0 6px #fff}
.bubble .tw.b{right:-12px;bottom:-8px;width:2px;height:2px;background:#ffe6f8;box-shadow:0 0 5px #ffe6f8;animation-duration:3.1s;animation-delay:.8s}
.out-state{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--d-muted)}
.out-state.delivered{color:#d9bdfa}.out-state.read{color:#e7b9ff}
#cosmicApp .out-state svg{width:14px;height:14px;fill:currentColor}
#cosmicApp .out-state.delivered svg{width:16px;height:16px}
#cosmicApp .out-state svg.read-spiral{width:16px;height:16px;fill:none;stroke:#ffb3f0;stroke-width:1.8}
.read-spiral.spin{animation:dSpin 9s linear infinite}
.msg-out.bloom .read-nebula{animation-duration:2.2s}
.read-legend{position:fixed;z-index:7;left:50%;transform:translateX(-50%);bottom:calc(84px + var(--safe-bottom));width:min(calc(100% - 32px),528px);box-sizing:border-box;display:flex;justify-content:center;gap:16px;padding:8px 12px;border-radius:14px;background:rgba(33,16,52,.62);border:1px solid var(--d-line);font-size:11px;color:#dbcced;cursor:pointer}
.read-legend span{display:flex;align-items:center;gap:5px}
#cosmicApp .read-legend svg{width:12px;height:12px}
#cosmicApp .read-legend svg.w14{width:14px}#cosmicApp .read-legend svg.w14h{width:14px;height:14px}
.read-legend .st-sent{fill:#b29ec8}.read-legend .st-deliv{fill:#d9bdfa}.read-legend .st-read{fill:none;stroke:#ffb3f0;stroke-width:2;stroke-linecap:round}
.chat-composer.design-composer{left:0!important;right:0!important;transform:none!important;width:auto!important;max-width:none!important;bottom:0!important;border-radius:0!important;
 padding:10px 14px calc(14px + var(--safe-bottom))!important;gap:10px!important;background:rgba(15,4,26,.9)!important;border:0!important;border-top:1px solid var(--d-line)!important;box-shadow:none!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.nebula-attach{position:relative;width:46px!important;height:46px!important;flex:none;border-radius:23px!important;border:1px solid rgba(225,204,251,.35)!important;
 background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.14),rgba(64,30,100,.5) 70%)!important;color:#fff!important;display:grid;place-items:center;box-shadow:0 0 18px rgba(199,158,247,.3)!important;cursor:pointer;padding:0}
#cosmicApp .nebula-attach svg{width:30px;height:30px}
.na-orbit{transform-origin:256px 256px;animation:dSpin 16s linear infinite}
.design-composer .composer-field{flex:1;display:flex;min-width:0;background:none!important;border:0!important;padding:0!important}
.design-composer .chat-input{flex:1;height:44px;box-sizing:border-box;border-radius:22px!important;border:1px solid rgba(206,167,248,.26)!important;background:rgba(33,16,52,.7)!important;color:var(--d-text);padding:0 16px!important;font:inherit;font-size:15px}
.round-send{width:44px;height:44px;flex:none;border-radius:22px;border:0;background:var(--d-grad);color:#fff;display:grid;place-items:center;cursor:pointer}
#cosmicApp .round-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.round-send:disabled{opacity:.45}
.sr-only{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.chat-recording{bottom:calc(76px + var(--safe-bottom))!important}

/* --- Sheets drawn like the canvas (photo, status, person) ------------------------ */
.design-sheet .nebula-sheet-card{padding:0 0 calc(18px + var(--safe-bottom))!important;border-radius:30px 30px 0 0!important;border:0!important;border-top:1px solid rgba(221,195,250,.22)!important;
 background:linear-gradient(180deg,var(--dsheet-a,rgba(21,8,34,.95)),var(--dsheet-b,rgba(9,3,15,.99)))!important;box-shadow:0 -20px 60px rgba(0,0,0,.6)!important;overflow-x:hidden;animation:dUp .55s cubic-bezier(.2,.8,.2,1) both;width:min(100%,560px)!important}
.design-sheet .nebula-sheet-grab{position:relative;width:40px;height:5px;margin:10px auto 0;border-radius:3px;background:rgba(255,255,255,.28)}
.ds-sky{position:absolute;left:0;right:0;top:0;height:330px;pointer-events:none;background:url(art/nebula-hero.jpg) 50% 18%/cover;opacity:.32;-webkit-mask-image:linear-gradient(180deg,#000 30%,transparent);mask-image:linear-gradient(180deg,#000 30%,transparent)}
.ds-sky.center{top:60px;height:420px;background-position:50% 30%;opacity:.28;-webkit-mask-image:radial-gradient(60% 55% at 50% 50%,#000 40%,transparent);mask-image:radial-gradient(60% 55% at 50% 50%,#000 40%,transparent)}
.ds-head{position:relative;display:flex;align-items:center;justify-content:space-between;padding:10px 18px 0}
.ds-head.stack{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 22px 0}
.ds-kicker{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#c9b2e4}
.ds-title{font-family:var(--d-title);font-size:20px;font-weight:500}
.ds-title.sm{font-size:19px}
.ds-sub{font-size:13px;color:#c9b2e4}
.ds-sub.center{text-align:center;padding:4px 22px 0}
.ds-close{width:44px;height:44px;border-radius:22px;border:1px solid rgba(221,195,250,.22);background:rgba(255,255,255,.04);color:var(--d-text);display:grid;place-items:center;cursor:pointer}
.nebula-sheet .ds-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ds-link{border:0;background:none;color:#d9bdfa;font:inherit;font-size:13px;cursor:pointer;padding:0}
.ds-text-btn{height:54px;padding:0 18px;border:0;background:transparent;color:#c9b2e4;font:inherit;font-size:15px;cursor:pointer}

/* Add a photo (design 2) */
.ps-orbit{position:relative;width:390px;height:262px;margin:2px auto 0;left:50%;transform:translateX(-50%) scale(var(--k,1));transform-origin:top center}
.ps-orbits{position:absolute;inset:0;width:390px!important;height:262px!important;fill:none;stroke:rgba(226,204,251,.28)}
.ps-orbits .far{stroke:rgba(226,204,251,.14);stroke-dasharray:2 6}.ps-orbits .near{stroke:rgba(226,204,251,.12)}
.ps-spin{position:absolute;left:13px;top:16px;width:364px;height:224px;transform-origin:182px 112px;animation:dSpin 60s linear infinite;pointer-events:none}
.ps-spin i{position:absolute;left:360px;top:110px;width:5px;height:5px;border-radius:50%;background:#eee1fd;box-shadow:0 0 8px #dac1fa}
.ps-center{position:absolute;left:159px;top:92px;width:72px;height:72px}
.ps-center .face{background:conic-gradient(from 200deg,rgba(255,220,180,.9),rgba(203,167,248,.9),rgba(230,170,255,.9),rgba(255,220,180,.9));box-shadow:0 0 40px rgba(209,176,249,.35)}
.ps-planet{position:absolute;width:76px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;color:#e1d2f2;font:inherit;font-size:12px;font-weight:500;cursor:pointer;animation:dEnter .5s ease-out both;padding:0}
.ps-planet.main{color:var(--d-text);font-weight:600}
.ps-orb{position:relative;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.12),rgba(255,255,255,.03) 70%);border:1px solid rgba(225,204,251,.25)}
.ps-planet.main .ps-orb{width:60px;height:60px;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.22),rgba(184,130,245,.18) 60%,rgba(88,40,140,.25));border-color:rgba(225,204,251,.55);animation:dPulse 2.6s ease-in-out infinite}
.nebula-sheet .ps-orb svg{width:22px;height:22px;fill:none;stroke:#eee1fd;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nebula-sheet .ps-planet.main .ps-orb svg{width:24px;height:24px;stroke:#fff}
.ps-moon{position:absolute;inset:-9px;animation:dSpin 6s linear infinite}.ps-moon i{position:absolute;left:36px;top:-2px;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 6px #fff}
.ps-planet:nth-of-type(2){animation-delay:.25s}.ps-planet:nth-of-type(3){animation-delay:.35s}.ps-planet:nth-of-type(4){animation-delay:.45s}
.ps-recent-head{position:relative;display:flex;align-items:baseline;justify-content:space-between;padding:0 20px}
.ps-recent{position:relative;width:390px;height:170px;margin:6px auto 0;left:50%;transform:translateX(-50%) scale(var(--k,1));transform-origin:top center}
.ps-arc{position:absolute;inset:0;width:390px!important;height:170px!important;fill:none;stroke:rgba(226,204,251,.3);stroke-dasharray:3 5}
.ps-slot{position:absolute;padding:0;border-radius:16px;border:1px dashed rgba(225,204,251,.28);background:rgba(255,255,255,.03);overflow:visible;cursor:pointer;color:#eee1fd;display:grid;place-items:center}
.ps-slot.full{border:1px solid rgba(255,255,255,.18)}
.ps-slot img,.ps-slot video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.ps-slot.main{border-radius:24px}.ps-slot.main.full{border:2px solid #fff}
.nebula-sheet .ps-slot svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.ps-sel-ring{position:absolute;inset:-10px;border-radius:50%;border:1px solid rgba(236,223,252,.55);pointer-events:none}
.ps-sel-moon{position:absolute;inset:-10px;animation:dSpin 8s linear infinite;pointer-events:none}.ps-sel-moon i{position:absolute;left:54px;top:-4px;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff}
.ps-count{position:absolute;right:-6px;bottom:-6px;width:26px;height:26px;border-radius:13px;background:#fff;color:#1d0b30;display:grid;place-items:center;font-size:12px;font-weight:700;z-index:1}
.ps-cap{position:absolute;left:0;right:0;top:136px;text-align:center;font-size:12px;color:#c9b2e4}
.ps-foot{position:relative;padding:8px 16px 0;display:flex;flex-direction:column;gap:12px}
.ps-only{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#e1d2f2}
.nebula-sheet .ps-only svg{width:16px;height:16px;fill:none;stroke:#e3c6ff;stroke-width:1.8;stroke-linecap:round}
.nebula-sheet .ps-only svg circle{fill:#fff;stroke:none}
.ps-send-row{display:flex;align-items:center;gap:12px}
.ps-caption{flex:1;display:flex}
.ps-caption input{flex:1;height:54px;box-sizing:border-box;border-radius:27px;border:1px solid rgba(225,204,251,.25);background:rgba(255,255,255,.04);color:var(--d-text);padding:0 18px;font:inherit;font-size:15px}
.ps-send-wrap{position:relative;width:64px;height:64px;flex:none}
.ps-send-ring{position:absolute;inset:-6px;border-radius:50%;border:1px dashed rgba(236,223,252,.5);animation:dSpin 14s linear infinite}
.ps-send{width:64px;height:64px;border-radius:32px;border:0;background:radial-gradient(circle at 35% 30%,#fff,#eee1fd 40%,#d2aff9 100%);color:#1d0b30;display:grid;place-items:center;box-shadow:0 0 30px rgba(209,176,249,.5);cursor:pointer}
.nebula-sheet .ps-send svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ps-send:disabled{opacity:.45;box-shadow:none}

/* Person sheet */
.person-card{padding-left:18px!important;padding-right:18px!important}
.person-head{position:relative;display:flex;align-items:center;gap:14px;padding:16px 4px 6px}
.person-state{font-size:13px;color:var(--d-muted);margin-top:3px}
.person-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 10px}
.pa-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px;border-radius:18px;border:1px solid var(--d-line);background:rgba(33,16,52,.6);color:#eee1fd;font:inherit;font-size:12px;cursor:pointer}
.nebula-sheet .pa-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pa-btn:disabled{opacity:.4}

/* Status in one tap (design 5) */
.solar-card{display:flex;flex-direction:column;min-height:min(760px,92vh)}
.solar-wrap{position:relative;height:calc(330px * var(--k,1));margin-top:4px}
.solar{position:absolute;left:50%;top:0;width:390px;height:330px;transform:translateX(-50%) scale(var(--k,1));transform-origin:top center}
.solar-orbits{position:absolute;inset:0;width:390px!important;height:330px!important;fill:none;stroke:rgba(231,213,252,.26)}
.solar-orbits .mid{stroke:rgba(231,213,252,.18)}.solar-orbits .far{stroke:rgba(231,213,252,.11);stroke-dasharray:2 6}
#statusBeam{stroke:rgba(170,255,210,.8);stroke-width:1.2;animation:dBeam 2.4s ease-in-out infinite;transition:opacity .3s}
.solar-sun{position:absolute;left:171px;top:141px;width:48px;height:48px;border-radius:50%;padding:2px;box-sizing:border-box;border:0;cursor:pointer;
 background:radial-gradient(circle at 35% 30%,#fff8e8,#ffd08a 45%,#e0843a 85%)!important;animation:dSun 4s ease-in-out infinite;transform:none!important}
.sun-av{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#b684f5,#9248d6);display:grid;place-items:center;font-family:var(--d-title);font-size:15px;font-weight:500;color:#fff}
.solar-planets{position:absolute;inset:0}
.planet-btn{position:absolute;width:96px;margin-left:-48px;display:flex;flex-direction:column;align-items:center;gap:5px;border:0;padding:0;background:transparent;color:#dcccef;font:inherit;font-size:11.5px;font-weight:500;animation:dAppear .6s ease-out both;cursor:pointer;transform:none!important}
.planet-btn .planet{position:relative;display:block;border-radius:50%;box-shadow:0 0 10px rgba(0,0,0,.4),inset -8px -8px 14px rgba(0,0,0,.55)}
.planet-ring{position:absolute;inset:-7px;border-radius:50%;border:1px solid transparent}
.planet-btn.on{color:#fff;font-weight:700}
.planet-btn.on .planet{box-shadow:0 0 22px rgba(120,255,190,.6),inset -8px -8px 14px rgba(0,0,0,.55)}
.planet-btn.on .planet-ring{border-color:rgba(170,255,210,.8)}
.status-own-box{position:relative;display:flex;gap:8px;padding:0 22px 6px}
.status-own-box .status-emoji-input{width:64px;flex:none;text-align:center}
.journey-head{position:relative;display:flex;align-items:baseline;justify-content:space-between;padding:4px 22px 0}
.journey-until{font-size:12px;color:#eee1fd}
.journey{position:relative!important;width:390px;height:92px;margin:10px auto 0;left:50%;transform:translateX(-50%) scale(var(--k,1));transform-origin:top center;display:block!important;padding:0!important;background:none!important;border:0!important}
.journey-line{position:absolute;left:24px;right:24px;top:38px;height:1px;background:linear-gradient(90deg,rgba(255,214,150,.8),rgba(225,204,251,.35) 50%,rgba(225,204,251,.15))}
.journey-light{position:absolute;top:34px;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 10px #fff,-14px 0 10px rgba(255,214,150,.6);animation:dTravel 2.8s ease-in-out infinite}
.journey-sun{position:absolute;left:16px;top:30px;width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff8e8,#ffd08a 50%,#e0843a)}
.journey button{position:absolute!important;top:0;width:96px;margin-left:-48px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0!important;background:transparent!important;color:#c9b2e4;font:inherit;font-size:12px;cursor:pointer;padding:0;box-shadow:none!important}
.journey button small{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#9a83b4}
.journey button.on{color:#fff;font-weight:600}.journey button.on small{color:#ffd9a8}
.journey i{display:block;border-radius:50%}
.j-moon{width:14px;height:14px;background:radial-gradient(circle at 35% 30%,#f2f2f2,#9a9aa6 70%)}
.j-star{position:relative;width:16px;height:16px;background:radial-gradient(circle at 35% 30%,#fff,#ffe9c4 50%,#ffb870)}
.j-far{width:12px;height:12px;background:radial-gradient(circle,#fff,#dac1fa 60%,transparent 75%);box-shadow:0 0 8px #dac1fa}
.journey button.on i{box-shadow:0 0 14px rgba(255,214,150,.9)}
.journey button.on i::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(255,230,190,.7)}
.journey button.on i{position:relative}
.song-row{position:relative;margin:8px 22px 0;display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid rgba(225,204,251,.12);cursor:pointer}
.nebula-sheet .song-row svg{width:18px;height:18px;fill:none;stroke:#e5cafb;stroke-width:1.8;stroke-linecap:round}
.song-row span{flex:1;font-size:14px;color:#eee1fd}
.song-row input{width:22px;height:22px;accent-color:#d2aff9}
.status-song{position:relative;display:flex;flex-direction:column;gap:8px;padding:0 22px 6px}
.status-foot{position:relative;margin-top:auto;padding:10px 20px 0;display:flex;align-items:center;gap:12px}
.moon-pill{flex:1;height:54px;border-radius:27px;border:0;color:#1d0b30;font:inherit;font-weight:700;font-size:16px;background:radial-gradient(circle at 30% 20%,#fff,#eee1fd 50%,#d7baf9);box-shadow:0 0 26px rgba(209,176,249,.45);cursor:pointer}
.moon-pill:disabled{opacity:.6}

/* --- Welcome: A enter the galaxy, B registered, C keep it with Face ID ----------- */
.welcome-full .nebula-sheet-backdrop{background:#09030f!important;backdrop-filter:none!important}
.welcome-full .welcome-card{inset:0!important;left:0!important;transform:none!important;width:100%!important;max-width:none!important;max-height:none!important;height:100%;border-radius:0!important;border:0!important;padding:0!important;overflow:hidden!important;background:#0f041a!important;box-shadow:none!important}
.welcome-full .welcome-card::before,.welcome-full .welcome-card::after{display:none!important}
.wl-step{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;overflow-y:auto}
.wl-a{background:radial-gradient(120% 60% at 50% 30%,#3f1a63 0%,#1e0a33 45%,#0f041a 80%)}
.wl-twinkles i{position:absolute;width:2px;height:2px;border-radius:1px;background:#fff;animation:dTwinkle2 2.8s ease-in-out infinite}
.wl-twinkles i.b{width:3px;height:3px}
.wl-hero{position:relative;flex:none;margin-top:calc(var(--safe-top) + 72px);width:300px;height:300px;display:grid;place-items:center}
.wl-hero .wl-c1{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,rgba(180,112,243,.55) 40deg,transparent 110deg,transparent 180deg,rgba(196,92,255,.5) 220deg,transparent 290deg);filter:blur(10px);animation:dSpin 18s linear infinite}
.wl-hero .wl-c2{position:absolute;inset:40px;border-radius:50%;background:conic-gradient(from 90deg,transparent 0deg,rgba(159,91,242,.6) 50deg,transparent 120deg,transparent 180deg,rgba(255,143,208,.45) 230deg,transparent 300deg);filter:blur(6px);animation:dSpinBack 26s linear infinite}
.nebula-sheet .wl-hero svg{position:absolute;inset:0;width:300px;height:300px;animation:dSpin 40s linear infinite}
.wl-hero .o1{fill:none;stroke:rgba(217,189,250,.35)}.wl-hero .o2{fill:none;stroke:rgba(255,179,240,.35)}
.wl-core{width:64px;height:64px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#efdffc 25%,rgba(194,130,245,.7) 55%,transparent 72%);animation:dBreathe 4s ease-in-out infinite}
.wl-copy{margin-top:26px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:0 30px;text-align:center;animation:dRise .9s ease-out both}
.welcome-full .welcome-kicker{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:#d9bdfa;margin:0}
.welcome-full h2{font-family:var(--d-title);margin:0;font-size:27px;line-height:1.1;font-weight:500;letter-spacing:-.01em;color:var(--d-text);background:none;-webkit-text-fill-color:currentColor;text-shadow:none}
.wl-copy p{margin:0;font-size:15px;line-height:1.45;color:#dbcced}
.wl-foot{margin-top:auto;width:100%;box-sizing:border-box;padding:18px 24px calc(28px + var(--safe-bottom));display:flex;flex-direction:column;gap:12px;animation:dRise 1.1s ease-out .2s both}
.wl-foot.tight{gap:6px;padding-top:0}
.wl-label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--d-muted)}
.wl-input{height:52px;box-sizing:border-box;border-radius:16px;border:1px solid rgba(206,167,248,.32);background:rgba(33,16,52,.72);color:var(--d-text);padding:0 16px;font:inherit;font-size:17px}
.wl-primary{height:56px;border-radius:28px;border:0;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font:inherit;font-weight:700;font-size:17px;background:var(--d-grad);box-shadow:0 10px 30px rgba(170,93,242,.45);cursor:pointer;width:100%}
.nebula-sheet .wl-primary svg{width:20px;height:20px;fill:#fff}
.wl-primary:disabled{opacity:.6}
.wl-link{height:44px;border:0;background:transparent;color:#d9bdfa;font:inherit;font-size:15px;cursor:pointer}
.wl-note{margin:0;font-size:14px;line-height:1.45;color:#dbcced;text-align:center}
.welcome-full .install-first{width:100%;box-sizing:border-box;margin-top:auto;padding:18px 24px calc(28px + var(--safe-bottom))}
/* B: the new star */
.wl-b{background:#09030f;overflow:hidden}
.reg-photo{position:absolute;inset:0;background:url(art/nebula-hero.jpg) center/cover;transform-origin:45% 35%;animation:dCamera 26s ease-in-out infinite alternate}
.reg-top-shade{position:absolute;left:0;right:0;top:0;height:120px;background:linear-gradient(180deg,rgba(9,3,15,.55),transparent)}
.reg-sky{position:absolute;inset:0;pointer-events:none}
.reg-flash{position:absolute;left:calc(50% + 75px);top:calc(var(--safe-top) + 108px);width:24px;height:24px;border-radius:50%;background:radial-gradient(circle,rgba(220,245,255,.95),transparent 70%);animation:dFlash 2.4s ease-out both}
.reg-star{position:absolute;left:calc(50% + 63px);top:calc(var(--safe-top) + 96px);width:48px;height:48px;animation:dFly 2s cubic-bezier(.2,.8,.2,1) both}
.reg-star>span{position:absolute;inset:0;animation:dShimmer 3.6s ease-in-out 2.2s infinite}
.reg-star .h{position:absolute;left:0;right:0;top:23.5px;height:1px;background:linear-gradient(90deg,transparent,rgba(235,248,255,.95),transparent)}
.reg-star .v{position:absolute;top:0;bottom:0;left:23.5px;width:1px;background:linear-gradient(180deg,transparent,rgba(235,248,255,.95),transparent)}
.reg-star b{position:absolute;left:17px;top:17px;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#e2f6ff 30%,rgba(194,158,247,.45) 62%,transparent 75%)}
.reg-ring{position:absolute;left:calc(50% + 68px);top:calc(var(--safe-top) + 101px);width:38px;height:38px;border-radius:50%;border:1px solid rgba(200,235,255,.5);animation:dRing .8s ease-out 2.2s both}
.reg-tick{position:absolute;left:calc(50% + 105px);top:calc(var(--safe-top) + 92px);width:28px;height:1px;background:rgba(200,235,255,.5);transform:rotate(-30deg);transform-origin:left center;animation:dRise .6s ease-out 2.4s both}
.reg-label{position:absolute;left:calc(50% + 123px);top:calc(var(--safe-top) + 70px);font-size:10px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#efe6fd;text-shadow:0 1px 3px rgba(0,0,0,.95);animation:dRise .6s ease-out 2.5s both}
.reg-spacer{flex:1}
.reg-block{position:relative;width:100%;padding:0 20px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.reg-shade{position:absolute;left:-20px;right:-20px;top:-40px;bottom:-20px;background:radial-gradient(70% 60% at 50% 50%,rgba(9,3,15,.72),rgba(9,3,15,.35) 65%,transparent)}
.reg-name{position:relative;font-family:var(--d-title);font-size:25px;font-weight:300;letter-spacing:.34em;padding-left:.34em;text-transform:uppercase;color:#fff;text-shadow:0 0 20px rgba(255,214,180,.55),0 2px 8px rgba(0,0,0,.95);animation:dReveal 1.6s ease-out 2.6s both;max-width:100%;overflow-wrap:anywhere}
.reg-sub{position:relative;display:flex;align-items:center;gap:10px;animation:dRise .7s ease-out 3.1s both}
.reg-sub i{width:36px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,214,160,.8))}.reg-sub i:last-child{background:linear-gradient(90deg,rgba(255,214,160,.8),transparent)}
.reg-sub span{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#ffe3c2;text-shadow:0 1px 3px rgba(0,0,0,.95)}
.reg-id-label{position:relative;margin-top:16px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#ebdcfc;text-shadow:0 1px 3px rgba(0,0,0,.95);animation:dRise .6s ease-out 3.2s both}
.reg-knot{position:relative;width:340px;max-width:100%;height:100px;display:grid;place-items:center}
.reg-knot-img{position:absolute;inset:-16px -12px;overflow:hidden;border-radius:50%;-webkit-mask:radial-gradient(closest-side,#000 50%,transparent 100%);mask:radial-gradient(closest-side,#000 50%,transparent 100%);background:url(art/nebula-knot.jpg) center/cover;animation:dDrift 14s ease-in-out infinite alternate}
.reg-knot-img b{position:absolute;inset:0;background:radial-gradient(closest-side,rgba(9,3,15,.55),rgba(9,3,15,.2) 80%,transparent)}
.reg-id{position:relative;font-family:var(--d-mono);font-size:36px;font-weight:700;letter-spacing:.04em;color:#fff;word-spacing:.18em;white-space:nowrap;text-shadow:0 0 14px rgba(255,200,240,.7),0 2px 5px #000;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 30%,rgba(0,0,0,.4) 50%,#000 70%,#000 100%);mask-image:linear-gradient(90deg,#000 0%,#000 30%,rgba(0,0,0,.4) 50%,#000 70%,#000 100%);-webkit-mask-size:220% 100%;mask-size:220% 100%;animation:dDigit .5s ease-out 3.3s both,dVeil 7s ease-in-out 4.6s infinite}
.reg-fog{position:absolute;inset:0;overflow:hidden;border-radius:44px;pointer-events:none}
.reg-fog i:first-child{position:absolute;left:60px;top:14px;width:180px;height:76px;border-radius:50%;background:radial-gradient(closest-side,rgba(230,170,220,.45),transparent);filter:blur(12px);animation:dFog 9s ease-in-out 4.4s infinite alternate}
.reg-fog i:last-child{position:absolute;left:90px;top:30px;width:160px;height:60px;border-radius:50%;background:radial-gradient(closest-side,rgba(194,158,247,.35),transparent);filter:blur(14px);animation:dFog2 11s ease-in-out 5s infinite alternate}
.reg-note{position:relative;margin:2px 0 0;font-size:15px;line-height:1.45;color:#f8f3fe;text-shadow:0 1px 4px #000;animation:dRise .6s ease-out 4s both}
.reg-foot{position:relative;width:100%;box-sizing:border-box;padding:18px 24px calc(28px + var(--safe-bottom));animation:dRise .7s ease-out 4.3s both}
/* C: keep it with Face ID */
.wl-c{gap:22px;padding:calc(var(--safe-top) + 56px) 24px 0;box-sizing:border-box;align-items:stretch;
 background:radial-gradient(1.2px 1.2px at 46px 120px,rgba(255,255,255,.8) 50%,transparent 52%),radial-gradient(1px 1px at 330px 260px,rgba(255,255,255,.6) 50%,transparent 52%),radial-gradient(1.4px 1.4px at 300px 660px,rgba(224,195,250,.7) 50%,transparent 52%),radial-gradient(120% 60% at 50% 20%,#3f1a63 0%,#1e0a33 45%,#0f041a 80%)}
.wl-card{position:relative;flex:none;height:210px;border-radius:26px;padding:22px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;
 background:radial-gradient(70% 90% at 85% 15%,rgba(196,92,255,.55),transparent 70%),radial-gradient(70% 90% at 10% 100%,rgba(159,91,242,.55),transparent 70%),#270f40;border:1px solid rgba(217,189,250,.3);box-shadow:0 24px 60px rgba(87,30,140,.5);animation:dFloat 6s ease-in-out infinite}
.nebula-sheet .wl-card-orbit{position:absolute;right:-20px;top:-20px;width:150px;height:150px;opacity:.55;animation:dSpin 30s linear infinite}
.wl-card-orbit ellipse{fill:none;stroke:#efdffc}
.wl-card-who{position:relative;display:flex;align-items:center;gap:10px}
.wl-card-av{width:40px;height:40px;border-radius:20px;background:linear-gradient(135deg,#b684f5,#ae62f2);display:grid;place-items:center;font-weight:700}
.wl-card-who div{display:flex;flex-direction:column}.wl-card-who b{font-size:17px}.wl-card-who span{font-size:12px;color:#dbcced}
.wl-card-label{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#dbcced}
.wl-card-id{font-family:var(--d-mono);font-size:28px;font-weight:700;letter-spacing:.04em}
.wl-faceid{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.wl-face{position:relative;width:84px;height:84px;border-radius:24px;border:2px solid rgba(159,231,255,.8);display:grid;place-items:center;overflow:hidden;background:rgba(33,16,52,.7)}
.nebula-sheet .wl-face svg{width:46px;height:46px;fill:none;stroke:#9fe7ff;stroke-width:1.6;stroke-linecap:round}
.wl-face i{position:absolute;left:8px;right:8px;top:50%;height:2px;background:linear-gradient(90deg,transparent,#9fe7ff,transparent);animation:dScan 2.4s ease-in-out infinite}
.wl-faceid h2{font-size:22px!important;line-height:1.15!important;font-weight:600!important}
.wl-faceid p{margin:0;font-size:15px;line-height:1.45;color:#dbcced}
.wl-checks{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:18px;background:rgba(33,16,52,.62);border:1px solid var(--d-line);font-size:14px;color:#eee1fd}
.wl-checks div{display:flex;align-items:center;gap:10px}
.nebula-sheet .wl-checks svg{width:18px;height:18px;fill:none;stroke:#5fe0a1;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.wl-c .wl-foot{padding-left:0;padding-right:0}

/* --- Keyframes (canvas names, prefixed) ----------------------------------------- */
@keyframes dSpin{to{transform:rotate(360deg)}}
@keyframes dSpinBack{to{transform:rotate(-360deg)}}
@keyframes dHalo{0%,100%{box-shadow:0 0 0 1px rgba(255,170,240,.35),0 0 22px rgba(196,92,255,.45),0 0 46px rgba(175,102,243,.25)}50%{box-shadow:0 0 0 1px rgba(255,190,245,.5),0 0 30px rgba(220,110,255,.6),0 0 60px rgba(175,102,243,.35)}}
@keyframes dNebulaIn{from{opacity:0;transform:scale(.6)}to{opacity:.95;transform:none}}
@keyframes dNebulaDrift{from{transform:translate(-8px,0) rotate(-3deg)}to{transform:translate(8px,-4px) rotate(3deg)}}
@keyframes dTwinkle{0%,100%{opacity:.2}50%{opacity:1}}
@keyframes dTwinkle2{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes dUp{from{transform:translate(-50%,70px);opacity:.6}to{transform:translate(-50%,0);opacity:1}}
@keyframes dPulse{0%,100%{box-shadow:0 0 0 0 rgba(208,176,249,.45)}50%{box-shadow:0 0 0 10px rgba(208,176,249,0)}}
@keyframes dEnter{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes dSun{0%,100%{box-shadow:0 0 30px rgba(255,214,150,.55),0 0 70px rgba(255,170,90,.25)}50%{box-shadow:0 0 40px rgba(255,214,150,.75),0 0 90px rgba(255,170,90,.35)}}
@keyframes dBeam{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes dTravel{0%{left:24px;opacity:0}10%{opacity:1}90%{opacity:1}100%{left:186px;opacity:0}}
@keyframes dAppear{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
@keyframes dBreathe{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.08);opacity:1}}
@keyframes dRise{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
@keyframes dCamera{0%{transform:scale(1.02) translate(0,0)}100%{transform:scale(1.09) translate(-6px,-10px)}}
@keyframes dFly{0%{transform:translate(-120px,240px) scale(.3);opacity:0}15%{opacity:1}75%{transform:translate(4px,-4px) scale(1.15)}100%{transform:translate(0,0) scale(1)}}
@keyframes dFlash{0%,62%{transform:scale(0);opacity:0}74%{transform:scale(1.2);opacity:.9}100%{transform:scale(3.4);opacity:0}}
@keyframes dShimmer{0%,100%{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.12)}}
@keyframes dRing{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes dReveal{from{opacity:0;letter-spacing:.6em;filter:blur(8px)}to{opacity:1;letter-spacing:.34em;filter:none}}
@keyframes dDigit{from{transform:translateY(16px);opacity:0;filter:blur(6px)}to{transform:none;opacity:1;filter:none}}
@keyframes dVeil{0%{-webkit-mask-position:120% 0;mask-position:120% 0}100%{-webkit-mask-position:-120% 0;mask-position:-120% 0}}
@keyframes dDrift{0%{transform:scale(1.15) translateX(-14px)}100%{transform:scale(1.15) translateX(14px)}}
@keyframes dFog{0%{transform:translateX(-140px)}100%{transform:translateX(140px)}}
@keyframes dFog2{0%{transform:translateX(150px)}100%{transform:translateX(-150px)}}
@keyframes dScan{0%,100%{transform:translateY(-22px);opacity:.2}50%{transform:translateY(22px);opacity:1}}
@keyframes dFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(-1deg)}}
@media (prefers-reduced-motion:reduce){
 .read-nebula,.read-nebula img,.msg-out .bubble.read,.bubble .tw,.na-orbit,.read-spiral.spin,.ps-spin,.ps-moon,.ps-sel-moon,.ps-send-ring,.ps-planet,.ps-planet.main .ps-orb,#statusBeam,.solar-sun,.planet-btn,.journey-light,
 .wl-hero *,.wl-core,.wl-copy,.wl-foot,.wl-twinkles i,.reg-photo,.reg-star,.reg-star>span,.reg-flash,.reg-ring,.reg-tick,.reg-label,.reg-name,.reg-sub,.reg-id-label,.reg-knot-img,.reg-id,.reg-fog i,.reg-note,.reg-foot,.wl-card,.wl-card-orbit,.wl-face i,.design-sheet .nebula-sheet-card{animation:none!important}
}

/* Fixes after the first comparison with the canvas */
.nebula-sheet [hidden]{display:none!important}
.nebula-sheet .menu-row svg{width:20px!important;height:20px!important;flex:none}
.wl-label,.wl-checks,.wl-checks div{text-align:left}
.nebula-sheet .wl-face svg{width:46px!important;height:46px!important}
.nebula-sheet .wl-card-orbit{width:150px!important;height:150px!important}
.nebula-sheet .wl-hero svg{width:300px!important;height:300px!important}
.nebula-sheet .wl-primary svg{width:20px!important;height:20px!important}
.chat-top.design-chat-top{margin:0 -18px!important;padding:12px 16px 14px!important}
.chat-sep::before,.chat-sep::after{display:none!important}
.person-card .menu-row{padding:14px 4px}
.design-sheet .person-card{padding-left:18px!important;padding-right:18px!important}

/* Build 39.1: storage trouble, and bringing people back after registering again */
.storage-trouble{position:fixed;inset:0;z-index:13000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:calc(var(--safe-top) + 40px) 28px calc(var(--safe-bottom) + 30px);box-sizing:border-box;text-align:center;color:var(--d-text);font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;
 background:radial-gradient(120% 60% at 50% 30%,#3f1a63 0%,#1e0a33 45%,#0f041a 80%)}
.storage-trouble[hidden]{display:none!important}
.storage-trouble h2{margin:6px 0 0;font-family:var(--d-title);font-size:24px;font-weight:500;line-height:1.15}
.storage-trouble p{margin:0;font-size:15px;line-height:1.45;color:#dbcced}
.storage-trouble .wl-primary{margin-top:10px;max-width:340px}
.st-detail{font-size:11px!important;color:#9a83b4!important;word-break:break-word}
.st-orb{position:relative;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#efdffc 22%,rgba(194,130,245,.55) 55%,transparent 72%);animation:dBreathe 4s ease-in-out infinite}
.st-orb i{position:absolute;inset:-18px;border-radius:50%;border:1px dashed rgba(225,204,251,.35);animation:dSpin 30s linear infinite}
.wl-people{gap:16px}
.wl-orbit-people{position:relative;width:96px;height:96px}
.wl-orbit-people b{position:absolute;left:36px;top:36px;width:24px;height:24px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff8e8,#ffd08a 45%,#e0843a 85%);box-shadow:0 0 24px rgba(255,214,150,.6)}
.wl-orbit-people i{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(225,204,251,.25);animation:dSpin 14s linear infinite}
.wl-orbit-people i::after{content:"";position:absolute;left:44px;top:-5px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#ffb48a,#d0628f)}
.wl-orbit-people i:nth-child(2){inset:14px;animation-duration:9s;animation-direction:reverse}.wl-orbit-people i:nth-child(2)::after{background:linear-gradient(135deg,#b9f3d8,#5fb0e0);left:30px}
.wl-orbit-people i:nth-child(3){inset:-14px;animation-duration:22s}.wl-orbit-people i:nth-child(3)::after{background:linear-gradient(135deg,#e3cbfb,#ae84d9);left:58px}
.wl-people-list{display:flex;flex-direction:column;gap:6px;max-height:34vh;overflow:auto;padding:4px 2px}
.wl-person{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:16px;background:rgba(33,16,52,.62);border:1px solid var(--d-line);text-align:left;cursor:pointer}
.wl-person input{width:20px;height:20px;accent-color:#d2aff9;flex:none}
.wl-person span{display:flex;flex-direction:column;gap:2px;min-width:0}
.wl-person b{font-size:15px}.wl-person small{font-family:var(--d-mono);font-size:12px;color:var(--d-muted)}
@media (prefers-reduced-motion:reduce){.st-orb,.st-orb i,.wl-orbit-people i{animation:none!important}}
/* iPhone browsers: where Nebula lives, and the invitation to paste in the app */
.wl-invite{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0 0 18px;padding:18px 16px;border-radius:22px;background:rgba(33,16,52,.7);border:1px solid rgba(217,189,250,.3);text-align:center}
.wl-invite-label{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#c9b2e4}
.wl-invite-id{font-family:var(--d-mono);font-size:28px;font-weight:700;letter-spacing:.04em;color:#fff;text-shadow:0 0 14px rgba(255,200,240,.5)}
.wl-install-title{font-size:13px;font-weight:600;color:#eee1fd;margin:4px 0 8px;text-align:left}
.welcome-full .install-steps{margin:0 0 10px}
.browser-note{color:#ffd9a8!important;margin-top:6px!important}
.move-card{display:flex;flex-direction:column;gap:8px;margin:4px 0 12px;padding:14px 16px;border-radius:18px;background:rgba(255,204,116,.08);border:1px solid rgba(255,204,116,.35);color:#ffe8bd;font-size:13px;line-height:1.4}
.move-card b{color:#fff;font-size:14px}
.move-card .send-pill{align-self:flex-start}
.add-id-form .paste-btn{flex:none;padding:0 12px;height:44px}
.add-name,.verify-name{margin-bottom:10px}

/* --- Build 41: group board, trip dashboard, drawing (GroupBoard, Dashboard, Drawing) --- */
@keyframes dPop{from{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}
@keyframes dFill{from{stroke-dashoffset:var(--len,300)}}
@keyframes dGrow{from{width:0}}
@keyframes dOrbit{to{transform:rotate(360deg)}}
@keyframes dPan{from{transform:scale(1.08)}to{transform:scale(1.16) translate(-6px,-6px)}}
.draw-sheet[hidden],.board-image[hidden],.draw-sheet [hidden],.board-grid[hidden],.board-dock[hidden]{display:none!important}

/* group header and the Chat | Board switch */
.g-faces{display:flex;flex:none}
.g-faces .gf{width:30px;height:30px;border-radius:15px;border:2px solid #160726;box-sizing:border-box;display:grid;place-items:center;font-size:11px;font-weight:700;color:#221030}
.g-faces .gf+.gf{margin-left:-10px}
.seg2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;margin:12px 0 0;border-radius:16px;background:rgba(255,255,255,.05)}
.seg2 button{height:40px;border-radius:12px;border:0;background:transparent;color:#dbcced;font:inherit;font-size:15px;cursor:pointer}
.seg2 button.on{background:#512a7a;color:#fff;font-weight:700}
[data-screen="group"].on-board .group-missing{margin-top:12px}

/* the board: cards in two columns */
.board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start;padding:14px 0 calc(150px + var(--safe-bottom))}
.bc{position:relative;min-width:0;padding:14px;border-radius:20px;background:rgba(33,16,52,.72);border:1px solid rgba(196,149,246,.18);display:flex;flex-direction:column;gap:8px;animation:dPop .4s ease-out both;overflow-wrap:anywhere}
.bc.span2{grid-column:span 2}
.bc-k{font-size:12px;color:#b29ec8;padding-right:26px}
.bc-t{font-weight:700;font-size:15px;padding-right:22px}
.bc-t.sm{font-size:14px}
.bc-sub{font-size:12px;color:#dbcced}
.bc-note{font-size:15px;line-height:1.4;white-space:pre-wrap;padding-right:22px}
.bc-more{position:absolute;top:6px;right:6px;width:32px;height:32px;border:0;border-radius:16px;background:transparent;color:#b29ec8;display:grid;place-items:center;cursor:pointer}
.bc-more svg{width:18px;height:18px;fill:currentColor}
.bc-pinned{display:flex;align-items:center;gap:6px;font-size:12px;color:#ffe2a8}
.bc-pinned svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bc.span2:has(.bc-pinned){border-color:rgba(255,217,143,.35)}
.bc.note{background:rgba(255,217,143,.07);border-color:rgba(255,217,143,.25)}
.bc.note.span2{background:linear-gradient(135deg,rgba(255,217,143,.22),rgba(255,143,208,.14));border-color:rgba(255,217,143,.35)}
.bc.note.span2 .bc-note{font-size:17px;font-weight:700;margin-top:-2px}
.bc-check{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.bc-check input{width:18px;height:18px;margin:0;flex:none;accent-color:#5fe0a1}
.bc-check.done{color:#b29ec8;text-decoration:line-through}
.bc-check small{font-size:11px;color:#b29ec8;text-decoration:none}
.bc-opt{position:relative;display:block;width:100%;height:30px;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.06);overflow:hidden;color:inherit;font:inherit;text-align:left;cursor:pointer}
.bc-opt i{position:absolute;left:0;top:0;bottom:0;background:rgba(206,167,248,.3);animation:dGrow .6s ease-out both}
.bc-opt.mine i{background:linear-gradient(90deg,#9f58f1,#a34dff)}
.bc-opt span,.bc-opt b{position:relative;line-height:30px;font-size:13px}
.bc-opt span{padding:0 10px}
.bc-opt b{position:absolute;right:10px;top:0;font-weight:600}
.bc-btn{display:flex;align-items:center;justify-content:center;height:30px;border-radius:15px;border:1px solid rgba(225,204,251,.25);background:transparent;color:#eee1fd;font:inherit;font-size:12px;text-decoration:none;cursor:pointer}
.bc-btn.green{border-color:rgba(95,224,161,.4);color:#c8f7df}.bc-btn.green.on{background:rgba(95,224,161,.18)}
.bc-btn.gold{border-color:rgba(255,204,116,.4);color:#ffe8bd}.bc-btn.gold.on{background:rgba(255,204,116,.18)}
.bc-btn.blue{border-color:rgba(179,130,245,.4);color:#e4d3fb}
.bc-btn.ghosty.on{background:rgba(225,204,251,.14)}
.bc-two{display:flex;gap:6px}.bc-two .bc-btn{flex:1}
.bc.event{border-color:rgba(95,224,161,.3)}.bc.event .bc-k{color:#9ff0c8}
.bc.split{border-color:rgba(255,204,116,.3)}.bc.split .bc-k{color:#ffe2a8}
.bc.tasks{border-color:rgba(196,92,255,.3)}.bc.tasks .bc-k{color:#e1b3ff}
.bc.place{border-color:rgba(153,93,242,.3)}.bc.place .bc-k{color:#cdaff9}
.bc.countdown{background:radial-gradient(80% 80% at 90% 10%,rgba(179,121,244,.35),transparent 70%),rgba(33,16,52,.72);border-color:rgba(194,130,245,.35)}.bc.countdown .bc-k{color:#debdfa}
.bc.dash{background:radial-gradient(80% 80% at 90% 10%,rgba(196,92,255,.4),transparent 70%),rgba(33,16,52,.72);border-color:rgba(196,92,255,.35);cursor:pointer}.bc.dash .bc-k{color:#e7c4ff}
.bc-big{font-family:var(--d-title);font-size:29px;font-weight:500;line-height:1;letter-spacing:-.01em}
.bc-big span{font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;font-size:14px;font-weight:600;color:#dbcced}
.bc-bar{height:8px;border-radius:4px;background:rgba(255,255,255,.1);overflow:hidden}
.bc-bar i{display:block;height:8px;background:linear-gradient(90deg,#5fe0a1,#9f5bf2);animation:dGrow 1s ease-out both}
.bc.drawing{padding:10px;background:#f6f3ea;border:0;gap:6px}
.bc.drawing .bc-more{color:#5d4a72}
.bc.drawing .bc-pinned{color:#9a6a1a}
.bc.drawing img{display:block;width:100%;max-height:170px;object-fit:cover;border-radius:12px;cursor:zoom-in}
.bc-cap{font-size:12px;color:#5d4a72}
.bc-wait{display:grid;place-items:center;height:110px;border-radius:12px;background:rgba(25,10,40,.06);color:#9c8dad;font-size:12px}
.bc.album .bc-wait{background:rgba(255,255,255,.05);color:#b29ec8}
.bc-album{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.bc-album.n1{grid-template-columns:1fr}
.bc-album img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block;cursor:zoom-in}
.board-empty{grid-column:span 2;display:flex;flex-direction:column;gap:6px;padding:22px 18px;border-radius:20px;border:1px dashed rgba(225,204,251,.3);text-align:center;font-size:13px;color:#c9b2e4}
.board-empty b{font-size:15px;color:var(--d-text)}

/* the dock of tools */
.board-dock{position:fixed;z-index:8;left:50%;transform:translateX(-50%);bottom:calc(14px + var(--safe-bottom));width:min(calc(100% - 20px),540px);box-sizing:border-box;padding:10px 0 8px;border-radius:26px;background:rgba(17,6,28,.9);border:1px solid rgba(225,204,251,.18);box-shadow:0 -10px 30px rgba(0,0,0,.45);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.bd-kicker{padding:0 16px 6px;font-size:10px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#c9b2e4}
.bd-tools{display:flex;gap:6px;overflow-x:auto;padding:0 10px;scrollbar-width:none}
.bd-tools::-webkit-scrollbar{display:none}
.bd-tool{flex:none;width:62px;display:flex;flex-direction:column;align-items:center;gap:5px;border:0;padding:0;background:transparent;color:#eee1fd;font:inherit;font-size:10.5px;cursor:pointer}
.bd-tool span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
.bd-tool svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* adding and editing */
.be-fields{display:flex;flex-direction:column;gap:12px;padding:10px 22px 0}
.be-l{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#c9b2e4;min-width:0}
.be-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.be-fields .cosmic-input{display:block;width:100%;box-sizing:border-box;margin:0;min-height:46px;padding:12px 14px;border-radius:14px;border:1px solid rgba(206,167,248,.26);background:rgba(17,6,30,.7);color:var(--d-text);font:inherit;font-size:16px;-webkit-appearance:none;appearance:none}
.be-fields textarea.cosmic-input{resize:vertical;line-height:1.4}
.be-fields select.cosmic-input{background-image:linear-gradient(45deg,transparent 50%,#c9b2e4 50%),linear-gradient(135deg,#c9b2e4 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:30px}
.be-among{display:flex;flex-wrap:wrap;gap:8px}
.be-among label{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid rgba(225,204,251,.2);font-size:13px;color:var(--d-text);cursor:pointer}
.be-among input{margin:0;accent-color:#ffcc74}
.be-album{display:flex;gap:8px;flex-wrap:wrap}
.be-album button{position:relative;width:64px;height:64px;padding:0;border:0;border-radius:12px;overflow:hidden;background:none;cursor:pointer}
.be-album img{width:100%;height:100%;object-fit:cover}
.be-album span{position:absolute;right:4px;top:4px;width:20px;height:20px;border-radius:10px;background:rgba(9,3,15,.7);color:#fff;font-size:14px;line-height:20px}
.be-pin{display:flex;align-items:center;gap:10px;padding:14px 22px 0;font-size:14px;cursor:pointer}
.be-pin input{width:20px;height:20px;margin:0;accent-color:#ffcc74}
.be-foot{display:flex;align-items:center;gap:10px;padding:14px 22px 0}
.ds-text-btn.danger{color:#ff8a9a}
.board-edit-card #beAlbumPick{margin-top:2px}

/* group info and small menus */
.gi-members{display:flex;flex-direction:column;padding:8px 0 10px}
.gi-row{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--d-line)}
.gi-row .face{width:38px;height:38px}
.gi-name{flex:1;min-width:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gi-name small{color:#b29ec8;font-size:12px}
.gi-state{font-size:12px;color:#ffcc74}.gi-state.ok{color:#5fe0a1}
.gi-members .menu-row .face{width:36px;height:36px}
.menu-row.danger{color:#ff8a9a}
.menu-row.two{flex-direction:column;align-items:flex-start;gap:2px}
.menu-row.two small{font-size:12px;color:#b29ec8}
.menu-row:disabled{opacity:.5}

/* the trip dashboard */
[data-screen="dashboard"]{margin:calc(-1 * var(--safe-top)) -18px 0}
.dash-hero{position:relative;height:calc(268px + var(--safe-top));overflow:hidden}
.dash-sky{position:absolute;inset:0;background:url(art/nebula-hero.jpg) 50% 30%/cover #1d0b30;animation:dPan 28s ease-in-out infinite alternate}
.dash-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,3,15,.55) 0%,rgba(9,3,15,.15) 40%,rgba(9,3,15,.85) 85%,#09030f)}
.dash-top{position:relative;display:flex;align-items:center;justify-content:space-between;padding:calc(var(--safe-top) + 10px) 16px 0}
.dash-btn{height:40px;padding:0 14px;border-radius:20px;border:1px solid rgba(255,255,255,.2);background:rgba(9,3,15,.45);color:#fff;font:inherit;font-size:13px;cursor:pointer}
.dash-btn.round{width:40px;padding:0;display:grid;place-items:center}
.dash-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dash-tag{padding:6px 12px;border-radius:999px;background:rgba(9,3,15,.5);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#efdffc;max-width:52%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-headline{position:absolute;left:20px;right:20px;bottom:18px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.dash-headline>div:first-child{display:flex;flex-direction:column;gap:6px;min-width:0;animation:dRise .6s ease-out both}
.dash-headline h1{margin:0;font-family:var(--d-title);font-size:30px;font-weight:500;letter-spacing:-.01em;text-shadow:0 2px 10px rgba(0,0,0,.8);overflow-wrap:anywhere}
.dash-dates{font-size:13px;color:#f2e8fd;text-shadow:0 1px 4px rgba(0,0,0,.9)}
.dash-ring{position:relative;width:92px;height:92px;flex:none;animation:dRise .6s ease-out .1s both}
.dash-ring svg{display:block;width:92px;height:92px}
.dash-ring .dr-n{fill:#fff;font-family:var(--d-title);font-size:24px;font-weight:500}
.dash-ring .dr-l{fill:#f2e8fd;font-size:9px;letter-spacing:1.5px}
.dash-orbit{position:absolute;inset:0;animation:dOrbit 10s linear infinite}
.dash-orbit i{position:absolute;left:42px;top:2px;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 10px #ffe0b0}
.dash-fill{animation:dFill 1.4s ease-out both}
.dash-body{display:flex;flex-direction:column;gap:14px;padding:6px 16px calc(40px + var(--safe-bottom))}
.dash-gauges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dg{padding:12px 6px;border-radius:20px;background:rgba(28,12,44,.72);border:1px solid rgba(225,204,251,.14);display:flex;flex-direction:column;align-items:center;gap:6px}
.dg svg{width:58px;height:58px}
.dg text{fill:#fff;font-size:13px;font-weight:700}
.dg span{font-size:11px;color:#dcccef;text-align:center}
.dash-card{padding:16px;border-radius:22px;background:rgba(28,12,44,.72);border:1px solid rgba(225,204,251,.14);display:flex;flex-direction:column;gap:12px}
.dash-card.row{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.dash-card.row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.dash-card.row b{font-size:14px;font-weight:600}
.dash-card.row .bc-btn{flex:none;padding:0 16px;height:36px;border-radius:18px;font-size:13px}
.dash-card h2,.dc-head h2{margin:0;font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#c9b2e4}
.dc-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.dc-link{border:0;background:none;padding:4px 0;color:#d9bdfa;font:inherit;font-size:12px;cursor:pointer;flex:none}
.dc-money{display:flex;align-items:baseline;gap:8px}
.dc-money b{font-family:var(--d-title);font-size:26px;font-weight:500}
.dc-money span{font-size:13px;color:#c9b2e4}
.dc-stack{display:flex;height:10px;border-radius:5px;overflow:hidden;background:rgba(255,255,255,.08)}
.dc-stack i{display:block;height:10px;animation:dGrow 1s ease-out both}
.dc-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;color:#dcccef}
.dc-legend span{display:flex;align-items:center;gap:5px}
.dc-legend i{width:8px;height:8px;border-radius:4px}
.dc-owe{display:flex;flex-direction:column;gap:8px;padding-top:8px;border-top:1px solid rgba(225,204,251,.1)}
.dc-owe>div{padding:10px 12px;border-radius:14px;background:rgba(255,204,116,.1);font-size:13px;color:#ffe8bd}
.dc-sub{font-size:13px;color:#c9b2e4}
.dc-line{position:relative;display:flex;flex-direction:column;gap:12px;padding-left:22px}
.dc-line::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:1px;background:linear-gradient(180deg,#ffe0b0,rgba(225,204,251,.2))}
.dc-day{position:relative;display:flex;flex-direction:column;gap:2px}
.dc-day i{position:absolute;left:-20px;top:4px;width:9px;height:9px;border-radius:50%;background:#debdfa;box-shadow:0 0 8px #debdfa}
.dc-day:first-child i{background:#ffe0b0;box-shadow:0 0 8px #ffe0b0}
.dc-day.past{opacity:.55}
.dc-day span{font-size:11px;color:#c9b2e4}
.dc-day b{font-size:14px;font-weight:600}
.dc-check{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer}
.dc-check input{width:20px;height:20px;margin:0;flex:none;accent-color:#5fe0a1}
.dc-check span{flex:1;min-width:0}
.dc-check small{font-size:11px;color:#c9b2e4;max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-add{height:52px;border-radius:26px;border:1px dashed rgba(225,204,251,.35);background:transparent;color:#eee1fd;font:inherit;font-size:14px;cursor:pointer}
.dash-foot{font-size:11px;color:#a690c0;text-align:center}

/* drawing: the whole screen */
body.drawing-open{overflow:hidden}
.draw-sheet{position:fixed;inset:0;z-index:12500;display:flex;flex-direction:column;background:#09030f;color:var(--d-text);font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif}
.dr-top{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:calc(var(--safe-top) + 8px) 14px 10px}
.dr-text{height:44px;padding:0 12px;border:0;background:transparent;color:#c9b2e4;font:inherit;font-size:15px;cursor:pointer}
.dr-to{display:flex;align-items:center;gap:8px;min-width:0;height:40px;padding:0 12px 0 6px;border-radius:20px;border:1px solid rgba(225,204,251,.22);background:rgba(255,255,255,.04);color:var(--d-text);font:inherit;cursor:pointer}
.dr-to-av{width:28px;height:28px;flex:none;border-radius:14px;background:linear-gradient(135deg,#f0b48e,#b85f86);display:grid;place-items:center;font-family:var(--d-title);font-size:11px;color:#2a0f2a}
.dr-to #drawToName{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-to svg{width:12px;height:12px;flex:none;fill:none;stroke:#c9b2e4;stroke-width:2.4;stroke-linecap:round}
.dr-undo{display:flex;gap:4px}
.dr-round{width:40px;height:40px;border-radius:20px;border:0;background:rgba(255,255,255,.06);color:#f9f5fe;display:grid;place-items:center;cursor:pointer}
.dr-round:disabled{color:#9a83b4}
.dr-round svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dr-modes{display:flex;justify-content:center;gap:6px;padding:0 14px 10px}
.dr-modes button{height:32px;padding:0 14px;border-radius:16px;border:1px solid rgba(225,204,251,.2);background:transparent;color:#c9b2e4;font:inherit;font-size:12px;cursor:pointer}
.dr-modes button.on{border-color:#fff;background:#fff;color:#1d0b30;font-weight:600}
.dr-stage{position:relative;flex:1;min-height:0;margin:0 12px;border-radius:22px;overflow:hidden;border:1px solid rgba(225,204,251,.2)}
.dr-stage canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}
.dr-badge{position:absolute;left:10px;top:10px;padding:4px 10px;border-radius:999px;background:rgba(9,3,15,.6);font-size:11px;color:#eee1fd;pointer-events:none}
.dr-text-in{position:absolute;width:180px;height:36px;box-sizing:border-box;padding:0 10px;border-radius:10px;border:1px dashed rgba(255,255,255,.7);background:rgba(9,3,15,.55);font:inherit;font-size:18px;font-weight:700;outline:none}
.dr-bottom{display:flex;flex-direction:column;gap:12px;padding:12px 12px calc(14px + var(--safe-bottom))}
.dr-tools{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.dr-tools::-webkit-scrollbar{display:none}
.dr-tools button{flex:none;width:54px;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;padding:6px 0;border-radius:14px;background:transparent;color:#e1d2f2;font:inherit;font-size:10px;cursor:pointer}
.dr-tools button.on{background:rgba(159,246,255,.16);color:#9ff6ff}
.dr-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dr-sliders{display:flex;align-items:center;gap:12px}
.dr-colour{flex:1;display:flex;flex-direction:column;gap:6px;font-size:10px;color:#c9b2e4}
.dr-hue{position:relative;height:18px;border-radius:9px;background:linear-gradient(90deg,#ff4d6d,#ffb347,#fff27a,#5fe0a1,#7ff0ff,#b178f4,#c45cff,#ff8fd0,#fff);touch-action:none;cursor:pointer}
.dr-knob{position:absolute;left:52%;top:-3px;width:22px;height:22px;margin-left:-11px;border-radius:11px;background:#7ff0ff;border:3px solid #fff;box-sizing:border-box;pointer-events:none}
.dr-size{width:96px;display:flex;flex-direction:column;gap:6px;font-size:10px;color:#c9b2e4}
.dr-size input{width:96px;margin:0;accent-color:#9ff6ff}
.dr-actions{display:flex;gap:10px}
.dr-pin{flex:1;height:50px;border-radius:25px;border:1px solid rgba(225,204,251,.25);background:rgba(255,255,255,.04);color:#f9f5fe;font:inherit;font-size:14px;cursor:pointer}
.dr-actions .moon-pill{flex:1.4;height:50px;font-size:15px}

/* a picture from the board, full screen */
.board-image{position:fixed;inset:0;z-index:13000;display:grid;place-items:center;background:rgba(9,3,15,.94);cursor:zoom-out}
.board-image img{max-width:94vw;max-height:84vh;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.bi-close{position:absolute;top:calc(var(--safe-top) + 10px);right:18px;font-size:34px;line-height:1;color:#fff}

/* Draw in the photo sheet, and in Work */
.ps-planet.draw .ps-orb{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.2),rgba(255,120,170,.28) 60%,rgba(80,20,60,.3));border-color:rgba(255,160,200,.45)}
.p-draw{background:radial-gradient(circle at 32% 28%,#ffd6e6,#e0508a 50%,#4a0f2a)}
.wk-open{flex:none;align-self:center;padding:6px 12px;border-radius:999px;border:1px solid rgba(225,204,251,.22);font-size:12px;color:#eee1fd}
.dc-payers{display:flex;flex-direction:column;gap:8px;padding-top:6px;border-top:1px solid rgba(225,204,251,.1)}
.dc-payer{display:flex;align-items:center;gap:10px;font-size:13px}
.dc-payer .gf{width:26px;height:26px;border-radius:13px;flex:none}
.dc-payer span:nth-child(2){flex:1;min-width:0}
.dc-payer b{font-family:var(--d-mono);font-weight:500}
.dc-owe>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dc-settle{flex:none;border:0;background:none;padding:2px 0;color:#ffe8bd;font:inherit;font-size:13px;font-weight:600;text-decoration:underline;cursor:pointer}
/* #cosmicApp svg sets every icon to 20px: the board's own sizes win here. */
#cosmicApp .dash-ring svg{width:92px;height:92px}
#cosmicApp .dg svg{width:58px;height:58px}
#cosmicApp .bc-more svg{width:18px;height:18px}
#cosmicApp .bc-pinned svg{width:14px;height:14px}
#cosmicApp .bd-tool svg{width:18px;height:18px}
#cosmicApp .dash-btn svg{width:18px;height:18px}
#cosmicApp .work-planet.p-draw svg{width:18px;height:18px}

/* --- Build 42: connect in one step (the code on screen, invites) --- */
.connect-card .sheet-head{margin-bottom:6px}
.connect-qr-wrap{display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 0 4px}
.connect-qr{width:min(62vw,232px);aspect-ratio:1;border-radius:24px;background:#fff;padding:10px;box-sizing:border-box;box-shadow:0 0 0 6px rgba(209,176,249,.12),0 0 40px rgba(194,149,246,.35);animation:dPop .4s ease-out both}
.connect-qr svg{display:block;width:100%!important;height:100%!important}
.connect-qr-copy{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;max-width:320px}
.connect-qr-copy b{font-family:var(--d-title);font-size:19px;font-weight:500}
.connect-qr-copy span{font-size:13px;color:#c9b2e4;line-height:1.4}
.connect-actions{display:flex;flex-direction:column;gap:10px;margin:14px 0 6px}
.connect-actions .pair-actions{margin:0}
.connect-more{margin-top:14px;border-top:1px solid rgba(206,167,248,.16);padding-top:10px}
.connect-more summary{cursor:pointer;list-style:none;font-size:13px;color:#d9bdfa;padding:6px 0}
.connect-more summary::-webkit-details-marker{display:none}
.connect-more summary::before{content:"+ "}
.connect-more[open] summary::before{content:"− "}
/* Video call next to Call in the chat header (asked for: video calls must be one tap away). */
.round-call.video{background:rgba(179,121,244,.16);color:#d1aff9;margin-right:-4px}

/* --- Build 40: Your star (ProfilePhoto) --- */
@keyframes sSpin{to{transform:rotate(360deg)}}
@keyframes sComet{0%,90%{transform:translate(0,0) rotate(-30deg);opacity:0}91%{opacity:1}100%{transform:translate(-460px,260px) rotate(-30deg);opacity:0}}
@keyframes sComet2{0%,92%{transform:translate(0,0) rotate(-36deg);opacity:0}93%{opacity:.9}100%{transform:translate(-420px,306px) rotate(-36deg);opacity:0}}
@keyframes sPan{from{transform:scale(1.05) translateY(0)}to{transform:scale(1.12) translateY(-14px)}}
.star-sheet{position:fixed;inset:0;z-index:12600;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:18px;padding:calc(var(--safe-top) + 12px) 24px calc(24px + var(--safe-bottom));box-sizing:border-box;background:#09030f;color:var(--d-text);font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;isolation:isolate}
.star-sheet[hidden]{display:none!important}
.star-sky{position:absolute;z-index:-2;inset:0;background:url(art/nebula-hero.jpg) 50% 30%/cover;opacity:.38;animation:sPan 30s ease-in-out infinite alternate}
.star-shade{position:absolute;z-index:-1;inset:0;background:radial-gradient(70% 45% at 50% 30%,rgba(9,3,15,.15),rgba(9,3,15,.6) 70%),linear-gradient(180deg,rgba(9,3,15,.3),rgba(9,3,15,.75) 60%,#09030f)}
.star-comet{position:absolute;z-index:-1;left:100%;top:70px;width:120px;height:2px;border-radius:1px;background:linear-gradient(90deg,#fff,rgba(217,195,250,.55) 20%,transparent);box-shadow:0 0 6px rgba(234,223,252,.8);animation:sComet 9s linear 1.5s infinite}
.star-comet.two{top:380px;width:90px;height:1.5px;background:linear-gradient(90deg,#fff4e6,rgba(255,210,170,.5) 20%,transparent);animation:sComet2 13s linear 5s infinite}
.star-top{align-self:stretch;display:flex;align-items:center;justify-content:space-between}
.star-title{font-family:var(--d-title);font-weight:500;font-size:16px;letter-spacing:.02em}
.star-spacer{width:44px}
.star-orbit{position:relative;width:min(84vw,330px);aspect-ratio:1;display:grid;place-items:center;margin-top:-6px;flex:none}
.so-galaxy{position:absolute;inset:0;border-radius:50%;background:url(art/nebula-knot.jpg) 40% 40%/180% auto;-webkit-mask:radial-gradient(closest-side,transparent 50%,#000 60%,#000 78%,transparent 100%);mask:radial-gradient(closest-side,transparent 50%,#000 60%,#000 78%,transparent 100%);opacity:.9;animation:sSpin 90s linear infinite}
.so-ring{position:absolute;inset:4.5%;transform:perspective(700px) rotateZ(-14deg) rotateX(76deg);border-radius:50%;border:2px solid rgba(255,232,205,.75);box-shadow:0 0 18px rgba(255,214,170,.55),inset 0 0 18px rgba(255,214,170,.35)}
.so-ring.back i{position:absolute;inset:0;animation:sSpin 14s linear infinite}
.so-ring.back i::after{content:"";position:absolute;left:48.5%;top:-5px;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 12px #fff2dc,0 0 24px rgba(255,214,170,.8)}
.so-ring.front{clip-path:inset(50% 0 0 0);border-color:rgba(255,240,220,.95);box-shadow:0 0 22px rgba(255,214,170,.7)}
.so-photo{position:relative;width:53%;aspect-ratio:1;border-radius:50%;padding:2px;box-sizing:border-box;background:linear-gradient(160deg,rgba(255,255,255,.85),rgba(255,255,255,.08) 55%,rgba(225,204,251,.5));box-shadow:0 0 0 6px rgba(9,3,15,.55),0 0 60px rgba(199,158,247,.45)}
.so-in{width:100%;height:100%;border-radius:50%;overflow:hidden;display:grid;place-items:center;position:relative;background:linear-gradient(180deg,#c197f7,#945ad6)}
.so-in img{width:100%;height:100%;object-fit:cover}
.so-initial{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--d-title);font-size:56px;color:#221030}
.so-hint{position:absolute;bottom:14px;padding:3px 10px;border-radius:999px;background:rgba(15,4,26,.6);font-size:11px}
.so-change{position:absolute;right:19%;bottom:20%;width:48px;height:48px;border-radius:24px;border:1px solid rgba(236,223,252,.55);background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.3),rgba(64,30,100,.75) 70%);color:#fff;display:grid;place-items:center;box-shadow:0 6px 20px rgba(0,0,0,.5);cursor:pointer}
.so-change svg,.star-main svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.star-who{text-align:center;display:flex;flex-direction:column;gap:6px}
.star-name{font-family:var(--d-title);font-size:20px;font-weight:600;letter-spacing:-.01em}
.star-sub{font-size:14px;color:#dbcced}
.star-actions{align-self:stretch;display:flex;flex-direction:column;gap:10px;margin-top:8px}
.star-main{height:54px;border-radius:27px;border:0;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font:inherit;font-weight:700;font-size:16px;background:var(--d-grad);cursor:pointer}
.star-second{height:54px;border-radius:27px;border:1px solid rgba(206,167,248,.3);background:rgba(255,255,255,.05);color:var(--d-text);font:inherit;font-weight:600;font-size:16px;cursor:pointer}
.star-remove{height:44px;border:0;background:transparent;color:#ffb3c4;font:inherit;font-size:15px;cursor:pointer}
.star-foot{margin-top:auto;align-self:stretch;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:rgba(33,16,52,.62);border:1px solid rgba(196,149,246,.16);font-size:13px;color:#eee1fd}
.star-foot svg{width:20px;height:20px;flex:none;fill:none;stroke:#5fe0a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.star-face{overflow:hidden;border-radius:50%}
.star-face img{width:100%;height:100%;object-fit:cover}

/* --- Build 40: calls as designed (CallIncoming, CallLive, CallTrouble) --- */
@keyframes cRipple{0%{transform:scale(.8);opacity:.7}100%{transform:scale(1.9);opacity:0}}
@keyframes cSpin{to{transform:rotate(360deg)}}
@keyframes cNudge{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes cAiRing{0%,100%{transform:scale(1);opacity:.5}50%{transform:scale(1.15);opacity:1}}
@keyframes cBar{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.design-call{justify-content:flex-start;padding:calc(30px + var(--safe-top)) 24px calc(30px + var(--safe-bottom));font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;color:var(--d-text);
 background:radial-gradient(1.2px 1.2px at 46px 140px,rgba(255,255,255,.8) 50%,transparent 52%),radial-gradient(1px 1px at 330px 220px,rgba(255,255,255,.6) 50%,transparent 52%),radial-gradient(140% 70% at 50% -20%,var(--sky-a,#391a5a) 0%,var(--sky-b,#160726) 45%,var(--sky-c,#0f041a) 75%)!important;overflow-y:auto}
.design-call::before{display:none!important}
.design-call .call-top{position:relative;z-index:2;display:flex;justify-content:center;min-height:30px}
.design-call .call-kind{font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:#9fe7ff}
.design-call .call-quality{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(95,224,161,.12);border:1px solid rgba(95,224,161,.35);font-size:13px;color:#c8f7df}
.design-call .call-quality svg{width:16px;height:16px;fill:#5fe0a1}
.design-call .call-quality[data-q="fair"]{background:rgba(255,204,116,.12);border-color:rgba(255,204,116,.35);color:#ffe8bd}
.design-call .call-quality[data-q="fair"] svg{fill:#ffcc74}.design-call .call-quality[data-q="fair"] .q4{opacity:.25}
.design-call .call-quality[data-q="poor"]{background:rgba(224,72,95,.12);border-color:rgba(224,72,95,.4);color:#ffc2cc}
.design-call .call-quality[data-q="poor"] svg{fill:#ff8a9a}
.design-call .call-info{gap:0;width:100%}
.design-call .call-av-wrap{position:relative;width:220px;height:220px;margin-top:26px;display:grid;place-items:center}
.design-call .call-ripple{position:absolute;width:150px;height:150px;border-radius:50%;border:2px solid rgba(159,231,255,.6);opacity:0}
.design-call .call-ripple.two{border-color:rgba(196,92,255,.6)}
.design-call[data-phase="ringing"] .call-ripple,.design-call[data-phase="calling"] .call-ripple{animation:cRipple 2.4s ease-out infinite}
.design-call[data-phase="ringing"] .call-ripple.two,.design-call[data-phase="calling"] .call-ripple.two{animation-delay:1.2s}
.design-call .call-orbit{position:absolute;inset:0;width:220px!important;height:220px!important;animation:cSpin 14s linear infinite}
.design-call .call-avatar::before,.design-call .call-avatar::after{display:none}
.design-call .call-avatar .person-avatar,.design-call .call-avatar .avatar{width:142px!important;height:142px!important;font-size:56px!important;box-shadow:0 0 0 4px #160726,0 0 0 8px rgba(95,224,161,.6),0 0 40px rgba(179,121,244,.45)!important}
.design-call .call-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.design-call .call-name{font-family:var(--d-title);font-size:29px;font-weight:500;letter-spacing:-.01em;margin-top:22px;text-shadow:none}
.design-call .call-wholine{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;font-size:14px;color:#c8f7df}
.design-call .call-wholine svg{width:16px;height:16px;fill:none;stroke:#5fe0a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.design-call .call-status{margin-top:6px;font-family:var(--d-mono);font-size:17px;color:#dbcced}
.design-call[data-phase="ringing"] .call-status{display:none}
.design-call .call-bars{margin-top:14px;height:34px;display:flex;align-items:center;gap:4px}
.design-call .call-bars i{width:4px;height:30px;border-radius:2px;background:#9fe7ff;transform:scaleY(.3);transition:transform .3s}
.design-call .call-bars i:nth-child(3){background:#d6aff8}.design-call .call-bars i:nth-child(4){background:#d9a8ff}.design-call .call-bars i:nth-child(5){background:#ffb3f0}
.design-call .call-bars.speaking i{animation:cBar 1s ease-in-out infinite}
.design-call .call-bars.speaking i:nth-child(2){animation-delay:.15s}.design-call .call-bars.speaking i:nth-child(3){animation-delay:.3s}.design-call .call-bars.speaking i:nth-child(4){animation-delay:.45s}.design-call .call-bars.speaking i:nth-child(5){animation-delay:.6s}
.design-call[data-phase="connected"] .call-av-wrap{width:128px;height:128px;margin-top:22px}
.design-call[data-phase="connected"] .call-orbit{display:none}
.design-call[data-phase="connected"] .call-avatar .person-avatar,.design-call[data-phase="connected"] .call-avatar .avatar{width:114px!important;height:114px!important;font-size:44px!important}
.design-call[data-phase="connected"] .call-name{font-size:24px;font-weight:600;margin-top:12px}
.design-call .call-e2e{margin-top:8px}
.design-call .call-code{margin-top:20px;width:100%;box-sizing:border-box;padding:14px;border-radius:20px;background:rgba(33,16,52,.62);border:1px solid rgba(196,149,246,.18);display:flex;flex-direction:column;gap:10px;align-items:center;color:inherit;font:inherit}
.design-call .call-code[hidden]{display:none}
.design-call .code-label{font-size:13px;color:#dbcced}
.design-call .code-symbols{display:flex;gap:10px;font-size:0}
.design-call .cc-tile{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:28px;background:rgba(159,91,242,.18)}
.design-call .cc-tile:nth-child(2){background:rgba(196,92,255,.18)}.design-call .cc-tile:nth-child(3){background:rgba(255,204,116,.16)}.design-call .cc-tile:nth-child(4){background:rgba(95,224,161,.16)}
.design-call .code-hint{font-size:11px;color:#b29ec8;text-align:center}
.design-call .call-controls{margin-top:auto;padding-top:18px;display:flex;flex-direction:column;gap:22px}
.design-call #callIncomingControls{display:flex;justify-content:space-between;padding:0 6px;gap:0}
.design-call #callIncomingControls[hidden],.design-call #callActiveControls[hidden],.design-call .call-replies[hidden]{display:none!important}
.design-call .call-btn-wrap{gap:10px;font-size:14px;color:#eee1fd}
.design-call .call-btn{width:66px;height:66px;border:0;background:rgba(255,255,255,.1);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.design-call .call-btn svg{width:26px;height:26px}
.design-call .call-btn.on{background:#fff;color:#1d0b30}
.design-call .call-btn.end,.design-call .call-btn.accept{width:78px;height:78px}
.design-call .call-btn.end{background:#e0485f;box-shadow:0 12px 30px rgba(224,72,95,.45)}
.design-call .call-btn.accept{background:#2fbf7a;box-shadow:0 12px 30px rgba(47,191,122,.5);animation:cNudge 1.4s ease-in-out infinite!important}
.design-call .call-btn.end svg,.design-call .call-btn.accept svg{width:32px;height:32px}
.design-call #callActiveControls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;justify-items:center}
.design-call #callActiveControls .call-btn-wrap{font-size:12px;color:#dbcced;gap:6px}
.design-call #callActiveControls .end-wrap{grid-column:1/-1;margin-top:8px}
.design-call #callActiveControls .end-wrap[hidden],.design-call #callAudioWrap[hidden],.design-call #callCameraWrap[hidden]{display:none}
.design-call .call-replies{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:22px;background:rgba(25,10,40,.55);border:1px solid rgba(225,204,251,.18)}
.design-call .cr-head{display:flex;align-items:center;gap:10px}
.design-call .cr-head>div{display:flex;flex-direction:column;gap:1px}
.design-call .cr-head b{font-size:13px;font-weight:600}
.design-call .cr-head span#callRepliesSub{font-size:11px;color:#c9b2e4}
.design-call .cr-spark{position:relative;width:38px;height:38px;flex:none;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fff,#debdfa 30%,#9c4fe0 65%,#321050 100%);box-shadow:0 0 18px rgba(206,158,247,.65),inset -5px -5px 10px rgba(0,0,0,.45);display:grid;place-items:center}
.design-call .cr-spark::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(229,204,251,.6);animation:cAiRing 3s ease-in-out infinite}
.design-call .cr-spark svg{width:16px;height:16px;fill:#fff}
.design-call .cr-chips{display:flex;flex-wrap:wrap;gap:8px}
.design-call .cr-chip{min-height:38px;padding:0 14px;border-radius:19px;border:1px solid rgba(225,204,251,.3);background:rgba(255,255,255,.06);color:var(--d-text);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.design-call.video-live{padding-top:calc(14px + var(--safe-top))}
.design-call.video-live .call-av-wrap,.design-call.video-live .call-bars,.design-call.video-live .call-code,.design-call.video-live .call-e2e{display:none}
.design-call.video-live .call-info{position:relative;top:auto;left:auto;align-items:center;text-align:center}
.design-call.video-live .call-name{font-size:20px;margin-top:4px;text-shadow:0 1px 6px rgba(0,0,0,.8)}
.design-call.video-live .call-status{text-shadow:0 1px 4px rgba(0,0,0,.8)}
.design-call.video-live .call-btn:not(.on):not(.end){background:rgba(9,3,15,.45)}
.design-call .call-local{top:auto;bottom:calc(230px + var(--safe-bottom));right:16px}

/* the call did not connect */
.call-trouble{position:fixed;inset:0;z-index:12700;overflow-y:auto;isolation:isolate;display:flex;flex-direction:column;box-sizing:border-box;padding:calc(30px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));background:#09030f;color:var(--d-text);font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif}
.call-trouble[hidden]{display:none!important}
.ct-sky{position:absolute;z-index:-2;inset:0;background:url(art/nebula-hero.jpg) 50% 20%/cover;opacity:.5;animation:sPan 26s ease-in-out infinite alternate}
.ct-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(9,3,15,.35),rgba(9,3,15,.7) 45%,#09030f 80%)}
.ct-head{display:flex;flex-direction:column;gap:8px;animation:dRise .6s ease-out both}
.ct-when{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#ffd9a8}
.ct-head h1{margin:0;font-family:var(--d-title);font-size:24px;font-weight:500;line-height:1.2}
.ct-head p{margin:0;font-size:14px;line-height:1.5;color:#dcccef}
@keyframes ctPulse{0%{left:62px;opacity:0}10%{opacity:1}100%{left:172px;opacity:0}}
@keyframes ctFlicker{0%,100%{opacity:.25}50%{opacity:.8}}
@keyframes ctGlow{0%,100%{box-shadow:0 0 0 0 rgba(255,214,150,.45)}50%{box-shadow:0 0 0 10px rgba(255,214,150,0)}}
.ct-path{position:relative;width:346px;max-width:100%;height:150px;margin:26px auto 0;animation:dRise .7s ease-out .1s both}
.ct-node{position:absolute;top:52px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-family:var(--d-title);font-size:15px}
.ct-node.me{left:40px;background:linear-gradient(135deg,#b684f5,#9248d6);box-shadow:0 0 24px rgba(194,149,246,.5)}
.ct-node.them{right:40px;background:linear-gradient(135deg,#f0b48e,#b85f86);color:#2a0f2a;box-shadow:0 0 24px rgba(240,180,142,.45);animation:ctGlow 2.6s ease-in-out infinite}
.ct-line{position:absolute;top:73px;height:2px}
.ct-line.ok{left:84px;width:102px;background:linear-gradient(90deg,rgba(199,158,247,.9),rgba(120,240,190,.9))}
.ct-line.bad{left:186px;width:26px;background:repeating-linear-gradient(90deg,rgba(255,204,116,.9) 0 3px,transparent 3px 7px);animation:ctFlicker 1.6s ease-in-out infinite}
.ct-line.bad::after{content:"";position:absolute;left:26px;width:50px;top:0;height:1px;background:rgba(226,204,251,.18)}
.ct-pulse{position:absolute;top:70px;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 10px #fff;animation:ctPulse 1.8s ease-in infinite}
.ct-block{position:absolute;left:193px;top:66px;width:14px;height:14px;border-radius:50%;border:2px solid #ffcc74;box-sizing:border-box;background:#09030f}
.ct-lbl{position:absolute;text-align:center;font-size:11px;line-height:1.3}
.ct-lbl.a{left:86px;top:100px;width:88px;color:#c8f7df}
.ct-lbl.b{left:160px;top:20px;width:80px;color:#ffe2a8}
.ct-lbl.c{right:26px;top:104px;width:72px;color:#c8f7df}
.ct-tip{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:14px 16px;border-radius:18px;background:rgba(25,10,40,.6);border:1px solid rgba(255,204,116,.25);font-size:13px;line-height:1.5;color:#f0e6d6;animation:dRise .7s ease-out .2s both}
.ct-tip svg{width:18px;height:18px;flex:none;margin-top:2px;fill:none;stroke:#ffcc74;stroke-width:2;stroke-linecap:round}
.ct-actions{margin-top:auto;padding-top:20px;display:flex;flex-direction:column;gap:10px;animation:dRise .7s ease-out .3s both}
.ct-actions .star-main{background:radial-gradient(circle at 30% 20%,#fff,#eee1fd 50%,#d7baf9);color:#1d0b30;box-shadow:0 0 26px rgba(209,176,249,.45);height:56px}
.ct-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ct-two .star-second{height:74px;border-radius:20px;font-size:13px;font-weight:500}
.person-avatar.has-photo{position:relative}
.person-avatar.has-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
/* build 43 polish after screenshots */
.design-call .call-replies{text-align:left}
.design-call .code-label{text-transform:none;letter-spacing:normal;font-weight:400;font-size:13px;color:#dbcced}
.ct-line.ok::after{content:"";position:absolute;left:38px;top:-5px;width:12px;height:12px;border-radius:50%;background:#5fe0a1;box-shadow:0 0 10px rgba(95,224,161,.8)}
.star-top .round-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.so-galaxy{background:url(art/nebula-hero.jpg) 50% 40%/cover}
.design-call .cr-head{gap:14px;padding:4px 0 0 6px}
/* The Answer button stays still (it must be easy to hit, and tools wait for a still
   target); its phone icon does the nudging. */
.design-call .call-btn.accept{animation:none!important}
.design-call .call-btn.accept svg{animation:cNudge 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.design-call .call-btn.accept svg,.design-call .call-ripple,.design-call .call-orbit{animation:none!important}}

/* --- Build 44 --- */
/* Decoration never takes a tap. The dashed ring spinning around the photo sheet's Send
   button was drawn over it and swallowed every tap: photos could not be sent. */
.ps-send-ring,[aria-hidden="true"]:not(button){pointer-events:none}
.ps-send{position:relative;z-index:1}
/* The screen stays still on iPhone: no zoom when a field is tapped (iOS zooms into
   text under 16px), no rubber-band bounce of the whole page, nothing wider than it. */
@supports (-webkit-touch-callout:none){input,textarea,select{font-size:16px!important}}
html,body{overscroll-behavior:none}
html,body{overflow-x:clip}
/* Read marks easier to see: a pill under each message you sent. */
.out-state{font-size:12px;font-weight:600;gap:6px;padding:3px 10px 3px 7px;border-radius:999px;background:rgba(178,158,200,.12);width:max-content}
.out-state.delivered{color:#eee1fd;background:rgba(183,130,245,.2)}
.out-state.read{color:#fff;background:linear-gradient(90deg,rgba(255,110,210,.34),rgba(190,121,244,.28))}
.out-state.read.front{box-shadow:0 0 14px rgba(255,120,210,.35)}
#cosmicApp .out-state svg{width:16px;height:16px}
#cosmicApp .out-state.delivered svg{width:19px;height:19px}
#cosmicApp .out-state svg.read-spiral{width:19px;height:19px;stroke:#fff;stroke-width:2.4}
#cosmicApp .bubble .mark{width:16px;height:16px;margin-left:5px;vertical-align:-3px}
#cosmicApp .bubble .mark.read{width:18px;height:18px;color:#fff;filter:drop-shadow(0 0 5px rgba(255,150,230,1)) drop-shadow(0 0 2px rgba(255,255,255,.9))}
/* Read messages: a soft glow. Only the latest one carries the nebula, faint and blurred,
   and it fades in once, when it is read, not again each time the chat redraws. */
.msg-out .bubble.read{background:linear-gradient(135deg,#6a3fb4,#8e55cf 70%,#b77ac6)!important;box-shadow:0 4px 18px rgba(150,90,220,.22)!important;animation:none!important}
.msg-out .bubble.read.front{animation:dHalo 7s ease-in-out infinite!important}
.read-glow{position:absolute;z-index:-1;left:-14px;right:-12px;top:-12px;bottom:-12px;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(214,120,255,.22),rgba(177,102,243,.09) 62%,transparent)}
.read-nebula{animation:none;opacity:.4;filter:blur(6px) saturate(.85);left:-44px;right:-40px;top:-38px;bottom:-36px}
.read-nebula img{animation-duration:24s}
.msg-out.bloom .read-nebula{animation:dNebulaSoft 1.8s ease-out both}
@keyframes dNebulaSoft{from{opacity:0;transform:scale(.7)}to{opacity:.4;transform:none}}
@media (prefers-reduced-motion:reduce){.msg-out .bubble.read.front,.msg-out.bloom .read-nebula{animation:none!important}}
/* The reply planet: a still 44px tap area (it used to bob, 28px wide, hard to hit); the
   planet floats inside it and its moon circles it. */
#cosmicApp .reply-planet{width:44px;height:44px;right:-50px;bottom:-8px;background:none;box-shadow:none;animation:none}
#cosmicApp .reply-planet::before{content:'';position:absolute;left:8px;top:8px;width:28px;height:28px;border-radius:50%;pointer-events:none;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.9) 0,rgba(255,255,255,0) 22%),radial-gradient(circle at 38% 36%,#8fd8ff,#9946e6 62%,#210c33 100%);
 box-shadow:inset -4px -5px 8px rgba(0,0,0,.45),0 0 14px rgba(176,121,244,.65);animation:rpFloat 3.6s ease-in-out infinite}
#cosmicApp .reply-planet.smart::before{background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.9) 0,rgba(255,255,255,0) 22%),radial-gradient(circle at 38% 36%,#f0a6ff,#a84cf0 62%,#210a33 100%);box-shadow:inset -4px -5px 8px rgba(0,0,0,.45),0 0 16px rgba(200,110,255,.75)}
body.simple-mode #cosmicApp .reply-planet{width:48px;height:48px;right:-54px}
@media (prefers-reduced-motion:reduce){#cosmicApp .reply-planet::before{animation:none}}
/* --- Build 45 --- */
/* One tap: a single planet stands for a set of tools. Tapped, it zooms to the middle and
   the tools fan out on rings; a choice opens the tool and the rest folds away. */
.tools-planet{position:relative;width:62px;height:62px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.6),rgba(255,255,255,0) 32%),radial-gradient(circle at 72% 78%,rgba(7,2,12,.6),rgba(7,2,12,0) 58%),radial-gradient(ellipse 40% 12% at 45% 42%,rgba(255,255,255,.22),rgba(255,255,255,0) 70%),radial-gradient(circle at 40% 38%,rgba(239,227,253,.8),rgba(184,130,245,.52) 55%,rgba(88,40,140,.32) 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset -8px -10px 20px rgba(0,0,0,.35),0 0 26px rgba(209,176,249,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:opacity .2s ease}
.tools-planet svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tools-planet::after{content:'';position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(225,204,251,.28);animation:tpBreathe 3.2s ease-in-out infinite;pointer-events:none}
@keyframes tpBreathe{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(1.09);opacity:1}}
.tools-planet[aria-expanded="true"]{opacity:0}
.tools-planet.big{flex:none;width:64px;height:64px}
.board-dock.tools-dock{left:auto;right:16px;transform:none;width:auto;padding:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;display:flex;flex-direction:column;align-items:center;gap:4px;bottom:calc(18px + var(--safe-bottom))}
.tools-planet-label{font-size:11px;font-weight:700;color:#eee1fd;text-shadow:0 1px 6px rgba(0,0,0,.85)}
.work-tools-one{display:flex;align-items:center;gap:16px;margin:4px 16px 10px;padding:14px 16px;border-radius:24px;background:rgba(255,255,255,.04);border:1px solid rgba(221,195,250,.12)}
.wto-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.wto-copy b{font-size:15px}
.wto-copy span{font-size:12.5px;line-height:1.35;color:#c9b2e4}
.orbit-menu,.planet-focus{position:fixed;inset:0;z-index:12500}
.orbit-menu[hidden],.planet-focus[hidden]{display:none}
.om-backdrop,.pf-backdrop{position:absolute;inset:0;border:0;padding:0;background:rgba(7,2,12,0);transition:background .3s ease;cursor:pointer}
.orbit-menu.open .om-backdrop,.planet-focus.open .pf-backdrop{background:rgba(7,2,12,.7);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.om-title,.pf-title{position:absolute;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;opacity:0;transform:translateY(8px);transition:opacity .3s ease .08s,transform .3s ease .08s;pointer-events:none}
.orbit-menu.open .om-title,.planet-focus.open .pf-title{opacity:1;transform:none}
.om-title b,.pf-title b{font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;font-weight:500;font-size:18px;color:#fff}
.om-title span,.pf-title span{font-size:13px;color:#dcccef}
.om-item{position:absolute;width:82px;margin:-28px 0 0 -41px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;padding:0;background:none;color:#f9f5fe;font:inherit;font-size:11.5px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;opacity:0;transform:translate(var(--dx),var(--dy)) scale(.3);pointer-events:none;transition:transform .42s cubic-bezier(.2,.8,.2,1) var(--d),opacity .28s ease var(--d)}
.orbit-menu.open .om-item{opacity:1;transform:none;pointer-events:auto}
.om-moon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.5),rgba(255,255,255,0) 34%),radial-gradient(circle at 72% 78%,rgba(7,2,12,.6),rgba(7,2,12,0) 58%),radial-gradient(circle at 40% 38%,rgba(255,255,255,.32),var(--c) 58%,rgba(12,5,20,.38) 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset -7px -9px 18px rgba(0,0,0,.35),0 0 22px var(--g);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.om-moon svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.om-item:active .om-moon{transform:scale(.92)}
.om-label{text-shadow:0 1px 6px rgba(0,0,0,.85)}
.om-core{position:absolute;width:74px;height:74px;margin:-37px 0 0 -37px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;color:#fff;cursor:pointer;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.6),rgba(255,255,255,0) 32%),radial-gradient(circle at 72% 78%,rgba(7,2,12,.6),rgba(7,2,12,0) 58%),radial-gradient(circle at 40% 38%,rgba(239,227,253,.8),rgba(184,130,245,.52) 55%,rgba(88,40,140,.32) 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset -8px -10px 20px rgba(0,0,0,.35),0 0 34px rgba(209,176,249,.55);transform:translate(var(--dx),var(--dy)) scale(.84);transition:transform .42s cubic-bezier(.2,.8,.2,1)}
.om-core svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.orbit-menu.open .om-core{transform:none}
/* The Nebula page: natural, see-through planets. The tint is light so the nebula shows
   through; a soft highlight, a night side and a thin atmosphere make each a world. */
:is(#universe,#pinUniverse) .orb-ball{
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.46),rgba(255,255,255,0) 30%),radial-gradient(circle at 74% 80%,rgba(7,2,12,.66),rgba(7,2,12,0) 60%),var(--surface,radial-gradient(ellipse 46% 11% at 42% 38%,rgba(255,255,255,.22),rgba(255,255,255,0) 70%)),radial-gradient(circle at 42% 40%,color-mix(in srgb,var(--p1) 62%,transparent),color-mix(in srgb,var(--p2) 44%,transparent) 58%,color-mix(in srgb,var(--p2) 16%,transparent) 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset -10px -12px 24px rgba(0,0,0,.3),0 0 26px color-mix(in srgb,var(--p1) 34%,transparent);filter:none;-webkit-backdrop-filter:blur(2px) saturate(1.3);backdrop-filter:blur(2px) saturate(1.3)}
:is(#universe,#pinUniverse) .orb-ball::after{content:'';position:absolute;inset:-4px;border-radius:50%;box-shadow:0 0 0 1px color-mix(in srgb,var(--p1) 28%,transparent),0 0 16px 2px color-mix(in srgb,var(--p1) 26%,transparent);pointer-events:none}
:is(#universe,#pinUniverse):not(.big-planets) .orb-ball svg{opacity:0}
:is(#universe,#pinUniverse) [data-planet="send"] .orb-ball,:is(#universe,#pinUniverse) [data-planet="bank"] .orb-ball{--surface:repeating-linear-gradient(166deg,rgba(255,255,255,.09) 0 5%,rgba(0,0,0,.1) 5% 9%,rgba(255,255,255,.05) 9% 14%)}
:is(#universe,#pinUniverse) [data-planet="sos"] .orb-ball{--surface:radial-gradient(ellipse 22% 13% at 60% 62%,rgba(255,235,220,.45),rgba(255,235,220,0) 70%)}
:is(#universe,#pinUniverse) .orb-planet.ringed .orb-ball::before{border-color:rgba(235,220,255,.55);border-left-color:rgba(235,220,255,.2);box-shadow:0 0 10px rgba(220,155,255,.35)}
/* A planet opens into two choices and closes again. */
.pf-ball{position:absolute;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;border:0;padding:0;cursor:pointer;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.46),rgba(255,255,255,0) 30%),radial-gradient(circle at 74% 80%,rgba(7,2,12,.66),rgba(7,2,12,0) 60%),radial-gradient(ellipse 46% 11% at 42% 38%,rgba(255,255,255,.2),rgba(255,255,255,0) 70%),radial-gradient(circle at 42% 40%,var(--p1),var(--p2) 60%,#140820 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset -16px -18px 36px rgba(0,0,0,.32),0 0 48px color-mix(in srgb,var(--p1) 40%,transparent);opacity:.9;transform:translate(var(--dx),var(--dy)) scale(var(--s));transition:transform .45s cubic-bezier(.2,.8,.2,1)}
@supports (background:color-mix(in srgb,red 50%,transparent)){.pf-ball{background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.46),rgba(255,255,255,0) 30%),radial-gradient(circle at 74% 80%,rgba(7,2,12,.66),rgba(7,2,12,0) 60%),radial-gradient(ellipse 46% 11% at 42% 38%,rgba(255,255,255,.2),rgba(255,255,255,0) 70%),radial-gradient(circle at 42% 40%,color-mix(in srgb,var(--p1) 64%,transparent),color-mix(in srgb,var(--p2) 46%,transparent) 58%,color-mix(in srgb,var(--p2) 18%,transparent) 100%);opacity:1;-webkit-backdrop-filter:blur(3px) saturate(1.3);backdrop-filter:blur(3px) saturate(1.3)}}
.pf-ball.ringed::after{content:'';position:absolute;left:-46px;right:-46px;top:41%;height:42px;border-radius:50%;border:3px solid rgba(235,220,255,.5);border-left-color:rgba(235,220,255,.2);transform:rotate(-18deg);box-shadow:0 0 14px rgba(220,155,255,.35);pointer-events:none}
.planet-focus.open .pf-ball{transform:none}
.pf-choices{position:absolute;left:0;right:0;display:flex;justify-content:center;gap:34px}
.pf-choice{width:132px;display:flex;flex-direction:column;align-items:center;gap:8px;border:0;padding:0;background:none;color:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1.25;text-align:center;cursor:pointer;opacity:0;transform:translateY(-26px) scale(.6);transition:transform .42s cubic-bezier(.2,.8,.2,1) var(--d),opacity .3s ease var(--d)}
.planet-focus.open .pf-choice{opacity:1;transform:none}
.pf-moon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.5),rgba(255,255,255,0) 34%),radial-gradient(circle at 72% 78%,rgba(7,2,12,.55),rgba(7,2,12,0) 58%),radial-gradient(circle at 40% 38%,var(--p1),var(--p2) 60%,rgba(12,5,20,.6) 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset -7px -9px 18px rgba(0,0,0,.32),0 0 24px color-mix(in srgb,var(--p1) 45%,transparent)}
#cosmicApp .pf-moon svg,.pf-moon svg{width:24px;height:24px;color:#fff;stroke:#fff}
.pf-close{position:absolute;left:50%;width:110px;height:44px;margin-left:-55px;border-radius:22px;border:1px solid rgba(225,204,251,.24);background:rgba(255,255,255,.05);color:#dcccef;font:inherit;font-size:13px;cursor:pointer;opacity:0;transition:opacity .3s ease .2s}
.planet-focus.open .pf-close{opacity:1}
/* Status: answers to your status as small moons around your star; theirs in a card. */
.status-me-star{position:relative}
.react-moons{position:absolute;inset:-8px;pointer-events:none;animation:dSpin 16s linear infinite}
.react-moons i{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:9px;font-weight:700;color:#1d0b30;background:linear-gradient(135deg,#ffe08a,#ff9a6b);box-shadow:0 0 10px rgba(255,200,130,.6);transform:rotate(calc(var(--i) * 72deg - 90deg)) translate(38px) rotate(calc(var(--i) * -72deg + 90deg))}
.react-moons.mine i{background:linear-gradient(135deg,#b684f5,#9248d6);color:#fff;box-shadow:0 0 10px rgba(182,132,245,.7);animation:reactJoin .5s cubic-bezier(.2,.9,.3,1.3) .6s both}
@keyframes reactJoin{from{opacity:0;scale:.2}to{opacity:1;scale:1}}
.status-me-reacts{color:#ffe2a8!important;white-space:normal!important}
.status-row-hint{font-size:12px!important;color:#ffd9a8!important}
.status-react-card{padding-bottom:calc(18px + var(--safe-bottom))}
.sc-head{position:relative;display:flex;align-items:center;gap:16px;padding:6px 20px 4px}
.sc-face{position:relative;flex:none}
.sc-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.sc-copy b{font-size:19px}
.sc-copy span{font-size:14px;color:#eee1fd}
.sc-copy .sc-until{font-size:12px;color:#c9b2e4}
.react-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:16px 12px 4px}
.react-btn{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:84px;border:0;padding:4px 0;background:none;color:#f9f5fe;font:inherit;font-size:12.5px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
.react-moon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
 background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.5),rgba(255,255,255,0) 34%),radial-gradient(circle at 72% 78%,rgba(7,2,12,.6),rgba(7,2,12,0) 58%),radial-gradient(circle at 40% 38%,var(--rl,rgba(239,227,253,.85)),var(--rm,rgba(184,130,245,.55)) 55%,var(--rd,rgba(88,40,140,.3)) 100%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset -6px -8px 16px rgba(0,0,0,.35),0 0 18px var(--rg,rgba(209,176,249,.45));transition:transform .15s ease}
#cosmicApp .react-moon svg,.react-moon svg{width:22px;height:22px;color:#fff}
.react-btn:active .react-moon{transform:scale(.9)}
.react-btn.on .react-moon{box-shadow:inset 0 0 0 2px rgba(255,255,255,.7),0 0 26px var(--rg,rgba(209,176,249,.6))}
.r-cheer,.r-luck{--rl:rgba(255,240,210,.85);--rm:rgba(240,170,90,.55);--rd:rgba(110,60,20,.3);--rg:rgba(255,200,130,.5)}
.r-five{--rl:rgba(255,225,240,.85);--rm:rgba(230,110,180,.55);--rd:rgba(100,20,70,.3);--rg:rgba(255,150,210,.5)}
.r-join,.r-inn{--rl:rgba(215,255,230,.85);--rm:rgba(60,190,140,.55);--rd:rgba(10,70,55,.3);--rg:rgba(134,245,194,.5)}
.r-coffee{--rl:rgba(255,236,214,.85);--rm:rgba(190,130,80,.55);--rd:rgba(80,40,15,.3);--rg:rgba(230,170,110,.5)}
.r-trip{--rl:rgba(214,251,255,.85);--rm:rgba(26,168,200,.55);--rd:rgba(8,57,74,.3);--rg:rgba(120,220,240,.5)}
.r-love{--rl:rgba(255,214,220,.85);--rm:rgba(216,74,98,.55);--rd:rgba(74,13,26,.3);--rg:rgba(255,140,150,.5)}
.sc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin:4px 20px 10px;padding-top:6px;border-top:1px solid rgba(221,195,250,.1)}
#statusCardCaption{font-size:13px;color:#c9b2e4}
#statusCardCaption.sent{color:#ffe2a8}
.status-react-card .moon-pill.wide{display:block;width:calc(100% - 40px);margin:0 20px}
.react-comet{position:absolute;left:120%;top:110%;width:46px;height:4px;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,240,210,.9) 70%,#fff);box-shadow:0 0 12px rgba(255,220,170,.9);transform-origin:100% 50%;animation:reactComet .9s cubic-bezier(.3,.6,.4,1) both;pointer-events:none}
@keyframes reactComet{from{transform:translate(90px,90px) rotate(-135deg) scale(.6);opacity:0}15%{opacity:1}to{transform:translate(-30px,-40px) rotate(-135deg) scale(1);opacity:0}}
/* Work: what needs you, then the teams as constellations. */
.section-count{font-size:12px;color:#eee1fd}
.need-strip{display:flex;gap:12px;overflow-x:auto;padding:2px 16px 6px;scrollbar-width:none}
.need-strip::-webkit-scrollbar{display:none}
.need-card{flex:none;width:264px;box-sizing:border-box;display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:22px;background:linear-gradient(135deg,rgba(134,245,194,.16),rgba(161,93,242,.1));border:1px solid rgba(134,245,194,.32)}
.need-card.help,.need-card.promise{background:linear-gradient(135deg,rgba(255,217,143,.16),rgba(255,143,208,.1));border-color:rgba(255,217,143,.32)}
.need-card.verify{background:linear-gradient(135deg,rgba(95,228,255,.14),rgba(161,93,242,.1));border-color:rgba(95,228,255,.3)}
.need-kicker{display:flex;align-items:center;gap:7px;font-size:12px;color:#c9f5df}
.need-dot{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.6),rgba(255,255,255,0) 40%),radial-gradient(circle at 40% 40%,rgba(215,255,230,.85),rgba(60,190,140,.6) 60%,rgba(10,70,55,.35));box-shadow:0 0 10px rgba(134,245,194,.55)}
.need-card b{font-size:16px;line-height:1.25}
.need-card>span{font-size:12px;color:#c9b2e4}
.need-actions{display:flex;gap:8px;margin-top:6px}
.need-yes,.need-no{flex:1;height:44px;border-radius:22px;font:inherit;font-size:14px;cursor:pointer}
.need-yes{border:0;background:radial-gradient(circle at 30% 20%,#fff,#e2fff0 55%,#a8f0cc);color:#06261a;font-weight:700}
.need-no{border:1px solid rgba(225,204,251,.25);background:transparent;color:#eee1fd}
.team-list{display:flex;flex-direction:column;gap:10px;padding:0 16px}
.team-card{display:flex;align-items:center;gap:14px;min-height:76px;width:100%;box-sizing:border-box;padding:8px 14px 8px 8px;border-radius:24px;background:rgba(255,255,255,.04);border:1px solid rgba(221,195,250,.12);color:inherit;font:inherit;text-align:left;cursor:pointer}
.team-sky{position:relative;flex:none;width:60px;height:60px;border-radius:50%;background:radial-gradient(circle at 40% 38%,rgba(var(--t),.42),rgba(var(--t),.14) 60%,rgba(var(--t),0) 74%)}
.team-sky svg{position:absolute;inset:0;width:60px;height:60px}
.team-sky polyline{fill:none;stroke:rgba(var(--t),.75);stroke-width:1.2}
.team-sky circle{fill:#fff}
.team-sky circle.halo{fill:rgba(var(--t),.45)}
.team-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.team-copy b{font-size:16px}
.team-copy span{font-size:12px;color:#c9b2e4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-copy .team-live{color:var(--ta)}
.team-open svg{width:16px;height:16px;color:#b29ec8}
.team-new{display:flex;align-items:center;gap:14px;width:calc(100% - 32px);margin:10px 16px 4px;min-height:64px;box-sizing:border-box;padding:8px 14px 8px 8px;border-radius:24px;background:transparent;border:1px dashed rgba(225,204,251,.3);color:#eee1fd;font:inherit;text-align:left;cursor:pointer}
.team-new-orb{flex:none;width:48px;height:48px;margin-left:6px;border-radius:50%;border:1px dashed rgba(225,204,251,.45);display:grid;place-items:center}
.team-new-orb svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.team-new-copy{display:flex;flex-direction:column;gap:2px}
.team-new-copy b{font-size:15px}
.team-new-copy span{font-size:12px;color:#c9b2e4}
@media (prefers-reduced-motion:reduce){.om-item,.om-core,.om-title,.om-backdrop,.pf-ball,.pf-choice,.pf-title,.pf-close,.pf-backdrop{transition:none}.tools-planet::after,.react-moons{animation:none}}
/* The app sizes every svg at 20px; these new pieces need their own sizes. */
#cosmicApp .team-sky svg{width:60px;height:60px}
#cosmicApp .tools-planet svg,#cosmicApp .om-core svg{width:24px;height:24px}
#cosmicApp .om-moon svg{width:22px;height:22px}
#cosmicApp .team-new-orb svg{width:18px;height:18px}
#cosmicApp .team-open svg{width:16px;height:16px}
/* While the tools or a planet fold away, taps already go to what opened underneath. */
.orbit-menu:not(.open),.planet-focus:not(.open){pointer-events:none}
/* theme: hand-tuned below (tools/theme/violet.py leaves the rest of this file alone) */
/* --- Build 47: Home, Tap to Pin and folders as in Giovanni's storyboard --- */
/* Black-violet sky on Home, Vault and folders: a still layer over the usual sky, whose
   animations are untouched (they show through, dimmer). */
:root{--v-card:linear-gradient(180deg,rgba(44,26,80,.8),rgba(21,12,40,.88));--v-line:rgba(178,120,255,.28);--v-line-2:rgba(192,132,252,.7);--v-ico:#c58cff;--v-muted:#a59cc4;--v-green:#38e08b;--v-teal:#3fd9a4;--v-amber:#ffcd7a}
.violet-sky{position:fixed;inset:0;z-index:1;pointer-events:none;background:
 radial-gradient(95% 34% at 50% 106%,rgba(124,58,237,.45),transparent 72%),
 radial-gradient(70% 26% at 90% -4%,rgba(147,51,234,.16),transparent 70%),
 radial-gradient(55% 30% at -6% 46%,rgba(91,33,182,.14),transparent 70%),
 rgba(6,3,12,.82)}
body.sky-folder .violet-sky{background:
 radial-gradient(120% 22% at 60% 92%,rgba(99,102,241,.32),transparent 70%),
 radial-gradient(90% 30% at 30% 104%,rgba(168,85,247,.42),transparent 72%),
 radial-gradient(40% 10% at 72% 84%,rgba(125,211,252,.18),transparent 70%),
 rgba(6,3,12,.84)}
.tab-head{background:linear-gradient(180deg,rgba(7,5,13,.94) 60%,rgba(7,5,13,0))!important}

/* Home */
.dash-head{display:flex;align-items:center;gap:14px;padding:18px 2px 18px}
.dash-me{position:relative;flex:none;padding:0;border:0;background:none;border-radius:50%;cursor:pointer}
.dash-face .face.lg{width:64px;height:64px;padding:2px;background:linear-gradient(140deg,#d8b4fe,#7c3aed);box-shadow:0 0 18px rgba(168,85,247,.55)}
.dash-face .face-dot{display:none}
.dash-hello{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.dash-hello b{max-width:100%;font-size:22px;font-weight:600;letter-spacing:-.01em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-id{padding:0;border:0;background:none;font:inherit;font-size:14.5px;font-weight:500;color:var(--v-amber);cursor:pointer}
.dash-id.ok{color:var(--v-green)}
.dash-scan{flex:none;width:46px;height:46px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(28,20,44,.8);color:#ece6ff;display:grid;place-items:center;cursor:pointer}
#cosmicApp .dash-scan svg{width:23px;height:23px}
.dash-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.dash-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:96px;box-sizing:border-box;padding:12px 8px;border-radius:16px;border:1px solid var(--v-line);background:var(--v-card);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 22px rgba(124,58,237,.12),0 8px 22px rgba(0,0,0,.4);color:#fff;font:inherit;cursor:pointer;transition:transform .12s ease,border-color .2s ease}
.dash-tile:active{transform:scale(.97);border-color:var(--v-line-2)}
.dt-ico{position:relative;display:grid;place-items:center}
#cosmicApp .dt-ico svg{width:35px;height:35px;color:#cf9fff;filter:drop-shadow(0 0 8px rgba(192,132,252,.85))}
.dash-tile b{font-size:16.5px;font-weight:500}
.dt-badge{position:absolute;top:-8px;left:calc(100% + 2px);min-width:28px;height:21px;box-sizing:border-box;padding:0 8px;border-radius:11px;background:linear-gradient(180deg,#a66bff,#7c3aed);color:#fff;font-style:normal;font-size:12.5px;font-weight:700;line-height:21px;text-align:center;box-shadow:0 0 12px rgba(168,85,247,.65)}
.dt-badge[hidden]{display:none}

/* Tap to Pin: a lit bar that opens into the galaxy, folders as galaxies. */
.pin{position:relative;margin:0 0 14px;border-radius:16px;border:1px solid var(--v-line);background:var(--v-card);transition:border-color .3s ease,box-shadow .3s ease}
.pin::before{content:"";position:absolute;left:10%;right:10%;top:-2px;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,#b46bff 22%,#f0e2ff 50%,#b46bff 78%,transparent);box-shadow:0 0 18px 4px rgba(168,85,247,.75),0 -6px 26px 6px rgba(147,51,234,.35);pointer-events:none}
.pin-head{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;box-sizing:border-box;padding:10px 16px;border:0;border-radius:16px;background:none;color:#fff;font:inherit;font-size:17px;font-weight:500;text-align:left;cursor:pointer;transition:background .3s ease}
.pin-head span{flex:1}
#cosmicApp .pin-head svg{width:20px;height:20px;color:#f3eeff}
.pin-count{min-width:22px;height:20px;box-sizing:border-box;padding:0 7px;border-radius:10px;background:rgba(168,85,247,.22);color:#e9d5ff;font-style:normal;font-size:12px;font-weight:600;line-height:20px;text-align:center}
.pin-count[hidden]{display:none}
.pin.glow{border-color:var(--v-line-2);box-shadow:0 0 0 1px rgba(168,85,247,.3),0 0 28px rgba(168,85,247,.38),inset 0 0 34px rgba(124,58,237,.16)}
.pin.glow .pin-head{background:radial-gradient(70% 140% at 50% 50%,rgba(192,132,252,.38),rgba(124,58,237,.12) 55%,transparent 80%)}
.gal-thumb{flex:none;display:block;width:84px;height:50px}
.gal-thumb canvas{display:block;width:100%;height:100%}
.f-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.f-copy b{font-size:16.5px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f-copy span{font-size:13.5px;color:var(--v-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cosmicApp .f-row>svg:not(.f-ico),#cosmicApp .pd-row>svg{width:19px;height:19px;color:#ece6ff}
.pin-docs{border-radius:16px;border:1px solid var(--v-line);background:var(--v-card);overflow:hidden}
.pd-row{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;box-sizing:border-box;padding:10px 14px 10px 12px;border:0;border-top:1px solid rgba(200,160,255,.1);background:none;color:#fff;font:inherit;text-align:left;cursor:pointer}
.pd-row:first-child{border-top:0}
.pd-ico{flex:none;display:grid;place-items:center;width:42px}
#cosmicApp .pd-ico svg{width:40px;height:40px;color:#cf9fff;filter:drop-shadow(0 0 8px rgba(192,132,252,.8))}
.pd-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.pd-copy b{font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-copy span{font-size:13.5px;color:var(--v-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-quiet{margin:0;padding:16px;font-size:13.5px;line-height:1.45;color:var(--v-muted)}

/* A folder: back, its name and count, search; documents and galaxies as cards. */
.folder-top{position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:10px;padding:16px 0 14px;background:linear-gradient(180deg,rgba(7,5,13,.95) 70%,rgba(7,5,13,0))}
.folder-back{flex:none;width:40px;height:44px;margin-left:-10px;border:0;background:none;color:#fff;display:grid;place-items:center;cursor:pointer}
#cosmicApp .folder-back svg{width:27px;height:27px}
.folder-heading{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.folder-heading b{font-size:22px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.folder-heading span{font-size:14.5px;font-weight:500;color:var(--v-teal)}
.folder-round{flex:none;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.08);background:rgba(28,20,44,.82);color:#fff;display:grid;place-items:center;cursor:pointer}
#cosmicApp .folder-round svg{width:23px;height:23px}
.folder-search{margin:0 0 12px}
.folder-search[hidden]{display:none}
.folder-list,.vault-cols,.doc-list{display:flex;flex-direction:column;gap:10px}
.folder-list:empty{display:none}
#colGroups{margin-top:10px}
.f-row{display:flex;align-items:center;gap:16px;width:100%;min-height:78px;box-sizing:border-box;padding:12px 14px;border-radius:16px;border:1px solid rgba(200,160,255,.1);background:linear-gradient(180deg,rgba(28,19,46,.84),rgba(16,11,29,.84));color:#fff;font:inherit;text-align:left;cursor:pointer}
.f-row.sub{padding-left:6px}
.f-row.back{min-height:52px}
#cosmicApp svg.f-ico,svg.f-ico{flex:none;display:block;width:40px;height:50px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
#cosmicApp .f-row.back>svg:first-child{width:22px;height:22px}
.folder-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin-top:12px;border-radius:16px;border:1px dashed rgba(200,160,255,.35);background:none;color:#ece6ff;font:inherit;font-size:15px;cursor:pointer}
.folder-link{display:block;margin:14px auto 0;padding:10px;border:0;background:none;color:var(--v-muted);font:inherit;font-size:14px;cursor:pointer}
.empty-note{font-size:14px;color:var(--v-muted)}

/* The opened folder grows out of its galaxy, and goes back into it. */
.galaxy-zoom{position:fixed;inset:0;z-index:13000;pointer-events:none;background:radial-gradient(120% 90% at var(--x) var(--y),#1b1040 0%,#0b0718 55%,#05030b 100%);-webkit-clip-path:circle(var(--r0) at var(--x) var(--y));clip-path:circle(var(--r0) at var(--x) var(--y));transition:clip-path .44s cubic-bezier(.3,.7,.2,1),-webkit-clip-path .44s cubic-bezier(.3,.7,.2,1),opacity .3s ease}
.galaxy-zoom.open{-webkit-clip-path:circle(150% at var(--x) var(--y));clip-path:circle(150% at var(--x) var(--y))}
.galaxy-zoom.done{opacity:0}
.galaxy-zoom .galaxy-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none!important}
.gz-label{position:absolute;left:0;right:0;top:66%;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.gz-label b{font-size:30px;font-weight:600;color:#fff;text-shadow:0 0 24px rgba(168,85,247,.85)}
.gz-label span{font-size:16px;color:#d8cff5}

/* More */
.more-list{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.more-row{display:flex;align-items:center;gap:14px;width:100%;min-height:70px;box-sizing:border-box;padding:10px 14px 10px 10px;border-radius:18px;border:1px solid var(--v-line);background:var(--v-card);color:inherit;font:inherit;text-align:left;cursor:pointer}
.more-ico{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:rgba(124,58,237,.16);border:1px solid rgba(192,132,252,.25)}
#cosmicApp .more-ico svg,.more-ico svg{width:24px;height:24px;fill:none;stroke:var(--v-ico);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px rgba(192,132,252,.55))}
.more-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.more-copy b{font-size:16px;font-weight:500}
.more-copy span{font-size:13px;color:var(--v-muted)}

/* Sheets for a document and a collection name. */
.doc-sheet-card{max-height:92vh;overflow-y:auto}
.doc-meta{margin-top:3px;font-size:12.5px;color:#aebbe8}
.doc-view{display:grid;place-items:center;min-height:120px;margin:10px 0 12px;border-radius:18px;overflow:hidden;background:rgba(0,0,0,.28)}
.doc-view img,.doc-view video{display:block;max-width:100%;max-height:50vh;object-fit:contain}
.doc-view iframe{display:block;width:100%;height:50vh;border:0;background:#fff}
.doc-view pre{width:100%;box-sizing:border-box;margin:0;padding:12px;max-height:46vh;overflow:auto;white-space:pre-wrap;font-size:13px;color:#e8eaff}
.doc-view audio{width:calc(100% - 24px);margin:26px 12px}
.doc-big{display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px;font-size:13px;color:#aebbe8}
#cosmicApp .doc-big svg.f-ico{width:56px;height:70px}
.doc-actions{display:flex;gap:10px;margin-top:10px}
.doc-actions>*{flex:1;min-width:0;margin:0}
.doc-actions .send-pill{padding:13px 14px;font-size:15px}
.doc-actions .ghost-btn{display:flex;align-items:center;justify-content:center;padding:12px 8px;font-size:14px}
.chip-wrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip-btn{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:8px 14px;border-radius:21px;border:1px solid rgba(190,200,255,.26);background:rgba(255,255,255,.05);color:#eef0ff;font:inherit;font-size:14px;cursor:pointer}
.chip-btn:disabled{opacity:.45}
.chip-btn.add{border-style:dashed}
#cosmicApp .chip-btn svg{width:14px;height:14px}
.keep-vault{display:flex;align-items:center;justify-content:center;gap:8px}
#cosmicApp .keep-vault svg{width:18px;height:18px}

/* The bar, as drawn: the section you are in is white with a violet line under it. */
.tab-bar.design-tabs{background:rgba(9,6,16,.92)!important;border-top:1px solid rgba(168,112,255,.16)!important}
.design-tabs .tab-btn.active::after{content:"";display:block;width:26px;height:3px;margin-top:2px;border-radius:2px;background:#a855f7;box-shadow:0 0 10px 2px rgba(168,85,247,.7)}
.design-tabs .tab-btn.active .tab-ico svg{filter:drop-shadow(0 0 6px rgba(192,132,252,.7))}
@media (prefers-reduced-motion:reduce){.galaxy-zoom,.dash-tile,.pin,.pin-head{transition:none}}
#cosmicApp .folder-add svg{width:17px;height:17px}

/* --- Build 48: the storyboard's look on every page (chat, icons, type, sizes) --- */
/* One black-violet sky behind every page; cards, lines and icons from the same few values. */
body.cosmic-mode{background:var(--sky-base,#07050d)}
#cosmicApp,.nebula-sheet,.orbit-menu,.planet-focus{font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif}
.tab-title,.home-title{font-size:26px!important;font-weight:600!important;letter-spacing:-.015em!important}
.section-head h3{font-size:16px;font-weight:600;color:#fff}
.sub-top h2{font-size:19px;font-weight:600}
.greet-line{font-size:14.5px;font-weight:400;color:var(--v-muted)}
.fine-print{color:#8f86ad}

/* Line icons: thin, violet, softly lit, as on the tiles. Green stays for "verified". */
.row-icon{width:42px;height:42px;border-radius:13px;background:rgba(124,58,237,.16)!important;border:1px solid rgba(192,132,252,.24);color:var(--v-ico)!important}
.row-icon svg{width:21px!important;height:21px!important;filter:drop-shadow(0 0 5px rgba(192,132,252,.6))}
.row-icon.good{background:rgba(56,224,139,.1)!important;border-color:rgba(56,224,139,.28);color:var(--v-green)!important}
.row-icon.good svg{filter:drop-shadow(0 0 5px rgba(56,224,139,.5))}
#cosmicApp .menu-row svg,#cosmicApp .pa-btn svg,#cosmicApp .ps-orb svg,#cosmicApp .universe-chip svg,#cosmicApp .section-link svg{color:var(--v-ico);filter:drop-shadow(0 0 5px rgba(192,132,252,.55))}
#cosmicApp .pa-btn svg,#cosmicApp .ps-orb svg{stroke-width:1.7}
.icon-btn,.ds-close,.round-back{border:1px solid rgba(255,255,255,.08)!important;background:rgba(28,20,44,.82)!important;box-shadow:none!important;color:#fff}
#cosmicApp .round-back svg,#cosmicApp .round-call svg{stroke-width:1.7}

/* The bar: icons as drawn (house, bubble, handset, lock, two lines). */
.design-tabs .tab-btn{font-size:11.5px;font-weight:400;color:#b9b2cf!important}
.design-tabs .tab-btn.active{font-weight:500}
#cosmicApp .design-tabs .tab-ico svg.ds-ico{width:25px;height:25px;stroke-width:1.7}
.design-tabs .tab-badge{background:linear-gradient(180deg,#a66bff,#7c3aed)!important;box-shadow:0 0 10px rgba(168,85,247,.7)!important;color:#fff!important}

/* Buttons: one violet, lit from inside. */
.send-pill{background:linear-gradient(100deg,#7c3aed 0%,#9a4df5 55%,#b96cfb 100%)!important;border:1px solid rgba(216,180,254,.5)!important;box-shadow:0 10px 28px rgba(124,58,237,.42),inset 0 1px 0 rgba(255,255,255,.22)!important;font-weight:600}
.add-round{background:linear-gradient(135deg,#8b46f0,#b06bfb)!important;box-shadow:0 0 18px rgba(168,85,247,.55)}
.ghost-btn{border:1px solid rgba(192,132,252,.3);background:rgba(28,20,44,.6);color:#efe9ff;font-weight:500}
.status-pill:not(.on){border-color:rgba(192,132,252,.32);background:rgba(28,20,44,.7);color:#efe9ff}

/* Cards and rows: the same dark violet glass with a thin violet line. */
.cosmic-card,.settings-group,.me-card,.status-hero,.work-tools-one,.team-card,.proof-item,.people-list .settings-row,.detail-body .settings-row,.conversation-row,.need-card,.whats-new,.notify-card{background:var(--v-card)!important;border:1px solid var(--v-line)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 22px rgba(0,0,0,.35)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
.cosmic-card,.settings-group,.status-hero,.me-card{border-radius:18px}
.settings-row{border-top-color:rgba(200,160,255,.1)}
.settings-row strong,.row-copy strong{font-weight:500;font-size:16px}
.row-copy span{color:var(--v-muted)}
.cosmic-input,.design-composer .chat-input,select.cosmic-input{border:1px solid rgba(192,132,252,.28)!important;background:rgba(14,9,24,.8)!important;color:#fff}
.cosmic-input:focus,.design-composer .chat-input:focus{border-color:rgba(192,132,252,.7)!important;box-shadow:0 0 0 3px rgba(168,85,247,.18)}
.cosmic-label,.ds-kicker{color:#b7a6dc}
.nebula-sheet-card{background:linear-gradient(180deg,var(--sheet-a,#1c1230) 0%,var(--sheet-b,#0e0919) 100%)!important;border-color:rgba(192,132,252,.3)!important}
.design-sheet .nebula-sheet-card{border-top:1px solid rgba(192,132,252,.35)!important}
.nebula-sheet-grab{background:rgba(192,132,252,.45)}

/* Chat list: each conversation is a row card, sized like the document rows. */
.conversation-list{display:flex;flex-direction:column;gap:10px}
.chat-row{min-height:74px;box-sizing:border-box;padding:10px 14px 10px 10px;border-radius:16px;border:1px solid rgba(200,160,255,.12);background:linear-gradient(180deg,rgba(28,19,46,.84),rgba(16,11,29,.84))}
.chat-row.has-unread{border-color:rgba(192,132,252,.45);box-shadow:0 0 18px rgba(168,85,247,.18)}
.chat-row-top b{font-size:16.5px;font-weight:500}
.chat-row.has-unread .chat-row-top b{font-weight:600}
.chat-row-top time{font-size:12.5px;color:var(--v-muted)}
.chat-row-last{font-size:14px;color:var(--v-muted)}
.chat-row.has-unread .chat-row-last{color:#e9e2fb}
.chat-row .unread-badge,.conversation-meta .unread-badge{min-width:22px;height:22px;line-height:22px;font-size:12px;font-weight:600;background:linear-gradient(180deg,#a66bff,#7c3aed);box-shadow:0 0 12px rgba(168,85,247,.65)}

/* A conversation: violet for what you sent, dark glass for what you received. */
.chat-top.design-chat-top{background:linear-gradient(180deg,rgba(7,5,13,.96) 80%,rgba(7,5,13,.7))!important;border-bottom:1px solid rgba(168,112,255,.16)}
.chat-name{font-size:17px;font-weight:600}
.chat-state{font-size:12.5px;color:var(--v-muted)}
.round-call{background:rgba(124,58,237,.16);border:1px solid rgba(192,132,252,.28);color:var(--v-ico)}
.round-call svg{filter:drop-shadow(0 0 5px rgba(192,132,252,.6))}
.bubble{font-size:15.5px;line-height:1.4;border-radius:18px;box-shadow:none}
.bubble.in,.voice-msg.in{background:linear-gradient(180deg,rgba(40,26,66,.92),rgba(24,16,42,.92))!important;border:1px solid rgba(192,132,252,.2)!important;box-shadow:none!important}
.bubble.out,.voice-msg.out,.msg-out .bubble,.msg-out .bubble.sent{background:linear-gradient(135deg,#6d28d9 0%,#8b3cf0 60%,#a855f7 100%)!important;box-shadow:0 8px 22px rgba(124,58,237,.32),inset 0 1px 0 rgba(255,255,255,.18)!important;opacity:1}
.nebula-msg,.ask-card{background:linear-gradient(180deg,rgba(36,23,60,.94),rgba(20,13,36,.94))!important;border:1px solid rgba(192,132,252,.26)!important;box-shadow:0 8px 22px rgba(0,0,0,.35)!important;border-radius:18px}
.msg-meta{color:#b9aedb}
.read-legend{background:rgba(14,9,24,.85);border:1px solid rgba(168,112,255,.18);color:#cfc5ea}
.chat-composer.design-composer{background:rgba(9,6,16,.94)!important;border-top:1px solid rgba(168,112,255,.16)!important}
.design-composer .chat-input{height:46px;font-size:16px}
.nebula-attach{background:rgba(28,20,44,.9)!important;border:1px solid rgba(192,132,252,.35)!important;color:var(--v-ico)!important}
.design-composer .send-pill,.chat-composer .send-pill{box-shadow:0 0 18px rgba(168,85,247,.6)!important}

/* The planets' titles and the dark behind them (tools, the Nebula page, Tap to Pin). */
.om-title b,.pf-title b{font-weight:600;font-size:20px}
.om-title span,.pf-title span{color:#d5ccef}
.orbit-menu.open .om-backdrop,.planet-focus.open .pf-backdrop{background:rgba(5,3,10,.78)}
/* What you sent, by state: deeper while on its way, full violet once delivered, a lit pink edge once read. */
.msg-out .bubble.sent{background:linear-gradient(135deg,#4c1d95,#6d28d9)!important;opacity:.95}
.msg-out .bubble.delivered{background:linear-gradient(135deg,#6d28d9 0%,#8b3cf0 60%,#a855f7 100%)!important}
.msg-out .bubble.read{background:linear-gradient(135deg,#6d28d9 0%,#9a4df5 62%,#d98cf2 100%)!important;box-shadow:0 6px 20px rgba(124,58,237,.3)!important}
.out-state,.msg-out .out-state{color:#d9cdf6}

/* --- Build 49: the approved screens (Tap to Pin universe, Chat, Conversation, Calls) --- */
/* Tap to Pin opens into your universe: the tiles step aside, the bar grows down to the
   tab bar, and the original galaxy with the folder planets fills it. The bar folds it. */
#cosmicApp .pin-head .pin-ico{color:var(--v-ico);filter:drop-shadow(0 0 6px rgba(192,132,252,.75))}
.pin-count{height:22px;padding:0 10px;border-radius:11px;font-size:12.5px;font-weight:500;line-height:22px;white-space:nowrap}
.pin-head .pin-chev-r{transition:transform .3s ease}
.pin.open .pin-chev-r{transform:rotate(180deg)}
.pin.open .pin-head{border-radius:16px 16px 0 0}
[data-screen="dash"].pin-open .dash-tiles,[data-screen="dash"].pin-open .pin-docs{display:none}
[data-screen="dash"].pin-open .pin{margin-bottom:0}
#pinUniverse{margin:0;height:calc(100vh - var(--safe-top) - var(--safe-bottom) - 278px);min-height:300px;max-height:640px;border-radius:0 0 16px 16px;animation:pinIn .35s ease both}
@supports (height:100dvh){#pinUniverse{height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 278px)}}
@keyframes pinIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#pinUniverse .galaxy-canvas{left:0;top:24%;width:100%;height:52%}
.pin-hint{position:absolute;left:0;right:0;top:2px;margin:0;text-align:center;font-size:13.5px;color:#d5ccef;pointer-events:none}
#pinUniverse .orb-ball{width:64px;height:64px}
#pinUniverse .orb-planet.ring0 .orb-ball{width:68px;height:68px}
#pinUniverse .orb-planet{width:120px;height:98px;margin:-33px 0 0 -60px}
#pinUniverse .orb-name{max-width:118px;font-size:12px;font-weight:600;background:rgba(21,8,34,.74);border-color:rgba(255,255,255,.14)}
/* "New folder" and "All folders" are not folders: an outline with its sign, not a planet. */
#pinUniverse [data-planet="new"] .orb-ball,#pinUniverse [data-planet="all"] .orb-ball{background:rgba(10,6,20,.5);border:1.5px dashed rgba(216,180,254,.75);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-sizing:border-box}
#pinUniverse [data-planet="new"] .orb-ball::after,#pinUniverse [data-planet="all"] .orb-ball::after{display:none}
#pinUniverse [data-planet="new"] .orb-ball svg,#pinUniverse [data-planet="all"] .orb-ball svg{opacity:1;width:22px;height:22px;color:#e9d5ff;filter:none}
#pinUniverse [data-planet="new"] .orb-name,#pinUniverse [data-planet="all"] .orb-name{font-weight:500;color:#e9d5ff}
@media (prefers-reduced-motion:reduce){#pinUniverse{animation:none}.pin-head .pin-chev-r{transition:none}}

/* Page heads: the title with one green line under it, square glass buttons beside it. */
.tab-heading{display:flex;flex-direction:column;gap:3px;min-width:0}
.tab-sub{font-size:14px;font-weight:500;color:var(--v-green);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq-btn{width:46px;height:46px;flex:none;box-sizing:border-box;padding:0;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(28,20,44,.82);color:#ece6ff;display:grid;place-items:center;cursor:pointer}
#cosmicApp .sq-btn svg{width:22px;height:22px}
.sq-btn.neon,.sq-btn[aria-expanded="true"]{background:rgba(124,58,237,.2);border-color:rgba(192,132,252,.6);box-shadow:0 0 16px rgba(168,85,247,.4);color:#e9d5ff}
#cosmicApp .sq-btn.neon svg{filter:drop-shadow(0 0 6px rgba(192,132,252,.75))}
.sq-btn:active{transform:scale(.96)}

/* Chat: who is here in one row, the chips, and every conversation on one sheet. */
.people-row{display:flex;gap:10px;margin:6px -18px 2px;padding:4px 18px 6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.people-row::-webkit-scrollbar,.flt-row::-webkit-scrollbar,.fav-row::-webkit-scrollbar{display:none}
.people-row[hidden],.chip-row[hidden]{display:none}
.pp-people{display:flex;gap:10px}
.pp-item{flex:none;width:62px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:none;color:#e9e2fb;font:inherit;font-size:12px;cursor:pointer}
.pp-name{max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-item.unread .pp-name{color:#fff;font-weight:600}
.pp-item .face.lg{width:56px;height:56px}
.pp-ring{width:56px;height:56px;box-sizing:border-box;border-radius:50%;border:1.5px dashed rgba(192,132,252,.7);display:grid;place-items:center;color:#e9d5ff}
.pp-ring .sp-av{display:none}
#cosmicApp .pp-plus{width:22px;height:22px;filter:drop-shadow(0 0 6px rgba(192,132,252,.75))}
.pp-item.me.on .pp-ring{border:0;padding:2px;background:linear-gradient(140deg,#d8b4fe,#7c3aed);box-shadow:0 0 14px rgba(168,85,247,.55)}
.pp-item.me.on .pp-ring .sp-av{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:linear-gradient(135deg,#c084fc,#7c3aed);color:#fff;font-size:18px;font-weight:600}
#cosmicApp .pp-item.me.on .pp-plus{display:none}
.chip-row{display:flex;gap:8px;margin:8px -18px 12px;padding:0 18px;overflow-x:auto;scrollbar-width:none}
.chip-row::-webkit-scrollbar{display:none}
.flt-chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;box-sizing:border-box;padding:0 15px;border-radius:20px;border:1px solid rgba(192,132,252,.22);background:rgba(28,20,44,.7);color:#d9d0f5;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.flt-chip.on{background:rgba(168,85,247,.24);border-color:rgba(192,132,252,.75);box-shadow:0 0 14px rgba(168,85,247,.35);color:#fff}
.flt-chip b{color:#e9d5ff;font-weight:600}
.conversation-list.sheet{gap:0;margin:0 0 28px;padding:0;border-radius:18px;border:1px solid var(--v-line);background:var(--v-card);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 22px rgba(0,0,0,.4);overflow:hidden}
.conversation-list.sheet .chat-row{position:relative;gap:13px;padding:10px 14px 10px 12px;border:0;border-top:1px solid rgba(200,160,255,.1);border-radius:0;background:none;box-shadow:none}
.conversation-list.sheet .chat-row:first-child{border-top:0}
.conversation-list.sheet .chat-row:active{background:rgba(255,255,255,.04)}
.conversation-list.sheet .face.lg{width:52px;height:52px}
.chat-row-top{justify-content:flex-start;align-items:center;gap:6px}
.chat-row-top time{margin-left:auto}
.chat-row.has-unread .chat-row-top time{color:#e9d5ff}
#cosmicApp .v-mark{flex:none;width:15px;height:15px;fill:none;stroke:var(--v-green);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(56,224,139,.6))}
#cosmicApp .fav-mark{flex:none;width:14px;height:14px;color:#b9aedb}
#cosmicApp .pre-ico{flex:none;width:16px;height:16px;color:var(--v-ico);filter:drop-shadow(0 0 5px rgba(192,132,252,.6))}
.conversation-list.sheet .chat-badge{position:absolute;right:14px;bottom:12px;min-width:24px;height:22px;border-radius:11px;background:linear-gradient(180deg,#a66bff,#7c3aed);box-shadow:0 0 12px rgba(168,85,247,.65);font-size:12.5px}
.conversation-list.sheet .chat-row.has-unread .chat-row-last{padding-right:38px}
.face.gal-face{background:linear-gradient(140deg,#d8b4fe,#7c3aed);box-shadow:0 0 12px rgba(168,85,247,.4)}
.gal-face .face-in{background:radial-gradient(circle,#1a1038 0%,#07050d 80%)!important}
.gal-face canvas{flex:none;width:84px;height:50px}

/* A conversation: who it is sealed for, documents as cards, quick actions over the keyboard. */
.round-call,.round-back{width:44px;height:44px;border-radius:14px!important}
.round-call{background:rgba(28,20,44,.82);border:1px solid rgba(255,255,255,.08);color:#ece6ff}
.chat-who .chat-state[data-security="good"]{color:var(--v-green)!important;font-size:13px;font-weight:500}
.chat-sealed{align-self:center;display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:15px;background:rgba(28,20,44,.75);border:1px solid rgba(168,112,255,.18);font-size:12.5px;color:#cfc5ea}
#cosmicApp .chat-sealed svg{width:14px;height:14px;color:var(--v-ico)}
.nebula-msg.file-card{display:flex;align-items:center;gap:12px;width:min(292px,86%);max-width:86%;box-sizing:border-box;padding:12px}
#cosmicApp .file-card svg.f-ico{flex:none;width:34px;height:43px}
.fc-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.file-card .nebula-card-name{font-size:15.5px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-card .nebula-card-state{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--v-muted);white-space:nowrap}
.file-card .fc-when{display:inline-flex;align-items:center;gap:5px}
#cosmicApp .file-card .mark{width:13px;height:13px}
.fc-chip{height:22px;padding:0 9px;border-radius:11px;border:1px solid rgba(192,132,252,.3);background:rgba(28,20,44,.8);color:#efe9ff;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap}
.fc-chip.ok{background:rgba(56,224,139,.12);border-color:rgba(56,224,139,.35);color:#7ff0b4}
.fc-chip.go{background:rgba(168,85,247,.24);border-color:rgba(192,132,252,.7);color:#fff}
.fc-seal{position:relative;flex:none;width:44px;height:44px;border-radius:14px;overflow:hidden;display:grid;place-items:center;border:1px solid rgba(192,132,252,.3)}
.fc-seal .nebula-thumb.visual-nebula{position:absolute;inset:0;width:100%;height:100%;border-radius:0;box-shadow:none}
.fc-seal .nebula-thumb.visual-nebula:after{display:none}
#cosmicApp .fc-seal>svg{position:relative;z-index:7;width:16px;height:16px;color:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.8))}
.chat-composer.design-composer{flex-wrap:wrap}
.quick-row{flex:0 0 100%;display:flex;gap:8px}
.quick-chip{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;height:40px;box-sizing:border-box;padding:0 6px;border-radius:20px;border:1px solid rgba(192,132,252,.3);background:rgba(28,20,44,.8);color:#efe9ff;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.quick-chip:disabled{opacity:.45}
#cosmicApp .quick-chip svg{flex:none;width:16px;height:16px;color:var(--v-ico);filter:drop-shadow(0 0 5px rgba(192,132,252,.6))}
.quick-chip span{overflow:hidden;text-overflow:ellipsis}
.composer-wrap{position:relative;flex:1;min-width:0;display:flex}
.design-composer .composer-wrap .chat-input{padding-right:46px!important}
.field-mic{position:absolute;right:2px;top:50%;width:44px;height:44px;margin-top:-22px;border:0;border-radius:22px;background:none;color:var(--v-ico);display:grid;place-items:center;cursor:pointer;padding:0}
.field-mic:disabled{opacity:.45}
#cosmicApp .field-mic svg{width:21px;height:21px}
.nebula-attach{border-radius:14px!important}
.round-send{width:46px;height:46px;border-radius:23px;border:1px solid rgba(216,180,254,.5);background:linear-gradient(135deg,#7c3aed,#b96cfb);box-shadow:0 0 18px rgba(168,85,247,.6)}
.chat-stream{padding-bottom:calc(204px + var(--safe-bottom))!important}
.read-legend{bottom:calc(134px + var(--safe-bottom))}

/* Calls: favourites one tap away, then what happened, on one sheet. */
.fav-row{display:flex;gap:10px;margin:0 0 6px}
.fav-row.scroll{margin:0 -18px 6px;padding:0 18px;overflow-x:auto;scrollbar-width:none}
.fav-card{flex:0 0 calc((100% - 20px)/3);min-width:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px 8px;border-radius:16px;border:1px solid var(--v-line);background:var(--v-card);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 22px rgba(0,0,0,.4)}
.fav-row.scroll .fav-card{flex:none;width:108px}
.fav-card .face.lg{width:54px;height:54px}
.fav-card b{max-width:100%;font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fav-acts{display:flex;gap:2px}
.fav-acts button{width:44px;height:36px;border:0;border-radius:12px;background:none;color:var(--v-ico);display:grid;place-items:center;cursor:pointer;padding:0}
.fav-acts button:active,.call-btn:active{background:rgba(168,85,247,.24)}
#cosmicApp .fav-acts svg{width:19px;height:19px;filter:drop-shadow(0 0 5px rgba(192,132,252,.6))}
.seg{display:flex;gap:4px;padding:3px;border-radius:22px;border:1px solid rgba(192,132,252,.2);background:rgba(28,20,44,.7)}
.seg button{height:36px;padding:0 14px;border-radius:18px;border:1px solid transparent;background:none;color:#d9d0f5;font:inherit;font-size:13.5px;cursor:pointer}
.seg button.on{background:rgba(168,85,247,.26);border-color:rgba(192,132,252,.7);box-shadow:0 0 14px rgba(168,85,247,.3);color:#fff;font-weight:500}
.seg button b{color:#ff8fa3;font-weight:600}
.calls-sheet{border-radius:18px;border:1px solid var(--v-line);background:var(--v-card);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 22px rgba(0,0,0,.4);overflow:hidden}
.calls-row{display:flex;align-items:center;gap:12px;min-height:72px;box-sizing:border-box;padding:10px 12px;border-top:1px solid rgba(200,160,255,.1)}
.calls-row:first-child{border-top:0}
.calls-row .face.lg{width:48px;height:48px}
.call-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.call-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.call-top time{flex:none;margin-left:auto;font-size:12.5px;color:var(--v-muted)}
.call-main b{font-size:16.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-main>span{display:flex;align-items:center;gap:6px;min-width:0;font-size:13.5px;color:var(--v-muted);white-space:nowrap}
.call-main>span>span{overflow:hidden;text-overflow:ellipsis}
#cosmicApp .call-main svg{flex:none;width:15px;height:15px}
.calls-row.missed .call-main b{color:#ffb3c0}
.calls-row.missed .call-main>span{color:#ff8fa3}
.call-btn{flex:none;width:44px;height:44px;box-sizing:border-box;padding:0;border-radius:14px;border:1px solid rgba(192,132,252,.26);background:rgba(124,58,237,.16);color:var(--v-ico);display:grid;place-items:center;cursor:pointer}
#cosmicApp .call-btn svg{width:19px;height:19px;filter:drop-shadow(0 0 5px rgba(192,132,252,.6))}
.vault-pick{max-height:52vh;overflow-y:auto}
@media (max-width:380px){.quick-chip{font-size:12.5px;gap:5px;padding:0 4px}}
@media (max-width:359px){.quick-chip{font-size:12px;gap:4px}.calls-row{gap:8px}.call-btn{width:40px}}
@media (max-height:700px){#pinUniverse .orb-ball{width:54px;height:54px}#pinUniverse .orb-planet.ring0 .orb-ball{width:56px;height:56px}#pinUniverse .orb-planet{height:86px;margin-top:-28px}}

/* The build number under More, and the update when one waits. */
.build-line{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;margin:18px 0 0;padding:10px;border:0;background:none;color:#8f86ad;font:inherit;font-size:12.5px;cursor:pointer}
.build-line span+span{color:var(--v-ico);font-size:13px}
.build-line:disabled{opacity:.5}
.more-row.update{border-color:var(--v-line-2);box-shadow:0 0 18px rgba(168,85,247,.3)}
.more-row[hidden],.dash-update[hidden]{display:none}
.dash-update{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;box-sizing:border-box;margin:0 0 12px;padding:8px 14px;border-radius:14px;border:1px solid var(--v-line-2);background:rgba(124,58,237,.2);color:#fff;font:inherit;font-size:14px;text-align:left;cursor:pointer}
#cosmicApp .dash-update svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--v-ico);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dash-update span{flex:1}
.dash-update b{font-weight:600;color:#e9d5ff}
[data-screen="dash"].pin-open .dash-update{display:none}

/* --- Build 50: Back stays in view, slide back from the edge, the call window --- */
/* The page itself scrolls. A body that clips with "hidden" becomes a scroll box of its
   own that never moves, and every sticky header sticks to it: so it left with the page.
   "clip" cuts the same overflow without making that box. */
@supports (overflow:clip){body.cosmic-mode{overflow-x:clip}}
/* A header that carries Back stays where it already is, under the status bar. */
.sub-top,.folder-top,.chat-top{top:var(--safe-top)}
/* A section's title keeps scrolling away with its page, as it always did. */
.tab-head{position:relative}
/* Once the page has moved, what passes behind the header and the status bar is covered. */
.sub-top::before,.folder-top::before,.chat-top::before{content:"";position:absolute;z-index:-1;left:-24px;right:-24px;top:calc(-1 * var(--safe-top));bottom:0;background:linear-gradient(180deg,var(--sky-base,#07050d) calc(100% - 12px),rgba(7,5,13,.86));opacity:0;transition:opacity .15s ease;pointer-events:none}
body.page-moved .sub-top::before,body.page-moved .folder-top::before,body.page-moved .chat-top::before{opacity:1}
/* The mark that follows a finger sliding in from the left edge; violet once letting go goes back. */
.back-swipe{position:fixed;left:0;top:0;z-index:12000;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(28,24,40,.94);border:1px solid rgba(255,255,255,.16);box-shadow:0 8px 22px rgba(0,0,0,.5);opacity:0;pointer-events:none;transform:translate(-48px,0)}
.back-swipe svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.back-swipe.armed{background:#7c3aed;border-color:transparent}
.back-swipe.leaving{transition:transform .18s ease,opacity .18s ease}
/* A minimised video call keeps its picture: the call's own video, as a small window. */
.call-screen.minimized .call-remote.call-window{visibility:visible;pointer-events:auto;inset:auto 12px calc(176px + var(--safe-bottom)) auto;width:112px;height:156px;border-radius:18px;border:1px solid rgba(255,255,255,.22);box-shadow:0 16px 36px rgba(0,0,0,.6);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}
.call-screen.minimized .call-remote.call-window:focus-visible{outline:2px solid var(--v-ico);outline-offset:2px}

/* --- Build 51: glass, a new Home, the universe in the bar, rendered planets, larger type --- */
/* Planets are pictures (tools/art/planets.py): the ball keeps its size and place, the picture
   sits around it. A picture reaches 1.12 planet radii from the centre, 2.3 with rings. */
:is(#universe,#pinUniverse) .orb-ball,.pf-ball[data-world]{background:none!important;box-shadow:none!important;filter:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
:is(#universe,#pinUniverse) .orb-ball::after,.pf-ball[data-world]::after{display:none!important}
:is(#universe,#pinUniverse) .orb-ball::before,.pf-ball[data-world]::before{content:'';position:absolute;inset:-6%;width:auto;height:auto;border:0!important;border-radius:0;transform:none;box-shadow:none!important;background:center/contain no-repeat;pointer-events:none}
:is(#universe,#pinUniverse) [data-world="violet"] .orb-ball::before,.pf-ball[data-world="violet"]::before{background-image:url(./art/planets/violet.webp)}
:is(#universe,#pinUniverse) [data-world="blue"] .orb-ball::before,.pf-ball[data-world="blue"]::before{background-image:url(./art/planets/blue.webp)}
:is(#universe,#pinUniverse) [data-world="sand"] .orb-ball::before,.pf-ball[data-world="sand"]::before{background-image:url(./art/planets/sand.webp)}
:is(#universe,#pinUniverse) [data-world="teal"] .orb-ball::before,.pf-ball[data-world="teal"]::before{background-image:url(./art/planets/teal.webp)}
:is(#universe,#pinUniverse) [data-world="rose"] .orb-ball::before,.pf-ball[data-world="rose"]::before{background-image:url(./art/planets/rose.webp)}
:is(#universe,#pinUniverse) .orb-planet.ringed[data-world="violet"] .orb-ball::before,.pf-ball.ringed[data-world="violet"]::before{inset:-65%;background-image:url(./art/planets/violet-ring.webp)}
:is(#universe,#pinUniverse) .orb-planet.ringed[data-world="sand"] .orb-ball::before,.pf-ball.ringed[data-world="sand"]::before{inset:-65%;background-image:url(./art/planets/sand-ring.webp)}
/* "New folder" and "All folders" stay an outline, not a world. */
#pinUniverse [data-planet="new"] .orb-ball,#pinUniverse [data-planet="all"] .orb-ball{background:rgba(10,6,20,.5)!important}
#pinUniverse [data-planet="new"] .orb-ball::before,#pinUniverse [data-planet="all"] .orb-ball::before{display:none}
:is(#universe,#pinUniverse) .orb-ball svg{position:relative;z-index:1}
/* Names under planets: plain words, no pill. */
:is(#universe,#pinUniverse) .orb-name{max-width:120px;padding:0;border:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;font-size:14.5px;font-weight:500;letter-spacing:0;text-shadow:0 1px 6px rgba(0,0,0,.8)}
:is(#universe,#pinUniverse) .orbit-ring{stroke:rgba(255,255,255,.14);stroke-width:1;stroke-dasharray:none}

/* The bar: a capsule of glass that floats over the page, with the universe in its middle. */
.tab-bar.design-tabs{left:14px!important;right:14px!important;bottom:calc(14px + var(--safe-bottom))!important;max-width:532px!important;height:66px;box-sizing:border-box;padding:0 4px!important;border-radius:33px!important;grid-template-columns:1fr 1fr 96px 1fr 1fr!important;align-items:center;background:rgba(255,255,255,.08)!important;border:0!important;-webkit-backdrop-filter:blur(26px) saturate(1.8);backdrop-filter:blur(26px) saturate(1.8);box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 0 0 1px rgba(255,255,255,.08),0 14px 34px rgba(0,0,0,.34)}
.design-tabs .tab-btn{justify-self:center;justify-content:center;width:60px;height:52px;padding:0;border-radius:26px;gap:3px;font-size:12px!important;font-weight:500!important;color:#c3bfd6!important}
.design-tabs .tab-btn.active{background:rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);color:#fff!important}
.design-tabs .tab-btn.active::after{display:none}
.design-tabs .tab-btn.active .tab-ico svg{filter:none}
#cosmicApp .design-tabs .tab-ico svg.ds-ico{width:23px;height:23px}
.tab-universe{justify-self:center;align-self:center;position:relative;width:64px;height:52px;margin:0;padding:0;border:0;border-radius:26px;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tab-universe img{position:absolute;left:50%;top:50%;width:97px;height:97px;max-width:none;transform:translate(-50%,-50%);pointer-events:none;transition:transform .25s ease}
.tab-universe:active img{transform:translate(-50%,-50%) scale(.94)}
.tab-universe:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.universe-open .tab-universe::after{content:"";position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;background:linear-gradient(#fff,#fff) center/100% 2px no-repeat,linear-gradient(#fff,#fff) center/2px 100% no-repeat;transform:rotate(45deg);filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))}
body.has-tabs .cosmic-shell{padding-bottom:calc(112px + var(--safe-bottom))}

/* Home: what is new for you, your people, Tap to Pin. */
.dash-block{margin:22px 0 0}
.dash-block[hidden]{display:none}
.dash-block-head{display:flex;align-items:baseline;gap:10px;margin:0 2px 12px}
.dash-block-head h2{margin:0;font-size:17px;font-weight:500;color:#b4b0c6}
.dash-count{flex:1;font-style:normal;font-size:16px;color:#85819a}
.dash-link{margin:0;padding:4px 0;border:0;background:none;color:#c8bcff;font:inherit;font-size:16px;font-weight:500;cursor:pointer}
.dash-new{border-radius:24px;background:rgba(255,255,255,.06);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.07);overflow:hidden}
.dash-new .chat-row{width:100%;margin:0;border:0;border-radius:0;background:none!important;box-shadow:none!important;padding:12px 14px}
.dash-new .chat-row+.chat-row{box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important}
.dn-face .face-in{background:rgba(255,255,255,.1)!important;color:#c8bcff}
#cosmicApp .dn-face svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dn-missed .chat-row-last span{color:#f09aa8}
.dn-need .chat-row-last span{color:#c8bcff}
.dash-people{display:grid;grid-template-columns:repeat(5,62px);justify-content:space-between}
.dp-person{flex:none;width:62px;margin:0;padding:0;border:0;background:none;color:#fff;font:inherit;font-size:14px;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer}
.dp-person span:last-child{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dp-plus{width:58px;height:58px;box-sizing:border-box;border-radius:50%;border:1.5px dashed rgba(255,255,255,.3);display:grid;place-items:center}
#cosmicApp .dp-plus svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round}
.dp-add{color:#b4b0c6}
[data-screen="dash"].pin-open .dash-block{display:none}
/* Tap to Pin closes the page as a capsule of glass. */
[data-screen="dash"]:not(.pin-open) #dashCollections{margin-top:26px;border-color:transparent;background:none;box-shadow:none;border-radius:31px}
[data-screen="dash"]:not(.pin-open) #dashCollections .pin-head{min-height:62px}
[data-screen="dash"]:not(.pin-open) #dashCollections .pin-head{border-radius:31px;background:rgba(255,255,255,.06);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.07)}

/* Type: nothing small. Names and what people wrote are read at arm's length. */
.chat-row-top b{font-size:17.5px!important;font-weight:500!important}
.chat-row-last,.chat-row-last span{font-size:16px!important}
.chat-row-top time{font-size:14px!important}
.chat-badge{font-size:13px!important}
.tab-title{font-size:30px!important;font-weight:600!important}
.chip-row .chip,.chip-row button{font-size:16px!important}
.nebula-msg,.nebula-msg .msg-text{font-size:17.5px}
.chat-input{font-size:17.5px!important}
.quick-chip{flex:1 1 auto;font-size:14px}
@media (max-width:380px){.quick-chip{font-size:13px}}
@media (max-width:359px){.quick-chip{font-size:12px}}
.more-copy b,.settings-row strong,.row-copy strong,.menu-row{font-size:17.5px!important}
.pin-head span{font-size:17.5px}
.dash-hello b{font-size:23px!important;font-weight:600!important}
.dash-id{font-size:15px!important}
.empty-cosmic,.empty-note{font-size:16.5px!important}
.section-head h3{font-size:17px!important}
.calls-row b,.fav-card b{font-size:17px!important}
/* Faces without a photo: the person's own colour, seen through dark glass, with a white
   letter. A photo, a group's galaxy and an icon keep their own look. */
.face:not(.gal-face):not(.dn-face){background:rgba(255,255,255,.2)}
.face:not(.gal-face):not(.dn-face).lit{background:var(--d-ring)}
.face:not(.gal-face):not(.dn-face) .face-in:not(:has(img)){position:relative;isolation:isolate;color:#fff!important;font-weight:500}
.face:not(.gal-face):not(.dn-face) .face-in:not(:has(img))::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:50%;background:linear-gradient(165deg,rgba(34,26,74,.4),rgba(10,8,24,.74));box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.dash-face .face.lg{background:rgba(255,255,255,.22);box-shadow:none}
.dash-link{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;display:inline-flex;align-items:center;min-height:44px;margin:-10px 0;padding:0 2px 0 12px}
/* === Build 52: Remove in the person sheet. No icon: the words line up with the rows above. === */
.person-card #chatMenuRemove{padding-left:40px;border-bottom:0}
.person-card #chatMenuRemove[data-armed]{background:rgba(255,90,110,.1);border-radius:12px}
/* === Build 53: no boxes. Rows sit on the sky; people are circles; one row for what was sent. === */
/* Chat: the conversations are rows, not a card. */
.conversation-list.sheet{margin:0 0 28px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
.conversation-list.sheet .chat-row{padding:11px 2px;border-top:0;border-radius:18px}
.conversation-list.sheet .chat-row:active{background:rgba(255,255,255,.05)}
.conversation-list.sheet .chat-badge{right:4px}
.request-list{border:0;background:none}
.request-row{border-bottom:0;padding:9px 2px}
.request-row .avatar{background:rgba(255,255,255,.08)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)!important;color:#d9ccff}
/* Calls: people as circles; a tap opens Voice and Video. */
.cp-row{display:grid;grid-template-columns:repeat(5,62px);justify-content:space-between;row-gap:14px;margin:2px 0 10px}
.cp-row.scroll{display:flex;gap:16px;margin:2px -18px 10px;padding:0 18px;overflow-x:auto;scrollbar-width:none}
.cp-row.scroll::-webkit-scrollbar{display:none}
.cp-person{flex:none;width:62px;margin:0;padding:0;border:0;background:none;color:#fff;font:inherit;font-size:14px;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cp-person span:last-child{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-person:active .face{transform:scale(.95)}
.cp-person .face{transition:transform .15s ease}
.calls-list{margin:0 0 28px}
.calls-list .calls-row{width:100%;margin:0;border:0;border-radius:18px;background:none;color:inherit;font:inherit;text-align:left;min-height:68px;padding:9px 2px;gap:13px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.calls-list div.calls-row{cursor:default}
.calls-list button.calls-row:active{background:rgba(255,255,255,.05)}
.calls-list .calls-row .face.lg{width:52px;height:52px}
.call-sub{display:flex;align-items:center;gap:6px;min-width:0;font-size:15.5px;color:var(--v-muted)}
.call-sub>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calls-row.missed .call-sub{color:#ff9aa8}
.call-n{flex:none;font-style:normal;font-size:13px;color:var(--v-muted);padding:1px 7px;border-radius:9px;background:rgba(255,255,255,.08)}
/* The person as a planet with two choices: no line under the name. */
#planetFocus[data-planet^="call:"] .pf-title span{display:none}
/* Vault: what you sent is one quiet row. */
.vault-sent-row{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:18px 0 4px;padding:0 6px;border:0;background:none;color:#e9e1ff;font:inherit;font-size:17px;font-weight:500;text-align:left;cursor:pointer}
.vault-sent-row[hidden]{display:none}
.vault-sent-row i{font-style:normal;font-size:14px;color:var(--v-muted)}
#cosmicApp .vault-sent-row .chev{margin-left:auto;width:18px;height:18px;color:var(--v-muted);fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .2s ease}
.vault-sent-row[aria-expanded="true"] .chev{transform:rotate(180deg)}
/* The orbit sheet holds seven planets in the space it always had (a taller sheet pushed
   Send off a small screen): the lower three sit on the outer arc. */
/* Home fits the screen, and Tap to Pin rests at the bottom, above the bar. */
[data-screen="dash"].active{display:flex;flex-direction:column;min-height:calc(100vh - var(--safe-top) - var(--safe-bottom) - 112px)}
@supports (height:100dvh){[data-screen="dash"].active{min-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 112px)}}
[data-screen="dash"]:not(.pin-open) #dashCollections{margin-top:0;margin-bottom:4px}
[data-screen="dash"]:not(.pin-open) #dashPeopleWrap{margin-bottom:22px}
/* A short screen (iPhone SE size): the orbit and the photo strip are drawn a little
   smaller so the caption and Send stay on the screen. */
@media (max-height:700px){
.ps-orbit{height:242px;transform:translateX(-50%) scale(calc(var(--k,1)*.92))}
.ps-recent{height:148px;margin-top:2px;transform:translateX(-50%) scale(calc(var(--k,1)*.86))}
.ps-foot{gap:8px;padding-top:4px}
}
/* === Build 54: the screen stays still. A page moves only when it holds more than fits;
   its title stays under the status bar and the bar stays at the bottom. === */
/* A page is exactly as tall as the screen (it used to be taller by the space kept for the
   status bar and the bar, so every page could be dragged up and down even when empty). */
.cosmic-shell{--shell-pb:calc(24px + var(--safe-bottom));min-height:0}
body.has-tabs .cosmic-shell{--shell-pb:calc(112px + var(--safe-bottom))}
.cosmic-screen{min-height:calc(100vh - var(--safe-top) - var(--shell-pb))}
@supports (height:100dvh){.cosmic-screen{min-height:calc(100dvh - var(--safe-top) - var(--shell-pb))}}
/* A section's title stays in view too, like a header with Back; what passes behind it
   and the status bar is covered once the page has moved. */
/* Above the planets of a page (they layer up to 30), below every sheet. */
.tab-head,.dash-head{position:sticky;top:var(--safe-top);z-index:40}
.tab-head{background:none!important}
.tab-head::before,.dash-head::before{content:"";position:absolute;z-index:-1;left:-24px;right:-24px;top:calc(-1 * var(--safe-top));bottom:0;background:linear-gradient(180deg,var(--sky-base,#07050d) calc(100% - 12px),rgba(7,5,13,.86));opacity:0;transition:opacity .15s ease;pointer-events:none}
body.page-moved .tab-head::before,body.page-moved .dash-head::before{opacity:1}
/* The owner's line under the version: small and quiet. */
.owner-line{margin-top:2px;font-size:12px;opacity:.62;letter-spacing:.01em}
/* === Build 55: the planet in the bar opens the orbits of "Send to" with five things to
   do. Search and Nebula AI are plain sheets: a field or three choices, then rows. === */
.hub-sheet .ps-orbit{margin-bottom:10px}
.hub-sheet .ps-planet{width:84px;margin-left:-4px}
.hub-sheet .ps-planet:nth-of-type(5){animation-delay:.55s}
.search-card,.nai-card{display:flex;flex-direction:column;height:min(86vh,720px);max-height:calc(100dvh - var(--safe-top) - 12px)!important;overflow:hidden!important}
.nai-card{height:auto;max-height:min(86vh,720px)!important}
.search-top{display:flex;align-items:center;gap:10px;padding:12px 16px 4px}
.search-field{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;border-radius:24px;border:1px solid rgba(221,195,250,.24);background:rgba(255,255,255,.05)}
.nebula-sheet .search-field svg{width:18px;height:18px;flex:none;fill:none;stroke:#cdb6ea;stroke-width:1.8;stroke-linecap:round}
.search-field input{flex:1;min-width:0;height:46px;border:0;outline:0;background:none;color:var(--d-text);font:inherit;font-size:16px;-webkit-appearance:none;appearance:none}
.search-field input::placeholder{color:#9c8fb8}
.search-field input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.search-field:focus-within{border-color:rgba(221,195,250,.6)}
.search-results{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 10px 6px}
.search-results h3{margin:14px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#b9a3d6}
.search-results .empty-cosmic{margin:26px 10px;padding:0;border:0;background:none;color:#a79bc0}
.sr-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 10px;border:0;border-radius:16px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.sr-row:active{background:rgba(255,255,255,.06)}
.sr-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sr-main b{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.sr-top b{flex:1;min-width:0}
.sr-top time{flex:none;font-size:12px;color:#9c8fb8}
.sr-text{font-size:13.5px;color:#bfb2d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-row mark{background:rgba(203,167,248,.3);color:#fff;border-radius:4px;padding:0 1px}
.nai-state{margin:22px 22px 10px;text-align:center;color:#bfb2d6;font-size:15px}
.nai-tasks{display:flex;gap:8px;padding:14px 16px 6px}
.nai-task{flex:1;height:44px;border-radius:22px;border:1px solid rgba(221,195,250,.22);background:rgba(255,255,255,.04);color:#d9cbee;font:inherit;font-size:14.5px;font-weight:500;cursor:pointer}
.nai-task.on{border-color:rgba(225,204,251,.7);background:linear-gradient(180deg,rgba(184,130,245,.34),rgba(120,70,190,.3));color:#fff;font-weight:600}
.nai-list{flex:0 1 auto;max-height:46vh}
.nai-note{margin:8px 18px 4px}

.sr-row svg.f-ico{width:34px;height:43px;margin:0 5px}
/* === Build 56: New Nebula in a few taps. Faces to choose who, one button for what, and
   choices to tap for how. Nothing to type; the rest sits under More. === */
[data-screen="send"].active{display:flex;flex-direction:column}
.send-panel.nn{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:6px 0 8px}
.nn-who{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -18px;padding:6px 18px 2px;scroll-snap-type:x proximity;scroll-padding:0 18px}
.nn-who::-webkit-scrollbar{display:none}
/* Centred while they fit; from the left, and sliding, once they do not. */
.nn-who>:first-child{margin-left:auto}.nn-who>:last-child{margin-right:auto}
.nn-face{flex:none;width:76px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 0;border:0;background:none;color:#cbbfe2;font:inherit;font-size:12.5px;cursor:pointer;scroll-snap-align:start;-webkit-tap-highlight-color:transparent}
.nn-face span:last-child{max-width:74px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nn-face .face{transition:transform .18s ease,box-shadow .18s ease;opacity:.72}
.nn-face.on{color:#fff;font-weight:600}
.nn-face.on .face{opacity:1;transform:scale(1.06);background:conic-gradient(from 200deg,rgba(255,220,180,.95),rgba(203,167,248,.95),rgba(230,170,255,.95),rgba(255,220,180,.95));box-shadow:0 0 26px rgba(196,150,250,.5)}
.nn-face.on .face::after{content:"";position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:50%;background:#8b5cf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;border:2px solid #0d0817}
.nn-empty{flex:1;text-align:center;color:#a79bc0;font-size:15px;padding:22px 0}
.nn-file{display:flex;flex-direction:column;align-items:center;gap:12px;margin:auto 0;padding:8px 0;color:#e6d8fa;font-weight:600;font-size:15px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.nn-file input{display:none}
.nn-file-orb{position:relative;width:118px;height:118px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.2),rgba(184,130,245,.16) 60%,rgba(88,40,140,.24));border:1px solid rgba(225,204,251,.5);box-shadow:0 0 44px rgba(170,110,245,.28);animation:dPulse 2.6s ease-in-out infinite}
#cosmicApp .nn-file-orb svg{width:34px;height:34px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nn-file-orb .done{display:none}
.nn-file.has-file .nn-file-orb{animation:none;border-color:rgba(190,255,220,.6);background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.2),rgba(96,220,160,.2) 60%,rgba(20,90,70,.26));box-shadow:0 0 36px rgba(96,220,160,.24)}
.nn-file.has-file .plus{display:none}.nn-file.has-file .done{display:block}
.nn-file-name{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nn-file-name:empty,.nn-file-label[hidden]{display:none}
.nn-chips{display:flex;align-items:center;justify-content:center;gap:8px}
/* A row of choices shares the width: one line on every phone. */
.nn-chips[role="group"] .nn-chip{flex:1 1 0;min-width:0;padding:0 4px;justify-content:center;white-space:nowrap}
.nn-chip{display:inline-flex;align-items:center;gap:7px;min-height:46px;padding:0 16px;border-radius:23px;border:1px solid rgba(221,195,250,.22);background:rgba(255,255,255,.04);color:#d9cbee;font:inherit;font-size:14.5px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}
.nn-chip.on{border-color:rgba(225,204,251,.7);background:linear-gradient(180deg,rgba(184,130,245,.34),rgba(120,70,190,.3));color:#fff;font-weight:600}
#cosmicApp .nn-chip svg,#cosmicApp .nn-lead{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#cosmicApp .nn-lead{color:#a996c8;margin-right:2px}
.nn-protect{padding:0 26px}
.send-panel.nn .send-pill.wide{margin:4px 0 0}
.nn-more{border:0;background:none;padding:0}
.nn-more summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:44px;color:#b9a3d6;font-size:14px;cursor:pointer}
.nn-more summary::-webkit-details-marker{display:none}
.nn-more[open] summary{color:#fff}
.nn-more-body{display:flex;flex-direction:column;gap:12px;padding:4px 0 8px}
.nn-more-body .quiet-row{border-top:0;padding:4px 2px}
@media (max-height:700px){.send-panel.nn{gap:10px}.nn-file-orb{width:84px;height:84px}.nn-file{gap:8px;padding:2px 0}}
@media (max-width:374px){.nn-chip{font-size:13px}}
/* === Build 57: My day. A small planet in the free space of Home opens three (Today, To
   do, Colour); the sky behind every page can take one of six colours. === */
.dash-day{margin:auto 0;padding:10px 0;display:flex;justify-content:center}
[data-screen="dash"].pin-open .dash-day{display:none}
.dash-day-planet{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:88px;margin:0;padding:4px 8px;border:0;background:none;color:#e9e1fb;font:inherit;font-size:13.5px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dd-ball{width:64px;height:64px;border-radius:50%;background:url(./art/planets/teal.webp) center/108% no-repeat;filter:drop-shadow(0 6px 18px rgba(60,200,210,.35));animation:dFloat 7s ease-in-out infinite}
.dash-day-planet:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:20px}
.dash-day-planet[aria-expanded="true"] .dd-ball{filter:drop-shadow(0 0 22px rgba(120,230,240,.6))}
@media (prefers-reduced-motion:reduce){.dd-ball{animation:none}}
/* A short screen: smaller, closer, so Home with something new still fits without moving. */
@media (max-height:700px){.dash-day{padding:0}.dash-day-planet{gap:4px;padding:2px 8px;font-size:12px}.dd-ball{width:44px;height:44px}[data-screen="dash"]:not(.pin-open) #dashPeopleWrap{margin-bottom:10px}}
.day-card{display:flex;flex-direction:column;max-height:min(86vh,720px)!important;overflow:hidden!important}
.day-list{flex:0 1 auto;min-height:120px;padding-top:10px}
.day-list .chat-row{width:100%;min-height:60px;padding:8px 10px;border:0!important;background:none!important;box-shadow:none!important;border-radius:16px}
.day-list .sr-row.past{opacity:.55}
.todo-form{padding-top:14px}
.todo-row{min-height:54px}
.todo-tick{flex:none;width:26px;height:26px;margin:0 9px;box-sizing:border-box;border-radius:50%;border:1.8px solid rgba(225,204,251,.55)}
.todo-row.done .todo-tick{border-color:#5fe0a1;background:#5fe0a1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062014' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/15px no-repeat}
.todo-row.done b{color:#9c8fb8;text-decoration:line-through;font-weight:500}
.todo-clear{display:block;min-height:44px;margin:2px auto 0;padding:0 16px;border:0;background:none;color:#cdb6ea;font:inherit;font-size:14px;cursor:pointer}
.sky-swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 8px;padding:18px 18px 10px}
.sky-swatches.in-settings{padding:10px 0 4px}
.sky-dot{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:44px;padding:4px 0;border:0;background:none;color:#cbbfe2;font:inherit;font-size:13px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sky-dot i{width:54px;height:54px;border-radius:50%;box-sizing:border-box;border:2px solid rgba(255,255,255,.16);background:radial-gradient(circle at 50% 12%,var(--a) 0%,var(--b) 55%,var(--c) 100%)}
.sky-dot.on{color:#fff;font-weight:600}
.sky-dot.on i{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.14)}
.sky-dot[data-sky-pick="violet"] i{--a:#6a34a8;--b:#2a0f4a;--c:#0f041a}
.sky-dot[data-sky-pick="blue"] i{--a:#2a5cc4;--b:#0f2452;--c:#060d20}
.sky-dot[data-sky-pick="green"] i{--a:#1c8a6c;--b:#0b3d32;--c:#051814}
.sky-dot[data-sky-pick="rose"] i{--a:#b03874;--b:#45102f;--c:#180611}
.sky-dot[data-sky-pick="amber"] i{--a:#b56a24;--b:#48260e;--c:#170c06}
.sky-dot[data-sky-pick="night"] i{--a:#3a3a4c;--b:#15151d;--c:#08080c}
/* The six skies. What you see behind a page is mostly the veil (.violet-sky): a dark
   wash with three glows. A sky gives the veil its own dark and its own glows, adds a
   glow at the top so the colour reads at a glance, and tints what is under it (the
   base, the far glow, the two drifting clouds) and the sheets. Violet is what the app
   always had and needs no rule. Buttons and marks keep their violet in every sky. */
body[data-sky="blue"]{--veil:3,6,16;--g1:37,99,235;--g2:59,130,246;--g3:29,78,216;--sky-a:#17357a;--sky-b:#0a1838;--sky-c:#060d20;--sky-base:#04070f;--sheet-a:#101c3a;--sheet-b:#070c1a;--dsheet-a:rgba(10,18,40,.96);--dsheet-b:rgba(4,7,16,.99);--aur:84,140,255}
body[data-sky="green"]{--veil:2,10,8;--g1:16,185,129;--g2:52,211,153;--g3:4,120,87;--sky-a:#10503f;--sky-b:#082a24;--sky-c:#051814;--sky-base:#030b0a;--sheet-a:#0d2a24;--sheet-b:#061210;--dsheet-a:rgba(8,28,23,.96);--dsheet-b:rgba(3,11,9,.99);--aur:60,210,160}
body[data-sky="rose"]{--veil:12,3,8;--g1:225,29,112;--g2:244,114,182;--g3:157,23,77;--sky-a:#5e1c42;--sky-b:#2a0a1f;--sky-c:#180611;--sky-base:#0c040a;--sheet-a:#2c1022;--sheet-b:#140711;--dsheet-a:rgba(34,10,24,.96);--dsheet-b:rgba(13,4,10,.99);--aur:245,110,170}
body[data-sky="amber"]{--veil:11,6,2;--g1:234,138,30;--g2:251,191,36;--g3:180,83,9;--sky-a:#5c3515;--sky-b:#2b170a;--sky-c:#170c06;--sky-base:#0b0604;--sheet-a:#2a1a0e;--sheet-b:#130b06;--dsheet-a:rgba(34,20,9,.96);--dsheet-b:rgba(12,7,3,.99);--aur:250,170,90}
body[data-sky="night"]{--veil:3,3,5;--g1:96,96,128;--g2:128,128,160;--g3:64,64,90;--sky-a:#1e1e2a;--sky-b:#0e0e14;--sky-c:#08080c;--sky-base:#040406;--sheet-a:#17171f;--sheet-b:#0a0a0e;--dsheet-a:rgba(18,18,24,.96);--dsheet-b:rgba(6,6,9,.99);--aur:150,150,190}
body[data-sky] .violet-sky,body[data-sky].sky-folder .violet-sky{background:
 radial-gradient(95% 34% at 50% 106%,rgba(var(--g1),.5),transparent 72%),
 radial-gradient(110% 38% at 50% -10%,rgba(var(--g2),.3),transparent 72%),
 radial-gradient(55% 30% at -6% 46%,rgba(var(--g3),.22),transparent 70%),
 radial-gradient(55% 30% at 106% 62%,rgba(var(--g3),.16),transparent 70%),
 rgba(var(--veil),.82)}
body.cosmic-mode[data-sky]::after{background:radial-gradient(38% 30% at 30% 30%,rgba(var(--aur),.20),transparent 70%),radial-gradient(34% 26% at 72% 62%,rgba(var(--aur),.14),transparent 70%),radial-gradient(28% 22% at 55% 90%,rgba(var(--aur),.10),transparent 70%)}
/* === Build 58: Pause (a quiet mark, a bar in the conversation) and Invite with one tap. === */
.chat-paused-mark{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#b9a3d6}
#cosmicApp .chat-paused-mark svg{width:14px;height:14px}
.dp-person.is-paused .face{opacity:.5}
.now-bar.paused-bar{display:flex;align-items:center;gap:10px;color:#d9cbee}
.now-bar.paused-bar[hidden]{display:none}
#cosmicApp .now-bar.paused-bar svg{width:16px;height:16px;flex:none;color:#b9a3d6}
.now-bar.paused-bar .now-text{flex:1}
.now-bar.paused-bar .text-btn{min-height:44px;padding:0 6px;color:#fff;font-weight:600}
/* === Build 60: reply to, edit and delete a message. === */
.bubble-quote{display:flex;flex-direction:column;gap:1px;margin:0 0 6px;padding:5px 9px;border-left:3px solid rgba(225,204,251,.7);border-radius:8px;background:rgba(0,0,0,.2);font-size:13px;line-height:1.3;max-width:100%}
.bubble-quote b{font-size:12px;font-weight:600;color:#e9dcfb}
.bubble-quote span{color:#d9cbee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-edited{display:block;margin-top:3px;font-size:11.5px;color:rgba(255,255,255,.7);text-align:right}
.bubble.deleted{background:none!important;border:1px dashed rgba(221,195,250,.28)!important;box-shadow:none!important}
.bubble-gone{font-style:italic;color:#a79bc0}
.compose-bar{flex:0 0 100%;box-sizing:border-box;display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:6px 6px 6px 12px;border-left:3px solid rgba(225,204,251,.7);border-radius:12px;background:rgba(255,255,255,.06)}
.compose-bar[hidden]{display:none}
.cb-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;font-size:13px}
.cb-copy b{font-size:12px;font-weight:600;color:#e9dcfb}
.cb-copy span{color:#cbbfe2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb-x{flex:none;width:44px;height:44px;border:0;border-radius:22px;background:none;color:#d9cbee;display:grid;place-items:center;cursor:pointer}
#cosmicApp .cb-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

/* === Build 61: languages. Three tap choices in Settings, Appearance. === */
.lang-chips{padding:12px 0 2px}
/* A longer word on the Share button must not cover the Nebula ID beside it: on a narrow
   screen the button keeps its icon (and its name for a screen reader). */
@media (max-width:420px){html[lang="it"] #meShare span,html[lang="es"] #meShare span{display:none}}
/* Four filters stay on one line on a small phone when the words are longer. */
@media (max-width:374px){#chatFilters .flt-chip{padding:0 11px}}
/* === Build 64: the call screen as approved (canvas row 18). Whoever has no photo is their
   own planet; one line under the name; the controls sit on glass. Nothing about the call
   itself changes: same buttons, same ids, same animations. === */
.design-call .call-kind{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.design-call .call-top{min-height:42px;align-items:center}
.design-call:not([data-phase="connected"]) .call-e2e{position:absolute;left:64px;right:64px;top:calc(26px + var(--safe-top));height:42px;margin:0;justify-content:center;z-index:2;font-size:14.5px;font-weight:500;color:#b4b0c6}
.design-call .call-min{width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.07);top:calc(26px + var(--safe-top))}
.call-planet{display:block;width:164px;height:164px;border-radius:50%;background:url(./art/planets/violet.webp) center/108% no-repeat;filter:drop-shadow(0 10px 30px rgba(150,110,240,.35))}
.call-planet[data-world="blue"]{background-image:url(./art/planets/blue.webp);filter:drop-shadow(0 10px 30px rgba(80,130,240,.35))}
.call-planet[data-world="sand"]{background-image:url(./art/planets/sand.webp);filter:drop-shadow(0 10px 30px rgba(230,180,110,.3))}
.call-planet[data-world="teal"]{background-image:url(./art/planets/teal.webp);filter:drop-shadow(0 10px 30px rgba(60,200,210,.32))}
.call-planet[data-world="rose"]{background-image:url(./art/planets/rose.webp);filter:drop-shadow(0 10px 30px rgba(230,110,170,.32))}
.design-call[data-face="planet"] .call-avatar{background:none;box-shadow:none;border:0}
.design-call[data-phase="connected"] .call-planet{width:112px;height:112px}
.design-call .call-name{font-family:inherit;font-size:32px;font-weight:600;letter-spacing:-.02em}
.design-call[data-phase="connected"] .call-name{font-size:26px}
.design-call .call-status{font-family:inherit;font-size:18.5px;color:#b4b0c6}
.design-call[data-phase="ringing"] .call-status{display:block}
.call-hint{margin-top:24px;width:100%;box-sizing:border-box;min-height:64px;padding:10px 10px 10px 16px;border-radius:32px;background:rgba(255,255,255,.06);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.07);display:flex;align-items:center;gap:12px;text-align:left}
.call-hint[hidden]{display:none}
#callScreen .call-hint svg{width:20px;height:20px;flex:none;fill:none;stroke:#b4b0c6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.call-hint span{flex:1;min-width:0;font-size:16px;line-height:1.3;color:#f4f2fa}
.call-hint button{flex:none;min-height:44px;padding:0 16px;border:0;border-radius:22px;background:rgba(132,104,245,.46);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent}
.design-call .call-ctl-row{box-sizing:border-box;width:100%;padding:18px 10px 14px;border-radius:40px;background:rgba(255,255,255,.07);-webkit-backdrop-filter:blur(26px) saturate(1.8);backdrop-filter:blur(26px) saturate(1.8);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.07),0 14px 34px rgba(0,0,0,.3);display:flex;justify-content:space-around;align-items:flex-start;gap:0}
.design-call .call-ctl-row[hidden]{display:none}
.design-call .call-btn-wrap{width:76px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#b4b0c6;text-align:center}
.design-call .call-btn,.design-call .call-btn.end,.design-call .call-btn.accept,.design-call .call-btn.end.big{width:62px;height:62px;border-radius:50%}
.design-call .call-btn{box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.07)}
.design-call .call-btn.end{background:rgba(226,76,84,.92);box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
.design-call .call-btn.accept{background:rgba(47,191,122,.92);box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
.design-call .call-btn.end svg,.design-call .call-btn.accept svg{width:28px;height:28px}
/* Speaker · Video · Mute · End, as drawn. */
.design-call #callActiveControls{display:flex}.design-call #callActiveControls[hidden]{display:none}
.design-call #callAudioWrap{order:1}.design-call #callCameraWrap{order:2}.design-call #callActiveControls>.call-btn-wrap:first-child{order:3}.design-call #callActiveControls>.end-wrap{order:4;margin-top:0}
/* The line about encryption sits on the row of the back button until the call connects. */
.design-call:not(.video-live) .call-info{position:static}
.design-call #callIncomingControls{display:flex;justify-content:space-around;align-items:flex-start;gap:0;padding:18px 10px 14px;margin:0}
.design-call #callIncomingControls[hidden]{display:none}
.design-call #callIncomingControls .call-btn-wrap{position:static;transform:none;margin:0}
.design-call .call-btn.end,.design-call .call-btn.accept{color:#fff}
/* A short screen: the planet and the gaps give way, so the controls stay on screen. */
@media (max-height:700px){
 .design-call:not([data-phase="connected"]) .call-av-wrap{width:176px;height:176px;margin-top:10px}
 .design-call:not([data-phase="connected"]) .call-orbit{width:176px!important;height:176px!important}
 .design-call:not([data-phase="connected"]) .call-planet{width:132px;height:132px}
 .design-call .call-name{font-size:28px;margin-top:14px}
 .call-hint{margin-top:14px;min-height:56px}
 .design-call .call-ctl-row,.design-call #callIncomingControls{padding:12px 8px 10px}
}
@media (max-height:700px){
 .design-call[data-phase="ringing"] .call-av-wrap{width:128px;height:128px;margin-top:4px}
 .design-call[data-phase="ringing"] .call-orbit{width:128px!important;height:128px!important}
 .design-call[data-phase="ringing"] .call-planet{width:96px;height:96px}
 .design-call[data-phase="ringing"] .call-avatar .person-avatar,.design-call[data-phase="ringing"] .call-avatar .avatar{width:96px!important;height:96px!important;font-size:38px!important}
 .design-call .call-controls{gap:12px;padding-top:10px}
}
/* === Build 65: the planet in the bar, two levels (canvas row 20). Six planets drawn as
   the app's own rendered worlds; four open their tools around them and the centre
   becomes Back. Only what is drawn and where it sits: every tool is the button it
   already was elsewhere. === */
.hub-sheet .ps-orbit.hub-orbit{height:calc(330px*var(--k,1))}
.hub-orbit .ps-orbits{height:330px!important}
.hub-orbit .ps-spin{top:38px}
.hub-orbit .ps-center{top:114px}
.hub-level{position:absolute;inset:0;pointer-events:none}.hub-level .ps-planet{pointer-events:auto}
.hub-sheet .hub-level .ps-planet{width:84px;margin-left:0;font-size:13.5px;line-height:1.2;text-align:center;color:var(--d-text)}
.hub-sheet .hub-level .ps-planet.hub-tool{width:112px}
.hub-sheet .hub-level .ps-planet:nth-of-type(5){animation-delay:.5s}.hub-sheet .hub-level .ps-planet:nth-of-type(6){animation-delay:.55s}
#cosmicApp .hub-sheet .ps-orb svg,.hub-sheet .ps-orb svg{filter:none}
.hub-world .ps-orb,.hub-tool .ps-orb{width:60px;height:60px}
.hub-world .ps-orb{border:0;background:none}
.hub-world .ps-orb::before{content:"";position:absolute;inset:-3.6px;background:center/contain no-repeat;filter:brightness(.62) saturate(.92)}
.hub-world .ps-orb::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(8,7,16,.34),rgba(8,7,16,0) 68%)}
.nebula-sheet .hub-world .ps-orb svg{position:relative;z-index:1;width:24px;height:24px;stroke:#fff}
.hub-world[data-world="violet"] .ps-orb::before{background-image:url(./art/planets/violet.webp)}
.hub-world[data-world="blue"] .ps-orb::before{background-image:url(./art/planets/blue.webp)}
.hub-world[data-world="teal"] .ps-orb::before{background-image:url(./art/planets/teal.webp)}
.hub-world[data-world="sand"] .ps-orb::before{background-image:url(./art/planets/sand.webp)}
.hub-world[data-world="rose"] .ps-orb::before{background-image:url(./art/planets/rose.webp)}
.hub-world[data-world="sand-ring"] .ps-orb::before{inset:-39px;background-image:url(./art/planets/sand-ring.webp)}
.nebula-sheet .hub-tool .ps-orb svg{width:24px;height:24px;stroke:#fff}
.hub-tool.sos .ps-orb{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.2),rgba(236,96,112,.3) 62%,rgba(90,20,34,.3));border-color:rgba(255,150,160,.5)}
.hub-tool.sos .ps-orb b{font-size:15px;font-weight:700;letter-spacing:.04em;color:#fff}
.hub-back{position:absolute;z-index:2;left:147px;top:114px;width:96px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;border:0;background:none;color:var(--d-soft);font:inherit;font-size:13px;font-weight:500;cursor:pointer;animation:dEnter .4s ease-out both}
.hub-back .ps-orb{width:72px;height:72px;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.2),rgba(150,132,247,.2) 62%,rgba(60,40,120,.25));border-color:rgba(225,204,251,.4)}
.nebula-sheet .hub-back .ps-orb svg{width:26px;height:26px;stroke:#fff}
.hub-title{display:flex;align-items:center;gap:10px}
.hub-art-s{flex:none;width:30px;height:30px;background:center/112% no-repeat}
.hub-art-s[data-world="violet"]{background-image:url(./art/planets/violet.webp)}
.hub-art-s[data-world="teal"]{background-image:url(./art/planets/teal.webp)}
.hub-art-s[data-world="rose"]{background-image:url(./art/planets/rose.webp)}
.hub-art-s[data-world="sand-ring"]{background-image:url(./art/planets/sand.webp)}
@media (max-height:700px){.hub-sheet .ps-orbit.hub-orbit{height:calc(304px*var(--k,1))}}
@media (prefers-reduced-motion:reduce){.hub-back{animation:none}}
/* === Build 66: Home as approved (canvas row 19). My day says what it holds and opens
   Today, To do and a Calendar; Tap to Pin is a quiet glass capsule until it opens; a
   seventh sky, midnight blue with gold. Only what is drawn: nothing here sends or stores. === */
/* My day: a larger planet, its name, and one line that says how much is in it. */
.dash-day-planet{gap:6px}
.dd-ball{width:84px;height:84px;filter:drop-shadow(0 10px 22px rgba(0,0,0,.5))}
.dash-day-planet[aria-expanded="true"] .dd-ball{filter:drop-shadow(0 10px 22px rgba(0,0,0,.5)) brightness(1.08)}
.dd-name{margin-top:4px;font-size:16.5px;font-weight:600;color:#fff}
.dd-count{font-size:13.5px;font-weight:400;color:#b9b2cc}
/* A short screen: the planet with its name and its line beside it, so Home still fits. */
@media (max-height:700px){
 .dash-day-planet{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:12px;row-gap:1px;align-items:center;justify-items:start;text-align:left}
 .dd-ball{grid-row:1/3;width:46px;height:46px}
 .dd-name{grid-column:2;align-self:end;margin-top:0;font-size:15px}
 .dd-count{grid-column:2;align-self:start;font-size:12.5px}
 .dash-day-planet:has(.dd-count[hidden]) .dd-name{grid-row:1/3;align-self:center}
}
/* The three it opens are the app's own planets, each with its sign and, when it holds
   something, how much. Only the items that name a world are drawn this way. */
.om-item[data-world] .om-moon{position:relative;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.om-item[data-world] .om-moon::before{content:"";position:absolute;inset:-3.4px;background:center/contain no-repeat;filter:brightness(.62) saturate(.92)}
.om-item[data-world] .om-moon::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(8,7,16,.34),rgba(8,7,16,0) 68%)}
.om-item[data-world] .om-moon svg{position:relative;z-index:1}
.om-item[data-world="blue"] .om-moon::before{background-image:url(./art/planets/blue.webp)}
.om-item[data-world="teal"] .om-moon::before{background-image:url(./art/planets/teal.webp)}
.om-item[data-world="sand"] .om-moon::before{background-image:url(./art/planets/sand.webp)}
.om-item[data-world] .om-label{font-size:13px}
.om-sub{margin-top:-3px;font-size:11.5px;font-weight:500;color:#cfc6e6;text-shadow:0 1px 6px rgba(0,0,0,.85)}
/* Tap to Pin, closed: glass, a plain count, no light on it. Opening it lights the bar
   as it always did (the line and the glow are the original ones). */
.pin::before{transition:opacity .3s ease}
[data-screen="dash"]:not(.pin-open) #dashCollections::before{opacity:0}
[data-screen="dash"]:not(.pin-open) #dashCollections .pin-head{background:rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.07),0 12px 28px rgba(0,0,0,.3)}
[data-screen="dash"]:not(.pin-open) #dashCollections .pin-count{height:auto;padding:0;background:none;color:#b9b2cc;font-size:14.5px;font-weight:400;line-height:1.2}
#cosmicApp [data-screen="dash"]:not(.pin-open) .pin-head .pin-ico{filter:none}
@media (prefers-reduced-motion:reduce){.pin::before{transition:none}}
/* Calendar: a month of taps. Monday first; today is filled; a dot under a day that holds
   something; the chosen day lists what your groups planned. */
.cal-card .ds-head{gap:8px}
.cal-card .ds-head>div:first-child{flex:1;min-width:0}
.cal-card .ds-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-card .ds-title::first-letter{text-transform:uppercase}
.cal-nav{flex:none;display:flex;gap:8px}
.cal-week,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 14px}
.cal-week{margin-top:14px}
.cal-week span{text-align:center;font-size:12.5px;font-weight:500;color:#a39bb8;text-transform:capitalize}
.cal-grid{margin-top:4px;row-gap:2px}
.cal-gap{height:44px}
.cal-day{position:relative;height:44px;padding:0;border:0;background:none;color:#f3eefc;font:inherit;font-size:16px;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cal-day b{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:400}
.cal-day.on b{box-shadow:inset 0 0 0 1.5px rgba(225,204,251,.75)}
.cal-day.today b{background:#cabfff;color:#16102e;font-weight:700}
.cal-day i{position:absolute;left:50%;bottom:0;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#cabfff}
.cal-day:focus-visible b{outline:2px solid #fff;outline-offset:2px}
.cal-day-head{display:flex;align-items:baseline;gap:10px;margin-top:12px;padding:0 20px}
.cal-day-head b{flex:1;font-size:15.5px;font-weight:500;color:#cfc6e6}
.cal-day-head b::first-letter{text-transform:uppercase}
.cal-day-head span{font-size:14px;color:#a39bb8}
.cal-list{min-height:84px}
@media (max-height:700px){.cal-gap,.cal-day{height:38px}.cal-day b{width:32px;height:32px}.cal-week{margin-top:8px}.cal-day-head{margin-top:6px}.cal-list{min-height:64px}}
/* Seven skies: four to a row, so the names stay on one or two lines. */
.sky-swatches{grid-template-columns:repeat(4,1fr);gap:14px 4px}
.sky-dot span{line-height:1.2;text-align:center}
.sky-dot[data-sky-pick="midnight"] i{--a:#1d3f8f;--b:#0b1a40;--c:#050b1c;background:radial-gradient(circle at 24% 86%,rgba(214,178,110,.62),rgba(214,178,110,0) 46%),radial-gradient(circle at 50% 12%,var(--a) 0%,var(--b) 55%,var(--c) 100%)}
/* Midnight blue and gold. The sky is tinted like the other six; under it the small marks
   of Home turn gold too. Buttons that send or confirm keep their violet, as in every sky. */
body[data-sky="midnight"]{--veil:3,7,18;--g1:196,150,70;--g2:44,82,168;--g3:30,58,128;--sky-a:#16306e;--sky-b:#0a1638;--sky-c:#050b1c;--sky-base:#040914;--sheet-a:#0f1c3c;--sheet-b:#060c1c;--dsheet-a:rgba(10,18,42,.96);--dsheet-b:rgba(4,8,18,.99);--aur:214,178,110}
body[data-sky="midnight"] .violet-sky,body[data-sky="midnight"].sky-folder .violet-sky{background:
 radial-gradient(95% 30% at 50% 108%,rgba(var(--g1),.22),transparent 72%),
 radial-gradient(110% 38% at 50% -10%,rgba(var(--g2),.34),transparent 72%),
 radial-gradient(55% 30% at -6% 46%,rgba(var(--g3),.22),transparent 70%),
 radial-gradient(55% 30% at 106% 62%,rgba(var(--g3),.16),transparent 70%),
 rgba(var(--veil),.82)}
body[data-sky="midnight"] .dd-ball{background-image:url(./art/planets/sand.webp)}
body[data-sky="midnight"] .dash-link{color:#e6c98c}
body[data-sky="midnight"] [data-screen="dash"]:not(.pin-open) #dashCollections .pin-head{box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(214,178,110,.3),0 12px 28px rgba(0,0,0,.3)}
#cosmicApp body[data-sky="midnight"] .pin-head .pin-ico,body[data-sky="midnight"] #cosmicApp .pin-head .pin-ico{color:#e6c98c}
body[data-sky="midnight"] .cal-day.today b{background:#e6c98c;color:#1b1305}
body[data-sky="midnight"] .cal-day i{background:#e6c98c}
body[data-sky="midnight"] .cal-day.on b{box-shadow:inset 0 0 0 1.5px rgba(230,201,140,.8)}
/* Narrow phones (320 points wide: an iPhone with Display Zoom on). The bar gives each
   word the room it has, so the last one is no longer cut; the Calendar's three buttons
   leave room for the month. */
@media (max-width:340px){
 .tab-bar.design-tabs{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px minmax(0,1fr) minmax(0,1fr)!important}
 .design-tabs .tab-btn{width:52px;font-size:11px!important}
 .tab-universe img{width:84px;height:84px}
 .cal-nav{gap:6px}.cal-nav .ds-close{width:40px;height:40px;border-radius:20px}
}

/* === Build 67: the name. One line under the kicker of the first screen; nothing else moves. */
.welcome-full .welcome-tag{margin:6px 0 0;font-size:15px;color:#b9b2cf;letter-spacing:.01em}
/* A short screen keeps the first screen as it was: the button stays in view without scrolling. */
@media (max-height:700px){.welcome-full .welcome-tag{display:none}}
