/* Helpdesk design system. Shared tokens and components at 100% browser zoom. */
:root {
    --ink-950: #172b36;
    --ink-900: #263b46;
    --ink-800: #344956;
    --steel-700: #4f626e;
    --steel-500: #5e707a;
    --steel-300: #cbd5db;
    --steel-200: #e1e7eb;
    --steel-100: #f0f4f6;
    --surface-soft: #f8fafb;
    --surface-muted: #f3f6f8;
    --accent: #087f73;
    --accent-strong: #087f73;
    --accent-dark: #07685f;
    --success: #187247;
    --warning: #8a590c;
    --danger: #b23737;
    --radius: 8px;
    --radius-sm: 5px;
    --shadow-sm: 0 1px 3px #172b3608;
    --shadow-md: 0 8px 24px #172b3612;
    --shadow-lg: 0 12px 40px #172b3620;
    --ring: 0 0 0 3px #087f7326;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --bs-primary: #087f73;
    --bs-primary-rgb: 8, 127, 115;
    --bs-body-font-size: .875rem;
}
html { scroll-padding-top: 90px; }
body.app-body, body.has-sidebar { background: #f5f7f9; font-size: .875rem; line-height: 1.55; }
h1, h2, h3, h4, h5, h6 { font-weight: 650; line-height: 1.3; }
h1, .h3, .h4, .page-header h1, .inventory-hero-copy h1,
.portal-main-content .d-flex.justify-content-between.align-items-start.mb-4 h1 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: -.035em; }
h2, .h5, .table-toolbar h2, .inventory-action-strip h2 { font-size: .975rem; }
h3, .h6 { font-size: .875rem; }
.eyebrow { font-size: .65rem; letter-spacing: .09em; font-weight: 650; margin-bottom: .4rem; color: var(--steel-500); }
.fw-semibold { font-weight: 600 !important; }
.ui-icon { display: inline-block; flex-shrink: 0; vertical-align: -.2em; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; }
p a:not(.btn):not(.text-link), .auth-note a { text-decoration: underline; text-underline-offset: 3px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.portal-sidebar { background: #fff; color: var(--ink-900); }
.portal-sidebar.offcanvas-lg { width: 228px; border-right: 1px solid var(--steel-200); }
.portal-sidebar .sidebar-inner { width: 100%; padding: 1.25rem .8rem; gap: .8rem; }
.sidebar-brand { padding: 0 .6rem 1.05rem; border-bottom: 1px solid var(--steel-200); }
.sidebar-brand, .sidebar-brand:hover { color: var(--ink-950); }
.brand-logo { display: block; width: 80px; height: 80px; flex-shrink: 0; object-fit: contain; background: #fff; }
.brand-title { font-size: .94rem; font-weight: 700; }
.sidebar-brand .brand-title { color: var(--ink-950); }
.sidebar-brand .brand-subtitle { color: var(--steel-500); font-size: .65rem; letter-spacing: .13em; }
.sidebar-nav { gap: 3px; }
.sidebar-section { margin: .75rem .75rem .4rem; color: var(--steel-500); font-size: .61rem; letter-spacing: .1em; font-weight: 650; }
.sidebar-link { min-height: 38px; padding: .55rem .7rem; gap: .7rem; font-size: .8rem; font-weight: 500; border: 0; border-radius: 6px; color: #526572; }
.sidebar-link:hover, .sidebar-link:focus { transform: none; background: var(--surface-muted); color: var(--ink-950); }
.sidebar-link.active { background: #e9f5f2; color: var(--accent-dark); box-shadow: inset 3px 0 var(--accent); font-weight: 650; }
.sidebar-icon { width: 19px; height: 19px; flex: 0 0 19px; border: 0; border-radius: 0; background: none; color: inherit; }
.sidebar-mobile-header { border-color: var(--steel-200); }
.sidebar-mobile-header .btn-close { filter: none; }
.sidebar-mobile-header .sidebar-brand { padding-bottom: 0; border: 0; }
.sidebar-footnote { margin: auto .7rem 0; padding-top: 1.5rem; color: var(--steel-500); font-size: .7rem; display: flex; align-items: center; gap: .5rem; }
.portal-topbar { min-height: 62px; padding: .65rem clamp(1rem, 2.2vw, 2rem); gap: .75rem; background: #fff; backdrop-filter: none; box-shadow: none; border-color: var(--steel-200); }
.portal-topbar.is-scrolled { box-shadow: var(--shadow-sm); }
.topbar-context { gap: .15rem; }
.topbar-context span { font-size: .63rem; font-weight: 500; text-transform: none; }
.topbar-context strong { font-size: .81rem; font-weight: 600; }
.topbar-actions { gap: .8rem; }
.user-chip { border: 0; background: none; padding: 0; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: .8rem; font-weight: 600; }
.user-chip-light .user-avatar { background: #e9f5f2; color: var(--accent-dark); }
.user-meta span { font-size: .78rem; font-weight: 600; }
.user-meta small { font-size: .65rem; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ''; border-right: 1.5px solid var(--steel-500); border-bottom: 1.5px solid var(--steel-500); width: 6px; height: 6px; transform: rotate(45deg); margin: 0 .4rem .2rem; }
.account-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 245px; padding: .65rem; background: white; border: 1px solid var(--steel-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1030; }
.account-menu-panel > p { padding: .5rem; border-bottom: 1px solid var(--steel-200); overflow-wrap: anywhere; }
.account-menu-panel a, .account-menu-panel button { display: block; text-align: left; width: 100%; padding: .6rem; background: none; border: 0; border-radius: 5px; color: var(--ink-800); font-size: .8rem; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: var(--surface-muted); }
.topbar-icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--steel-700); }
.topbar-icon-link:hover { background: var(--surface-muted); }
.content-frame { max-width: 1560px; width: 100%; padding-inline: clamp(1rem, 2.2vw, 2rem); }
.portal-main-content { padding-top: 1.65rem; padding-bottom: 3rem; }
.page-header { align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.page-header p, .inventory-hero-copy p { font-size: .83rem; max-width: 740px; color: var(--steel-500); margin-top: .35rem; line-height: 1.5; }
.page-actions { gap: .5rem; flex-shrink: 0; }
.portal-footer { border-top: 1px solid var(--steel-200); background: transparent; font-size: .68rem; padding-block: .85rem; }
.portal-footer .content-frame span:first-child { font-weight: 600; }
.card, .metric-card, .quick-action-card { background: white; border: 1px solid var(--steel-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--steel-200); }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card-body, .row.justify-content-center .card-body { padding: 1.25rem; }
.card h2, .card h3 { font-weight: 650; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.metric-card { padding: 1rem 1.15rem; min-width: 0; color: var(--ink-950); }
.metric-card:hover { transform: none; box-shadow: var(--shadow-sm); }
a.metric-card:hover { border-color: #95bfb8; background: #fcfefd; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.metric-top .ui-icon { color: var(--steel-500); }
.metric-label { color: var(--steel-700); font-size: .75rem; font-weight: 500; text-transform: none; }
.metric-value { margin-top: .6rem; font-size: 1.85rem; font-weight: 600; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-description { margin-top: .5rem; color: var(--steel-500); font-size: .68rem; }
.quick-action-grid { gap: .9rem; margin-bottom: 1.5rem; }
.quick-action-card { padding: 1.1rem; }
.quick-action-card:hover, .quick-action-card:focus { transform: none; border-color: #95bfb8; background: #fcfefd; box-shadow: var(--shadow-sm); }
.quick-action-card strong { font-size: .9rem; font-weight: 600; }
.quick-action-kicker { font-size: .63rem; font-weight: 600; letter-spacing: .07em; }
.quick-action-card small { font-size: .75rem; }
.table-toolbar { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--steel-200); gap: .75rem; }
.table-toolbar h2 { margin-bottom: 0; }
.table-toolbar p { font-size: .75rem; margin: .25rem 0 0; }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); scrollbar-width: thin; }
.table { font-size: .8rem; color: var(--ink-900); --bs-table-color: var(--ink-900); }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-color: #edf0f2; box-shadow: none; }
.table thead th { background: #f8fafb; color: #647580; font-size: .66rem; font-weight: 600; text-transform: none; white-space: nowrap; letter-spacing: .015em; }
.table td { vertical-align: middle; }
.table td .ticket-link, .table td .record-title { display: block; min-width: 150px; max-width: 340px; overflow-wrap: anywhere; }
.table td .ticket-link { line-height: 1.45; }
.table td time { white-space: nowrap; font-size: .72rem; color: var(--steel-700); }
.table td:first-child { font-weight: 500; }
.table-hover > tbody > tr:hover > * { background: #f8fbfa; color: inherit; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th .sort-button { color: inherit; font: inherit; font-weight: inherit; background: none; border: 0; padding: 0; text-align: left; display: inline-flex; gap: .45rem; align-items: center; min-height: 24px; }
.sort-button::after { content: '\2195'; color: #80939d; }
th[aria-sort='ascending'] .sort-button::after { content: '\2191'; color: var(--accent); }
th[aria-sort='descending'] .sort-button::after { content: '\2193'; color: var(--accent); }
.table-tools { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; padding: .85rem 1.25rem; border-bottom: 1px solid var(--steel-200); }
.table-tools label { font-size: .7rem; color: var(--steel-700); display: grid; gap: .25rem; font-weight: 500; }
.table-tools .table-search { flex: 1 1 220px; max-width: 360px; }
.table-tools .form-control, .table-tools .form-select { min-height: 34px; font-size: .78rem; }
.table-pagination { padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--steel-200); color: var(--steel-500); font-size: .7rem; }
.pagination-actions { display: flex; align-items: center; gap: .5rem; }
.empty-state, .table td.text-center.text-secondary.py-4 { padding: 2.5rem 1.25rem !important; text-align: center; font-size: .8rem; background: white; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { font-size: .95rem; color: var(--ink-900); font-weight: 600; margin-bottom: .35rem; }
.empty-state span { font-weight: 400; color: var(--steel-500); }
.ticket-link { color: var(--ink-950); font-weight: 600; }
.ticket-link:hover { color: var(--accent); text-decoration: underline; }
.cell-meta { display: block; font-size: .7rem; color: var(--steel-500); font-weight: 400; margin-top: .25rem; }
.ticket-id { font-size: .73rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge, .badge.fs-6 { font-size: .66rem !important; font-weight: 500; padding: .35em .65em; line-height: 1.45; border-radius: 4px; white-space: normal; text-align: left; }
.badge.bg-secondary, .badge.text-bg-secondary, .status-badge { color: #52636e !important; background: #eef2f5 !important; border: 1px solid #e1e7ec; }
.status-badge { display: inline-flex; align-items: center; gap: .38rem; }
.status-badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex: 0 0 5px; }
.status-badge[data-status='new'], .status-badge[data-status='assigned'], .status-badge[data-status='accepted'], .status-badge[data-status='in_progress'], .status-badge[data-status='converted_to_ticket'] { color: #25658c !important; background: #eef6fc !important; border-color: #dceaf6; }
.status-badge[data-status='resolved'], .status-badge[data-status='completed'], .status-badge[data-status='approved'], .status-badge[data-status='active'], .status-badge[data-status='online'], .status-badge[data-status='verified'], .status-badge[data-status='paid'], .status-badge[data-status='sent'], .status-badge[data-status='installed'], .badge.bg-success, .badge.text-bg-success { color: #23653f !important; background: #edf7f0 !important; border-color: #d8ecdf; }
.status-badge[data-status*='pending'], .status-badge[data-status*='waiting'], .status-badge[data-status='submitted_for_approval'], .status-badge[data-status='reopened'], .status-badge[data-status='high'], .badge.bg-warning, .badge.text-bg-warning { color: #875909 !important; background: #fff7e5 !important; border-color: #f2e3bf; }
.status-badge[data-status='urgent'], .status-badge[data-status='rejected'], .status-badge[data-status='failed'], .status-badge[data-status='breached'], .badge.bg-danger, .badge.text-bg-danger { color: #a33333 !important; background: #fff0ef !important; border-color: #f5d9d6; }
.btn { min-height: 36px; padding: .52rem .9rem; font-size: .8rem; font-weight: 550; box-shadow: none; transition: background-color 150ms, border-color 150ms, box-shadow 150ms; }
.btn:hover, .btn:active { transform: none; }
.btn-sm { min-height: 30px; font-size: .72rem; padding: .35rem .65rem; }
.btn-lg { min-height: 42px; font-size: .875rem; }
.btn-primary, .btn-success { box-shadow: none; }
.btn-success { --bs-btn-bg: #24734d; --bs-btn-border-color: #24734d; --bs-btn-hover-bg: #1c5e3e; --bs-btn-hover-border-color: #1c5e3e; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-dark { --bs-btn-hover-bg: #f0f5f4; --bs-btn-hover-color: #07685f; --bs-btn-hover-border-color: #aac7c0; }
.btn-outline-light, .btn-ghost-light { color: #fff; }
.btn.is-loading { opacity: .7; color: inherit !important; }
.btn-primary.is-loading, .btn-success.is-loading { color: #fff !important; }
.btn.is-loading::after { display: none; }
.btn.is-loading::before { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.form-label { font-size: .76rem; font-weight: 550; margin-bottom: .35rem; }
.form-control, .form-select { font-size: .83rem; min-height: 38px; border-radius: 6px; padding: .45rem .7rem; line-height: 1.5; box-shadow: none; }
.form-select { padding-right: 2.1rem; }
.form-control-sm, .form-select-sm { min-height: 32px; font-size: .76rem; }
.form-control::placeholder { color: #7b8992; }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: #f4f6f8; color: var(--steel-700); }
.form-text { font-size: .7rem; color: var(--steel-500); line-height: 1.5; }
.required-mark { color: var(--danger); margin-left: .2rem; }
.field-control { display: block; flex: 1 1 auto; min-width: 0; margin: 0; }
.field-control > .field-label { display: block; font-size: .7rem; font-weight: 500; margin-bottom: .25rem; color: var(--steel-700); }
.form-section + .form-section { margin-top: 1.5rem; padding-top: 1.25rem; border-color: var(--steel-200); }
.form-section-title { font-size: .83rem; font-weight: 600; text-transform: none; margin-bottom: .9rem; }
fieldset.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.form-section + fieldset.form-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--steel-200); }
legend.form-section-title { float: none; width: auto; margin-bottom: .85rem; }
.form-control[aria-invalid='true'], .form-select[aria-invalid='true'] { border-color: var(--danger); }
.input-group:has(.field-control) { align-items: end; flex-wrap: nowrap; gap: .5rem; }
.input-group > .field-control { width: auto; }
.input-group:has(.field-control) > .btn { border-radius: 6px !important; flex-shrink: 0; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.request-details { min-width: 190px; max-width: 390px; }
.request-details summary { cursor: pointer; color: var(--accent-dark); font-size: .72rem; margin-top: .4rem; }
.request-details p { font-weight: 400; font-size: .78rem; margin: .5rem 0; }
.request-decision { min-width: 185px; }
.request-decision summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; }
.request-decision[open] summary { margin-bottom: .7rem; }
.record-reference { font-size: .7rem; color: var(--steel-500); font-weight: 400; }
.compact-stats { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.compact-stats > div { display: grid; gap: .2rem; flex: 1 1 130px; }
.compact-stats span { font-size: .72rem; color: var(--steel-500); }
.compact-stats strong { font-size: .9rem; font-weight: 600; }
.price-summary { position: sticky; top: 86px; }
.price-option + .price-option { border-top: 1px solid var(--steel-200); margin-top: 1rem; padding-top: 1rem; }
.price-option strong { font-size: 1.15rem; font-weight: 600; }
.price-option p { margin-bottom: .3rem; font-size: .78rem; }
.price-option .cell-meta { margin: 0; }
.request-steps { margin: 1rem 0 0; padding-left: 1.1rem; font-size: .78rem; color: var(--steel-700); }
.request-steps li + li { margin-top: .7rem; }
.form-step-heading { grid-column: 1/-1; margin: .6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--steel-200); }
.form-actions { display: flex; align-items: center; gap: .6rem; padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--steel-200); }
.password-field { position: relative; }
.password-field input { padding-right: 4rem; }
.password-toggle { position: absolute; right: .3rem; top: .2rem; min-height: 33px; padding: .3rem .6rem; border: 0; border-radius: 4px; color: var(--steel-700); background: transparent; font-size: .72rem; }
.password-toggle:hover { background: var(--surface-muted); }
.input-feedback { color: var(--danger); font-size: .72rem; margin: .35rem 0 0; }
.alert { border-radius: 6px; padding: .85rem 1rem; font-size: .8rem; }
.app-alert-stack { margin-bottom: 1.25rem; }
.inventory-hero { display: block; margin-bottom: 1.25rem; }
.inventory-hero-copy h1 { line-height: 1.3; font-weight: 650; margin-bottom: .35rem; }
.inventory-segmented-nav { display: flex; width: fit-content; max-width: 100%; gap: .25rem; margin-top: 1.1rem; padding: .25rem; border-radius: 7px; background: #eaf0f3; border: 0; box-shadow: none; overflow-x: auto; }
.inventory-segment { border: 0; border-radius: 5px; background: transparent; box-shadow: none; padding: .5rem .8rem; min-height: 34px; font-size: .78rem; font-weight: 500; gap: .4rem; }
.inventory-segment.active { background: #fff; box-shadow: var(--shadow-sm); color: var(--accent-dark); }
.inventory-segment:hover, .inventory-segment:focus { transform: none; box-shadow: none; background: #fff; }
.inventory-segment-icon { display: none; }
.inventory-action-strip { align-items: center; gap: .75rem; padding: 0; margin-bottom: 1rem; background: none; border: 0; }
.inventory-action-strip p { font-size: .78rem; }
.inventory-action-strip-buttons { gap: .4rem; }
.inventory-module-card, .inventory-empty-panel { box-shadow: none; padding: 1.15rem; border-radius: var(--radius); background: white; }
.inventory-module-card h2, .inventory-empty-panel h2 { font-size: 1rem; }
.inventory-module-card p, .inventory-empty-panel p { font-size: .8rem; }
.engineer-profile-hero { background: #fff; color: var(--ink-900); border-color: var(--steel-200); box-shadow: var(--shadow-sm); }
.engineer-avatar-xl { width: 64px; height: 64px; border-radius: 12px; background: #e9f5f2; color: var(--accent-dark); font-size: 1.5rem; }
.engineer-avatar-card h2, .profile-stats-grid strong { color: var(--ink-950); }
.engineer-avatar-card p, .profile-stats-grid span { color: var(--steel-500); }
.profile-stats-grid div { background: var(--surface-soft); border-color: var(--steel-200); }
.profile-detail-item span, .profile-stats-grid span { text-transform: none; font-weight: 500; font-size: .7rem; }
.permission-option { font-size: .8rem; box-shadow: none; }
.detail-list dd, dd { overflow-wrap: anywhere; }
dt { font-size: .8rem; font-weight: 600; color: var(--steel-700); }
.ticket-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ticket-heading h1 { margin: .4rem 0 .3rem; }
.ticket-heading .eyebrow { display: flex; align-items: center; gap: .65rem; }
.ticket-summary-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--steel-500); font-size: .73rem; }
.ticket-progress { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.workflow-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; padding: 0; margin: 0 0 1rem; }
.workflow-steps li { border-top: 3px solid var(--steel-200); padding-top: .6rem; font-size: .7rem; color: var(--steel-500); }
.workflow-steps li[aria-current='step'] { border-color: var(--accent); color: var(--accent-dark); font-weight: 650; }
.workflow-steps li.is-complete { border-color: #9acbbd; color: #47665d; }
.workflow-steps .ui-icon { margin-right: .2rem; }
.next-step { display: flex; align-items: start; gap: .7rem; background: #f1f8f6; border: 1px solid #deede8; border-radius: 6px; padding: .85rem 1rem; color: #3f655d; font-size: .78rem; }
.next-step strong { display: block; font-weight: 600; color: #244e44; margin-bottom: .15rem; }
.section-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--steel-200); padding: 0 0 .7rem; }
.section-nav a { color: var(--steel-700); font-size: .78rem; }
.section-nav a:hover { color: var(--accent); }
.ticket-disclosure > summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.ticket-disclosure > summary::-webkit-details-marker { display: none; }
.ticket-disclosure > summary::after { content: '+'; font-size: 1.1rem; font-weight: 400; color: var(--steel-500); }
.ticket-disclosure[open] > summary::after { content: '\2212'; }
.ticket-disclosure[open] > summary { border-bottom: 1px solid var(--steel-200); }
.timeline > div { position: relative; margin-left: .4rem; padding-left: 1.25rem !important; border-color: #d9e5e1 !important; }
.timeline > div::before { content: ''; position: absolute; top: .4rem; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px white; }
.timeline .fw-semibold { font-size: .8rem; }
.timeline .small { font-size: .7rem; }
.ticket-chat-launcher { background: var(--accent); font-size: .8rem; padding: .65rem .9rem; box-shadow: var(--shadow-md); min-width: 155px; }
.ticket-chat-panel { max-height: min(650px, calc(100dvh - 140px)); overflow-y: auto; }
.ticket-chat-header { background: #203c3e; padding: .85rem 1rem; }
.chat-message { overflow-wrap: anywhere; font-size: .8rem; }
.ticket-chat-widget { z-index: 1025; }
.notification-message summary { color: var(--steel-500); font-size: .76rem; cursor: pointer; font-weight: 400; }
.notification-message p { margin-top: .7rem; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 650px; font-weight: 400; }
.availability-strip { padding: 1rem 1.25rem; display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.availability-strip form { max-width: 360px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.25rem; margin-bottom: 1.5rem; align-items: start; }
.attention-list { margin: 0; padding: 0; list-style: none; }
.attention-list li { padding: .85rem 0; border-bottom: 1px solid var(--steel-200); }
.attention-list li:last-child { border: 0; padding-bottom: 0; }
.auth-layout { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 990px; margin: 2.5rem auto; border: 1px solid var(--steel-200); border-radius: 12px; background: white; overflow: hidden; box-shadow: var(--shadow-md); }
.auth-layout:has(#full_name) { grid-template-columns: .75fr 1.25fr; max-width: 1080px; }
.auth-intro { background: #193e3e; color: #e4efee; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-intro .eyebrow { color: #a8ccc4; }
.auth-intro h2 { font-size: 1.7rem; letter-spacing: -.04em; color: white; line-height: 1.3; max-width: 270px; margin: 1rem 0; }
.auth-intro p { font-size: .85rem; color: #c4d8d4; }
.auth-feature { display: flex; gap: .75rem; align-items: start; margin-top: 1.25rem; font-size: .8rem; }
.auth-feature .ui-icon { color: #95c5b9; }
.auth-content { padding: 2.5rem; align-self: center; }
.auth-content h1 { font-size: 1.35rem; }
.auth-content > p { font-size: .8rem; }
.auth-note { font-size: .7rem; color: var(--steel-500); margin-top: 1.5rem; }
.public-shell .app-navbar { background: #fff; box-shadow: none; border-bottom: 1px solid var(--steel-200); }
.public-shell .app-navbar .app-brand { color: var(--ink-950); }
.public-shell .app-navbar .brand-title { color: var(--ink-950); }
.error-layout { max-width: 600px; margin: 4rem auto; }
.error-layout .card-body { padding: 2rem; }
.public-shell .app-navbar .brand-subtitle { color: var(--steel-500); }
.public-shell .app-navbar .btn-ghost-light { color: var(--ink-800); }
.public-shell .app-nav-actions { flex-direction: row; align-items: center; gap: .5rem; }
.public-shell .app-navbar .container-xxl { min-height: 54px; }
.home-hero { background: #193e3e; min-height: auto; box-shadow: none; padding: clamp(1.5rem, 4vw, 3.5rem); }
.hero-grid { display: none; }
.hero-content { max-width: 660px; }
.hero-content h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 600; }
.hero-content p { font-size: .95rem; }
.hero-console { display: none; }
.section-heading h2, .split-band h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.35; }
.section-heading p { font-size: .875rem; }
.service-card::before { display: none; }
.process-step { background: white; border-color: var(--steel-200); box-shadow: none; }
@media (min-width: 992px) {
    .portal-sidebar.offcanvas-lg { flex-basis: 228px; width: 228px !important; background: #fff !important; }
}
@media (max-width: 1199.98px) {
    .workspace-grid { grid-template-columns: 1fr; }
    .page-header { align-items: start; }
    .page-actions { flex-shrink: 1; }
}
@media (max-width: 991.98px) {
    .portal-sidebar.offcanvas-lg { width: min(280px, 88vw); }
    .portal-topbar { min-height: 62px; }
    .portal-main-content { padding-top: 1.25rem; }
    .topbar-actions .user-chip-light { display: flex; }
    .user-chip .user-meta { display: none; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-layout { margin: 1.5rem auto; }
    .auth-intro, .auth-content { padding: 1.8rem; }
    .price-summary { position: static; }
    .ticket-layout { flex-direction: column; margin: 0; }
    .ticket-primary, .ticket-side { display: contents; }
    .ticket-layout #ticket-overview { order: -3; }
    .ticket-layout #engineer-actions { order: -2; }
    .ticket-layout #ticket-status { order: -1; }
    .ticket-layout .card { max-width: 100%; }
}
@media (max-width: 767.98px) {
    body.app-body { font-size: .875rem; }
    .portal-topbar { gap: .5rem; padding: .6rem .9rem; }
    .sidebar-toggle { width: 38px; height: 38px; flex-basis: 38px; }
    .topbar-context strong { max-width: 44vw; }
    .topbar-context span { max-width: 43vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .topbar-actions { gap: .3rem; }
    .topbar-verification { display: none; }
    .sidebar-brand .brand-copy { display: grid; }
    .content-frame { padding-inline: 1rem; }
    .portal-footer .content-frame { flex-direction: column; gap: .3rem; }
    .page-header, .ticket-heading { flex-direction: column; align-items: stretch; }
    .page-actions { flex-wrap: wrap; }
    .portal-main-content .d-flex.justify-content-between:not(.ticket-chat-header) { flex-wrap: wrap; gap: .6rem; }
    .metric-grid { gap: .65rem; }
    .metric-card { padding: .9rem; }
    .metric-value { font-size: 1.65rem; }
    .metric-description { font-size: .65rem; }
    .card-body { padding: 1rem; }
    .table-toolbar, .table-tools { padding: 1rem; }
    .table { min-width: 570px; }
    .table > :not(caption) > * > * { padding: .75rem .85rem; }
    .table-pagination { flex-wrap: wrap; padding: .75rem 1rem; }
    .table-tools label { flex: 1 1 130px; }
    .table-tools .table-search { flex-basis: 100%; max-width: none; }
    .btn, .btn-sm { min-height: 40px; }
    .form-control, .form-select { min-height: 42px; font-size: 1rem; }
    .form-control-sm, .form-select-sm { font-size: .875rem; }
    .password-toggle { min-height: 38px; }
    .inventory-segment { min-height: 38px; padding: .5rem .65rem; font-size: .75rem; }
    .workflow-steps { gap: .4rem; }
    .workflow-steps li { font-size: .7rem; }
    .ticket-progress { padding: 1rem; }
    .next-step { padding: .75rem; }
    .ticket-chat-widget { left: auto; right: 1rem; bottom: 1rem; }
    .ticket-chat-launcher { width: auto; margin: 0; }
    .ticket-chat-panel { position: fixed; inset: auto 1rem 4.5rem; width: auto; max-height: calc(100dvh - 155px); border-radius: 8px; }
    .ticket-chat-body { max-height: 32dvh; }
    .auth-layout { display: block; max-width: 540px; margin: 1rem auto; }
    .auth-intro { padding: 1.5rem; }
    .auth-intro h2 { font-size: 1.35rem; max-width: none; margin: .5rem 0; }
    .auth-intro p { margin: .5rem 0 0; }
    .auth-feature { display: none; }
    .auth-content { padding: 1.5rem; }
    .auth-layout:has(#full_name) { display: block; }
    .form-actions { flex-wrap: wrap; }
    .availability-strip form { width: 100%; max-width: none; }
    .table-tools .form-control, .table-tools .form-select { font-size: 1rem; min-height: 42px; }
    .account-menu-panel { max-width: calc(100vw - 2rem); }
    .section-nav { flex-wrap: nowrap; overflow-x: auto; padding-block: .5rem; }
    .section-nav a { white-space: nowrap; min-height: 30px; }
    .home-hero .hero-actions { align-items: stretch; }
    .home-hero .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
    .account-menu[open] .account-menu-panel, .ticket-chat-widget.is-open .ticket-chat-panel { animation: surface-in 140ms ease-out; }
    @keyframes surface-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
@media print {
    .portal-sidebar, .portal-topbar, .portal-footer, .ticket-chat-widget, .table-tools, .table-pagination, .page-actions { display: none !important; }
    .portal-main-content, .content-frame { padding: 0; }
    .table-responsive { overflow: visible; }
    table[data-work-table] tbody tr[hidden] { display: table-row !important; }
    table[data-work-table] tbody tr:has(.empty-state) { display: none !important; }
}
