/* Minimal theme. Workflow colors identify states, not container edges. */
:root {
  --ink: #202124;
  --muted: #64707e;
  --canvas: #f6f8fa;
  --line: #e3e7eb;
  --blue: #1967d2;
  --nav: #f6f8fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
button { font-weight: 500; }
.sidebar { background: #f6f8fa; color: #3c4043; border-right: 1px solid #e3e7eb; }
.brandmark { color: #202124; font-weight: 700; letter-spacing: -1.8px; }
.brandmark span { color: #64707e; border-color: #d5dce3; font-weight: 500; }
.workspace { border: 0; background: #edf1f5; border-radius: 10px; }
.workspace-icon { background: #dfe7f0; color: #465c76; }
.workspace small, .nav-label, .sidebar-bottom p { color: #64707e; }
.nav { color: #48515c; font-weight: 500; border-radius: 9px; }
.nav:hover { background: #e9edf2; }
.nav.active { background: #e5edfb; color: #185abc; box-shadow: none; }
.nav-count { background: #e7ebef; color: #596574; }
.nav.active .nav-count { background: #d6e4fa; color: #185abc; }
.sidebar-bottom { color: #53616f; }
.topbar { background: #fff; border-color: #e9edf1; }
.avatar { background: #e8f0fe; color: #1967d2; }
.page-heading h1 { font-size: 29px; font-weight: 600; letter-spacing: -.85px; }
.page-heading p { color: #64707e; }
.primary { background: #1967d2; border-color: #1967d2; font-weight: 500; }
.primary:hover { background: #185abc; }
.outline { font-weight: 500; color: #3f526a; border-color: #dce2e8; }
.tone-navy { --tone: #476280; --tint: #f0f4fa; }
.tone-amber { --tone: #995c00; --tint: #fff7e6; }
.tone-coral { --tone: #b13b4c; --tint: #fdf0f2; }
.tone-teal { --tone: #08776b; --tint: #edf7f3; }
.tone-green { --tone: #137333; --tint: #eef7ef; }
.metric, .metric:first-child, .metric:nth-child(n) {
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 12px;
  padding: 19px 18px;
  box-shadow: none;
}
.metric:before { content: none; }
.metric-label { font-weight: 500; color: #4d5968; font-size: 12px; }
.metric-value { color: #202124; font-weight: 600; font-size: 34px; letter-spacing: -1.2px; margin: 15px 0 8px; }
.metric-icon { background: var(--tint); color: var(--tone); border-radius: 10px; }
.metric-sub { color: #697586; font-size: 11px; line-height: 1.5; min-height: 32px; }
.metric:hover { background: #f8fafc; border-color: #cbd5e1; box-shadow: none; }
.metric[aria-pressed=true] { background: var(--tint); border-color: #c4cfdd; box-shadow: none; }
.queue-pulse { background: #fff; border-color: #e3e7eb; border-radius: 12px; }
.queue-pulse strong { font-weight: 500; color: #364559; }
.queue-pulse p { color: #697586; }
.pulse-wait { border-color: #e6eaef; }
.pulse-wait:hover { background: #f6f8fb; }
.pulse-symbol { color: #5c7a87; }
.mini-track { background: #e8f0ed; height: 3px; }
.mini-track i { background: #61a58c; }
.notice-banner { border: 1px solid #efe5d0; background: #fffbf2; border-radius: 10px; }
.notice-banner strong { font-weight: 600; color: #645133; }
.notice-banner p { color: #7b715f; }
.notice-icon { background: #fff1d5; }
.queue-panel { border-color: #e3e7eb; box-shadow: none; }
.queue-heading h2 { font-weight: 600; letter-spacing: -.35px; }
.queue-heading .muted { background: #f1f3f6; color: #64707e; }
.search-wrap input { background: #f8fafc; border-color: #dce3ec; box-shadow: none; font-size: 13px; }
.search-wrap input:focus { background: #fff; border-color: #8aafe4; }
.search-guidance { color: #728094; }
.branch-chip[aria-pressed=true] { box-shadow: none; }
.branch-chip { border-radius: 6px; }
.worktype-filters button { border-color: #e0e6ec; color: #526277; }
.worktype-filters button[aria-pressed=true] { background: #e8f0fe; color: #185abc; border-color: #c2d5f4; }
.worktype-filters button[aria-pressed=true] span { color: #185abc; }
.quick-filters button[aria-pressed=true] { background: #e8f0fe; border-color: #c2d5f4; color: #185abc; }
.waiting-disclosure, .filter-panel { background: #fafbfd; border-color: #e3e7eb; }
.waiting-disclosure>summary { color: #4b5e76; font-weight: 500; }
.active-filters button { background: #f1f5fb; border-color: #dbe4f0; color: #476385; }
.table-scroll thead { background: #f7f9fb; }
th { color: #677587; font-weight: 500; }
td strong, .request-link { font-weight: 500; }
.request-link { color: #285a96; }
.badge { font-weight: 500; }
tr[data-row-status=blocked] td:first-child,
tr[data-row-status=needs_information] td:first-child { border-left: 0; }
tr.reply-overdue { background: #fff; }
tr:hover { background: #f8fafd !important; }
.pagination { background: #fff; }
.section-intro h2 { font-weight: 600; font-size: 23px; letter-spacing: -.5px; }
.insight-panel { border-color: #e3e7eb; box-shadow: none; }
.insight-panel h2 { font-weight: 600; }
.waiting-panel { background: #fff; border-color: #e3e7eb; }
.wait-breakdown button { border: 0; background: #fff8e9; color: #8b5c0f; border-radius: 10px; }
.wait-breakdown strong { font-weight: 500; }
.brand-drill { font-weight: 500; color: #285a96; }
.notice-card { border: 1px solid #e3e7eb; border-radius: 12px; background: #fff; }
.notice-card-header strong { font-weight: 600; }
.notice-open { color: #496a96; }
.drawer-backdrop { background: #26344680; backdrop-filter: blur(4px); }
.drawer { background: #f7f9fb; border-color: #e0e5eb; box-shadow: 0 24px 80px #16253633; }
.drawer-top { border-color: #e5e9ef; }
.dialog-caption { color: #485a71; font-weight: 500; }
.reference-heading h2 { font-weight: 600; letter-spacing: -.75px; }
.next-action { border: 1px solid color-mix(in srgb,var(--tone) 16%,white); background: var(--tint); border-radius: 10px; }
.next-action h3 { font-weight: 600; }
.correction-evidence { border-color: #eadfc8; }
.registration-card { background: #edf3fb; color: #294a73; border: 1px solid #dce6f3; }
.registration-card>span, .registration-card small { color: #64768d; }
.registration-card strong { font-weight: 600; }
.registration-card .copy-button { background: #fff; color: #617895; border-color: #d5e0ef; }
.fact-section, .conversation-section { border-color: #e3e7eb; }
.fact-section h3, .conversation-heading h3 { font-weight: 600; }
.customer-identity strong { font-weight: 600; }
.customer-avatar { background: #edf2fa; font-weight: 500; }
.milestones strong, .timing-note strong { font-weight: 500; }
.review-section { background: #fffdf8; border-color: #eee5d3; }
.thread-filters button { font-weight: 500; }
.thread-filters button[aria-pressed=true] { background: #e8f0fe; color: #185abc; }
.thread-message { background: #fcfefd; border-color: #e0ebe6; }
.thread-message.outbound { background: #f8faff; border-color: #e0e7f1; }
.thread-message.key-message { border-left: 1px solid #e0ebe6; }
.thread-message.outbound.key-message { border-left-color: #e0e7f1; }
.message-from { font-weight: 600; }
.message-avatar { font-weight: 600; }
.message-body mark { font-weight: 500; }
.source-link { font-weight: 500; }
@media(max-width:1250px) {
  .metric, .metric:nth-child(n) { padding: 17px 13px; }
  .metric-sub { font-size: 10px; }
}
@media(max-width:800px) {
  .sidebar { border-right: 0; border-bottom: 1px solid #e3e7eb; }
  .page-heading h1 { font-size: 26px; }
  .metric, .metric:nth-child(n) { padding: 15px 11px; }
  .metric-value { font-size: 28px; }
  .metric-label { font-size: 11px; }
  .metric-sub { font-size: 9px; }
}
@media(max-width:540px) {
  .metric, .metric:nth-child(n) { padding: 16px 13px; }
  .metric-sub { font-size: 10px; min-height: 30px; }
  .metric-value { font-size: 30px; }
  .metric:first-child .metric-sub { min-height: 0; }
  #requests tr { border-left: 0; }
  #requests tr[data-row-status=blocked],
  #requests tr[data-row-status=needs_information] { border-left: 0; }
  #requests td:nth-child(5) { background: #f5f7fa; }
}
.reply-overdue td:first-child { box-shadow: none; }
.login-art { background: #eef3fa; color: #202124; }
.login-art p, .login-grid { color: #64707e; }
.login-grid span { border-left: 0; padding-left: 0; }

/* Solid status cards with quiet, oversized background symbols. */
.metric, .metric:first-child, .metric:nth-child(n) {
  isolation: isolate;
  overflow: hidden;
  background: var(--tint);
  background-image: none;
  border-color: color-mix(in srgb, var(--tone) 18%, white);
}
.metric .metric-heading { display: block; }
.metric .metric-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: 78px;
  height: 78px;
  background: none;
  color: var(--tone);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.metric .metric-icon svg { width: 100%; height: 100%; stroke-width: 1.25; }
.metric-label, .metric-value, .metric-sub { position: relative; z-index: 1; }
.metric-value { color: var(--tone); }
.metric-sub { max-width: 92%; }
.metric:hover { background: var(--tint); border-color: color-mix(in srgb, var(--tone) 48%, white); }
.metric[aria-pressed=true] { background: var(--tint); border-color: var(--tone); }
@media(max-width:1250px) {
  .metric .metric-icon { width: 64px; height: 64px; right: 9px; }
}
@media(max-width:540px) {
  .metric .metric-icon { width: 62px; height: 62px; right: 9px; }
  .metric:first-child .metric-icon { right: 27%; width: 58px; height: 58px; }
}
.column-sort { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 7px 0; color: inherit; font: inherit; text-align: left; white-space: nowrap; }
.column-sort:hover { color: #1967d2; }
.sort-arrow { font-size: 13px; color: #8996a6; }
th[aria-sort=ascending] .column-sort, th[aria-sort=descending] .column-sort,
th[aria-sort=ascending] .sort-arrow, th[aria-sort=descending] .sort-arrow { color: #1967d2; font-weight: 600; }
.sort-toolbar { order: 7; display: flex; align-items: center; gap: 14px; padding: 0 23px 14px; }
.queue-sort { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #526277; }
.queue-sort select { font-size: 11px; padding: 7px 10px; min-height: 34px; max-width: 250px; }
.sort-toolbar>span { font-size: 10px; color: #728094; }
@media(max-width:540px) { .sort-toolbar { padding: 0 14px 12px; } .sort-toolbar>span { display: none; } .queue-sort { width: 100%; } .queue-sort select { flex: 1; max-width: none; min-width: 0; } }
