:root {
  --ink: #172033;
  --muted: #667085;
  --line: #dfe4ec;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --navy: #102b4e;
  --navy-2: #173b67;
  --blue: #1769e0;
  --blue-soft: #eaf2ff;
  --teal: #087f72;
  --red: #c7364f;
  --orange: #d56a12;
  --purple: #7656c8;
  --shadow: 0 10px 30px rgba(26, 45, 75, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--navy), #0d223d 78%); color: #fff; padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; }
.brand, .auth-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 850; letter-spacing: -.04em; box-shadow: 0 8px 20px rgba(0,0,0,.16); flex: 0 0 auto; }
.brand strong, .auth-brand strong { display: block; font-size: .92rem; letter-spacing: .04em; }
.brand small, .auth-brand small { display: block; color: #a9bdd6; font-size: .78rem; margin-top: 1px; }
.sidebar nav { margin-top: 22px; padding-bottom: 28px; }
.sidebar nav p { color: #7994b3; font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; margin: 24px 12px 7px; }
.sidebar nav a { display: block; color: #dce7f4; padding: 8px 12px; border-radius: 9px; font-size: .9rem; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,.16); border-left-color: #67e8f9; color: #fff; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-group-work { margin: 20px 0 8px; padding: 7px; border: 1px solid rgba(103,232,249,.28); border-radius: 13px; background: rgba(6,182,212,.09); }
.sidebar nav .nav-group-work p { margin: -1px -1px 7px; padding: 9px 12px; border-radius: 9px; color: #06263d; background: linear-gradient(90deg, #67e8f9, #a5f3fc); letter-spacing: .09em; }
.nav-group-work a { margin-top: 2px; }
.nav-group-work.active-section { border-color: rgba(103,232,249,.65); background: rgba(6,182,212,.16); box-shadow: 0 8px 24px rgba(0,0,0,.14); }

.main { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.topbar-title small { display: block; color: var(--muted); font-size: .78rem; }
.topbar-title strong { font-size: 1.02rem; }
.user-menu { display: flex; align-items: center; gap: 14px; font-size: .88rem; }
.user-menu > span { font-weight: 650; }
.user-menu form { display: inline; }
.link-button { border: 0; padding: 0; color: var(--blue); background: transparent; }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 8px; }
.content { width: min(1480px, 100%); margin: 0 auto; padding: 30px 32px 56px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: clamp(1.55rem, 2vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 680; font-size: .9rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(23,105,224,.2); }
.button.primary:hover { background: #0d5cc9; }
.button.secondary { background: #fff; color: #263852; border-color: #cdd6e2; }
.button.secondary:hover { background: #f8fafc; }
.button.compact { min-height: 34px; padding: 6px 11px; font-size: .82rem; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--ink); box-shadow: var(--shadow); min-height: 142px; }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.metric-card:hover { text-decoration: none; border-color: #bdc9d8; transform: translateY(-2px); }
.metric-card span { display: block; color: var(--muted); font-size: .83rem; font-weight: 680; }
.metric-card strong { display: block; font-size: 2rem; line-height: 1; margin: 18px 0 10px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-size: .75rem; }
.metric-card.accent-red::before { background: var(--red); }.metric-card.accent-orange::before { background: var(--orange); }.metric-card.accent-teal::before { background: var(--teal); }.metric-card.accent-purple::before { background: var(--purple); }.metric-card.accent-slate::before { background: #64748b; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.panel > h2, .panel-heading h2, .prose-block h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; }
.narrow-panel { max-width: 620px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.detail-side { min-width: 0; }
.detail-badges { display: flex; gap: 8px; margin-bottom: 20px; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.definition-grid div { border-bottom: 1px solid #edf0f4; padding-bottom: 12px; }
.definition-grid dt { color: var(--muted); font-size: .78rem; margin-bottom: 3px; }
.definition-grid dd { margin: 0; font-weight: 620; }
.prose-block { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.prose-block p { margin-bottom: 0; white-space: normal; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .055em; font-weight: 760; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid #edf0f4; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td small, .check small { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 750; white-space: nowrap; background: #eef2f7; color: #40516a; }
.priority-critical, .status-rejected, .status-locked, .status-blocked { background: #fdecef; color: #a6253c; }
.priority-high, .status-waiting, .status-pending_manager, .status-pending_owner { background: #fff1df; color: #a74d08; }
.priority-medium, .status-new, .status-assigned, .status-approved { background: var(--blue-soft); color: #1656a7; }
.priority-low, .status-completed, .status-implemented, .status-active, .status-resolved { background: #e6f6f0; color: #08725e; }
.status-in_progress { background: #eee9fc; color: #6141ae; }.status-closed, .status-cancelled, .status-archived { background: #eef1f4; color: #526070; }
.status-reported, .status-requested, .status-planning, .status-draft, .status-not_started { background: var(--blue-soft); color: #1656a7; }
.status-investigating, .status-under_review, .status-security_review, .status-recovering, .status-passed_with_actions, .status-partial { background: #fff1df; color: #a74d08; }
.status-contained, .status-ready, .status-passed, .status-success, .status-go_live_approved, .status-published, .status-operational { background: #e6f6f0; color: #08725e; }
.status-failed, .status-offline, .status-outage, .status-degraded, .status-revoked, .status-expired { background: #fdecef; color: #a6253c; }
.status-known_error, .status-maintenance, .status-paused, .status-superseded, .status-retired, .status-not_applicable { background: #eef1f4; color: #526070; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.stack-form { display: grid; gap: 16px; }
.form-grid label, .stack-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 650; }
label small { color: var(--muted); font-weight: 450; }
.span-2 { grid-column: 1 / -1; }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cbd4e0; border-radius: 8px; padding: 10px 11px; min-height: 42px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23,105,224,.14); border-color: var(--blue); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
legend { font-size: .88rem; font-weight: 700; padding: 0 6px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.check { display: flex !important; align-items: flex-start; gap: 9px !important; font-weight: 500 !important; }
.check input { width: 17px; height: 17px; min-height: 0; margin-top: 3px; flex: 0 0 auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.reference-link { display: inline-flex; width: max-content; margin-top: 3px; font-size: .76rem; font-weight: 700; }
.inline-create-launcher { display: flex; justify-content: flex-end; margin: 12px 0 18px; }
.inline-create-launcher.panel { padding: 18px; }
.app-modal-content > form[hidden] { display: none; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions form { margin: 0; }
.scan-panel video { display: block; width: min(100%, 720px); max-height: 60vh; margin: 16px auto 0; border-radius: 14px; background: #0f172a; object-fit: cover; }
.scan-panel video[hidden] { display: none; }
.danger-link { color: var(--red); }
.app-modal { width: min(980px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 16px; background: transparent; box-shadow: 0 30px 90px rgba(15, 32, 55, .28); }
.app-modal::backdrop { background: rgba(13, 34, 61, .58); backdrop-filter: blur(3px); }
.app-modal-frame { background: var(--canvas); border-radius: 16px; overflow: hidden; }
.app-modal-bar { min-height: 56px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; background: var(--navy); }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 1.45rem; line-height: 1; }
.app-modal-content { max-height: calc(100vh - 92px); overflow: auto; padding: 24px; }
.app-modal-content > .page-heading { margin-bottom: 16px; }
.app-modal-content > .page-heading .button[data-modal-close] { display: none; }
.app-modal-content > .panel:last-child { margin-bottom: 0; }
.modal-loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; background: #eaf0f7; border: 1px solid #d6dfeb; border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.filter-bar label { display: grid; gap: 4px; min-width: 220px; font-size: .76rem; color: var(--muted); font-weight: 680; }
.filter-bar input, .filter-bar select { min-height: 40px; background: #fff; }

.alert { padding: 13px 15px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.alert.success { background: #eaf8f2; color: #086451; border-color: #a6dfcb; }.alert.danger { background: #fff0f2; color: #98233a; border-color: #f0b7c1; }.alert.info { background: #edf5ff; color: #174f90; border-color: #b9d7fb; }
.empty-inline { color: var(--muted); text-align: center; padding: 30px 16px; }
.empty-state { min-height: 60vh; display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; }
.empty-state > strong { font-size: 3rem; color: #b5c0cf; }.empty-state h1, .empty-state p { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid #dce5f0; padding: 0 0 22px 18px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); left: -5.5px; top: 6px; }
.timeline span { display: block; color: var(--muted); font-size: .76rem; }.timeline p { margin: 6px 0 0; }
.file-list { list-style: none; margin: 0; padding: 0; }.file-list li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf0f4; padding: 10px 0; }.file-list small { color: var(--muted); }
.task-list { display: grid; gap: 0; }.task-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.4fr); gap: 22px; padding: 15px 0; border-bottom: 1px solid #edf0f4; }.task-row:last-child { border: 0; }.task-row small { display: block; color: var(--muted); }.task-row p { margin: 5px 0 0; }.task-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: start; }
.task-checklist-editor { display: grid; gap: 12px; }
.task-checklist-editor > p { margin: 0; }
.task-checklist-items { display: grid; gap: 10px; }
.task-checklist-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.task-checklist-toggle { align-self: center; }
.task-checklist-label { min-width: 0; }
.task-checklist-empty { padding: 12px; }
.task-audit-timeline > li { padding-bottom: 24px; }
.task-log-changes { margin-top: 12px; }
.task-log-changes table { min-width: 680px; }
.task-log-changes th:first-child { width: 180px; }
.task-log-changes td { max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.card-list { display: grid; gap: 10px; }.card-list article { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }.card-list article > span, .card-list article > small { display: block; color: var(--muted); margin-top: 3px; }.card-list article > a { display: inline-block; margin-top: 8px; }
.notification-list { display: grid; }.notification { display: flex; justify-content: space-between; gap: 20px; padding: 16px; border-bottom: 1px solid #edf0f4; }.notification.unread { background: #f2f7ff; border-left: 3px solid var(--blue); }.notification p { margin: 4px 0; }.notification small { color: var(--muted); }
.scope-box { border: 1px solid #e0e6ee; border-radius: 9px; padding: 14px; margin-top: 10px; }.scope-box .nested { margin: 12px 0 0 26px; }
.hr-user-preview { border: 1px solid #b8d8f8; border-radius: 12px; padding: 16px; background: #f2f8ff; }
.hr-user-preview .form-grid { gap: 12px 16px; }
.hr-user-preview input[readonly] { background: #fff; color: #26384d; cursor: default; }
.hr-user-preview p { margin: 12px 0 0; }
.integration-reference-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-left: 5px solid var(--teal); }
.integration-reference-summary h2 { margin: 4px 0; }
.integration-reference-summary p { margin: 0; color: var(--muted); }
.metric-inline { display: grid; min-width: 150px; text-align: right; gap: 4px; }
.metric-inline span { color: var(--muted); font-size: .82rem; }
.metric-inline strong { color: var(--navy); font-size: 1.12rem; }
.directory-catalog { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.directory-catalog > summary, .external-user > summary { cursor: pointer; font-weight: 700; }
.role-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.compact-checks { margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-checks .check { font-size: .76rem; overflow-wrap: anywhere; }
.external-user-list { display: grid; gap: 10px; }
.external-user { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.external-user > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px; }
.external-user > summary small { display: block; color: var(--muted); font-weight: 450; }
.external-user-body { border-top: 1px solid var(--line); padding: 4px 14px 14px; }
.permission-group { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }.permission-group:last-of-type { border: 0; }.permission-group h2 { font-size: 1rem; }
.operation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }.operation-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--ink); box-shadow: var(--shadow); }.operation-card:hover { text-decoration: none; border-color: #b4c6dd; transform: translateY(-2px); }.operation-card strong { display: block; font-size: 1.06rem; }.operation-card p { color: var(--muted); min-height: 72px; }.operation-card > a, .operation-card span { color: var(--blue); font-size: .86rem; font-weight: 700; }.operation-card small { display: block; margin-top: 12px; color: var(--muted); }
.form-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }.form-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; }.form-card h2 { margin: 4px 0; font-size: 1rem; }.form-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.form-print-body { background: #e7ebf0; padding: 28px; }.form-sheet { width: min(210mm, 100%); min-height: 297mm; margin: 0 auto; padding: 15mm; background: #fff; color: #111827; box-shadow: 0 14px 45px rgba(15,23,42,.16); }.form-print-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }.form-header { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 3px solid var(--navy); }.form-header h1 { margin: 0; font-size: 1.35rem; letter-spacing: .03em; }.form-header p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }.form-section-title { margin: 18px 0 0; padding: 8px 10px; color: #fff; background: var(--navy); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }.form-table { font-size: .78rem; table-layout: fixed; }.form-table th, .form-table td { border: 1px solid #8c98a8; padding: 8px; vertical-align: top; }.form-table th { width: 18%; color: #202b3a; background: #eef2f6; font-size: .66rem; white-space: normal; }.form-table td { width: 32%; }.checklist-table th { width: auto; }.form-long-text { min-height: 60px; border: 1px solid #8c98a8; padding: 10px; font-size: .8rem; }.form-long-text p { margin-bottom: 0; }.form-footer { margin-top: 18px; padding-top: 10px; border-top: 1px solid #aab3bf; color: #657184; font-size: .66rem; text-align: center; }
[data-action-field] { display: none !important; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 15%, #d9e9ff 0, transparent 35%), linear-gradient(145deg, #edf3fa, #f8fafc); }
.auth-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 24px 70px rgba(28,55,88,.16); }
.auth-card.wide { width: min(720px, 100%); }.auth-card .auth-brand { color: var(--navy); }.auth-card .auth-brand small { color: var(--muted); }.auth-card h1 { margin: 28px 0 5px; }.auth-card > p { color: var(--muted); margin-top: 0; }.quiet-link { display: inline-block; color: var(--muted); font-size: .82rem; margin-top: 18px; }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 72px; }
.password-visibility-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-width: 58px; min-height: 32px; border: 0; border-radius: 6px; background: #edf3fb; color: var(--blue); font-size: .78rem; font-weight: 750; }
.password-visibility-toggle:hover { background: #dfeafa; }
.password-visibility-toggle:focus-visible { outline: 3px solid rgba(23,105,224,.2); }

code { background: #e9eef5; padding: 2px 5px; border-radius: 4px; }

.command-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); padding: 7px 10px; }
kbd { border: 1px solid #ccd5e0; border-bottom-width: 2px; border-radius: 5px; background: #f7f9fb; padding: 1px 5px; font-size: .7rem; }
.command-palette { width: min(700px, calc(100% - 28px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 90px rgba(15,32,55,.3); }
.command-palette::backdrop { background: rgba(13,34,61,.58); backdrop-filter: blur(3px); }
.command-palette-frame { overflow: hidden; border-radius: 16px; background: #fff; }
.command-palette form { display: flex; gap: 10px; padding: 20px; border-bottom: 1px solid var(--line); }
.command-palette form input { flex: 1; }
.command-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 20px; }
.command-links a { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-weight: 650; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-grid .operation-card h2 { margin: 14px 0 0; font-size: 1.08rem; }
.catalog-grid .operation-card p { min-height: 66px; }
.search-hero { display: flex; align-items: end; gap: 12px; }
.search-hero label { display: grid; flex: 1; gap: 7px; font-size: .82rem; font-weight: 700; }
.search-results { display: grid; gap: 0; }
.search-results article { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results article:last-child { border-bottom: 0; }
.search-results small, .knowledge-suggestions small { display: block; color: var(--muted); margin-top: 3px; }
.draft-status { display: block; grid-column: 1 / -1; color: var(--muted); text-align: right; }
.knowledge-suggestions { grid-column: 1 / -1; border: 1px solid #b9d7fb; border-radius: 10px; background: #f4f9ff; padding: 12px; }
.knowledge-suggestions::before { content: "Suggested knowledge before you submit"; display: block; font-size: .76rem; font-weight: 760; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
.knowledge-suggestions a { display: block; padding: 8px; border-radius: 7px; }
.knowledge-suggestions a:hover { background: #fff; text-decoration: none; }
.bulk-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.bulk-toolbar label { display: grid; gap: 4px; min-width: 180px; font-size: .76rem; color: var(--muted); }
.table-check { width: 34px; }
.table-check input { width: 17px; height: 17px; min-height: 0; }
.mobile-quick-actions { display: none; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-nav { position: sticky; top: 98px; display: grid; gap: 4px; padding: 16px; }
.guide-nav strong { padding: 5px 9px 9px; }
.guide-nav a { color: #31445f; border-radius: 7px; padding: 7px 9px; font-size: .82rem; }
.guide-nav a:hover { background: var(--blue-soft); text-decoration: none; }
.guide-content { min-width: 0; }
.guide-hero { background: linear-gradient(135deg, #0e315b, #1769e0); color: #fff; }
.guide-hero h2 { font-size: 1.35rem; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.guide-cards article { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.11); }
.guide-cards span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; }
.guide-cards strong { display: block; margin: 12px 0 4px; }.guide-cards p { margin: 0; color: #dceaff; font-size: .85rem; }
.guide-note { border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 12px; background: rgba(255,255,255,.08); }
.guide-section { position: relative; scroll-margin-top: 94px; padding-left: 72px; }
.guide-section-number { position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 800; }
.guide-section h2 { font-size: 1.25rem; }.guide-section h3 { margin: 20px 0 6px; font-size: .97rem; }.guide-section p { color: #3e5067; }
.guide-section li { margin: 8px 0; }.guide-section ol, .guide-section ul { padding-left: 22px; }
.guide-tip, .guide-warning { margin-top: 16px; padding: 12px 14px; border-radius: 9px; border-left: 4px solid var(--teal); background: #eaf8f2; color: #164f45; }
.guide-warning { border-left-color: var(--orange); background: #fff5e8; color: #7b400f; }
.guide-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.guide-table > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 13px; border-bottom: 1px solid var(--line); }
.guide-table > div:last-child { border-bottom: 0; }.guide-table span { color: var(--muted); }
.guide-do-dont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-do-dont > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }.guide-do-dont h3 { margin-top: 0; }
.guide-footer-note { margin-top: 20px; font-weight: 700; }

@media (max-width: 1050px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .guide-layout { grid-template-columns: 1fr; }.guide-nav { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }.guide-nav strong { grid-column: 1 / -1; } }

@media (max-width: 1250px) { .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 270px; transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: inline-flex; }
  .topbar { padding: 0 18px; }.content { padding: 24px 18px 44px; }
  .detail-grid, .two-column, .operation-grid, .form-library { grid-template-columns: 1fr; }.task-row { grid-template-columns: 1fr; }.task-form { grid-template-columns: 140px 1fr auto; }
}
@media (max-width: 650px) {
  .topbar-title { display: none; }.user-menu > span { display: none; }
  .page-heading { display: grid; }.heading-actions { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric-card { min-height: 126px; }
  .form-grid, .definition-grid { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.check-grid { grid-template-columns: 1fr; }
  .task-form, .task-checklist-row { grid-template-columns: 1fr; }.file-list li, .notification { display: grid; }
  .content { padding-bottom: 90px; }.command-button { display: none; }.catalog-grid, .command-links { grid-template-columns: 1fr; }
  .search-hero, .command-palette form { align-items: stretch; flex-direction: column; }.search-results article { grid-template-columns: 1fr; }
  .mobile-quick-actions { position: fixed; z-index: 18; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; bottom: 0; left: 0; right: 0; min-height: 58px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,32,55,.1); }
  .mobile-quick-actions a, .mobile-quick-actions button { display: grid; place-items: center; border: 0; background: transparent; color: var(--blue); font-size: .75rem; font-weight: 700; padding: 8px 4px; text-align: center; }
  .guide-nav, .guide-cards, .guide-do-dont { grid-template-columns: 1fr; }.guide-nav strong { grid-column: auto; }.guide-section { padding: 66px 18px 18px; }.guide-section-number { left: 18px; }.guide-table > div { grid-template-columns: 1fr; gap: 5px; }
}

@media print {
  .sidebar, .topbar, .page-heading .heading-actions, .detail-side, .button, .filter-bar { display: none !important; }
  .app-shell { display: block; }.content { padding: 0; width: 100%; }.panel { box-shadow: none; break-inside: avoid; border-color: #b8c0cc; }.detail-grid, .two-column { display: block; }.main { width: 100%; } body { background: #fff; color: #000; }
  .form-print-body { padding: 0; }.form-sheet { width: 100%; min-height: 0; margin: 0; padding: 0; box-shadow: none; }.form-print-actions { display: none; }.form-section-title, .form-table tr { break-inside: avoid; }
}
