:root {
  --ink: #18324e;
  --ink-deep: #102842;
  --muted: #66798d;
  --canvas: #f3f6f8;
  --surface: #ffffff;
  --line: #dfe6ec;
  --blue: #235782;
  --blue-dark: #18456b;
  --teal: #138d88;
  --teal-soft: #e2f4f1;
  --amber: #a76b1e;
  --amber-soft: #fff4dc;
  --error: #a52e34;
  --radius: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #72a8d4; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 2.3vw, 36px); line-height: 1.14; letter-spacing: -.035em; font-weight: 670; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.025em; font-weight: 670; }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.eyebrow { display: block; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: .14em; margin-bottom: 11px; }
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; background: #fff; color: var(--ink); border-right: 1px solid var(--line); min-height: 100vh; padding: 16px 16px 22px; }
.brand, .login-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; white-space: nowrap; color: white; }
.brand { padding: 0 4px; }
.brand-logo-frame { display: block; width: 190px; height: 122px; flex: 0 0 190px; overflow: hidden; background: white; border-radius: 9px; }
.brand-logo-frame img { display: block; width: 190px; height: 190px; max-width: none; transform: translateY(-30px); }
.sidebar .brand { padding: 0; }
.sidebar .brand-logo-frame { width: 100%; height: 137px; flex: 0 0 100%; border-radius: 0; }
.sidebar .brand-logo-frame img { width: 198px; height: 198px; transform: translateY(-27px); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #63bcb4; color: #d7f2ee; background: rgba(26, 142, 138, .2); border-radius: 8px; font-size: 11px; font-weight: 750; letter-spacing: -.08em; }
.brand-text { font-size: 13px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; }
.brand-text small { display: block; font-size: 9px; font-weight: 650; letter-spacing: .24em; color: #96b2c3; margin-top: 4px; }
.nav-caption { color: #8697a5; padding: 0 13px; margin: 32px 0 12px; font-weight: 750; font-size: 10px; letter-spacing: .16em; }
.nav-section { margin-top: 36px; }
.nav-links { display: grid; gap: 4px; }
.nav-links a { display: flex; align-items: center; min-height: 40px; padding: 10px 13px; border-radius: 8px; color: #496277; font-weight: 600; transition: background .18s, color .18s; }
.nav-links a:hover { color: #08746c; background: #f0f8f8; }
.nav-links a.active { color: #08746c; background: #e5f4f4; box-shadow: inset 3px 0 var(--teal); }
.sidebar-bottom { display: flex; gap: 10px; align-items: center; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.identity-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px; background: var(--teal-soft); color: #08746c; font-weight: 750; }
.identity-text { min-width: 0; line-height: 1.3; }
.identity-text strong, .identity-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-text strong { color: var(--ink); font-size: 12px; }
.identity-text small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.main-column { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 36px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.breadcrumb { text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 740; color: #667b8e; }
.breadcrumb span { padding: 0 7px; color: #b6c3cd; }
.breadcrumb a:hover { color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.language-form select { color: var(--ink); background: #f7f9fb; border: 1px solid var(--line); padding: 7px 26px 7px 10px; border-radius: 7px; font-size: 12px; }
.text-button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 650; }
.text-button:hover { color: var(--blue); }
.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 37px 36px 60px; flex: 1; }
.footer { text-align: center; padding: 20px; border-top: 1px solid var(--line); color: #8ba0b1; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-heading p { margin-bottom: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 39px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 12px; line-height: 1.3; font-weight: 740; white-space: nowrap; transition: background .18s, border-color .18s, box-shadow .18s; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 3px 8px rgba(35,87,130,.12); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { background: #eef4f8; border-color: #cfdeea; color: var(--blue); }
.button-secondary:hover { background: #e1edf5; }
.button-quiet { background: transparent; border-color: var(--line); color: var(--muted); }
.button-quiet:hover { background: #eef3f7; color: var(--ink); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button-danger { background: var(--error); color: white; }
.button-danger:hover { background: #842329; }
.button-wide { width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 24px rgba(25,59,95,.035); margin-bottom: 20px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 24px 17px; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.inline-link, .row-link { color: var(--blue); font-weight: 700; font-size: 12px; }
.inline-link:hover, .row-link:hover { color: var(--teal); text-decoration: underline; }
button.row-link { border: 0; background: none; padding: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { position: relative; min-height: 145px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 24px rgba(25,59,95,.035); overflow: hidden; }
.metric-card::before { content: ""; position: absolute; width: 3px; top: 23px; bottom: 23px; left: 0; background: var(--teal); }
.metric-card:nth-child(2)::before { background: #d89b42; }
.metric-card:nth-child(3)::before { background: #5b8ec3; }
.metric-card:nth-child(4)::before { background: #4aa6a0; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card strong { margin-top: 12px; font-size: 34px; line-height: 1; letter-spacing: -.05em; font-weight: 700; color: var(--ink-deep); }
.metric-card small { margin-top: auto; color: #8ba0b1; font-size: 10px; letter-spacing: .08em; font-weight: 730; }
.metric-card-link { cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.metric-card-link:hover, .metric-card-link.is-selected { border-color: #78b6b2; box-shadow: 0 8px 26px rgba(19,141,136,.13); }
.metric-card-link:hover { transform: translateY(-2px); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.work-bars { padding: 3px 24px 26px; display: grid; gap: 18px; }
.bar-title { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 12px; }
.bar-title strong { color: var(--ink-deep); }
.bar-track { height: 7px; background: #ebf1f5; border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #257c9f, #18a49d); }
.empty-state { padding: 40px 24px; color: var(--muted); font-size: 13px; }
.mini-list { padding: 0 20px 17px; }
.mini-list a { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px 5px; border-bottom: 1px solid #edf1f4; font-size: 12px; }
.mini-list a:last-child { border: 0; }
.mini-list a:hover { color: var(--blue); }
.mini-list small { color: var(--muted); }
.mini-id { color: var(--teal); font-weight: 740; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { background: #f8fafb; border-block: 1px solid #e9eef2; color: #7b8fa2; text-transform: uppercase; font-weight: 750; font-size: 10px; letter-spacing: .08em; padding: 9px 12px; white-space: normal; }
.data-table td { border-bottom: 1px solid #eef1f4; padding: 9px 12px; font-size: 12px; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfe; }
.data-table tfoot th, .data-table tfoot td { background: #eaf4f6; border-top: 2px solid #bddde0; color: var(--ink-deep); font-size: 12px; font-weight: 750; padding: 9px 12px; }
.data-table .monospace { white-space: nowrap; }
.data-table .full-task-id { min-width: 220px; max-width: 390px; white-space: normal; overflow-wrap: anywhere; user-select: text; }
.data-table .wrap-cell { min-width: 180px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.data-table .remarks-cell { min-width: 280px; max-width: 440px; }
.batch-task-table { min-width: 1800px; }
.page-heading h1 { overflow-wrap: anywhere; }
.nav-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 10px; background: #b23f46; color: white; font-size: 11px; font-weight: 800; margin-left: 6px; }
.production-table td { padding: 9px 12px; }
.production-table td[rowspan] { vertical-align: top; background: #fff; }
.production-table .production-person-start td { border-top: 2px solid #d9e5ec; }
.production-table .row-link { font-weight: 750; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.data-table td.table-actions { display: table-cell; }
.data-table td.table-actions > * { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.data-table td.table-actions > *:last-child { margin-right: 0; }
.data-table .row-link { display: inline-flex; align-items: center; min-height: 24px; }
.danger-link, .danger-link:hover { color: var(--error); }
.directory-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.directory-tabs a, .directory-tabs .status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; }
.directory-tabs a.active, .directory-tabs .status-chip.active { color: var(--blue); border-color: #b6d2e3; background: #edf5fa; }
.directory-tabs span { font-size: 11px; color: var(--muted); }
.status-removed { background: #f3f4f6; color: #627080; }
.removal-panel { max-width: 620px; padding: 34px; }
.removal-panel .immutable-person { margin: 24px 0; }
.removal-panel .form-actions { margin-top: 28px; }
.status { display: inline-flex; align-items: center; gap: 7px; border-radius: 5px; padding: 4px 9px; font-size: 11px; font-weight: 740; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-done { background: var(--teal-soft); color: #08746c; }
.status-progress { background: var(--amber-soft); color: #94611b; }
.empty-cell { color: var(--muted); text-align: center; padding: 35px !important; }
.count-label { color: var(--muted); font-size: 12px; }
.filter-panel { padding: 18px 22px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filter-grid .field { margin: 0; }
.filter-grid.performance-detail-filter { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.filter-language { grid-column: span 2; }
.filter-hint { color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.field { margin-bottom: 19px; }
.field label { display: block; color: #51677c; font-size: 11px; font-weight: 750; margin-bottom: 7px; }
.field-input, .field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 39px; color: var(--ink); background: #fff; border: 1px solid #ced9e1; border-radius: 7px; padding: 9px 11px; }
.field textarea { resize: vertical; }
.field-input::placeholder { color: #9aaab6; }
.paste-field { position: relative; }
.paste-field .field-input { padding-right: 53px !important; min-height: 44px; }
.paste-field.with-today .field-input { padding-right: 112px !important; }
.today-button { position: absolute; right: 45px; top: 1px; height: calc(100% - 2px); padding: 0 10px; border: 0; border-left: 1px solid var(--line); background: #f3f8fb; color: var(--blue); font-weight: 700; cursor: pointer; }
.today-button:hover { background: #e6f2f9; }
.paste-icon-button { position: absolute; right: 1px; top: 1px; width: 44px; height: calc(100% - 2px); display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); border-radius: 0 6px 6px 0; background: #f3f8fb; color: var(--blue); }
.paste-icon-button:hover { background: #e6f2f9; }
.paste-icon-button svg { width: 19px; height: 19px; }
.paste-feedback { display: block; color: var(--error); margin-top: 5px; font-size: 11px; }
.paste-feedback[hidden], .paste-dialog [hidden] { display: none; }
.date-scope { grid-column: 1 / -1; min-width: 0; }
.date-scope .choice-options { max-width: 420px; }
.date-range-field[hidden] { display: none; }
.paste-dialog { width: min(640px, calc(100vw - 28px)); max-height: min(88vh, 850px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 24px 80px rgba(9,35,57,.28); color: var(--ink); }
.paste-dialog::backdrop { background: rgba(10,34,55,.56); }
.paste-dialog-close { position: absolute; right: 15px; top: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 28px; }
.paste-dialog textarea { min-height: 108px; resize: vertical; }
.paste-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.paste-dialog .form-actions { margin-top: 8px; }
.field-error { display: block; color: var(--error); margin-top: 5px; }
.field-help { display: block; color: var(--muted); margin-top: 5px; }
.choice-field { border: 0; padding: 0; min-width: 0; }
.choice-field legend { color: #51677c; font-size: 11px; font-weight: 750; margin-bottom: 9px; }
.choice-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; }
.choice-option { position: relative; display: block; margin: 0; cursor: pointer; }
.choice-option input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; opacity: 0; }
.choice-option span { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd9e4; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.35; transition: background .16s, border-color .16s, box-shadow .16s; }
.choice-option span::before { content: ""; display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; border: 1.5px solid #8aa3b6; border-radius: 50%; font-size: 12px; line-height: 1; }
.choice-option:hover span { border-color: var(--blue); background: #f4f9fd; }
.choice-option input:checked + span { border-color: var(--blue); background: #e8f3fc; color: #0d4b80; box-shadow: inset 0 0 0 1px var(--blue); }
.choice-option input:checked + span::before { content: "✓"; border-color: var(--blue); background: var(--blue); color: #fff; }
.choice-option input:focus-visible + span { outline: 3px solid #1d80c8; outline-offset: 2px; }
.choice-option input:disabled + span { opacity: .5; cursor: not-allowed; }
.segmented-choice .choice-options { display: flex; gap: 0; padding: 4px; border: 1px solid #d4e0e8; background: #eaf0f5; border-radius: 12px; }
.segmented-choice .choice-option { flex: 1 1 0; min-width: 0; margin: 0; }
.segmented-choice .choice-option span { justify-content: center; min-height: 44px; padding: 7px 8px; text-align: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #496277; font-size: 12px; font-weight: 720; }
.segmented-choice .choice-option span::before,
.segmented-choice .choice-option input:checked + span::before { content: none; display: none; }
.segmented-choice .choice-option:hover span { background: #f6fafc; border-color: transparent; }
.segmented-choice .choice-option input:checked + span,
.segmented-choice .choice-option input:checked + span:hover { background: #fff; color: #075e8d; border-color: #d3e5ee; box-shadow: 0 2px 7px rgba(34,71,98,.11); }
.segmented-work .choice-options { flex-wrap: wrap; }
.segmented-work .choice-option { flex: 1 1 45%; }
.segmented-owner { grid-column: 1 / -1; }
.owner-employee-picker { grid-column: 1 / -1; max-width: 560px; }
.owner-employee-picker[hidden] { display: none; }
.owner-employee-picker .field { margin-bottom: 12px; }
.owner-employee-picker [hidden] { display: none; }
.entry-audit-note { grid-column: 1 / -1; margin: -3px 0 18px; color: #58758b; font-size: 12px; }
.filter-language .choice-option span { font-size: 11px; }
.immutable-person { display: grid; gap: 5px; margin-bottom: 22px; padding: 13px 15px; border-radius: 8px; background: #eef5fa; color: var(--ink); }
.immutable-person strong { font-size: 14px; }
.immutable-person span { font-size: 12px; color: var(--muted); }
.batch-processes { margin-top: 4px; min-width: 0; }
.batch-processes summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 700; }
.batch-processes summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.batch-list-table > thead > tr > th { padding: 9px 12px; }
.batch-list-table > tbody > tr > td { padding: 9px 12px; }
.batch-list-table > thead > tr > th:nth-child(n+4):nth-child(-n+7) { white-space: normal; min-width: 88px; width: 1%; }
.batch-list-table .batch-processes { margin-top: 4px; min-width: 0; }
.batch-list-table .table-actions { gap: 8px; }
.batch-list-table .table-actions .row-link { display: inline-flex; align-items: center; min-height: 24px; }
.process-table { border-collapse: collapse; margin-top: 9px; width: 100%; font-size: 11px; }
.process-table th, .process-table td { border-top: 1px solid var(--line); padding: 6px 7px; text-align: left; white-space: nowrap; }
.process-table th:not(:first-child), .process-table td:not(:first-child) { text-align: right; }
.required { color: var(--error); }
.form-alert { background: #fff0f0; border: 1px solid #f0c9c9; color: var(--error); border-radius: 7px; padding: 11px 13px; margin-bottom: 20px; }
.form-section { padding-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; padding: 0 24px; }
.form-grid-spacer { min-height: 1px; }
.form-section > .field { margin-inline: 24px; }
.form-hint { margin: 0 24px; padding: 10px 12px; color: #58758b; background: #f3f8fa; border-radius: 7px; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin: 14px 0; }
.submit-note { text-align: right; color: var(--muted); font-size: 11px; }
.simple-form { max-width: 600px; padding: 26px; }
.simple-form .field { margin-bottom: 18px; }
.simple-form .form-actions { margin-bottom: 0; }
.info-banner { padding: 12px 15px; margin-bottom: 20px; background: #ebf4f6; border-left: 3px solid var(--teal); border-radius: 5px; color: #345e70; font-size: 12px; }
.detail-update { margin-left: 12px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.detail-panel { padding-bottom: 12px; }
.detail-list { margin: 0 24px 16px; }
.detail-list div { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 15px; padding: 11px 0; border-top: 1px solid #edf1f4; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.remarks-text { margin: 0 24px 20px; white-space: normal; color: #405a70; }
.history-list { margin: 0 24px 20px; }
.history-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #edf1f4; }
.history-mark { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 8px; border-radius: 50%; background: var(--teal); }
.history-row strong { font-size: 12px; }
.history-row p { color: var(--muted); font-size: 11px; margin: 2px 0 0; }
.day-list { padding: 2px 24px 23px; max-height: 330px; overflow: auto; }
.day-list div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #edf1f4; font-size: 12px; }
.day-list strong { color: var(--teal); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 12px; }
.pagination a { color: var(--blue); font-weight: 700; }
.pagination span { color: var(--muted); }
.credential-card { max-width: 620px; padding: 25px; }
.credential-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.credential-row span { color: var(--muted); font-size: 12px; }
.credential-row code { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.credential-row .credential-secret { color: var(--blue-dark); }
.credential-card .info-banner { margin: 22px 0; }
.credential-card [data-copy-credentials-status] { min-height: 18px; margin: 8px 0 14px; font-size: 12px; }
.credential-copy-fallback:not([hidden]) { display: block; width: 100%; min-height: 95px; margin: 0 0 16px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.error-panel { max-width: 560px; padding: 38px; }
.messages { margin-bottom: 18px; }
.flash { background: var(--teal-soft); color: #08746c; border: 1px solid #b5e3d8; padding: 11px 14px; border-radius: 8px; font-size: 12px; }
.workforce-filter { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:18px; margin-bottom:20px; }
.workforce-filter label { display:block; font-weight:700; color:var(--muted); font-size:12px; }
.workforce-filter .field-input { width:190px; max-width:100%; }
.workforce-form { max-width:980px; }
.workforce-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.workforce-fieldset { border:1px solid var(--line); border-radius:12px; padding:18px; margin:15px 0; }
.workforce-fieldset legend { font-weight:750; padding:0 8px; }
.workforce-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:16px; }
.workforce-option { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:9px; cursor:pointer; min-height:44px; font-size:13px; }
.workforce-option:has(input:checked) { border-color:var(--teal); background:var(--teal-soft); }
.workforce-option:focus-within { outline:2px solid var(--blue); outline-offset:2px; }
.workforce-option input { flex:none; width:18px; height:18px; }
.skill-badge,.work-chip { display:inline-flex; align-items:center; border-radius:7px; padding:4px 7px; margin:2px; font-size:11px; font-weight:700; white-space:nowrap; }
.skill-badge { background:#e9f5f1; color:#08776d; }
.work-chip { background:#ebf2fa; color:#265c88; }
.workforce-delete { margin-top:16px; }
.workforce-status { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px; margin-bottom:20px; }
.workforce-status h2 { margin:7px 0; }
.workforce-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.workforce-card { padding:22px; }
.workforce-card h2 { margin:4px 0 18px; }
.workforce-card .field { margin-bottom:13px; }
.workforce-available { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.workforce-history { margin-top:22px; }
.activity-period { padding:3px 0; white-space:nowrap; }
.workforce-off-duty { padding:18px; display:flex; flex-wrap:wrap; gap:6px; }
.workforce-off-duty .work-chip { min-height:36px; }
.workforce-heading-actions { display:flex; flex-wrap:wrap; gap:9px; }
.workforce-pick-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:12px 0; }
.workforce-pick-toolbar .field-input { width:min(260px,100%); }
.workforce-people-options { max-height:390px; overflow:auto; padding:3px; }
.workforce-people-options .workforce-option[hidden] { display:none; }
.workforce-people-options .workforce-option small { display:block; color:var(--muted); }
.workforce-replace { margin:18px 0; max-width:440px; }
.workforce-replace small { display:block; color:var(--muted); font-weight:400; }
.login-body { background: #f5f7f9; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1.03fr) minmax(400px, .97fr); }
.login-story { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(42px, 6vw, 108px); background: radial-gradient(circle at 80% 80%, #1d6983 0, transparent 33%), linear-gradient(145deg, #132c46, #0e344a 65%, #126a6d); color: #fff; overflow: hidden; }
.login-story::after { content: ""; position: absolute; width: 450px; height: 450px; right: -160px; bottom: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.015), 0 0 0 160px rgba(255,255,255,.012); pointer-events: none; }
.login-brand { padding: 0; }
.login-brand .brand-logo-frame { width: 210px; height: 136px; flex-basis: 210px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.login-brand .brand-logo-frame img { width: 210px; height: 210px; transform: translateY(-32px); }
.login-story h1 { color: white; font-size: clamp(44px, 4.3vw, 72px); line-height: 1.05; margin: 0 0 24px; letter-spacing: -.055em; }
.login-story p { color: #b9d4df; max-width: 370px; font-size: 16px; }
.login-story .eyebrow { color: #6bd5c9; margin-bottom: 18px; }
.login-story-footer { color: #9cb9c8; font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.login-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 50px; }
.login-language { position: absolute; right: 36px; top: 32px; }
.login-card { width: min(100%, 395px); }
.login-card h2 { font-size: 30px; letter-spacing: -.04em; }
.login-card p { margin: 10px 0 30px; }
.login-card .eyebrow { margin-bottom: 8px; }
.login-card .field { margin-bottom: 19px; }
.login-card .button { margin-top: 8px; min-height: 44px; }
.login-aside { position: absolute; bottom: 28px; color: #8fa1b0; font-size: 11px; }
@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid button { justify-self: start; }
}
@media (max-width: 760px) {
  .workforce-fields,.workforce-options,.workforce-columns { grid-template-columns:1fr; }
  .workforce-status { align-items:flex-start; flex-direction:column; }
  .app-shell { display: block; }
  .sidebar { min-height: 0; padding: 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin-bottom: 12px; }
  .sidebar .brand-logo-frame { width: 150px; height: 95px; flex-basis: 150px; }
  .sidebar .brand-logo-frame img { width: 150px; height: 150px; transform: translateY(-21px); }
  .nav-caption, .sidebar-bottom { display: none; }
  .nav-links { display: flex; overflow-x: auto; }
  .nav-links a { white-space: nowrap; min-height: 36px; }
  .topbar { padding: 0 18px; height: 58px; }
  .content { padding: 28px 18px 40px; }
  .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid-spacer { display: none; }
  .filter-grid.performance-detail-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-layout { display: block; }
  .login-story { min-height: 250px; padding: 30px; }
  .login-story h1 { font-size: 36px; }
  .login-story-footer { display: none; }
  .login-panel { min-height: 440px; padding: 70px 24px; }
}
@media (max-width: 500px) {
  .paste-preview-grid { grid-template-columns: 1fr; }
  .paste-dialog { padding: 22px 18px; }
  .topbar { height: auto; min-height: 58px; flex-wrap: wrap; padding-block: 11px; gap: 9px; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 9px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 15px; min-height: 118px; }
  .metric-card strong { font-size: 27px; }
  .page-heading { flex-direction: column; align-items: flex-start; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-grid.performance-detail-filter { grid-template-columns: 1fr; }
  .filter-language { grid-column: auto; }
  .filter-language .choice-options { flex-wrap: wrap; }
  .filter-language .choice-option { flex: 1 1 45%; }
  .form-actions { flex-wrap: wrap; justify-content: flex-start; }
  .detail-list div { grid-template-columns: 1fr; gap: 4px; }
  .credential-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Searchable selection menus (style B). */
.search-select { position: relative; min-width: 0; width: 100%; }
.search-select-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.search-select-trigger { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 10px 14px; border: 1px solid #cddde6; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; cursor: pointer; }
.search-select-trigger::after { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-right: 2px solid #557487; border-bottom: 2px solid #557487; transform: rotate(45deg); margin: 0 3px 4px; }
.search-select-trigger[aria-expanded="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px #09878112; }
.search-select-trigger:disabled { background: #f2f5f7; color: #637786; cursor: default; }
.search-select-trigger.has-error { border-color: var(--error); }
.search-select-popup { position: fixed; z-index: 1000; padding: 9px; display: flex; flex-direction: column; gap: 7px; border: 1px solid #d6e3e9; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px #173b5624; }
.search-select-popup[hidden] { display: none; }
.search-select-query { flex: 0 0 auto; width: 100%; min-height: 44px; border: 1px solid #dae5eb; border-radius: 7px; padding: 10px 12px; background: #f7fafb; color: var(--ink); font: inherit; font-size: 13px; }
.search-select-list { overflow-y: auto; min-height: 0; }
.search-select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; text-align: left; background: #fff; color: var(--ink); border: 0; border-radius: 7px; padding: 10px 12px; font: inherit; font-size: 13px; cursor: pointer; overflow-wrap: anywhere; }
.search-select-option[aria-selected="true"], .search-select-option.is-active, .search-select-option:hover { background: #eaf6f5; color: #08776d; }
.search-select-empty { margin: 6px 10px; font-size: 13px; color: var(--muted); }
.search-select-trigger:focus-visible, .search-select-query:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.filter-grid > .stacked-select-field, .form-grid > .stacked-select-field { grid-column: 1 / -1; }
.language-form .search-select, .login-language .search-select { min-width: 135px; }
.language-form .search-select-trigger, .login-language .search-select-trigger { font-size: 12px; }

/* Compact filter layout: period/search, language, batch, refinements. */
.filter-grid.compact-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.compact-filter > .date-scope { grid-column: 1 / -1; order: 0; }
.compact-filter:has(input[name="q"]) > .date-scope { grid-column: auto; }
.compact-filter > .field:has(input[name="q"]) { order: 0; }
.compact-filter:not(:has(.date-scope)) > .field:has(input[name="q"]) { grid-column: 1 / -1; }
.compact-filter > .date-range-field { order: 1; }
.compact-filter > .filter-language { grid-column: 1 / -1; order: 2; }
.compact-filter > .field:has(select[name="batch"]) { grid-column: 1 / -1; order: 3; }
.compact-filter > .field:has(select[name="work_type"]), .compact-filter > .field:has(select[name="state"]), .compact-filter > .field:has(select[name="status"]) { order: 4; }
.compact-filter > .button, .compact-filter > noscript, .compact-filter-actions { order: 5; justify-self: end; }
.compact-filter-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.compact-filter > .button { min-width: 130px; }
@media(max-width: 640px) {
  .filter-grid.compact-filter { grid-template-columns: minmax(0, 1fr); }
  .compact-filter > * { grid-column: 1 / -1 !important; }
  .compact-filter .filter-language .choice-options { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

.batch-today-field .field-input { padding-right: 85px !important; }
.batch-today-field .today-button { right: 1px; }
