/* SEGGUE Visual 2.2 — visual refinements, no business logic. */
:root{--sg22-green:#0b7859;--sg22-ink:#111e2d;--sg22-border:var(--lg-border,#dce5e0);--sg22-radius:12px}
/* Accessible controls, with a consistent interaction grammar. */
.site-main :is(button,.button,input[type=submit],a.button),.seggue-header-actions :is(button,a){transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease}
.site-main :is(input[type=search],input[type=text],input[type=email],input[type=url],select,textarea){min-height:42px;max-width:100%;border-radius:10px}
.site-main textarea{min-height:96px;resize:vertical}
.site-main :is(input,select,textarea):disabled{opacity:.65;cursor:not-allowed}
.site-main :is(input,select,textarea)[aria-invalid=true]{border-color:#b42318!important;box-shadow:0 0 0 1px #b42318!important}
.site-main :is(.liggo-ws-card,.liggo-ws-panel,.liggo-panel,.liggo-section,.card){min-width:0}
.site-main :is(.liggo-ws-card,.liggo-ws-panel,.liggo-panel,.liggo-section,.card) :is(h2,h3,h4){line-height:1.25;letter-spacing:-.012em}
.workspace .liggo-ws-metrics{gap:12px!important}
.workspace .liggo-ws-stat{min-width:0;min-height:88px!important;padding:14px 16px!important;gap:5px!important}
.workspace .liggo-ws-stat strong{font-variant-numeric:tabular-nums;font-size:clamp(22px,2vw,30px)!important;letter-spacing:-.035em}
.workspace .liggo-ws-stat span{font-size:12px!important;line-height:1.35!important}
.workspace .liggo-ws-card{padding:17px 18px!important;gap:10px!important}
.workspace .liggo-ws-card-action{gap:7px!important}
.workspace .liggo-ws-card-action :is(.button,a.button){min-height:40px!important}
.workspace :is(.liggo-ws-card,.liggo-ws-panel) :is(p,small){overflow-wrap:anywhere}
.workspace :is(table,.wp-list-table){width:100%;border-collapse:separate;border-spacing:0}
.workspace :is(table,.wp-list-table) :is(th,td){padding:11px 12px;vertical-align:middle;border-bottom:1px solid var(--sg22-border)}
.workspace :is(table,.wp-list-table) th{font-size:12px;font-weight:650;text-align:left;letter-spacing:.01em}
.workspace :is(table,.wp-list-table) tbody tr:hover{background:var(--lg-surface-2,#f6f9f8)}
/* Header: compact and orderly, maintaining logo visibility and keyboard navigation. */
.site-header .header-inner{min-height:62px!important;padding-block:9px!important;gap:14px!important}
.seggue-header-actions,.seggue-portal-header-actions{display:flex;align-items:center;gap:9px!important;min-width:0}
.lg-theme-icons{border-radius:12px!important}
.lg-theme-icons button{border-radius:8px!important;min-width:40px!important;min-height:40px!important}
.lg-theme-icons button[aria-pressed=true]{box-shadow:inset 0 0 0 1px rgba(11,120,89,.13)!important}
/* Bell: stable anchor, no invisible foreground or dark dropdown contrast failures. */
.seggue-bell{isolation:isolate}
.seggue-bell .seggue-bell-trigger{outline-offset:3px!important}
.seggue-bell .seggue-bell-panel{overflow:auto;overscroll-behavior:contain}
.seggue-bell .seggue-bell-title{gap:8px}
.seggue-bell .seggue-bell-list a{min-height:54px}
.seggue-bell .seggue-bell-list a:focus-visible{outline:2px solid #0b7859!important;outline-offset:-3px!important}
/* All light/dark explicit theme cases, including system preference. */
html[data-lg-theme=dark] .seggue-bell .seggue-bell-panel{background:#1d2a35!important;color:#f7faf9!important;border-color:#455663!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-title,html[data-lg-theme=dark] .seggue-bell .seggue-bell-list li{border-color:#3a4b57!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-list li[data-unread=true]{background:#263d3e!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-list span,html[data-lg-theme=dark] .seggue-bell .seggue-bell-list small,html[data-lg-theme=dark] .seggue-bell .seggue-bell-title small{color:#c1d0cc!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-list a:hover{background:#29443c!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-status{color:#cedbd8!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-retry{color:#94e0c0!important;border-color:#468c72!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-foot{border-color:#3a4b57!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-foot a{color:#9ce5c3!important}
html[data-lg-theme=dark] .seggue-bell .seggue-bell-count{border-color:#1e2935!important}
html[data-lg-theme=dark] .seggue-bell-toast{background:#21332f!important;color:#f7faf9!important;border-color:#37785c!important;border-left-color:#70ce9e!important}
html[data-lg-theme=dark] .seggue-bell-toast p{color:#d3ded9!important}
html[data-lg-theme=dark] .seggue-bell-toast a{color:#9ce5c3!important}
html[data-lg-theme=dark] .seggue-bell-toast button{color:#e1ebe6!important}
@media(prefers-color-scheme:dark){html:not([data-lg-theme=light]):not([data-lg-theme=dark]) .seggue-bell .seggue-bell-panel{background:#1d2a35!important;color:#f7faf9!important;border-color:#455663!important}html:not([data-lg-theme=light]):not([data-lg-theme=dark]) .seggue-bell .seggue-bell-list li[data-unread=true]{background:#263d3e!important}html:not([data-lg-theme=light]):not([data-lg-theme=dark]) .seggue-bell .seggue-bell-list span{color:#c1d0cc!important}}
/* Sidebar: indication, usable hit area, restrained visual emphasis. */
.sidebar :is(a,button,summary){min-height:40px}
.sidebar a[aria-current=page],.sidebar a.active,.sidebar .active>a{font-weight:700!important}
.sidebar .seggue-sidebar-admin>a{min-height:44px!important}
/* Small-screen behavior: no horizontal overflow, keep controls usable. */
@media(max-width:767px){.site-header .header-inner{min-height:60px!important;padding-block:8px!important}.seggue-header-actions,.seggue-portal-header-actions{gap:6px!important}.workspace .liggo-ws-metrics{gap:9px!important}.workspace .liggo-ws-stat{min-height:82px!important;padding:12px!important}.workspace .liggo-ws-card{padding:14px!important}.workspace :is(table,.wp-list-table) :is(td,th){padding:9px 10px}.seggue-bell .seggue-bell-panel{max-width:calc(100vw - 24px)!important}}
@media(prefers-reduced-motion:reduce){.site-main :is(button,.button,input[type=submit],a.button),.seggue-header-actions :is(button,a){transition:none!important}}
