@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #fff;
  --ink: #17223b;
  --muted: #66758b;
  --line: #e6ebf2;
  --primary: #2263e5;
  --primary-hover: #194fc0;
  --blue-soft: #edf3ff;
  --danger: #b33242;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.65; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #7aa8ff; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.35; font-weight: 750; letter-spacing: -.8px; }
h2 { font-size: 19px; line-height: 1.5; letter-spacing: -.3px; }
h3 { font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); font-size: 13px; }
.eyebrow { color: #71829d; letter-spacing: 1.8px; font-size: 10px; font-weight: 700; margin-bottom: 10px; }
.fine-print { color: var(--muted); font-size: 12px; margin-top: 14px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; z-index: 100; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.boot-screen { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 17px; font-size: 34px; font-weight: 850; line-height: 1; box-shadow: 0 6px 18px #2263e526; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 25px; }
.login-layout { min-height: 100vh; max-width: 1180px; margin: 0 auto; padding: 64px 48px; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 100px; }
.login-intro { padding: 30px 0; }
.login-intro .eyebrow { margin-top: 40px; }
.login-intro h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.45; letter-spacing: -1.5px; }
.intro-copy { max-width: 360px; margin-top: 22px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.intro-footer { display: flex; align-items: center; gap: 9px; margin-top: 68px; font-size: 12px; color: var(--muted); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #21a17e; }
.login-card { background: var(--surface); padding: 38px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 65px #20385b08; }
.login-card h2 { font-size: 25px; margin-bottom: 8px; }
.login-card form { margin-top: 30px; }
.login-card input { margin-bottom: 20px; }
.login-card .quiet { margin-top: 12px; }
.login-card .fine-print { padding-top: 20px; border-top: 1px solid var(--line); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
input { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #d6dfeb; border-radius: 9px; color: var(--ink); background: #fff; transition: border-color .15s; }
input:hover { border-color: #aebcd0; }
input:focus { border-color: var(--primary); }
input::placeholder { color: #94a0b3; }
.optional { color: var(--muted); font-size: 11px; margin-left: 5px; font-weight: 400; }
.field-error { color: var(--danger); margin-bottom: 16px; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .15s, border-color .15s; }
.button.primary { background: var(--primary); color: #fff; box-shadow: 0 3px 9px #2263e51c; }
.button.primary:hover:not(:disabled) { background: var(--primary-hover); }
.button.secondary { background: #fff; border-color: #dce4ef; color: #3a4b65; }
.button.secondary:hover:not(:disabled) { background: #f4f7fc; border-color: #b5c7e1; }
.button.quiet { background: transparent; color: var(--muted); }
.button.quiet:hover:not(:disabled) { background: #edf1f7; }
.button.compact { min-height: 35px; padding: 7px 12px; font-size: 12px; }
.button.danger-text { color: var(--danger); }
.button.danger-button { color: #fff; background: var(--danger); }
.button.danger-button:hover { background: #922536; }
.full-width { width: 100%; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-button { color: var(--primary); border: 0; padding: 4px 0; background: none; font-size: 12px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; width: 228px; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--line); padding: 32px 22px 24px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 18px; line-height: 1.3; font-weight: 750; }
.brand-subtitle { display: block; font-size: 10px; color: var(--muted); font-weight: 450; margin-top: 4px; letter-spacing: 2px; }
.nav-caption { margin: 48px 13px 14px; font-size: 10px; letter-spacing: 1px; color: #8c98ab; }
.navigation { display: flex; flex-direction: column; gap: 7px; }
.nav-item { text-align: left; border: 1px solid transparent; background: transparent; padding: 12px 14px; border-radius: 10px; color: #63728a; display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 550; }
.nav-item > span { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .65; }
.nav-item.active { color: var(--primary); background: var(--blue-soft); }
.nav-item:hover:not(.active) { background: #f6f8fb; }
.sidebar-footer { margin-top: auto; padding: 24px 12px 0; border-top: 1px solid var(--line); color: #54667e; font-size: 12px; }
.sidebar-footer .status-dot { margin-right: 5px; }
.sidebar-footer p { margin-top: 8px; font-size: 10px; color: #8b98ac; }
.sidebar-footer button { margin: 18px 0 0 -12px; }
.workspace { max-width: 1600px; margin-left: 228px; padding: 42px 42px 24px; min-height: 100vh; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-header .eyebrow { margin-bottom: 6px; }
.page-header .muted { margin-top: 8px; }
.notice { padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; line-height: 1.8; overflow-wrap: anywhere; font-size: 12px; }
.notice.danger { color: #a13242; border-color: #f0cbd2; background: #fff1f3; }
.notice.warning { color: #876016; border-color: #eedcaf; background: #fff9eb; }
.notice.info { color: #3a629e; border-color: #dae6fc; background: #f4f8ff; }
.risk-notice { display: flex; gap: 14px; background: #f0f3f8; border-color: #e5eaf2; color: #65738a; margin-bottom: 24px; }
.risk-notice strong { flex-shrink: 0; font-weight: 600; color: #475b77; }
.loading-status { margin: -6px 0 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 23px 24px; background: var(--surface); }
.stat-card p { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 33px; font-weight: 720; line-height: 1.35; margin: 10px 0 6px; letter-spacing: -.8px; overflow-wrap: anywhere; }
.stat-card > span { display: block; color: #8c98a9; font-size: 11px; }
.stat-card.accent { background: var(--blue-soft); border-color: #dce7ff; }
.stat-card.accent strong { color: var(--primary); }
.stat-card.accent > span { color: #718bbc; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; margin-bottom: 24px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.panel-heading .muted { margin-top: 6px; }
.badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px 9px; border-radius: 6px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge.neutral { background: #f0f3f8; color: #738095; }
.badge.info { background: #edf3ff; color: #3765ba; }
.badge.success { background: #e9f7f1; color: #248767; }
.badge.danger { background: #fceff1; color: #ba4457; }
.detail-list { margin: 24px 0; }
.detail-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0f3f7; padding: 12px 0; font-size: 12px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.recent-list { display: grid; }
.recent-item { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0f3f7; min-width: 0; }
.recent-item:last-child { border-bottom: 0; }
.recent-item > div { min-width: 0; }
.recent-item strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.recent-item p { margin-top: 4px; font-size: 11px; }
.empty-state { padding: 36px 14px; border: 1px dashed #dce4f0; border-radius: 11px; text-align: center; background: #fafbfd; color: #7b8a9e; font-size: 13px; }
.account-card { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.account-card:first-child { padding-top: 0; }
.account-card:last-child { padding-bottom: 0; border-bottom: 0; }
.account-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-info > div { min-width: 0; }
.account-info h3, .account-info p { overflow-wrap: anywhere; }
.account-info p { margin-top: 3px; font-size: 11px; }
.account-avatar { width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #e1eafa; border-radius: 13px; background: #f1f5fd; color: #4972b9; display: grid; place-items: center; font-weight: 650; font-size: 17px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; flex-shrink: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab { min-height: 41px; border: 0; background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 8px; font-size: 13px; }
.tab.active { background: var(--blue-soft); color: var(--primary); font-weight: 600; }
.recommended { font-size: 9px; margin-left: 7px; padding: 2px 5px; border-radius: 4px; background: #dce8ff; }
.qr-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: center; gap: 32px; }
.qr-display { width: 224px; height: 224px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 8px; }
.qr-display svg { display: block; width: 100%; height: 100%; }
.qr-placeholder { font-size: 12px; color: #94a1b3; text-align: center; }
.qr-instructions { max-width: 540px; }
.qr-instructions h3 { margin-bottom: 8px; }
.qr-status { color: #46618e; margin: 16px 0; font-size: 12px; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 780px; margin-top: 22px; }
.span-all { grid-column: 1 / -1; }
.jobs-list { display: grid; gap: 16px; }
.job-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.job-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.job-heading > div { min-width: 0; }
.job-heading h3 { overflow-wrap: anywhere; }
.job-heading p { font-size: 11px; margin-top: 4px; }
.job-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.job-details dt { font-size: 11px; margin-bottom: 6px; }
.job-details dd { font-size: 12px; white-space: pre-wrap; }
.job-error { margin-top: 16px; padding: 10px 12px; color: #a13242; background: #fff3f5; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.job-id { color: #94a0b2; margin-top: 16px; font-size: 10px; overflow-wrap: anywhere; }
.settings-list { margin: 0 0 24px; }
.settings-list > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; color: #94a0b2; font-size: 10px; padding: 8px 0 0; }
.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px)); display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 15px 18px; border-radius: 12px; border: 1px solid #cae8dc; box-shadow: 0 6px 32px #18294216; background: #f3fcf8; color: #22694f; font-size: 13px; overflow-wrap: anywhere; }
.toast > span { min-width: 0; }
.toast.danger { background: #fff4f5; border-color: #f3cfd5; color: var(--danger); }
.toast-close { background: transparent; color: inherit; border: 0; padding: 5px; font-size: 11px; flex-shrink: 0; }
.confirm-dialog { border: 1px solid var(--line); border-radius: 20px; width: min(440px, calc(100vw - 32px)); padding: 30px; color: var(--ink); box-shadow: 0 20px 90px #17223b33; }
.confirm-dialog::backdrop { background: #17223b66; }
.dialog-kicker { color: var(--danger); font-size: 11px; letter-spacing: 2px; }
.confirm-dialog h2 { margin: 10px 0 12px; }
.confirm-dialog p { color: var(--muted); font-size: 13px; }
.confirm-dialog .delete-label { margin-top: 16px; padding: 12px; border-radius: 8px; background: #f5f7fa; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.confirm-dialog .button-row { justify-content: flex-end; margin-top: 24px; }
@media (min-width: 1800px) { .workspace { margin-right: auto; } }
@media (max-width: 1200px) {
  .sidebar { width: 204px; padding-left: 16px; padding-right: 16px; }
  .workspace { margin-left: 204px; padding: 32px 26px 24px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 20px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .account-card { flex-direction: column; align-items: flex-start; }
  .account-actions { justify-content: flex-start; }
  .login-layout { gap: 48px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 18px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; font-size: 16px; }
  .brand-mark.small { width: 33px; height: 33px; font-size: 22px; border-radius: 10px; }
  .brand-subtitle { font-size: 9px; letter-spacing: 1px; }
  .nav-caption { display: none; }
  .navigation { flex-direction: row; gap: 4px; margin-top: 20px; overflow-x: auto; padding: 0 0 12px; }
  .nav-item { flex: 1 0 auto; justify-content: center; padding: 10px 12px; font-size: 12px; }
  .nav-item > span { display: none; }
  .sidebar-footer { position: absolute; right: 20px; top: 18px; border: 0; padding: 0; font-size: 0; margin: 0; }
  .sidebar-footer .status-dot, .sidebar-footer p { display: none; }
  .sidebar-footer button { margin: 0; min-height: 34px; font-size: 11px; }
  .workspace { margin-left: 0; padding: 26px 20px 20px; }
  h1 { font-size: 25px; }
  .page-header { align-items: flex-start; margin-bottom: 22px; }
  .page-header .button { font-size: 11px; padding: 8px 12px; min-height: 36px; margin-top: 22px; flex-shrink: 0; }
  .page-header .muted { font-size: 12px; }
  .risk-notice { flex-direction: column; gap: 4px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
  .stat-card { padding: 18px; border-radius: 13px; }
  .stat-card strong { font-size: 29px; }
  .stat-card > span { font-size: 10px; }
  .panel { padding: 20px; border-radius: 14px; margin-bottom: 18px; }
  .panel-heading { align-items: flex-start; }
  h2 { font-size: 17px; }
  .panel-heading .badge { margin-top: 4px; }
  .qr-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .qr-display { margin: 0 auto; }
  .job-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-layout { display: flex; flex-direction: column; gap: 24px; padding: 36px 20px; justify-content: center; }
  .login-intro { padding: 0; width: 100%; max-width: 440px; }
  .login-intro .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 28px; }
  .login-intro .eyebrow { margin-top: 20px; font-size: 9px; }
  .login-intro h1 { font-size: 30px; }
  .intro-copy { font-size: 13px; margin-top: 14px; }
  .intro-footer { display: none; }
  .login-card { width: 100%; max-width: 440px; padding: 26px; border-radius: 18px; }
  .toast-region { right: 16px; bottom: 16px; }
}
@media (max-width: 420px) {
  .workspace { padding-left: 14px; padding-right: 14px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .nav-item { padding: 10px; font-size: 11px; }
  .panel { padding: 16px; }
  .panel-heading { gap: 10px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { gap: 2px; }
  .tab { padding: 9px 11px; font-size: 12px; }
  .recommended { margin-left: 4px; }
  .account-actions { gap: 6px; }
  .account-actions .button { padding: 7px 10px; }
  .settings-list > div { grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr); gap: 12px; font-size: 12px; }
  .workspace-footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
