/* A5 Lite 0.1 - no fonts, images, build tools or runtime dependencies. */
:root{--bg:#090e17;--surface:#131c2c;--surface-hover:#1b2a40;--line:rgba(255,255,255,.1);--fg:#f6f8fc;--muted:#b0bdd0;--accent:#5cb8ff;--accent-soft:rgba(92,184,255,.14);--scale:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--fg);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(140deg,#0a1220 0%,#080e18 50%,#080e18 100%);min-height:100vh;overflow-x:hidden}
body[data-accent="green"]{--accent:#73e1b4;--accent-soft:rgba(115,225,180,.13)}
body[data-accent="violet"]{--accent:#bd9afa;--accent-soft:rgba(189,154,250,.15)}
body[data-text="large"]{--scale:1.14}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit}
.shell{width:100%;min-height:100vh;max-width:1920px;margin:0 auto;padding:3.8vh 5vw 2.5vh;display:flex;flex-direction:column;gap:0}
.topbar{display:flex;align-items:center;justify-content:space-between;min-height:62px;gap:16px}
.identity{display:flex;align-items:center;gap:18px}
.identity-mark{font-size:29px;font-weight:900;letter-spacing:-2px;background:var(--accent);color:#09131a;border-radius:16px;width:66px;height:62px;display:flex;align-items:center;justify-content:center}
.identity-mark span{font-size:23px}
.identity-text strong,.identity-text small{display:block}
.identity-text strong{font-size:22px;letter-spacing:-.3px}
.identity-text small{color:var(--muted);margin-top:3px;font-size:13px}
.status{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}
.tiny-dot{background:#74d6aa;border-radius:50%;width:9px;height:9px}
#clock{margin-left:24px;color:var(--fg);font-size:28px;font-weight:650;font-variant-numeric:tabular-nums}
.main{flex:1}
.intro{padding:7vh 0 5vh}
.eyebrow{color:var(--accent);font-weight:700;letter-spacing:3px;font-size:12px}
h1{font-size:clamp(32px,3.8vw,68px);letter-spacing:-1.5px;margin:17px 0 12px;line-height:1.1}
.intro p,.settings-head p,.helper{font-size:calc(17px * var(--scale));line-height:1.5;color:var(--muted);margin:0}
.section{margin-bottom:4vh}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;gap:16px}
.section-heading h2{font-size:calc(21px * var(--scale));margin:0}
#shortcut-count{color:var(--muted);font-size:13px}
.tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tile{position:relative;text-decoration:none;text-align:left;display:flex;flex-direction:column;justify-content:space-between;min-height:218px;border:1px solid var(--line);border-radius:23px;padding:24px 23px;background:var(--surface);color:var(--fg);transition:background .12s ease,transform .12s ease,border-color .12s ease;outline:none}
.tile:focus,.tile:hover,.tile.focused{background:var(--surface-hover);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);transform:translateY(-2px)}
.tile-glyph{font-size:42px;display:block;font-weight:800;line-height:1;color:var(--accent)}
.tile-copy strong{display:block;font-size:calc(24px * var(--scale));margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile-copy small{display:block;color:var(--muted);font-size:calc(13px * var(--scale));line-height:1.5;overflow:hidden;max-height:3em}
.tile-arrow{position:absolute;right:25px;top:25px;font-size:17px;color:var(--muted)}
.tool{min-height:111px;display:flex;align-items:center;flex-direction:row;gap:18px;justify-content:flex-start}
.tool .tile-glyph{font-size:34px}
.tool .tile-copy strong{font-size:calc(18px * var(--scale))}
.tool .tile-arrow{top:auto;right:24px}
.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:22px;margin-top:20px;color:var(--muted);font-size:13px}
.hidden{display:none!important}
.settings{flex:1;max-width:1080px;width:100%;margin:0 auto;padding:4vh 0}
.settings-head{margin-bottom:30px}
.settings-head h1{font-size:clamp(32px,3vw,52px)}
.back{background:transparent;border:1px solid var(--line);border-radius:12px;padding:13px 20px;color:var(--fg)}
.settings-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:25px;margin-bottom:20px}
.settings-panel h2{font-size:23px;margin:0 0 21px}
.settings-panel h2:not(:first-child){margin-top:25px}
.settings-panel p{color:var(--muted);line-height:1.5}
.fieldrow{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:12px;margin:0 0 15px}
.fieldrow label{font-size:17px}
input,select{width:100%;min-width:0;border:1px solid var(--line);background:#0b1423;color:var(--fg);border-radius:10px;padding:14px;font-size:16px;outline:none}
.focusable:focus,input:focus,select:focus{outline:3px solid var(--accent);outline-offset:2px}
.shortcut-edit{display:grid;grid-template-columns:120px 1fr;gap:8px 14px;margin:15px 0 22px;border-bottom:1px solid var(--line);padding-bottom:15px}
.shortcut-edit label{color:var(--muted);font-size:14px;align-self:center}
.form-actions{display:flex;gap:12px;margin-top:18px}
.primary,.secondary{padding:16px 22px;border-radius:11px;border:1px solid var(--line);color:var(--fg);font-weight:700;background:var(--surface)}
.primary{background:var(--accent);color:#0a121f;border-color:var(--accent)}
#settings-feedback{min-height:1.5em;color:var(--accent)}
@media (max-width:1000px){.tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{min-height:175px}.intro{padding:5vh 0 4vh}}
@media (max-width:620px){.shell{padding:16px 4vw}.topbar{align-items:flex-start}.identity-mark{width:49px;height:49px;font-size:23px}.identity-text strong{font-size:19px}.identity-text small,.status #connection,.status .tiny-dot{display:none}#clock{font-size:20px;margin:8px 0 0}.tile-grid{gap:10px}.tile{padding:17px;border-radius:16px;min-height:159px}.tile-glyph{font-size:34px}.tile-copy strong{font-size:calc(17px * var(--scale))}.tile-copy small{font-size:12px}.tool .tile-glyph{font-size:25px}.tool .tile-copy strong{font-size:14px}.tool .tile-copy small{display:none}.tool{min-height:75px}.fieldrow,.shortcut-edit{grid-template-columns:1fr}.footer{flex-direction:column;align-items:flex-start;font-size:11px}.intro{padding:6vh 0 4vh}.intro p{font-size:14px}}
@media(prefers-reduced-motion:reduce){.tile{transition:none}}
