/* Tedsuite product identity. Source/provider names and operational status colors retain their meaning. */
:root {
  --bg: #f6f5f9;
  --surface: #fff;
  --surface-raised: #f3f0f8;
  --border: #e3dfeb;
  --text: #252132;
  --muted: #645d73;
  --accent: #7434ce;
  --accent-hover: #6026b3;
  --accent-soft: #f0e8fb;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
::selection { background: #e8d9fb; color: #3d1e65; }
.brand .tedsuite-logo, .login-brand .tedsuite-logo {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 1522.4 / 313.73;
  flex: none;
  fill: none;
  stroke: none;
}
.brand { top: 23px; min-height: 44px; }
.brand .tedsuite-brand-icon { display: none; width: 44px; height: 44px; }
.topbar #header-summary { flex-shrink: 0; }
.brand > div { display: block; }
.brand > div > .brand-product {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .15px;
}
.workspace::before { color: var(--muted); letter-spacing: .9px; }
.workspace strong { color: var(--text); }
.account-avatar { background: var(--accent-soft); color: #5b2b95; }
.nav-group-label { color: #746a82; }
.nav-item { color: #60576e; }
.nav-item:hover { background: #f7f3fc; color: var(--accent); }
.nav-item.active { background: var(--accent-soft); color: #6226b4; }
.sidebar-footer { color: var(--muted); }
.sidebar-footer small { color: #746b81; }
.workspace-indicator { background: var(--accent); }
.page-heading p, .main-footer { color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:hover, .row-button:hover { border-color: #baa5d5; }
.button.primary:disabled { background: var(--accent); border-color: var(--accent); }
.product-table .media-id { color: #6734a0; }
.product-table .row-actions .row-button { color: #6734a0; background: #f7f2fd; border-color: #e5d8f4; }
.product-table tbody tr:hover, tbody tr:hover { background: #faf8fd; }
.product-table th { color: #70647e; background: #faf9fc; }
/* Wrap long evidence headings before introducing horizontal scroll; keep every data cell intact. */
.merged-product-table th { white-space: normal; }
.merged-product-table th:last-child { background: #faf9fc; }
.merged-product-table th:last-child, .merged-product-table td.row-actions { box-shadow: -1px 0 var(--border); }
.merges-panel .table-wrap { scrollbar-width: auto; scrollbar-color: #b39cca var(--surface-raised); }
.merges-panel .table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.compact-tag:not(.ai) { background: #f1ebf9; color: #674c86; }
.workspace-tabs button[aria-selected="true"] { background: var(--accent-soft); color: #6226b4; border-color: #e1d2f3; }
.workspace-banner { background: #faf8fd; border-color: var(--border); color: var(--muted); }
.workspace-banner strong { color: var(--text); }
.stat-icon { background: #f3eef9; color: #7b58a2; }
button.stat-card:hover { background: #faf7fd; }
.stat-label, .panel-header p, .record-result-count, .workspace-count { color: var(--muted); }
.login-screen { padding: 40px 20px; background: var(--bg); }
.login-entry { width: min(100%, 444px); padding: 0; }
.login-card { padding: 36px; border-color: var(--border); border-radius: 14px; box-shadow: 0 12px 36px #30203e08; }
.login-brand { margin-bottom: 32px; }
.login-brand > div { display: flex; gap: 13px; align-items: center; }
.login-brand .tedsuite-logo { width: 180px; }
.login-brand > div > .brand-product { padding-left: 13px; border-left: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 650; }
.login-kicker { display: block; margin-bottom: 9px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: 1.1px; }
.login-card h1 { color: var(--text); font-size: 27px; letter-spacing: -.65px; }
.login-card > p { margin-top: 9px; margin-bottom: 27px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-card label { color: #554b65; font-size: 12px; font-weight: 600; margin-bottom: 17px; }
.login-card input { min-height: 45px; margin-top: 7px; padding: 10px 12px; border-color: #cfc5dc; border-radius: 7px; font-size: 14px; }
.login-card input:hover { border-color: #aa91c7; }
.login-card input:focus { border-color: var(--accent); }
.login-card .button { min-height: 45px; padding: 11px 14px; margin-top: 5px; font-size: 13px; border-radius: 7px; }
.login-card > .error { margin-top: 16px; margin-bottom: 0; }
.login-entry footer { margin-top: 20px; color: var(--muted); font-size: 11px; }
@media (max-width: 1250px) {
  .brand .tedsuite-logo { width: 140px; }
}
@media (max-width: 1000px) {
  .brand { position: static; width: auto; }
  .brand .tedsuite-logo { width: 116px; }
  .brand > div > .brand-product { display: none; }
}
@media (max-width: 720px) {
  .brand .tedsuite-logo { width: 108px; }
  .login-card input { font-size: 16px; }
}
@media (max-width: 420px) {
  .login-screen { padding: 26px 16px; }
  .login-card { padding: 27px 24px; }
  .brand .tedsuite-logo { width: 100px; }
  .login-brand .tedsuite-logo { width: 160px; }
  .login-card h1 { font-size: 25px; }
  .login-entry footer { font-size: 11px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .brand { min-width: 44px; min-height: 44px; }
  .brand .tedsuite-logo { display: none; }
  .brand .tedsuite-brand-icon { display: block; }
}

/* Optional operational workspace; feature assets load only when enabled. */
.audit-mode-toggle{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:44px;max-width:150px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--muted);font:600 11px var(--font);cursor:pointer;flex:none}
.audit-mode-toggle[hidden]{display:none!important}.audit-mode-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.audit-mode-indicator{width:22px;height:13px;border-radius:8px;background:#bcb5c5;position:relative;flex:none}.audit-mode-indicator:after{content:"";position:absolute;left:2px;top:2px;width:9px;height:9px;border-radius:50%;background:white}.audit-mode-toggle[aria-checked="true"] .audit-mode-indicator{background:var(--accent)}.audit-mode-toggle[aria-checked="true"] .audit-mode-indicator:after{left:11px}
@media(max-width:720px){.audit-mode-toggle{max-width:92px;font-size:10px;gap:5px;padding:5px}.audit-mode-toggle span:last-child{max-width:50px;line-height:1.3}}
@media(max-width:480px){
  body:not(.audit-shell) .topbar .brand .tedsuite-logo{display:none}
  body:not(.audit-shell) .topbar .brand .tedsuite-brand-icon{display:block;width:44px;height:44px}
  body:not(.audit-shell) .topbar .brand{flex:0 0 44px;min-width:44px}
  body:not(.audit-shell) .topbar .audit-mode-toggle{width:44px;min-width:44px;min-height:44px;padding:5px}
  body:not(.audit-shell) .topbar .audit-mode-toggle>span:last-child{display:none}
  body:not(.audit-shell) .topbar .account{flex:none}
}
/* Server-rendered corporate entry; local workspace authentication stays available. */
.login-corporate { display: grid; gap: 8px; margin: 18px 0; }
.login-corporate[hidden] { display: none; }
.login-corporate-link { width: 100%; justify-content: center; box-sizing: border-box; text-decoration: none; }
.login-corporate > #login-corporate-hint { margin: 0; text-align: center; font-size: 12px; }
.login-local-separator { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.login-local-separator::before, .login-local-separator::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-local-separator > span { text-align: center; }
