:root {
  color-scheme: light;
  --ink: #183039;
  --ink-soft: #35515a;
  --muted: #6c7d82;
  --line: #dce5e5;
  --paper: #f3f6f3;
  --surface: #ffffff;
  --teal: #087d78;
  --teal-dark: #075f5c;
  --mint: #dff1ea;
  --gold: #bd8520;
  --coral: #c7503d;
  --blue: #347b9b;
  --shadow: 0 12px 30px rgba(23, 53, 57, .07);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6efeb;
  --ink-soft: #bdd0ca;
  --muted: #91aaa3;
  --line: #344c47;
  --paper: #101816;
  --surface: #18231f;
  --teal: #54bdb2;
  --teal-dark: #8ad8cf;
  --mint: #213d35;
  --gold: #e0aa48;
  --coral: #e57866;
  --blue: #6eb2d0;
  --shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: Georgia, "Times New Roman", serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: #183039; color: #eaf3f0; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #15a29a; color: white; font-weight: bold; font-size: 18px; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.brand-title { margin: 0; font-size: 15px; color: white; }
.brand-subtitle { margin: 4px 0 0; color: #a8c2c0; font: 10px ui-monospace, Consolas, monospace; letter-spacing: .7px; text-transform: uppercase; }
.nav-label { margin: 0 10px 8px; color: #8fa9a9; font: 10px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #c4d7d4; background: transparent; border: 1px solid transparent; text-align: left; font: 13px ui-monospace, Consolas, monospace; }
.nav-button:hover { background: #24434a; color: #fff; }
.nav-button[aria-current="page"] { background: #28515a; border-color: #3e6a70; color: #fff; box-shadow: inset 3px 0 #dfad45; }
.nav-icon { width: 18px; text-align: center; color: #7dc9bd; font-size: 16px; }
.sidebar-footer { margin-top: auto; padding: 13px 10px 0; border-top: 1px solid #355057; color: #a8c2c0; font: 11px/1.6 ui-monospace, Consolas, monospace; }
.local-mark { display: inline-block; margin-bottom: 7px; padding: 4px 6px; color: #c4f1d8; border: 1px solid #558776; background: #214b45; font-size: 10px; }
.main-column { min-width: 0; }
.topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 30px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font: 11px ui-monospace, Consolas, monospace; }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.role-control,.language-control { display: flex; align-items: center; gap: 7px; padding-left: 10px; border-left: 1px solid var(--line); }
.role-control span,.language-control span { color: var(--muted); font: 9px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.role-control select,.language-control select { padding: 7px 26px 7px 8px; color: var(--teal-dark); font: 700 10px ui-monospace, Consolas, monospace; }
.site-pill { max-width: 220px; padding: 8px 10px; color: var(--ink-soft); border: 1px solid var(--line); background: white; font: 11px ui-monospace, Consolas, monospace; }
.env-pill { padding: 8px 10px; color: #176453; background: var(--mint); border: 1px solid #b7dcca; font: 10px ui-monospace, Consolas, monospace; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: white; color: var(--teal); font: 17px ui-monospace, Consolas, monospace; }
.content { max-width: 1500px; margin: 0 auto; padding: 28px 30px 44px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font: 700 10px ui-monospace, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
h1, h2, h3, p { letter-spacing: 0; }
.page-heading h1 { margin: 0; font-size: 30px; font-weight: 500; }
.page-description { margin: 7px 0 0; max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.view { display: none; }
.view.active { display: block; animation: appear .18s ease-out; }
@keyframes appear { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 17px; font-weight: 500; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.metric { padding: 17px 18px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--teal); }
.metric:nth-child(2) { border-top-color: var(--gold); }.metric:nth-child(3) { border-top-color: var(--coral); }.metric:nth-child(4) { border-top-color: var(--blue); }
.metric strong { display: block; color: var(--ink); font-size: 28px; font-weight: 500; }
.metric span { display: block; margin-top: 6px; color: var(--muted); font: 10px ui-monospace, Consolas, monospace; letter-spacing: .5px; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); gap: 18px; }
.queue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: 16px; align-items: start; }
.queue-layout > * { min-width: 0; }
.queue-tools { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
input, select, textarea { min-width: 0; padding: 10px 11px; color: var(--ink); border: 1px solid #becdce; border-radius: 2px; background: #fff; }
.search-input { flex: 1; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 13px; color: var(--muted); background: #f8faf8; border-bottom: 1px solid var(--line); font: 10px ui-monospace, Consolas, monospace; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px; border-bottom: 1px solid #edf1f1; vertical-align: top; font-size: 13px; }
tr[data-ticket-id] { cursor: pointer; }
tr[data-ticket-id]:hover { background: #f3faf7; }
tr.selected { background: #edf7f3; box-shadow: inset 3px 0 var(--teal); }
.ticket-id { color: var(--teal-dark); font: 700 12px ui-monospace, Consolas, monospace; white-space: nowrap; }
.ticket-summary { display: block; margin-bottom: 4px; font-weight: bold; }
.small-meta { color: var(--muted); font: 10px/1.5 ui-monospace, Consolas, monospace; }
.badge { display: inline-block; padding: 5px 7px; border: 1px solid; white-space: nowrap; font: 700 10px ui-monospace, Consolas, monospace; }
.badge-open { color: #166a8e; border-color: #9bcce0; background: #edf8fc; }.badge-investigating { color: #8a4e10; border-color: #e7c58d; background: #fdf7e8; }.badge-pending { color: #8c3150; border-color: #e6afc0; background: #fff1f5; }.badge-resolved { color: #176453; border-color: #9bd5c1; background: #effaf5; }.badge-rejected { color: #a8392d; border-color: #dfb1a9; background: #fff1ef; }
.priority-p1 { color: #a8392d; font-weight: bold; }.priority-p2 { color: #a36511; font-weight: bold; }
.detail-panel { position: sticky; top: 14px; }
.detail-body { padding: 18px; }
.detail-title { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.detail-message { margin: 0; padding: 13px; background: #f5f8f6; color: var(--ink-soft); line-height: 1.5; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.detail-field { padding: 10px; background: #fafbf9; border: 1px solid #edf1ef; }
.detail-field span { display: block; color: var(--muted); font: 9px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.detail-field b { display: block; margin-top: 5px; font: 12px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.action-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.action { padding: 8px 9px; color: var(--teal-dark); background: white; border: 1px solid #aebfc2; font: 700 10px ui-monospace, Consolas, monospace; }
.action:hover { background: #eef8f5; }.action.primary { color: white; background: var(--teal); border-color: var(--teal); }.action.danger { color: #a8392d; border-color: #dfb1a9; }
.work-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.control-block { min-width: 0; }
.control-block.full { grid-column: 1 / -1; }
.control-block label { display: block; margin-bottom: 6px; color: var(--muted); font: 700 9px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.control-block textarea { width: 100%; resize: vertical; }
.control-block > .action { margin-top: 7px; }
.latest-note { display: grid; gap: 4px; margin-top: 9px; padding: 10px 11px; background: var(--mint); border-left: 3px solid var(--teal); }
.latest-note b { color: var(--teal-dark); font: 700 9px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.latest-note span { color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.latest-note time { color: var(--muted); font: 9px ui-monospace, Consolas, monospace; }
.inline-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.resolution-control { padding: 12px; background: #f6f9f7; border: 1px solid var(--line); }
.resolution-control .action-row { margin-top: 8px; }
.resolution-record { margin-top: 15px; padding: 12px; color: #176453; background: #effaf5; border-left: 3px solid var(--teal); }
.resolution-record span { font: 700 9px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.resolution-record p { margin: 6px 0 0; color: var(--ink); font-size: 13px; }
.approval-summary { margin: 15px 0; padding: 12px; background: #faf5e8; border-left: 3px solid var(--gold); }
.approval-summary strong { display: block; font-size: 13px; }.approval-summary span { display: block; margin-top: 5px; color: var(--muted); font: 10px ui-monospace, Consolas, monospace; }
.decision-actions { display: flex; gap: 8px; margin-top: 9px; }.decision-actions .action { flex: 1; }.decision-actions .reject { color: #a8392d; border-color: #dfb1a9; }
.validation { color: #176453; font: 700 11px ui-monospace, Consolas, monospace; }
.comment-section, .detail-events { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.comment { padding: 10px 0; border-bottom: 1px solid #edf1f1; }
.comment > div { display: flex; justify-content: space-between; gap: 10px; }
.comment b { font-size: 12px; }.comment time { color: var(--muted); font: 9px ui-monospace, Consolas, monospace; }
.comment p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.visibility { margin-left: 6px; padding: 3px 5px; color: var(--muted); background: #f1f4f3; border: 1px solid var(--line); font: 8px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.callout { padding: 13px 15px; color: #66552d; background: #faf5e8; border-left: 3px solid var(--gold); font-size: 12px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field label { display: block; margin-bottom: 6px; color: var(--ink-soft); font: 700 10px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.form-field.full { grid-column: 1 / -1; }.form-field textarea { min-height: 150px; resize: vertical; }
.form-field .request-details { min-height: 82px; }
.routing-preview { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 15px; color: var(--ink-soft); background: #edf7f3; border-left: 3px solid var(--teal); }
.routing-preview span { color: var(--teal-dark); font: 700 9px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.routing-preview strong { font-size: 14px; }.routing-preview b { font: 700 11px ui-monospace, Consolas, monospace; }.routing-preview small { color: var(--muted); text-align: right; font: 9px ui-monospace, Consolas, monospace; }
.primary-button { padding: 11px 16px; color: white; background: var(--teal); border: 1px solid var(--teal); font: 700 11px ui-monospace, Consolas, monospace; }.primary-button:hover { background: var(--teal-dark); }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.timeline { max-height: 620px; overflow: auto; padding: 4px 18px; }
.event { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1f1; font-size: 12px; }
.event time { color: var(--muted); font: 10px/1.5 ui-monospace, Consolas, monospace; }.event b { color: var(--teal-dark); font: 700 11px ui-monospace, Consolas, monospace; }.event p { margin: 5px 0 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.empty { padding: 28px 18px; color: var(--muted); text-align: center; font-size: 13px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 5; max-width: 360px; padding: 13px 15px; display: none; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; }
.mobile-nav { display: none; }
[data-theme="dark"] .topbar { background: rgba(24, 35, 31, .95); }
[data-theme="dark"] .sidebar { background: #0c2423; }
[data-theme="dark"] .metric,[data-theme="dark"] .site-pill,[data-theme="dark"] .icon-button,[data-theme="dark"] .action { background: var(--surface); }
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea { color: var(--ink); background: #101a17; border-color: #46605a; }
[data-theme="dark"] th { background: #121d1a; }
[data-theme="dark"] td,[data-theme="dark"] .event,[data-theme="dark"] .comment { border-color: var(--line); }
[data-theme="dark"] tr[data-ticket-id]:hover,[data-theme="dark"] tr.selected { background: #203630; }
[data-theme="dark"] .detail-message,[data-theme="dark"] .detail-field,[data-theme="dark"] .resolution-control { background: #121d1a; border-color: var(--line); }
[data-theme="dark"] .callout { color: #ead29e; background: #332b1d; }
[data-theme="dark"] .routing-preview { background: #19332d; }
[data-theme="dark"] .badge-open { color: #9cd7ed; background: #18323e; }.badge-investigating { color: #e7c985; }.badge-pending { color: #e3a9bf; }.badge-resolved { color: #9bdbc4; }
[data-theme="dark"] .approval-summary { background: #332b1d; }
[data-theme="dark"] .visibility { background: #263631; border-color: var(--line); }
[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .nav-button,[dir="rtl"] table { text-align: right; }
[dir="rtl"] .nav-button[aria-current="page"] { box-shadow: inset -3px 0 #dfad45; }
[dir="rtl"] .role-control,[dir="rtl"] .language-control { padding-left: 0; padding-right: 10px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .latest-note,[dir="rtl"] .callout,[dir="rtl"] .routing-preview,[dir="rtl"] .resolution-record { border-left: 0; border-right: 3px solid var(--teal); }
[dir="rtl"] .approval-summary { border-left: 0; border-right: 3px solid var(--gold); }
[dir="rtl"] .callout { border-right-color: var(--gold); }
[dir="rtl"] .routing-preview small { text-align: left; }
[dir="rtl"] .toast { right: auto; left: 22px; }
@media (max-width: 980px) { .app-shell { grid-template-columns: 190px minmax(0,1fr); }.content { padding: 22px 18px; }.topbar { padding: 0 18px; }.dashboard-grid { grid-template-columns: 1fr; }.queue-layout { grid-template-columns: 1fr; }.detail-panel { position: static; } }
@media (max-width: 680px) { .app-shell { display: block; padding-bottom: 64px; }.sidebar { display: block; padding: 12px 14px; }.brand { margin-bottom: 10px; }.nav-label,.sidebar-footer { display: none; }.nav-list { display: flex; overflow-x: auto; gap: 4px; }.nav-button { width: auto; flex: 0 0 auto; padding: 9px 10px; font-size: 11px; }.nav-button[aria-current="page"] { box-shadow: inset 0 -2px #dfad45; }.topbar { height: auto; min-height: 58px; padding: 8px 14px; }.breadcrumb,.site-pill,.role-control span,.language-control span { display: none; }.topbar-tools { width: 100%; justify-content: flex-end; }.role-control { margin-right: auto; padding-left: 0; border-left: 0; }.language-control { padding-left: 0; border-left: 0; }.content { padding: 20px 13px; }.page-heading h1 { font-size: 25px; }.metrics { grid-template-columns: 1fr 1fr; }.metric { padding: 13px; }.metric strong { font-size: 24px; }.form-grid,.work-controls { grid-template-columns: 1fr; }.form-field.full,.control-block.full { grid-column: auto; }.routing-preview { grid-template-columns: 1fr 1fr; }.routing-preview small { text-align: left; }.queue-tools { flex-wrap: wrap; }.search-input { flex-basis: 100%; }.event { grid-template-columns: 1fr; gap: 4px; }.env-pill { display:none; }.role-control select,.language-control select { padding:7px; } }

/* Helm reference adaptation: same product behavior, calmer operational hierarchy. */
body { font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif; font-size: 14px; background: #f4f7f6; }
.app-shell { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; padding: 25px 16px 16px; gap: 18px; background: #123331; box-shadow: 8px 0 28px rgba(9, 38, 35, .08); }
.brand { gap: 11px; padding: 0 10px 18px; }.brand-mark { width: 36px; height: 36px; border-radius: 10px; clip-path: none; background: #11958c; box-shadow: 0 5px 16px rgba(0, 0, 0, .18); }.brand-title { font-size: 18px; font-weight: 720; }.brand-subtitle { font-size: 9px; letter-spacing: 1.45px; }
.nav-label { padding: 13px 10px 6px; margin: 0; color: #8eaaa6; font-weight: 700; letter-spacing: 1.4px; }.nav-list { gap: 3px; }.nav-button { min-height: 39px; padding: 9px 11px; border-radius: 7px; color: #b8ceca; font: 13px Aptos, "Segoe UI", sans-serif; }.nav-button:hover { background: rgba(255,255,255,.08); color: #fff; }.nav-button[aria-current="page"] { border-color: transparent; background: #07847d; box-shadow: none; }.nav-icon { color: #86d7ce; font-size: 15px; }.nav-count { margin-left: auto; padding: 1px 7px; border-radius: 5px; background: rgba(255,255,255,.14); font: 10px ui-monospace, Consolas, monospace; }
.sidebar-footer { padding: 15px 10px 0; border-color: rgba(255,255,255,.12); font-size: 10px; line-height: 1.55; }.local-mark { padding: 3px 5px; border-radius: 4px; font-size: 9px; }.main-column { grid-column: 2; }
.topbar { height: 76px; padding: 0 32px; background: rgba(255,255,255,.92); border-color: #e4ebe9; backdrop-filter: blur(12px); }.breadcrumb { color: #75827f; font-size: 11px; letter-spacing: .25px; }.topbar-tools { gap: 9px; }
.global-search { display: flex; align-items: center; gap: 8px; width: 205px; padding: 8px 11px; color: var(--muted); background: #f3f6f5; border: 1px solid #e0e8e5; border-radius: 8px; }.global-search input { width: 100%; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 12px; }
.role-control,.language-control { gap: 6px; padding-left: 9px; }.role-control select,.language-control select { padding: 7px 23px 7px 7px; border-color: transparent; background: #f3f6f5; color: #35514c; }.env-pill { border: 0; border-radius: 6px; padding: 7px 8px; font-weight: 700; letter-spacing: .5px; }.icon-button { width: 38px; height: 38px; border-radius: 8px; border-color: #e0e8e5; color: #657570; }
.content { max-width: 1660px; padding: 30px 32px 50px; }.page-heading { margin-bottom: 25px; }.page-heading h1 { font-size: 28px; line-height: 1.25; font-weight: 720; letter-spacing: -.35px; }.page-description { margin-top: 5px; color: #6d7c78; font-size: 13px; }.eyebrow { color: #087d78; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.panel { border-color: #e2eae7; border-radius: 10px; box-shadow: 0 6px 24px rgba(24, 56, 51, .045); }.panel-header { padding: 18px 21px; border-color: #e4ebe9; }.panel-header h2 { font-size: 16px; font-weight: 700; }.metrics { gap: 16px; margin-bottom: 22px; }.metric { min-height: 128px; padding: 18px 19px; border: 1px solid #e2eae7; border-top-width: 1px; border-radius: 10px; box-shadow: 0 5px 20px rgba(24, 56, 51, .04); transition: transform .16s ease, box-shadow .16s ease; }.metric:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(24, 56, 51, .08); }.metric strong { font-size: 31px; font-weight: 720; letter-spacing: -.8px; }.metric span { margin-top: 5px; font-size: 10px; letter-spacing: .45px; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dashboard-grid,.queue-layout { gap: 20px; }.queue-tools { padding: 15px 20px; border: 1px solid #e2eae7; border-bottom: 0; border-radius: 10px 10px 0 0; background: white; }.queue-tools + .queue-layout { padding-top: 16px; } input,select,textarea { border-color: #d6e0dd; border-radius: 8px; font-family: Aptos, "Segoe UI", sans-serif; }.search-input { min-height: 38px; background: #f5f8f7; }
.table-wrap { background: white; }th { padding: 12px 17px; background: #f9fbfa; border-color: #e4ebe9; color: #788681; font-size: 9px; letter-spacing: .7px; }td { padding: 14px 17px; border-color: #edf1f0; font-size: 12px; }tr[data-ticket-id]:hover { background: #f7fbf9; }tr.selected { background: #eaf6f2; box-shadow: inset 3px 0 #07847d; }.ticket-id { color: #38716a; font-size: 11px; }.ticket-summary { margin-bottom: 3px; font-weight: 700; }.small-meta { font-size: 10px; }
.badge { border: 0; border-radius: 6px; padding: 5px 8px; font-size: 10px; font-weight: 700; }.badge-open { color: #176d9a; background: #eaf5fa; }.badge-investigating { color: #936116; background: #fff4dd; }.badge-pending { color: #9a3c55; background: #faedf1; }.badge-resolved { color: #167253; background: #e8f6ef; }.badge-rejected { color: #b34742; background: #fcecef; }
.detail-panel { border-radius: 10px; }.detail-body { padding: 20px; }.detail-title { font-size: 21px; font-weight: 720; letter-spacing: -.2px; }.detail-message { padding: 14px; border-radius: 8px; background: #f5f8f7; font-size: 13px; }.detail-field { padding: 11px; border-color: #e8eeec; border-radius: 7px; background: #fafcfb; }.detail-field span,.control-block label { font-size: 9px; letter-spacing: .65px; }.action,.primary-button { border-radius: 7px; font-family: Aptos, "Segoe UI", sans-serif; }.action { padding: 8px 10px; border-color: #d3dfdb; }.action.primary,.primary-button { background: #07847d; border-color: #07847d; }.action.primary:hover,.primary-button:hover { background: #056c67; }.work-controls { border-color: #e4ebe9; }.approval-summary,.resolution-record,.latest-note,.callout,.routing-preview { border-radius: 7px; }.comment-section,.detail-events { border-color: #e4ebe9; }.comment { border-color: #edf1f0; }.form-grid { gap: 16px 18px; }.routing-preview { padding: 14px 16px; }.form-footer { margin-top: 18px; }.timeline { padding: 5px 20px; }.event { padding: 13px 0; border-color: #edf1f0; }.toast { right: 25px; bottom: 25px; border-radius: 9px; background: #153c39; box-shadow: 0 14px 36px rgba(0,0,0,.18); }
[data-theme="dark"] body { background: #0e1715; }[data-theme="dark"] .sidebar { background: #0d2523; }[data-theme="dark"] .topbar { background: rgba(23, 35, 31, .94); border-color: #314842; }[data-theme="dark"] .global-search,[data-theme="dark"] .role-control select,[data-theme="dark"] .language-control select { background: #14211d; border-color: #314842; }[data-theme="dark"] .panel,[data-theme="dark"] .metric,[data-theme="dark"] .queue-tools,[data-theme="dark"] .table-wrap { border-color: #314842; box-shadow: none; }[data-theme="dark"] th { background: #121d1a; }
[dir="rtl"] .sidebar { inset: 0 0 0 auto; box-shadow: -8px 0 28px rgba(9, 38, 35, .08); }[dir="rtl"] .global-search { text-align: right; }[dir="rtl"] .nav-button[aria-current="page"] { box-shadow: none; }
@media (max-width: 980px) { .app-shell { grid-template-columns: 190px minmax(0,1fr); }.sidebar { position: static; width: auto; }.main-column { grid-column: 2; } }
@media (max-width: 680px) { .app-shell { display: block; }.sidebar { position: static; }.main-column { grid-column: auto; }.topbar { padding: 8px 14px; }.global-search { order: 5; width: 100%; flex-basis: 100%; }.topbar-tools { flex-wrap: wrap; }.content { padding: 21px 15px 45px; }.queue-tools { border-radius: 8px 8px 0 0; }.panel,.metric { border-radius: 8px; }.global-search input { font-size: 13px; } }

.config-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: 18px; padding: 4px; overflow-x: auto; background: #edf3f1; border-radius: 8px; }.config-tab { flex: 0 0 auto; padding: 8px 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font: 700 11px Aptos, "Segoe UI", sans-serif; }.config-tab.active { color: #087d78; background: white; box-shadow: 0 2px 6px rgba(18, 51, 49, .09); }.config-form { padding: 20px; border-top: 1px solid var(--line); }.config-form h3 { margin: 0 0 16px; font-size: 14px; }.config-form .primary-button { margin-top: 4px; }.config-form input[type="checkbox"] { width: 17px; height: 17px; accent-color: #07847d; }
[data-theme="dark"] .column-picker { background: #14211d; border-color: #314842; }
.column-picker { position: relative; padding: 8px 10px; border: 1px solid #d6e0dd; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }.column-picker summary { cursor: pointer; font-weight: 700; list-style: none; }.column-picker summary::-webkit-details-marker { display: none; }.column-picker summary:after { content: "⌄"; margin-left: 6px; color: var(--muted); }.column-picker[open] > div { position: absolute; top: calc(100% + 6px); right: 0; z-index: 15; display: grid; width: 190px; padding: 10px; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 26px rgba(18, 51, 49, .14); }.column-picker label { display: flex; align-items: center; gap: 7px; font-size: 11px; }.column-picker input { width: 14px; height: 14px; accent-color: #07847d; }
[data-theme="dark"] .config-tabs { background: #142521; }.config-tab.active { background: #213530; }
@media (max-width: 680px) { .config-tabs { width: 100%; }.config-tab { padding: 8px 10px; }.column-picker { order: 4; }.column-picker[open] > div { right: auto; left: 0; }[dir="rtl"] .column-picker[open] > div { right: 0; left: auto; } }

.config-list-tools { display: flex; align-items: center; gap: 9px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfc; }.config-list-tools input { flex: 1; min-width: 180px; }.config-list-tools select { min-width: 120px; }.config-list-tools .small-meta { margin-left: auto; white-space: nowrap; }
.nav-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: rgba(125, 201, 189, .12); }.nav-button[aria-current="page"] .nav-icon { color: #fff; background: rgba(255,255,255,.18); }.metric { position: relative; overflow: hidden; }.metric-glyph { position: absolute; top: 16px; right: 17px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #087d78; background: #e8f6f2; font-size: 15px; }.metric:nth-child(2) .metric-glyph { color: #a06d17; background: #fff3dc; }.metric:nth-child(3) .metric-glyph { color: #bc5644; background: #fff0ed; }.metric:nth-child(4) .metric-glyph { color: #397998; background: #eaf5f9; }.service-symbol { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 5px; color: #087d78; background: #e8f6f2; font-size: 12px; vertical-align: -1px; }
@media (max-width: 680px) { .config-list-tools { flex-wrap: wrap; }.config-list-tools input { flex-basis: 100%; }.config-list-tools .small-meta { margin-left: 0; } }

/* Shared interactive table */
.data-table { overflow: visible; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfc; border-radius: 10px 10px 0 0; }
.table-toolbar .table-search { flex: 1 1 200px; min-width: 160px; min-height: 36px; background: #f5f8f7; }
.table-toolbar select { min-height: 36px; max-width: 200px; }
.table-toolbar .table-count { margin-left: auto; white-space: nowrap; }
.table-toolbar .column-picker { padding: 7px 10px; }
th { padding: 0; }
.sort-header { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 17px; border: 0; background: transparent; color: #788681; font: inherit; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; text-align: inherit; cursor: pointer; white-space: nowrap; }
.sort-header:hover { color: var(--ink); background: #f1f5f4; }
.sort-header.active { color: #087d78; }
.sort-indicator { font-size: 10px; opacity: .45; }
.sort-header.active .sort-indicator { opacity: 1; }
.data-table td input[type="number"] { width: 92px; padding: 6px 8px; }
.data-table td select { padding: 6px 24px 6px 8px; }
.data-table td input[type="checkbox"] { width: 17px; height: 17px; accent-color: #07847d; }
.activity-label { color: #38716a; font-size: 12px; }
.audit-detail { display: block; min-width: 180px; max-width: 420px; color: var(--ink-soft); font-size: 12px; white-space: normal; overflow-wrap: break-word; }
.embedded-table .data-table { border: 0; box-shadow: none; border-radius: 0; }
.embedded-table td, .embedded-table .sort-header { padding: 10px 14px; }
.panel-header.standalone { margin-bottom: 14px; padding: 0 0 4px; border-bottom: 0; }
.config-section { display: grid; gap: 16px; }
.config-section .config-form { border-top: 1px solid var(--line); }
.scope-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid #e2eae7; border-radius: 10px; background: white; }
.scope-tools .scope-label { color: var(--muted); font: 700 9px Aptos, "Segoe UI", sans-serif; letter-spacing: .7px; text-transform: uppercase; }
.queue-tools + .queue-layout { padding-top: 0; }
[data-theme="dark"] .table-toolbar { background: #121d1a; border-color: #314842; }
[data-theme="dark"] .table-toolbar .table-search { background: #0f1815; }
[data-theme="dark"] .sort-header:hover { background: #1a2925; }
[data-theme="dark"] .scope-tools { background: var(--surface); border-color: #314842; }
[dir="rtl"] .table-toolbar .table-count { margin-left: 0; margin-right: auto; }
[dir="rtl"] .sort-header { text-align: right; }
@media (max-width: 680px) { .table-toolbar { padding: 10px 12px; }.table-toolbar .table-search { flex-basis: 100%; }.table-toolbar .table-count { margin-left: 0; flex-basis: 100%; }.audit-detail { max-width: 240px; } }

/* Inline SVG icon system */
.icon { display: block; width: 1em; height: 1em; flex: none; }
.brand-mark { color: #fff; }.brand-mark .icon { width: 21px; height: 21px; }
.nav-icon { width: 26px; height: 26px; border-radius: 7px; color: #8ad8ce; }.nav-icon .icon { width: 15px; height: 15px; }
.metric .metric-glyph { position: absolute; top: 15px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 10px; color: #087d78; background: #e6f4f0; }.metric .metric-glyph .icon { width: 18px; height: 18px; }
.metric.gold .metric-glyph { color: #a06d17; background: #fbf1dc; }.metric.coral .metric-glyph { color: #bc5644; background: #fdeeea; }.metric.blue .metric-glyph { color: #397998; background: #e9f3f8; }
.metric .metric-label { display: block; margin-top: 5px; padding-right: 44px; }
.service-symbol { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px; color: #087d78; background: #e6f4f0; vertical-align: -5px; }.service-symbol .icon { width: 12px; height: 12px; }.service-symbol.incident { color: #b8553c; background: #fdeeea; }
.global-search .search-icon { display: grid; place-items: center; color: var(--muted); }.global-search .search-icon .icon { width: 15px; height: 15px; }
.icon-button { display: grid; place-items: center; padding: 0; }.icon-button .icon { width: 16px; height: 16px; }
[dir="rtl"] .metric .metric-glyph { right: auto; left: 16px; }[dir="rtl"] .metric .metric-label { padding-right: 0; padding-left: 44px; }[dir="rtl"] .service-symbol { margin-right: 0; margin-left: 8px; }

/* Dark mode: override the light-only colors hard-coded in the Helm adaptation. */
[data-theme="dark"] .table-wrap,[data-theme="dark"] .queue-tools,[data-theme="dark"] .scope-tools,[data-theme="dark"] .config-form,[data-theme="dark"] .metric { background: var(--surface); }
[data-theme="dark"] .panel,[data-theme="dark"] .metric,[data-theme="dark"] .scope-tools,[data-theme="dark"] .work-controls,[data-theme="dark"] .comment-section,[data-theme="dark"] .detail-events,[data-theme="dark"] .panel-header,[data-theme="dark"] .config-form,[data-theme="dark"] .table-toolbar,[data-theme="dark"] .config-section .config-form { border-color: #2c423d; }
[data-theme="dark"] .metric:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, .3); }
[data-theme="dark"] th,[data-theme="dark"] .sort-header { color: #9db3ad; }[data-theme="dark"] .sort-header.active { color: #7fd0c5; }[data-theme="dark"] th,[data-theme="dark"] .table-toolbar { background: #131f1b; }
[data-theme="dark"] td { border-color: #263a35; }[data-theme="dark"] tr[data-ticket-id]:hover,[data-theme="dark"] tr[data-approval-id]:hover { background: #1e2f2a; }[data-theme="dark"] tr.selected { background: #1f3a34; box-shadow: inset 3px 0 #54bdb2; }
[data-theme="dark"] .ticket-id,[data-theme="dark"] .activity-label { color: #7fd0c5; }[data-theme="dark"] .eyebrow { color: #6fcfc3; }[data-theme="dark"] .page-description,[data-theme="dark"] .breadcrumb { color: var(--muted); }
[data-theme="dark"] .global-search { background: #131f1b; border-color: #2c423d; }[data-theme="dark"] .global-search input { color: var(--ink); }[data-theme="dark"] .role-control select,[data-theme="dark"] .language-control select { color: #9fdcd3; background: #131f1b; }
[data-theme="dark"] .icon-button { color: #b7cbc6; background: #131f1b; border-color: #2c423d; }[data-theme="dark"] .icon-button:hover { color: #fff; background: #1e2f2a; }[data-theme="dark"] .env-pill { color: #9bdbc4; background: #173328; }
[data-theme="dark"] .metric .metric-glyph { color: #7fd0c5; background: rgba(84, 189, 178, .16); }[data-theme="dark"] .metric.gold .metric-glyph { color: #e8bb61; background: rgba(224, 170, 72, .16); }[data-theme="dark"] .metric.coral .metric-glyph { color: #f08b7a; background: rgba(229, 120, 102, .16); }[data-theme="dark"] .metric.blue .metric-glyph { color: #8cc5de; background: rgba(110, 178, 208, .16); }
[data-theme="dark"] .service-symbol { color: #7fd0c5; background: rgba(84, 189, 178, .16); }[data-theme="dark"] .service-symbol.incident { color: #f0a58f; background: rgba(229, 120, 102, .16); }
[data-theme="dark"] .badge-open { color: #9cd7ed; background: #18323e; }[data-theme="dark"] .badge-investigating { color: #e7c985; background: #3a2f16; }[data-theme="dark"] .badge-pending { color: #e3a9bf; background: #3b2230; }[data-theme="dark"] .badge-resolved { color: #9bdbc4; background: #173328; }[data-theme="dark"] .badge-rejected { color: #f0a5a0; background: #3b2224; }
[data-theme="dark"] .priority-p1 { color: #f08b7a; }[data-theme="dark"] .priority-p2 { color: #e8bb61; }
[data-theme="dark"] .config-tab { color: var(--muted); }[data-theme="dark"] .config-tab.active { color: #7fd0c5; background: #213530; box-shadow: none; }
[data-theme="dark"] .action { color: var(--ink); background: #131f1b; border-color: #3a534d; }[data-theme="dark"] .action:hover { background: #1e2f2a; }[data-theme="dark"] .action.primary,[data-theme="dark"] .primary-button { color: #fff; background: #0f9c92; border-color: #0f9c92; }[data-theme="dark"] .action.primary:hover,[data-theme="dark"] .primary-button:hover { background: #12aea3; }
[data-theme="dark"] .table-toolbar select,[data-theme="dark"] .column-picker,[data-theme="dark"] .search-input { background: #0f1815; border-color: #3a534d; }[data-theme="dark"] .column-picker[open] > div { background: #18231f; border-color: #2c423d; box-shadow: 0 12px 26px rgba(0, 0, 0, .4); }
[data-theme="dark"] .sort-header:hover { color: var(--ink); background: #1a2925; }[data-theme="dark"] .toast { background: #1f3b37; }
[data-theme="dark"] .detail-message,[data-theme="dark"] .detail-field,[data-theme="dark"] .resolution-control { background: #131f1b; border-color: #2c423d; }

/* Zebra striping keeps long lists readable */
tbody tr:nth-child(even) { background: #f7faf9; }
tbody tr:nth-child(even):hover { background: #f1f8f5; }
[data-theme="dark"] tbody tr:nth-child(even) { background: #16211e; }
[data-theme="dark"] tbody tr:nth-child(even):hover { background: #1e2f2a; }
[data-theme="dark"] tbody tr:nth-child(even).selected,[data-theme="dark"] tr.selected { background: #1f3a34; }
tbody tr:nth-child(even).selected,tr.selected { background: #eaf6f2; }

/* Metric tiles link through to the matching list */
.metric-link { display: block; color: inherit; text-decoration: none; border-bottom: 2px solid transparent; }
.metric-link strong { cursor: pointer; }
.metric-link:hover,.metric-link:focus-visible { color: #07847d; border-bottom-color: currentColor; }
[data-theme="dark"] .metric-link:hover,[data-theme="dark"] .metric-link:focus-visible { color: #7fd0c5; }

/* Service catalog */
.catalog-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 26px; }
.catalog-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid #e2eae7; border-radius: 10px; background: var(--surface); box-shadow: 0 5px 20px rgba(24, 56, 51, .04); }
.catalog-card-head { display: flex; align-items: center; gap: 11px; }
.catalog-card-head .service-symbol { width: 32px; height: 32px; border-radius: 9px; margin: 0; vertical-align: 0; }
.catalog-card-head .service-symbol .icon { width: 16px; height: 16px; }
.catalog-card h3 { margin: 0; font-size: 14px; font-weight: 700; }
.catalog-card-head p { margin: 3px 0 0; }
.catalog-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.catalog-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); background: #f6faf8; font: 12px Aptos, "Segoe UI", sans-serif; text-align: left; }
.catalog-item:hover,.catalog-item:focus-visible { border-color: #b9ddd6; background: #eaf6f2; }
[data-theme="dark"] .catalog-card { border-color: #2c423d; box-shadow: none; }
[data-theme="dark"] .catalog-item { color: var(--ink); background: #131f1b; }
[data-theme="dark"] .catalog-item:hover,[data-theme="dark"] .catalog-item:focus-visible { border-color: #3a534d; background: #1e2f2a; }
[dir="rtl"] .catalog-item { text-align: right; align-items: flex-end; }
@media (max-width: 680px) { .catalog-groups { grid-template-columns: 1fr; } }

/* Record form: one Save applies every staged change */
.record-form { margin-bottom: 14px; padding: 16px; border: 1px solid #e2eae7; border-radius: 10px; background: #fafcfb; }
.record-form select { width: 100%; }
.record-form .check { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--ink); font: 13px Aptos, "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }
.record-form .check input { width: 16px; height: 16px; margin: 0; accent-color: #07847d; }
.record-form .check time { margin-left: auto; color: var(--muted); font-size: 10px; }
.record-form .check input:disabled + span { color: var(--muted); }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid #e4ebe9; }
.form-actions .action { margin: 0; }
#record-form-status { flex: 1; min-width: 160px; }
[data-theme="dark"] .record-form { background: #131f1b; border-color: #2c423d; }
[data-theme="dark"] .form-actions { border-color: #2c423d; }
[dir="rtl"] .record-form .check time { margin-left: 0; margin-right: auto; }

/* Narrow screens: plain 1fr tracks cannot shrink below their content, so wide tables forced horizontal page scroll. */
@media (max-width: 980px) { .dashboard-grid, .queue-layout { grid-template-columns: minmax(0, 1fr); } }
.dashboard-grid > *, .queue-layout > *, .content, .main-column { min-width: 0; }

/* The top bar tools row is ~800px wide; let it wrap on tablets instead of widening the page. */
@media (max-width: 1180px) {
  .topbar { height: auto; min-height: 76px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; row-gap: 8px; }
  .topbar-tools { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; min-width: 0; }
  .breadcrumb { min-width: 0; }
}

/* Copilot ITSM role-specific workspace */
:root {
  --ink: #151920;
  --ink-soft: #35414b;
  --muted: #5e6a75;
  --line: #d9dde3;
  --paper: #f4f5f7;
  --surface: #fff;
  --teal: #1f6f5b;
  --teal-dark: #0b6b4f;
  --mint: #e7f5ef;
  --shadow: 0 1px 2px rgba(21, 25, 32, .04);
}
[data-theme="dark"] {
  --ink: #f2f3f5;
  --ink-soft: #d0d5dc;
  --muted: #a8b0b8;
  --line: #2e333a;
  --paper: #121417;
  --surface: #1c1f24;
  --teal: #3eae96;
  --teal-dark: #8ed9c8;
  --mint: #1a2e28;
  --shadow: none;
}
html { scroll-padding-top: 68px; }
body { min-width: 320px; color: var(--ink); background: var(--paper); font: 15px/1.45 "Segoe UI", system-ui, sans-serif; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 56px; min-height: 56px;
  justify-content: flex-start; gap: 16px; padding: 0 18px;
  background: var(--surface); border-color: var(--line); backdrop-filter: none;
}
.topbar > .brand { flex: 0 0 190px; gap: 9px; padding: 0; }
.brand-mark { width: 28px; height: 28px; border-radius: 4px; clip-path: none; background: #2f9e44; box-shadow: none; }
.brand-mark .icon { width: 16px; height: 16px; }
.brand-title { color: var(--ink); font: 700 15px/1.1 "Segoe UI", system-ui, sans-serif; }
.brand-subtitle { margin: 2px 0 0; color: var(--muted); font: 12px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.breadcrumb { flex: 0 0 auto; margin: 0; color: var(--muted); font: 11px "Segoe UI", system-ui, sans-serif; letter-spacing: .04em; }
.topbar-tools { flex: 1 1 auto; min-width: 0; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
.global-search { flex: 1 1 180px; width: auto; max-width: 380px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.global-search input { min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: 13px "Segoe UI", system-ui, sans-serif; }
.role-control, .language-control { gap: 0; padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }
.role-control span, .language-control span { display: block; color: var(--muted); font: 9px "Segoe UI", system-ui, sans-serif; letter-spacing: .04em; }
.role-control select, .language-control select { max-width: 190px; padding: 2px 18px 2px 3px; border: 0; color: var(--ink); background: transparent; font: 600 12px "Segoe UI", system-ui, sans-serif; }
.env-pill { padding: 4px 7px; border: 0; border-radius: 4px; color: var(--teal-dark); background: var(--mint); font: 700 9px "Segoe UI", system-ui, sans-serif; letter-spacing: .06em; }
.icon-button { width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border-radius: 4px; border-color: var(--line); color: var(--muted); background: var(--surface); }
.icon-button:hover { border-color: #aeb8c1; color: var(--ink); }
.icon-button .icon { width: 16px; height: 16px; }
.app-shell { min-height: calc(100vh - 56px); display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; }
.sidebar { position: sticky; inset: auto; top: 56px; z-index: 10; width: 228px; height: calc(100vh - 56px); min-height: 0; overflow: auto; padding: 12px 10px; gap: 2px; color: var(--ink); background: var(--surface); border-inline-end: 1px solid var(--line); box-shadow: none; }
.sidebar > .brand { display: none; }
.nav-label { display: none; }
.nav-list { gap: 2px; }
.nav-button { min-height: 38px; gap: 9px; padding: 8px 10px; border: 0; border-inline-start: 3px solid transparent; border-radius: 4px; color: var(--ink); font: 600 13px "Segoe UI", system-ui, sans-serif; text-align: start; }
.nav-button:hover { color: var(--ink); background: var(--paper); }
.nav-button[aria-current="page"] { color: var(--teal-dark); background: var(--mint); border-color: transparent; border-inline-start: 3px solid var(--teal); box-shadow: none; }
.nav-icon { width: 20px; height: 20px; border-radius: 0; color: var(--muted); background: transparent; }
.nav-icon .icon { width: 16px; height: 16px; }
.nav-button[aria-current="page"] .nav-icon { color: var(--teal-dark); background: transparent; }
.nav-count { margin-inline-start: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; color: var(--muted); background: var(--paper); font: 700 10px "Segoe UI", system-ui, sans-serif; text-align: center; }
.nav-button[aria-current="page"] .nav-count { color: var(--teal-dark); background: var(--surface); }
.sidebar-footer { display: none; }
.main-column { grid-column: 2; min-width: 0; }
.content { width: 100%; max-width: 1660px; padding: 22px 26px 52px; }
.page-heading { margin: 0 0 18px; }
.page-heading h1 { color: var(--ink); font: 650 28px/1.2 "Segoe UI", system-ui, sans-serif; }
.eyebrow { color: var(--muted); font: 650 10px "Segoe UI", system-ui, sans-serif; letter-spacing: .04em; }
.page-description { margin-top: 5px; color: var(--muted); font-size: 13px; }
.panel, .metric, .catalog-card, .record-form { border-color: var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.panel-header { padding: 14px 16px; border-color: var(--line); }
.panel-header h2 { font: 700 16px "Segoe UI", system-ui, sans-serif; }
.panel-header.standalone { margin: 0 0 12px; padding: 0 0 5px; }
.action, .primary-button { min-height: 34px; padding: 7px 11px; border-radius: 4px; font: 650 13px "Segoe UI", system-ui, sans-serif; }
.action { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.action:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--surface); }
.action.primary, .primary-button { color: #fff; background: var(--teal); border-color: var(--teal); }
.action.primary:hover, .primary-button:hover { color: #fff; background: #185c4c; border-color: #185c4c; }
[data-theme="dark"] .action.primary, [data-theme="dark"] .primary-button { color: #06221c; background: #3eae96; border-color: #3eae96; }
.metrics { gap: 12px; margin-bottom: 16px; }
.metric { min-height: 104px; padding: 14px 16px; border-top: 1px solid var(--line); }
.metric:hover { transform: none; border-color: var(--teal); box-shadow: var(--shadow); }
.metric strong { font: 700 27px "Segoe UI", system-ui, sans-serif; }
.metric-label { color: var(--muted); font: 13px "Segoe UI", system-ui, sans-serif; }
.dashboard-grid, .queue-layout { gap: 16px; }
.queue-layout { grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); }
.detail-panel { top: 72px; border-radius: 6px; }
input, select, textarea { min-height: 36px; border-color: var(--line-strong); border-radius: 4px; color: var(--ink); background: var(--surface); font: 14px "Segoe UI", system-ui, sans-serif; }
.structured-form .form-grid { align-items: end; }
.structured-form .form-field { min-inline-size: 0; }
.structured-form .form-field > :is(input, select, textarea) { display: block; inline-size: 100%; max-inline-size: 100%; box-sizing: border-box; }
.structured-form .form-field > :is(input, select) { block-size: 42px; }
.structured-form .form-field label { text-align: start; overflow-wrap: anywhere; letter-spacing: 0; }
.structured-form .request-requester[readonly] { background: var(--paper); color: var(--ink-soft); }
.structured-form .form-footer { flex-wrap: wrap; }
.demand-intake { border-block-end: 1px solid var(--line); margin-block-end: 18px; }
.demand-intake > summary { padding-block: 12px; font-weight: 600; cursor: pointer; }
.demand-workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 16px; }
@media (max-width: 1000px) { .demand-workspace { grid-template-columns: minmax(0, 1fr); } }
.detail-fields, .work-controls { align-items: start; }
.detail-field { min-inline-size: 0; }
.detail-field b { overflow-wrap: anywhere; }
.work-controls :is(input, select, textarea) { max-inline-size: 100%; box-sizing: border-box; }
@media (max-width: 680px) {
  .structured-form .form-footer > .primary-button { inline-size: 100%; }
}
textarea { min-height: 72px; }
.queue-tools { padding: 0; border: 0; background: transparent; }
.scope-tools { margin-bottom: 12px; }
.scope-label { font: 700 10px "Segoe UI", system-ui, sans-serif; }
.table-toolbar { border-color: var(--line); background: var(--surface); }
.table-toolbar .table-search { min-height: 36px; background: var(--paper); }
.table-wrap { background: var(--surface); }
th { color: var(--muted); background: var(--paper); border-color: var(--line); }
.sort-header { color: inherit; font: inherit; }
td { border-color: var(--line); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 54%, var(--surface)); }
tbody tr:nth-child(even):hover, tr[data-ticket-id]:hover { background: var(--mint); }
tr.selected, tbody tr:nth-child(even).selected { background: var(--mint); box-shadow: inset 3px 0 var(--teal); }
.ticket-id, .activity-label { color: var(--teal-dark); }
.badge { border-radius: 999px; padding: 4px 8px; font: 700 10px "Segoe UI", system-ui, sans-serif; }
.detail-title { font: 700 20px/1.3 "Segoe UI", system-ui, sans-serif; }
.detail-message { color: var(--ink-soft); font-size: 13px; }
.detail-field { border-color: var(--line); border-radius: 4px; background: var(--paper); }
.detail-field span, .control-block label, .form-field label { color: var(--muted); font: 700 10px "Segoe UI", system-ui, sans-serif; letter-spacing: .035em; }
.detail-field b { font: 600 12px "Segoe UI", system-ui, sans-serif; }
.severity-editor { grid-column: 1 / -1; margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.severity-editor h3 { margin: 0 0 14px; font-size: 15px; }
.severity-editor .form-grid { gap: 14px; }
.severity-work-impact { grid-column: 1 / -1; }
.severity-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 7px; }
.severity-choice { display: flex; align-items: flex-start; gap: 9px; min-width: 0; min-height: 58px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--paper); cursor: pointer; }
.severity-choice input { flex: 0 0 auto; width: 16px; height: 16px; min-height: 16px; margin: 1px 0 0; accent-color: var(--teal); }
.severity-choice-copy { display: grid; min-width: 0; gap: 3px; }
.severity-choice-copy strong { color: var(--ink); font-size: 12px; line-height: 1.25; }
.severity-choice-copy small { color: var(--muted); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.severity-choice:has(input:checked) { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); }
.severity-choice:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
[data-theme="dark"] .severity-choice { background: var(--surface); }
@media (max-width: 680px) {
  .severity-editor { padding: 12px; }
  .severity-choice-grid { grid-template-columns: minmax(0, 1fr); }
}
.catalog-groups { gap: 12px; }
.catalog-card { padding: 15px; }
.catalog-item { border-radius: 4px; color: var(--ink); background: var(--paper); font: 13px "Segoe UI", system-ui, sans-serif; }
.catalog-item:hover, .catalog-item:focus-visible { border-color: #b9ddd6; color: var(--teal-dark); background: var(--mint); }
.config-tabs { background: color-mix(in srgb, var(--paper) 70%, var(--surface)); }
.config-tab { font: 650 12px "Segoe UI", system-ui, sans-serif; }
.config-tab.active { color: var(--teal-dark); }
.toast { z-index: 60; max-width: min(420px, calc(100vw - 32px)); border-radius: 4px; background: #25313a; }
.employee-menu-button, .employee-menu-backdrop, .employee-menu { display: none; }
body[data-role="employee"] .employee-menu-button { display: grid; }
.employee-search { display: none; }
.section-label { margin: 26px 0 11px; color: var(--ink); font: 700 18px "Segoe UI", system-ui, sans-serif; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topic-card { display: grid; justify-items: start; gap: 4px; min-width: 0; min-height: 108px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); text-align: start; }
.topic-card:hover, .topic-card:focus-visible { border-color: var(--teal); background: var(--mint); }
.topic-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 3px; border-radius: 4px; color: var(--teal-dark); background: var(--mint); }
.topic-icon .icon { width: 17px; height: 17px; }
.topic-label { font-weight: 700; }
.topic-hint { color: var(--muted); font-size: 12px; }
.my-requests-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 7px; }
.my-requests-head .section-label { margin-bottom: 11px; }
.text-button { border: 0; padding: 2px 0; color: var(--teal-dark); background: transparent; font: 700 12px "Segoe UI", system-ui, sans-serif; }
.request-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; text-align: start; cursor: pointer; }
.request-row:first-child { border-top: 0; }
.request-row > span:first-child { display: grid; min-width: 0; gap: 3px; }
.request-title { overflow-wrap: anywhere; font-weight: 700; }
.request-row:hover, .request-row.is-selected { background: var(--mint); }
.employee-detail { margin-top: 14px; }
.employee-detail:empty { display: none; }
.employee-detail .detail-events { display: none; }
.employee-detail .detail-panel { position: static; max-height: none; }
.employee-detail .comment-section { display: grid; gap: 8px; }
.employee-detail .comment-section .eyebrow { margin-bottom: 0; }
.employee-detail .comment { padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; }
.employee-detail .work-controls { margin-top: 12px; padding-top: 0; border: 0; }
.decision-list { display: grid; gap: 9px; }
.decision-card { display: grid; justify-items: start; gap: 5px; width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); text-align: start; cursor: pointer; }
.decision-card strong { overflow-wrap: anywhere; }
.decision-card:hover, .decision-card.is-selected { border-color: var(--teal); background: var(--mint); }
body[data-role="employee"] .app-shell, body[data-role="approver"] .app-shell { display: block; }
body[data-role="employee"] .sidebar, body[data-role="approver"] .sidebar { display: none; }
body[data-role="employee"] .main-column, body[data-role="approver"] .main-column { grid-column: auto; }
body[data-role="employee"] .content { max-width: 880px; margin-inline: auto; padding: 22px 24px 60px; }
body[data-role="approver"] .content { max-width: 760px; margin-inline: auto; padding: 22px 24px 60px; }
body[data-role="employee"] .page-heading { margin: 10px 0 6px; text-align: center; }
body[data-role="employee"] .page-heading h1 { font-size: 34px; }
body[data-role="employee"] .page-description { margin-inline: auto; }
body[data-role="employee"] .breadcrumb, body[data-role="approver"] .breadcrumb { display: none; }
body[data-role="employee"] #employee-home { display: block; }
body[data-role="employee"] .employee-search { display: flex; align-items: center; gap: 10px; height: 52px; margin: 16px auto 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
body[data-role="employee"] .employee-search:focus-within { border-color: var(--teal); }
body[data-role="employee"] .employee-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
body[data-role="employee"] .global-search, body[data-role="employee"] .sidebar, body[data-role="employee"] #view-queue .queue-tools, body[data-role="employee"] #view-queue .queue-layout { display: none; }
body[data-role="employee"] #view-catalog .eyebrow { display: none; }
body[data-role="employee"] #view-catalog #catalog-table { display: none; }
body[data-role="employee"] .routing-preview { display: none; }
body[data-role="employee"] .form-footer .small-meta { display: none; }
body[data-role="employee"] h1 { font-weight: 650; }
body[data-role="approver"] .queue-layout { grid-template-columns: minmax(0, 1fr); }
body[data-role="approver"] .detail-panel { position: static; max-height: none; margin-top: 12px; }
body[data-role="approver"] .table-toolbar, body[data-role="approver"] .column-picker { display: none; }
.employee-menu-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(21, 25, 32, .36); }
.employee-menu { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; display: flex; flex-direction: column; gap: 3px; width: min(300px, 86vw); padding: 12px 10px 18px; border-inline-end: 1px solid var(--line); background: var(--surface); box-shadow: 8px 0 28px rgba(21, 25, 32, .12); transform: translateX(-105%); transition: transform .18s ease; }
.employee-menu.is-open { transform: translateX(0); }
.employee-menu[hidden], .employee-menu-backdrop[hidden] { display: none !important; }
.employee-menu:not([hidden]) { display: flex; }
.employee-menu-backdrop:not([hidden]) { display: block; }
.employee-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.employee-menu-head strong { font-size: 14px; }
.employee-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-inline-start: 3px solid transparent; border-radius: 4px; color: var(--ink); background: transparent; text-align: start; font-weight: 650; }
.employee-nav-item:hover { background: var(--paper); }
.employee-nav-item[aria-current="page"] { color: var(--teal-dark); background: var(--mint); border-inline-start-color: var(--teal); }
.employee-menu-foot { margin-top: auto; padding: 12px 10px 4px; color: var(--muted); font-size: 12px; }
[dir="rtl"] .employee-menu { box-shadow: -8px 0 28px rgba(21, 25, 32, .12); transform: translateX(105%); }
[dir="rtl"] .employee-menu.is-open { transform: translateX(0); }
[data-theme="dark"] .topbar { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .sidebar { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .topic-card, [data-theme="dark"] .request-list, [data-theme="dark"] .decision-card { border-color: var(--line); background: var(--surface); }
[data-theme="dark"] .topic-card:hover, [data-theme="dark"] .request-row:hover, [data-theme="dark"] .request-row.is-selected, [data-theme="dark"] .decision-card:hover, [data-theme="dark"] .decision-card.is-selected { background: var(--mint); }
[data-theme="dark"] .employee-search, [data-theme="dark"] .employee-menu { border-color: var(--line); background: var(--surface); }
[data-theme="dark"] .employee-search input { color: var(--ink); }
[data-theme="dark"] .panel-header, [data-theme="dark"] .request-row, [data-theme="dark"] .employee-detail .comment { border-color: var(--line); }
[data-theme="dark"] .detail-message, [data-theme="dark"] .detail-field, [data-theme="dark"] .resolution-control { color: var(--ink-soft); background: var(--paper); border-color: var(--line); }
[data-theme="dark"] .callout { color: #e8bb61; background: #3a2f16; }
[data-theme="dark"] .approval-summary { color: var(--ink); background: #3a2f16; }
[data-theme="dark"] .routing-preview { color: var(--teal-dark); background: var(--mint); }
[data-theme="dark"] th, [data-theme="dark"] .table-toolbar { color: var(--muted); background: #171a1f; }
[data-theme="dark"] .table-toolbar .table-search, [data-theme="dark"] .search-input, [data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--ink); background: #121417; border-color: var(--line-strong); }
[data-theme="dark"] .action { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
[data-theme="dark"] .action:hover { background: var(--mint); }
[data-theme="dark"] .catalog-item { color: var(--ink); background: #171a1f; }
[data-theme="dark"] .catalog-item:hover { background: var(--mint); }
[dir="rtl"] .topbar { direction: rtl; }
[dir="rtl"] .nav-button { text-align: start; }
[dir="rtl"] .request-row, [dir="rtl"] .topic-card, [dir="rtl"] .decision-card { text-align: start; }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 56px; width: 100%; height: auto; min-height: 0; overflow: auto; padding: 6px 10px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .sidebar > div { min-width: 0; }
  .nav-list { display: flex; width: max-content; min-width: 100%; gap: 3px; }
  .nav-button { flex: 0 0 auto; width: auto; }
  .main-column { grid-column: 1; }
  .content { padding: 19px 18px 44px; }
  .dashboard-grid, .queue-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-panel { position: static; max-height: none; }
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 7px; padding-block: 8px; }
  .topbar-tools { flex-wrap: wrap; }
  .global-search { max-width: none; }
  body[data-role="admin"] .sidebar { height: auto; }
  body[data-role="employee"] .content, body[data-role="approver"] .content { padding: 20px 18px 46px; }
  body[data-role="admin"] .sidebar { top: 100px; }
}
@media (max-width: 680px) {
  .topbar { gap: 8px; padding: 8px 11px; }
  .topbar > .brand { flex: 1 1 auto; min-width: 0; }
  .breadcrumb { display: none; }
  .topbar-tools { flex: 1 0 100%; justify-content: space-between; gap: 6px; }
  .global-search { order: 10; flex: 1 0 100%; }
  .role-control, .language-control { padding-inline-start: 0; border: 0; }
  .role-control span, .language-control span, .env-pill { display: none; }
  .role-control select { max-width: min(150px, 37vw); }
  .language-control select { max-width: 88px; }
  .app-shell { display: block; padding-bottom: 0; }
  .sidebar { top: 96px; }
  .content, body[data-role="employee"] .content, body[data-role="approver"] .content { padding: 17px 13px 38px; }
  .page-heading h1 { font-size: 25px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { min-height: 88px; padding: 12px; }
  .metric strong { font-size: 24px; }
  .form-grid, .work-controls, .record-form { grid-template-columns: minmax(0, 1fr); }
  .form-field.full, .control-block.full { grid-column: auto; }
  .routing-preview { grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .topic-card { min-height: 104px; padding: 11px; }
  .section-label { margin-top: 20px; font-size: 16px; }
  .request-row { align-items: flex-start; padding: 11px; }
  .request-row .badge { flex: 0 0 auto; white-space: normal; text-align: center; }
  .employee-detail .detail-body { padding: 14px; }
  .my-requests-head { align-items: center; }
  .decision-actions { flex-wrap: wrap; }
  .config-list-tools { flex-wrap: wrap; }
  .table-wrap { max-width: 100%; overflow-x: auto; }
  body[data-role="employee"] .global-search { display: none; }
  body[data-role="employee"] .topbar-tools { flex: 1 0 100%; width: 100%; }
  body[data-role="employee"] .topbar { flex-wrap: wrap; }
  body[data-role="employee"] .page-heading h1 { font-size: 31px; }
}


.auth-locked #app-topbar .global-search,
.auth-locked #app-topbar .session-control,
.auth-locked #app-topbar #refresh-button,
.auth-locked #app-topbar .breadcrumb { display: none; }
.auth-locked #app-shell { display: none; }
.login-screen { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 28px 20px 44px; background: radial-gradient(circle at top, rgba(8, 125, 120, .12), transparent 42%), linear-gradient(180deg, rgba(223, 241, 234, .55), rgba(244, 247, 246, 0)); }
.login-panel { width: min(100%, 460px); padding: 26px 24px 22px; border-radius: 14px; }
.login-copy { margin-bottom: 18px; }
.login-copy h1 { margin: 0; font-size: 30px; font-weight: 720; }
.demo-entry { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-entry select { width: 100%; min-height: 44px; }
.demo-entry > .primary-button { width: 100%; min-height: 44px; }
.demo-entry > .small-meta { margin: 0; line-height: 1.5; }
.login-form { display: grid; gap: 14px; }
.login-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.login-actions > button { inline-size: 100%; min-block-size: 42px; }
.login-form input { width: 100%; }
.login-error { margin: 0; padding: 10px 12px; color: #8f2e24; background: #fff1ef; border: 1px solid #e3b1a8; border-radius: 8px; }
.login-form.is-busy { opacity: .85; }
.session-control { gap: 9px; }
.session-control output { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--teal-dark); font: 700 10px ui-monospace, Consolas, monospace; }
#logout-button { flex: 0 0 auto; }
[data-theme="dark"] .login-screen { background: radial-gradient(circle at top, rgba(84, 189, 178, .18), transparent 42%), linear-gradient(180deg, rgba(16, 24, 22, .7), rgba(14, 23, 21, .92)); }
[data-theme="dark"] .login-error { color: #ffd5ce; background: rgba(199, 80, 61, .18); border-color: rgba(229, 120, 102, .35); }
[dir="rtl"] .session-control { padding-left: 0; padding-right: 10px; border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 680px) { .login-screen { min-height: calc(100vh - 64px); padding: 18px 12px 30px; } .login-panel { padding: 20px 16px 18px; } .login-copy h1 { font-size: 26px; } .session-control { width: auto; margin-right: 0; } .session-control output { max-width: 120px; } }
.brand-home { display: inline-flex; align-items: center; min-width: 0; gap: 9px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: start; cursor: pointer; }
.brand-home > span:last-child { display: grid; min-width: 0; gap: 2px; }
.brand-home .brand-title, .brand-home .brand-subtitle { display: block; overflow-wrap: anywhere; }
.brand-home .brand-title { white-space: nowrap; }
.brand-home .brand-subtitle { margin: 0; }
.brand-home:hover { color: var(--teal-dark); background: transparent; }
.account-menu-button { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 190px; min-height: 40px; padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; color: var(--ink); background: transparent; font: 650 12px "Segoe UI", system-ui, sans-serif; text-align: start; cursor: pointer; }
.account-menu-button:hover, .account-menu-button[aria-expanded="true"] { border-color: var(--line); background: var(--surface); }
.account-menu-button[hidden] { display: none !important; }
.account-control { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
.account-profile { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 70; display: grid; gap: 12px; width: min(340px, calc(100vw - 24px)); max-height: min(72vh, 640px); overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 12px 32px rgba(20, 33, 31, .2); }
.account-profile[hidden] { display: none !important; }
.account-profile .menu-account-card, .account-profile .user-menu-settings { margin: 0; }
.account-profile .user-menu-settings { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 4px 0; }
.account-profile .menu-sign-out { margin: 0; border-top: 1px solid var(--line); }
.account-profile .employee-nav-item { min-height: 40px; }
.account-profile:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
[data-theme="dark"] .account-profile { border-color: var(--line); background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
@media (max-width: 680px) {
  .account-profile { inset-inline-end: -2px; width: min(320px, calc(100vw - 22px)); }
}
.account-avatar, .menu-account-avatar { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); }
.account-avatar .icon, .menu-account-avatar .icon { width: 17px; height: 17px; }
.account-menu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-caret { display: grid; flex: 0 0 16px; place-items: center; color: var(--muted); }
.account-menu-caret .icon { width: 14px; height: 14px; }
.menu-account-card { display: flex; align-items: center; gap: 12px; margin: 8px 4px 14px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.menu-account-avatar { flex-basis: 40px; width: 40px; height: 40px; }
.menu-account-avatar .icon { width: 22px; height: 22px; }
.menu-account-copy { display: grid; min-width: 0; gap: 3px; }
.menu-account-copy strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.menu-account-copy span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.user-menu-settings { display: grid; gap: 10px; margin: 0 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.user-menu-settings h2 { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.user-menu-settings .language-control { display: grid; gap: 5px; padding: 0; border: 0; }
.user-menu-settings .language-control > span { color: var(--muted); font-size: 11px; }
.user-menu-settings .language-control select { width: 100%; max-width: none; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); }
.user-menu-setting { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); text-align: start; cursor: pointer; }
.user-menu-setting span:first-child { display: grid; place-items: center; width: 18px; height: 18px; }
.user-menu-setting .icon { width: 16px; height: 16px; }
.menu-sign-out { margin-top: 6px; border-top: 1px solid var(--line); color: #a33127; }
.my-requests-head { align-items: center; flex-wrap: wrap; }
.my-requests-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.my-requests-incident { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; font-size: 13px; font-weight: 700; }
.my-requests-incident [data-icon] .icon { width: 17px; height: 17px; }
.my-requests-incident:focus-visible, .user-menu-setting:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[data-theme="dark"] .menu-account-card, [data-theme="dark"] .user-menu-settings { border-color: var(--line); background: var(--surface); }
[data-theme="dark"] .user-menu-settings .language-control select, [data-theme="dark"] .user-menu-setting { color: var(--ink); background: var(--paper); }
@media (max-width: 980px) { .account-menu-name { max-width: 124px; } }
@media (max-width: 680px) {
  .account-menu-button { gap: 6px; padding-inline: 4px; }
  .account-menu-name { max-width: 98px; }
  .my-requests-head { align-items: stretch; flex-direction: column; gap: 5px; }
  .my-requests-actions { width: 100%; justify-content: space-between; }
  .my-requests-incident { flex: 1 1 100%; min-height: 44px; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   UI/UX Redesign Polish — Employee Self-Service & IT Operations Workspace
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #526071;
  --line: #dbe2ea;
  --line-strong: #bcc8d6;
  --paper: #f4f7fa;
  --surface: #ffffff;
  --teal: #0d7a68;
  --teal-dark: #085c4e;
  --mint: #e8f6f2;
  --gold: #b45309;
  --coral: #be342b;
  --blue: #1d6496;
  --shadow: 0 2px 8px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .06);
}

[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: #28323f;
  --line-strong: #3b495c;
  --paper: #0c1117;
  --surface: #151c24;
  --teal: #34b89f;
  --teal-dark: #7de2ce;
  --mint: #162c28;
  --gold: #f59e0b;
  --coral: #f87171;
  --blue: #60a5fa;
  --shadow: 0 4px 16px rgba(0, 0, 0, .28);
  --shadow-lg: 0 16px 38px rgba(0, 0, 0, .48);
}

/* 1. Topbar & Navigation Refinement */
.topbar {
  height: 60px;
  min-height: 60px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .02);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 2px 6px rgba(13, 122, 104, .22);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand-subtitle {
  font-size: 11.5px;
  font-weight: 500;
}

.breadcrumb {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 11px;
}

.global-search {
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.global-search:focus-within {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(13, 122, 104, .12);
}

.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.icon-button:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

/* Account control & popup polish */
.account-menu-button {
  min-height: 40px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.account-menu-button:hover,
.account-menu-button[aria-expanded="true"] {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(13, 122, 104, .1);
}

.account-profile {
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.account-profile .menu-account-card {
  border-radius: 8px;
  padding: 12px;
}

/* Sidebar Navigation */
.sidebar {
  top: 60px;
  height: calc(100vh - 60px);
  padding: 16px 12px;
  background: var(--surface);
}

.nav-button {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.nav-button[aria-current="page"] {
  font-weight: 700;
}

/* 2. Page Heading & Surface Hierarchy */
.content {
  padding: 26px 30px 56px;
}

.page-heading {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.panel,
.metric,
.catalog-card,
.record-form {
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 16px 20px;
  background: color-mix(in srgb, var(--surface) 85%, var(--paper));
  border-radius: 10px 10px 0 0;
}

/* 3. KPI Metrics & Priority / SLA Badges */
.metrics {
  gap: 16px;
  margin-bottom: 22px;
}

.metric {
  min-height: 112px;
  padding: 18px 20px;
  border-top: 3px solid var(--teal);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.metric.gold { border-top-color: var(--gold); }
.metric.coral { border-top-color: var(--coral); }
.metric.blue { border-top-color: var(--blue); }

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric strong {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.metric .metric-label {
  font-weight: 600;
  font-size: 12.5px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  font: 700 11px "Segoe UI", system-ui, sans-serif;
  border: 1px solid transparent;
}

.priority-pill.priority-p1 {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.priority-pill.priority-p2 {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.priority-pill.priority-p3 {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.priority-pill.priority-p4 {
  color: var(--ink-soft);
  background: var(--paper);
  border-color: var(--line);
}

[data-theme="dark"] .priority-pill.priority-p1 {
  color: #fca5a5;
  background: rgba(185, 28, 28, .22);
  border-color: rgba(248, 113, 113, .35);
}

[data-theme="dark"] .priority-pill.priority-p2 {
  color: #fcd34d;
  background: rgba(180, 83, 9, .22);
  border-color: rgba(251, 191, 36, .35);
}

[data-theme="dark"] .priority-pill.priority-p3 {
  color: #93c5fd;
  background: rgba(29, 78, 216, .22);
  border-color: rgba(96, 165, 250, .35);
}

[data-theme="dark"] .priority-pill.priority-p4 {
  color: var(--ink-soft);
  background: #1e2631;
  border-color: var(--line);
}

.sla-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font: 600 11px "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.sla-pill.is-breached {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.sla-pill.is-paused {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

[data-theme="dark"] .sla-pill.is-breached {
  color: #fca5a5;
  background: rgba(185, 28, 28, .22);
  border-color: rgba(248, 113, 113, .35);
}

[data-theme="dark"] .sla-pill.is-paused {
  color: #fcd34d;
  background: rgba(180, 83, 9, .22);
  border-color: rgba(251, 191, 36, .35);
}

/* 4. Employee Self-Service Workspace Redesign */
body[data-role="employee"] .content {
  max-width: 960px;
  padding: 24px 24px 64px;
}

body[data-role="employee"] .page-heading {
  position: relative;
  margin: 4px 0 20px;
  padding: 26px 28px;
  text-align: start;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  background: linear-gradient(135deg, var(--mint) 0%, var(--surface) 72%);
  box-shadow: var(--shadow);
}

body[data-role="employee"] .page-heading h1 {
  font-size: 30px;
  line-height: 1.2;
}

body[data-role="employee"] .page-description {
  margin: 6px 0 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 14px;
}

body[data-role="employee"] .employee-search {
  height: 50px;
  margin: 0 0 22px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}

body[data-role="employee"] .employee-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 122, 104, .14);
}

.topic-grid {
  gap: 12px;
}

.topic-card {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--mint);
  box-shadow: var(--shadow-lg);
}

.topic-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 8px;
}

.topic-label {
  font-size: 14px;
  font-weight: 700;
}

.topic-hint {
  font-size: 12.5px;
  line-height: 1.35;
}

/* Employee Requests List & Status Filter Bar */
.my-requests-head {
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.my-requests-head .section-label {
  margin: 0;
}

.employee-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.employee-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font: 600 12px "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.employee-filter-chip:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.employee-filter-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

[data-theme="dark"] .employee-filter-chip[aria-pressed="true"] {
  color: #06221c;
}

.employee-filter-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.employee-filter-chip[aria-pressed="true"] .employee-filter-count {
  background: rgba(255, 255, 255, .22);
  color: inherit;
}

.request-list {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.request-row {
  padding: 14px 18px;
  transition: background .14s ease;
}

.request-row.is-selected {
  box-shadow: inset 4px 0 0 var(--teal);
}

[dir="rtl"] .request-row.is-selected {
  box-shadow: inset -4px 0 0 var(--teal);
}

.request-meta-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* 5. Ticket Detail View & Conversation Thread */
.detail-panel {
  border-radius: 10px;
}

.detail-body {
  padding: 22px;
}

.detail-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-message {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.55;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.detail-field {
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.detail-field b {
  margin-top: 4px;
  font-size: 12.5px;
}

.comment-section {
  display: grid;
  gap: 10px;
}

.comment {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.comment.is-internal {
  background: #fffbeb;
  border-color: #fde68a;
}

[data-theme="dark"] .comment.is-internal {
  background: rgba(180, 83, 9, .14);
  border-color: rgba(251, 191, 36, .28);
}

/* 6. Structured Forms & Routing Preview */
.structured-form .form-field > :is(input, select, textarea) {
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.structured-form .form-field > :is(input, select, textarea):focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 122, 104, .14);
}

.routing-preview {
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-inline-start: 4px solid var(--teal);
  background: var(--mint);
  padding: 14px 16px;
}

.action,
.primary-button {
  border-radius: 7px;
  font-weight: 650;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

/* 7. Employee Services Header & Incident CTA on Top of Services */
.employee-services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.employee-services-head .section-label {
  margin: 0;
}

/* 8. Role Badges, Approver Navigation & Role Overview Cards */
.account-menu-button {
  max-width: 280px;
}

.account-menu-role {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 10px/1.3 "Segoe UI", system-ui, sans-serif;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.account-menu-role.role-admin {
  color: #085c4e;
  background: #e8f6f2;
  border-color: #9bd5c1;
}

.account-menu-role.role-approver {
  color: #7c4a0d;
  background: #fff4dd;
  border-color: #e7c58d;
}

.account-menu-role.role-employee {
  color: #165b82;
  background: #eaf5fa;
  border-color: #9bcce0;
}

[data-theme="dark"] .account-menu-role.role-admin {
  color: #9bdbc4;
  background: #173328;
  border-color: #2c5e4c;
}

[data-theme="dark"] .account-menu-role.role-approver {
  color: #f6d28b;
  background: #3a2f16;
  border-color: #6b5322;
}

[data-theme="dark"] .account-menu-role.role-employee {
  color: #a8def2;
  background: #18323e;
  border-color: #2b586e;
}

.role-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-overview-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.role-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-overview-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

body[data-role="approver"] .app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
}

body[data-role="approver"] .sidebar {
  display: flex;
}

body[data-role="approver"] .main-column {
  grid-column: 2;
}

body[data-role="approver"] .content {
  max-width: 1400px;
}

/* 9. Full 5-Stage Demand Lifecycle UI */
.demand-stage-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.demand-stage-pill {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demand-stage-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demand-stage-pill-top strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
}

.demand-stage-pill-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.demand-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.demand-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.demand-step-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font: 700 11px "Segoe UI", system-ui, sans-serif;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.demand-step.is-done {
  border-color: #9bd5c1;
  background: var(--mint);
}

.demand-step.is-done .demand-step-num,
.demand-step.is-current .demand-step-num {
  color: #ffffff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

[data-theme="dark"] .demand-step.is-done .demand-step-num,
[data-theme="dark"] .demand-step.is-current .demand-step-num {
  color: #06221c;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.demand-step.is-current {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.demand-step-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.demand-step-copy strong {
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.demand-step-copy small {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.demand-next-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-inline-start: 4px solid var(--teal);
  background: var(--mint);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

.demand-lifecycle-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.demand-stage-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.demand-stage-card.is-active {
  border-color: var(--teal);
  background: var(--surface);
}

.demand-stage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.demand-stage-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.demand-stage-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  body[data-role="approver"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-role="approver"] .main-column {
    grid-column: 1;
  }
  .demand-stage-summary,
  .demand-stepper,
  .role-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body[data-role="employee"] .page-heading {
    padding: 18px 16px;
  }
  .topbar .account-menu-role {
    display: none;
  }
  .employee-services-head {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-grid,
  .demand-stage-summary,
  .demand-stepper,
  .role-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
