/* Wuppa interface tokens 0.2.0. Owner surfaces only; never installed in call/QR/TV pages. */
:root{--wh-bg:#25282b;--wh-panel:#303438;--wh-panel2:#3b4146;--wh-line:#58616a;--wh-text:#e4e7ea;--wh-muted:#b7c0c8;--wh-accent:#d39565;--wh-focus:#f6c797;--wh-positive:#8ce0ba;--wh-danger:#ffb1a8;--wh-radius:16px;--wh-button:10px}
body.wuppa-hub-surface{--bg:var(--wh-bg);--panel:var(--wh-panel);--panel2:var(--wh-panel2);--edge:var(--wh-line);--border:var(--wh-line);--line:var(--wh-line);--card:var(--wh-panel);--text:var(--wh-text);--muted:var(--wh-muted);--accent:var(--wh-accent);--orange:var(--wh-accent);--green:var(--wh-positive);--bad:var(--wh-danger);--radius:var(--wh-radius);margin:0;background:var(--wh-bg);color:var(--wh-text);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color-scheme:dark}
.wh-shell{background:var(--wh-bg);border-bottom:1px solid var(--wh-line);font:16px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;position:relative;z-index:4}
.wh-shell-inner{max-width:1360px;margin:auto;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px;box-sizing:border-box}
.wh-shell .wh-logo{display:block;flex-shrink:0;font-size:32px;font-weight:900;line-height:1;color:var(--wh-text);letter-spacing:-1.3px;text-decoration:none}
.wh-logo>span{color:var(--wh-accent)}.wh-logo>small{display:block;font-size:11px;line-height:1.5;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--wh-muted);margin-top:7px}
.wh-shell .wh-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0;padding:0;max-width:100%;min-width:0}
.wh-shell .wh-links a{color:var(--wh-muted);border:1px solid transparent;border-radius:var(--wh-button);padding:11px 12px;min-height:44px;box-sizing:border-box;font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}
.wh-shell .wh-links a:hover{background:var(--wh-panel2);color:var(--wh-text)}.wh-shell .wh-links a[aria-current=page]{background:var(--wh-panel2);border-color:var(--wh-line);color:var(--wh-text);box-shadow:inset 0 -3px var(--wh-accent)}
.wh-shell a:focus-visible{outline:3px solid var(--wh-focus);outline-offset:3px}
body.wuppa-hub-surface>header{background:var(--wh-panel);border-bottom:1px solid var(--wh-line);border-top:0;max-width:none;padding:10px max(24px,calc((100vw - 1312px)/2));min-height:58px;display:flex;justify-content:flex-end;align-items:center;gap:16px;margin:0}
body.wuppa-hub-surface>header>.brand,body.wuppa-hub-surface>header>.logo{display:none}
body.wuppa-hub-surface>header nav{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;max-width:none;font-size:14px;justify-content:flex-end}
body.wuppa-hub-surface>header nav a{color:var(--wh-text);text-underline-offset:4px}
body.wuppa-hub-surface main{max-width:1312px;padding-left:24px;padding-right:24px;margin-left:auto;margin-right:auto;box-sizing:border-box}
body.wuppa-hub-surface main.narrow{max-width:820px}
body.wuppa-hub-surface .card,body.wuppa-hub-surface .panel{background:var(--wh-panel);border-color:var(--wh-line);border-radius:var(--wh-radius)}
body.wuppa-hub-surface h1{color:var(--wh-text);font-size:clamp(28px,3.2vw,42px);line-height:1.15;letter-spacing:-.035em}
body.wuppa-hub-surface h2,body.wuppa-hub-surface h3,body.wuppa-hub-surface label{color:var(--wh-text)}
body.wuppa-hub-surface .eyebrow{color:var(--wh-accent)}
body.wuppa-hub-surface button,body.wuppa-hub-surface .button{border-radius:var(--wh-button);min-height:46px;box-sizing:border-box;border:1px solid var(--wh-line);background:var(--wh-panel2);color:var(--wh-text);font-family:inherit;line-height:1.4;touch-action:manipulation;max-width:100%}
body.wuppa-hub-surface button.primary,body.wuppa-hub-surface a.primary,body.wuppa-hub-surface button.active,body.wuppa-hub-surface .next-button,body.wuppa-hub-surface #activate,body.wuppa-hub-surface #save,body.wuppa-hub-surface #create,body.wuppa-hub-surface #pair,body.wuppa-hub-surface #saveSettings,body.wuppa-hub-surface #activate-queue,body.wuppa-hub-surface[data-hub-module=sign] button:not(.secondary):not([type=button]){background:var(--wh-accent);border-color:var(--wh-accent);color:#151b21}
body.wuppa-hub-surface button.danger{color:var(--wh-danger);border-color:#9d6560}
body.wuppa-hub-surface button:disabled{opacity:.5;cursor:not-allowed}
body.wuppa-hub-surface input:not([type=checkbox]):not([type=radio]),body.wuppa-hub-surface textarea,body.wuppa-hub-surface select{background:#292d31;border-color:#7b8e99;color:var(--wh-text);border-radius:var(--wh-button);min-height:46px;box-sizing:border-box;max-width:100%}
body.wuppa-hub-surface input[type=checkbox],body.wuppa-hub-surface input[type=radio]{accent-color:var(--wh-accent)}
body.wuppa-hub-surface button:focus-visible,body.wuppa-hub-surface a:focus-visible,body.wuppa-hub-surface input:focus-visible,body.wuppa-hub-surface select:focus-visible,body.wuppa-hub-surface textarea:focus-visible,body.wuppa-hub-surface summary:focus-visible{outline:3px solid var(--wh-focus);outline-offset:3px}
body.wuppa-hub-surface [hidden]{display:none!important}
body.wuppa-hub-surface .qrbox,body.wuppa-hub-surface .qr{background:#fff;color:#111}
@media(max-width:760px){.wh-shell-inner{padding:14px 16px;display:block}.wh-shell .wh-logo{font-size:27px}.wh-logo>small{display:inline-block;margin:0 0 0 12px;letter-spacing:.8px}.wh-shell .wh-links{margin-top:14px;display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;max-width:100%}.wh-shell .wh-links a{font-size:13px;padding:10px;min-height:44px}.wuppa-hub-surface>header{padding:8px 16px!important}.wuppa-hub-surface>header nav{justify-content:flex-start!important}body.wuppa-hub-surface main{padding-left:16px;padding-right:16px}body.wuppa-hub-surface .columns,body.wuppa-hub-surface .grid,body.wuppa-hub-surface .workgrid{grid-template-columns:1fr}body.wuppa-hub-surface .columns>*{min-width:0}body.wuppa-hub-surface .field-row{max-width:100%}}
@media print{.wh-shell{display:none!important}}
/* These original headers contain navigation duplicates only. Keep their DOM,
   but retain the action strip on Wait screens because it contains fullscreen/context controls. */
body.wuppa-hub-surface[data-hub-module=service]>header,
body.wuppa-hub-surface[data-hub-module=notify]>header,
body.wuppa-hub-surface[data-hub-module=guide]>header{display:none}
@media(max-width:650px){body.hub-page .module-card{min-height:210px}}
