/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 * macrostructure: Workbench · theme: Plain · nav: N9 · footer: Ft2
 * audience: account administrator · use: batch account operations · tone: quiet, precise
 * enrichment: none · type: Korean system sans + system mono · motion: control feedback only
 * contrast: pass (40–41) · mobile: pass (34, 49, 50–57)
 */
:root {
  --color-paper: #f6f7f9;
  --color-surface: #ffffff;
  --color-ink: #17212f;
  --color-muted: #586476;
  --color-subtle: #e9edf2;
  --color-rule: #d6dde5;
  --color-accent: #244dce;
  --color-accent-hover: #1b3da9;
  --color-accent-ink: #ffffff;
  --color-selected: #edf2ff;
  --color-focus: #000000;
  --color-error: #a72f36;
  --color-error-bg: #fff2f2;
  --color-success: #14664c;
  --color-success-bg: #e9f5f0;
  --color-warning: #805416;
  --color-warning-bg: #fff6e5;
  --color-backdrop: #17212f66;
  --color-shadow: #17212f1a;
  --color-transparent: transparent;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-style: normal; overflow-wrap: anywhere; min-width: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(25px, 2.4vw, 32px); font-weight: 700; line-height: 1.3; }
h2 { font-size: 20px; font-weight: 650; line-height: 1.4; }
button, input { font: inherit; }
button { cursor: pointer; }
button, .check-label, .mode-options label { white-space: nowrap; }
button:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=password], input[type=search], input[type=number] { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--color-rule); border-radius: var(--radius); padding: 10px 12px; background: var(--color-surface); color: var(--color-ink); transition: background-color 150ms; }
input::placeholder { color: var(--color-muted); opacity: .8; }
input:disabled { opacity: .55; cursor: not-allowed; }
input[aria-invalid=true] { border-color: var(--color-error); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--color-accent); margin: 0; cursor: pointer; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--color-surface); color: var(--color-ink); font-size: 13px; font-weight: 600; transition: background-color 150ms, transform 100ms; }
.button:active:not(:disabled), .icon-button:active { transform: translateY(1px); }
.button.primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.button.quiet { border-color: var(--color-transparent); background: var(--color-transparent); color: var(--color-muted); }
.button.compact { padding-inline: 12px; }
.full { width: 100%; }
.text-button { padding: 8px; min-height: 44px; border: 0; background: var(--color-transparent); color: var(--color-accent); font-size: 13px; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--color-transparent); color: var(--color-muted); font-size: 28px; line-height: 1; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip-path: inset(50%); border: 0; white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 20; background: var(--color-ink); color: var(--color-surface); padding: 12px; }
.skip-link:focus { transform: none; }
.boot { padding: 80px 24px; text-align: center; color: var(--color-muted); }
.login-view { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.login-brand, .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.6px; }
.login-brand { margin-bottom: 32px; }
.brand-mark { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: var(--color-accent); color: var(--color-accent-ink); border-radius: 6px; }
.brand-mark svg { width: 23px; height: 23px; }
.login-panel { width: min(100%, 420px); padding: 28px 24px; background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-rule); border-radius: 10px; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; font-weight: 600; color: var(--color-muted); margin-bottom: 6px; }
.login-panel h1 { font-size: 24px; }
.login-description { color: var(--color-muted); margin: 12px 0 28px; font-size: 14px; }
form label, .form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field-message { margin: 8px 0 12px; min-height: 21px; font-size: 13px; overflow-wrap: anywhere; }
.error { color: var(--color-error); }
.login-foot { color: var(--color-muted); font-family: var(--font-mono); font-size: 11px; margin-top: 24px; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px max(16px, calc((100% - 1280px)/2)); background: var(--color-surface); color: var(--color-ink); border-bottom: 1px solid var(--color-rule); }
.brand { font-size: 16px; min-width: 0; gap: 7px; }
.brand .brand-mark { width: 28px; height: 28px; }
.brand-detail { display: none; font-size: 13px; color: var(--color-muted); font-weight: 500; letter-spacing: -.2px; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--color-rule); }
.header-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.region-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-muted); }
.region-label span { display: none; }
.region-label select { height: 44px; width: 60px; border: 1px solid var(--color-rule); border-radius: var(--radius); padding: 6px; font-family: var(--font-mono); font-size: 12px; background: var(--color-surface); color: var(--color-ink); }
.workspace { max-width: 1312px; margin: 0 auto; padding: 28px 16px max(20px, env(safe-area-inset-bottom)); }
.page-heading { display: flex; flex-direction: column; align-items: start; gap: 20px; margin-bottom: 28px; }
.heading-count { font-family: var(--font-mono); color: var(--color-muted); font-size: .63em; font-weight: 400; vertical-align: .15em; margin-left: 8px; }
.page-description { color: var(--color-muted); margin-top: 8px; font-size: 13px; max-width: 50ch; word-break: keep-all; }
.error-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--color-error); border-radius: var(--radius); background: var(--color-error-bg); color: var(--color-error); margin-bottom: 20px; }
.error-banner p { overflow-wrap: anywhere; min-width: 0; }
.error-banner .button { flex-shrink: 0; color: var(--color-error); }
.account-section { min-width: 0; background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-rule); border-radius: 8px; }
.list-tools { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; border-bottom: 1px solid var(--color-rule); }
.search-field { width: 100%; max-width: 380px; }
.search-field label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 6px; }
.search-input { position: relative; }
.search-input svg { width: 18px; height: 18px; position: absolute; left: 12px; top: 13px; color: var(--color-muted); }
.search-input input { padding-left: 38px; }
.selection-bar { display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: center; padding: 8px 12px; background: var(--color-paper); color: var(--color-ink); border-bottom: 1px solid var(--color-rule); }
.check-label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 4px; font-size: 12px; cursor: pointer; }
.selection-count { font-size: 12px; color: var(--color-muted); }
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; padding-bottom: 4px; }
.bulk-actions .button { flex: 1 0 auto; }
.accounts-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.accounts-table thead { display: none; }
.accounts-table tbody { display: block; padding: 0 12px; }
.accounts-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; padding: 16px 0; gap: 16px 12px; border-bottom: 1px solid var(--color-rule); }
.accounts-table td { display: block; min-width: 0; font-size: 13px; }
.accounts-table td[data-label]::before { content: attr(data-label); display: block; color: var(--color-muted); font-size: 11px; margin-bottom: 5px; }
.accounts-table .selection-cell { position: absolute; left: 0; top: 12px; width: 44px; height: 44px; }
.row-select { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.accounts-table .account-cell { grid-column: 1/-1; padding-left: 48px; min-height: 40px; padding-top: 2px; }
.account-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.account-id { color: var(--color-muted); font-family: var(--font-mono); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.number { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; }
.star-split { color: var(--color-muted); font-size: 11px; margin-top: 4px; }
.password-cell { grid-column: 1/-1; }
.password-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
.password-button { height: 44px; padding: 8px 12px; min-width: 140px; max-width: 100%; border: 1px dashed var(--color-rule); border-radius: var(--radius); background: var(--color-paper); color: var(--color-muted); font-size: 12px; font-family: var(--font-mono); text-align: left; overflow: clip; text-overflow: ellipsis; }
.password-button.revealed { border-style: solid; background: var(--color-surface); color: var(--color-ink); user-select: all; }
.password-hide { min-height: 44px; padding: 6px 8px; border: 0; color: var(--color-muted); background: var(--color-transparent); font-size: 12px; }
.no-password { display: flex; align-items: center; min-height: 44px; color: var(--color-muted); }
.no-password.error { color: var(--color-error); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 550; padding: 3px 7px; border-radius: 4px; background: var(--color-subtle); color: var(--color-muted); white-space: nowrap; }
.status.ready, .status.completed, .status.succeeded { background: var(--color-success-bg); color: var(--color-success); }
.status.running, .status.queued, .status.pending { background: var(--color-selected); color: var(--color-accent); }
.status.failed, .status.error, .status.partial { background: var(--color-error-bg); color: var(--color-error); }
.row-error { margin-top: 6px; color: var(--color-error); font-size: 12px; overflow-wrap: anywhere; }
.date { color: var(--color-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.list-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--color-muted); font-size: 11px; }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state svg { width: 44px; height: 44px; color: var(--color-muted); margin-bottom: 16px; }
.empty-state h2 { font-size: 17px; }
.empty-state p { color: var(--color-muted); font-size: 13px; margin: 8px auto 20px; max-width: 45ch; word-break: keep-all; }
.loading-table { padding: 24px 20px; }
.loading-table span { color: var(--color-muted); font-size: 13px; }
.loading-table div { height: 52px; background: var(--color-paper); color: var(--color-muted); margin-top: 12px; border-radius: 3px; }
.jobs-panel { border: 1px solid var(--color-rule); border-radius: 8px; background: var(--color-surface); color: var(--color-ink); padding: 16px; margin-bottom: 20px; }
.section-heading { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { font-size: 14px; letter-spacing: -.02em; }
.muted { color: var(--color-muted); font-size: 12px; }
.job + .job { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-rule); }
.job-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.job-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.job-count { font-size: 12px; font-family: var(--font-mono); color: var(--color-muted); }
.job-progress { width: 100%; height: 4px; display: block; border: 0; border-radius: 2px; background: var(--color-subtle); color: var(--color-accent); accent-color: var(--color-accent); }
.job-progress::-webkit-progress-bar { background: var(--color-subtle); border-radius: 2px; }
.job-progress::-webkit-progress-value { background: var(--color-accent); border-radius: 2px; }
.job-progress::-moz-progress-bar { background: var(--color-accent); }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--color-muted); }
.job-details { margin-top: 10px; font-size: 12px; }
.job-details summary { display: inline-block; min-height: 44px; padding: 12px 0; color: var(--color-error); cursor: pointer; }
.job-items { list-style: none; padding: 0; margin: 0; }
.job-items li { padding: 8px 0; display: flex; gap: 10px; border-top: 1px solid var(--color-rule); overflow-wrap: anywhere; }
.job-items strong { font-family: var(--font-mono); font-size: 11px; font-weight: 500; flex-shrink: 0; }
.app-footer { border-top: 1px solid var(--color-rule); margin-top: 28px; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--color-muted); }
dialog { width: min(480px, calc(100% - 32px)); max-height: min(90dvh, 760px); height: fit-content; position: fixed; inset: 0; margin: auto; padding: 24px; border: 1px solid var(--color-rule); border-radius: 10px; background: var(--color-surface); color: var(--color-ink); box-shadow: 0 16px 64px var(--color-shadow); overflow-y: auto; }
dialog::backdrop { background: var(--color-backdrop); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { font-size: 23px; }
.dialog-description { font-size: 13px; color: var(--color-muted); margin: 12px 0 24px; word-break: keep-all; }
.form-field { margin-bottom: 20px; }
.helper { color: var(--color-muted); font-size: 12px; margin-top: 6px; min-height: 18px; overflow-wrap: anywhere; }
.mode-field { border: 0; margin: 0 0 16px; padding: 0; }
.mode-field legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.mode-options { display: flex; gap: 12px; }
.mode-options label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--color-rule); border-radius: var(--radius); font-size: 13px; font-weight: 400; margin: 0; cursor: pointer; }
.mode-options label:has(input:checked) { background: var(--color-selected); color: var(--color-accent); border-color: var(--color-accent); }
.auto-helper { color: var(--color-muted); font-size: 12px; margin-bottom: 20px; word-break: keep-all; }
.dialog-footer { border-top: 1px solid var(--color-rule); padding-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--color-ink); color: var(--color-surface); border-radius: 6px; box-shadow: 0 4px 24px var(--color-shadow); font-size: 13px; word-break: keep-all; }
@media (hover: hover) {
  .button:hover:not(:disabled) { background: var(--color-paper); color: var(--color-ink); }
  .button.primary:hover:not(:disabled) { background: var(--color-accent-hover); color: var(--color-accent-ink); }
  .button.quiet:hover:not(:disabled), .icon-button:hover { background: var(--color-subtle); color: var(--color-ink); }
  .text-button:hover:not(:disabled), .password-hide:hover { text-decoration: underline; }
  input:hover:not(:disabled) { background: var(--color-paper); color: var(--color-ink); }
  .password-button:hover { background: var(--color-subtle); color: var(--color-ink); }
  .accounts-table tr:hover { background: var(--color-paper); color: var(--color-ink); }
}
.accounts-table tr.selected { background: var(--color-selected); color: var(--color-ink); }
@media (min-width: 40rem) {
  .brand { font-size: 18px; gap: 10px; }
  .brand .brand-mark { width: 32px; height: 32px; }
  .region-label span { display: inline; }
  .brand-detail { display: inline; }
  .workspace { padding-top: 40px; }
  .page-heading { flex-direction: row; align-items: center; justify-content: space-between; }
  .list-tools { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 20px; }
  .bulk-actions { width: auto; margin-left: auto; padding: 0; }
  .bulk-actions .button { flex: 0 0 auto; }
  .selection-bar { padding-inline: 16px; }
  .app-footer { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 64rem) {
  .accounts-table { table-layout: auto; }
  .accounts-table thead { display: table-header-group; }
  .accounts-table tbody { display: table-row-group; padding: 0; }
  .accounts-table tr { display: table-row; padding: 0; }
  .accounts-table th { font-size: 11px; color: var(--color-muted); background: var(--color-paper); font-weight: 600; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-rule); white-space: nowrap; }
  .accounts-table td { display: table-cell; padding: 16px 14px; border-bottom: 1px solid var(--color-rule); vertical-align: middle; }
  .accounts-table td[data-label]::before { display: none; }
  .accounts-table .selection-cell { position: static; width: 44px; padding: 0 0 0 8px; }
  .accounts-table .account-cell { padding: 16px 14px; min-width: 160px; max-width: 240px; }
  .accounts-table .number-cell { text-align: right; }
  .accounts-table .password-cell { min-width: 210px; }
  .password-button { width: 148px; min-width: 0; }
  .accounts-table td.date { white-space: nowrap; }
  .accounts-table tr:last-child td { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
