:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #66716a;
  --subtle: #8b958e;
  --paper: #f5f3ec;
  --surface: rgba(255,255,252,.86);
  --surface-solid: #fffefa;
  --line: #dedfd7;
  --line-soft: #ebece5;
  --green: #1f6b4d;
  --green-deep: #164c39;
  --green-soft: #dcebe2;
  --amber: #b47729;
  --amber-soft: #f5ead7;
  --blue: #426b7a;
  --blue-soft: #e0ebee;
  --rose: #a95450;
  --rose-soft: #f4e2df;
  --shadow: 0 20px 60px rgba(36, 50, 42, .08);
  --radius: 20px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf1eb;
  --muted: #a7b0a9;
  --subtle: #7e8a82;
  --paper: #111813;
  --surface: rgba(24,34,28,.9);
  --surface-solid: #18221c;
  --line: #344239;
  --line-soft: #29352e;
  --green: #76bb92;
  --green-deep: #9dd0b1;
  --green-soft: #233e2e;
  --amber: #e1b367;
  --amber-soft: #433723;
  --blue: #8bb7c6;
  --blue-soft: #263c43;
  --rose: #dd8e87;
  --rose-soft: #472c2b;
  --shadow: 0 24px 70px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-glow { position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.page-glow-a { right: -220px; top: -220px; background: radial-gradient(circle, rgba(177,206,185,.38), transparent 70%); }
.page-glow-b { left: -290px; top: 460px; background: radial-gradient(circle, rgba(228,201,153,.2), transparent 70%); }
.app-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.auth-card { width: min(430px, 100%); overflow: hidden; padding: 34px 36px 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 28px 90px rgba(32,53,41,.14); backdrop-filter: blur(14px); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-brand strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 18px; letter-spacing: .1em; }
.auth-brand small { display: block; margin-top: 3px; color: var(--subtle); font-size: 8px; letter-spacing: .16em; }
.auth-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 185px; color: var(--muted); font-size: 12px; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-kicker { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.auth-panel h1, .config-panel h1 { margin: 8px 0 9px; font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 550; line-height: 1.25; }
.auth-panel > p, .config-panel > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -7px 0 19px; padding: 4px; border-radius: 10px; background: var(--line-soft); }
.auth-mode-switch button { height: 34px; color: var(--muted); border: 0; border-radius: 7px; background: transparent; font-size: 11px; font-weight: 700; transition: .18s ease; }
.auth-mode-switch button.active { color: var(--green-deep); background: var(--surface-solid); box-shadow: 0 2px 9px rgba(31,52,40,.08); }
[data-theme="dark"] .auth-mode-switch button.active { color: var(--green); }
.config-panel code { padding: 2px 5px; color: var(--green); border-radius: 4px; background: var(--green-soft); font-family: Consolas, monospace; }
.config-steps { display: grid; gap: 9px; }
.config-steps span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-solid); font-size: 11px; }
.config-steps b { display: grid; place-items: center; width: 20px; height: 20px; color: var(--green); border-radius: 50%; background: var(--green-soft); font-size: 9px; }
.auth-field { display: block; margin-bottom: 14px; }
.auth-field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 650; }
.auth-field input { width: 100%; height: 45px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line); outline: none; border-radius: 10px; background: var(--surface-solid); font-size: 13px; }
.auth-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 13%, transparent); }
.password-requirements { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: -4px 0 13px; }
.password-requirements span { display: inline-flex; align-items: center; gap: 5px; color: var(--subtle); font-size: 9px; }
.password-requirements span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.password-requirements span.valid { color: var(--green); }
.password-requirements span.valid::before { background: var(--green); }
.auth-submit { width: 100%; margin-top: 5px; }
.magic-link-button { width: 100%; margin-top: 11px; padding: 7px; color: var(--green); border: 0; background: transparent; font-size: 11px; font-weight: 650; }
.magic-link-button:hover { text-decoration: underline; }
.auth-message { margin: 2px 0 12px; padding: 9px 11px; color: var(--rose); border-radius: 8px; background: var(--rose-soft); font-size: 10px; line-height: 1.5; }
.auth-message.success { color: var(--green); background: var(--green-soft); }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 25px; padding-top: 18px; color: var(--subtle); border-top: 1px solid var(--line-soft); font-size: 9px; }
.auth-security svg { width: 14px; color: var(--green); }

.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--green); border-radius: 12px 12px 12px 4px; color: var(--green); }
.brand-mark svg { width: 23px; height: 23px; }
.brand strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 19px; letter-spacing: .1em; }
.brand small { display: block; margin-top: 2px; color: var(--subtle); font-size: 8px; letter-spacing: .19em; }
.top-actions, .utility-actions, .modal-actions { display: flex; align-items: center; gap: 10px; }
.cloud-status { display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 9px; }
.cloud-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 13%, transparent); }
.cloud-status strong { font-weight: 650; }
.cloud-status.syncing span { background: var(--amber); animation: pulse 1s ease-in-out infinite; }
.cloud-status.error span { background: var(--rose); }
@keyframes pulse { 50% { opacity: .35; } }
.account-menu { position: relative; }
.account-button { display: flex; align-items: center; gap: 7px; max-width: 180px; height: 40px; padding: 0 9px 0 5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.account-button > span { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; border-radius: 50%; background: var(--green-deep); font-size: 11px; }
[data-theme="dark"] .account-button > span { color: #15251b; background: var(--green); }
.account-button strong { overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { flex: 0 0 auto; width: 12px; transition: transform .18s ease; }
.account-button[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-button:hover, .account-button[aria-expanded="true"] { color: var(--green); border-color: var(--green); }
.account-dropdown { position: absolute; z-index: 15; right: 0; top: calc(100% + 10px); width: 258px; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); box-shadow: 0 18px 55px rgba(23,42,31,.18); animation: menuIn .16s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-5px); } }
.account-dropdown-head { padding: 10px 10px 9px; border-bottom: 1px solid var(--line-soft); }
.account-dropdown-head small, .account-dropdown-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown-head small { margin-bottom: 4px; color: var(--subtle); font-size: 8px; }
.account-dropdown-head strong { font-size: 10px; }
.account-dropdown > button { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; padding: 9px 8px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; text-align: left; }
.account-dropdown > button:hover { color: var(--green); background: var(--green-soft); }
.account-dropdown > button > svg { width: 17px; justify-self: center; }
.account-dropdown > button span strong, .account-dropdown > button span small { display: block; }
.account-dropdown > button span strong { font-size: 10px; }
.account-dropdown > button span small { margin-top: 3px; color: var(--subtle); font-size: 8px; }
.account-dropdown > .account-danger-action { color: var(--rose); }
.account-dropdown > .account-danger-action:hover { color: var(--rose); background: var(--rose-soft); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); transition: .2s ease; }
.icon-button:hover { color: var(--green); border-color: var(--green); transform: translateY(-1px); }
.button { min-height: 42px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-weight: 650; font-size: 14px; transition: .18s ease; }
.button svg { flex: 0 0 17px; width: 17px; height: 17px; }
.button-label-short { display: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green-deep); box-shadow: 0 7px 18px rgba(31,107,77,.18); }
[data-theme="dark"] .button-primary { color: #112018; background: #9dd0b1; }
.button-primary:hover { filter: brightness(1.08); box-shadow: 0 9px 22px rgba(31,107,77,.23); }
.button-quiet { color: var(--muted); background: var(--surface-solid); border-color: var(--line); }
.button-quiet:hover { color: var(--ink); border-color: var(--subtle); }
.button-danger { color: #fff; background: #a84b46; }

.hero { min-height: 310px; display: grid; grid-template-columns: 1.55fr .75fr; gap: 7vw; align-items: center; padding: 53px 4px 43px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .2em; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(36px, 4.25vw, 59px); font-weight: 500; line-height: 1.18; letter-spacing: -.035em; }
.hero h1 em { color: var(--green); font-style: italic; }
.hero p { max-width: 540px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.journey-card { position: relative; overflow: hidden; padding: 26px 27px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-solid), var(--surface)); box-shadow: var(--shadow); }
.journey-card::after { content: ""; position: absolute; right: -35px; top: -45px; width: 150px; height: 150px; border: 1px solid var(--green-soft); border-radius: 50%; opacity: .7; }
.journey-top { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 13px; }
.journey-top strong { color: var(--green); font-family: Georgia, serif; font-size: 28px; }
.progress-track { height: 5px; margin: 14px 0 22px; overflow: hidden; border-radius: 5px; background: var(--green-soft); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #73a17f); transition: width .6s ease; }
.journey-meta { display: grid; grid-template-columns: 1fr 1fr; }
.journey-meta div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.journey-meta strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.journey-meta span { display: block; margin-top: 4px; color: var(--subtle); font-size: 11px; }
.journey-foot { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--subtle); font-size: 10px; letter-spacing: .05em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { flex: 0 0 auto; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-total .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-progress .stat-icon { color: var(--amber); background: var(--amber-soft); }
.stat-interview .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-offer .stat-icon { color: var(--rose); background: var(--rose-soft); }
.stat-card span { display: block; margin-bottom: 1px; color: var(--muted); font-size: 11px; }
.stat-card strong { font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.stat-card small { margin-left: 5px; color: var(--subtle); font-size: 10px; }

.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.workspace-head { display: flex; align-items: center; justify-content: space-between; padding: 27px 28px 20px; }
.workspace-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 24px; font-weight: 550; }
.workspace-head p { margin: 6px 0 0; color: var(--subtle); font-size: 11px; }
.migration-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 28px 20px; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--green-soft) 52%, transparent); }
.migration-banner > div { display: flex; align-items: center; gap: 10px; }
.migration-banner svg { width: 20px; color: var(--green); }
.migration-banner strong, .migration-banner small { display: block; }
.migration-banner strong { margin-bottom: 3px; font-size: 11px; }
.migration-banner small { color: var(--muted); font-size: 9px; }
.migration-banner .button { min-height: 34px; flex: 0 0 auto; font-size: 10px; }
.utility-actions .button { min-height: 36px; padding: 0 12px; font-size: 12px; }
.toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 160px 160px; gap: 10px; padding: 0 28px 20px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > svg { position: absolute; left: 13px; width: 17px; color: var(--subtle); }
.search-box input { width: 100%; height: 42px; padding: 0 58px 0 40px; color: var(--ink); border: 1px solid var(--line); outline: none; border-radius: 10px; background: var(--surface-solid); }
.search-box input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select-wrap select:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 13%, transparent); }
.search-box kbd { position: absolute; right: 10px; padding: 3px 6px; color: var(--subtle); border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-family: inherit; font-size: 9px; }
.select-wrap select { width: 100%; height: 42px; padding: 0 31px 0 12px; color: var(--muted); border: 1px solid var(--line); outline: none; border-radius: 10px; background: var(--surface-solid); }
.table-wrap { border-top: 1px solid var(--line-soft); }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; color: var(--subtle); background: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-align: left; }
th:first-child, td:first-child { padding-left: 28px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding: 18px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 13px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--green-soft) 28%, transparent); }
.company-cell { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.expand-button { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: var(--subtle); border: 0; border-radius: 7px; background: transparent; transition: .18s ease; }
.expand-button:hover { color: var(--green); background: var(--green-soft); }
.expand-button svg { width: 15px; transition: transform .18s ease; }
.expand-button.expanded svg { transform: rotate(90deg); }
.company-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--green-deep); background: var(--green-soft); font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 700; }
.company-info strong { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.company-info span { display: block; max-width: 240px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-screening { color: #647067; background: #e8ebe7; }
.status-assessment { color: #506eaa; background: #e5ebf7; }
.status-assessment-pass { color: #6d58a7; background: #ebe6f7; }
.status-test { color: #a2681f; background: #f6e8ce; }
.status-interview-1 { color: #287b81; background: #dceff0; }
.status-interview-2 { color: #24715b; background: #dceee6; }
.status-interview-3 { color: #176342; background: #d8eadf; }
.status-interview-4 { color: #0f5235; background: #cfe5d8; box-shadow: inset 0 0 0 1px rgba(15,82,53,.08); }
.status-offer { color: #126336; background: #ccebd7; box-shadow: inset 0 0 0 1px rgba(18,99,54,.12); }
.status-rejected { color: #a55350; background: #f3e2df; }
[data-theme="dark"] .status-screening { color: #b9c1bb; background: #303a33; }
[data-theme="dark"] .status-assessment { color: #a9c0ed; background: #28364f; }
[data-theme="dark"] .status-assessment-pass { color: #c1adee; background: #382e4f; }
[data-theme="dark"] .status-test { color: #e4b46d; background: #463822; }
[data-theme="dark"] .status-interview-1 { color: #8bcdd0; background: #254246; }
[data-theme="dark"] .status-interview-2 { color: #8ac9ae; background: #264239; }
[data-theme="dark"] .status-interview-3 { color: #91d0aa; background: #214334; }
[data-theme="dark"] .status-interview-4 { color: #a2deb8; background: #1d4630; }
[data-theme="dark"] .status-offer { color: #b3e8c4; background: #1f4b30; }
[data-theme="dark"] .status-rejected { color: #dda09a; background: #472e2d; }
.muted-cell { color: var(--muted); white-space: nowrap; }
.site-link { display: inline-flex; align-items: center; gap: 5px; max-width: 145px; color: var(--green); font-weight: 600; text-decoration: none; }
.site-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-link svg { flex: 0 0 auto; width: 13px; }
.site-link:hover { text-decoration: underline; }
.no-link { color: var(--subtle); }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; opacity: .62; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }
.row-action { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; color: var(--muted); border: 0; border-radius: 8px; background: transparent; }
.row-action:hover { color: var(--green); background: var(--green-soft); }
.row-action.delete:hover { color: var(--rose); background: var(--rose-soft); }
.row-action svg { width: 15px; }
.position-details-row[hidden] { display: none !important; }
.position-details-row > td { padding: 0 24px 18px 66px; border-top: 0; background: color-mix(in srgb, var(--green-soft) 20%, transparent); }
.position-details-row:hover { background: transparent; }
.position-panel { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--surface-solid); }
.position-panel-title { padding: 10px 16px; color: var(--subtle); border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--paper) 65%, transparent); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.position-item { display: grid; grid-template-columns: 88px minmax(180px, 1fr) 205px; gap: 16px; align-items: center; min-height: 58px; padding: 8px 14px; }
.position-item + .position-item { border-top: 1px solid var(--line-soft); }
.position-item-title { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.preference-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 9px; border-radius: 7px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.preference-1 { color: #8b5a17; background: #f7e8c8; }
.preference-2 { color: #52656d; background: #e4ebed; }
.preference-3 { color: #795b44; background: #eee4dc; }
[data-theme="dark"] .preference-1 { color: #e6ba73; background: #473820; }
[data-theme="dark"] .preference-2 { color: #b4c9d0; background: #2d3d43; }
[data-theme="dark"] .preference-3 { color: #d1ae94; background: #44352c; }
.quick-status-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.quick-status-wrap > span { color: var(--subtle); font-size: 9px; white-space: nowrap; }
.quick-status { width: 114px; height: 34px; padding: 0 28px 0 10px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); outline: none; border-radius: 9px; font-size: 10px; font-weight: 700; transition: .15s ease; }
.quick-status:hover, .quick-status:focus { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent); }
.empty-state { padding: 58px 20px 64px; text-align: center; }
.empty-illustration { display: grid; place-items: center; width: 116px; height: 90px; margin: 0 auto 12px; color: var(--green); }
.empty-illustration svg { width: 112px; height: 86px; stroke-width: 1.35; }
.empty-state h3 { margin: 0 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 550; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
footer { display: flex; justify-content: space-between; padding: 24px 4px 38px; color: var(--subtle); font-size: 10px; }

dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; background: var(--surface-solid); box-shadow: 0 30px 100px rgba(18,31,23,.25); }
dialog::backdrop { background: rgba(18,27,22,.52); backdrop-filter: blur(5px); }
dialog[open] { animation: modalIn .18s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 27px 30px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-kicker { color: var(--green); font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.modal-head h2 { margin: 5px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 25px; font-weight: 550; }
.modal-close { margin-top: 1px; border: 0; background: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 24px 30px 10px; }
.field { position: relative; display: block; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.field b { color: var(--rose); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line); outline: none; border-radius: 9px; background: var(--surface-solid); font-size: 13px; transition: .15s; }
.field input, .field select { height: 42px; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field-hint, .char-count { display: block; margin-top: 5px; color: var(--subtle); font-size: 9px; }
.char-count { position: absolute; right: 3px; bottom: -14px; }
.field-error { display: none; margin-top: 5px; color: var(--rose); font-size: 9px; }
.field.invalid .field-error { display: block; }
.field.invalid input { border-color: var(--rose); }
.positions-field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.positions-field-head > span { color: var(--muted); font-size: 11px; font-weight: 650; }
.positions-field-head b { color: var(--rose); }
.add-position-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; color: var(--green); border: 1px solid var(--green-soft); border-radius: 8px; background: color-mix(in srgb, var(--green-soft) 55%, transparent); font-size: 10px; font-weight: 700; }
.add-position-button:hover { border-color: var(--green); }
.add-position-button:disabled { cursor: default; opacity: .55; }
.add-position-button svg { width: 13px; }
.position-editors { display: grid; gap: 8px; }
.position-editor { display: grid; grid-template-columns: 76px minmax(0, 1fr) 30px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-soft); border-radius: 11px; background: color-mix(in srgb, var(--paper) 58%, transparent); }
.position-editor-inputs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 8px; }
.position-editor-inputs input, .position-editor-inputs select { height: 39px; }
.remove-position-button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: var(--subtle); border: 0; border-radius: 8px; background: transparent; }
.remove-position-button:hover { color: var(--rose); background: var(--rose-soft); }
.remove-position-button svg { width: 14px; }
.position-field-error { display: none; position: absolute; left: 3px; bottom: -13px; color: var(--rose); font-size: 8px; }
.position-editor.invalid { margin-bottom: 8px; }
.position-editor.invalid .position-title-input { border-color: var(--rose); }
.position-editor.invalid .position-field-error { display: block; }
.positions-hint { display: block; margin-top: 7px; color: var(--subtle); font-size: 9px; }
.modal-actions { justify-content: flex-end; padding: 25px 30px 28px; }
.confirm-dialog { width: min(410px, calc(100% - 28px)); }
.confirm-content { padding: 34px 32px 30px; text-align: center; }
.confirm-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 17px; color: var(--rose); border-radius: 50%; background: var(--rose-soft); }
.confirm-content h2 { margin: 0 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.confirm-content p { margin: 0; color: var(--muted); font-size: 12px; }
.confirm-content .modal-actions { justify-content: center; padding: 25px 0 0; }
.account-delete-dialog { width: min(440px, calc(100% - 28px)); border: 2px solid color-mix(in srgb, var(--rose) 35%, var(--line)); background: var(--surface-solid); box-shadow: 0 32px 110px rgba(8,18,12,.45); }
.account-delete-dialog::backdrop { background: rgba(14,24,18,.38); backdrop-filter: blur(2px); }
.account-delete-dialog[open] { animation: accountDialogIn .16s ease-out; }
@keyframes accountDialogIn { from { transform: translateY(9px) scale(.98); } }
.account-delete-dialog .confirm-content { background: var(--surface-solid); }
.account-delete-warning { display: grid; gap: 6px; margin: 20px 0 17px; padding: 12px 14px; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); text-align: left; font-size: 10px; }
.account-delete-warning strong { color: var(--ink); }
.account-delete-warning span::before { content: "•"; margin-right: 7px; color: var(--rose); }
.account-delete-confirm { display: block; text-align: left; }
.account-delete-confirm > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.account-delete-confirm input { width: 100%; height: 40px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); outline: none; border-radius: 9px; background: var(--surface-solid); font-size: 12px; }
.account-delete-confirm input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 12%, transparent); }
.account-delete-error { margin-top: 11px; padding: 10px 11px; color: var(--rose); border: 1px solid color-mix(in srgb, var(--rose) 28%, var(--line)); border-radius: 9px; background: var(--rose-soft); font-size: 10px; line-height: 1.55; text-align: left; }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.toast-region { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: grid; gap: 9px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 230px; padding: 13px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: var(--surface-solid); box-shadow: var(--shadow); font-size: 12px; animation: toastIn .2s ease-out; }
.toast::before { content: "✓"; display: grid; place-items: center; width: 21px; height: 21px; color: var(--green); border-radius: 50%; background: var(--green-soft); font-weight: 800; }
.toast.error::before { content: "!"; color: var(--rose); background: var(--rose-soft); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.account-deletion-success { position: fixed; z-index: 120; top: 22px; left: 50%; display: flex; align-items: center; gap: 12px; width: min(410px, calc(100% - 28px)); padding: 15px 18px; color: #123f2a; border: 1px solid rgba(31,122,77,.28); border-radius: 13px; background: #f2fff7; box-shadow: 0 18px 55px rgba(16,69,42,.24); transform: translateX(-50%); animation: accountSuccessIn .24s ease-out; }
.account-deletion-success[hidden] { display: none; }
.account-deletion-success-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #fff; border-radius: 50%; background: #1f7a4d; font-size: 18px; font-weight: 800; }
.account-deletion-success div { display: grid; gap: 2px; }
.account-deletion-success strong { font-size: 13px; }
.account-deletion-success div > span { color: #47705b; font-size: 10px; }
@keyframes accountSuccessIn { from { opacity: 0; transform: translate(-50%, -12px); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .cloud-status strong, .account-button strong { display: none; }
  .account-button { padding-right: 5px; }
  .hero { grid-template-columns: 1.25fr .75fr; gap: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { grid-template-columns: 1fr 145px; }
  .toolbar .select-wrap:last-child { grid-column: 1 / -1; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
@media (max-width: 680px) {
  .app-shell { width: min(100% - 24px, 1240px); }
  .topbar { height: 74px; }
  .brand small, .top-actions .icon-button { display: none; }
  .cloud-status { display: none; }
  .account-button { width: 39px; padding: 0 4px; }
  .account-chevron { display: none; }
  .top-actions .button { min-height: 39px; padding: 0 13px; }
  .hero { grid-template-columns: 1fr; padding: 42px 2px 30px; }
  .hero p { margin-top: 15px; }
  .journey-card { padding: 22px; }
  .stats-grid { gap: 9px; }
  .stat-card { gap: 11px; padding: 15px 13px; }
  .stat-icon { width: 39px; height: 39px; border-radius: 11px; }
  .stat-card strong { font-size: 23px; }
  .workspace-head { align-items: flex-start; padding: 22px 18px 16px; }
  .migration-banner { align-items: flex-start; margin: 0 18px 17px; padding: 12px; }
  .migration-banner > div { align-items: flex-start; }
  .migration-banner small { max-width: 170px; line-height: 1.5; }
  .utility-actions .button { width: auto; min-width: 58px; padding: 0 9px; gap: 5px; font-size: 11px; }
  .utility-actions .button-label-full { display: none; }
  .utility-actions .button-label-short { display: inline; }
  .toolbar { grid-template-columns: 1fr 1fr; padding: 0 18px 17px; }
  .search-box { grid-column: 1 / -1; }
  .toolbar .select-wrap:last-child { grid-column: auto; }
  .search-box kbd { display: none; }
  .search-box input { padding-right: 12px; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tbody { padding: 0 14px 14px; }
  tbody tr { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; margin-top: 10px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface-solid); }
  td, th:first-child, td:first-child, th:last-child, td:last-child { padding: 0; border: 0; }
  td:nth-child(1) { grid-column: 1 / -1; }
  td:nth-child(2) { grid-column: 1; }
  td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  td:nth-child(5) { grid-column: 1; }
  td:nth-child(6) { position: absolute; right: 9px; top: 12px; }
  .company-info strong, .company-info span { max-width: calc(100vw - 150px); }
  .row-actions { opacity: 1; }
  .company-row .company-info strong, .company-row .company-info span { max-width: calc(100vw - 195px); }
  .position-details-row { display: block; margin: -1px 0 10px; padding: 0; border: 0; background: transparent; }
  .position-details-row > td { display: block; padding: 0; background: transparent; }
  .position-panel { border-radius: 12px; }
  .position-item { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 10px; padding: 11px 12px; }
  .position-item-title { font-size: 11px; }
  .quick-status-wrap { grid-column: 1 / -1; justify-content: space-between; padding-left: 82px; }
  .quick-status { width: 130px; }
  footer { display: block; text-align: center; line-height: 2; }
  footer span { display: block; }
  .form-grid { grid-template-columns: 1fr; padding: 22px 20px 8px; }
  .field-wide { grid-column: auto; }
  .position-editor { grid-template-columns: 66px minmax(0, 1fr) 27px; gap: 7px; padding: 9px 7px; }
  .position-editor-inputs { grid-template-columns: 1fr; }
  .position-editor.invalid { margin-bottom: 8px; }
  .modal-head { padding: 22px 20px 17px; }
  .modal-actions { padding: 23px 20px; }
}
@media (max-width: 420px) {
  .auth-card { padding: 29px 23px 25px; }
  .brand > span:last-child { display: none; }
  .brand strong { font-size: 17px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 14px 17px; }
  .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
