:root {
  color-scheme: light;
  --bg: #f1ede7;
  --surface: #fcfaf7;
  --surface-2: #f7f3ed;
  --ink: #282126;
  --muted: #776d70;
  --line: #ded7cf;
  --line-soft: #ebe5de;
  --sidebar: #241c23;
  --sidebar-2: #30232c;
  --plum: #75445f;
  --plum-dark: #583247;
  --plum-soft: #eadde4;
  --terracotta: #c65e49;
  --terracotta-soft: #f3ded8;
  --ochre: #b78334;
  --ochre-soft: #f2e6cf;
  --violet: #7c6889;
  --violet-soft: #e8e1ec;
  --sage: #6f776b;
  --sage-soft: #e2e6df;
  --shadow: 0 16px 38px rgba(48, 35, 44, .09);
  --sidebar-width: 258px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(117,68,95,.2); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.instance-banner { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: 27px; display: grid; place-items: center; background: #9b452f; color: #fff8f3; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
html[data-instance-mode="test"] .ticket-app, html[data-instance-mode="test"] .login-view { padding-top: 27px; }
.ticket-app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.process-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: auto; padding: 25px 17px 18px; color: #f8f0f3; background: linear-gradient(165deg, #2b2029 0%, #211920 68%, #1d171c 100%); border-right: 1px solid rgba(255,255,255,.06); }
html[data-instance-mode="test"] .process-sidebar { top: 27px; height: calc(100vh - 27px); }
.sidebar-brand, .login-brand { display: flex; align-items: center; gap: 12px; }
.sidebar-brand { padding: 0 10px 27px; }
.sidebar-brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.sidebar-brand span { display: block; margin-top: 2px; color: #af9ca6; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; position: relative; display: grid; grid-template-columns: repeat(3, 4px); grid-template-rows: repeat(2, 4px); place-content: center; gap: 3px; border-radius: 50%; background: var(--terracotta); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.brand-mark i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .92; }
.sidebar-main-link, .process-nav button, .sidebar-secondary button, .sidebar-user button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.sidebar-main-link { min-height: 61px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; color: #d9cdd3; }
.sidebar-main-link.is-active { background: #3a2934; color: #fff; box-shadow: inset 3px 0 var(--terracotta); }
.sidebar-main-link .nav-symbol { font-size: 24px; transform: rotate(90deg); }
.sidebar-main-link strong { display: block; font-size: 13px; }
.sidebar-main-link small { display: block; margin-top: 3px; color: #a996a0; font-size: 10px; }
.sidebar-main-link b, .process-nav b { min-width: 24px; padding: 3px 6px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11px; text-align: center; }
.process-nav { padding-top: 17px; }
.nav-group { margin: 0 0 18px; }
.nav-group h2 { margin: 0 11px 8px; color: #8f7d86; font-size: 9px; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; }
.process-nav button { min-height: 38px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; padding: 5px 11px; border-radius: 7px; color: #cbbdc4; font-size: 12px; transition: background .15s, color .15s; }
.process-nav button:hover, .process-nav button.is-active { background: rgba(255,255,255,.075); color: #fff; }
.process-nav button.is-active { box-shadow: inset 2px 0 var(--terracotta); }
.process-symbol { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: white; background: var(--plum); font-size: 9px; font-style: normal; font-weight: 800; }
.process-appointment, .process-waiting-list { background: var(--ochre) !important; }
.process-callback, .process-urgent-patient { background: var(--terracotta) !important; }
.process-new-registration, .process-team-handover { background: #817563 !important; }
.process-adhs-waiting-list { background: var(--violet) !important; }
.sidebar-secondary { margin-top: auto; padding: 13px 4px; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-secondary button { min-height: 37px; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 7px; color: #c2b3ba; font-size: 12px; }
.sidebar-secondary button:hover, .sidebar-secondary button.is-active { background: rgba(255,255,255,.07); color: white; }
.sidebar-secondary button span:first-child { width: 20px; text-align: center; font-size: 15px; }
.sidebar-user { padding: 14px 3px 0; }
#userButton { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 7px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--plum); color: #fff; font-size: 11px; font-weight: 800; }
#userButton strong, #userButton small { display: block; }
#userButton strong { font-size: 11px; }
#userButton small { margin-top: 2px; color: #9e8c95; font-size: 9px; }
.logout-button { margin-top: 7px; padding: 8px 10px !important; color: #9f8f97 !important; font-size: 11px; }
.logout-button:hover { color: #fff !important; }
.workspace-shell { min-width: 0; padding: 25px 29px 40px; }
.workspace-header { min-height: 63px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.title-block h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 2vw, 36px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.title-block p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.header-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.global-search { width: min(280px, 24vw); height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(252,250,247,.72); color: #8b7f82; }
.global-search span:first-child { font-size: 20px; line-height: 0; transform: translateY(-1px); }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.time-filters { height: 38px; display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: rgba(252,250,247,.72); }
.time-filters button { height: 30px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; }
.time-filters button.is-active { background: var(--ink); color: #fff; box-shadow: 0 2px 5px rgba(30,23,27,.18); }
.icon-action, .primary-action, .secondary-action, .complete-action { min-height: 38px; border-radius: 7px; font-weight: 700; }
.icon-action { width: 38px; border: 1px solid var(--line); background: rgba(252,250,247,.72); color: #5d5357; font-size: 17px; }
.icon-action:hover { background: #fff; }
.icon-action.is-loading { animation: spin .75s linear infinite; }
.primary-action, .complete-action { border: 1px solid var(--plum-dark); background: var(--plum-dark); color: white; padding: 0 15px; font-size: 11px; box-shadow: 0 5px 13px rgba(88,50,71,.18); }
.primary-action:hover, .complete-action:hover { background: #472639; }
.secondary-action { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 13px; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.workload-summary { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 6px 18px rgba(48,35,44,.045); overflow: hidden; }
.workload-summary button { position: relative; min-height: 77px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 3px 10px; padding: 15px 18px 13px 22px; border: 0; border-right: 1px solid var(--line-soft); background: transparent; text-align: left; }
.workload-summary button:last-child { border-right: 0; }
.workload-summary button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--violet); }
.workload-summary .summary-overdue::before { background: var(--terracotta); }
.workload-summary .summary-today::before { background: var(--ochre); }
.workload-summary .summary-tomorrow::before { background: var(--plum); }
.workload-summary button:hover { background: var(--surface-2); }
.workload-summary span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.workload-summary strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.workload-summary small { color: #9b9193; font-size: 10px; }
.ticket-workspace { min-width: 0; display: grid; grid-template-columns: minmax(680px, 1fr); gap: 14px; margin-top: 16px; }
.ticket-workspace.has-inspector { grid-template-columns: minmax(640px, 1fr) 350px; }
.ticket-board { min-width: 0; align-self: start; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.board-meta { height: 48px; display: flex; align-items: baseline; justify-content: space-between; padding: 15px 17px 0; border-bottom: 1px solid var(--line-soft); }
.board-meta strong { font-family: Georgia, serif; font-size: 16px; font-weight: 500; }
.board-meta span { color: var(--muted); font-size: 10px; }
.ticket-table-head, .ticket-row { display: grid; grid-template-columns: minmax(125px, .88fr) minmax(185px, 1.45fr) minmax(115px, .85fr) 88px minmax(120px, .95fr) 88px 14px; gap: 10px; align-items: center; }
.ticket-table-head { min-height: 34px; padding: 0 15px; color: #94898c; background: #f8f5f0; border-bottom: 1px solid var(--line-soft); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ticket-group-head { min-height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 16px; background: #f4f0ea; border-bottom: 1px solid var(--line); }
.ticket-group-head div { display: flex; align-items: center; gap: 8px; }
.ticket-group-head div > span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.ticket-group-head strong { font-size: 11px; }
.ticket-group-head small { color: #908588; font-size: 9px; }
.ticket-group-head b { min-width: 22px; padding: 3px 6px; border-radius: 10px; background: rgba(40,33,38,.08); font-size: 9px; text-align: center; }
.ticket-group-head.group-overdue { color: #934432; background: #f5e7e1; }
.ticket-group-head.group-overdue div > span { background: var(--terracotta); }
.ticket-group-head.group-today { color: #77581f; background: #f4ebda; }
.ticket-group-head.group-today div > span { background: var(--ochre); }
.ticket-group-head.group-tomorrow div > span { background: var(--plum); }
.ticket-group-head.group-archive div > span { background: var(--sage); }
.ticket-row { position: relative; width: 100%; min-height: 60px; padding: 8px 15px; border: 0; border-bottom: 1px solid var(--line-soft); background: var(--surface); text-align: left; transition: background .14s, box-shadow .14s; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { z-index: 1; background: #f9f5f0; }
.ticket-row.is-selected { z-index: 2; background: #f5eef2; box-shadow: inset 3px 0 var(--plum); }
.ticket-row > span { min-width: 0; }
.due-cell strong, .due-cell small, .ticket-cell strong, .ticket-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due-cell strong { font-size: 10px; font-weight: 700; }
.due-cell small { margin-top: 3px; color: #9b9193; font-size: 8px; }
.tone-overdue strong { color: #ad4936; }
.tone-today strong { color: #866024; }
.ticket-cell strong { font-family: Georgia, serif; font-size: 13px; font-weight: 600; }
.ticket-cell small { margin-top: 4px; color: var(--muted); font-size: 9px; }
em { font-style: normal; }
.process-pill, .status-pill { display: inline-flex; align-items: center; max-width: 100%; min-height: 23px; padding: 4px 7px; overflow: hidden; border-radius: 5px; background: var(--plum-soft); color: var(--plum-dark); font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.process-pill.process-appointment, .process-pill.process-waiting-list { background: var(--ochre-soft) !important; color: #76551b !important; }
.process-pill.process-callback, .process-pill.process-urgent-patient { background: var(--terracotta-soft) !important; color: #944330 !important; }
.process-pill.process-new-registration, .process-pill.process-team-handover { background: #e7e1d8 !important; color: #5f5548 !important; }
.process-pill.process-adhs-waiting-list { background: var(--violet-soft) !important; color: #63516e !important; }
.priority { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.priority i { width: 6px; height: 6px; border-radius: 50%; background: #a99fa1; }
.priority-urgent { color: #a34331; }
.priority-urgent i { background: var(--terracotta); }
.priority-attention { color: #806024; }
.priority-attention i { background: var(--ochre); }
.priority-normal i { background: var(--violet); }
.assignee-cell { display: flex; align-items: center; gap: 7px; overflow: hidden; color: #655b5e; font-size: 9px; }
.assignee-cell i { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: #e6dfda; color: #6f6266; font-size: 8px; font-style: normal; font-weight: 800; }
.assignee-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { background: #e9e4df; color: #5f5759; }
.row-arrow { color: #9a8f92; font-size: 18px; }
.empty-state { min-height: 230px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-state > span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 50%; color: var(--plum); background: var(--surface-2); }
.empty-state strong { font-family: Georgia, serif; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 5px 0; font-size: 10px; }
.ticket-inspector { position: sticky; top: 17px; max-height: calc(100vh - 34px); align-self: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
html[data-instance-mode="test"] .ticket-inspector { top: 44px; max-height: calc(100vh - 61px); }
.inspector-head { min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 9px 13px 9px 16px; border-bottom: 1px solid var(--line-soft); background: #f8f5f0; }
.inspector-head div { display: flex; align-items: center; gap: 8px; }
.inspector-kind { color: var(--plum); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inspector-head small { color: #9b9193; font-size: 9px; }
.inspector-head button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #71666a; font-size: 20px; }
.inspector-head button:hover { background: #ece6e0; }
.inspector-content { min-height: 0; overflow-y: auto; padding: 17px; }
.inspector-title { padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.inspector-title h2 { margin: 9px 0 3px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.inspector-title p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.detail-grid div { min-width: 0; }
.detail-grid span, .field-label { display: block; color: #92878a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-grid strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 10px; }
.inspector-section { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.inspector-section:last-child { border-bottom: 0; }
.inspector-section h3 { margin: 0 0 9px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.summary-text { margin: 0; padding: 11px 12px; border-left: 3px solid var(--plum); background: var(--surface-2); color: #584f52; font-size: 10px; line-height: 1.55; }
.note-list { margin: 0; padding-left: 16px; color: #5f5659; font-size: 10px; line-height: 1.5; }
.flag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.flag-list span { padding: 5px 7px; border-radius: 4px; font-size: 9px; }
.flag-urgent { background: var(--terracotta-soft); color: #8e3e2d; }
.flag-attention { background: var(--ochre-soft); color: #73531c; }
audio { width: 100%; height: 34px; }
.field-label { margin: 10px 0; }
.field-label input { width: 100%; height: 36px; margin-top: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 11px; letter-spacing: 0; text-transform: none; }
.inspector-section .secondary-action { width: 100%; }
.activity > div { position: relative; display: flex; gap: 10px; min-height: 38px; }
.activity > div:not(:last-child)::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: -2px; width: 1px; background: var(--line); }
.activity i { z-index: 1; width: 7px; height: 7px; flex: 0 0 7px; margin-top: 3px; border-radius: 50%; background: var(--plum); box-shadow: 0 0 0 3px var(--surface); }
.activity p { margin: 0; }
.activity strong, .activity span { display: block; }
.activity strong { font-size: 10px; }
.activity span { margin-top: 3px; color: #91868a; font-size: 9px; }
.inspector-actions { display: flex; gap: 7px; padding: 12px; border-top: 1px solid var(--line); background: #f8f5f0; }
.inspector-actions > * { flex: 1; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 70% 20%, #e5d7dd, transparent 34%), linear-gradient(145deg, #f1ede7, #e9e1dc); }
.login-panel { width: min(390px, 100%); padding: 32px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; background: rgba(252,250,247,.92); box-shadow: 0 28px 70px rgba(48,35,44,.16); backdrop-filter: blur(16px); }
.login-brand { margin-bottom: 27px; }
.login-brand h1 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.login-brand p { margin: 3px 0 0; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.login-panel label, .ticket-form label { display: grid; gap: 6px; color: #756a6d; font-size: 10px; font-weight: 700; }
.login-panel label + label { margin-top: 14px; }
.login-panel input, .ticket-form input, .ticket-form select, .ticket-form textarea, .reporting-header select { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.login-panel input { height: 42px; padding: 0 11px; }
.login-panel button[type="submit"] { width: 100%; height: 42px; margin-top: 20px; border: 0; border-radius: 7px; background: var(--plum-dark); color: white; font-weight: 800; }
.form-error { min-height: 16px; margin: 10px 0 0; color: #a74331; font-size: 10px; }
.modal { width: min(680px, calc(100vw - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 80px rgba(36,28,35,.28); }
.modal::backdrop { background: rgba(34,26,33,.48); backdrop-filter: blur(3px); }
.modal-head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 13px 19px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.modal-head button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 20px; }
.section-kicker { color: var(--plum); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ticket-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.ticket-form.single-column { grid-template-columns: 1fr; }
.ticket-form .wide, .form-actions { grid-column: 1 / -1; }
.ticket-form input, .ticket-form select { height: 39px; padding: 0 10px; }
.ticket-form textarea { resize: vertical; min-height: 90px; padding: 10px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.form-actions button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 11px; font-weight: 700; }
.form-actions button[type="submit"] { border-color: var(--plum-dark); background: var(--plum-dark); color: white; }
.toast { position: fixed; z-index: 2000; right: 22px; bottom: 22px; max-width: 380px; padding: 12px 16px; border-radius: 8px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 11px; }
.toast[data-tone="error"] { background: #963f2e; }
.reporting-panel { margin-top: 18px; }
.reporting-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px 9px 0 0; background: var(--surface); }
.reporting-header h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.reporting-header > div:last-child { display: flex; align-items: end; gap: 8px; }
.reporting-header label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }
.reporting-header select { height: 35px; padding: 0 27px 0 9px; }
.reporting-header button { height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
#reportContent { padding: 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; background: #eae5df; }
.report-summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.report-metric, .report-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.report-metric { min-height: 105px; padding: 14px; }
.report-metric span, .report-metric small, .report-metric strong { display: block; }
.report-metric span { color: var(--muted); font-size: 9px; font-weight: 700; }
.report-metric strong { margin-top: 10px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.report-metric small { margin-top: 4px; color: #9a9092; font-size: 8px; }
.report-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; margin-top: 10px; }
.report-card { padding: 17px; }
.report-card h3 { margin: 5px 0 17px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.report-bars > div { margin-top: 11px; }
.report-bars p, .quality-list p { display: flex; justify-content: space-between; margin: 0 0 5px; font-size: 10px; }
.report-bars i { display: block; height: 7px; overflow: hidden; border-radius: 5px; background: #ece5e1; }
.report-bars b { display: block; height: 100%; border-radius: inherit; background: var(--plum); }
.quality-list p { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.quality-list strong { font-family: Georgia, serif; font-size: 17px; }
@media (max-width: 1350px) {
  :root { --sidebar-width: 228px; }
  .workspace-shell { padding-inline: 20px; }
  .global-search { width: 230px; }
  .ticket-workspace.has-inspector { grid-template-columns: minmax(560px, 1fr) 325px; }
  .ticket-table-head, .ticket-row { grid-template-columns: 120px minmax(165px,1.4fr) 105px 75px minmax(95px,.8fr) 74px 12px; gap: 7px; }
}
@media (max-width: 1120px) {
  .workspace-header { display: block; }
  .header-tools { margin-top: 16px; justify-content: flex-start; }
  .global-search { width: min(330px, 100%); }
  .ticket-workspace.has-inspector { display: block; }
  .ticket-inspector { position: fixed; z-index: 300; right: 15px; top: 15px; bottom: 15px; width: min(390px, calc(100vw - 30px)); max-height: none; }
  html[data-instance-mode="test"] .ticket-inspector { top: 42px; max-height: none; }
  .report-summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .ticket-app { grid-template-columns: 74px minmax(0,1fr); }
  :root { --sidebar-width: 74px; }
  .process-sidebar { padding-inline: 9px; }
  .sidebar-brand { justify-content: center; padding-inline: 0; }
  .sidebar-brand > div, .sidebar-main-link > span:nth-child(2), .process-nav button > span:nth-child(2), .nav-group h2, .sidebar-secondary button > span:last-child, #userButton > span:nth-child(2), #userButton > span:last-child, .logout-button { display: none; }
  .sidebar-main-link { grid-template-columns: 1fr; justify-items: center; }
  .sidebar-main-link b { position: absolute; margin: -30px 0 0 30px; }
  .process-nav button { grid-template-columns: 1fr; justify-items: center; }
  .process-nav b { position: absolute; margin-left: 34px; transform: scale(.8); }
  .sidebar-secondary button { justify-content: center; }
  #userButton { grid-template-columns: 1fr; justify-items: center; }
  .workspace-shell { padding: 18px 12px 35px; }
  .workload-summary { grid-template-columns: repeat(2, 1fr); }
  .workload-summary button:nth-child(2) { border-right: 0; }
  .workload-summary button:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .ticket-board { overflow-x: auto; }
  .board-meta, .ticket-table-head, .ticket-table { min-width: 760px; }
  .report-summary-grid, .report-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ticket-app { grid-template-columns: 1fr; }
  .process-sidebar { position: static; width: 100%; height: auto !important; padding: 10px; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidebar-brand { padding: 0 8px 0 0; }
  .process-nav, .sidebar-secondary, .sidebar-user, .sidebar-main-link small { display: none; }
  .sidebar-main-link { width: auto; min-width: 94px; min-height: 42px; grid-template-columns: 23px 1fr auto; }
  .sidebar-main-link > span:nth-child(2) { display: block; }
  .sidebar-main-link b { position: static; margin: 0; }
  .workspace-header { min-height: 0; }
  .header-tools { display: grid; grid-template-columns: 1fr auto auto; }
  .global-search { grid-column: 1 / -1; width: 100%; }
  .time-filters { grid-column: 1 / -1; }
  .primary-action { grid-column: 1 / -1; }
  .workload-summary { grid-template-columns: 1fr 1fr; }
  .ticket-form { grid-template-columns: 1fr; }
  .ticket-form .wide, .form-actions { grid-column: 1; }
  .report-summary-grid, .report-grid { grid-template-columns: 1fr; }
}
@media print {
  .process-sidebar, .workspace-header, .workload-summary, .ticket-workspace, .reporting-header button { display: none !important; }
  .ticket-app { display: block; }
  .workspace-shell { padding: 0; }
  .reporting-panel { display: block !important; }
  #reportContent { background: white; }
}
