/* Studio is an optional frame. Classic keeps the existing page order and menu. */
html.hn-enabled{--ha-nav:#103f34;--ha-nav-ink:#f4efdc;--ha-nav-muted:#d0dbcd;--ha-nav-active:#eac978;--ha-width:284px}
html.hn-enabled[data-hilciti-theme=ocean]{--ha-nav:#0b2538;--ha-nav-ink:#effbff;--ha-nav-muted:#bcd8df;--ha-nav-active:#ffb4a0}
html.hn-enabled[data-hilciti-theme=midnight]{--ha-nav:#251f42;--ha-nav-ink:#f6f1ff;--ha-nav-muted:#d0c6e5;--ha-nav-active:#b9e9df}
html.hn-enabled[data-hilciti-theme=obsidian]{--ha-nav:#070809;--ha-nav-ink:#f2dfaa;--ha-nav-muted:#d0bd87;--ha-nav-active:#e7c36c}
html.hn-enabled[data-hilciti-theme=onyx]{--ha-nav:#060815;--ha-nav-ink:#f0dfb1;--ha-nav-muted:#cdbd91;--ha-nav-active:#dfb85c}
html.hn-enabled[data-hilciti-theme=aurora]{--hn-primary:#2856a5;--hn-hero:#132744;--hn-bg:#edf3ff;--hn-surface:#fff;--hn-ink:#182b4d;--hn-muted:#4d607b;--hn-accent:#bfd7ff;--hn-gold:#bfd7ff;--hn-line:#cbd9ef;--hn-soft:#e3edff;--hn-on-primary:#fff;--hn-field:#fff;--ha-nav:#132744;--ha-nav-ink:#f3f7ff;--ha-nav-muted:#c3d3ee;--ha-nav-active:#bfd7ff}
html.hn-enabled[data-hilciti-theme=copper]{--hn-primary:#9b5732;--hn-hero:#2b3036;--hn-bg:#f6eee7;--hn-surface:#fff;--hn-ink:#302b27;--hn-muted:#6c5e53;--hn-accent:#d8b48e;--hn-gold:#e7c6a6;--hn-line:#e1d3c6;--hn-soft:#f1e3d7;--hn-on-primary:#fff;--hn-field:#fff;--ha-nav:#2b3036;--ha-nav-ink:#faf2e8;--ha-nav-muted:#e0ccb9;--ha-nav-active:#d8b48e}
html.hn-enabled #hn-shell .hn-theme[hidden]{display:none!important}
html.hn-enabled #hn-shell #ha-trigger{display:inline-flex;align-items:center;gap:9px;width:auto!important;max-width:280px;flex:0 0 auto!important;margin-left:auto;background:var(--hn-soft)!important;border-color:var(--hn-line)!important;color:var(--hn-ink)!important;border-radius:12px!important;padding:10px 14px!important;cursor:pointer}
#ha-trigger strong{font-size:14px}#ha-trigger small{font-size:12px}#ha-trigger .ha-trigger-icon{font-size:23px!important;color:var(--hn-primary)!important}
#hn-studio-nav,#ha-shade{display:none}
html[data-hilciti-layout=studio]:not(.hn-focused) #hn-studio-nav{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:var(--ha-width);padding:22px 16px;background:var(--ha-nav)!important;color:var(--ha-nav-ink)!important;border:0;border-right:1px solid var(--hn-line);overflow:auto;z-index:1200;font:15px/1.5 system-ui,sans-serif;box-sizing:border-box;text-align:left}
#hn-studio-nav *{box-sizing:border-box;font:inherit}#hn-studio-nav .ha-identity{display:grid;grid-template-columns:52px 1fr;column-gap:12px;align-items:center;text-decoration:none;padding:8px 8px 24px;color:var(--ha-nav-ink)!important}#hn-studio-nav .ha-identity img{width:52px;height:52px;grid-row:span 2;object-fit:contain}#hn-studio-nav .ha-identity strong{font-size:21px;font-weight:750;letter-spacing:.1em;color:var(--ha-nav-ink)!important}#hn-studio-nav .ha-identity small{font-size:10px;letter-spacing:.14em;color:var(--ha-nav-muted)!important}
#hn-studio-nav .ha-search-label{display:block;font-size:12px;font-weight:650;color:var(--ha-nav-muted)!important;padding:0 8px;margin-bottom:6px}#hn-studio-nav .ha-search{display:block;min-height:44px;width:100%;max-width:none;padding:10px 12px;margin:0 0 20px;border:1px solid var(--ha-nav-muted);border-radius:10px;background:transparent!important;color:var(--ha-nav-ink)!important;font-size:14px}#hn-studio-nav .ha-search::placeholder{color:var(--ha-nav-muted)}
#hn-studio-nav .ha-groups{display:block;padding:0;gap:0;flex:1;background:none!important}#hn-studio-nav .ha-group{display:block;border:0;border-radius:0;background:none!important;box-shadow:none;margin:0 0 10px;padding:0;color:var(--ha-nav-ink)!important}#hn-studio-nav .ha-group>summary{padding:13px 10px;cursor:pointer;list-style:revert;font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--ha-nav-muted)!important}#hn-studio-nav .ha-link{display:flex;align-items:center;gap:10px;margin:3px 0;padding:10px;border:1px solid transparent;border-radius:10px;text-decoration:none;color:var(--ha-nav-ink)!important;background:transparent!important;line-height:1.5;font-size:14px;font-weight:500;box-shadow:none;opacity:1}#hn-studio-nav .ha-link-mark{display:grid;place-items:center;flex:0 0 26px;height:26px;border:1px solid var(--ha-nav-muted);border-radius:7px;font-size:12px;font-weight:700;color:var(--ha-nav-ink)!important}#hn-studio-nav .ha-link:is([aria-current=page],:hover,:focus-visible){border-color:var(--ha-nav-active);background:#ffffff0d!important;color:var(--ha-nav-active)!important}#hn-studio-nav .ha-link:is([aria-current=page],:hover,:focus-visible) .ha-link-mark{color:var(--ha-nav-active)!important;border-color:var(--ha-nav-active)}#hn-studio-nav [hidden]{display:none!important}#hn-studio-nav .ha-nav-footer{border-top:1px solid var(--ha-nav-muted);padding:16px 8px 0;margin-top:20px}#hn-studio-nav .ha-nav-footer small{display:block;font-size:12px;line-height:1.6;color:var(--ha-nav-muted)!important;margin-top:12px}#hn-studio-nav .ha-rail,#hn-studio-nav .ha-close{border:1px solid var(--ha-nav-muted);border-radius:9px;min-height:44px;padding:9px 12px;background:transparent!important;color:var(--ha-nav-ink)!important;font-size:13px;cursor:pointer;width:100%;font-weight:600}#hn-studio-nav .ha-close{display:none}#hn-studio-nav :focus-visible{outline:3px solid var(--ha-nav-active);outline-offset:3px}
html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-panel,html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-backdrop{display:none!important}
html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell{z-index:1100;border-bottom:1px solid var(--hn-line)}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-top{padding:12px 28px;min-height:68px}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-brand{display:none}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-routebar{padding:8px 28px;background:var(--hn-surface)}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-outline{padding:8px 28px}html[data-hilciti-layout=studio]:not(.hn-focused) body>header{position:relative;top:auto;padding:28px 32px;border-radius:0 0 20px 20px;margin:0 28px 24px;min-height:110px;gap:20px}html[data-hilciti-layout=studio]:not(.hn-focused) body>header :is(.brand-mark,.brand-wordmark){display:none}html[data-hilciti-layout=studio]:not(.hn-focused) body>header h1{font-size:28px;line-height:1.2;margin:8px 0}html[data-hilciti-layout=studio]:not(.hn-focused) body>main{max-width:none;padding:24px 28px 60px}html[data-hilciti-layout=studio]:not(.hn-focused) main>.hero{border-radius:22px}html[data-hilciti-layout=studio]:not(.hn-focused) .hn-hub-main>h1{font-size:clamp(36px,4.5vw,62px)}
/* Palette chooser uses literal CSS swatches, no inline styles or remote assets. */
#hn-appearance{width:min(780px,calc(100vw - 28px));max-width:780px;max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:28px;background:var(--hn-surface)!important;color:var(--hn-ink)!important;border:1px solid var(--hn-line);border-radius:24px;box-shadow:0 28px 100px #0005;font:15px/1.6 system-ui,sans-serif;text-align:left}#hn-appearance::backdrop{background:#07132380;backdrop-filter:blur(3px)}#hn-appearance *{box-sizing:border-box}#hn-appearance .ha-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:start}#hn-appearance h2{font:750 26px/1.25 system-ui,sans-serif;margin:5px 0 12px;color:var(--hn-ink)!important}#hn-appearance h3{font:700 17px/1.4 system-ui,sans-serif;margin:26px 0 12px;color:var(--hn-ink)!important}#hn-appearance .ha-eyebrow{font-size:11px;font-weight:750;letter-spacing:.15em;margin:0;color:var(--hn-muted)!important}#hn-appearance :is(.ha-caption,.ha-save-note){font-size:14px;color:var(--hn-muted)!important;line-height:1.6}#hn-appearance button{font:inherit;cursor:pointer;min-height:44px;box-shadow:none;transform:none;opacity:1;color:var(--hn-ink)!important;border:1px solid var(--hn-line)!important;background:var(--hn-surface)!important;text-transform:none;letter-spacing:normal}#hn-appearance :is(.ha-close-dialog,.ha-secondary){border-radius:10px;padding:9px 16px;white-space:nowrap}#hn-appearance .ha-layouts{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;border:0;background:none!important;margin:20px 0}#hn-appearance legend{font-size:16px;font-weight:700;color:var(--hn-ink)!important;margin-bottom:10px}#hn-appearance .ha-layout-card{border-radius:14px;text-align:left;padding:16px;display:grid;grid-template-columns:72px 1fr;gap:4px 16px;align-items:center}#hn-appearance :is(.ha-layout-card,.ha-palette)>strong{display:block;font-size:15px;font-weight:750;color:var(--hn-ink)!important}#hn-appearance :is(.ha-layout-card,.ha-palette)>small{display:block;font-size:12px;color:var(--hn-muted)!important;line-height:1.5}#hn-appearance .ha-layout-preview{width:72px;height:54px;grid-row:span 2;border:1px solid var(--hn-line);border-radius:7px;display:grid;gap:4px;padding:5px;background:var(--hn-bg)}#hn-appearance .ha-layout-preview i{display:block;background:var(--hn-primary);border-radius:3px}#hn-appearance .ha-layout-preview.classic{grid-template-rows:9px 1fr;grid-template-columns:1fr 1fr}#hn-appearance .ha-layout-preview.classic i:first-child{grid-column:span 2}#hn-appearance .ha-layout-preview.studio{grid-template-columns:15px 1fr;grid-template-rows:9px 1fr}#hn-appearance .ha-layout-preview.studio i:first-child{grid-row:span 2}
#hn-appearance .ha-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#hn-appearance .ha-palette{border-radius:14px;text-align:left;padding:14px;display:flex;flex-direction:column;gap:5px;min-width:0;align-items:stretch}#hn-appearance :is(.ha-palette,.ha-layout-card)[aria-pressed=true]{border:2px solid var(--hn-ink)!important;background:var(--hn-soft)!important;box-shadow:inset 0 -3px 0 var(--hn-primary)}#hn-appearance .ha-choice{font-size:12px;font-weight:700;color:var(--hn-ink)!important;margin-top:auto;padding-top:6px}#hn-appearance .ha-swatches{display:grid;grid-template-columns:repeat(4,1fr);height:22px;border-radius:7px;overflow:hidden;border:1px solid #0002;margin-bottom:6px}#hn-appearance .ha-swatches i:nth-child(1){background:var(--ha-one)}#hn-appearance .ha-swatches i:nth-child(2){background:var(--ha-two)}#hn-appearance .ha-swatches i:nth-child(3){background:var(--ha-three)}#hn-appearance .ha-swatches i:nth-child(4){background:var(--ha-four)}#hn-appearance [data-palette=signature]{--ha-one:#103f34;--ha-two:#eac978;--ha-three:#e8f3ed;--ha-four:#ffffff}#hn-appearance [data-palette=ocean]{--ha-one:#0b2538;--ha-two:#075c78;--ha-three:#ffb4a0;--ha-four:#eff7fa}#hn-appearance [data-palette=midnight]{--ha-one:#251f42;--ha-two:#493780;--ha-three:#b9e9df;--ha-four:#f4f2fa}#hn-appearance [data-palette=aurora]{--ha-one:#132744;--ha-two:#2856a5;--ha-three:#bfd7ff;--ha-four:#edf3ff}#hn-appearance [data-palette=copper]{--ha-one:#2b3036;--ha-two:#9b5732;--ha-three:#d8b48e;--ha-four:#f6eee7}#hn-appearance [data-palette=obsidian]{--ha-one:#070809;--ha-two:#e7c36c;--ha-three:#6c592c;--ha-four:#f2dfaa}#hn-appearance [data-palette=onyx]{--ha-one:#060815;--ha-two:#dfb85c;--ha-three:#3f4562;--ha-four:#f0dfb1}#hn-appearance .ha-dialog-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--hn-line);padding-top:18px;margin-top:18px}#hn-appearance .ha-apply{background:var(--hn-primary)!important;color:var(--hn-on-primary)!important;border-color:var(--hn-accent)!important;padding:10px 20px;border-radius:11px;font-weight:700}#hn-appearance :focus-visible{outline:3px solid var(--hn-ink);outline-offset:3px}
@media(min-width:1100px){html[data-hilciti-layout=studio]:not(.hn-focused) body{padding-left:var(--ha-width)!important}html[data-hilciti-layout=studio].ha-compact:not(.hn-focused){--ha-width:92px}html[data-hilciti-layout=studio].ha-compact #hn-studio-nav{padding:20px 9px}html.ha-compact #hn-studio-nav :is(.ha-identity strong,.ha-identity small,.ha-search-label,.ha-search,.ha-link-label,.ha-nav-footer small){display:none}html.ha-compact #hn-studio-nav .ha-identity{display:block;padding:5px 10px 20px}html.ha-compact #hn-studio-nav .ha-group>summary{font-size:10px;letter-spacing:0;padding:12px 3px;overflow-wrap:anywhere;list-style:none;text-align:center}html.ha-compact #hn-studio-nav .ha-group{margin-bottom:6px}html.ha-compact #hn-studio-nav .ha-link{justify-content:center;padding:8px 4px}html.ha-compact #hn-studio-nav .ha-rail{font-size:11px;padding:8px 4px}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-top>button:first-of-type{display:none!important}}
@media(max-width:1099px){html[data-hilciti-layout=studio]:not(.hn-focused) body{padding-left:0!important}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-studio-nav{transform:translateX(-102%);width:284px;max-width:90vw;visibility:hidden}html[data-hilciti-layout=studio].ha-drawer-open:not(.hn-focused) #hn-studio-nav{transform:translateX(0);visibility:visible}html[data-hilciti-layout=studio].ha-drawer-open #ha-shade{display:block;position:fixed;inset:0;z-index:1150;border:0;border-radius:0;background:#07132390}#hn-studio-nav .ha-close{display:block;margin-bottom:14px}#hn-studio-nav .ha-rail{display:none}html[data-hilciti-layout=studio]:not(.hn-focused) #hn-shell .hn-top{padding:12px 16px}html[data-hilciti-layout=studio]:not(.hn-focused) body>header{margin:0 16px 18px;padding:22px}html[data-hilciti-layout=studio]:not(.hn-focused) body>main{padding:20px 16px 48px}}
@media(max-width:600px){#hn-appearance{padding:20px;border-radius:18px}#hn-appearance .ha-layouts,#hn-appearance .ha-palette-grid{grid-template-columns:1fr}html.hn-enabled #hn-shell #ha-trigger{padding:9px 11px!important;max-width:200px}#ha-trigger small{display:none}#hn-appearance h2{font-size:23px}#hn-appearance .ha-dialog-actions>*{flex:1}}
@media(prefers-reduced-motion:reduce){#hn-studio-nav,#hn-appearance *{transition:none!important}}

html.hn-enabled[data-hilciti-layout=studio][data-hilciti-theme=onyx]{--hn-line:#3f4562}
