/* V33.10.96 — One visual language for every Helpdesk page.
   Base is quiet, surfaces are one step raised, and colour is reserved for meaning. */
:root{--ds-light-base:#ece8e1;--ds-light-surface:#f8f5ef;--ds-light-surface-hover:#f2eee7;--ds-light-text:#263442;--ds-light-muted:#6b7280;--ds-light-line:#d8d2c8;--ds-dark-base:#161b22;--ds-dark-surface:#21262d;--ds-dark-surface-hover:#2d333b;--ds-dark-text:#c9d1d9;--ds-dark-muted:#8b949e;--ds-dark-line:#30363d;--ds-focus:#58a6ff}
html[data-theme="light"]{--bg-main:var(--ds-light-base);--bg-card:var(--ds-light-surface);--text-primary:var(--ds-light-text);--text-secondary:var(--ds-light-muted);--text-muted:var(--ds-light-muted);--border-color:var(--ds-light-line);--saas-surface:var(--ds-light-surface);--saas-text:var(--ds-light-text);--saas-muted:var(--ds-light-muted);--saas-border:var(--ds-light-line)}
html[data-theme="dark"]{--bg-main:var(--ds-dark-base);--bg-card:var(--ds-dark-surface);--text-primary:var(--ds-dark-text);--text-secondary:var(--ds-dark-muted);--text-muted:var(--ds-dark-muted);--border-color:var(--ds-dark-line);--saas-surface:var(--ds-dark-surface);--saas-text:var(--ds-dark-text);--saas-muted:var(--ds-dark-muted);--saas-border:var(--ds-dark-line)}
/* Layout surfaces */
html[data-theme="light"] body,html[data-theme="light"] .shell,html[data-theme="light"] main{background:var(--ds-light-base)!important;color:var(--ds-light-text)!important}html[data-theme="dark"] body,html[data-theme="dark"] .shell,html[data-theme="dark"] main{background:var(--ds-dark-base)!important;color:var(--ds-dark-text)!important}
html[data-theme="light"] .topbar{background:#f2eee7!important;border-color:var(--ds-light-line)!important}html[data-theme="dark"] .topbar{background:#161b22!important;border-color:var(--ds-dark-line)!important}
html[data-theme="light"] .sidebar{background:#f8f5ef!important;border-color:var(--ds-light-line)!important}html[data-theme="dark"] .sidebar{background:#0d1117!important;border-color:var(--ds-dark-line)!important}
html[data-theme="light"] .sidebar nav a{color:#374151!important}html[data-theme="dark"] .sidebar nav a{color:#c9d1d9!important}html[data-theme="light"] .sidebar nav a:hover,html[data-theme="light"] .sidebar nav a.active{background:#ede8de!important;color:#1d4ed8!important}html[data-theme="dark"] .sidebar nav a:hover,html[data-theme="dark"] .sidebar nav a.active{background:#21262d!important;color:#e5e7eb!important}
/* Cards, tables, messages and all raised working surfaces. */
html[data-theme="light"] .panel,html[data-theme="light"] .card,html[data-theme="light"] .metric,html[data-theme="light"] .stat,html[data-theme="light"] .ref-card,html[data-theme="light"] .table-card,html[data-theme="light"] .case-reader .timeline-body,html[data-theme="light"] .case-reader .case-message,html[data-theme="light"] .message,html[data-theme="light"] .ticket-day-list{background:var(--ds-light-surface)!important;border-color:var(--ds-light-line)!important;box-shadow:0 4px 14px rgba(74,62,47,.07)!important}
html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .metric,html[data-theme="dark"] .stat,html[data-theme="dark"] .ref-card,html[data-theme="dark"] .table-card,html[data-theme="dark"] .case-reader .timeline-body,html[data-theme="dark"] .case-reader .case-message,html[data-theme="dark"] .message,html[data-theme="dark"] .ticket-day-list{background:var(--ds-dark-surface)!important;border-color:var(--ds-dark-line)!important;box-shadow:none!important}
html[data-theme="light"] .panel-head,html[data-theme="light"] .table-head,html[data-theme="light"] thead{background:var(--ds-light-surface-hover)!important;border-color:var(--ds-light-line)!important}html[data-theme="dark"] .panel-head,html[data-theme="dark"] .table-head,html[data-theme="dark"] thead{background:var(--ds-dark-surface)!important;border-color:var(--ds-dark-line)!important}
html[data-theme="light"] tbody tr,html[data-theme="light"] th,html[data-theme="light"] td{border-color:var(--ds-light-line)!important}html[data-theme="dark"] tbody tr,html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:var(--ds-dark-line)!important}html[data-theme="light"] tbody tr:hover{background:var(--ds-light-surface-hover)!important}html[data-theme="dark"] tbody tr:hover{background:var(--ds-dark-surface-hover)!important}
/* Reading hierarchy */
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] b,html[data-theme="light"] strong,html[data-theme="light"] .timeline-title{color:var(--ds-light-text)!important}html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] b,html[data-theme="dark"] strong,html[data-theme="dark"] .timeline-title{color:var(--ds-dark-text)!important}
html[data-theme="light"] p,html[data-theme="light"] label,html[data-theme="light"] small,html[data-theme="light"] .muted,html[data-theme="light"] .subtext,html[data-theme="light"] .message-meta,html[data-theme="light"] .timeline-time{color:var(--ds-light-muted)!important}html[data-theme="dark"] p,html[data-theme="dark"] label,html[data-theme="dark"] small,html[data-theme="dark"] .muted,html[data-theme="dark"] .subtext,html[data-theme="dark"] .message-meta,html[data-theme="dark"] .timeline-time{color:var(--ds-dark-muted)!important}
/* Inputs are intentionally one step above their surrounding base, with an obvious focus state. */
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="light"] select,html[data-theme="light"] textarea{background:#fbf9f5!important;color:var(--ds-light-text)!important;border-color:var(--ds-light-line)!important}html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#21262d!important;color:var(--ds-dark-text)!important;border-color:#444c56!important}
input:focus,select:focus,textarea:focus{outline:0!important;border-color:var(--ds-focus)!important;box-shadow:0 0 0 3px rgba(88,166,255,.16)!important}
/* Quiet translucent tags; semantic status remains readable and deliberate. */
html[data-theme="light"] .badge:not(.status-new):not(.status-in_progress):not(.status-waiting_customer):not(.status-resolved):not(.status-closed),html[data-theme="light"] .chat-source,html[data-theme="light"] .priority-low,html[data-theme="light"] .priority-normal{background:rgba(59,130,246,.11)!important;color:#285a98!important;border:1px solid rgba(59,130,246,.18)!important}html[data-theme="dark"] .badge:not(.status-new):not(.status-in_progress):not(.status-waiting_customer):not(.status-resolved):not(.status-closed),html[data-theme="dark"] .chat-source,html[data-theme="dark"] .priority-low,html[data-theme="dark"] .priority-normal{background:rgba(88,166,255,.16)!important;color:#a9d1ff!important;border:1px solid rgba(88,166,255,.23)!important}
.status-new{background:rgba(239,68,68,.16)!important;color:#dc2626!important;border:1px solid rgba(239,68,68,.35)!important}.status-in_progress{background:rgba(37,99,235,.15)!important;color:#2563eb!important;border:1px solid rgba(37,99,235,.32)!important}.status-waiting_customer{background:rgba(234,136,22,.16)!important;color:#b45309!important;border:1px solid rgba(234,136,22,.35)!important}.status-resolved,.status-closed{background:rgba(22,128,75,.15)!important;color:#087443!important;border:1px solid rgba(22,128,75,.34)!important}
html[data-theme="dark"] .status-new{color:#fca5a5!important}html[data-theme="dark"] .status-in_progress{color:#93c5fd!important}html[data-theme="dark"] .status-waiting_customer{color:#fcd34d!important}html[data-theme="dark"] .status-resolved,html[data-theme="dark"] .status-closed{color:#86efac!important}
/* No stacked decorative boxes: a single subtle divider is enough. */
html[data-theme="light"] .case-reader .timeline-detail,html[data-theme="light"] .case-reader .case-message>div:last-child{border-color:var(--ds-light-line)!important;color:#334155!important}html[data-theme="dark"] .case-reader .timeline-detail,html[data-theme="dark"] .case-reader .case-message>div:last-child{border-color:var(--ds-dark-line)!important;color:#c9d1d9!important}
