/* Original workbench visual language; no dependency on the legacy app or API. */
:root {
  font-size: 16px;
  color: #192637;
  background: #f4f6fa;
  --blue: #244ddc;
  --muted: #66768a;
  --border: #e5eaf1;
  --navy: #122338;
  --shadow: none;
}
input, select, textarea { color: #192637; border-color: #d7dfeb; border-radius: 7px; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #8795a9; }
.button { min-height: 40px; font-size: 14px; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.primary { box-shadow: none; }
.primary:hover:not(:disabled) { background: #183cbd; }
.text-button { font-size: 14px; color: var(--muted); }
.brand { font-size: 21px; font-weight: 700; gap: 10px; padding: 0; }
.brand img { width: 38px; height: 38px; flex-shrink: 0; }
.brand small { font-size: 10px; letter-spacing: .14em; font-weight: 500; margin-top: 4px; }
.rail { width: 232px; padding: 30px 18px 22px; z-index: 40; overflow-y: auto; }
.rail .brand { margin: 0 8px 36px; }
.rail-label { font-size: 12px; color: #8299b5; padding: 0 16px; margin: 0 0 12px; letter-spacing: .12em; }
.workspace-nav { display: flex; flex-direction: column; gap: 5px; }
.workspace-nav button { display: flex; align-items: center; gap: 14px; border: 0; background: transparent; color: #b7c7db; text-align: left; padding: 13px 16px; font-size: 14px; font-weight: 500; border-radius: 7px; width: 100%; }
.workspace-nav button:hover { background: #203853; color: white; }
.workspace-nav button.current { background: var(--blue); color: white; }
.workspace-nav .nav-icon { width: 20px; text-align: center; font-family: "Segoe UI Symbol", sans-serif; font-size: 19px; font-weight: 400; }
.workspace-nav small { margin-left: auto; font-size: 11px; border: 1px solid #617bd9; padding: 1px 5px; border-radius: 3px; }
.nav-separator { margin: 16px 12px 10px; border-top: 1px solid #2c3d54; }
.rail-bottom { border: 0; padding: 36px 16px 0; }
.dark-pill { background: #233951; color: #a8bddb; font-size: 10px; letter-spacing: .12em; padding: 5px 9px; border-radius: 5px; }
.rail-bottom p { line-height: 1.9; color: #cbd7e6; margin: 14px 0 6px; font-size: 14px; }
.rail-bottom small { color: #91a6c0; font-size: 12px; }
.shell { margin-left: 232px; min-width: 0; }
.topbar { min-height: 78px; height: auto; padding: 16px 34px; font-size: 14px; color: var(--muted); gap: 20px; }
.breadcrumb { min-width: 0; }
.separator { margin: 0 12px; }
.topbar .account-actions { gap: 14px; }
.store-picker { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.store-picker select { background: #f9fafc; border-color: #e6ebf2; max-width: 250px; min-height: 36px; padding: 8px 12px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #e9edff; color: #3358cb; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.account-actions #signed-in-name { color: #29394b; font-size: 13px; }
#nav-toggle { display: none; }
#workspace { padding: 32px 34px 22px; max-width: 1700px; margin: auto; }
.page-heading { margin-bottom: 26px; gap: 20px; }
.page-heading h1 { margin: 10px 0 9px; font-size: 29px; letter-spacing: 0; font-weight: 700; }
.eyebrow { font-size: 12px; font-weight: 400; color: #75839a; letter-spacing: .09em; }
.page-heading p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.card { border-radius: 11px; box-shadow: none; }
.scope-panel { padding: 22px 24px; }
.section-title h2 { font-size: 16px; font-weight: 650; }
.scope-controls { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.scope-controls label { font-size: 13px; color: var(--muted); }
.scope-controls > label:last-child { grid-column: auto; }
.scope-controls input, .scope-controls select { font-size: 14px; }
.scope-footer { font-size: 12px; color: #79869a; }
.compact-pager .text-button { font-size: 12px; }
.data-heading { padding: 24px; background: #f6faff; }
.data-heading h2 { font-size: 20px; line-height: 1.5; color: #203957; }
.data-heading p { font-size: 13px; color: #79869a; }
.tabs { padding: 0 24px; gap: 28px; }
.tab { font-size: 15px; font-weight: 500; padding: 18px 0; border-bottom-width: 3px; color: #7b8699; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.filter-bar { padding: 18px 24px; background: #f8faff; }
.filter-bar label { font-size: 13px; color: #667b96; }
.filter-bar input, .filter-bar select { font-size: 14px; }
.compact-filters { padding-top: 12px; padding-bottom: 12px; background: white; }
.bulk-toolbar { font-size: 13px; color: #647690; }
.bulk-toolbar .button, .bulk-toolbar .text-button { font-size: 13px; }
.table-info { font-size: 12px; padding: 16px 24px; color: #7b889b; }
.table-info > span:first-child { font-size: 14px; color: #31445d; }
table { font-size: 14px; }
th { font-size: 14px; font-weight: 600; color: #607894; background: #f2f6fb; padding: 16px 18px; }
td { padding: 18px; vertical-align: middle; color: #49617c; }
tbody tr:nth-child(even) td { background: #fafcff; }
tbody tr:hover td { background: #f0f7ff; }
.keyword-name { font-size: 16px; line-height: 1.55; color: #284b76; font-weight: 650; }
.keyword-translation { font-size: 13px; }
.keyword-root { font-size: 12px; margin-top: 7px; }
.category { font-size: 12px; border-radius: 20px; padding: 4px 10px; }
.metric-value { font-size: 18px; font-weight: 600; }
.metric-meta { font-size: 12px; line-height: 1.7; }
.missing, .cell-note { font-size: 13px; }
.row-actions .text-button { font-size: 13px; padding: 6px 0; }
.pagination { font-size: 13px; padding: 18px 24px; }
.pagination-actions .button { font-size: 13px; min-height: 38px; padding: 8px 12px; }
.pagination-actions select { font-size: 13px; min-height: 38px; min-width: 70px; }
.page-footnote { font-size: 12px; color: #8291a7; }
.modal { border-radius: 16px; color: #192637; }
.modal::backdrop { background: #12233866; backdrop-filter: none; }
.modal-heading h2 { font-size: 20px; }
.modal-heading .eyebrow { font-size: 12px; }
.modal-description, .field input, .field select, .field label, .column-option, .form-error, .account-meta { font-size: 14px; }
.column-option small { font-size: 12px; line-height: 1.7; }
#columns-dialog, #parity-columns-dialog { width: min(1000px, calc(100% - 30px)); }
.column-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-help, .form-notice, .account-form .field-help, .source-read-notice { font-size: 12px; }
.source-intro h3, .history-toolbar h3, .product-detail-card h3 { font-size: 16px; }
.source-intro p, .history-toolbar p, .source-result-info, .report-controls label, .report-controls > p { font-size: 13px; }
.source-table, .source-table th, .source-table td, .source-values > div, .source-table .source-dates, .report-controls select { font-size: 13px; }
.coverage-card p, .coverage-empty, .coverage-kind-counts, .coverage-pending, .report-identity p { font-size: 12px; }
.source-table .keyword-name { font-size: 14px; }
.source-table .keyword-root, .source-table .button, .account-toolbar .button { font-size: 12px; }
.toast { left: 50%; font-size: 14px; }

/* The old two-column login is a separate screen, not a card in the workspace. */
.legacy-auth-story { display: none; }
body:not(.authenticated) { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 100vh; background: white; }
body:not(.authenticated) > .rail, body:not(.authenticated) .topbar, body:not(.authenticated) .page-heading { display: none; }
body:not(.authenticated) .shell { grid-column: 2; margin: 0; }
body:not(.authenticated) #workspace { margin: 0; padding: 0; max-width: none; }
body:not(.authenticated) .legacy-auth-story { background: var(--navy); color: white; display: flex; flex-direction: column; justify-content: space-between; padding: 52px 10%; min-height: 100vh; }
.legacy-auth-story .brand img { width: 40px; height: 40px; }
.legacy-auth-story h1 { font-size: clamp(32px, 3.2vw, 52px); line-height: 1.45; letter-spacing: 0; margin: 20px 0; }
.legacy-auth-story .eyebrow { font-size: 14px; color: #91a9ce; letter-spacing: .12em; }
.legacy-auth-story .intro { color: #b5c5db; line-height: 1.9; max-width: 400px; }
.auth-flow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; align-items: center; }
.auth-flow span { padding: 12px 18px; border: 1px solid #3b4c64; border-radius: 6px; font-size: 14px; }
.auth-flow i { color: #87a4dd; font-style: normal; }
.auth-story-footnote { color: #98adc9; font-size: 13px; margin-top: 36px; }
.connect-panel { max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; padding: 40px; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; }
.auth-heading, .auth-panel-body { width: 100%; max-width: 380px; }
.welcome-pill { display: inline-flex; background: #eaf0ff; color: var(--blue); padding: 5px 9px; border-radius: 5px; font-size: 13px; font-weight: 600; }
.connect-panel h2 { font-size: 27px; letter-spacing: 0; margin: 20px 0 10px; }
.connect-panel p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 0; }
.connect-panel .auth-form { margin-top: 22px; gap: 8px; }
.connect-panel .auth-form > label { font-size: 14px; margin: 8px 0 0; color: #192637; }
.connect-panel .auth-form input { font-size: 14px; min-height: 44px; }
.connect-panel .auth-form > .button { width: 100%; margin-top: 18px; min-height: 44px; }
.connect-panel .auth-help { font-size: 13px; margin-top: 10px; }
.connect-panel .form-error:empty { display: none; }
body.setup-required .auth-heading, body.setup-required .auth-panel-body { max-width: 560px; }

@media (max-width: 1200px) {
  .topbar { padding: 16px 22px; align-items: flex-start; }
  .topbar .account-actions { gap: 8px; }
  .store-picker { flex-basis: 100%; justify-content: flex-end; }
  #workspace { padding: 28px 22px 22px; }
  .data-heading { align-items: flex-start; flex-wrap: wrap; }
  .data-heading > div:first-child { max-width: 100%; }
  .data-heading > .button-group { max-width: none; }
}
@media (max-width: 760px) {
  body:not(.authenticated) { display: block; }
  body:not(.authenticated) .legacy-auth-story { min-height: auto; padding: 24px; }
  .legacy-auth-story .auth-story-content, .auth-story-footnote { display: none; }
  .connect-panel { min-height: calc(100dvh - 94px); padding: 32px 24px; }
  .rail { position: static; width: 100%; padding: 18px 20px; display: flex; }
  .rail .brand { margin: 0; }
  .rail-label, .rail-bottom, .workspace-nav { display: none; }
  .rail.mobile-open .workspace-nav { display: flex; margin-top: 22px; }
  .shell { margin-left: 0; }
  #nav-toggle { display: inline-block; padding: 6px; font-size: 20px; }
  .topbar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .topbar .breadcrumb { gap: 8px; font-size: 12px; }
  .topbar .account-actions { max-width: none; width: 100%; justify-content: flex-end; }
  .account-actions #signed-in-name { flex-basis: auto; font-size: 12px; }
  .store-picker { flex-basis: auto; margin-right: auto; font-size: 12px; min-width: 0; }
  .store-picker select { max-width: 185px; font-size: 12px; }
  .user-avatar { display: none; }
  #workspace { padding: 24px 14px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 13px; }
  .connection-state { font-size: 10px; margin-top: 7px; }
  .scope-panel { padding: 18px; }
  .scope-controls { grid-template-columns: minmax(0, 1fr); }
  .section-title { flex-wrap: wrap; }
  .section-title h2 { font-size: 15px; }
  .section-title .button, .filter-bar .button { font-size: 12px; min-height: 36px; }
  .data-heading, .filter-bar, .bulk-toolbar, .table-info { padding: 16px 18px; }
  .tabs { padding: 0 18px; gap: 22px; }
  .tab { font-size: 14px; }
  .table-info { font-size: 12px; }
  .filter-bar label { flex-wrap: wrap; }
  .filter-bar input, .filter-bar select { min-width: 0; max-width: 100%; font-size: 13px; }
  .pagination { padding: 16px 18px; flex-wrap: wrap; }
  .pagination-actions { flex-wrap: wrap; gap: 8px; }
  .page-footnote { font-size: 12px; }
  .column-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
