:root{
  --sh-primary:#1d4ed8;
  --sh-bg:#f8fafc;
  --sh-sidebar:#0f172a;
  --sh-text:#0f172a;
  --sh-muted:#64748b;
  --sh-sidebar-expanded:270px;
}
.sh-body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--sh-bg);color:var(--sh-text);}
html.sh-subscriber-portal #navbar,
html.sh-subscriber-portal nav.navbar,
html.sh-subscriber-portal .navbar,
html.sh-subscriber-portal #chatWidget,
html.sh-subscriber-portal #chatToggleBtn,
html.sh-subscriber-portal #elin-ai-fab,
html.sh-subscriber-portal .elin-ai-fab{display:none!important;}
html.sh-subscriber-portal body{padding-top:0!important;}
.sh-app{display:grid;grid-template-columns:var(--sh-sidebar-expanded) minmax(0,1fr);min-height:100vh;min-width:0;width:100%;max-width:100%;}
.sh-sidebar{background:var(--sh-sidebar);color:#e2e8f0;padding:.9rem .75rem;display:flex;flex-direction:column;gap:.75rem;overflow:auto;}
.sh-brand{font-weight:700;font-size:1.05rem;display:flex;gap:.65rem;align-items:center;}
.sh-brand-mark{width:36px;height:36px;border-radius:10px;background:rgba(37,99,235,.35);border:1px solid rgba(147,197,253,.4);display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:800;color:#bfdbfe;}
.sh-brand small{display:block;font-weight:400;font-size:.72rem;color:#94a3b8;margin-top:.15rem;}
.sh-nav button,.sh-nav a{display:flex;align-items:center;gap:.55rem;width:100%;text-align:left;background:transparent;border:0;color:#cbd5e1;padding:.5rem .6rem;border-radius:8px;cursor:pointer;font:inherit;}
.sh-nav button.active,.sh-nav a.active{background:rgba(37,99,235,.35);color:#fff;}
.sh-icon,.sh-nav-icon,.sh-settings-icon{width:1.7rem;height:1.7rem;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:.85rem;background:color-mix(in srgb,currentColor 18%,transparent);}
.sh-nav button[data-section="overview"] .sh-nav-icon,.sh-nav a[data-section="overview"] .sh-nav-icon,.sh-icon--overview{color:#38bdf8;}
.sh-nav button[data-section="support"] .sh-nav-icon,.sh-nav a[data-section="support"] .sh-nav-icon,.sh-icon--support,.sh-icon--empty-support,.sh-icon--type-support{color:#34d399;}
.sh-nav button[data-section="engineering"] .sh-nav-icon,.sh-nav a[data-section="engineering"] .sh-nav-icon,.sh-icon--engineering,.sh-icon--empty-eng,.sh-icon--type-engineering{color:#a78bfa;}
.sh-nav button[data-section="requests"] .sh-nav-icon,.sh-nav a[data-section="requests"] .sh-nav-icon,.sh-icon--requests,.sh-icon--empty-catalogue,.sh-icon--type-request{color:#fbbf24;}
.sh-nav button[data-section="incidents"] .sh-nav-icon,.sh-nav a[data-section="incidents"] .sh-nav-icon,.sh-icon--incidents,.sh-icon--empty-incidents,.sh-icon--type-incident{color:#fb7185;}
.sh-nav button[data-section="dr"] .sh-nav-icon,.sh-nav a[data-section="dr"] .sh-nav-icon,.sh-icon--dr,.sh-icon--empty-services{color:#2dd4bf;}
.sh-nav button[data-section="qa"] .sh-nav-icon,.sh-nav a[data-section="qa"] .sh-nav-icon,.sh-icon--qa,.sh-icon--empty-qa{color:#818cf8;}
.sh-nav button[data-section="performance"] .sh-nav-icon,.sh-nav a[data-section="performance"] .sh-nav-icon,.sh-icon--performance,.sh-icon--empty-perf{color:#fb923c;}
.sh-nav button[data-section="reports"] .sh-nav-icon,.sh-nav a[data-section="reports"] .sh-nav-icon,.sh-icon--reports{color:#60a5fa;}
.sh-nav button[data-section="settings"] .sh-nav-icon,.sh-nav a[data-section="settings"] .sh-nav-icon,.sh-icon--settings{color:#f472b6;}
.sh-nav button[data-section="live_support"] .sh-nav-icon,.sh-nav a[data-section="live_support"] .sh-nav-icon,.sh-icon--live-support,.sh-icon--live_support{color:#06b6d4;}
.sh-nav button[data-section="feedback"] .sh-nav-icon,.sh-nav a[data-section="feedback"] .sh-nav-icon,.sh-icon--feedback{color:#d946ef;}
.sh-nav button[data-section="sla"] .sh-nav-icon,.sh-nav a[data-section="sla"] .sh-nav-icon,.sh-icon--sla{color:#eab308;}
.sh-nav button[data-section="quality"] .sh-nav-icon,.sh-nav a[data-section="quality"] .sh-nav-icon,.sh-icon--quality{color:#84cc16;}
.sh-nav button[data-section="unified"] .sh-nav-icon,.sh-nav a[data-section="unified"] .sh-nav-icon,.sh-icon--unified,.sh-icon--inbox{color:#f97316;}
.sh-icon--open-tickets{color:#2563eb;}
.sh-icon--due-today{color:#0284c7;}
.sh-icon--sla-at-risk{color:#ca8a04;}
.sh-icon--sla-breached{color:#dc2626;}
.sh-icon--unassigned{color:#64748b;}
.sh-icon--awaiting-qa{color:#4f46e5;}
.sh-icon--rework{color:#e11d48;}
.sh-icon--major-incidents{color:#be123c;}
.sh-icon--active-dr{color:#0f766e;}
.sh-icon--overdue-engineering{color:#c2410c;}
.sh-icon--due-soon{color:#d97706;}
.sh-icon--blocked{color:#7c3aed;}
.sh-icon--active-staff{color:#059669;}
.sh-icon--tasks-assigned{color:#0369a1;}
.sh-icon--tasks-completed{color:#16a34a;}
.sh-icon--completion-rate{color:#65a30d;}
.sh-icon--on-time{color:#0d9488;}
.sh-icon--qa-pass-rate{color:#4338ca;}
.sh-icon--first-time-pass-rate{color:#9333ea;}
.sh-icon--rework-rate{color:#9f1239;}
.sh-icon--sla-compliance{color:#1d4ed8;}
.sh-icon--open{color:#3b82f6;}
.sh-icon--volume{color:#475569;}
.sh-icon--overdue{color:#b91c1c;}
.sh-icon--verified{color:#15803d;}
.sh-icon--empty-open{color:#38bdf8;}
.sh-icon--workspace,.sh-settings-icon--workspace{color:#0369a1;}
.sh-icon--policy,.sh-settings-icon--policy{color:#ca8a04;}
.sh-icon--team,.sh-settings-icon--team{color:#c084fc;}
.sh-icon--workbook,.sh-settings-icon--workbook{color:#ea580c;}
.sh-icon--staff,.sh-settings-icon--staff{color:#14b8a6;}
.sh-icon--technical-team,.sh-settings-icon--technical-team{color:#1d4ed8;}
.sh-icon--new-support{color:#047857;}
.sh-icon--new-eng{color:#6d28d9;}
.sh-icon--new-template{color:#b45309;}
.sh-icon--new-incident{color:#e11d48;}
.sh-icon--new-service{color:#0f766e;}
.sh-icon--new-plan{color:#0891b2;}
.sh-icon--export{color:#1e40af;}
.sh-icon--apply{color:#0f766e;}
.sh-icon--refresh{color:#2563eb;}
.sh-icon--save-view{color:#7c2d12;}
.sh-icon--reset{color:#57534e;}
.sh-icon--drill{color:#0369a1;}
.sh-icon--source-live-chat{color:#22c55e;}
.sh-icon--source-sentry{color:#f43f5e;}
.sh-icon--source-workbook{color:#f59e0b;}
.sh-icon--menu,.sh-menu-btn i{color:#2563eb;}
.sh-heading,.sh-section-head h2,.sh-header h1,.sh-settings-heading{display:flex;align-items:center;gap:.5rem;margin:0;}
.sh-settings-heading{margin:1.15rem 0 .55rem;font-size:1.05rem;}
.sh-stat{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;}
.sh-btn{display:inline-flex;align-items:center;gap:.4rem;}
.sh-list-item{align-items:flex-start;}
.sh-list-item .sh-icon{margin-right:.15rem;}
.sh-empty-card .sh-icon{width:2.2rem;height:2.2rem;font-size:1.05rem;}
.sh-main{min-width:0;max-width:100%;padding:0 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));}
.sh-header{display:flex;align-items:center;gap:.75rem;padding:1rem 0;flex-wrap:wrap;}
.sh-header h1{margin:0;font-size:1.25rem;}
.sh-header-search{position:relative;flex:1;min-width:12rem;}
.sh-header-search .sh-input{width:100%;}
.sh-org{margin:0;font-size:.85rem;opacity:.8;}
.sh-search-results{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:.25rem;background:#fff;color:#142033;border-radius:.5rem;box-shadow:0 8px 24px rgba(0,0,0,.16);padding:.35rem;max-height:16rem;overflow:auto;}
.sh-search-results button{display:block;width:100%;text-align:left;background:transparent;border:0;padding:.4rem .5rem;cursor:pointer;}
.sh-search-results button:hover{background:#f2f4f8;}
.sh-lifecycle{display:flex;flex-wrap:wrap;gap:.35rem .75rem;list-style:none;padding:0;margin:.75rem 0;}
.sh-lifecycle li{font-size:.85rem;}
.sh-lifecycle .is-done{color:#166534;}
.sh-lifecycle .is-current{font-weight:700;}
.sh-lifecycle .is-pending{color:#64748b;}
.sh-matrix{width:100%;border-collapse:collapse;margin:.5rem 0 1rem;font-size:.85rem;}
.sh-matrix th,.sh-matrix td{border-bottom:1px solid #e2e8f0;text-align:left;padding:.35rem .4rem;vertical-align:top;}
.sh-matrix tbody tr{cursor:pointer;}
.sh-duplicate{border:1px solid #f59e0b;border-radius:.5rem;padding:.6rem .75rem;margin:.5rem 0;}
.sh-queue-health,.sh-service-health{margin:.75rem 0;}
.sh-load{display:flex;align-items:center;gap:.5rem;margin:.35rem 0;}
.sh-load-track{flex:1;height:.7rem;background:#e2e8f0;border-radius:999px;overflow:hidden;}
.sh-load-fill{display:block;height:100%;background:#2563eb;}
.sh-load-fill.is-high{background:#d97706;}
.sh-load-fill.is-full,.sh-load-fill.is-over{background:#b91c1c;}
.sh-load-label{font-size:.8rem;white-space:nowrap;}
#shRole,.sh-role-badge{display:none !important;}
.sh-menu-btn{display:none;min-width:44px;min-height:44px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;}
.sh-section{display:none}.sh-section.active{display:block}
.sh-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-bottom:1rem;}
.sh-stat{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:.85rem;cursor:pointer;}
.sh-stat .label{font-size:.75rem;color:var(--sh-muted);}
.sh-stat .value{font-size:1.35rem;font-weight:700;margin-top:.2rem;}
.sh-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;margin-bottom:1rem;}
.sh-toolbar{display:flex;gap:.5rem;flex-wrap:nowrap;align-items:center;margin-bottom:1rem;overflow-x:auto;}
.sh-toolbar-actions,.sh-dr-actions,.sh-qa-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:.5rem;}
.sh-input,select.sh-input,textarea.sh-input{border:1px solid #cbd5e1;border-radius:8px;padding:.5rem .7rem;font:inherit;min-height:40px;flex:1 1 140px;}
.sh-btn{border:1px solid #cbd5e1;background:#fff;padding:.55rem .85rem;min-height:40px;border-radius:8px;cursor:pointer;}
.sh-btn-primary{background:var(--sh-primary);color:#fff;border-color:var(--sh-primary);}
.sh-badge{display:inline-block;border-radius:999px;padding:.15rem .55rem;font-size:.72rem;font-weight:600;}
.sh-badge-ok{background:#dcfce7;color:#166534;}
.sh-badge-warn{background:#fef3c7;color:#92400e;}
.sh-badge-bad{background:#fee2e2;color:#991b1b;}
.sh-badge-info{background:#dbeafe;color:#1e40af;}
.sh-list-item{padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:.5rem;display:flex;justify-content:space-between;gap:.75rem;cursor:pointer;width:100%;text-align:left;background:#fff;font:inherit;color:inherit;}
.sh-kpi-row{display:flex;flex-wrap:wrap;gap:.75rem;margin:0 0 1rem;}
.sh-kpi{min-width:7rem;padding:.55rem .75rem;border:1px solid #e2e8f0;border-radius:8px;background:#fff;}
.sh-kpi strong{display:block;font-size:1.15rem;}
.sh-ops-split{display:grid;grid-template-columns:minmax(240px,1fr) minmax(280px,1.15fr);gap:1rem;align-items:start;}
.sh-ops-detail{margin:0;}
.sh-chat-back{display:none;}
#shChatDetail.sh-ops-detail:not([hidden]){display:flex;flex-direction:column;min-width:0;}
#shChatReply,#shChatNote{position:relative;z-index:3;background:#fff;flex-shrink:0;}
#shChatReply .sh-btn,#shChatNote .sh-btn{flex-shrink:0;}
.sh-chat-thread{max-height:360px;overflow:auto;display:flex;flex-direction:column;gap:.5rem;padding:.25rem 0 1rem;position:relative;z-index:0;isolation:isolate;}
.sh-chat-msg{padding:.55rem .75rem;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;}
.sh-chat-msg.agent{background:#eff6ff;border-color:#bfdbfe;}
.sh-chat-msg.customer{background:#fff;}
.sh-chat-msg.system{background:#f1f5f9;color:#475569;font-size:.85rem;}
.sh-perf-cards{display:none;}
.sh-perf-card{border:1px solid #e2e8f0;border-radius:10px;padding:.75rem;margin-bottom:.5rem;background:#fff;}
.sh-perf-card h3{margin:0 0 .35rem;font-size:1rem;}
.sh-perf-card p{margin:.15rem 0;font-size:.85rem;}
#shDlgError{text-align:left;padding:.4rem 0;color:#991b1b;}
.sh-muted{color:var(--sh-muted);font-size:.85rem;}
.sh-empty{text-align:center;padding:2.5rem 1rem;color:var(--sh-muted);}
.sh-bars{display:flex;align-items:flex-end;gap:.5rem;height:180px;padding:.5rem 0;}
.sh-bar{flex:1;min-width:28px;background:#93c5fd;border-radius:6px 6px 0 0;position:relative;}
.sh-bar.wed{background:#2563eb;}
.sh-bar.fri{background:#7c3aed;}
.sh-bar.zero{background:#e2e8f0;min-height:8px;}
.sh-bar span{position:absolute;bottom:-1.4rem;left:50%;transform:translateX(-50%);font-size:.65rem;white-space:nowrap;}
.sh-table{width:100%;border-collapse:collapse;font-size:.9rem;}
.sh-table th,.sh-table td{text-align:left;padding:.45rem .4rem;border-bottom:1px solid #e2e8f0;vertical-align:top;}
.sh-detail{display:grid;gap:.75rem;}
/* Phone and tablet: the rail is a drawer. html.sh-compact is also set when
   the ERP shell clips a wide iframe down to a narrow window — media queries
   inside that frame still see the desktop viewport, which left the 270px
   rail on screen and the workspace as a blank sliver. */
@media (max-width:900px){
  .sh-app{display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;}
  .sh-app:not(.sh-nav-open) .sh-sidebar{position:fixed !important;inset:0 auto 0 0 !important;width:min(86vw,280px) !important;max-width:min(86vw,280px) !important;transform:translate3d(-110%,0,0) !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important;z-index:100080;}
  .sh-app.sh-nav-open .sh-sidebar{position:fixed !important;inset:0 auto 0 0 !important;width:min(86vw,280px) !important;max-width:min(86vw,280px) !important;transform:none !important;visibility:visible !important;opacity:1 !important;pointer-events:auto !important;z-index:100080;}
  .sh-menu-btn{display:inline-flex !important;align-items:center;justify-content:center;}
  .sh-main{display:block !important;width:100% !important;max-width:100% !important;margin:0 !important;}
  .sh-stats{grid-template-columns:1fr 1fr;}
  .sh-ops-split{grid-template-columns:1fr;}
  .sh-chat-back{display:inline-flex;}
  [data-sh-section='live_support'].sh-chat-selected #shChatList,
  [data-sh-section='live_support'].sh-chat-selected .sh-tabs{display:none;}
  .sh-chat-thread{max-height:min(40vh,240px);}
  #shChatReply,#shChatNote{position:sticky;bottom:0;z-index:4;padding:.35rem 0 .15rem;}
}
html.sh-compact .sh-app{display:block !important;width:var(--sh-visible-width,100%) !important;max-width:var(--sh-visible-width,100%) !important;min-width:0 !important;}
html.sh-compact .sh-app:not(.sh-nav-open) .sh-sidebar{position:fixed !important;inset:0 auto 0 0 !important;width:min(86vw,280px) !important;max-width:min(86vw,280px) !important;transform:translate3d(-110%,0,0) !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important;z-index:100080;}
html.sh-compact .sh-app.sh-nav-open .sh-sidebar{position:fixed !important;inset:0 auto 0 0 !important;width:min(86vw,280px) !important;max-width:min(86vw,280px) !important;transform:none !important;visibility:visible !important;opacity:1 !important;pointer-events:auto !important;z-index:100080;}
html.sh-compact .sh-menu-btn{display:inline-flex !important;align-items:center;justify-content:center;}
html.sh-compact .sh-main{display:block !important;width:100% !important;max-width:100% !important;margin:0 !important;}
html.sh-compact .sh-stats{grid-template-columns:1fr 1fr;}
html.sh-compact .sh-ops-split{grid-template-columns:1fr;}
html.sh-compact .sh-chat-back{display:inline-flex;}
html.sh-compact [data-sh-section='live_support'].sh-chat-selected #shChatList,
  html.sh-compact [data-sh-section='live_support'].sh-chat-selected .sh-tabs{display:none;}
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected .sh-section-head,
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected #shMonitoringAnalytics,
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected #shMonitoringHealth,
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected .sh-toolbar:has(#shNewIncident),
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected #shNewIncident,
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected .sh-tabs,
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected #shIncidentList{display:none !important;}
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected #shIncidentDetail{display:block;position:relative;z-index:5;}
  html.sh-compact [data-sh-section='incidents'].sh-incident-selected #shIncidentDetail .sh-toolbar{flex-wrap:wrap;}
html.sh-compact .sh-chat-thread{max-height:min(40vh,240px);}
html.sh-compact #shChatReply,html.sh-compact #shChatNote{position:sticky;bottom:0;z-index:4;padding:.35rem 0 .15rem;}
html.sh-compact .sh-perf-table{display:none;}
html.sh-compact .sh-perf-cards{display:block;}
@media (max-width:900px){
  .sh-perf-table{display:none;}
  .sh-perf-cards{display:block;}
}
.sh-tabs{display:flex;flex-wrap:wrap;gap:.35rem;margin:.75rem 0;}
.sh-tab{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:.4rem .8rem;min-height:40px;cursor:pointer;}
.sh-tab.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8;}
.sh-dialog{border:0;border-radius:12px;padding:0;width:min(92vw,480px);}
.sh-dialog::backdrop{background:rgba(15,23,42,.45);}
.sh-dialog .sh-panel{margin:0;}
.sh-dialog label{display:block;font-size:.8rem;margin:.6rem 0 .2rem;}
.sh-bar-pair{display:flex;flex-direction:column;align-items:center;gap:.15rem;flex:1;min-width:36px;}
.sh-bar-pair .wed,.sh-bar-pair .fri{width:100%;border-radius:6px 6px 0 0;}
.sh-bar-pair .fri{background:#7c3aed;}
.sh-legend{display:flex;gap:1rem;font-size:.8rem;color:var(--sh-muted);margin:.5rem 0 1.6rem;}
.sh-legend i{display:inline-block;width:.7rem;height:.7rem;border-radius:2px;margin-right:.3rem;}
.sh-legend .wed{background:#2563eb;}
.sh-legend .fri{background:#7c3aed;}
.sh-legend .zero{background:#e2e8f0;}
.sh-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.4);z-index:100075;}
.sh-app.sh-nav-open .sh-backdrop{display:block;}
.sh-nav button{min-height:44px;}
.sh-section-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap;margin-bottom:.5rem;}
.sh-section-head h2{margin:0 0 .35rem;}
.sh-toolbar-end{margin:0;justify-content:flex-end;}
.sh-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem;}
.sh-card{border:1px solid #e2e8f0;border-radius:12px;padding:1rem;background:#fff;display:flex;flex-direction:column;gap:.45rem;text-align:left;}
.sh-card-cta{font-size:.8rem;font-weight:700;color:#1d4ed8;}
.sh-chip-row{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin:.35rem 0 .6rem;}
.sh-empty-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;}
.sh-empty-card .sh-toolbar,.sh-empty-card .sh-qa-actions{flex-wrap:nowrap;justify-content:center;}
.sh-card .sh-toolbar,.sh-card .sh-dr-actions{flex-wrap:nowrap;align-items:center;}
.sh-dr-plan{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;margin-top:.55rem;}
.sh-dr-plan-title{font-weight:600;}
.sh-banner{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:.75rem 1rem;margin-bottom:1rem;color:#1e3a8a;font-size:.9rem;}
.sh-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem;margin:1rem 0;align-items:end;}
.sh-form-grid .sh-span{grid-column:1 / -1;}
.sh-workbook-form{display:flex;flex-direction:column;gap:.65rem;max-width:40rem;margin:1rem 0;}
.sh-workbook-form textarea{min-height:8rem;}
.sh-workbook-form .sh-toolbar{justify-content:flex-start;}
.sh-form-grid label{font-size:.8rem;color:var(--sh-muted);}
.sh-check{display:flex;align-items:center;gap:.4rem;font-size:.85rem;}
.sh-inline-label{font-size:.8rem;color:var(--sh-muted);align-self:center;}
html.sh-compact .sh-section-head{flex-direction:column;}
html.sh-compact .sh-card-grid{grid-template-columns:1fr;}
html.sh-compact .sh-form-grid{grid-template-columns:1fr;}
@media (max-width:900px){
  .sh-section-head{flex-direction:column;}
  .sh-card-grid{grid-template-columns:1fr;}
  .sh-form-grid{grid-template-columns:1fr;}
}

:root{
  --sh-ok:#166534;
  --sh-warn:#92400e;
  --sh-critical:#991b1b;
  --sh-info:#1e40af;
}
.sh-stat{box-shadow:0 8px 20px rgba(15,23,42,.05);transition:transform .15s ease,box-shadow .15s ease;text-align:left;font:inherit;color:inherit;}
.sh-stat:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.08);}
.sh-stat .delta{font-size:.75rem;margin-top:.25rem;}
.sh-stat .delta.up{color:var(--sh-ok);}
.sh-stat .delta.down{color:var(--sh-critical);}
.sh-filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 1rem;}
.sh-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem;margin-bottom:1rem;}
.sh-chart-panel{padding:.75rem 1rem;}
.sh-countdown{display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;padding:.12rem .5rem;font-size:.7rem;font-weight:700;letter-spacing:.01em;}
.sh-countdown-normal{background:#dbeafe;color:#1e3a8a;}
.sh-countdown-warning{background:#fef3c7;color:#92400e;}
.sh-countdown-critical{background:#ffedd5;color:#9a3412;}
.sh-countdown-overdue{background:#fee2e2;color:#991b1b;}
.sh-countdown-none{background:#f1f5f9;color:#475569;}
.sh-countdown-healthy{background:#dcfce7;color:#166534;}
.sh-countdown-urgent{background:#ffedd5;color:#9a3412;}
.sh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.sh-ticket-card{display:flex;gap:.75rem;align-items:flex-start;}
.sh-ticket-thumb{width:72px;height:48px;object-fit:cover;border-radius:8px;background:#e2e8f0;flex:0 0 auto;}
.sh-ticket-purged{font-size:.7rem;line-height:1.2;color:var(--sh-muted);max-width:5.5rem;}
.sh-screenshots-removed{margin:.35rem 0;}
.sh-evidence{display:inline-block;margin:.35rem .5rem .35rem 0;max-width:220px;vertical-align:top;}
.sh-evidence img{display:block;width:100%;border-radius:8px;cursor:zoom-in;}
.sh-evidence figcaption{margin-top:.35rem;font-size:.78rem;color:#334155;line-height:1.35;white-space:normal;}
.sh-evidence-shot{max-width:min(420px,100%);}
.sh-evidence-frame{background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;min-height:8rem;}
.sh-evidence-frame img{width:100%;height:auto;object-fit:contain;background:#fff;}
.sh-evidence-url{margin:.35rem 0;word-break:break-all;}
.sh-evidence-url a{color:#2563eb;}
.sh-tech-team{margin:0 0 1.1rem;padding:.9rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.sh-tech-team-title{margin:0 0 .35rem;font-size:1rem;}
.sh-command{margin:0 0 1rem;}
.sh-tech-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.65rem;margin-top:.65rem;}
.sh-tech-card{border:1px solid #e2e8f0;border-radius:10px;padding:.7rem .8rem;background:#f8fafc;min-height:88px;display:flex;flex-direction:column;gap:.35rem;}
.sh-tech-card strong{display:block;}
.sh-tech-card .sh-muted{margin-top:.2rem;}
.sh-tech-card-head{display:flex;align-items:center;gap:.65rem;}
.sh-tech-photo,.sh-tech-photo-fallback{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#dbeafe;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 44px;}
.sh-avail{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;font-weight:700;border-radius:999px;padding:.15rem .5rem;background:#dcfce7;color:#166534;}
.sh-avail-busy{background:#fef3c7;color:#92400e;}
.sh-avail-away{background:#e2e8f0;color:#334155;}
.sh-avail-offline{background:#fee2e2;color:#991b1b;}
.sh-workload{display:flex;flex-wrap:wrap;gap:.35rem;font-size:.75rem;color:#475569;}
.sh-timeline{margin:0 0 1rem;padding:.9rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.sh-timeline ol{margin:.4rem 0 0;padding:0;list-style:none;max-height:14rem;overflow:auto;}
.sh-timeline li{display:flex;flex-wrap:wrap;gap:.45rem;padding:.35rem 0;border-top:1px solid #e2e8f0;font-size:.85rem;}
.sh-duty-row{display:flex;flex-wrap:wrap;gap:.45rem;margin:.45rem 0;}
.sh-duty-row label{display:flex;align-items:center;gap:.3rem;font-size:.85rem;}
.sh-assign-form{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end;margin:.6rem 0 1rem;}
.sh-inspect{margin:0 0 1rem;padding:.85rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.sh-inspect-label{margin:0 0 .45rem;font-weight:700;}
.sh-inspect-bar{display:flex;flex-wrap:nowrap;gap:.5rem;align-items:center;overflow-x:auto;}
.sh-inspect-bar .sh-btn,.sh-inspect-bar .sh-input{flex:0 0 auto;}
.sh-inspect-bar a.sh-btn{text-decoration:none;color:inherit;}
.sh-reviewer-activity{display:flex;flex-direction:column;align-items:stretch;gap:.6rem;margin:.35rem 0 .75rem;}
.sh-reviewer-pick{display:flex;flex-direction:column;gap:.3rem;font-weight:600;max-width:28rem;width:100%;}
.sh-reviewer-pick .sh-input{width:100%;font-weight:500;}
.sh-reviewer-stats-name{display:flex;align-items:center;gap:.45rem;margin:0;font-weight:600;}
.sh-reviewer-stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.5rem;}
.sh-reviewer-stat{border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:.55rem .7rem;}
.sh-reviewer-stat .label{display:block;color:#64748b;font-size:.75rem;}
.sh-reviewer-stat .value{display:block;margin-top:.15rem;font-size:1.15rem;font-weight:700;}
.sh-reviewer-mark{display:inline-flex;align-items:center;justify-content:center;min-width:1.7rem;height:1.7rem;border-radius:999px;background:#1e3a8a;color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.02em;}
.sh-reviewer-chart{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:.85rem 1rem .7rem;}
.sh-reviewer-chart h3{margin:0;font-size:1rem;font-weight:600;}
.sh-reviewer-chart .sh-muted{margin:.2rem 0 .55rem;}
.sh-reviewer-chart-canvas{position:relative;height:16.5rem;width:100%;}
@media (max-width:720px){
  .sh-reviewer-chart-canvas{height:18.5rem;}
}
.sh-team-perf{margin:.75rem 0 1rem;padding:.85rem 1rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.sh-team-perf h3{margin:0;font-size:1rem;font-weight:600;}
.sh-team-perf-filters{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end;margin:.65rem 0;}
.sh-team-perf-filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;font-weight:600;min-width:0;}
.sh-team-perf-filters [hidden]{display:none !important;}
.sh-reviewer-chart-canvas[hidden],.sh-reviewer-pick[hidden],.sh-chart-empty[hidden]{display:none !important;}
.sh-chart-empty{margin:.5rem 0 0;padding:1.25rem 1rem;border:1px dashed #cbd5e1;border-radius:10px;}
.sh-team-perf-filters .sh-input{min-width:9.5rem;width:100%;}
.sh-team-perf-table{width:100%;border-collapse:collapse;}
.sh-team-perf-table th,.sh-team-perf-table td{text-align:left;padding:.4rem .45rem;border-bottom:1px solid #e2e8f0;font-size:.85rem;}
.sh-team-perf-table tbody tr{cursor:pointer;}
.sh-team-perf-table tr.is-selected td{background:#eff6ff;}
.sh-team-perf-cards{display:none;}
.sh-team-perf-card{display:block;width:100%;text-align:left;border:1px solid #e2e8f0;border-radius:10px;padding:.7rem;margin:.4rem 0;background:#fff;cursor:pointer;}
.sh-team-perf-card.is-selected{outline:2px solid #1d4ed8;}
.sh-team-perf-card h4{margin:0 0 .35rem;font-size:.95rem;}
.sh-team-perf-card p{margin:.15rem 0;font-size:.85rem;}
.sh-team-perf-drill{margin-top:.7rem;}
.sh-team-perf-drill button{display:block;width:100%;text-align:left;margin:.25rem 0;}
html.sh-compact .sh-team-perf-table{display:none;}
html.sh-compact .sh-team-perf-cards{display:block;}
@media (max-width:900px){
  .sh-team-perf-table{display:none;}
  .sh-team-perf-cards{display:grid;}
  .sh-team-perf-filters .sh-input{min-width:0;flex:1 1 100%;}
}
.sh-inspect-bar #shInspectPath{flex:1 1 220px;min-width:180px;}
.sh-inspect-bar .sh-input{min-width:min(220px,100%);flex:1 1 160px;}
.sh-inspect-status{margin:.25rem 0 0;font-size:.75rem;line-height:1.3;color:var(--sh-muted);}
.sh-inspect-status:not([hidden]){margin:.55rem 0 0;padding:.7rem .85rem;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a;font-size:.85rem;font-weight:600;}
.sh-inspect-fallback{margin:.5rem 0 0;padding:.75rem .9rem;border:1px solid #f59e0b;border-left-width:4px;border-radius:10px;background:#fffbeb;color:#422006;}
.sh-inspect-fallback-msg{margin:0 0 .35rem;font-weight:600;line-height:1.4;}
.sh-inspect-fallback-reason{margin:0 0 .35rem;font-size:.8rem;}
.sh-inspect-fallback-url{margin:0 0 .55rem;font-size:.8rem;overflow-wrap:anywhere;}
.sh-inspect-fallback-url code{font-size:.8rem;background:#fff;border:1px solid #fde68a;border-radius:6px;padding:.05rem .35rem;}
.sh-inspect-fallback-actions{display:flex;flex-wrap:wrap;gap:.5rem;}
.sh-inspect-fallback-actions .sh-btn{text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;}
.sh-inspect-upload-instead{margin:.35rem 0 0;text-align:right;}
.sh-link-btn{background:none;border:0;padding:.15rem 0;color:#1d4ed8;font:inherit;font-size:.8rem;text-decoration:underline;cursor:pointer;}
.sh-link-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px;border-radius:3px;}
.sh-inspect-stage{margin-top:.75rem;}
.sh-inspect-stage[data-display="mobile"],
.sh-inspect-stage[data-display="tablet"]{display:flex;justify-content:center;background:#e2e8f0;border-radius:12px;padding:.75rem 0;}
.sh-inspect-stage[data-display="mobile"] .sh-inspect-frame{width:390px;max-width:100%;}
.sh-inspect-stage[data-display="tablet"] .sh-inspect-frame{width:768px;max-width:100%;}
.sh-display-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px;}
.sh-display-mode{display:inline-flex;gap:.25rem;flex:0 0 auto;}
.sh-display-btn.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8;}
.sh-inspect-frame{display:block;width:100%;min-height:min(72vh,860px);height:72vh;margin-top:0;border:1px solid #cbd5e1;border-radius:10px;background:#fff;}
.sh-inspect-frame[hidden]{display:none;}
html.sh-qa-open .sh-header{padding:.35rem 0;}
html.sh-qa-open .sh-header h1{font-size:1.05rem;}
html.sh-qa-open .sh-main{padding:0 .75rem calc(5.5rem + env(safe-area-inset-bottom, 0px));}
.sh-qa-desk .sh-qa-panel{padding:.45rem .6rem .6rem;margin-bottom:.65rem;}
.sh-qa-desk .sh-inspect{margin:0 0 .65rem;padding:0;border:0;border-radius:0;background:transparent;}
.sh-qa-desk .sh-inspect-bar{gap:.35rem;flex-wrap:nowrap;}
.sh-qa-desk .sh-qa-mark{margin:0;font-size:.9rem;}
.sh-qa-desk .sh-inspect-bar .sh-input{min-width:min(140px,100%);flex:1 1 110px;min-height:34px;padding:.28rem .5rem;}
.sh-qa-desk .sh-inspect-bar .sh-btn{min-height:34px;padding:.28rem .65rem;}
.sh-qa-desk .sh-inspect-status{margin:.2rem 0 0;}
.sh-qa-desk .sh-inspect-frame{margin-top:.3rem;height:calc(100vh - 10.5rem);min-height:32rem;}
html.sh-compact .sh-inspect-bar,
html.sh-compact .sh-qa-desk .sh-inspect-bar{flex-direction:row;flex-wrap:wrap;align-items:center;overflow-x:visible;}
html.sh-compact .sh-qa-desk .sh-inspect-bar #shInspectModule,
html.sh-compact .sh-qa-desk .sh-inspect-bar #shInspectPath{flex:1 1 100%;}
html.sh-compact .sh-inspect-frame{min-height:58vh;height:58vh;}
html.sh-compact.sh-qa-open .sh-qa-desk .sh-inspect-frame{height:calc(100vh - 14rem);min-height:22rem;}
html.sh-compact .sh-qa-desk .sh-inspect-bar .sh-btn,
html.sh-compact .sh-qa-desk .sh-inspect-bar .sh-input{flex:1 1 calc(50% - .35rem);min-width:0;}
@media (max-width:900px){
  .sh-inspect-bar,
  .sh-qa-desk .sh-inspect-bar{flex-direction:row;flex-wrap:nowrap;align-items:center;overflow-x:auto;}
  .sh-inspect-frame{min-height:58vh;height:58vh;}
  .sh-qa-desk .sh-inspect-frame{height:calc(100vh - 14rem);min-height:22rem;}
  .sh-qa-desk .sh-inspect-bar .sh-btn,
  .sh-qa-desk .sh-inspect-bar .sh-input{flex:1 1 calc(50% - .35rem);min-width:0;}
}
.sh-heat-row{display:flex;flex-wrap:wrap;gap:.45rem;margin:.4rem 0 1rem;}
.sh-heat-chip{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:.35rem .7rem;min-height:40px;cursor:pointer;}
.sh-open-page{font-size:.78rem;font-weight:700;}
@media (max-width:900px){
  .sh-ticket-card{flex-direction:column;}
  .sh-ticket-thumb{width:100%;height:140px;}
}
.sh-kanban{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem;}
.sh-kanban-col{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:.55rem;min-height:120px;}
.sh-kanban-col h3{margin:0 0 .5rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--sh-muted);}
.sh-list-item{align-items:flex-start;}
.sh-list-meta{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.35rem;}
.sh-profile-head{display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap;}
.sh-avatar{width:56px;height:56px;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-weight:800;}
.sh-table tr[data-user]{cursor:pointer;}
.sh-table tr[data-user]:hover{background:#eff6ff;}
.sh-empty-card{background:linear-gradient(180deg,#fff, #f8fafc);border:1px dashed #cbd5e1;border-radius:14px;padding:2rem 1.2rem;}
html.sh-compact .sh-chart-grid,.sh-kanban{grid-template-columns:1fr;}
@media (max-width:900px){
  .sh-chart-grid,.sh-kanban{grid-template-columns:1fr;}
  .sh-filter-bar .sh-input{flex:1 1 100%;}
}
.sh-btn[hidden],
.sh-qa-session[hidden],
.sh-qa-report[hidden],
.sh-notice-count[hidden],
.sh-notice-panel[hidden]{display:none !important;}
.sh-header{position:relative;}
.sh-notice-wrap{position:relative;flex:0 0 auto;}
.sh-notice-btn{position:relative;min-width:44px;}
.sh-notice-count{position:absolute;top:-.25rem;right:-.25rem;background:#dc2626;color:#fff;border-radius:999px;min-width:1.15rem;height:1.15rem;font-size:.68rem;line-height:1.15rem;padding:0 .28rem;text-align:center;}
.sh-notice-panel{position:absolute;right:0;top:calc(100% + .35rem);width:min(22rem,86vw);background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.12);z-index:50;padding:.55rem;max-height:20rem;overflow:auto;}
.sh-notice-item{display:block;width:100%;text-align:left;border:0;background:#f8fafc;border-radius:8px;padding:.5rem .6rem;margin:.3rem 0;cursor:pointer;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;}
.sh-notice-item strong,.sh-notice-item .sh-muted{display:block;white-space:normal;overflow-wrap:anywhere;}
.sh-notice-item.is-read{opacity:.65;}
.sh-qa-session,.sh-qa-report{margin:.45rem 0;}
.sh-qa-report{border:1px solid #e2e8f0;border-radius:12px;padding:.75rem .85rem;background:#fff;}
.sh-quality-edge,.sh-quality-card{border:1px solid #e2e8f0;border-radius:12px;padding:.65rem .75rem;background:#f8fafc;margin:.4rem 0;}
.sh-quality-map,.sh-quality-grid{display:flex;flex-wrap:wrap;gap:.55rem;}
.sh-quality-edge{flex:1 1 14rem;}
.sh-journey-step{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.35rem 0;}
.sh-release-ready{font-weight:700;}
.sh-release-ok{color:#166534;}
.sh-release-blocked{color:#991b1b;}
.sh-score-note{font-size:.85rem;}
@media (max-width:900px){
  .sh-quality-edge,.sh-journey-step,.sh-quality-grid{flex-direction:column;align-items:stretch;}
  /* The bell sits on the right. Anchoring the panel to the bell's left edge
     and giving it a viewport width pushed the copy off the screen. Stretch
     it across the header instead. */
  .sh-notice-wrap{position:static;}
  .sh-notice-panel{
    left:0;
    right:0;
    width:auto;
    max-width:none;
    box-sizing:border-box;
  }
}
html.sh-compact .sh-notice-wrap{position:static;}
html.sh-compact .sh-notice-panel{
  left:0;
  right:0;
  width:auto;
  max-width:none;
  box-sizing:border-box;
}

/* Even button rows: shared outer edges, equal height, centered labels.
   Field toolbars and the inspect URL stay flexible. Nav stays left-aligned. */
.sh-btn,
.sh-tab,
.sh-heat-chip{
  box-sizing:border-box;
  justify-content:center;
  text-align:center;
  line-height:1.15;
}
.sh-tab,
.sh-heat-chip{
  display:inline-flex;
  align-items:center;
  white-space:normal;
  overflow-wrap:break-word;
}
.sh-nav button,
.sh-nav a{
  justify-content:flex-start;
  text-align:left;
}
.sh-tabs,
.sh-chip-row,
.sh-heat-row,
.sh-toolbar-actions,
.sh-dr-actions,
.sh-qa-actions,
.sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)){
  display:flex;
  flex-flow:row wrap;
  align-items:stretch;
  align-content:stretch;
  gap:.45rem;
  overflow:visible;
}
.sh-tabs > .sh-tab,
.sh-chip-row > .sh-btn,
.sh-heat-row > .sh-heat-chip,
.sh-toolbar-actions > .sh-btn,
.sh-dr-actions > .sh-btn,
.sh-qa-actions > .sh-btn,
.sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn{
  flex:1 1 calc(25% - .45rem);
  min-width:0;
  width:auto;
  min-height:44px;
  margin:0;
}
.sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn:only-child{
  flex:0 0 auto;
  width:auto;
}
.sh-section-head > .sh-toolbar{
  max-width:100%;
}
.sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)){
  flex:0 0 auto;
  width:auto;
  margin:0;
}
.sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn{
  flex:1 1 14rem;
  min-width:14rem;
  max-width:14rem;
}
.sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn:only-child{
  flex:0 0 auto;
  min-width:0;
  max-width:none;
  width:auto;
}
.sh-tabs.sh-view-toggle{
  width:max-content;
  max-width:100%;
}
.sh-tabs.sh-view-toggle > .sh-tab{
  flex:1 1 8.75rem;
  min-width:8.75rem;
}
.sh-toolbar:has(input, select, textarea),
.sh-filter-bar,
.sh-form-grid,
.sh-assign-form,
.sh-team-perf-filters{
  align-items:stretch;
}
.sh-toolbar:has(input, select, textarea) > .sh-btn,
.sh-filter-bar > .sh-btn,
.sh-form-grid > .sh-btn,
.sh-assign-form > .sh-btn,
.sh-team-perf-filters > .sh-btn{
  justify-content:center;
  text-align:center;
  align-self:stretch;
  min-height:44px;
}
.sh-filter-bar{
  display:flex;
  flex-flow:row wrap;
  gap:.5rem;
}
.sh-filter-bar > .sh-input,
.sh-filter-bar > .sh-btn{
  flex:1 1 calc(25% - .5rem);
  min-width:0;
  width:auto;
  min-height:44px;
  margin:0;
}
.sh-form-grid > .sh-input,
.sh-form-grid > .sh-btn{
  width:100%;
  min-height:44px;
}
.sh-team-perf-filters > .sh-btn{
  align-self:flex-end;
  min-width:7.5rem;
}
.sh-team-perf-filters .sh-input{
  min-height:44px;
}
.sh-dialog .sh-toolbar{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.45rem;
  margin-bottom:0;
  overflow:visible;
}
.sh-dialog .sh-toolbar > .sh-btn{
  flex:none;
  width:100%;
  min-width:0;
  max-width:none;
  min-height:44px;
}
.sh-display-mode{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.25rem;
  align-items:stretch;
}
.sh-display-mode .sh-btn{
  width:100%;
  min-width:0;
  margin:0;
}
.sh-inspect-fallback-actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.45rem;
  align-items:stretch;
}
.sh-inspect-fallback-actions > .sh-btn{
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
}
.sh-dr-plan{align-items:stretch;}
.sh-card .sh-dr-actions{width:100%;flex-wrap:nowrap;}
.sh-dr-actions > .sh-btn{flex:1 1 0;min-width:0;}
.sh-empty-card .sh-toolbar,
.sh-empty-card .sh-qa-actions{
  align-self:center;
  width:min(100%, 36rem);
  max-width:100%;
  justify-content:stretch;
}
.sh-empty-card .sh-qa-actions > .sh-btn,
.sh-empty-card .sh-toolbar:not(:has(input, select, textarea)) > .sh-btn{
  flex:1 1 0;
  min-width:0;
  max-width:none;
}
.sh-notice-btn,
.sh-menu-btn{justify-content:center;}

@media (max-width:900px){
  .sh-tabs > .sh-tab,
  .sh-chip-row > .sh-btn,
  .sh-heat-row > .sh-heat-chip,
  .sh-toolbar-actions > .sh-btn,
  .sh-qa-actions > .sh-btn,
  .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn{
    flex:1 1 calc(50% - .3rem);
    min-width:calc(50% - .3rem);
    max-width:100%;
  }
  .sh-tabs.sh-view-toggle{width:100%;}
  .sh-tabs.sh-view-toggle > .sh-tab{
    flex:1 1 calc(50% - .3rem);
    min-width:0;
  }
  .sh-section-head > .sh-toolbar{width:100%;}
  .sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn,
  .sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn:only-child{
    flex:1 1 calc(50% - .3rem);
    min-width:calc(50% - .3rem);
    max-width:100%;
    width:auto;
  }
  .sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn:only-child{
    flex:1 1 100%;
    min-width:100%;
  }
  .sh-toolbar:has(input, select, textarea){
    flex-wrap:wrap;
    overflow:visible;
  }
  .sh-toolbar:has(input, select, textarea) > .sh-input,
  .sh-toolbar:has(input, select, textarea) > select.sh-input,
  .sh-toolbar:has(input, select, textarea) > textarea.sh-input,
  .sh-toolbar:has(input, select, textarea) > .sh-btn{
    flex:1 1 calc(50% - .3rem);
    min-width:calc(50% - .3rem);
    max-width:100%;
    width:auto;
  }
  .sh-toolbar:has(input, select, textarea) > input[type="search"]{
    flex:1 1 100%;
    min-width:100%;
  }
  .sh-filter-bar > .sh-input,
  .sh-filter-bar > .sh-btn{
    flex:1 1 calc(50% - .5rem);
    min-width:calc(50% - .5rem);
  }
  .sh-qa-desk .sh-inspect-bar .sh-display-mode{flex:1 1 100%;}
  .sh-team-perf-filters{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    align-items:end;
  }
  .sh-team-perf-filters > .sh-btn{width:100%;min-width:0;}
  .sh-team-perf-filters > .sh-btn:last-child:nth-child(odd){grid-column:1 / -1;}
}
html.sh-compact .sh-tabs > .sh-tab,
html.sh-compact .sh-chip-row > .sh-btn,
html.sh-compact .sh-heat-row > .sh-heat-chip,
html.sh-compact .sh-toolbar-actions > .sh-btn,
html.sh-compact .sh-qa-actions > .sh-btn,
html.sh-compact .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn{
  flex:1 1 calc(50% - .3rem);
  min-width:calc(50% - .3rem);
  max-width:100%;
}
html.sh-compact .sh-tabs.sh-view-toggle{width:100%;}
html.sh-compact .sh-tabs.sh-view-toggle > .sh-tab{
  flex:1 1 calc(50% - .3rem);
  min-width:0;
}
html.sh-compact .sh-section-head > .sh-toolbar{width:100%;}
html.sh-compact .sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn,
html.sh-compact .sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn:only-child{
  flex:1 1 calc(50% - .3rem);
  min-width:calc(50% - .3rem);
  max-width:100%;
  width:auto;
}
html.sh-compact .sh-section-head > .sh-toolbar:not(:has(input, select, textarea, label, .sh-inline-label)) > .sh-btn:only-child{
  flex:1 1 100%;
  min-width:100%;
}
html.sh-compact .sh-toolbar:has(input, select, textarea){
  flex-wrap:wrap;
  overflow:visible;
}
html.sh-compact .sh-toolbar:has(input, select, textarea) > .sh-input,
html.sh-compact .sh-toolbar:has(input, select, textarea) > select.sh-input,
html.sh-compact .sh-toolbar:has(input, select, textarea) > textarea.sh-input,
html.sh-compact .sh-toolbar:has(input, select, textarea) > .sh-btn{
  flex:1 1 calc(50% - .3rem);
  min-width:calc(50% - .3rem);
  max-width:100%;
  width:auto;
}
html.sh-compact .sh-toolbar:has(input, select, textarea) > input[type="search"]{
  flex:1 1 100%;
  min-width:100%;
}
html.sh-compact .sh-filter-bar > .sh-input,
html.sh-compact .sh-filter-bar > .sh-btn{
  flex:1 1 calc(50% - .5rem);
  min-width:calc(50% - .5rem);
}
html.sh-compact .sh-qa-desk .sh-inspect-bar .sh-display-mode{flex:1 1 100%;}
html.sh-compact .sh-team-perf-filters{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  align-items:end;
}
html.sh-compact .sh-team-perf-filters > .sh-btn{width:100%;min-width:0;}
html.sh-compact .sh-team-perf-filters > .sh-btn:last-child:nth-child(odd){grid-column:1 / -1;}
.sh-inbox-table{display:flex;flex-direction:column;gap:.45rem;margin-top:.75rem;}
.sh-inbox-head,button.sh-inbox-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,.6fr) minmax(0,.9fr) minmax(0,1fr) minmax(0,.9fr);gap:.35rem;align-items:center;width:100%;}
.sh-inbox-head{font-size:.75rem;font-weight:700;color:#64748b;padding:0 .35rem;}
.sh-inbox-row{width:100%;text-align:left;border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:.55rem .35rem;cursor:pointer;}
.sh-inbox-row strong{display:block;}
.sh-inbox-detail{margin-top:.75rem;}
.sh-inbox-metrics{display:flex;flex-wrap:wrap;gap:.45rem;margin:.75rem 0;}
.sh-inbox-metrics .sh-btn{min-height:44px;}
@media (max-width:900px){
  .sh-inbox-head{display:none;}
  button.sh-inbox-row{grid-template-columns:1fr 1fr;}
}
html.sh-compact .sh-inbox-head{display:none;}
html.sh-compact button.sh-inbox-row{grid-template-columns:1fr 1fr;}
