/* SEGGUE UI 5.3 — shared, dense but readable management controls.
   Loads after UI 5.2 and only within logged-in management shell. */
body.seggue-workspace-v4{--sg-ui-green:#087f5b;--sg-ui-ring:#2ec992;--sg-ui-radius:10px;--sg-ui-tight:9px;--sg-ui-font:14px}
body.seggue-workspace-v4 .sg-module{font-size:var(--sg-ui-font);line-height:1.48;min-width:0}
body.seggue-workspace-v4 .sg-workspace{max-width:none}
body.seggue-workspace-v4 .sg-module :is(p,li,dt,dd,legend,td,th){line-height:1.48;overflow-wrap:break-word}
body.seggue-workspace-v4 .sg-module :is(.liggo-section-head,.liggo-page-head,.liggo-ws-head){align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
body.seggue-workspace-v4 .sg-module :is(.liggo-page-head h1,.liggo-ws-head h1){font-size:clamp(20px,2vw,25px)!important;line-height:1.2!important;margin:0!important}
body.seggue-workspace-v4 .sg-module :is(.liggo-panel,.liggo-section,.postbox,.liggo-ws-panel){border-radius:var(--sg-ui-radius)!important;box-shadow:none!important}
body.seggue-workspace-v4 .sg-module :is(label,.liggo-fields label){font-size:13px!important;line-height:1.4!important}
body.seggue-workspace-v4 .sg-module :is(input[type=text],input[type=email],input[type=search],input[type=url],input[type=date],input[type=number],input[type=password],input[type=tel],select,textarea){font-size:14px!important;line-height:1.4!important;min-height:40px!important;border-radius:8px!important;color:var(--sg-ink)!important;background:var(--sg-surface)!important}
body.seggue-workspace-v4 .sg-module :is(button,.button,.button-primary,.button-secondary,input[type=submit]){font-size:13px!important;line-height:1.3!important;min-height:38px!important;border-radius:8px!important;padding:7px 12px!important;box-shadow:none!important}
body.seggue-workspace-v4 .sg-module :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--sg-ui-ring)!important;outline-offset:2px!important}
body.seggue-workspace-v4 .sg-module :is(.liggo-grid,.liggo-kpis,.liggo-stats,.liggo-ws-metrics){gap:10px!important}
body.seggue-workspace-v4 .sg-module :is(.widefat,table.wp-list-table,table.liggo-table){font-size:13px!important;border-collapse:separate;border-spacing:0;border-radius:9px;overflow:hidden}
body.seggue-workspace-v4 .sg-module :is(.widefat,table.wp-list-table,table.liggo-table) :is(th,td){font-size:13px!important;line-height:1.4!important;padding:9px 11px!important;vertical-align:middle}
body.seggue-workspace-v4 .sg-module :is(.widefat,table.wp-list-table,table.liggo-table) th{font-size:12px!important;letter-spacing:.01em;font-weight:760}
body.seggue-workspace-v4 .sg-module :is(.liggo-tabs a,.nav-tab,.liggo-card small,.liggo-kpi small,.liggo-stat small,.liggo-pagination p){font-size:12px!important}
body.seggue-workspace-v4 :is(.sg-sidebar-nav a,.sg-sidebar-nav summary,.sg-topbar,.sg-bottom-nav a){font-size:13px!important}
body.seggue-workspace-v4 .sg-sidebar-nav a{min-height:38px!important}
body.seggue-workspace-v4 :is(.sg-metric-name,.sg-progress-num,.sg-site-record small,.sg-ticket-rows small,.sg-state){font-size:12px!important}
body.seggue-workspace-v4 .sg-module :is(.liggo-conversation,.liggo-chat,.ticket-thread,.liggo-thread){background:var(--sg-surface)!important;border:1px solid var(--sg-border)!important;color:var(--sg-ink)!important;border-radius:11px!important;min-height:0!important}
body.seggue-workspace-v4 .sg-module .liggo-conversation :is(.liggo-message,.liggo-message-bubble,.message){font-size:14px!important;line-height:1.55!important;max-width:min(75ch,88%);overflow-wrap:anywhere}
html[data-lg-theme=dark] body.seggue-workspace-v4 .sg-module .liggo-conversation :is(.liggo-message.is-client,.liggo-message.is-internal){background:#283b3e!important;color:#ecf6f4!important;border-color:#46615b!important}
html[data-lg-theme=dark] body.seggue-workspace-v4 .sg-module .liggo-conversation .liggo-message :is(p,span,small){color:inherit!important}
body.seggue-workspace-v4 .sg-module .liggo-conversation :is(.liggo-message.is-team,.liggo-message.is-staff){background:#e4f5ea!important;color:#133c2b!important}
html[data-lg-theme=dark] body.seggue-workspace-v4 .sg-module .liggo-conversation :is(.liggo-message.is-team,.liggo-message.is-staff){background:#194838!important;color:#eafaf2!important}
body.seggue-workspace-v4 .sg-module :is(.notice,.liggo-alert,.liggo-notice){border-radius:9px!important;line-height:1.5!important}
@media(max-width:860px){body.seggue-workspace-v4 .sg-module :is(.liggo-form-grid,.liggo-fields,.liggo-input-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}body.seggue-workspace-v4 .sg-module :is(.liggo-form-grid,.liggo-fields) > *{min-width:0}}
@media(max-width:620px){body.seggue-workspace-v4 .sg-workspace{padding:12px 12px calc(80px + env(safe-area-inset-bottom))!important}body.seggue-workspace-v4 .sg-module :is(.liggo-form-grid,.liggo-fields,.liggo-input-grid){grid-template-columns:minmax(0,1fr)!important}body.seggue-workspace-v4 .sg-module :is(input:not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px!important}body.seggue-workspace-v4 .sg-module :is(button,.button,input[type=submit]){min-height:42px!important}body.seggue-workspace-v4 .sg-module :is(.widefat,table.wp-list-table,table.liggo-table) :is(td,th){font-size:13px!important}body.seggue-workspace-v4 .sg-bottom-nav a{font-size:11px!important;min-height:50px}}
@media(prefers-reduced-motion:reduce){body.seggue-workspace-v4 *,body.seggue-workspace-v4 *::before,body.seggue-workspace-v4 *::after{transition-duration:0ms!important;animation-duration:0ms!important}}
