:root{
  --fg:#f4f7ff; --muted:rgba(244,247,255,.62); --panel:rgba(10,18,35,.84);
  --bg1:#071326; --bg2:#12345b; --tile-radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{color:var(--fg);background:radial-gradient(circle at 20% 12%,color-mix(in srgb,var(--bg2) 85%,white 6%),transparent 38%),linear-gradient(145deg,var(--bg1),var(--bg2));overflow:hidden;transition:background .35s ease}
button,input{font:inherit}
button{color:inherit}
.app{height:100vh;display:grid;place-items:center;padding:70px}
.grid{width:min(920px,78vw);display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tile{position:relative;aspect-ratio:1.38/1;border:0;border-radius:var(--tile-radius);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 7px 22px rgba(0,0,0,.13);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,opacity .2s ease;background:var(--tile);color:var(--ink,#fff);user-select:none;overflow:hidden}
.tile .mark{font-size:clamp(22px,3vw,42px);font-weight:800;letter-spacing:-.05em}
.tile .name{position:absolute;left:14px;bottom:11px;font-size:12px;font-weight:700;opacity:.82;letter-spacing:.01em}
.tile.selected,.tile:hover{transform:translateY(-6px);box-shadow:0 17px 34px rgba(0,0,0,.24);z-index:2}
.tile.selected .mark{transform:scale(1.035)}
.tile .mark{transition:transform .16s ease}
.shortcut{position:absolute;right:11px;top:9px;font-size:12px;font-weight:800;opacity:0;transform:translateY(-3px);transition:.15s}
.quick .shortcut{opacity:.72;transform:none}
.tile.add{background:rgba(255,255,255,.055);border:1px dashed rgba(255,255,255,.24);box-shadow:none}
.tile.add .mark{font-size:32px;font-weight:400;opacity:.75}
.tile.add .name{opacity:.55}
.delete{display:none;position:absolute;left:8px;top:8px;width:25px;height:25px;border:0;border-radius:50%;background:rgba(0,0,0,.68);font-size:18px;line-height:1;cursor:pointer}
.editing .tile:not(.add){animation:wiggle var(--wiggle,1s) ease-in-out infinite alternate;animation-delay:var(--delay,0s)}
.editing .delete{display:block}
@keyframes wiggle{from{transform:rotate(var(--r1,-.6deg)) translateY(-1px)}to{transform:rotate(var(--r2,.7deg)) translateY(1px)}}
.settings-btn{position:fixed;right:25px;top:20px;background:transparent;border:0;font-size:22px;letter-spacing:3px;opacity:.5;cursor:pointer;z-index:20}
.settings-btn:hover{opacity:1}
.panel{width:min(520px,calc(100vw - 40px));border:1px solid rgba(255,255,255,.13);border-radius:22px;padding:27px;background:var(--panel);color:var(--fg);backdrop-filter:blur(22px);box-shadow:0 30px 80px rgba(0,0,0,.4)}
.panel::backdrop{background:rgba(0,0,0,.36);backdrop-filter:blur(3px)}
.panel h2{margin:0 0 4px;font-size:25px}.panel h3{margin:25px 0 4px;font-size:15px}
.panel-close{position:absolute;right:17px;top:14px;border:0;background:transparent;font-size:25px;opacity:.6;cursor:pointer}
.muted{color:var(--muted);line-height:1.5}.backgrounds{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin:15px 0 24px}
.bg-choice{aspect-ratio:1;border:2px solid transparent;border-radius:11px;background:linear-gradient(145deg,var(--a),var(--b));cursor:pointer}
.bg-choice.active{border-color:rgba(255,255,255,.95);box-shadow:0 0 0 2px rgba(0,0,0,.25)}
.howto{border-top:1px solid rgba(255,255,255,.11);padding:17px 0;cursor:pointer}.howto summary{font-weight:750}
.howto-copy{font-size:13px;color:var(--muted);line-height:1.55}.howto-copy strong{color:var(--fg)}
kbd{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);border-radius:5px;padding:2px 5px;color:var(--fg)}
.rule{border-top:1px solid rgba(255,255,255,.11);padding:17px 0}.rule p{margin:6px 0;color:var(--muted);line-height:1.45}.rule small{opacity:.55}
.text-button{border:0;background:transparent;padding:8px 0;cursor:pointer;opacity:.7}.danger:hover{opacity:1}
.about{font:11px ui-monospace,SFMono-Regular,Menlo,monospace;opacity:.4;margin-top:18px}
.small-panel{max-width:430px}.panel label{display:grid;gap:8px;color:var(--muted);font-size:13px}.panel input{width:100%;padding:13px 14px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:rgba(255,255,255,.08);color:var(--fg);outline:none;margin-bottom:14px}
.primary{border:0;border-radius:11px;padding:11px 15px;background:#fff;color:#111;font-weight:750;cursor:pointer}.dialog-actions{display:flex;gap:15px;align-items:center;margin-top:20px}
.search-layer{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(4,8,18,.36);backdrop-filter:blur(14px);opacity:0;pointer-events:none;transition:.22s;z-index:15}
.search-layer.active{opacity:1;pointer-events:auto}.carousel{height:160px;width:min(850px,90vw);display:flex;justify-content:center;align-items:center;gap:17px;perspective:900px}
.search-card{width:160px;height:112px;border-radius:18px;display:grid;place-items:center;background:var(--tile);color:var(--ink,#fff);font-size:27px;font-weight:850;transition:.25s;opacity:.34;transform:scale(.72) rotateY(25deg)}
.search-card.current{opacity:1;transform:scale(1.13);box-shadow:0 20px 50px rgba(0,0,0,.35)}
.search-card.after{transform:scale(.72) rotateY(-25deg)}
.search-box{width:min(590px,82vw);text-align:center}.search-box input{width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.32);background:transparent;color:white;font-size:31px;text-align:center;padding:12px;outline:none}.search-hint{margin-top:13px;font-size:11px;opacity:.45}
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,15px);background:rgba(5,10,20,.86);padding:10px 15px;border-radius:11px;opacity:0;pointer-events:none;transition:.2s;z-index:40}.toast.show{opacity:1;transform:translate(-50%,0)}.toast button{border:0;background:transparent;text-decoration:underline;cursor:pointer}
.quick-hint{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);font-size:12px;opacity:0;transition:.15s}.quick .quick-hint{opacity:.48}
.welcome{position:fixed;left:50%;top:26px;transform:translateX(-50%);z-index:50;background:rgba(7,14,28,.9);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:13px 15px;box-shadow:0 14px 40px rgba(0,0,0,.28);display:flex;align-items:center;gap:10px;font-size:12px}.welcome span{opacity:.62}.welcome button{border:0;background:transparent;text-decoration:underline;cursor:pointer}
.mobile-gate{display:none}
.retro{font-family:"Times New Roman",serif!important;background:#000080!important}.retro .tile{border-radius:0;border:3px outset #ddd;box-shadow:none}.retro .settings-btn{font-family:monospace}.retro:before{content:"🚧 WELCOME TO hubspree!!! 🚧   BEST VIEWED AT 800×600   YOU ARE VISITOR #000016";position:fixed;top:0;left:0;right:0;padding:5px;background:#ffff00;color:#000;text-align:center;font:bold 14px "Times New Roman";z-index:100}
@media(max-width:700px){.app,.settings-btn,.search-layer,.welcome{display:none!important}.mobile-gate{display:grid;place-items:center;min-height:100vh;padding:30px;background:linear-gradient(145deg,#061126,#173b68)}.retro-card{background:#c0c0c0;color:#000;border:3px outset #eee;padding:22px;max-width:370px;font-family:Tahoma,sans-serif}.retro-title{font-weight:bold;background:#000080;color:white;padding:5px;margin:-17px -17px 18px}.retro-card code{display:block;margin-top:20px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.home-btn{position:fixed;left:25px;top:18px;width:34px;height:34px;border:0;background:transparent;color:var(--fg);font-size:25px;font-weight:900;opacity:.52;cursor:pointer;z-index:20}.home-btn:hover{opacity:1}
.grid:has(.tile.selected) .tile:not(.selected){filter:brightness(.86) saturate(.92)}.tile.selected{transform:translateY(-8px) scale(1.025);box-shadow:0 24px 48px rgba(0,0,0,.36),0 12px 32px color-mix(in srgb,var(--tile) 34%,transparent)}.tile:hover:not(.selected){transform:translateY(-4px) scale(1.01);filter:brightness(.97)}.tile.selected .mark{transform:scale(1.06)}
body.search-open .app{filter:blur(7px) brightness(.4);transform:scale(.985);opacity:.42}.app{transition:.24s}.search-layer{background:rgba(3,7,16,.78);backdrop-filter:blur(22px) saturate(.72)}
.carousel{height:176px;gap:24px}.search-card{width:142px;height:100px;opacity:.22;filter:saturate(.7);transform:scale(.7) rotateY(18deg)}.search-card.current{width:190px;height:132px;opacity:1;filter:none;transform:scale(1.06);box-shadow:0 25px 60px rgba(0,0,0,.48)}.search-card.after{transform:scale(.7) rotateY(-18deg)}
.search-box{width:min(620px,82vw);margin-top:20px;padding:15px 18px 13px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(8,13,24,.94);box-shadow:0 18px 48px rgba(0,0,0,.28)}.search-box input{border:0;background:rgba(255,255,255,.08);border-radius:12px;font-size:28px;text-align:left;padding:15px 17px;color:#fff}.search-box input::placeholder{color:rgba(255,255,255,.42)}
.settings-panel{max-width:480px;padding:28px}.settings-panel h2{margin-bottom:24px}.setting-section{padding-bottom:24px}.setting-section+.setting-section{border-top:1px solid rgba(127,127,127,.18);padding-top:22px}.setting-section h3{margin:0 0 13px}.backgrounds{grid-template-columns:repeat(4,1fr);gap:11px;margin:0}
.segmented{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:12px;background:rgba(127,127,127,.12)}.segmented button{border:0;border-radius:9px;padding:10px;background:transparent;color:var(--fg);opacity:.6;cursor:pointer}.segmented button.active{background:rgba(127,127,127,.2);opacity:1}.settings-footer{border-top:1px solid rgba(127,127,127,.18);padding-top:18px;display:flex;justify-content:space-between;align-items:flex-end}.settings-footer p{margin:0;font-size:12px;line-height:1.45}.settings-footer span{opacity:.48}
.about-panel{max-width:450px}.about-brand{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;background:rgba(127,127,127,.13);font-size:31px;font-weight:900}.tagline{font-size:17px;font-weight:700}.about-intro{color:var(--muted);line-height:1.5;margin:20px 0}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;padding:18px 0;border-block:1px solid rgba(127,127,127,.18);font-size:13px}.help-grid span{color:var(--muted)}@media(max-width:700px){.home-btn{display:none!important}}
/* v0.8 */
.grid:has(.tile.selected) .tile:not(.selected){filter:brightness(.94) saturate(.97)}
.tile.selected{transform:translateY(-5px) scale(1.02);box-shadow:inset 0 0 0 1px rgba(255,255,255,.20),0 20px 40px rgba(0,0,0,.30),0 12px 28px color-mix(in srgb,var(--tile) 26%,transparent);z-index:3}
.tile:hover:not(.selected){transform:translateY(-3px) scale(1.008);box-shadow:0 13px 26px rgba(0,0,0,.20)}
.editing .tile,.editing .tile.selected,.editing .tile:hover{transform:none}.editing .tile:not(.add){animation:wiggle var(--wiggle,1s) ease-in-out infinite alternate}
.launch-only{position:absolute;right:12px;bottom:10px;font-size:13px;font-weight:800;opacity:.62}.quick .launch-only{opacity:.3}
.search-layer{background:rgba(3,7,16,.74);backdrop-filter:blur(18px) saturate(.76)}
.carousel{width:min(880px,90vw);height:178px;display:grid;grid-template-columns:110px 135px 190px 135px 110px;gap:18px;align-items:center;justify-content:center}
.search-card{position:relative;width:100%;height:88px;border:0;border-radius:17px;display:grid;place-items:center;background:var(--tile);color:var(--ink,#fff);opacity:.28;filter:saturate(.72);cursor:pointer;transition:.22s}
.search-card span{font-size:25px;font-weight:850}.search-card small{position:absolute;left:10px;right:10px;bottom:8px;font-size:10px;font-weight:750;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-card.slot-0{transform:scale(.74) rotateY(20deg)}.search-card.slot-1{transform:scale(.86) rotateY(12deg);opacity:.48}.search-card.slot-2{height:132px;transform:scale(1);opacity:1;filter:none;box-shadow:0 25px 60px rgba(0,0,0,.45)}.search-card.slot-2 span{font-size:35px}.search-card.slot-3{transform:scale(.86) rotateY(-12deg);opacity:.48}.search-card.slot-4{transform:scale(.74) rotateY(-20deg)}
.search-box{--accent:#fff;width:min(620px,82vw);margin-top:22px;padding:13px;border:1px solid color-mix(in srgb,var(--accent) 38%,rgba(255,255,255,.16));border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 10%,#0a1020),#080d18 58%);box-shadow:0 18px 48px rgba(0,0,0,.30),0 9px 30px color-mix(in srgb,var(--accent) 14%,transparent);transition:.22s}
.search-box:after{content:"";display:block;height:3px;margin:10px 7px 0;border-radius:99px;background:var(--accent);opacity:.8}.search-box input{width:100%;border:0;background:rgba(255,255,255,.075);border-radius:12px;font-size:28px;text-align:left;padding:15px 17px;color:#fff;outline:none}
.corner-popover{position:fixed;z-index:35;width:340px;padding:22px;border:1px solid rgba(23,32,51,.10);border-radius:18px;background:rgba(248,250,255,.97);color:#172033;box-shadow:0 22px 65px rgba(0,0,0,.28);backdrop-filter:blur(22px);animation:popin .14s ease-out}.corner-popover[hidden]{display:none}@keyframes popin{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
.about-popover{left:24px;top:60px}.settings-popover{right:24px;top:60px;width:370px}.about-popover:before,.settings-popover:before{content:"";position:absolute;top:-7px;width:13px;height:13px;background:inherit;border-left:1px solid rgba(23,32,51,.10);border-top:1px solid rgba(23,32,51,.10);transform:rotate(45deg)}.about-popover:before{left:12px}.settings-popover:before{right:15px}
.corner-popover h2{margin:0;font-size:22px}.corner-popover h3{margin:0 0 11px;font-size:13px}.about-popover .about-brand{background:#e7edf7;color:#172033}.about-popover .tagline{margin:3px 0 16px}.about-popover .about-intro{color:rgba(23,32,51,.65);margin:0 0 18px}.about-popover .help-grid{border-color:rgba(23,32,51,.12)}.about-popover .help-grid span{color:rgba(23,32,51,.58)}.about-popover .about{color:#172033;opacity:.42}
.settings-popover .setting-section{padding:18px 0}.settings-popover .setting-section+.setting-section{border-top:1px solid rgba(23,32,51,.12)}.settings-popover .backgrounds{grid-template-columns:repeat(4,1fr);gap:9px;margin:0}.settings-popover .bg-choice.active{border-color:#172033;box-shadow:0 0 0 2px #fff}.settings-popover .segmented{background:rgba(23,32,51,.08)}.settings-popover .segmented button,.settings-popover .text-button{color:#172033}.settings-popover .segmented button.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.10)}.settings-popover kbd{color:#172033;background:rgba(23,32,51,.06);border-color:rgba(23,32,51,.10)}.settings-popover .settings-footer{border-color:rgba(23,32,51,.12)}
@media(max-width:700px){.corner-popover,.home-btn{display:none!important}}

/* ---------------- hubspree v0.9 ---------------- */
.app{padding-bottom:105px}
.grid{position:relative}
.name em{font-style:normal;font-size:.92em;margin-left:3px;opacity:.7}

/* Identity becomes the only permanent non-tile UI. */
.home-btn,.settings-btn,.about-popover,.settings-popover{display:none!important}
.brand-btn{
 position:fixed;left:50%;bottom:34px;transform:translateX(-50%);z-index:24;
 border:0;background:transparent;color:var(--fg);padding:8px 14px;
 font-size:16px;font-weight:750;letter-spacing:-.025em;opacity:.30;cursor:pointer;
 transition:opacity .16s ease,transform .16s ease
}
.brand-btn i{display:inline-block;margin-left:5px;font-style:normal;font-size:10px;opacity:0;transform:translateY(4px);transition:.16s}
.brand-btn:hover,.brand-btn[aria-expanded="true"]{opacity:.72;transform:translateX(-50%) translateY(-1px)}
.brand-btn:hover i,.brand-btn[aria-expanded="true"] i{opacity:.55;transform:none}
.brand-popover{
 position:fixed;left:50%;bottom:72px;transform:translateX(-50%);z-index:35;
 width:282px;padding:18px;border:1px solid rgba(255,255,255,.15);border-radius:16px;
 background:color-mix(in srgb,var(--bg1) 72%,rgba(255,255,255,.24));
 color:var(--fg);box-shadow:0 18px 48px rgba(0,0,0,.25);backdrop-filter:blur(20px) saturate(1.1);
 animation:brandpop .14s ease-out
}
.brand-popover[hidden],.popover-view[hidden]{display:none}
.brand-popover:after{content:"";position:absolute;left:50%;bottom:-6px;width:11px;height:11px;background:inherit;border-right:1px solid rgba(255,255,255,.13);border-bottom:1px solid rgba(255,255,255,.13);transform:translateX(-50%) rotate(45deg)}
@keyframes brandpop{from{opacity:0;transform:translateX(-50%) translateY(5px) scale(.985)}to{opacity:1;transform:translateX(-50%)}}
.brand-popover h2{margin:0;font-size:19px}.brand-popover .tagline{margin:2px 0 15px;font-size:13px;font-weight:650;opacity:.72}
.mini-help{display:grid;grid-template-columns:1fr 1.2fr;gap:7px 12px;padding:13px 0;border-block:1px solid rgba(255,255,255,.11);font-size:11px}.mini-help span{opacity:.48}.mini-help b{font-weight:650;opacity:.8}
.brand-popover .about{margin:12px 0 0;font-size:9px;opacity:.32}
.popover-link,.back-link{border:0;background:transparent;color:var(--fg);cursor:pointer}.popover-link{width:100%;display:flex;justify-content:space-between;margin-top:12px;padding:8px 0 0;font-size:11px;opacity:.6}.popover-link:hover{opacity:1}
.back-link{padding:0;margin:0 0 9px;font-size:10px;opacity:.48}.back-link:hover{opacity:.9}
#settingsView{width:100%}#settingsView h2{margin-bottom:12px}.brand-popover .setting-section{padding:11px 0}.brand-popover .setting-section+.setting-section{border-top:1px solid rgba(255,255,255,.10)}
.brand-popover .setting-section h3{margin:0 0 8px;font-size:11px;opacity:.65}.brand-popover .backgrounds{grid-template-columns:repeat(4,1fr);gap:7px;margin:0}.brand-popover .bg-choice{border-radius:8px}
.brand-popover .segmented{background:rgba(127,127,127,.13)}.brand-popover .segmented button{color:var(--fg);font-size:10px;padding:7px}.brand-popover .segmented button.active{background:rgba(255,255,255,.15)}
.brand-popover kbd{color:inherit}.brand-popover .settings-footer{padding-top:11px;border-color:rgba(255,255,255,.10);align-items:center}.brand-popover .settings-footer p{font-size:9px}.brand-popover .text-button{color:var(--fg);font-size:10px}

/* Search returns to v0.2's visual simplicity, with v0.8's fixed-center mechanics. */
body.search-open .app{filter:blur(5px) brightness(.78);transform:scale(.99);opacity:.68}
.search-layer{background:rgba(7,20,46,.20);backdrop-filter:blur(10px) saturate(.92)}
.carousel{height:174px;grid-template-columns:105px 155px 270px 155px 105px;gap:22px}
.search-card{height:82px;border-radius:13px;opacity:.22;box-shadow:0 7px 18px rgba(0,0,0,.12)}
.search-card.slot-0{transform:scale(.68);opacity:.18}.search-card.slot-1{height:112px;transform:scale(.92);opacity:.60}.search-card.slot-2{height:162px;transform:none;opacity:1;box-shadow:0 17px 38px rgba(0,0,0,.22)}.search-card.slot-3{height:112px;transform:scale(.92);opacity:.60}.search-card.slot-4{transform:scale(.68);opacity:.18}
.search-card span{font-size:25px}.search-card.slot-2 span{font-size:40px}
.search-card small{bottom:-24px;color:#f7f9ff;text-shadow:0 1px 8px rgba(0,0,0,.45);font-size:11px;opacity:.48;overflow:visible}
.search-card.slot-1 small,.search-card.slot-3 small{font-size:14px;opacity:.65}
.search-card.slot-2 small{bottom:-29px;font-size:20px;font-weight:750;opacity:.92}
.search-box{width:min(560px,80vw);margin-top:38px;padding:0;border:0;background:transparent;box-shadow:none}
.search-box:after{display:none}.search-input-wrap{position:relative}
.search-box input{width:100%;height:58px;border:1px solid rgba(20,35,60,.08);border-radius:15px;background:rgba(250,251,253,.94);color:#1d2736;font-size:19px;text-align:left;padding:0 58px 0 20px;box-shadow:0 8px 25px rgba(0,0,0,.12)}
.search-box input::placeholder{color:rgba(29,39,54,.34)}
.search-enter{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:10px;background:transparent;color:#1d2736;font-size:21px;opacity:.28;cursor:pointer;transition:.15s}.search-enter:hover{background:rgba(29,39,54,.06);opacity:.72}
.search-hint{margin-top:12px;font-size:10px;color:#08162c;opacity:.20;text-shadow:0 1px 5px rgba(255,255,255,.25)}
@media(max-width:700px){.brand-btn,.brand-popover{display:none!important}}

/* ---------------- hubspree v0.10 ---------------- */

/* Two intentional appearances, not a background picker. */
:root,[data-appearance="dark"]{
 --fg:#f4f7ff;--muted:rgba(244,247,255,.62);--panel:rgba(10,18,35,.84);
 --bg1:#061126;--bg2:#174b80;
}
[data-appearance="light"]{
 --fg:#172033;--muted:rgba(23,32,51,.60);--panel:rgba(235,241,247,.88);
 --bg1:#d5e0ea;--bg2:#edf2f6;
}
[data-appearance="light"] body{
 background:radial-gradient(circle at 20% 12%,#f4f7fa,transparent 38%),linear-gradient(145deg,#d3dee8,#edf2f6);
}
.descriptor{margin:-9px 0 15px;font-size:11px;font-weight:600;opacity:.48}

/* Selected means selected even after the motion stops. Hover remains subordinate. */
.grid:has(.tile.selected) .tile:not(.selected){filter:brightness(.89) saturate(.94)}
.tile.selected{
 transform:translateY(-7px) scale(1.035);
 box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.32),
            0 23px 45px rgba(0,0,0,.34),
            0 10px 31px color-mix(in srgb,var(--tile) 40%,transparent);
 z-index:4
}
.tile.selected:after{
 content:"";position:absolute;inset:-1px;border-radius:inherit;
 box-shadow:0 0 18px color-mix(in srgb,var(--tile) 34%,rgba(255,255,255,.18));
 pointer-events:none
}
.tile:hover:not(.selected){transform:translateY(-3px) scale(1.008);filter:brightness(.96) saturate(.98);box-shadow:0 12px 25px rgba(0,0,0,.19)}

/* Launch-only is deliberately easy to scan. Shortcut mode temporarily owns the same corner. */
.launch-only{position:absolute;right:12px;top:9px;bottom:auto;font-size:15px;font-weight:800;opacity:.62;z-index:2;transition:.15s}
.tile:hover .launch-only,.tile.selected .launch-only{opacity:.92}
.quick .launch-only{opacity:0}
.name em{display:none}

/* Compact settings. */
#settingsView .setting-section{padding:10px 0}
#settingsView .setting-section+.setting-section{padding-top:10px}
#settingsView .settings-footer{margin-top:3px}
#appearanceChoices button,#quickKeyChoices button{padding:7px 8px}

/* Search is hubspree's showpiece: solid cards, scale/depth hierarchy, no fade. */
body.search-open .app{
 filter:blur(2.5px) brightness(.56) saturate(.82);
 transform:scale(.992);opacity:.48
}
[data-appearance="light"] body.search-open .app{filter:blur(2.5px) brightness(.86) saturate(.75);opacity:.34}
.search-layer{
 background:linear-gradient(180deg,rgba(5,18,40,.18),rgba(5,18,40,.28));
 backdrop-filter:blur(3px) saturate(.96)
}
[data-appearance="light"] .search-layer{background:rgba(194,207,220,.34)}
.carousel{
 width:min(1040px,94vw);height:238px;
 grid-template-columns:120px 162px 220px 162px 120px;
 gap:24px;align-items:center;justify-content:center
}
.search-card{
 width:100%;height:86px;border-radius:16px;
 opacity:1!important;filter:brightness(.78) saturate(.82);
 transform:none!important;
 box-shadow:0 10px 25px rgba(0,0,0,.17);
 transition:width .28s cubic-bezier(.2,.75,.2,1),height .28s cubic-bezier(.2,.75,.2,1),
            filter .28s ease,box-shadow .28s ease,transform .28s cubic-bezier(.2,.75,.2,1);
 overflow:visible
}
.search-card.slot-0,.search-card.slot-4{height:86px;filter:brightness(.72) saturate(.78)}
.search-card.slot-1,.search-card.slot-3{height:116px;filter:brightness(.88) saturate(.92)}
.search-card.slot-2{
 height:158px;filter:none;
 box-shadow:0 24px 55px rgba(0,0,0,.32),0 12px 34px color-mix(in srgb,var(--tile) 22%,transparent)
}
.search-card span{font-size:28px}
.search-card.slot-1 span,.search-card.slot-3 span{font-size:34px}
.search-card.slot-2 span{font-size:47px}
.search-card small{
 left:0;right:0;bottom:-23px;color:#f7f9ff;text-shadow:0 1px 7px rgba(0,0,0,.48);
 font-size:11px;font-weight:700;opacity:.88;overflow:visible
}
.search-card.slot-1 small,.search-card.slot-3 small{font-size:13px;opacity:.94}
.search-card.slot-2 small{bottom:-28px;font-size:18px;font-weight:800;opacity:1}
[data-appearance="light"] .search-card small{color:#172033;text-shadow:0 1px 6px rgba(255,255,255,.65)}

.search-box{width:min(590px,82vw);margin-top:25px}
.search-box input{height:55px;font-size:19px}
.search-hint{margin-top:10px;opacity:.18}
[data-appearance="light"] .search-hint{color:#172033;opacity:.24}

/* Popover adapts instead of becoming a white card in light mode. */
[data-appearance="light"] .brand-popover{
 background:rgba(224,233,241,.82);border-color:rgba(23,32,51,.10);
 box-shadow:0 18px 45px rgba(35,55,75,.17)
}
[data-appearance="light"] .brand-popover:after{border-color:rgba(23,32,51,.10)}
[data-appearance="light"] .brand-popover .mini-help,
[data-appearance="light"] .brand-popover .setting-section+.setting-section,
[data-appearance="light"] .brand-popover .settings-footer{border-color:rgba(23,32,51,.10)}

/* ---------------- hubspree v0.11 ---------------- */
.popover-view{position:relative}
.settings-gear{position:absolute;right:-4px;top:-5px;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--fg);opacity:.55;cursor:pointer;transition:.15s}
.settings-gear svg{width:18px;height:18px}
.settings-gear:hover,.settings-gear:focus-visible{opacity:1;background:rgba(127,127,127,.12)}
.tile .mark,.search-card .card-art{display:grid;place-items:center;width:64%;height:58%;position:relative}
.mark img,.card-art img{position:absolute;width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1);opacity:0}
.logo-loaded img{opacity:1}
.logo-loaded .logo-fallback{visibility:hidden}
.tile[data-name="Google"] img,.search-card[data-name="Google"] img{filter:invert(46%) sepia(92%) saturate(2510%) hue-rotate(201deg) brightness(102%) contrast(91%)}
.tile[data-name="Wikipedia"] img,.search-card[data-name="Wikipedia"] img,
.tile[data-name="Spotify"] img,.search-card[data-name="Spotify"] img,
.tile[data-name="IMDb"] img,.search-card[data-name="IMDb"] img{filter:brightness(0)}
.tile[data-name="Netflix"] img,.search-card[data-name="Netflix"] img{filter:invert(16%) sepia(100%) saturate(6000%) hue-rotate(350deg) brightness(85%)}
.tile[data-name="Amazon"] .mark,.search-card[data-name="Amazon"] .card-art,
.tile[data-name="IMDb"] .mark,.search-card[data-name="IMDb"] .card-art{width:72%;height:54%}
/* Animate a typed color, not a discrete gradient image. Blue remains underneath. */
@property --search-brand{syntax:"<color>";inherits:true;initial-value:#3b82f6}
.search-layer{--wash:.14;background:linear-gradient(180deg,rgba(5,18,40,.15),rgba(5,18,40,.27));transition:opacity .22s ease,--search-brand .36s ease;isolation:isolate}
.search-layer:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,var(--search-brand),transparent 65%);opacity:var(--wash)}
[data-appearance="light"] .search-layer{--wash:.08;background:rgba(194,207,220,.30)}
.search-box input{background:#fafbfd}
/* Fixed, opaque cards retain identity as they move between five visible slots. */
.carousel{display:block;position:relative;width:min(1000px,94vw);height:238px;perspective:none}
.carousel .search-card{position:absolute;left:50%;top:50%;width:clamp(160px,22vw,220px);height:158px;transform:translate(-50%,-50%)!important;transition:left .30s cubic-bezier(.2,.75,.2,1),transform .30s cubic-bezier(.2,.75,.2,1),filter .30s,box-shadow .30s;opacity:1!important}
.carousel .slot-0{left:12%;transform:translate(-50%,-50%) scale(.545)!important;z-index:1}
.carousel .slot-1{left:28.5%;transform:translate(-50%,-50%) scale(.736)!important;z-index:2}
.carousel .slot-2{left:50%;z-index:3}
.carousel .slot-3{left:71.5%;transform:translate(-50%,-50%) scale(.736)!important;z-index:2}
.carousel .slot-4{left:88%;transform:translate(-50%,-50%) scale(.545)!important;z-index:1}
.carousel .offstage{visibility:hidden;pointer-events:none;left:calc(50% + var(--position)*14%);transform:translate(-50%,-50%) scale(.45)!important}
.carousel .search-card small{font-size:18px;bottom:-28px;opacity:1}
.carousel .search-card .logo-fallback{font-size:47px}
.toast.show{pointer-events:auto}
@media(max-width:700px){.brand-btn,.brand-popover,.quick-hint,.toast{display:none!important}}
@media(prefers-reduced-motion:reduce){.search-layer,.carousel .search-card{transition:none!important}}

/* v0.12: wider tiles with the original desktop height. */
.grid{width:min(1052px,calc(100vw - 96px));gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}
.tile{aspect-ratio:auto;height:clamp(88px,calc((100vh - 220px)/4),156px)}
.tile.empty{background:rgba(127,127,127,.035);box-shadow:none;pointer-events:none}
.brand-btn{bottom:39px}.home-tagline{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--fg);opacity:.32;white-space:nowrap}
.brand-popover{width:380px;height:410px;bottom:86px;padding:20px;background:color-mix(in srgb,var(--bg1) 94%,white 6%)}
.popover-nav{display:flex;gap:5px;border-bottom:1px solid #8883;padding-bottom:12px;margin-bottom:18px;align-items:center}
.popover-nav button{border:0;background:transparent;cursor:pointer;font-size:11px;padding:6px 8px;opacity:.55;border-radius:6px}.popover-nav button[aria-current="true"]{opacity:1;background:#8882}.popover-nav button:last-child{margin-left:auto}
.popover-view{height:318px;overflow:auto;font-size:12px;line-height:1.55}.popover-view p{color:var(--muted)}.popover-view h2{font-size:18px;line-height:1.3}.popover-view .tagline{margin:8px 0 24px}.fine-print{font-size:10px}
.data-actions{display:flex;gap:10px}.data-actions button,.done-editing{border:1px solid #8884;background:#8882;border-radius:9px;padding:9px 12px;cursor:pointer;font-size:11px}
.done-editing{position:fixed;right:30px;top:24px;z-index:10}.done-editing[hidden]{display:none}
.search-layer:before{display:none}.brand-atmosphere{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none;opacity:.28}.brand-atmosphere i{position:absolute;width:100vw;height:100vh;background:var(--search-brand);filter:blur(120px);border-radius:43%;left:-35%;top:-65%}.brand-atmosphere i:nth-child(2){left:38%;top:-5%;width:85vw;height:110vh}.brand-atmosphere i:nth-child(3){left:-20%;top:65%;width:110vw;height:70vh}[data-appearance="light"] .brand-atmosphere{opacity:.18}.search-layer{transition:opacity .22s ease,--search-brand .6s ease}.search-hint{color:var(--fg);opacity:.5}.quick-hint{bottom:8px}.delete{line-height:25px}.tile:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #8ab4ff;outline-offset:4px}
@media(max-width:700px){.home-tagline,.done-editing{display:none!important}}
@media(max-height:600px) and (min-width:701px){.app{padding-top:20px;padding-bottom:90px}.tile{height:calc((100vh - 160px)/4)}.brand-popover{bottom:68px;height:410px}.brand-btn{bottom:25px}.home-tagline{bottom:14px}}
[data-appearance="light"] .tile.add{color:#172033;border-color:rgba(23,32,51,.25);background:rgba(23,32,51,.035)}
/* v0.13 — calm chrome, readable stories, and room to read a notification. */
.app{padding:44px 48px;height:100dvh;display:grid;place-items:center}
.home-stack{display:flex;flex-direction:column;align-items:center;gap:24px}
.home-prompt{height:24px;display:grid;place-items:center;font-size:12px;color:var(--fg);opacity:.52;letter-spacing:.035em}
.space-prompt{display:none;align-items:center;gap:10px;font-size:11px;letter-spacing:0}
.quick .typing-prompt{display:none}.quick .space-prompt{display:flex}.quick .home-prompt{opacity:.8}
.space-prompt kbd{display:inline-block;animation:key-press .24s ease-out}
@keyframes key-press{0%{transform:translateY(0);box-shadow:0 3px 0 #0003}50%{transform:translateY(3px);box-shadow:none}100%{transform:translateY(0);box-shadow:0 3px 0 #0003}}
.search-open .home-prompt,.edit-open .home-prompt{visibility:hidden}
.grid{width:min(1052px,calc(100vw - 96px))}.tile{height:clamp(70px,calc((100dvh - 252px)/4),156px)}
.brand-btn,.brand-btn:hover,.brand-btn[aria-expanded="true"]{position:relative;inset:auto;left:auto;bottom:auto;transform:none;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 14px;opacity:.45;line-height:1.2;z-index:24}
.brand-btn:hover,.brand-btn[aria-expanded="true"]{opacity:.8}
.brand-btn .wordmark{font-size:18px;font-weight:750;letter-spacing:-.04em}
.brand-btn .home-tagline{position:static;inset:auto;transform:none;font-size:10px;font-weight:400;letter-spacing:.01em;opacity:.85;line-height:1.3}
.tile.selected{box-shadow:inset 0 0 0 2px rgba(255,255,255,.55),0 23px 45px #0005,0 10px 31px color-mix(in srgb,var(--tile) 40%,transparent)}
.tile.add .mark{transition:transform .22s ease}.tile.add:hover .mark{transform:rotate(12deg)}
.site-settings{position:fixed;right:20px;top:16px;z-index:25;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:var(--fg);opacity:.55;cursor:pointer;transition:opacity .16s,background .16s}
.site-settings svg{width:21px;height:21px}.site-settings:hover,.site-settings:focus-visible,.site-settings[aria-expanded="true"]{opacity:1;background:#8882}
.search-open .site-settings{visibility:hidden}
.edit-toolbar{position:fixed;top:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:18px;z-index:12;font-size:12px;color:var(--muted);background:var(--panel);padding:6px 7px 6px 16px;border:1px solid #8883;border-radius:12px}
.edit-toolbar[hidden]{display:none}.edit-toolbar button{border:0;border-radius:8px;background:#8883;padding:8px 15px;cursor:pointer;font-weight:650;color:var(--fg)}
.brand-popover{width:420px;height:520px;bottom:76px;padding:20px 24px;background:color-mix(in srgb,var(--bg1) 96%,white 4%);border-radius:20px}
[data-appearance="light"] .brand-popover{background:#eaf0f6;border-color:#17203320}
.popover-nav{height:37px;gap:8px;margin:0 0 18px;padding:0 0 12px;justify-content:space-between}
.popover-nav button{font-size:12px;padding:7px 12px;opacity:.66}.popover-nav button:last-child{margin-left:0}
.popover-view{height:423px;overflow:auto;scrollbar-width:thin;font-size:13px;line-height:1.45;display:flex;flex-direction:column}
.popover-view[hidden]{display:none}.popover-view h2{font-size:26px;font-weight:730;letter-spacing:-.045em;line-height:1.09;margin:5px 0 11px}.popover-view h3{font-size:13px;font-weight:700;margin:0 0 4px;letter-spacing:-.012em}
.popover-view p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.eyebrow{font-size:10px;letter-spacing:.055em;color:var(--muted)}
.info-section{border-top:1px solid #8883;padding-top:14px;margin-top:15px}
.popover-view .aside-joke{margin-top:7px;font-size:11px;font-style:italic;opacity:.85}
.egg-note .eyebrow{display:block;margin-bottom:6px}.egg-note h3{font-size:13px}
.info-footer{margin-top:auto;padding-top:12px;font-size:11px;color:var(--muted)}.info-footer small{display:block;font-size:10px;opacity:.75;margin-top:3px}
.action-rows{margin-top:7px}.action-rows>div{display:grid;grid-template-columns:139px 1fr;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #8883;font-size:12px}.action-rows strong{font-size:13px}.action-rows span{color:var(--muted)}.action-rows small{display:block;font-size:10px;line-height:1.35;margin-top:3px}
kbd{font-family:inherit;font-size:10px;font-weight:650;letter-spacing:.03em;padding:5px 8px;border-radius:5px;box-shadow:0 2px 0 #0002;background:#8882;border:1px solid #8884}
.popover-view .launch-legend{font-size:10px;margin-top:7px}.launch-legend b{font-size:15px;margin-right:5px;color:var(--fg)}
#howView .info-section{margin-top:12px;padding-top:11px}#howView h2{font-size:24px}.why-sixteen{border-top:1px solid #8883;padding-top:11px;margin-top:auto}.why-sixteen p{font-size:11px}.why-sixteen strong{display:block;font-size:11px;margin-top:5px}
.data-rows{margin-top:5px}.data-rows section{display:flex;gap:13px;padding:12px 0;border-bottom:1px solid #8883}.row-number{font-size:10px;opacity:.5;padding-top:3px}.data-rows h3{margin:0 0 3px}.data-rows p{font-size:12px}.data-actions{gap:9px;margin-top:13px}.data-actions button{flex:1;font-size:12px;padding:10px 12px;background:#8882;border-color:#8884}.data-actions button:hover{background:#8883}
.data-fine-print{margin-top:auto;padding-top:10px}.data-fine-print p{font-size:10px;line-height:1.45}.data-fine-print p+p{margin-top:5px;opacity:.8}
.utility-panel{position:fixed;right:24px;top:68px;z-index:35;width:320px;padding:22px;border:1px solid #8883;border-radius:18px;background:color-mix(in srgb,var(--bg1) 96%,white 4%);color:var(--fg);box-shadow:0 18px 45px #0003}
.utility-panel[hidden]{display:none}[data-appearance="light"] .utility-panel{background:#eaf0f6}
.utility-panel header{display:flex;align-items:center;justify-content:space-between}.utility-panel h2{font-size:19px;margin:0}.utility-panel header button{border:0;background:transparent;font-size:23px;opacity:.65;cursor:pointer;width:28px}.utility-panel h3{font-size:12px;margin:0 0 10px;color:var(--muted)}.utility-panel .setting-section{padding:18px 0}.utility-panel .data-actions{margin:0}.utility-panel .text-button{font-size:11px;opacity:.8}.utility-panel .segmented button{font-size:12px}.reset-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #8883;padding-top:14px;font-size:11px}.reset-row small{display:block;color:var(--muted);margin-top:3px;font-size:10px}
.toast{position:fixed;inset:auto auto 88px 50%;margin:0;transform:translateX(-50%);width:max-content;max-width:min(560px,calc(100vw - 48px));display:none;align-items:center;gap:16px;padding:14px 12px 14px 18px;border:1px solid #ffffff26;background:#111d30;color:#f4f7ff;border-radius:13px;box-shadow:0 10px 35px #0004;font-size:13px;line-height:1.5;opacity:1;transition:none;z-index:100}
.toast.show{display:flex;transform:translateX(-50%)}.toast-message{min-width:0}.toast-message button{font-weight:700;margin-left:8px;padding:2px 0}.toast .toast-dismiss{text-decoration:none;flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:7px;font-size:22px;opacity:.7;padding:0}.toast .toast-dismiss:hover{background:#ffffff18;opacity:1}
[data-appearance="light"] .toast{background:#f4f7fb;color:#172033;border-color:#17203330}
@media(max-height:650px) and (min-width:701px){.app{padding-top:30px;padding-bottom:30px}.home-stack{gap:18px}.tile{height:clamp(54px,calc((100dvh - 214px)/4),156px)}.brand-popover{height:min(520px,calc(100dvh - 90px));bottom:65px}.popover-view{height:auto;min-height:0;flex:1}.brand-popover:not([hidden]){display:flex;flex-direction:column}.popover-nav{flex-shrink:0}.info-footer,.why-sixteen,.data-fine-print{margin-top:12px}.utility-panel{max-height:calc(100dvh - 84px);overflow:auto}}
@media(max-width:700px){.site-settings,.utility-panel,.edit-toolbar,.toast{display:none!important}}
@media(prefers-reduced-motion:reduce){.space-prompt kbd{animation:none}.tile.add .mark{transition:none}}

/* v0.14: anchored branding, compact tabs, no scrolling inside information. */
.app{padding:48px 48px 100px}.home-stack{gap:24px}
.brand-btn,.brand-btn:hover,.brand-btn[aria-expanded="true"]{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);gap:5px;padding:5px 14px;z-index:24}
.wordmark-row{position:relative;display:block}.info-chevron{position:absolute;left:calc(100% + 6px);top:4px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.7;transition:transform .18s ease}
.brand-btn[aria-expanded="true"] .info-chevron{transform:rotate(180deg)}
.brand-popover,.brand-popover:not([hidden]){width:420px;height:390px;bottom:80px;padding:19px 24px;display:block}
.brand-popover[hidden]{display:none}.popover-nav{justify-content:flex-start;gap:6px;height:37px;margin-bottom:15px}.popover-nav button{padding:7px 11px}.popover-nav button:last-child{margin-left:0}
.popover-view{height:298px;min-height:0;overflow:visible;display:flex;flex-direction:column;flex:none}.popover-view[hidden]{display:none}
.popover-view h2,#howView h2{font-size:23px;line-height:1.12;margin:0 0 10px}.popover-view h3{font-size:13px}.popover-view p{font-size:12px;line-height:1.45}
.about-opening{display:grid;grid-template-columns:135px 1fr;gap:18px;align-items:start}.about-opening h2{font-size:27px;margin:0}.about-opening p{font-size:12px;line-height:1.4}.about-opening p span{display:block;margin-top:5px;font-size:11px}
.info-section,#howView .info-section{margin-top:15px;padding-top:13px;border-top:1px solid #8883}.why-sixteen{margin-top:15px;padding-top:13px}.why-sixteen p{font-size:12px}.why-sixteen .seventeen{margin-top:8px;color:var(--fg)}.why-sixteen .egg-punchline{margin-top:5px;color:var(--muted)}
.info-footer{margin-top:auto;padding-top:8px}.info-footer small{margin:0;font-size:10px}
.action-rows{margin-top:1px}.action-rows>div{padding:10px 0;grid-template-columns:140px 1fr}.action-rows kbd{display:inline-block;padding:4px 7px}
.popover-view .launch-legend{margin-top:7px}.how-footer{margin-top:auto;padding-top:10px;color:var(--muted);font-size:10px}
.data-rows{margin-top:0}.data-rows section{padding:9px 0}.data-rows h3{margin-bottom:2px}.data-actions{margin-top:11px}.data-fine-print{margin-top:auto;padding-top:10px}.data-fine-print p{font-size:10px;line-height:1.4}.data-fine-print p+p{margin-top:4px}
.utility-panel:before{content:"";position:absolute;right:11px;top:-6px;width:11px;height:11px;background:inherit;border-left:1px solid #8883;border-top:1px solid #8883;transform:rotate(45deg)}
.utility-panel{overflow:visible;max-height:none}
.short-screen-gate{display:none}
@media(max-height:650px) and (min-width:701px){.app{padding:24px 48px 95px}.home-stack{gap:18px}.tile{height:clamp(54px,calc((100dvh - 214px)/4),156px)}}
@media(max-height:479px) and (min-width:701px){.app,.brand-btn,.brand-popover,.site-settings,.utility-panel,.edit-toolbar,.search-layer,.toast{display:none!important}.short-screen-gate{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px}.short-screen-gate p{color:var(--muted);font-size:12px}}
/* v0.15 — one reading rhythm and a dark-only home. */
.brand-btn,.brand-btn:hover,.brand-btn[aria-expanded="true"]{opacity:1}
.brand-btn .wordmark-row{opacity:.65;transition:opacity .16s}.brand-btn .home-tagline{opacity:.4}
.brand-btn:hover .wordmark-row,.brand-btn[aria-expanded="true"] .wordmark-row{opacity:.9}.info-chevron{opacity:.9}
.popover-nav button{font-size:13px;opacity:.8}.popover-nav button[aria-current="true"]{opacity:1}
.popover-view{height:298px;overflow:visible;gap:0;color:#f4f7ff}
.read-section{flex:none;margin:0;padding:0}.read-section+.read-section{border-top:1px solid #ffffff20;margin-top:15px;padding-top:14px}
.popover-view .read-section h2{font-size:24px;line-height:1.15;margin:0 0 7px;letter-spacing:-.035em}
.popover-view .read-section h3{font-size:15px;line-height:1.3;margin:0 0 6px;color:#f4f7ff}
.popover-view .read-section p{font-size:14px;line-height:1.4;color:#c8d2e2;margin:0}.popover-view .read-section p+p{margin-top:8px}
.version-line{margin-top:auto;font-size:12px;color:#94a3b8;padding-top:8px}
#dataView .data-actions{margin-top:12px}#dataView .data-actions button{font-size:13px}
#howView kbd{font-size:11px;display:inline-block;padding:2px 6px}
.edit-tiles-button{width:100%;display:flex;justify-content:space-between;padding:12px 14px;border:1px solid #ffffff30;background:#ffffff0d;border-radius:10px;cursor:pointer;font-size:14px}.edit-tiles-button:hover{background:#ffffff18}
#resetBtn{border:1px solid #e5686c;background:#9b25251f;color:#ffb3b6;opacity:1;padding:9px 12px;border-radius:8px}#resetBtn:hover{background:#9b25253a}
.wiggle-prompt{display:none;text-align:center;font-size:12px}.wiggle-prompt small{display:block;font-size:10px;opacity:.75;margin-top:5px}
.edit-open .home-prompt{visibility:visible;opacity:.85}.edit-open .typing-prompt,.edit-open .space-prompt{display:none}.edit-open .wiggle-prompt{display:block}
.edit-toolbar button:disabled{opacity:.35;cursor:default}.edit-toolbar{gap:8px;padding:6px}
.editing .tile.selected,.editing .tile:hover{box-shadow:0 7px 22px #0002;filter:none}.editing .tile.selected:after{display:none}.grid.editing:has(.tile.selected) .tile:not(.selected){filter:none}
.editing .tile:not(.add){animation-duration:var(--wiggle,.2s)}
.tile .mark,.tile img{pointer-events:none;-webkit-user-drag:none;user-select:none}
.tile .delete{width:36px;height:36px;left:2px;top:2px;background:none;color:#fff;border:0;border-radius:0;font:22px/36px Arial,sans-serif;text-align:center;z-index:8;isolation:isolate;-webkit-user-drag:none}
.tile .delete:before{content:"";position:absolute;inset:6px;background:#18202b;border:1px solid #ffffff55;border-radius:50%;z-index:-1}.tile .delete:hover:before{background:#a5313a}
.tile.dragging,.tile-editor-open .editing .tile{animation:none!important;transform:none!important}.tile.dragging{opacity:.65}
.tile.drop-before{outline:3px solid #d5e8ff;outline-offset:3px}.tile.drop-after{outline:3px solid #d5e8ff;outline-offset:3px}
.tile.drop-before:before,.tile.drop-after:before{content:"";position:absolute;top:0;bottom:0;width:5px;background:#fff;z-index:7}.tile.drop-before:before{left:0}.tile.drop-after:before{right:0}
/* v0.16 — personal artwork, visual instructions and richer Search. */
.brand-btn .wordmark-row{opacity:.8}.brand-btn:hover .wordmark-row,.brand-btn[aria-expanded="true"] .wordmark-row{opacity:.98}.brand-btn .home-tagline{opacity:.4}
.edit-toolbar{display:flex;flex-direction:column;gap:7px;padding:8px 12px;border:0;background:transparent}.edit-toolbar-actions{display:flex;gap:8px;justify-content:center}.edit-toolbar small{font-size:10px;color:#c5d0e0;white-space:nowrap}.edit-toolbar[hidden]{display:none}
.brand-popover,.brand-popover:not([hidden]){height:370px}.popover-view{height:278px}
.read-section+.read-section{margin-top:12px;padding-top:11px}.popover-view .read-section p{font-size:13px;line-height:1.4}.popover-view .read-section h3{font-size:14px}.popover-view .read-section h2{font-size:23px}.version-line{font-size:11px}
.visual-steps{display:flex;flex-direction:column;gap:0}.visual-steps>div{display:grid;grid-template-columns:115px 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #ffffff20}.visual-steps>div:first-child{padding-top:0}.visual-steps>div:last-child{border:0}
.visual-steps p{margin:0!important}.visual-steps strong{display:block;font-size:12px;color:#f4f7ff}.visual-steps p span{display:block;font-size:11px;color:#c5d0e0;margin-top:3px}.visual-steps kbd{width:max-content;display:inline-block;padding:5px 8px;font-size:11px;cursor:default}.key-sequence{white-space:nowrap;font-size:11px}.step-symbol{font-size:22px;margin-left:8px}.hold-symbol{height:25px;width:25px;margin-left:6px}
.search-layer{padding-bottom:clamp(50px,12vh,120px)}.brand-atmosphere{opacity:.35}.brand-atmosphere i:nth-child(3){left:-10%;top:0%;width:110vw;height:70vh;opacity:.65}
.mark img,.card-art img,.tile-preview img{filter:none!important}.tile .mark,.search-card .card-art{width:64%;height:58%}.logo-fallback.custom-text{font-size:clamp(18px,2.4vw,36px);letter-spacing:-.03em;font-weight:750;max-width:100%;overflow-wrap:anywhere;text-align:center}
.tile .pencil{display:none;position:absolute;right:6px;bottom:5px;width:32px;height:32px;border-radius:8px;background:#172033cc;color:#fff;z-index:8;place-items:center}.editing .pencil{display:grid}.pencil svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;pointer-events:none}.pencil:hover{background:#253a58}.editing .tile .name{right:40px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-editor{width:min(650px,calc(100vw - 60px));max-width:none;max-height:calc(100dvh - 48px);overflow:auto;background:#101d30;padding:24px}.tile-editor h2{font-size:22px;margin-bottom:20px}.editor-columns{display:grid;grid-template-columns:1fr 230px;gap:28px}.editor-fields{min-width:0}.tile-editor label{font-size:12px;gap:5px}.tile-editor input{padding:9px 10px;margin-bottom:10px}.color-controls{display:flex;gap:8px}.tile-editor input[type=color]{width:45px;flex-shrink:0;padding:4px;height:37px}.tile-editor input[type=radio]{width:auto;margin:0;accent-color:#9bbdec}.art-choices{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:0;margin:0 0 14px}.art-choices legend{font-size:12px;color:var(--muted);margin-bottom:8px}.art-choices label{display:flex;align-items:center;font-size:11px;gap:4px}.tile-editor [hidden]{display:none!important}.tile-editor input[type=file]{font-size:11px;padding:8px;width:100%}.tile-editor label small{font-size:10px;color:var(--muted);margin-bottom:10px}.tile-editor .text-button{font-size:11px}.tile-editor .dialog-actions{border-top:1px solid #ffffff20;padding-top:16px;margin-top:16px}.tile-editor #editRemove{margin-left:auto;color:#f4a2a6}
.tile-preview{background:var(--tile);color:var(--ink);height:145px;width:230px;border-radius:17px;display:grid;place-items:center;position:relative;overflow:hidden}.tile-preview .mark{position:relative;display:grid;place-items:center;width:64%;height:58%;font-size:32px}.preview-name{position:absolute;bottom:10px;left:12px;font-size:12px;font-weight:650}.editor-preview-column>p{font-size:12px;color:#a7b6cc;margin:12px 0;line-height:1.5}#editorStatus{font-size:11px;color:#d9e5f6}
@media(max-height:650px){.search-layer{padding-bottom:70px}.carousel{height:190px}.search-box{margin-top:18px}.editor-columns{grid-template-columns:1fr 190px}.tile-preview{width:190px;height:124px}.tile-editor{padding:20px}.tile-editor h2{margin-bottom:12px}}
.mark img[data-tint="dark"],.card-art img[data-tint="dark"],.tile-preview img[data-tint="dark"]{filter:brightness(0)!important}
.mark img[data-tint="light"],.card-art img[data-tint="light"],.tile-preview img[data-tint="light"]{filter:brightness(0) invert(1)!important}
.mark img[data-external="true"],.card-art img[data-external="true"],.tile-preview img[data-external="true"]{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
/* v0.17: navigation reads as navigation; actions read as actions. */
.brand-popover,.brand-popover:not([hidden]){height:390px}.popover-view{height:298px;text-align:center}
.popover-nav{justify-content:flex-start;gap:13px}.popover-nav button,.popover-nav button[aria-current="true"]{position:relative;background:transparent;border-radius:0;padding:7px 3px;box-shadow:none}.popover-nav button{opacity:.6}.popover-nav button:hover{opacity:.9;background:transparent}.popover-nav button[aria-current="true"]{opacity:1}.popover-nav button[aria-current="true"]:after{content:"";position:absolute;left:3px;right:3px;bottom:-6px;height:2px;background:#dbeafe;border-radius:2px}
.read-section+.read-section{margin-top:13px;padding-top:12px}.popover-view .read-section h3{font-size:14px}.popover-view .read-section p{font-size:13px;line-height:1.45}.version-line{text-align:center}
.visual-steps>div{grid-template-columns:115px 1fr;text-align:left;max-width:340px;margin-inline:auto;width:100%}.visual-steps>div>kbd,.visual-steps>div>.step-symbol,.visual-steps>div>.hold-symbol{justify-self:center;margin-left:0}.key-sequence{justify-self:center}.visual-steps p{text-align:left}
#dataView .read-section+.read-section{margin-top:10px;padding-top:10px}#dataView .data-actions{margin-top:10px}#dataView #resetBtn{margin-top:9px;font-size:11px;padding:7px 12px}.data-actions{justify-content:center}
.edit-open .home-prompt{visibility:visible;opacity:.52}.wiggle-prompt{font-size:inherit;color:inherit;font-weight:inherit;letter-spacing:inherit}
.add-reassurance{font-size:12px;line-height:1.5;color:#c5d0e0;margin:0 0 20px}.add-joke{font-size:11px;line-height:1.5;color:#a7b6cc;margin:18px 0 0}
.logo-color-choices{border:0;padding:0;margin:0 0 14px}.logo-color-choices legend{font-size:12px;color:var(--muted);margin-bottom:9px}.logo-color-options{display:flex;gap:10px;flex-wrap:wrap}.logo-color-options label{display:flex;align-items:center;gap:4px;font-size:11px}.logo-color-choices .color-controls{margin-top:10px}.logo-color-choices small{display:block;font-size:10px;color:#b5c3d8;line-height:1.4;margin-top:8px}.tint-defs{position:absolute;pointer-events:none}.tile-preview .mark{isolation:isolate}

/* v0.18 — final branding and readable publication information. */
.wordmark-row{display:flex;align-items:center;justify-content:center;gap:7px}.bottom-logo{display:block;width:116px;height:24px;object-fit:contain;filter:brightness(0) invert(1);pointer-events:none}.brand-btn .wordmark-row{opacity:.9}.beta-badge{font:9px/1.3 system-ui,sans-serif;letter-spacing:.025em;border:1px solid #c9ddff50;border-radius:4px;padding:2px 4px;color:#cbd8e9}.info-chevron{top:6px}.brand-btn .home-tagline{opacity:.52}.brand-btn{gap:3px!important}.brand-btn:focus-visible{outline:2px solid #c5dcff;outline-offset:4px;border-radius:8px}
.popover-nav{gap:15px;white-space:nowrap}.popover-nav button{font-size:12px}.about-brand img{display:block;width:126px;height:48px;object-fit:contain;margin:0 auto 5px;filter:brightness(0) invert(1)}.popover-view .about-brand p{font-size:14px;color:#e4ecf8;font-weight:650}#aboutView .read-section+.read-section{margin-top:11px;padding-top:10px}.version-line a{color:inherit;text-underline-offset:3px}.version-line{flex-shrink:0}
.popover-view.legal-view{display:block;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;text-align:left;padding-right:10px;font-size:13px;line-height:1.55}.legal-view[hidden]{display:none}.legal-view h2{font-size:21px;margin:0 0 5px}.legal-view .policy-date{font-size:11px;color:#9eafc9}.legal-view section{margin-top:16px;padding-top:14px;border-top:1px solid #ffffff20}.legal-view h3{font-size:14px;margin:0 0 6px}.legal-view p{font-size:13px;line-height:1.55;color:#c8d2e2}.legal-view p+p{margin-top:9px}.legal-view a{color:#c4dcff;text-underline-offset:3px;overflow-wrap:anywhere}.policy-links{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #ffffff20;margin-top:20px;padding:14px 0 4px;font-size:11px}.policy-links .text-button{font-size:11px;padding:0;color:#c4dcff}.legal-view:focus-visible{outline:1px solid #c4dcff;outline-offset:3px}.popover-nav button:focus-visible,.legal-view a:focus-visible{outline:2px solid #c4dcff;outline-offset:3px}

/* About layout refinement: centered logo and compact author credit. */
#aboutView .about-brand{display:flex;align-items:center;justify-content:center;min-height:65px;padding:2px 0 6px}
#aboutView .about-brand img{width:142px;height:58px;margin:0;object-fit:contain}
#aboutView .about-credit{margin-top:14px;padding-top:12px;text-align:center}
#aboutView .about-credit h3{font-size:13px;margin-bottom:3px}
#aboutView .about-credit p{font-size:12px;line-height:1.4}
#aboutView .about-credit .copyright{font-size:11px;color:#9eafc9;margin-top:5px}

/* Preserve logo proportions and override the legacy 45px About icon box. */
.brand-btn .wordmark-row{gap:4px}
.brand-btn .bottom-logo{width:auto;height:24px;max-width:none;flex:none;object-fit:initial}
#aboutView .about-brand{width:100%;height:70px;min-height:70px;display:flex;align-items:center;justify-content:center;gap:7px;padding:3px 0 7px;background:none;border-radius:0}
#aboutView .about-brand img{display:block;width:142px;height:auto;max-width:none;flex:none;margin:0;object-fit:initial}
#aboutView .about-brand .beta-badge{flex:none;font-weight:400}

/* Stacked home branding; horizontal About lockup. */
.brand-btn .bottom-logo{height:34px;width:auto}
.brand-btn .info-chevron{top:11px}
#aboutView .about-brand{gap:7px}
#aboutView .about-brand .about-symbol{width:auto;height:38px}
#aboutView .about-brand .about-wordmark{width:auto;height:30px}
/* Keep resting tiles on their original bounds. Selection and hover use
   outlines/shadows instead of scaling raster artwork across adjacent tiles. */
.grid:not(.editing) .tile,.grid:not(.editing) .tile.selected,.grid:not(.editing) .tile:hover:not(.selected){transform:none;isolation:isolate}
.grid:not(.editing) .tile .mark,.grid:not(.editing) .tile.selected .mark{transform:none}
.grid:not(.editing) .tile{transition:box-shadow .16s ease,opacity .2s ease}
.grid:not(.editing) .tile:hover:not(.selected){box-shadow:inset 0 0 0 1px #ffffff60,0 12px 25px #0003}

/* Vector branding: align tagline to the logo + beta group only. */
.brand-btn,.brand-btn:hover,.brand-btn[aria-expanded="true"]{display:grid;grid-template-columns:1fr;justify-items:center;row-gap:3px;width:max-content}
.brand-btn .wordmark-row{position:relative;display:flex;justify-content:center;align-items:center;width:max-content;gap:4px;margin:0;opacity:1}
.brand-btn .bottom-logo{width:84px;height:auto;filter:none;flex:none}
.brand-btn .home-tagline{display:block;position:static;width:100%;margin:0;text-align:center;transform:none;letter-spacing:0}
.brand-btn .info-chevron{position:absolute;left:calc(100% + 6px);top:50%;margin-top:-6px}
#aboutView .about-brand .about-complete-logo{width:240px;height:auto;max-width:none;flex:none;filter:none}
#aboutView .about-brand{gap:7px}
.terms-back-bar{position:sticky;top:0;z-index:2;background:#101d30;padding:0 0 10px;margin-bottom:6px}
.terms-back{border:1px solid #c4dcff50;border-radius:6px;background:#182b46;color:#dae8ff;padding:6px 9px;font-size:12px;cursor:pointer}
.terms-back:hover{background:#223a59}.terms-back:focus-visible{outline:2px solid #c4dcff;outline-offset:2px}
