/* Compact density applies to both layouts; palettes and native workflow state remain intact. */
html.hd-compact-ui{font-size:14px;--ha-width:244px;scroll-padding-top:16px}
html.hd-compact-ui body{font-size:14px;line-height:1.5;min-width:0}
html.hd-compact-ui :is(main,section,article,aside,form,fieldset,.panel,.card,.studio-body,.field-grid){min-width:0;box-sizing:border-box}
html.hd-compact-ui main{font-size:14px;line-height:1.55}
html.hd-compact-ui main :is(h1,h2,h3,h4){font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important;letter-spacing:-.025em;line-height:1.25}
html.hd-compact-ui main h1{font-size:28px!important;font-weight:700}
html.hd-compact-ui main h2{font-size:20px!important;font-weight:680}
html.hd-compact-ui main h3{font-size:16px!important;font-weight:650}
html.hd-compact-ui main h4{font-size:15px!important;font-weight:650}
html.hd-compact-ui main :is(p,label,td,th,li){font-size:14px;overflow-wrap:break-word}
html.hd-compact-ui :is(input,select,textarea,button){font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
html.hd-compact-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){min-height:36px!important;height:36px;padding:6px 10px!important;font-size:14px!important;line-height:1.4;border-radius:8px;max-width:100%;min-width:0}
html.hd-compact-ui textarea{min-height:76px!important;padding:8px 10px!important;font-size:14px!important;line-height:1.5;max-width:100%;resize:vertical;border-radius:8px}
html.hd-compact-ui button{min-height:36px;font-size:13px!important;line-height:1.4;padding:7px 12px;border-radius:8px}
html.hd-compact-ui :is(input[type=checkbox],input[type=radio]){width:17px;height:17px;flex-shrink:0}
html.hd-compact-ui :is(.panel,.card){padding:18px;border-radius:14px;margin-top:16px;margin-bottom:16px}
html.hd-compact-ui :is(.section-heading,.form-panel,.action-panel){padding:18px!important}
html.hd-compact-ui main :is(label,legend){font-size:13px;font-weight:650}
/* One utility row. Navigation keeps its identity but participates in the same flex row. */
html.hd-compact-ui #hn-shell .hn-top{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;min-height:54px!important;padding:8px 20px!important;min-width:0;border-bottom:1px solid var(--hn-line)}
html.hd-compact-ui #hn-shell .hn-top .hn-routebar{display:flex!important;align-items:center;flex:0 1 auto;min-width:0;gap:8px;padding:0!important;margin:0!important;border:0!important;background:transparent!important;flex-wrap:nowrap!important;font-size:13px!important;white-space:nowrap}
html.hd-compact-ui #hn-shell .hn-top .hn-routebar :is(a,button){font-size:13px!important;min-height:34px!important;padding:7px 9px!important;margin:0!important;white-space:nowrap}
html.hd-compact-ui #hn-shell .hn-top .hn-current{display:block;margin:0!important;font-size:13px!important;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.hd-compact-ui #hn-shell .hn-top .hn-context{flex:0 0 auto!important;font-size:12px!important;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.hd-compact-ui #hn-shell .hn-top .hn-brand{font-size:18px!important;letter-spacing:.08em}
html.hd-compact-ui #hn-shell .hn-top>button{min-height:34px!important;font-size:13px!important;padding:7px 10px!important;white-space:nowrap}
html.hd-compact-ui #hn-shell #ha-trigger{min-height:34px!important;padding:7px 10px!important;border-radius:8px!important;gap:7px!important;margin-left:auto!important;flex:0 0 auto!important;max-width:225px}
html.hd-compact-ui #ha-trigger strong{font-size:12px!important}
html.hd-compact-ui #ha-trigger small{font-size:11px!important}
html.hd-compact-ui #hn-shell #ha-trigger .ha-trigger-icon{font-size:16px!important}
/* The page heading comes first, with a bounded selector immediately below. */
html.hd-compact-ui #hn-section-nav{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:nowrap!important;max-width:100%;min-width:0;white-space:normal!important;overflow:visible!important;padding:10px 20px!important;border:1px solid var(--hn-line);border-top:0;border-radius:0 0 10px 10px;background:var(--hn-surface)!important;box-sizing:border-box;font:13px/1.4 system-ui,sans-serif}
html.hd-compact-ui #hn-section-nav[hidden]{display:none!important}
html.hd-compact-ui #hn-section-nav>label{flex:0 0 auto;white-space:nowrap;margin:0;font-size:12px;color:var(--hn-muted)}
html.hd-compact-ui #hn-section-nav>select{display:block!important;width:420px!important;max-width:100%!important;min-width:0!important;flex:0 1 420px!important;margin:0!important;color:var(--hn-ink)!important;background:var(--hn-field)!important;border:1px solid var(--hn-line)!important;text-overflow:ellipsis}
html.hd-compact-ui body>#hn-section-nav{margin:0 20px 16px;width:calc(100% - 40px)}
html.hd-compact-ui main>#hn-section-nav{margin:0 0 18px;width:100%}
html.hd-compact-ui body>header{min-height:0!important;padding:16px 20px!important;gap:18px!important;position:relative;top:auto}
html.hd-compact-ui body>header h1{font:700 23px/1.25 system-ui,sans-serif!important;letter-spacing:-.025em;margin:5px 0!important}
html.hd-compact-ui body>header :is(.brand-wordmark,.brand>strong){font-size:18px!important}
html.hd-compact-ui body>header :is(.brand-mark,.brand-mark img){width:42px!important;height:42px!important;min-width:42px!important}
html.hd-compact-ui[data-hilciti-layout=studio] body>header .brand-mark,html.hd-compact-ui[data-hilciti-layout=studio] body>header .brand-wordmark{display:none!important}
html.hd-compact-ui[data-hilciti-layout=studio]:not(.hn-focused) body>header{margin:0 20px!important;padding:18px 20px!important;border-radius:0!important;min-height:0!important}
html.hd-compact-ui[data-hilciti-layout=studio]:not(.hn-focused) body>main{padding:18px 20px 44px!important}
html.hd-compact-ui body>main{padding-top:18px;padding-bottom:44px}
html.hd-compact-ui .hn-page-hero,html.hd-compact-ui main>.hero{padding:22px 26px!important;border-radius:16px!important;min-height:0!important;gap:18px}
html.hd-compact-ui :is(.hn-page-hero,main>.hero) h1{font-size:30px!important;line-height:1.15!important;margin:8px 0!important;font-family:system-ui,sans-serif!important;font-weight:700!important}
html.hd-compact-ui :is(.hn-page-hero,main>.hero) p{font-size:14px!important;max-width:75ch;margin:8px 0!important}
html.hd-compact-ui .seal{font-size:32px!important;padding:8px 18px!important}
html.hd-compact-ui .hn-hub-main{padding:30px 24px}
html.hd-compact-ui .hn-hub-main>h1{font-size:38px!important;line-height:1.12!important;max-width:24ch;margin:12px 0 18px!important}
html.hd-compact-ui .hn-lead{font-size:16px!important;line-height:1.6!important;margin-bottom:24px!important;max-width:75ch}
html.hd-compact-ui .hn-kicker{font-size:11px!important;letter-spacing:.12em}
html.hd-compact-ui .hn-journeys{gap:16px!important}
html.hd-compact-ui .hn-journeys article{padding:20px!important;border-radius:16px!important;min-height:0!important}
html.hd-compact-ui .hn-journeys h2{font-size:20px!important;margin:12px 0}
html.hd-compact-ui .hn-journeys :is(p,span){font-size:14px!important}
html.hd-compact-ui .hn-journeys a{font-size:13px!important;padding:9px 12px!important;margin-top:10px!important}
html.hd-compact-ui #hn-directory{gap:16px}
html.hd-compact-ui #hn-directory article{padding:18px;border-radius:14px}
html.hd-compact-ui #hn-directory h3{font-size:17px!important}
html.hd-compact-ui #hn-directory a{padding:8px 0;font-size:14px}
/* Local header links collapse without replacing their handlers or cart controls. */
html.hd-compact-ui .hd-page-tools{position:relative;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;font:13px/1.4 system-ui,sans-serif}
html.hd-compact-ui .hd-page-tools>summary{list-style:none;cursor:pointer;white-space:nowrap;min-height:36px;border:1px solid var(--hn-accent);border-radius:8px;padding:8px 12px;color:var(--hn-on-primary)!important}
html.hd-compact-ui .hd-page-tools-list{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;max-width:min(300px,calc(100vw - 40px));z-index:1050;background:var(--hn-surface);border:1px solid var(--hn-line);border-radius:10px;padding:6px;box-shadow:0 10px 30px #0002}
html.hd-compact-ui body>header .hd-page-tools-list a{display:block!important;padding:10px!important;margin:0!important;font-size:13px!important;text-decoration:none!important;color:var(--hn-ink)!important;white-space:normal}
html.hd-compact-ui .hd-page-tools-list a:hover{background:var(--hn-soft)}
/* Denser sidebar, with touch sizing restored for coarse pointers. */
html.hd-compact-ui #hn-studio-nav{padding:16px 12px!important}
html.hd-compact-ui #hn-studio-nav .ha-identity{grid-template-columns:40px 1fr;gap:3px 9px;padding:4px 6px 18px}
html.hd-compact-ui #hn-studio-nav .ha-identity img{width:40px;height:40px}
html.hd-compact-ui #hn-studio-nav .ha-identity strong{font-size:18px!important}
html.hd-compact-ui #hn-studio-nav .ha-identity small{font-size:9px}
html.hd-compact-ui #hn-studio-nav .ha-search{height:36px;min-height:36px!important;padding:7px 10px!important;font-size:13px!important;margin-bottom:14px}
html.hd-compact-ui #hn-studio-nav .ha-group>summary{padding:10px 8px!important;font-size:10px!important;letter-spacing:.04em}
html.hd-compact-ui #hn-studio-nav .ha-link{font-size:13px!important;padding:7px 9px!important;margin:2px 0!important;gap:8px;min-height:34px}
html.hd-compact-ui #hn-studio-nav .ha-link-mark{width:23px;flex-basis:23px;height:23px;font-size:10px}
html.hd-compact-ui #hn-studio-nav .ha-nav-footer{padding-top:12px;margin-top:12px}
/* Appearance dialog has a scrolling body and persistent actions. */
html.hd-compact-ui #hn-appearance{width:min(680px,calc(100vw - 24px));max-width:680px;max-height:calc(100dvh - 32px);padding:20px;overflow:hidden;border-radius:18px;font:13px/1.5 system-ui,sans-serif}
html.hd-compact-ui #hn-appearance[open]{display:flex;flex-direction:column;gap:0}
html.hd-compact-ui #hn-appearance .ha-dialog-head{flex:0 0 auto;gap:12px}
html.hd-compact-ui #hn-appearance .ha-dialog-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:4px}
html.hd-compact-ui #hn-appearance h2{font-size:21px!important;margin:4px 0 10px}
html.hd-compact-ui #hn-appearance h3{font-size:15px!important;margin:18px 0 10px}
html.hd-compact-ui #hn-appearance .ha-caption,html.hd-compact-ui #hn-appearance .ha-save-note{font-size:12px!important;margin:8px 0 12px}
html.hd-compact-ui #hn-appearance .ha-layouts{gap:10px;margin:12px 0}
html.hd-compact-ui #hn-appearance legend{font-size:14px!important;margin-bottom:8px}
html.hd-compact-ui #hn-appearance .ha-layout-card{grid-template-columns:52px 1fr;gap:3px 10px;padding:11px;border-radius:10px}
html.hd-compact-ui #hn-appearance .ha-layout-preview{width:52px;height:40px;padding:4px;gap:3px}
html.hd-compact-ui #hn-appearance .ha-palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html.hd-compact-ui #hn-appearance .ha-palette{padding:11px;border-radius:10px;gap:4px;min-height:116px}
html.hd-compact-ui #hn-appearance :is(.ha-layout-card,.ha-palette)>strong{font-size:13px!important}
html.hd-compact-ui #hn-appearance :is(.ha-layout-card,.ha-palette)>small{font-size:11px!important;line-height:1.45}
html.hd-compact-ui #hn-appearance .ha-swatches{height:16px;margin-bottom:4px;border-radius:5px}
html.hd-compact-ui #hn-appearance .ha-choice{font-size:11px!important;padding-top:4px}
html.hd-compact-ui #hn-appearance .ha-dialog-actions{flex:0 0 auto;margin-top:12px;padding-top:12px;background:var(--hn-surface)}
html.hd-compact-ui #hn-appearance :is(.ha-apply,.ha-secondary,.ha-close-dialog){min-height:34px;padding:7px 12px;font-size:12px!important}
/* Prevent page overflow; genuine wide data tables scroll locally. */
html.hd-compact-ui .hd-table-scroll{display:block;max-width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html.hd-compact-ui .hd-table-scroll:focus-visible{outline:2px solid var(--hn-primary);outline-offset:2px}
html.hd-compact-ui :is(.field-grid,.split,.studio-body,.grid,.cards){min-width:0}
html.hd-compact-ui :is(.field-grid,.split,.studio-body,.grid,.cards)>*{min-width:0;max-width:100%}
html.hd-compact-ui #hn-shell .hn-top .hn-next{max-width:150px;overflow:hidden;text-overflow:ellipsis}
@media(min-width:1100px){html.hd-compact-ui.ha-compact[data-hilciti-layout=studio]{--ha-width:80px}html.hd-compact-ui.ha-compact #hn-studio-nav .ha-identity{padding:4px 6px 16px}}
@media(max-width:1200px){html.hd-compact-ui #ha-trigger small{display:none!important}html.hd-compact-ui #hn-shell .hn-top .hn-context{display:none!important}html.hd-compact-ui #hn-shell .hn-top .hn-current{max-width:160px}}
@media(max-width:900px){html.hd-compact-ui main :is(.field-grid,.split,.studio-body){grid-template-columns:minmax(0,1fr)!important}html.hd-compact-ui #hn-shell .hn-top .hn-current{max-width:130px}html.hd-compact-ui #hn-shell .hn-top{gap:8px!important;padding:8px 12px!important}html.hd-compact-ui .hn-page-hero,html.hd-compact-ui main>.hero{padding:20px!important}html.hd-compact-ui .hn-journeys,html.hd-compact-ui #hn-directory{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){html.hd-compact-ui #hn-shell .hn-top .hn-current,html.hd-compact-ui #hn-shell .hn-top .hn-brand{display:none!important}html.hd-compact-ui #hn-shell .hn-top .hn-routebar{gap:4px}html.hd-compact-ui #hn-shell .hn-top{gap:6px!important;padding:7px 8px!important;min-height:50px!important}html.hd-compact-ui #hn-shell #ha-trigger{padding:7px 9px!important}html.hd-compact-ui #hn-shell .hn-top .hd-tour{font-size:0!important;width:36px!important;padding:6px!important}html.hd-compact-ui #hn-shell .hn-top .hd-tour::before{content:'?';font-size:15px;font-weight:700}html.hd-compact-ui #hn-shell .hn-top .hn-routebar .hn-next{font-size:0!important;min-width:38px;max-width:44px;padding:6px!important}html.hd-compact-ui #hn-shell .hn-top .hn-routebar .hn-next::before{content:'Next';font-size:11px}html.hd-compact-ui .hn-hub-main>h1{font-size:30px!important}html.hd-compact-ui .hn-journeys,html.hd-compact-ui #hn-directory{grid-template-columns:1fr!important}html.hd-compact-ui #hn-section-nav{gap:8px!important;padding:9px 12px!important}html.hd-compact-ui #hn-section-nav>label{font-size:11px}html.hd-compact-ui #hn-section-nav>select{width:100%!important;flex:1 1 auto!important}html.hd-compact-ui body>#hn-section-nav{margin:0 12px 14px;width:calc(100% - 24px)}html.hd-compact-ui[data-hilciti-layout=studio]:not(.hn-focused) body>header{margin:0 12px!important;padding:14px!important;gap:12px!important}html.hd-compact-ui body>header h1{font-size:20px!important}html.hd-compact-ui[data-hilciti-layout=studio]:not(.hn-focused) body>main{padding:16px 12px 36px!important}html.hd-compact-ui #hn-appearance .ha-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html.hd-compact-ui #hn-appearance .ha-layout-card{grid-template-columns:1fr}html.hd-compact-ui #hn-appearance .ha-layout-preview{display:none}html.hd-compact-ui .hd-table-scroll table{min-width:600px}html.hd-compact-ui .seal{display:none}}
@media(max-width:430px){html.hd-compact-ui #hn-shell #ha-trigger strong{display:none!important}html.hd-compact-ui #hn-shell #ha-trigger{width:38px!important;min-width:38px;padding:7px!important;justify-content:center}html.hd-compact-ui #hn-section-nav{flex-wrap:wrap!important}html.hd-compact-ui #hn-section-nav>label{width:100%}html.hd-compact-ui #hn-section-nav>select{flex-basis:100%!important}html.hd-compact-ui #hn-appearance{padding:16px}html.hd-compact-ui #hn-appearance .ha-palette{min-height:110px;padding:9px}html.hd-compact-ui .hn-page-hero h1{font-size:26px!important}}
@media(pointer:coarse){html.hd-compact-ui :is(button,input:not([type=checkbox]):not([type=radio]):not([type=range]),select),html.hd-compact-ui #hn-shell .hn-top :is(a,button),html.hd-compact-ui #hn-shell #ha-trigger,html.hd-compact-ui #hn-studio-nav .ha-search,html.hd-compact-ui #hn-studio-nav .ha-link{min-height:44px!important}html.hd-compact-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select){height:44px}html.hd-compact-ui #hn-shell .hn-top .hn-routebar a{display:inline-flex;align-items:center}}
@media(max-width:600px){html.hd-compact-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px!important}}
@media(max-width:700px){html.hd-compact-ui body>header{flex-wrap:wrap!important;align-items:center}html.hd-compact-ui body>header>nav{width:100%;min-width:0;gap:8px;flex-wrap:wrap}html.hd-compact-ui body>header .header-actions{min-width:0;gap:8px;flex-wrap:wrap}}
