/* Shared UI contract. Page compositions stay in their owning stylesheet. */
@import url('cg-tokens.css');
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
:root {
  --black:var(--cg-bg); --carbon:var(--cg-surface); --steel:var(--cg-border);
  --blue:var(--cg-action); --cyan:var(--cg-accent); --white:var(--cg-text); --smoke:var(--cg-muted);
  --ground:var(--cg-bg); --surface:var(--cg-surface); --raised:var(--cg-raised);
  --line:var(--cg-border); --text:var(--cg-text); --muted:var(--cg-muted); --accent:var(--cg-accent);
}
body { font-family:var(--cg-font); color:var(--cg-text); }
:is(button,input,select,textarea) { font-family:inherit; }
:is(a,button,input,select,textarea,summary):focus-visible { outline:2px solid var(--cg-accent); outline-offset:3px; }
.button { border-radius:var(--cg-radius); min-height:var(--cg-control); padding:9px 16px; font-size:14px; }
.command-page {
  --hc-gap:var(--cg-space-3); --hc-line:var(--cg-border); --hc-panel:var(--cg-surface); --hc-muted:var(--cg-muted);
  background:var(--cg-bg); min-height:100dvh; font-size:var(--cg-text-body);
}
.command-page > .command-header { min-height:76px; padding:12px 24px; background:var(--cg-bg); border-bottom:1px solid var(--cg-border); gap:24px; }
.command-page .command-brand { text-decoration:none; color:var(--cg-text); margin:0; font-size:22px; letter-spacing:.4px; gap:12px; }
.command-page .command-brand img { width:44px; height:48px; }
.command-page .command-brand b { color:var(--cg-accent); }
.command-page .command-brand small { font-size:10px; letter-spacing:1.2px; color:var(--cg-muted); }
.command-page .command-header nav { display:flex; gap:4px; font-size:14px; }
.command-page .command-header nav a { border:0; border-radius:var(--cg-radius); margin:0; text-decoration:none; padding:9px 12px; color:var(--cg-muted); font-size:14px; }
.command-page .command-header nav a[aria-current] { color:var(--cg-text); background:var(--cg-raised); }
.command-page .command-header nav span { display:none; }
.command-page .command-main { max-width:var(--cg-workspace); margin-inline:auto; padding:20px 24px 32px; }
.command-page :is(.command-heading h1,.wishlist-top h1,.studio-heading h1) { font-size:28px; line-height:1.2; letter-spacing:-.5px; }
.command-page h2 { font-size:22px; line-height:1.3; letter-spacing:-.3px; }
.command-page h3 { font-size:16px; line-height:1.4; }
.command-page label { font-size:var(--cg-text-label); }
.command-page :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=file]) {
  min-height:var(--cg-control); border:1px solid var(--cg-border); border-radius:var(--cg-radius);
  padding:8px 10px; background:var(--cg-bg); color:var(--cg-text); font-size:15px; font-weight:400; line-height:1.5;
}
.command-page :is(button,.button) { min-height:var(--cg-control); border-radius:var(--cg-radius); font-size:14px; }
.command-page button { background:var(--cg-raised); color:var(--cg-text); border:1px solid var(--cg-border); }
.command-page :is(button.primary,button[type=submit],.button:not(.ghost):not(.secondary)) { background:var(--cg-action); border-color:var(--cg-action); color:white; }
.command-page :is(button.primary,button[type=submit],.button:not(.ghost):not(.secondary)):hover { background:var(--cg-action-hover); }
.command-page :is(.command-actions button,.command-actions a) { background:none; border:0; color:var(--cg-accent); }
.command-page .studio-steps button { background:none; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--cg-muted); }
.command-page .studio-steps button[aria-current] { border-bottom-color:var(--cg-accent); color:var(--cg-text); }
.command-page :is(.library-switch,.preview-switch) button { background:none; border:0; }
.command-page :is(.library-switch,.preview-switch) [aria-selected=true] { background:var(--cg-raised); color:var(--cg-text); }
.command-page .report-row { background:none; border:0; border-bottom:1px solid var(--cg-border); border-radius:0; }
.command-page .report-row[aria-current] { background:var(--cg-surface); }
.command-page .art-option { padding:0; border:2px solid transparent; background:var(--cg-surface); }
.command-page .art-option[aria-pressed=true] { border-color:var(--cg-accent); }
.command-page .studio-preview h2 { font-size:14px; }
.command-page #studio-site-title { font-size:23px; }
.command-page :is(.form-foot,.command-help,.library-help) { font-size:var(--cg-text-small); color:var(--cg-muted); }
@media(max-width:700px) {
  .command-page > .command-header { padding:12px; gap:12px; }
  .command-page .command-header nav { width:100%; flex-wrap:nowrap; overflow-x:auto; }
  .command-page .command-header nav a { white-space:nowrap; padding:10px; min-height:44px; }
  .command-page .command-main { padding:16px 12px 24px; }
  .command-page :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=file]) { font-size:16px; }
  .command-page .studio-heading h1 { font-size:25px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

.command-page .command-guide h2{font-size:15px;margin-bottom:6px}

/* House Command shell: one navigation and one compact working canvas. */
.house-shell > .command-header{position:sticky;top:0;z-index:20;min-height:76px;background:var(--cg-bg)}
.house-shell .house-shell-context{margin:0 0 0 auto;font-size:12px;font-weight:700;letter-spacing:1px;color:var(--cg-accent)}
.house-shell .command-header nav{position:fixed;inset:76px auto 0 0;width:184px;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:4px;padding:16px 12px;background:var(--cg-bg);border-right:1px solid var(--cg-border);overflow-y:auto}
.house-shell .command-header nav a{display:block;margin:0;padding:10px 12px;min-height:40px}
.house-shell .command-main{width:calc(100% - 184px);max-width:var(--cg-workspace);margin:0 0 0 184px;padding:16px 24px 32px}
.house-local-note{font-size:12px;line-height:1.5;color:var(--cg-muted);border-bottom:1px solid var(--cg-border);padding:0 0 10px;margin:0 0 16px}
.house-shell .command-guide{margin:12px 0;padding:10px 12px}
.house-shell .command-guide summary{cursor:pointer;font-size:13px;color:var(--cg-accent)}
.house-shell .command-guide h2{font-size:15px;margin:10px 0 6px}
.house-shell .command-heading>p:last-child{margin-bottom:8px}
.house-shell .command-utilities{margin:8px 0 16px;padding:8px 0}
@media(max-width:900px){
 .house-shell>.command-header{gap:8px 16px;padding:12px;position:relative}
 .house-shell .house-shell-context{font-size:10px}
 .house-shell .command-header nav{position:static;inset:auto;width:100%;display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;overflow-x:auto;padding:4px 0;border:0;gap:4px}
 .house-shell .command-header nav a{flex-shrink:0;min-height:44px;padding:10px}
 .house-shell .command-main{width:100%;margin:0;padding:12px 12px 24px}
 .house-local-note{font-size:12px;margin-bottom:12px}
}

@media(max-width:900px){.house-shell .command-brand{order:0;font-size:20px}.house-shell .house-shell-context{order:1}.house-shell .command-header nav{order:2}}
