/* One task per screen, with thumb-accessible navigation on mobile. */
.compact-shell{--bg:light-dark(#f3f6fa,#031521);--panel:light-dark(#fff,#0b2030);--soft:light-dark(#f4f7fb,#102b40);--line:light-dark(#dde5ee,#223b4d);--blue:light-dark(#0875eb,#69b5ff);--blue-bg:light-dark(#eaf3ff,#0a3565);grid-template-columns:200px minmax(0,1fr)}
.compact-shell .main{max-width:1120px;padding:28px 30px 48px;min-width:0;outline:none}
.compact-shell .page-heading{margin-bottom:20px;gap:14px}.compact-shell .page-heading h1{font-size:26px;letter-spacing:-.6px}.compact-shell .page-heading .eyebrow{display:none}.compact-shell .page-heading .muted{font-size:13px;margin-top:5px;line-height:1.5}
.compact-shell .sidebar{padding:25px 15px}.compact-shell .nav-item{font-size:14px;gap:12px}.nav-symbol svg{display:block;width:22px;height:22px}.compact-shell .section-heading h2{font-size:18px}.compact-shell .button{min-height:44px;font-size:13px;padding:10px 14px}.compact-shell .text-button{min-height:44px;font-size:13px}.compact-shell .field input,.compact-shell .field select{min-height:44px;padding:10px 12px}
.compact-shell .capacity-grid{gap:0;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden;margin-bottom:12px}.compact-shell .metric{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;border:0;border-radius:0;box-shadow:none;padding:12px 18px;background:transparent}.compact-shell .metric+.metric{border-left:1px solid var(--line)}.compact-shell .metric>span{width:100%;font-size:12px}.compact-shell .metric strong{font-size:25px;line-height:1.2;margin:0}.compact-shell .metric small{font-size:11px}.compact-shell .metric [data-used-caption]{width:100%}
.compact-shell .owner-toolbar{padding:12px;display:flex;flex-direction:row;gap:10px;align-items:center;margin-bottom:12px}.compact-shell .filter-field{flex:1;max-width:none;min-width:130px}.compact-shell .toolbar-actions{display:flex;gap:8px}.customer-more{position:relative}.customer-more summary{list-style:none;cursor:pointer;display:flex;gap:8px;align-items:center}.customer-more summary::-webkit-details-marker{display:none}.customer-menu{position:absolute;right:0;top:calc(100% + 6px);width:220px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #0003;z-index:12;display:grid;gap:3px}.customer-menu .button{text-align:left;width:100%}
.compact-shell .access-panel,.compact-shell .settings-panel,.compact-shell .catalog-panel{padding:20px}.compact-shell .settings-panel{position:static}.compact-shell .access-filters{grid-template-columns:minmax(0,1fr) 190px;margin-top:14px}.compact-shell .list-toolbar{padding:6px 0;gap:6px;justify-content:space-between}.compact-shell .list-toolbar .small{font-size:12px}.compact-shell .check-label{font-size:13px}
.compact-shell .access-list{display:grid;max-height:none;overflow:visible;gap:8px;padding:0}.compact-shell .access-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0;border-radius:11px}.compact-shell .access-select{padding:12px;gap:10px;min-width:0}.compact-shell .access-identity{flex:1}.compact-shell .access-name{font-size:14px}.compact-shell .access-code{font-size:12px;margin-top:3px}.compact-shell .access-status{max-width:112px;gap:3px;margin-left:8px}.compact-shell .status-badge,.compact-shell .connection-badge{font-size:11px;padding:2px 4px}.compact-shell .access-ip{display:none}.compact-shell .access-subline{font-size:11px;margin-top:4px}.compact-shell .access-open{border:0;border-left:1px solid var(--line);width:auto;height:100%;padding:10px 13px;font-size:12px;text-align:center;display:flex;align-items:center;justify-content:center;background:transparent}.compact-shell .access-open:hover{background:var(--blue-bg)}
.selection-actions{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px;padding:10px;background:var(--soft);border-radius:10px}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:16px;font-size:13px;color:var(--muted)}.pagination .button{min-width:44px}.subtle-help{margin-top:14px;font-size:12px;color:var(--muted);line-height:1.65}.subtle-help summary{cursor:pointer;padding:5px 0}.subtle-help p{margin-top:8px}.target-context{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.target-context strong{display:block;font-size:14px;margin-top:4px}.target-context .small{font-size:12px}.target-context .button{flex-shrink:0}
.connection-view{max-width:880px}.connection-picker{padding:16px 20px;margin-bottom:12px;display:flex;gap:16px;align-items:end}.connection-picker .field{flex:1}.connection-picker>p{flex:1;font-size:12px;line-height:1.6;margin-bottom:4px}.compact-shell .device-settings{padding:20px;margin:0;border:1px solid var(--line);border-radius:14px}.app-options{border:0;padding:0;margin:18px 0 14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}.app-options legend{font-size:13px;color:var(--muted);margin-bottom:8px}.app-options label{position:relative;cursor:pointer;min-width:0}.app-options input{position:absolute;opacity:0;width:1px;height:1px}.app-options label>span{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:10px;padding:13px 8px;text-align:center;min-height:68px;background:var(--soft)}.app-options strong{font-size:14px}.app-options small{font-size:11px;color:var(--muted)}.app-options input:checked+span{border-color:var(--blue);background:var(--blue-bg);box-shadow:inset 0 0 0 1px var(--blue)}.app-options input:focus-visible+span{outline:3px solid var(--blue);outline-offset:3px}.platform-picker{max-width:300px}.connect-steps{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.connect-step{display:flex;align-items:start;gap:10px;padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:12px;min-width:0}.connect-step>div{flex:1;min-width:0}.connect-step:last-child{grid-column:1/-1}.step-number{flex-shrink:0;width:23px;height:23px;border-radius:7px;background:var(--blue-bg);color:var(--blue);display:grid;place-items:center;font-size:12px;font-weight:700}.connect-step h3{font-size:14px;line-height:1.6}.connect-step p{font-size:13px;line-height:1.6;margin:7px 0 10px}.connect-step p:empty{display:none}.connect-step .small{font-size:12px}.connect-step .subtle-help{margin-top:8px}.installer-alternatives{display:grid;gap:7px;margin:8px 0;font-size:12px}.installer-alternatives a{overflow-wrap:anywhere}.profile-properties{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;font-size:13px}.profile-properties summary{cursor:pointer;padding:6px 0}.profile-properties form{margin-top:14px}.compact-shell .selection-empty{padding:20px;margin:12px 0;border:1px solid var(--line)}.compact-shell .selection-empty h2{font-size:17px}.compact-shell .selection-empty p{font-size:13px;margin:8px 0 12px}
.compact-shell .capability-notice{margin:14px 0;padding:12px 14px;font-size:12px}.compact-shell .capability-notice strong{font-size:13px}.compact-shell .capability-notice p{line-height:1.5}.compact-shell .preset-field{max-width:420px}.compact-shell .rules-list{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.compact-shell .rule-check{min-height:60px}.compact-shell .rule-title{font-size:14px}.compact-shell .rule-description{font-size:11px}.compact-shell .domain-section>summary{cursor:pointer;font-size:15px;font-weight:600;padding:12px 0}.compact-shell .domain-section .section-heading{margin-top:10px}.compact-shell .policy-footer{padding-top:14px}.compact-shell .catalog-results{gap:10px}.compact-shell .catalog-target{padding:12px}.compact-shell .view-panel{min-width:0}.compact-shell .mobile-navigation{display:none}
@media(max-width:980px){.compact-shell{display:block}.compact-shell .sidebar{padding:12px 18px}.compact-shell .brand{font-size:17px}.compact-shell .brand-mark{width:30px;height:30px}.compact-shell .main{padding:22px 20px calc(100px + env(safe-area-inset-bottom));max-width:900px}.compact-shell .mobile-navigation{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));margin:0;border-top:1px solid var(--line);background:var(--panel);box-shadow:0 -5px 20px #0001}.compact-shell .mobile-navigation a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:62px;min-width:0;padding:8px 3px;border:0;background:transparent;border-radius:11px;color:var(--muted)}.compact-shell .mobile-navigation svg{display:block;width:23px;height:23px}.compact-shell .mobile-navigation small{font-size:12px;line-height:1.3;font-weight:500}.compact-shell .mobile-navigation a.is-current{background:var(--blue-bg);color:var(--blue)}.compact-shell .mobile-navigation a:focus-visible{outline:2px solid var(--blue);outline-offset:1px}.compact-shell .navigation{display:none}}
@media(max-width:740px){.compact-shell .main{padding:18px 14px calc(102px + env(safe-area-inset-bottom))}.compact-shell .sidebar{padding:10px 14px}.compact-shell .page-heading{flex-direction:row;align-items:center;gap:10px;margin-bottom:16px}.compact-shell .page-heading h1{font-size:23px}.compact-shell .page-heading .muted{font-size:12px;max-width:260px}.compact-shell .page-heading [data-create-action] .button{max-width:115px;font-size:12px;padding:9px}.compact-shell .metric{padding:10px 12px}.compact-shell .metric strong{font-size:24px}.compact-shell .metric small{display:none}.compact-shell .owner-toolbar{flex-wrap:wrap}.compact-shell .filter-field{flex-basis:100%}.compact-shell .toolbar-actions{width:100%}.compact-shell .toolbar-actions>[data-issue]{flex:1}.compact-shell .customer-more{flex:1}.compact-shell .customer-more summary{justify-content:center}.compact-shell .access-panel,.compact-shell .settings-panel,.compact-shell .catalog-panel{padding:14px}.compact-shell .access-filters{grid-template-columns:minmax(0,1fr) 145px;gap:7px;margin-top:10px}.compact-shell .access-filters input,.compact-shell .access-filters select{font-size:14px;padding-left:9px;padding-right:9px}.compact-shell .access-card{grid-template-columns:minmax(0,1fr) 77px}.compact-shell .access-select{display:grid;grid-template-columns:20px minmax(0,1fr);gap:3px 9px;padding:10px}.compact-shell .access-select>input{grid-column:1;grid-row:1/3;align-self:center;margin:0}.compact-shell .access-identity{grid-column:2}.compact-shell .access-status{grid-column:2;display:flex;flex-direction:row;justify-content:flex-start;max-width:none;flex-wrap:wrap;text-align:left;margin:2px 0 0;gap:3px 5px}.compact-shell .access-open{font-size:11px;padding:8px}.compact-shell .access-name{font-size:14px}.compact-shell .access-code{font-size:11px}.compact-shell .access-subline{font-size:11px}.compact-shell .list-toolbar .check-label{font-size:12px}.compact-shell .selection-actions{padding:7px;gap:5px}.compact-shell .selection-actions .button{font-size:12px;padding:8px 10px}.compact-shell .connection-picker{padding:14px;display:block}.connection-picker>p{margin:8px 0 0}.compact-shell .device-settings{padding:14px}.compact-shell .device-settings>.section-heading{gap:8px;align-items:center}.compact-shell .device-settings>.section-heading h2{font-size:17px}.compact-shell .detail-statuses{max-width:none}.app-options{gap:6px;margin-top:14px}.app-options label>span{padding:11px 4px;min-height:63px}.app-options strong{font-size:12px}.app-options small{font-size:10px}.platform-picker{max-width:none}.connect-steps{grid-template-columns:1fr;margin-top:14px;gap:10px}.connect-step{padding:12px;gap:9px}.connect-step:last-child{grid-column:auto}.connect-step .button{min-height:44px}.compact-shell .rules-list{grid-template-columns:1fr}.target-context{padding:10px 12px}.target-context strong{font-size:12px}.target-context .button{font-size:12px;padding:8px}.compact-shell .rule-check{min-height:58px}.compact-shell .rule-legend{font-size:11px;gap:8px}.compact-shell .profile-properties form{flex-wrap:wrap}.compact-shell .profile-properties form .field{min-width:0;flex-basis:100%}.compact-shell .account-identity{max-width:85px}.compact-shell .avatar{display:none}}
@media(max-width:370px){.compact-shell .main{padding-left:10px;padding-right:10px}.compact-shell .access-panel,.compact-shell .settings-panel,.compact-shell .catalog-panel{padding:11px}.compact-shell .access-filters{grid-template-columns:1fr}.compact-shell .brand{font-size:15px}.compact-shell .account-identity{max-width:65px}.compact-shell .account{gap:8px}.compact-shell .mobile-navigation{padding-left:7px;padding-right:7px;gap:4px}.compact-shell .mobile-navigation small{font-size:11px}.compact-shell .access-card{grid-template-columns:minmax(0,1fr) 69px}.compact-shell .access-open{font-size:10px}.compact-shell .page-heading h1{font-size:21px}.compact-shell .page-heading .muted{font-size:11px}}

.key-open-button{margin-top:8px}.amnezia-key-modal .field{margin-top:18px}.amnezia-key-modal input{font-family:ui-monospace,monospace;font-size:14px;min-height:46px}.amnezia-key-modal .modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.amnezia-key-modal .button{min-height:44px}.amnezia-key-modal .key-privacy-note{margin-top:16px;font-size:12px;line-height:1.6}.amnezia-key-modal .notice{margin-top:14px}

.routing-modes{border:0;padding:0;margin:16px 0 8px;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.routing-modes legend{font-size:13px;color:var(--muted);margin-bottom:8px}.routing-modes label{position:relative;cursor:pointer;min-width:0}.routing-modes input{position:absolute;opacity:0;width:1px;height:1px}.routing-modes label>span{display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--soft);height:100%}.routing-modes strong{font-size:14px}.routing-modes small{font-size:12px;color:var(--muted);line-height:1.5}.routing-modes input:checked+span{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);background:var(--blue-bg)}.routing-modes input:focus-visible+span{outline:3px solid var(--blue);outline-offset:3px}.routing-modes input:disabled+span{opacity:.55;cursor:not-allowed}.routing-mode-help{font-size:12px;line-height:1.6;margin:10px 0 16px}.smart-routing-summary{padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:12px}.smart-routing-summary>div{display:grid;grid-template-columns:7px 90px 1fr;align-items:start;gap:9px;margin:7px 0;font-size:13px}.route-dot{height:6px;width:6px;margin-top:7px;border-radius:50%;background:var(--blue)}.route-dot.direct{background:var(--green)}.smart-routing-summary p{margin-top:13px;font-size:12px;line-height:1.6;color:var(--muted)}.smart-connect-shortcut{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:4px 0 12px;padding:10px 12px;border-radius:10px;background:var(--soft);font-size:12px;color:var(--muted)}.smart-connect-shortcut .text-button{padding:2px 0;min-height:36px}.compact-shell .app-options small{min-height:2.5em}
@media(max-width:390px){.routing-modes label>span{padding:11px 9px}.routing-modes strong{font-size:13px}.routing-modes small{font-size:11px}.smart-routing-summary>div{grid-template-columns:7px 1fr}.smart-routing-summary>div>span:last-child{grid-column:2}.smart-routing-summary p{font-size:11px}}

.access-term{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 17px;margin-bottom:14px;border-color:color-mix(in srgb,var(--blue) 35%,var(--line))}.access-term>div{min-width:0;flex:1}.access-term strong{display:block;font-size:20px;line-height:1.5}.access-term .small{font-size:12px}.access-term [data-term-deadline]{display:block}.access-term [data-term-access-count]{display:block;margin-top:3px}.access-term>p{flex-basis:100%;color:var(--danger);margin:0}.access-term[data-expired=true]{border-color:var(--danger)}.access-term[data-expired=true] strong{color:var(--danger)}.term-modal .term-customer-name{font-size:17px;font-weight:600;margin-bottom:5px}.term-modal form{display:grid;gap:15px;margin-top:18px}.term-modal form>.small{font-size:13px;line-height:1.6}.term-modal .modal-actions{display:flex;gap:10px;justify-content:space-between}.term-modal .button{min-height:44px}.term-modal .notice{margin:0}.term-modal .field select{font-size:16px}
@media(max-width:390px){.access-term{padding:12px}.access-term strong{font-size:18px}.access-term .button{max-width:98px;font-size:12px}.access-term .small{font-size:11px}}
