/* Neutral SaaS console theme. Loaded after the component layout styles. */
:root {
  --ink: #172033; --ink-2: #27344a; --ink-3: #46536a; --muted: #7a869c;
  --paper: #f5f7fb; --paper-2: #eef1f6; --surface: #ffffff; --surface-2: #f8fafc;
  --line: #e7ebf1; --line-strong: #d9e0ea; --accent: #3478f6; --accent-deep: #2563db;
  --accent-soft: #edf4ff; --jade: #16876b; --jade-soft: #eaf8f3;
  --amber: #ad7214; --amber-soft: #fff7e5; --danger: #d04d4d; --danger-soft: #fff0f0;
  --shadow-sm: 0 1px 3px rgba(23,32,51,.035); --shadow-md: 0 6px 24px rgba(23,32,51,.06);
  --radius-sm: 6px; --radius: 10px; --radius-lg: 12px; --display: var(--sans);
  --sans: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html, body { background: var(--paper); }
body { background-image: none; font-size: 13px; }
button, input, select, textarea { letter-spacing: normal; }
button { -webkit-tap-highlight-color: transparent; }

/* Compact application shell */
.app-shell { grid-template-columns: 220px minmax(0,1fr); }
.sidebar { width: 220px; color: var(--ink-3); background: var(--surface); border-right: 1px solid var(--line); }
.sidebar::after { display: none; }
.sidebar-brand { gap: 11px; min-height: 76px; padding: 20px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--accent); box-shadow: none; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.sidebar-brand .brand-mark { width: 34px; height: 34px; border-radius: 8px; font-size: 16px; }
.sidebar-brand strong, .brand-copy strong { color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: normal; }
.sidebar-brand span, .brand-copy span { margin-top: 4px; color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: normal; text-transform: none; }
.nav { gap: 3px; padding: 12px; }
.nav-label { padding: 14px 10px 7px; color: #9aa5b7; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: normal; }
.nav-item { min-height: 40px; gap: 11px; padding: 0 11px; color: #647089; border: 0; border-radius: 6px; font-size: 13px; font-weight: 500; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.7; }
.nav-item:hover { color: var(--accent); background: var(--accent-soft); }
.nav-item.is-active { color: var(--accent); border: 0; background: var(--accent-soft); box-shadow: none; font-weight: 600; }
.sidebar-foot { padding: 16px 12px; border-top: 1px solid var(--line); }
.sidebar-user { grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; padding: 8px; border: 0; border-radius: 7px; background: transparent; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-family: var(--sans); font-size: 13px; }
.sidebar-user strong { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.sidebar-user span { color: var(--muted); font-size: 10px; }
.sidebar-user .icon-btn { color: var(--muted); border: 0; background: transparent; }
.sidebar-user .icon-btn:hover { color: var(--accent); background: var(--accent-soft); }
.topbar { min-height: 76px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: none; }
.page-heading h1 { color: var(--ink); font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: normal; }
.page-heading p { margin-top: 5px; font-size: 11px; }
.date-chip { min-height: 32px; padding: 0 10px; border-color: var(--line); border-radius: 6px; background: var(--surface-2); font-family: var(--sans); font-size: 11px; }
.date-chip i { box-shadow: none; }
.content { width: 100%; max-width: 1600px; padding: 24px 28px 48px; }
.view, .login-card, .story-center, .story-steps { animation: none; }

/* Quiet cards, controls, and tables */
.panel, .detail-hero { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { min-height: 62px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2, .section-head h2, .accounts-head h2, .form-section-title h3, .detail-hero h2, .dialog-head h2 { font-family: var(--sans); font-weight: 600; letter-spacing: normal; }
.panel-head h2 { font-size: 15px; }
.panel-head p { font-size: 11px; }
.panel-body { padding: 20px; }
.btn { min-height: 34px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 500; transition: background .15s,border-color .15s,color .15s; }
.btn:hover { border-color: #b8c5d8; transform: none; box-shadow: none; background: var(--surface-2); }
.btn:active { transform: none; }
.btn-primary { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: none; }
.btn-primary:hover { border-color: var(--accent-deep); background: var(--accent-deep); box-shadow: none; }
.btn-dark { color: #fff; border-color: var(--ink-2); background: var(--ink-2); }
.btn-dark:hover { color: #fff; border-color: var(--ink); background: var(--ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--paper-2); }
.btn-sm { min-height: 30px; padding: 0 10px; border-radius: 5px; font-size: 11px; }
.icon-btn { border-color: var(--line); border-radius: 6px; }
.icon-btn:hover { transform: none; border-color: var(--line-strong); background: var(--surface-2); }
.text-btn { color: var(--accent); font-weight: 500; }
.text-btn:hover { color: var(--accent-deep); }
.chip { border-color: var(--line); border-radius: 5px; background: var(--surface-2); font-weight: 500; }
.status { border-radius: 5px; font-weight: 500; }
.status-paused { background: var(--paper-2); }
.field > label, .field-label { font-size: 12px; font-weight: 500; letter-spacing: normal; }
.field input, .field select { height: 38px; border-radius: 6px; }
.field input:focus, .field select:focus { box-shadow: 0 0 0 3px rgba(52,120,246,.1); }
.form-section { border-bottom: 1px solid var(--line); }
.hint-box { border-radius: 6px; }
.data-table { font-size: 12px; }
.data-table th { padding: 11px 12px; color: #7a869c; border-bottom: 1px solid var(--line); background: #f8fafc; font-size: 11px; font-weight: 500; letter-spacing: normal; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--surface); }
.data-table tbody tr:hover { background: #f8faff; }
.table-input { border-radius: 4px; font-size: 12px; }
.table-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(52,120,246,.1); }
.review-table .action-col { background: var(--surface); box-shadow: -4px 0 8px rgba(23,32,51,.03); }
.review-table thead .action-col { background: #f8fafc; }
.review-table tbody tr:nth-child(even) .action-col { background: var(--surface); }
.review-table tbody tr:hover .action-col { background: #f8faff; }
.review-area, .review-foot, .dialog-head, .dialog-actions { border-style: solid; }
.review-foot { background: var(--surface-2); }
.batch-dialog-field { display: flex; align-items: center; gap: 8px; }
.batch-dialog-field label { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.batch-dialog-field select { max-width: 230px; height: 34px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font: inherit; font-size: 12px; }
.paste-area { border-radius: 6px; background: var(--surface-2); font-family: var(--sans); font-size: 13px; line-height: 1.8; }
.queue-item, .summary-card { border-radius: 7px; }
.queue-item:hover { transform: none; box-shadow: none; border-color: #bdcce3; }

/* Dashboard metrics replace the promotional hero treatment. */
.hero-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 0; padding: 20px 24px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-card::before, .hero-card::after, .metric-card::after { display: none; }
.hero-copy .eyebrow { margin: 0 0 8px; color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: normal; }
.hero-copy h2 { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: normal; }
.hero-copy p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hero-side { min-width: 130px; padding-left: 26px; border-left: 1px solid var(--line); }
.hero-side strong { color: var(--accent); font-family: var(--sans); font-size: 34px; font-weight: 600; letter-spacing: normal; }
.hero-side span { color: var(--muted); font-size: 11px; }
.metric-grid { gap: 14px; }
.metric-card { min-height: 116px; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card .metric-label { font-size: 11px; font-weight: 500; letter-spacing: normal; }
.metric-card .metric-value { margin-top: 13px; font-family: var(--sans); font-size: 28px; font-weight: 600; letter-spacing: normal; }
.metric-card .metric-foot { margin-top: 9px; font-size: 10px; }
.dashboard-stack { gap: 16px; margin-top: 16px; }
.dashboard-grid, .settings-grid { gap: 16px; }
.dashboard-grid { grid-template-columns: minmax(0,1fr); }
.detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.person-avatar { border-radius: 50%; font-family: var(--sans); }
.progress > span, .progress.accent > span, .progress.amber > span { background: var(--accent); }
.dialog-current { padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-soft); }
.dialog-current .small, .dialog-current .id { color: var(--muted); font-family: var(--sans); letter-spacing: normal; }
.dialog-current strong { font-family: var(--sans); font-size: 20px; font-weight: 600; }
.dialog-current .seal { color: var(--accent); border-color: #c6d9fb; font-family: var(--sans); }
.day-toggle.is-on { color: #fff; border-color: var(--accent); background: var(--accent); }
.account-status i { box-shadow: none; }
.app-dialog { border-radius: 10px; box-shadow: var(--shadow-md); }
.app-dialog::backdrop { background: rgba(23,32,51,.35); backdrop-filter: none; }
.dialog-actions { background: var(--surface-2); }
.toast { color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-md); }
.loading-shimmer { background: var(--paper-2); }

/* Simple product sign-in, with no decorative marketing canvas. */
.login-shell { grid-template-columns: minmax(360px,.9fr) minmax(480px,1.1fr); background: var(--surface); }
.login-story { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 64px; color: var(--ink); border-right: 1px solid var(--line); background: #f7f9fd; }
.login-story::before, .login-story::after { display: none; }
.story-brand { position: absolute; top: 38px; left: 48px; }
.story-center { max-width: 480px; margin: 0; }
.story-eyebrow { margin-bottom: 16px; color: var(--accent); font-family: var(--sans); font-size: 12px; letter-spacing: normal; }
.story-eyebrow::before { display: none; }
.story-center h1 { font-family: var(--sans); font-size: 36px; font-weight: 600; letter-spacing: normal; line-height: 1.5; }
.story-center > p { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.story-steps { max-width: 480px; margin-top: 42px; border: 0; border-radius: 0; gap: 24px; background: transparent; }
.story-step { min-height: 0; padding: 0; background: transparent; }
.story-step span { color: var(--accent); font-family: var(--sans); font-size: 11px; }
.story-step strong { margin-top: 9px; font-size: 13px; font-weight: 600; }
.story-step p { color: var(--muted); font-size: 11px; }
.story-foot { left: 48px; bottom: 30px; color: #a0aabc; font-family: var(--sans); font-size: 10px; letter-spacing: normal; }
.login-panel { background: var(--surface); }
.login-card { width: min(360px,100%); }
.login-kicker { margin-bottom: 10px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.login-card h2 { font-family: var(--sans); font-size: 27px; font-weight: 600; letter-spacing: normal; }
.login-intro { margin-bottom: 28px; font-size: 12px; }
.login-submit { height: 42px; border-radius: 6px; color: #fff; background: var(--accent); box-shadow: none; font-size: 13px; font-weight: 500; letter-spacing: normal; }
.login-submit:hover { transform: none; background: var(--accent-deep); box-shadow: none; }
.login-note { color: var(--muted); font-size: 11px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 200px minmax(0,1fr); }
  .sidebar { width: 200px; }
  .content { padding: 20px; }
  .topbar { padding: 16px 20px; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { width: 220px; box-shadow: 12px 0 32px rgba(23,32,51,.12); }
  .topbar { min-height: 68px; padding: 12px 16px; }
  .content { padding: 16px 14px 40px; }
  .login-story { display: none; }
  .login-shell { display: block; background: var(--paper); }
  .login-panel { min-height: 100vh; padding: 24px; background: var(--paper); }
  .login-card { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .login-card .mobile-brand { margin-bottom: 34px; }
  .hero-card { grid-template-columns: 1fr auto; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .content { padding: 12px 10px 32px; }
  .page-heading h1 { font-size: 17px; }
  .page-heading p { max-width: 180px; }
  .panel-head { padding: 13px 14px; }
  .hero-card { grid-template-columns: 1fr; padding: 18px; }
  .hero-copy h2 { font-size: 19px; }
  .hero-side { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .hero-side strong { font-size: 28px; }
  .detail-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 106px; padding: 15px; }
  .metric-card .metric-value { font-size: 25px; }
  .login-card { padding: 24px 20px; }
}
.result-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.result-filter-panel { display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.result-filters > .field { flex: 0 1 180px; }
.result-filters > .field:nth-child(2) { flex-basis: 270px; }
.result-status-filters { display: flex; gap: 6px; }
.result-status-filters .btn { flex: 1; padding: 0 10px; }
.result-status-button.is-selected[data-result-status=""] { color: var(--accent); border-color: #b9cff8; background: var(--accent-soft); }
.result-status-button.is-selected[data-result-status="unanswered"] { color: #a33c32; border-color: #e7b4ac; background: #fff0ed; }
.result-status-button.is-selected[data-result-status="answered"] { color: #176f4b; border-color: #add9c5; background: #e8f6ef; }
.result-filters .field { margin: 0; }
.result-reset { margin-left: auto; }
.result-custom-dates { display: flex; align-items: end; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.result-custom-dates[hidden] { display: none; }
.result-custom-dates .field { width: 180px; margin: 0; }
.result-table-shell { max-height: calc(100vh - 285px); }
.result-table { min-width: 850px; }
.result-badge { display: inline-flex; padding: 4px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.result-badge.answered { color: #176f4b; background: #e8f6ef; }
.result-badge.unanswered { color: #a33c32; background: #fff0ed; }
.alert-toggle { align-self: end; min-height: 38px; }
@media (max-width: 1100px) {
  .result-filters > .field { flex-grow: 1; }
}
@media (max-width: 640px) {
  .result-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-filters > .field { width: auto; }
  .result-filters > .field:nth-child(2), .result-filters #resultEmployeeField { grid-column: span 2; }
  .result-reset { margin-left: 0; }
  .result-custom-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-custom-dates .field { width: auto; }
  .result-custom-dates .btn { grid-column: span 2; }
  .result-table-shell { max-height: none; }
}
