/* Theme/account utilities and task shortcuts have distinct, stable positions. */
.wgcm .cm-goal-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1;background:#e5f2ec;color:#245d48}
.wgcm .cm-goal-number[data-goal="2"]{background:#eaf1fc;color:#2a568a}
.wgcm .cm-goal-number[data-goal="3"]{background:#f0eafa;color:#69458e}
html[data-theme="dark"] .wgcm .cm-goal-number{background:#173b34;color:#a6e5ca}
html[data-theme="dark"] .wgcm .cm-goal-number[data-goal="2"]{background:#19344a;color:#b6deff}
html[data-theme="dark"] .wgcm .cm-goal-number[data-goal="3"]{background:#30273e;color:#dec5fb}
.wgcm .cm-task-row strong{flex:1;min-width:0}
.site-header .header-inner{display:flex;flex-wrap:wrap;gap:10px 12px}
.site-header .brand{flex:1;order:0}
.site-header .header-actions{display:contents}
.site-header [data-theme-toggle],.site-header #userBtn,.site-header #roleSelect{order:1;font-size:12px;min-height:38px;text-align:center}
.site-header .header-nav{order:3;flex-basis:100%;flex-wrap:wrap;gap:8px 18px;font-size:12px}
.site-header .app-shortcuts{order:2;flex-basis:100%;display:flex;gap:8px;flex-wrap:wrap}
.site-header .app-shortcuts .btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;flex:1 1 120px;min-height:42px;border-radius:13px;font-size:1rem;padding:9px 12px;box-shadow:none;background:var(--shortcut-bg);color:var(--shortcut-ink);border-color:var(--shortcut-border);line-height:1.35}
.site-header .app-shortcuts .btn[hidden]{display:none!important}
.site-header .app-shortcuts .btn:hover{filter:brightness(.96);background:var(--shortcut-bg);color:var(--shortcut-ink);box-shadow:0 2px 6px #0001}
[data-nav-tone=emergency]{--shortcut-bg:#fff0ee;--shortcut-ink:#96382e;--shortcut-border:#edc2bb}
[data-nav-tone=daily],[data-nav-tone=floor]{--shortcut-bg:#eaf3fc;--shortcut-ink:#255a86;--shortcut-border:#bed5e8}
[data-nav-tone=work]{--shortcut-bg:#e4f3ec;--shortcut-ink:#245d48;--shortcut-border:#b7d9c8}
[data-nav-tone=notice]{--shortcut-bg:#fff4d9;--shortcut-ink:#755414;--shortcut-border:#e5d19a}
[data-nav-tone=feedback]{--shortcut-bg:#f1ecfa;--shortcut-ink:#65408b;--shortcut-border:#d4c5e7}
html[data-theme=dark] [data-nav-tone=emergency]{--shortcut-bg:#362329;--shortcut-ink:#ffb7ac;--shortcut-border:#85504c}
html[data-theme=dark] [data-nav-tone=daily],html[data-theme=dark] [data-nav-tone=floor]{--shortcut-bg:#173147;--shortcut-ink:#b5dcff;--shortcut-border:#416582}
html[data-theme=dark] [data-nav-tone=work]{--shortcut-bg:#173b34;--shortcut-ink:#a6e5ca;--shortcut-border:#3f7564}
html[data-theme=dark] [data-nav-tone=notice]{--shortcut-bg:#38311d;--shortcut-ink:#f4da96;--shortcut-border:#827044}
html[data-theme=dark] [data-nav-tone=feedback]{--shortcut-bg:#30273e;--shortcut-ink:#dec5fb;--shortcut-border:#706087}
html[data-theme=dark] .site-header .app-shortcuts .btn{background:var(--shortcut-bg);color:var(--shortcut-ink);border-color:var(--shortcut-border)}
.wgcm .cm-workbench-guide+.cm-perspectives{margin:18px 0;padding:16px;border:1px solid var(--cm-line);border-radius:18px;background:var(--cm-panel)}
.wgcm .cm-workbench-guide+.cm-perspectives h2{font-size:16px;margin:0 0 10px}
.wgcm .cm-workbench-guide+.cm-perspectives .cm-perspective-panel{padding:12px;border-radius:13px}
@media(max-width:650px){
 .site-header .header-inner{padding:10px 12px;gap:8px}
 .site-header .brand{flex-basis:100%}
 .site-header [data-theme-toggle]{margin-left:auto}
 .site-header .app-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .site-header .app-shortcuts .btn{min-width:0;font-size:1rem;padding:9px 4px;min-height:40px}
 .wgcm .cm-workbench-guide+.cm-perspectives{padding:12px}
}
