:root {
  color-scheme: light;
  --deep: #00625e;
  --primary: #40877b;
  --sage: #80ac97;
  --success: #2f7469;
  --success-surface: #eaf4f1;
  --canvas: #fffffc;
  --cream: #ffebc6;
  --amber: #ffd38c;
  --yellow: #ffbb52;
  --ink: #173d39;
  --muted: #5f716d;
  --text-action: #2f7469;
  --text-value: #35534d;
  --text-emphasis: #3b5751;
  --line: #dce8e3;
  --divider: #e8efec;
  --surface: #fff;
  --surface-subtle: #fbfdfc;
  --state-neutral-surface: #f0f3f2;
  --text-warning: #795f25;
  --soft: #f4f9f7;
  --selected-surface: #edf5f2;
  --selected-outline: #c9ddd5;
  --danger: #a74237;
  --white: #fff;
  --text-subtle: #5f716d;
  --control-border: #b9cbc5;
  --track: #d6e3df;
  --surface-raised: #fdfefd;
  --warning-surface: #fff6e4;
  --warning-border: #d89b30;
  --warning-ink: #6f561f;
  --overlay: rgba(0, 46, 43, .48);
  --shadow-floating: 0 6px 8px rgba(0, 55, 51, .14);
  --shadow-modal: 0 24px 56px rgba(0, 50, 47, .24);
  --on-dark: rgba(255,255,255,.82);
  --on-dark-hover: rgba(255,255,255,.06);
  --on-dark-active: rgba(255,255,255,.08);
  --on-dark-border: rgba(255,255,255,.25);
  --on-dark-action: rgba(255,255,255,.14);
  --on-dark-action-hover: rgba(255,255,255,.22);
  --success-indicator: #b6ddce;
  --success-wash: #eef7f3;
  --success-wash-strong: #e3f1eb;
  --primary-hover: #074f4c;
  --mark-coral: #b54433;
  --mark-amber: #965b00;
  --neutral-surface: #f1f0ed;
  --neutral-muted-surface: #f6f7f6;
  --brand-shadow-line: rgba(0,0,0,.03);
  --success-line: rgba(128,172,151,.5);
  --toast-shadow: 0 8px 24px rgba(0, 60, 56, .2);
  --type-display: 1.5625rem;
  --type-headline: 1.5rem;
  --type-title: 1.1875rem;
  --type-body: .8125rem;
  --type-label: .75rem;
  --weight-regular: 400;
  --weight-strong: 700;
  --weight-heading: 800;
  --leading-display: 1.2;
  --leading-headline: 1.25;
  --leading-title: 1.35;
  --leading-body: 1.75;
  --leading-label: 1.4;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-kerning: normal; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--deep); text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
.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; }
.app-header { height: 64px; background: var(--deep); color: white; }
.header-inner { max-width: 1600px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: stretch; }
.brand { display: flex; align-items: center; color: white; padding-right: 38px; white-space: nowrap; }
.brand-logo,
.auth-brand-logo {
  display: block;
  flex: none;
  background: currentColor;
  -webkit-mask: url("/static/assets/smoothjob-logo.png") center / contain no-repeat;
  mask: url("/static/assets/smoothjob-logo.png") center / contain no-repeat;
}
.brand-logo {
  width: 152px;
  height: 38px;
  color: var(--white);
}
.main-nav { display: flex; align-items: stretch; }
.main-nav a { position: relative; min-width: 112px; padding: 0 24px; display: grid; place-items: center; color: var(--on-dark); background: transparent; font-weight: var(--weight-strong); }
.main-nav a:hover { background: var(--on-dark-hover); color: var(--white); }
.main-nav a.active { color: var(--white); background: var(--on-dark-active); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sage); }
.header-account-actions { margin-left: auto; align-self: center; display: flex; align-items: center; }

.page-shell { max-width: 1600px; margin: 0 auto; padding: 20px 30px 36px; }
.app-view[hidden] { display: none; }

.overview-view { padding-top: 0; }
.overview-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.overview-heading h1 { margin-bottom: 5px; font-size: var(--type-headline); font-weight: var(--weight-heading); line-height: var(--leading-headline); letter-spacing: -.03em; }
.overview-heading p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-label); }
.overview-actions { display: flex; gap: 12px; }
.overview-progress-card, .overview-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.overview-progress-card { min-height: 225px; padding: 22px 24px 18px; }
.overview-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.overview-card-head h2 { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-title); letter-spacing: -.02em; }
.card-kicker { display: none; }
.card-count { min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; color: var(--deep); background: var(--soft); font-size: 12px; font-weight: 800; }
.card-count.warm { color: var(--text-warning); background: var(--cream); }
.activity-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px var(--success-wash); }
.pipeline-controls { display: flex; align-items: center; gap: 12px; }
.pipeline-hint { display: none; color: var(--muted); font-size: var(--type-label); }

.overview-pipeline { min-width: 720px; display: grid; grid-template-columns: repeat(7, minmax(82px, 1fr)); padding: 26px 8px 12px; }
.overview-stage { position: relative; min-width: 0; padding: 0 4px; border: 0; display: grid; justify-items: center; gap: 7px; color: var(--text-subtle); background: transparent; }
.overview-stage-line { position: absolute; z-index: 0; top: 18px; right: 50%; width: 100%; height: 2px; background: var(--track); }
.overview-stage:first-child .overview-stage-line { display: none; }
.overview-stage-dot { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--control-border); border-radius: 50%; color: var(--text-action); background: var(--surface); font-size: var(--type-label); font-weight: 800; transition: .15s ease; }
.overview-stage strong { margin-top: 2px; color: var(--text-value); font-size: var(--type-body); font-weight: var(--weight-strong); }
.overview-stage b { color: var(--ink); font-size: 19px; line-height: 1; }
.overview-stage.has-jobs .overview-stage-line { background: var(--success); }
.overview-stage.has-jobs .overview-stage-dot { color: var(--white); border-color: var(--success); background: var(--success); }
.overview-stage:hover .overview-stage-dot { border-color: var(--deep); box-shadow: 0 0 0 4px var(--success-wash-strong); }
.overview-stage:hover strong { color: var(--deep); }

.overview-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.overview-card { min-width: 0; min-height: 0; padding: 20px 22px; overflow: hidden; }
.overview-list { height: 208px; margin-top: 12px; display: grid; align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.overview-row { position: relative; width: 100%; height: 52px; min-height: 52px; padding: 6px 3px 8px; border: 0; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; color: inherit; background: transparent; text-align: left; }
.overview-row:last-child { border-bottom: 0; }
.overview-row:hover { border-radius: 7px; background: var(--soft); }
.overview-row-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--deep); background: var(--selected-surface); font-size: var(--type-label); font-weight: var(--weight-heading); }
.overview-row-copy { min-width: 0; display: grid; gap: 1px; }
.overview-row-copy strong, .overview-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-row-copy strong { color: var(--text-emphasis); font-size: var(--type-body); font-weight: var(--weight-strong); line-height: var(--leading-label); }
.overview-row-copy small { color: var(--muted); font-size: var(--type-body); line-height: var(--leading-label); }
.overview-row em { padding: 3px 7px; border-radius: 999px; color: var(--text-warning); background: var(--warning-surface); font-size: var(--type-label); font-style: normal; white-space: nowrap; }
.row-arrow { color: var(--text-action); font-size: 14px; }
.schedule-row { grid-template-columns: 66px minmax(0, 1fr) auto 18px; }
.schedule-row > time { display: grid; gap: 2px; color: var(--deep); }
.schedule-row > time strong { font-size: 12px; }
.schedule-row > time small { color: var(--muted); font-size: var(--type-label); }
.activity-row { grid-template-columns: 82px minmax(0, 1fr) 18px; padding-left: 14px; }
.activity-row::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; border: 2px solid var(--sage); border-radius: 50%; background: var(--surface); transform: translateY(-50%); }
.activity-row:first-child { border-radius: 7px; background: var(--success-wash); }
.activity-row:first-child::before { border-color: var(--deep); background: var(--deep); }
.activity-row > time { color: var(--muted); font-size: var(--type-label); }
.overview-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.overview-empty span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--soft); font-size: 12px; font-weight: 800; }
.overview-empty p { margin: 0; font-size: var(--type-body); line-height: 1.7; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.page-toolbar h1 { margin-bottom: 5px; font-size: var(--type-headline); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.page-toolbar p { margin-bottom: 0; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-label); }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.search-box { position: relative; width: 300px; height: 44px; display: flex; align-items: center; }
.search-box span { position: absolute; left: 13px; color: var(--muted); font-size: 21px; pointer-events: none; }
.search-box input { width: 100%; height: 44px; padding: 0 12px 0 38px; font-size: 13px; }
input, textarea, select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--ink); outline: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
textarea { resize: vertical; }
.toolbar-actions select { width: 160px; height: 44px; padding: 0 12px; flex: 0 0 160px; font-size: 13px; }
.status-filter-control { position: relative; width: 160px; flex: 0 0 160px; }
.status-filter-native { width: 100%; }
html:not(.status-filter-enhanced) .status-filter-trigger,
html:not(.status-filter-enhanced) .status-filter-clear,
html:not(.status-filter-enhanced) .status-filter-popover { display: none !important; }
.status-filter-trigger { width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; color: var(--ink); background: var(--surface); font-size: 13px; text-align: left; white-space: nowrap; transition: border-color .16s ease, background-color .16s ease; }
.status-filter-trigger.has-selection { padding-right: 76px; }
.toolbar-actions select:hover, .status-filter-trigger:hover { border-color: var(--primary); background-color: var(--surface-subtle); }
.status-filter-trigger span:first-child { overflow: hidden; text-overflow: ellipsis; }
.status-filter-trigger span:last-child { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--ink); font-size: 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.status-filter-clear { position: absolute; z-index: 1; top: 0; right: 28px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; color: var(--muted); background: transparent; font-size: 18px; line-height: 1; }
.status-filter-clear:hover { color: var(--deep); background: var(--soft); }
.status-filter-clear[hidden] { display: none; }
.status-filter-popover { position: fixed; z-index: 10; inset: auto; max-height: min(440px, calc(100vh - 24px)); margin: 0; padding: 12px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-floating); }
.status-filter-popover[hidden] { display: none; }
.status-filter-popover::backdrop { background: transparent; }
.filter-group-label { padding: 2px 4px 8px; color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.filter-options button { min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--text-value); background: var(--surface-subtle); font-size: var(--type-body); text-align: left; }
.filter-options button:hover { border-color: var(--line); background: var(--soft); }
.filter-options button[aria-pressed="true"] { border-color: var(--primary); color: var(--deep); background: var(--soft); font-weight: var(--weight-strong); }
.filter-subgroup { padding-top: 8px; }
.filter-subgroup:first-child { padding-top: 0; }
.filter-subgroup + .filter-subgroup { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--divider); }
.filter-subgroup-label { padding: 0 4px 6px; color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.single-filter-subgroup .filter-options { grid-template-columns: 1fr; }
.precise-filter-options { padding-top: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 10px 16px; border: 1px solid transparent; font-weight: 700; white-space: nowrap; }
.overview-actions .button, .toolbar-actions .button, .profile-toolbar-actions .button { width: 128px; height: 44px; min-height: 44px; padding: 0 14px; flex: 0 0 128px; font-size: 13px; }
.button.primary { color: white; background: var(--deep); border-color: var(--deep); }
.button.primary:hover { background: var(--primary-hover); }
.button.secondary { color: var(--deep); background: var(--surface); border-color: var(--control-border); }
.button.secondary:hover { border-color: var(--primary); background: var(--soft); }
.import-action { min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-action); background: transparent; font-size: var(--type-body); font-weight: var(--weight-strong); white-space: nowrap; }
.import-action span { font-size: var(--type-body); line-height: 1; }
.import-action:hover { color: var(--deep); background: var(--soft); }

.jobs-workspace { min-height: calc(100vh - 142px); display: grid; grid-template-columns: minmax(350px, 31%) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.jobs-pane { min-width: 0; border-right: 1px solid var(--line); background: var(--surface); }
.list-tabs { height: 58px; display: flex; align-items: end; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.list-tabs button { position: relative; height: 100%; padding: 0 2px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
.list-tabs button.active { color: var(--deep); }
.list-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--deep); }
.list-tabs span { margin-left: 5px; font-weight: var(--weight-regular); }
.job-list { max-height: calc(100vh - 202px); overflow-y: auto; scrollbar-width: thin; }
.job-list-loading { min-height: 220px; display: grid; place-items: center; color: var(--muted); font-size: var(--type-body); }
.job-list-more { padding: 14px 18px 18px; display: flex; justify-content: center; }
.job-list-more .button { width: 100%; min-height: 44px; }
.job-list-summary { margin: 0; padding: 14px 18px 18px; color: var(--muted); font-size: var(--type-label); text-align: center; }
.job-row { position: relative; border-bottom: 1px solid var(--divider); background: var(--surface); transition: background .16s ease; content-visibility: auto; contain-intrinsic-size: 86px; }
.job-row:hover { background: var(--surface-subtle); }
.job-row.active { background: var(--selected-surface); box-shadow: inset 0 0 0 1px var(--selected-outline); }
.job-row-main { width: 100%; min-height: 110px; padding: 18px 18px 16px; border: 0; background: transparent; color: inherit; text-align: left; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.company-mark { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; color: var(--white); font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--brand-shadow-line); }
.mark-0 { background: var(--deep); }
.mark-1 { background: var(--mark-coral); }
.mark-2 { background: var(--mark-amber); }
.mark-3 { background: var(--primary); }
.job-row-copy { min-width: 0; display: grid; gap: 7px; }
.job-row-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-row-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--type-title); font-weight: 700; line-height: 1.35; }
.status-tag { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 25px; padding: 3px 9px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 700; }
.status-tag.green { color: var(--deep); background: var(--success-wash-strong); }
.status-tag.blue { color: var(--success); background: var(--success-surface); }
.status-tag.neutral { color: var(--muted); background: var(--state-neutral-surface); }
.status-tag.muted { color: var(--muted); background: var(--neutral-surface); }
.job-row-meta, .job-row-sub { overflow: hidden; color: var(--muted); font-size: var(--type-body); line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.job-row-sub { color: var(--muted); }
.attention-note { position: absolute; right: 18px; bottom: 15px; display: flex; align-items: center; gap: 6px; color: var(--text-warning); font-size: var(--type-body); }
.attention-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.attention-note.urgent i { background: var(--yellow); }
.attention-note + * { margin-right: 90px; }
.empty-list { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-list h3 { margin-bottom: 7px; color: var(--ink); font-size: var(--type-title); line-height: 1.35; }
.empty-list p { font-size: 13px; line-height: 1.7; }

.job-detail { min-width: 0; padding: 24px 28px 30px; background: var(--surface); }
.mobile-detail-nav { display: none; }
.mobile-back-button { border: 0; color: var(--deep); background: transparent; font-weight: 700; }
.mobile-detail-label { color: var(--muted); font-size: var(--type-label); font-weight: 700; }
.job-detail.empty { min-height: 600px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.job-detail.empty h2 { margin-bottom: 8px; color: var(--ink); font-size: 19px; }
.job-detail.empty p { font-size: 13px; }
.empty-symbol { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: var(--deep); background: var(--soft); font-size: 28px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-heading { min-width: 0; flex: 1 1 auto; }
.title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.title-line h2 { margin-bottom: 0; font-size: var(--type-display); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.detail-heading > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.detail-heading > p:not(.stage-summary) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-heading .stage-summary { color: var(--ink); }
.stage-summary strong { color: var(--deep); }
.detail-header-actions { flex: 0 0 auto; display: flex; gap: 12px; }
.quiet-action, .text-link { border: 0; padding: 3px; color: var(--text-action); background: transparent; font-size: var(--type-label); font-weight: 700; }
.quiet-action { white-space: nowrap; }
.quiet-action:hover, .text-link:hover { color: var(--deep); text-decoration: underline; }
.danger-text { color: var(--danger); }

.stagnation-alert, .terminal-alert { margin-top: 8px; border: 1px solid var(--warning-border); border-radius: 8px; padding: 8px 11px; display: flex; align-items: center; gap: 9px; color: var(--warning-ink); background: var(--warning-surface); font-size: var(--type-body); line-height: 1.55; }
.stagnation-alert > span { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--yellow); font-weight: 900; }
.stagnation-alert p { margin: 0; }
.terminal-alert { color: var(--muted); border-color: var(--line); background: var(--neutral-muted-surface); }

.pipeline { min-width: 680px; display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); padding: 28px 4px 20px; overflow: hidden; }
.pipeline-step { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.pipeline-line { position: absolute; z-index: 0; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.pipeline-step:first-child .pipeline-line { display: none; }
.pipeline-dot { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--control-border); border-radius: 50%; color: var(--white); background: var(--surface); font-size: 13px; font-weight: 900; }
.pipeline-step.complete .pipeline-line, .pipeline-step.current .pipeline-line { background: var(--success); }
.pipeline-step.complete .pipeline-dot { border-color: var(--success); background: var(--success); }
.pipeline-step.current { color: var(--deep); }
.pipeline-step.current .pipeline-dot { border: 3px solid white; background: var(--deep); box-shadow: 0 0 0 2px var(--deep); }
.pipeline-step.current strong { font-weight: 800; }

.progress-editor { padding: 8px 10px; display: grid; grid-template-columns: 205px auto minmax(220px, 420px); align-items: center; justify-content: start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.progress-editor > label:first-child { display: grid; grid-template-columns: auto minmax(118px, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.progress-editor select { width: 100%; height: 38px; padding: 0 10px; }
.progress-actions { display: flex; align-items: center; gap: 7px; }
.progress-editor .button { width: auto; min-width: 96px; height: 38px; min-height: 38px; padding: 0 12px; font-size: 12px; }
.progress-editor .advance-status { min-width: 126px; }
.progress-note { position: relative; width: 100%; max-width: 420px; display: block; }
.progress-note textarea { display: block; width: 100%; height: 38px; min-height: 38px; padding: 8px 58px 8px 11px; overflow-y: hidden; resize: none; font-size: var(--type-body); line-height: var(--leading-label); }
.progress-note textarea.has-overflow { overflow-y: auto; }
.progress-note small { position: absolute; right: 10px; bottom: 5px; color: var(--muted); font-size: var(--type-label); }

.detail-section { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.section-heading { min-height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.section-heading h3 { margin: 0; font-size: var(--type-title); line-height: 1.35; }
.deadline-chip { padding: 3px 8px; border-radius: 999px; color: var(--text-warning); background: var(--cream); font-size: var(--type-label); }
.information-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(210px, .65fr); }
.copy-column, .source-column { min-width: 0; padding: 14px 16px; }
.copy-column + .copy-column, .source-column { border-left: 1px solid var(--line); }
.copy-column h4, .source-column h4 { margin-bottom: 9px; color: var(--ink); font-size: var(--type-label); font-weight: 700; line-height: 1.4; }
.copy-column > .job-copy { max-width: 75ch; overflow-wrap: anywhere; color: var(--text-value); font-size: var(--type-body); line-height: 1.75; text-wrap: pretty; }
.history-disclosure > summary { list-style: none; }
.history-disclosure > summary::-webkit-details-marker { display: none; }
.history-disclosure summary:focus-visible { border-radius: 6px; }
.empty-copy { color: var(--muted); font-size: var(--type-body); }
.source-column { display: flex; flex-direction: column; gap: 9px; }
.source-column > div { padding: 9px 10px; border: 1px solid var(--divider); border-radius: 7px; display: grid; gap: 4px; background: var(--surface-raised); }
.source-column span { color: var(--muted); font-size: var(--type-label); }
.source-column strong, .source-column a { overflow: hidden; color: var(--deep); text-overflow: ellipsis; white-space: nowrap; }
.source-column strong { font-size: var(--type-body); }
.source-column a { font-size: var(--type-label); font-weight: 700; }

.activity-history { padding-bottom: 10px; }
.activity-history .section-heading { border-bottom: 0; }
.timeline { position: relative; display: grid; padding: 0 12px 0 18px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 16px; bottom: 16px; width: 1px; background: var(--success-line); }
.timeline-item { position: relative; min-height: 39px; display: grid; grid-template-columns: 12px 92px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--divider); color: var(--muted); font-size: var(--type-body); line-height: 1.55; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item.latest { margin-bottom: 2px; border: 0; border-radius: 7px; background: var(--success-wash); }
.timeline-dot { position: relative; z-index: 1; width: 9px; height: 9px; border: 2px solid var(--sage); border-radius: 50%; background: var(--surface); }
.timeline-item.latest .timeline-dot { background: var(--deep); border-color: var(--deep); }
.timeline-item time { color: var(--muted); }
.timeline-item p { margin: 0; display: flex; align-items: baseline; gap: 9px; }
.timeline-item p strong { color: var(--text-value); font-size: var(--type-body); font-weight: 700; }
.timeline-item p span { color: var(--muted); font-size: var(--type-body); }
.history-disclosure { margin: 2px 18px 0; border-top: 1px solid var(--divider); }
.history-disclosure > summary { min-height: 44px; padding: 12px 4px; color: var(--text-action); cursor: pointer; font-size: var(--type-body); font-weight: var(--weight-strong); line-height: 1.5; }
.history-disclosure > summary span { color: var(--muted); font-weight: var(--weight-regular); }
.history-disclosure .timeline-older { margin: 0 -6px 0 -2px; padding-bottom: 4px; }
.history-disclosure .timeline-item:first-child { border-top: 0; }
.section-heading .text-link { font-size: var(--type-body); line-height: 1.5; }

.interview-context { margin: -6px 0 12px; padding: 8px 12px; border: 1px solid var(--selected-outline); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); background: var(--soft); font-size: var(--type-body); line-height: 1.5; }
.interview-context[hidden] { display: none; }
.interview-context strong { color: var(--deep); }
.interview-context button { padding: 3px 5px; border: 0; color: var(--text-action); background: transparent; font-size: var(--type-label); font-weight: 700; }
.interview-workspace { min-height: calc(100vh - 142px); display: grid; grid-template-columns: minmax(330px, 34%) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.interview-pane { min-width: 0; border-right: 1px solid var(--line); background: var(--surface); }
.interview-list-head { height: 58px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.interview-list-head strong { font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-title); }
.interview-list-head span { min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; color: var(--deep); background: var(--soft); font-size: var(--type-label); font-weight: 800; }
.interview-list { max-height: calc(100vh - 202px); overflow-y: auto; scrollbar-width: thin; }
.interview-row { position: relative; border-bottom: 1px solid var(--divider); content-visibility: auto; contain-intrinsic-size: 82px; }
.interview-row > button { width: 100%; min-height: 105px; padding: 17px 18px; border: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 14px; color: inherit; background: var(--surface); text-align: left; }
.interview-row > button:hover { background: var(--surface-subtle); }
.interview-row.active > button { background: var(--selected-surface); box-shadow: inset 0 0 0 1px var(--selected-outline); }
.interview-date { width: 48px; height: 54px; border: 1px solid var(--selected-outline); border-radius: 9px; display: grid; place-content: center; justify-items: center; color: var(--deep); background: var(--soft); }
.interview-date strong { font-size: 19px; line-height: 1; }
.interview-date small { margin-top: 4px; color: var(--muted); font-size: var(--type-label); }
.interview-date.pending strong { font-size: 12px; }
.interview-row-copy { min-width: 0; display: grid; gap: 6px; }
.interview-row-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.interview-row-copy strong { overflow: hidden; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-title); text-overflow: ellipsis; white-space: nowrap; }
.interview-row-copy b { overflow: hidden; color: var(--text-value); font-size: var(--type-body); font-weight: var(--weight-strong); line-height: var(--leading-label); text-overflow: ellipsis; white-space: nowrap; }
.interview-row-copy small { overflow: hidden; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-label); text-overflow: ellipsis; white-space: nowrap; }
.interview-state { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; font-size: var(--type-label); font-style: normal; font-weight: 700; }
.interview-state.upcoming { color: var(--deep); background: var(--success-wash-strong); }
.interview-state.unscheduled { color: var(--text-warning); background: var(--cream); }
.interview-state.past { color: var(--muted); background: var(--state-neutral-surface); }

.interview-detail { min-width: 0; padding: 24px 28px 30px; background: var(--surface); }
.interview-detail.empty { min-height: 580px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.interview-detail.empty h2 { margin-bottom: 8px; color: var(--ink); font-size: 19px; }
.interview-detail.empty p { font-size: 13px; }
.interview-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.interview-detail-head h2 { margin: 0; font-size: var(--type-display); font-weight: var(--weight-heading); line-height: var(--leading-display); letter-spacing: -.02em; }
.interview-detail-head p { margin: 8px 0 0; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-body); }
.interview-schedule-card { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(125px, 1fr)) auto; align-items: center; gap: 18px; background: var(--surface-subtle); }
.interview-schedule-card > div { min-width: 0; display: grid; gap: 5px; }
.interview-schedule-card > div + div { padding-left: 17px; border-left: 1px solid var(--line); }
.interview-schedule-card span { color: var(--muted); font-size: var(--type-label); }
.interview-schedule-card strong { overflow: hidden; color: var(--text-value); font-size: var(--type-body); line-height: var(--leading-label); text-overflow: ellipsis; white-space: nowrap; }
.interview-schedule-card .schedule-primary strong { color: var(--deep); font-size: 13px; }
.compact-button { padding: 8px 12px; font-size: var(--type-body); }
.interview-notes-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.interview-notes-grid article { min-height: 205px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.interview-notes-grid .review-note { grid-column: 1 / -1; min-height: 180px; }
.note-section-head { min-height: 48px; padding: 0 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.note-section-head span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--soft); font-size: var(--type-label); font-weight: 800; }
.note-section-head h3 { margin: 0; font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-title); }
.interview-note-copy { max-width: 75ch; padding: 14px 16px; color: var(--text-value); font-size: var(--type-body); line-height: 1.8; text-wrap: pretty; }
.interview-detail-footer { margin-top: 13px; display: flex; justify-content: flex-end; }

.profile-toolbar-actions { display: flex; align-items: center; gap: 14px; }
.profile-toolbar-actions > span { color: var(--muted); font-size: var(--type-label); }
.profile-toolbar-actions > span strong { color: var(--text-value); font-weight: var(--weight-strong); }
.profile-workbench { min-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 272px minmax(0, 1fr); overflow: hidden; background: var(--surface); }
.profile-rail { min-width: 0; border-right: 1px solid var(--line); background: var(--surface-subtle); }
.profile-identity { margin: 24px 22px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-identity h2 { margin: 0 0 7px; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-title); letter-spacing: -.02em; }
.profile-identity p { margin: 0; color: var(--text-action); font-size: var(--type-body); }
.profile-identity p i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--sage); }
.profile-rail-summary { margin: 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-rail-summary p { margin: 0 0 10px; display: grid; gap: 3px; }
.profile-rail-summary p:last-child { margin-bottom: 0; }
.profile-rail-summary span { color: var(--muted); font-size: var(--type-label); }
.profile-rail-summary strong { overflow: hidden; color: var(--text-emphasis); font-size: var(--type-body); font-weight: var(--weight-strong); text-overflow: ellipsis; white-space: nowrap; }
.profile-completeness-compact { margin: 16px 22px 18px; }
.profile-completeness-compact > div:first-child { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: var(--type-label); }
.profile-completeness-compact strong { color: var(--deep); font-size: var(--type-body); }
.completeness-bar { --progress-scale: 0; height: 6px; border-radius: 999px; overflow: hidden; background: var(--track); }
.completeness-bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--primary); transform: scaleX(var(--progress-scale)); transform-origin: left center; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
#profile-next-step { min-height: 36px; margin: 8px -8px 0; padding: 4px 8px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; text-align: left; font-size: var(--type-label); font-weight: var(--weight-strong); }
#profile-next-step:hover { color: var(--deep); background: var(--soft); }
.profile-section-nav { display: grid; gap: 3px; padding: 0 10px 18px; }
.profile-section-nav button { min-height: 47px; padding: 0 13px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 11px; color: var(--muted); background: transparent; text-align: left; }
.profile-section-nav button span { width: 21px; flex: 0 0 21px; color: var(--text-action); text-align: center; font-size: var(--type-title); }
.profile-section-nav button b { min-width: 0; overflow: hidden; flex: 1; font-size: var(--type-body); font-weight: var(--weight-strong); text-overflow: ellipsis; white-space: nowrap; }
.profile-section-nav button em { min-width: 24px; padding: 3px 6px; border-radius: 999px; color: var(--text-value); background: var(--state-neutral-surface); text-align: center; font-size: var(--type-label); font-style: normal; }
.profile-section-nav button:hover { color: var(--deep); background: var(--soft); }
.profile-section-nav button.active { color: var(--deep); background: var(--selected-surface); box-shadow: inset 0 0 0 1px var(--selected-outline); }

.profile-content { min-width: 0; padding: 28px 34px 34px; background: var(--surface); }
.profile-panel-loading { padding: 18px 0; color: var(--muted); font-size: var(--type-body); }
.profile-panel-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.profile-panel-head h2 { margin: 0 0 5px; color: var(--ink); font-size: var(--type-headline); font-weight: var(--weight-heading); line-height: var(--leading-headline); letter-spacing: -.025em; }
.profile-panel-head h2[tabindex="-1"]:focus { outline: 0; }
.profile-panel-head p { max-width: 68ch; margin: 0; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-body); text-wrap: pretty; }
.profile-panel-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.profile-back-button { min-height: 40px; margin: -8px 0 14px -8px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; font-size: var(--type-body); font-weight: var(--weight-strong); }
.profile-back-button:hover { color: var(--deep); background: var(--soft); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags span { padding: 5px 9px; border-radius: 6px; color: var(--deep); background: var(--success-wash-strong); font-size: var(--type-label); font-weight: var(--weight-strong); }
.profile-tags.muted-tags span { color: var(--text-value); background: var(--state-neutral-surface); }
.profile-tags em { color: var(--muted); font-size: var(--type-body); font-style: normal; }
.empty-value { color: var(--muted) !important; font-weight: var(--weight-regular) !important; }

.profile-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.profile-data-item { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--divider); display: grid; gap: 7px; }
.profile-data-item.full { grid-column: 1 / -1; }
.profile-data-item > span { color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.profile-data-item > strong, .profile-data-item > p { margin: 0; color: var(--text-value); font-size: var(--type-body); font-weight: var(--weight-strong); line-height: var(--leading-body); overflow-wrap: anywhere; }
.profile-data-item > p { max-width: 75ch; font-weight: var(--weight-regular); text-wrap: pretty; }
.profile-overview-layout { border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.profile-overview-section { min-width: 0; }
.profile-overview-section + .profile-overview-section { border-top: 1px solid var(--line); }
.profile-overview-section > header { min-height: 56px; padding: 8px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-subtle); }
.profile-overview-section > header h3 { margin: 0 0 2px; color: var(--text-emphasis); font-size: .9375rem; line-height: 1.4; }
.profile-overview-section > header p { margin: 0; color: var(--muted); font-size: var(--type-label); line-height: 1.45; }
.profile-overview-section > header > span { flex: 0 0 auto; color: var(--muted); font-size: var(--type-label); }
.profile-overview-experience {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--divider);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  color: inherit;
  background: var(--surface);
  text-align: left;
}
.profile-overview-experience,
.profile-overview-preparation > div > button {
  height: 64px;
  min-height: 64px;
  padding: 8px 12px;
}
.profile-overview-experience:last-child { border-bottom: 0; }
.profile-overview-experience:hover { background: var(--soft); }
.profile-overview-experience > span:nth-child(2), .profile-overview-preparation button > span { min-width: 0; display: grid; gap: 2px; }
.profile-overview-experience strong, .profile-overview-preparation strong { overflow: hidden; color: var(--text-emphasis); font-size: var(--type-body); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.profile-overview-experience small, .profile-overview-preparation small { overflow: hidden; color: var(--muted); font-size: var(--type-body); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.profile-overview-experience > b, .profile-overview-preparation button > b { color: var(--text-action); font-size: var(--type-title); font-weight: var(--weight-regular); }
.profile-overview-empty { min-height: 180px; padding: 24px; display: grid; place-content: center; justify-items: start; gap: 4px; color: var(--muted); font-size: var(--type-body); }
.profile-overview-empty strong { color: var(--text-emphasis); font-size: var(--type-title); }
.profile-overview-empty button { min-height: 36px; margin-top: 8px; padding: 0 8px; border: 1px solid var(--control-border); border-radius: 8px; color: var(--text-action); background: var(--surface); font-weight: var(--weight-strong); }
.profile-overview-preparation > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-overview-preparation > div > button { width: 100%; border: 0; border-right: 1px solid var(--divider); display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 8px; color: inherit; background: var(--surface); text-align: left; }
.profile-overview-preparation > div > button:last-child { border-right: 0; }
.profile-overview-preparation > div > button:hover { background: var(--soft); }
.profile-overview-portrait { padding: 0 16px 16px; }

.profile-record-list { border-top: 1px solid var(--line); }
.profile-record { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
.profile-record-main { min-width: 0; }
.profile-record-title { margin-bottom: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-record-title h3 { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-title); }
.profile-record-title a { font-size: var(--type-label); font-weight: var(--weight-strong); }
.profile-record-meta { margin: 0 0 10px; color: var(--muted); font-size: var(--type-body); line-height: 1.6; }
.profile-record-copy { max-width: 75ch; margin: 4px 0; color: var(--text-value); font-size: var(--type-body); line-height: 1.7; white-space: pre-wrap; text-wrap: pretty; }
.profile-record-copy strong { color: var(--text-emphasis); }
.profile-record .profile-tags { margin-top: 10px; }
.profile-record-actions { display: flex; align-items: flex-start; gap: 4px; }
.profile-record-actions button { min-width: 44px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; font-size: var(--type-label); font-weight: var(--weight-strong); }
.profile-record-actions button:hover { color: var(--deep); background: var(--soft); }
.profile-record-actions .danger-text { color: var(--danger); }
.profile-empty { min-height: 210px; padding: 38px 20px; display: grid; place-items: center; text-align: center; }
.profile-empty > div { max-width: 430px; }
.profile-empty-symbol { width: 48px; height: 48px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--deep); background: var(--soft); font-size: var(--type-title); }
.profile-empty h3 { margin: 0 0 6px; color: var(--text-emphasis); font-size: var(--type-title); }
.profile-empty p { margin: 0 0 16px; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-body); text-wrap: pretty; }

.profile-inline-form { max-width: 920px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.profile-form-grid label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.profile-form-grid label.full { grid-column: 1 / -1; }
.profile-form-grid input, .profile-form-grid textarea, .profile-form-grid select { width: 100%; }
.profile-form-grid textarea { min-height: 96px; resize: vertical; }
.profile-form-grid .checkbox-label { min-height: 44px; align-self: end; }
.profile-form-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.profile-form-actions .danger-text { margin-right: auto; border: 0; color: var(--danger); background: transparent; }
.profile-form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: var(--type-body); }

.record-type-picker {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.record-type-option {
  min-height: 142px;
  padding: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 5px 12px;
  color: inherit;
  background: var(--surface);
  text-align: left;
}
.record-type-option:nth-child(odd) { border-right: 1px solid var(--line); }
.record-type-option:nth-last-child(-n + 2) { border-bottom: 0; }
.record-type-option:hover { background: var(--soft); }
.record-type-option > span {
  grid-row: 1 / 4;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: var(--success-wash-strong);
  font-weight: var(--weight-strong);
}
.record-type-option > .record-type-icon {
  position: relative;
  color: var(--deep);
}
.record-type-option > .record-type-icon::before {
  width: 22px;
  height: 22px;
  background: currentColor;
  content: "";
  -webkit-mask: var(--record-type-icon) center / contain no-repeat;
  mask: var(--record-type-icon) center / contain no-repeat;
}
.record-type-icon-project { --record-type-icon: url("/static/assets/experience-project.png"); }
.record-type-icon-work { --record-type-icon: url("/static/assets/experience-work.png"); }
.record-type-icon-education { --record-type-icon: url("/static/assets/experience-education.png"); }
.record-type-icon-organization { --record-type-icon: url("/static/assets/experience-organization.png"); }
.record-type-option strong { color: var(--text-emphasis); font-size: var(--type-title); }
.record-type-option p { grid-column: 2 / -1; max-width: 52ch; margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.55; }
.record-type-option em { grid-column: 3; grid-row: 1; color: var(--text-action); font-size: var(--type-label); font-style: normal; font-weight: var(--weight-strong); }

.record-editor-form { max-width: none; }
.record-type-switcher {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.record-type-switcher > span { color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.record-type-switcher > div { display: flex; flex-wrap: wrap; gap: 7px; }
.record-type-switcher button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  color: var(--text-value);
  background: var(--surface);
  font-size: var(--type-body);
}
.record-type-switcher button:hover { border-color: var(--primary); background: var(--soft); }
.record-type-switcher button.active { border-color: var(--deep); color: var(--white); background: var(--deep); }
.record-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 30px;
}
.record-editor-main, .record-editor-aside { min-width: 0; }
.record-editor-main > header, .record-editor-aside > header { margin-bottom: 17px; }
.record-editor-main h3, .record-editor-aside h3 { margin: 0 0 4px; color: var(--text-emphasis); font-size: var(--type-title); }
.record-editor-main header p, .record-editor-aside header p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.55; }
.record-editor-aside { padding-left: 30px; border-left: 1px solid var(--line); }
.record-editor-aside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.record-editor-next { margin-top: 20px; padding: 15px 16px; border-radius: 8px; color: var(--text-value); background: var(--surface-subtle); }
.record-editor-next strong { color: var(--text-emphasis); font-size: var(--type-body); }
.record-editor-next p { margin: 5px 0 0; font-size: var(--type-body); line-height: 1.6; text-wrap: pretty; }
.record-legacy-hint { margin: 20px 0 0; color: var(--muted); font-size: var(--type-label); }
.profile-privacy-note { max-width: 70ch; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); }
.profile-privacy-note h3 { margin: 0 0 7px; color: var(--text-emphasis); font-size: var(--type-title); }
.profile-privacy-note p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: var(--leading-body); }
.resume-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.resume-row { min-height: 58px; padding: 9px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; content-visibility: auto; contain-intrinsic-size: 58px; }
.resume-row:last-child { border-bottom: 0; }
.resume-file-icon { width: 34px; height: 39px; border: 1px solid var(--control-border); border-radius: 6px; display: grid; place-items: center; color: var(--deep); background: var(--soft); font-size: var(--type-label); font-weight: 800; }
.resume-row-copy { min-width: 0; display: grid; gap: 4px; }
.resume-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.resume-row-title strong { overflow: hidden; color: var(--text-value); font-size: var(--type-body); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.resume-default-tag { padding: 3px 7px; border-radius: 999px; color: var(--deep); background: var(--success-wash-strong); font-size: var(--type-label); font-weight: 700; }
.resume-row-copy small { color: var(--muted); font-size: var(--type-body); line-height: 1.4; }
.resume-row time { color: var(--muted); font-size: var(--type-label); white-space: nowrap; }
.resume-actions { display: flex; align-items: center; gap: 9px; }
.resume-actions a, .resume-actions button { padding: 4px 5px; border: 0; color: var(--text-action); background: transparent; font-size: var(--type-label); font-weight: 700; white-space: nowrap; }
.resume-actions a:hover, .resume-actions button:hover { color: var(--deep); text-decoration: underline; }
.resume-actions .danger-text { color: var(--danger); }
.resume-empty { min-height: 84px; padding: 15px; display: flex; align-items: center; gap: 13px; color: var(--muted); background: var(--surface-subtle); }
.resume-empty .resume-file-icon { flex: 0 0 auto; }
.resume-empty strong { display: block; margin-bottom: 4px; color: var(--text-emphasis); font-size: var(--type-body); }
.resume-empty p { margin: 0; font-size: var(--type-body); line-height: 1.6; }
.resume-file-field input[type="file"] { padding: 8px; color: var(--muted); background: var(--surface-subtle); }
.resume-file-field small { color: var(--muted); font-size: var(--type-body); line-height: 1.6; }
.coming-chip, .local-chip { padding: 4px 8px; border-radius: 999px; color: var(--text-warning); background: var(--cream); font-size: var(--type-label); font-weight: 700; }
.local-chip { color: var(--deep); background: var(--soft); }

.profile-primary-nav {
  min-height: 49px;
  margin: 0;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  gap: 28px;
  overflow-x: auto;
  background: var(--surface);
  scrollbar-width: none;
}
.profile-primary-nav::-webkit-scrollbar { display: none; }
.profile-primary-nav button {
  position: relative;
  min-width: max-content;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: transparent;
  font-size: var(--type-body);
  font-weight: var(--weight-strong);
}
.profile-primary-nav button:hover { color: var(--deep); }
.profile-primary-nav button.active { color: var(--deep); }
.profile-primary-nav button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 6px 6px 0 0;
  background: var(--deep);
}
.profile-primary-nav em {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--text-value);
  background: var(--state-neutral-surface);
  font-size: var(--type-label);
  font-style: normal;
  text-align: center;
}
.profile-workbench.profile-workbench-flat {
  min-height: calc(100vh - 205px);
  margin-top: 16px;
  display: block;
  overflow: hidden;
  background: var(--surface);
}
.profile-workbench-flat .profile-content { min-height: calc(100vh - 207px); }
.profile-settings-section { padding: 4px 0 22px; }
.profile-settings-section + .profile-settings-section { padding-top: 22px; border-top: 1px solid var(--line); }
.profile-settings-head {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.profile-settings-head h3, .profile-local-section h3 {
  margin: 0 0 4px;
  color: var(--text-emphasis);
  font-size: var(--type-title);
  line-height: var(--leading-title);
}
.profile-settings-head p, .profile-local-section p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.7; }
.profile-settings-section > .profile-tags { padding-top: 8px; }
.profile-local-section { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }

.profile-assets-workspace {
  min-height: 570px;
  margin: -4px -34px -34px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(290px, 34%) minmax(0, 1fr);
}
.profile-assets-library {
  margin: -4px -34px -34px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}
.profile-asset-groups {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.profile-asset-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.profile-asset-group .profile-asset-detail { padding: 20px 22px 22px; }
.profile-asset-group .profile-asset-detail-head { padding-bottom: 16px; }
.profile-asset-group .profile-description-section { padding-top: 16px; }
.profile-asset-group .profile-asset-detail-head h3 { margin-top: 0; }
.profile-assets-list {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
}
.profile-assets-tools { padding: 16px; border-bottom: 1px solid var(--line); }
.profile-asset-search { position: relative; display: block; }
.profile-asset-search span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted);
  font-size: var(--type-title);
  transform: translateY(-52%);
  pointer-events: none;
}
.profile-asset-search input { width: 100%; height: 44px; padding-left: 38px; }
.profile-asset-filters { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.profile-asset-filters button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-value);
  background: var(--surface);
  font-size: var(--type-body);
}
.profile-asset-filters button:hover { border-color: var(--primary); background: var(--soft); }
.profile-asset-filters button.active { border-color: var(--deep); color: var(--white); background: var(--deep); }
.profile-asset-filters em { font-size: var(--type-label); font-style: normal; opacity: .78; }
.profile-assets-results { max-height: calc(100vh - 400px); min-height: 430px; overflow-y: auto; }
.profile-asset-row {
  width: 100%;
  min-height: 88px;
  padding: 14px 17px;
  border: 0;
  border-bottom: 1px solid var(--divider);
  display: grid;
  align-content: center;
  gap: 4px;
  color: inherit;
  background: var(--surface);
  text-align: left;
}
.profile-asset-row:hover { background: var(--soft); }
.profile-asset-row.active { background: var(--selected-surface); box-shadow: inset 0 0 0 1px var(--selected-outline); }
.profile-record-kind {
  width: max-content;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--deep);
  background: var(--success-wash-strong);
  font-size: var(--type-label);
  font-weight: var(--weight-strong);
}
.profile-asset-row strong {
  overflow: hidden;
  color: var(--text-emphasis);
  font-size: 1rem;
  font-weight: var(--weight-strong);
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-asset-row > span:not(.profile-record-kind):not(.profile-asset-row-tags) {
  overflow: hidden;
  color: var(--text-value);
  font-size: .875rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-asset-row-tags { margin-top: 2px; display: flex; gap: 5px; overflow: hidden; }
.profile-asset-row-tags em {
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--text-value);
  background: var(--state-neutral-surface);
  font-size: var(--type-label);
  font-style: normal;
  white-space: nowrap;
}
.profile-assets-empty { padding: 54px 22px; color: var(--muted); text-align: center; }
.profile-assets-empty strong { display: block; margin-bottom: 6px; color: var(--text-emphasis); font-size: var(--type-title); }
.profile-assets-empty p { margin: 0 0 16px; font-size: var(--type-body); line-height: 1.7; }
.profile-assets-detail { min-width: 0; padding: 26px 30px 32px; background: var(--surface); }
.profile-asset-detail-empty { min-height: 440px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.profile-asset-detail-empty > span {
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: var(--soft);
  font-size: var(--type-title);
}
.profile-asset-detail-empty h3 { margin: 0 0 6px; color: var(--text-emphasis); font-size: var(--type-title); }
.profile-asset-detail-empty p { margin: 0; font-size: var(--type-body); }
.profile-asset-detail-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.profile-asset-detail-head h3 {
  margin: 10px 0 5px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.profile-asset-detail-head p { margin: 0; color: var(--text-value); font-size: .875rem; line-height: 1.55; }
.profile-asset-block { padding: 20px 0; border-bottom: 1px solid var(--divider); }
.profile-asset-block-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-asset-block-head h4 { margin: 0; color: var(--text-emphasis); font-size: var(--type-body); }
.profile-asset-block-head span { color: var(--muted); font-size: var(--type-label); }
.profile-asset-block > p {
  max-width: 75ch;
  margin: 0;
  color: var(--text-value);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  white-space: pre-wrap;
  text-wrap: pretty;
}
.profile-asset-link { display: inline-flex; min-height: 40px; margin-top: 14px; align-items: center; font-size: var(--type-body); font-weight: var(--weight-strong); }
.profile-description-section { padding: 20px 0 4px; }
.current-scheme-bar { min-height: 44px; margin: -8px 0 14px; padding: 6px 8px 6px 12px; border: 1px solid var(--selected-outline); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--text-value); background: var(--selected-surface); font-size: var(--type-body); }
.current-scheme-bar label { display: flex; align-items: center; gap: 9px; }
.current-scheme-bar select { min-width: 220px; height: 32px; padding-block: 4px; }
.current-scheme-bar button { min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; font-weight: var(--weight-strong); }
.current-scheme-bar button:hover { background: var(--surface); }
.profile-description-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-description-head h4 { margin: 0 0 3px; color: var(--text-emphasis); font-size: .9375rem; }
.profile-description-head span { color: var(--muted); font-size: var(--type-label); }
.profile-description-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.profile-description-row { padding: 12px 13px; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, auto); align-items: center; gap: 16px; }
.profile-description-row:last-child { border-bottom: 0; }
.profile-description-copy { min-width: 0; display: grid; gap: 8px; }
.profile-description-copy > p { max-width: 90ch; margin: 0; color: var(--text-value); font-size: var(--type-body); line-height: 1.65; white-space: pre-wrap; text-wrap: pretty; }
.profile-description-meta { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.profile-description-meta:empty { display: none; }
.profile-description-meta em, .description-status { padding: 3px 7px; border-radius: 6px; color: var(--deep); background: var(--success-wash-strong); font-size: var(--type-label); font-style: normal; }
.profile-description-meta em.role { color: var(--text-value); background: var(--state-neutral-surface); }
.profile-description-meta em.education-description-badge { color: var(--text-value); background: var(--state-neutral-surface); }
.description-status { padding-left: 14px; position: relative; background: transparent; }
.description-status::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); transform: translateY(-50%); }
.description-status.draft::before { background: var(--yellow); }
.profile-description-operations { min-width: 190px; display: grid; justify-items: end; gap: 4px; }
.profile-description-usage { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: var(--type-label); white-space: nowrap; }
.profile-description-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.profile-description-actions button { min-height: 34px; padding: 0 7px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; font-size: var(--type-label); font-weight: var(--weight-strong); }
.profile-description-actions button:last-child { padding-right: 0; }
.profile-description-actions button:hover { background: var(--soft); }
.profile-description-actions button:disabled { color: var(--muted); cursor: default; opacity: .7; }
.profile-description-empty { min-height: 140px; padding: 24px; display: grid; place-content: center; justify-items: start; color: var(--muted); }
.profile-description-empty strong { color: var(--text-emphasis); font-size: var(--type-title); }
.profile-description-empty p { max-width: 60ch; margin: 5px 0 10px; font-size: var(--type-body); line-height: 1.65; }
.profile-description-empty button { min-height: 36px; padding: 0 9px; border: 1px solid var(--control-border); border-radius: 8px; color: var(--text-action); background: var(--surface); font-weight: var(--weight-strong); }
.profile-asset-facts { margin-top: 18px; border-top: 1px solid var(--line); }
.profile-asset-facts > summary { min-height: 44px; display: flex; align-items: center; color: var(--text-action); cursor: pointer; font-size: var(--type-body); font-weight: var(--weight-strong); list-style: none; }
.profile-asset-facts > summary::-webkit-details-marker { display: none; }
.profile-asset-facts > summary::after { content: "⌄"; margin-left: 7px; }
.profile-asset-facts[open] > summary::after { transform: rotate(180deg); }

.description-editor-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 24px; align-items: start; }
.description-editor-form { display: grid; gap: 14px; }
.description-editor-form > label { display: grid; gap: 7px; color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.description-editor-form textarea, .description-editor-form input, .description-editor-form select { width: 100%; }
.education-description-type small { color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-regular); line-height: 1.55; }
.description-preview > span b { color: var(--text-action); font-weight: var(--weight-strong); }
.description-status-field { margin: 0; padding: 0; border: 0; display: flex; align-items: center; gap: 18px; }
.description-status-field legend { margin-bottom: 7px; color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-strong); }
.description-status-field label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-value); font-size: var(--type-body); }
.description-status-field input { width: auto; }
.description-preview { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.description-preview > span { color: var(--muted); font-size: var(--type-label); }
.description-preview h3 { margin: 14px 0 3px; color: var(--ink); font-size: 1.05rem; }
.description-preview small { color: var(--muted); font-size: var(--type-label); }
.description-preview p { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-value); font-size: var(--type-body); line-height: 1.7; white-space: pre-wrap; text-wrap: pretty; }

.resume-scheme-workspace { min-height: 520px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; }
.resume-scheme-workspace.is-empty { min-height: 300px; display: block; }
.resume-scheme-workspace.is-empty .resume-scheme-list { display: none; }
.resume-scheme-workspace.is-empty .resume-scheme-empty { min-height: 300px; }
.resume-scheme-list { border-right: 1px solid var(--line); background: var(--surface-subtle); }
.resume-scheme-list > header { min-height: 48px; padding: 0 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--text-emphasis); font-size: var(--type-body); }
.resume-scheme-list > header span { color: var(--muted); font-size: var(--type-label); }
.resume-scheme-list > button { width: 100%; min-height: 72px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; color: inherit; background: transparent; text-align: left; }
.resume-scheme-list > button:hover { background: var(--soft); }
.resume-scheme-list > button.active { background: var(--selected-surface); box-shadow: inset 0 0 0 1px var(--selected-outline); }
.resume-scheme-list > button strong { overflow: hidden; color: var(--text-emphasis); font-size: var(--type-body); text-overflow: ellipsis; white-space: nowrap; }
.resume-scheme-list > button span { grid-column: 1 / -1; overflow: hidden; color: var(--muted); font-size: var(--type-label); text-overflow: ellipsis; white-space: nowrap; }
.resume-scheme-list > button em { grid-column: 2; grid-row: 1; color: var(--muted); font-size: var(--type-label); font-style: normal; }
.resume-scheme-list > p { padding: 20px 12px; color: var(--muted); font-size: var(--type-body); }
.resume-scheme-detail { min-width: 0; }
.resume-scheme-detail-head { min-height: 76px; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.resume-scheme-detail-head h3 { margin: 0 0 4px; color: var(--ink); font-size: var(--type-title); }
.resume-scheme-detail-head p { margin: 0; color: var(--muted); font-size: var(--type-body); }
.scheme-replace-notice { min-height: 42px; padding: 7px 12px; border-bottom: 1px solid var(--selected-outline); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-value); background: var(--selected-surface); font-size: var(--type-body); }
.scheme-replace-notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scheme-replace-notice button { min-height: 30px; border: 0; color: var(--text-action); background: transparent; font-weight: var(--weight-strong); }
.resume-composer { min-height: 442px; display: grid; grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr); }
.resume-description-picker { min-width: 0; border-right: 1px solid var(--line); background: var(--surface-subtle); }
.resume-composer-head { min-height: 48px; padding: 9px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.resume-composer-head h4 { margin: 0 0 2px; color: var(--text-emphasis); font-size: var(--type-body); }
.resume-composer-head span { color: var(--muted); font-size: var(--type-label); }
.resume-picker-list { max-height: 520px; overflow-y: auto; }
.resume-picker-group > header { min-height: 45px; padding: 8px 10px; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; background: var(--surface); }
.resume-picker-group > header span { padding: 3px 6px; border-radius: 6px; color: var(--deep); background: var(--success-wash-strong); font-size: var(--type-label); }
.resume-picker-group > header strong { overflow: hidden; color: var(--text-emphasis); font-size: var(--type-body); text-overflow: ellipsis; white-space: nowrap; }
.resume-picker-group > header em { color: var(--muted); font-size: var(--type-label); font-style: normal; }
.resume-picker-description { padding: 9px 10px 9px 18px; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.resume-picker-description p { margin: 0; color: var(--text-value); font-size: var(--type-body); line-height: 1.55; white-space: pre-wrap; }
.resume-picker-description button { min-height: 32px; padding: 0 7px; border: 1px solid var(--control-border); border-radius: 8px; color: var(--text-action); background: var(--surface); font-size: var(--type-label); font-weight: var(--weight-strong); }
.resume-picker-description button:disabled { border-color: transparent; color: var(--muted); background: transparent; cursor: default; }
.resume-picker-empty { padding: 28px 14px; color: var(--muted); font-size: var(--type-body); }
.resume-current-content { min-width: 0; }
.resume-current-list { padding: 0 12px 16px; }
.resume-current-item { padding: 13px 0; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.resume-current-source { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.resume-current-source span { padding: 3px 6px; border-radius: 6px; color: var(--deep); background: var(--success-wash-strong); font-size: var(--type-label); }
.resume-current-source strong { color: var(--text-emphasis); font-size: var(--type-body); }
.resume-current-item > p { margin: 0; color: var(--text-value); font-size: var(--type-body); line-height: 1.65; white-space: pre-wrap; }
.resume-current-actions { display: flex; align-items: flex-start; gap: 4px; }
.resume-current-actions button { min-width: 32px; min-height: 32px; padding: 0 6px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; font-size: var(--type-label); font-weight: var(--weight-strong); }
.resume-current-actions button:hover { background: var(--soft); }
.resume-current-actions button:disabled { color: var(--muted); cursor: default; opacity: .5; }
.resume-current-empty, .resume-scheme-empty { min-height: 260px; padding: 30px; display: grid; place-content: center; justify-items: start; color: var(--muted); }
.resume-current-empty strong, .resume-scheme-empty strong { color: var(--text-emphasis); font-size: var(--type-title); }
.resume-current-empty p, .resume-scheme-empty p { margin: 5px 0 12px; font-size: var(--type-body); line-height: 1.6; }
.resume-material-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-usage-list { border-top: 1px solid var(--line); }
.profile-usage-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-usage-head { margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.profile-usage-head h3 { margin: 0 0 4px; color: var(--text-emphasis); font-size: var(--type-title); }
.profile-usage-head p { margin: 0; color: var(--muted); font-size: var(--type-body); }
.profile-usage-head button { min-height: 36px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--text-action); background: transparent; font-weight: var(--weight-strong); }
.profile-usage-head button:hover { background: var(--soft); }
.profile-usage-items { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.profile-usage-items > div { padding: 10px 12px; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 100px minmax(140px, .45fr) minmax(0, 1fr); align-items: start; gap: 10px; }
.profile-usage-items > div:last-child { border-bottom: 0; }
.profile-usage-items span { color: var(--muted); font-size: var(--type-label); }
.profile-usage-items strong { color: var(--text-emphasis); font-size: var(--type-body); }
.profile-usage-items p { margin: 0; color: var(--text-value); font-size: var(--type-body); line-height: 1.55; white-space: pre-wrap; }

.muted { color: var(--muted); font-size: 13px; }
dialog { width: min(720px, calc(100vw - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-modal); }
dialog.wide-dialog { width: min(860px, calc(100vw - 28px)); }
dialog::backdrop { background: var(--overlay); }
dialog form { max-height: 88vh; overflow-y: auto; padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: var(--type-headline); font-weight: 800; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.icon-button { padding: 0 8px; border: 0; color: var(--muted); background: transparent; font-size: 27px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label, .stacked-label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.stacked-label + .stacked-label { margin-top: 12px; }
.stacked-label textarea { resize: vertical; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: var(--type-label); line-height: 1.55; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px !important; color: var(--ink) !important; }
.checkbox-label input { width: 17px; height: 17px; accent-color: var(--deep); }
.profile-intro, .import-intro { margin: -8px 0 18px; line-height: 1.65; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: var(--type-body); }
.import-actions { margin-top: 13px; display: flex; align-items: center; gap: 12px; }
.import-actions button:disabled, .dialog-actions button:disabled { opacity: .58; cursor: wait; }
.import-preview { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.preview-title { margin-bottom: 12px; color: var(--deep); font-size: 13px; font-weight: 800; }
.parse-warning { margin: 8px 0 14px; padding: 10px 12px; border: 1px solid var(--warning-border); border-radius: 8px; color: var(--warning-ink); background: var(--warning-surface); font-size: var(--type-body); line-height: 1.6; }
.import-item { margin-bottom: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.import-item legend { padding: 0 6px; color: var(--deep); font-size: 12px; font-weight: 800; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 25px; max-width: calc(100vw - 28px); transform: translate(-50%, 18px); padding: 10px 14px; border-radius: 9px; display: flex; align-items: center; gap: 14px; color: var(--white); background: var(--deep); opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: var(--toast-shadow); font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-message { min-width: 0; overflow-wrap: anywhere; }
.toast button { min-width: 44px; min-height: 44px; padding: 7px 10px; border: 0; border-radius: 6px; flex: 0 0 auto; color: var(--white); background: var(--on-dark-action); font-weight: var(--weight-strong); text-decoration: underline; text-underline-offset: 3px; }
.toast button:hover { background: var(--on-dark-action-hover); }
.toast button:disabled { cursor: wait; opacity: .75; }

:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

@media (max-width: 1120px) {
  .main-nav a { min-width: 86px; padding: 0 14px; }
  .page-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .jobs-workspace { grid-template-columns: 340px minmax(0, 1fr); }
  .information-grid { grid-template-columns: 1fr 1fr; }
  .source-column { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
  .overview-progress-card { overflow: hidden; }
  .overview-pipeline { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .overview-pipeline::-webkit-scrollbar { display: none; }
  .overview-stage { min-width: 82px; }
  .interview-workspace { grid-template-columns: 330px minmax(0, 1fr); }
  .interview-schedule-card { grid-template-columns: 1fr 1fr; }
  .interview-schedule-card > div + div { padding-left: 0; border-left: 0; }
  .interview-schedule-card .compact-button { justify-self: start; }
  .profile-workbench { grid-template-columns: 245px minmax(0, 1fr); }
  .profile-content { padding-inline: 26px; }
  .profile-assets-workspace { margin-inline: -26px; grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); }
  .profile-assets-library { margin-inline: -26px; }
  .profile-assets-detail { padding-inline: 24px; }
}

@media (max-width: 820px) {
  .app-header { height: auto; }
  .header-inner { padding: 0 16px; flex-wrap: wrap; }
  .brand { height: 56px; }
  .header-account-actions { min-height: 56px; }
  .main-nav { order: 3; width: 100%; height: 48px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 1 0 90px; }
  .page-shell { padding: 18px max(14px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .overview-heading { margin-bottom: 18px; align-items: flex-start; }
  .overview-actions { flex: 0 0 auto; }
  .overview-progress-card { padding: 18px 16px; }
  .overview-grid { grid-template-columns: 1fr; }
  .toolbar-actions { align-items: stretch; flex-wrap: wrap; }
  .search-box { width: 100%; flex: 1 1 100%; }
  .toolbar-actions select { width: auto; flex: 1 1 160px; }
  .status-filter-control { width: auto; flex: 1 1 160px; }
  .jobs-workspace { display: block; overflow: visible; border: 0; box-shadow: none; }
  .jobs-pane { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .job-list { max-height: none; }
  .jobs-workspace[data-mobile-pane="list"] .job-detail { display: none; }
  .jobs-workspace[data-mobile-pane="detail"] .jobs-pane { display: none; }
  #jobs-view.mobile-detail-active > .page-toolbar { display: none; }
  .job-detail { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 20px 16px; overflow-x: visible; }
  .jobs-workspace[data-mobile-pane="detail"] .job-detail { margin-top: 0; }
  .mobile-detail-nav { position: sticky; z-index: 4; top: 0; min-height: 56px; margin: -20px -16px 20px; padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); }
  .mobile-back-button { min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; font-size: 13px; }
  .mobile-back-button:hover, .mobile-back-button:active { background: var(--soft); }
  .pipeline { min-width: 0; grid-template-columns: repeat(7, minmax(82px, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .pipeline-step { min-width: 82px; }
  .progress-editor { grid-template-columns: 1fr auto; }
  .progress-editor select, .progress-editor .button, .progress-note textarea { height: 44px; min-height: 44px; }
  .progress-note { max-width: none; grid-column: 1 / -1; }
  .detail-header-actions .quiet-action { min-width: 44px; min-height: 44px; padding-inline: 10px; }
  .source-column a, .section-heading .text-link { min-height: 44px; display: inline-flex; align-items: center; }
  .source-column a { width: fit-content; margin-inline: -8px; padding-inline: 8px; }
  .section-heading .text-link { padding-block: 8px; text-align: left; }
  .interview-workspace { display: block; overflow: visible; border: 0; box-shadow: none; }
  .interview-pane { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .interview-list { max-height: none; }
  .interview-detail { margin-top: 14px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 10px; }
  .profile-workbench { display: block; overflow: visible; }
  .profile-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-identity { margin-bottom: 12px; padding-bottom: 12px; }
  .profile-rail-summary, .profile-completeness-compact { display: none; }
  .profile-section-nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 14px; scrollbar-width: none; }
  .profile-section-nav::-webkit-scrollbar { display: none; }
  .profile-section-nav button { min-width: max-content; min-height: 44px; padding-inline: 12px; flex: 0 0 auto; }
  .profile-section-nav button b { overflow: visible; }
  .profile-content { min-height: 520px; }
  .profile-primary-nav { padding-inline: 26px; }
  .profile-workbench.profile-workbench-flat { overflow: hidden; }
  .profile-assets-workspace { margin-bottom: -34px; display: block; }
  .profile-assets-library { margin-bottom: -34px; }
  .profile-assets-list { border-right: 0; }
  .profile-assets-results { max-height: 330px; min-height: 0; border-bottom: 1px solid var(--line); }
  .profile-assets-detail { min-height: 420px; }
  .profile-overview-layout { grid-template-columns: 1fr; }
  .profile-overview-section + .profile-overview-section { border-left: 0; border-top: 1px solid var(--line); }
  .record-editor-layout { grid-template-columns: 1fr; }
  .record-editor-aside { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .description-editor-layout { grid-template-columns: 1fr; }
  .resume-scheme-workspace { display: block; }
  .resume-scheme-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-scheme-list > button { min-height: 62px; }
  .resume-composer { grid-template-columns: 1fr; }
  .resume-description-picker { border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-picker-list { max-height: 360px; }
  .profile-usage-items > div { grid-template-columns: 90px minmax(130px, .4fr) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --type-body: .875rem; --type-label: .8125rem; }
  .brand-logo { width: 136px; height: 34px; }
  .brand { padding-right: 16px; }
  .main-nav a { min-width: 78px; padding-inline: 10px; font-size: 13px; }
  .overview-heading h1 { font-size: 22px; }
  .overview-heading { flex-direction: column; gap: 13px; }
  .overview-actions { width: 100%; }
  .overview-actions .button { width: auto; flex: 1; }
  .overview-card-head .text-link { display: none; }
  .pipeline-hint { display: inline; }
  .overview-progress-card { margin-inline: -1px; }
  .overview-card { padding: 18px 15px; }
  .overview-row { grid-template-columns: 32px minmax(0, 1fr) 16px; }
  .overview-row em { display: none; }
  .schedule-row { grid-template-columns: 62px minmax(0, 1fr) 16px; }
  .activity-row { grid-template-columns: 72px minmax(0, 1fr) 16px; }
  .page-toolbar h1 { font-size: 22px; }
  .toolbar-actions .button { width: auto; flex: 1; }
  .detail-header { flex-direction: column; }
  .detail-heading { width: 100%; }
  .progress-editor { grid-template-columns: 1fr; }
  .progress-actions { width: 100%; }
  .progress-actions .button { width: auto; min-width: 0; height: 44px; min-height: 44px; flex: 1; }
  .detail-header-actions { width: 100%; justify-content: flex-end; }
  .detail-header-actions .quiet-action { min-width: 56px; min-height: 44px; padding: 0 12px; }
  .information-grid, .form-grid { grid-template-columns: 1fr; }
  .copy-column + .copy-column, .source-column { border-left: 0; border-top: 1px solid var(--line); }
  .source-column { grid-column: auto; grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .timeline-item { grid-template-columns: 12px 72px minmax(0, 1fr); }
  .interview-detail-head { flex-direction: column; }
  .interview-schedule-card, .interview-notes-grid { grid-template-columns: 1fr; }
  .interview-notes-grid .review-note { grid-column: auto; }
  .profile-toolbar-actions > span { display: none; }
  .profile-toolbar-actions > .local-chip { display: inline-flex; }
  .profile-toolbar-actions { width: 100%; }
  .profile-toolbar-actions .button { width: 100%; }
  .profile-primary-nav { gap: 18px; padding-inline: 15px; }
  .profile-content { padding: 22px 15px 26px; }
  .profile-workbench.profile-workbench-flat { margin-top: 12px; }
  .profile-assets-workspace { margin: -4px -15px -26px; }
  .profile-assets-library { margin: -4px -15px -26px; }
  .profile-assets-tools { padding: 14px; }
  .profile-asset-groups { padding: 12px; gap: 12px; }
  .profile-asset-group .profile-asset-detail { padding: 18px 14px 20px; }
  .profile-assets-detail { padding: 22px 15px 26px; }
  .profile-asset-detail-head, .profile-settings-head, .profile-local-section { align-items: stretch; flex-direction: column; }
  .profile-asset-detail-head .profile-panel-actions { width: 100%; }
  .profile-asset-detail-head .profile-panel-actions .button { width: auto; flex: 1; }
  .profile-description-head, .resume-scheme-detail-head { align-items: stretch; flex-direction: column; }
  .profile-description-row { grid-template-columns: 1fr; }
  .profile-description-operations { min-width: 0; justify-items: stretch; }
  .profile-description-usage, .profile-description-actions { justify-content: flex-end; }
  .resume-scheme-detail-head .profile-panel-actions { width: 100%; }
  .resume-scheme-detail-head .profile-panel-actions .button { flex: 1; }
  .resume-current-item { grid-template-columns: 1fr; }
  .resume-current-actions { justify-content: flex-end; }
  .current-scheme-bar, .current-scheme-bar label, .profile-usage-head { align-items: stretch; flex-direction: column; }
  .current-scheme-bar select { width: 100%; min-width: 0; }
  .profile-usage-items > div { grid-template-columns: 1fr; gap: 4px; }
  .profile-panel-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .profile-panel-actions { width: 100%; }
  .profile-panel-actions .button { width: 100%; }
  .profile-data-grid, .profile-form-grid { grid-template-columns: 1fr; }
  .profile-data-item.full, .profile-form-grid label.full { grid-column: auto; }
  .record-type-picker { grid-template-columns: 1fr; }
  .record-type-option, .record-type-option:nth-child(odd), .record-type-option:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .record-type-option:last-child { border-bottom: 0; }
  .record-type-switcher { align-items: stretch; flex-direction: column; }
  .record-type-switcher > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-editor-aside-grid { grid-template-columns: 1fr; }
  .profile-overview-experience { grid-template-columns: 98px minmax(0, 1fr) 14px; padding-inline: 12px; }
  .profile-overview-preparation > div { grid-template-columns: 1fr; }
  .profile-overview-preparation > div > button { border-right: 0; border-bottom: 1px solid var(--divider); }
  .profile-overview-preparation > div > button:last-child { border-bottom: 0; }
  .profile-record { grid-template-columns: 1fr; gap: 10px; }
  .profile-record-actions { justify-content: flex-end; }
  .profile-form-actions { flex-wrap: wrap; }
  .profile-form-actions .button { flex: 1; }
  .resume-row { grid-template-columns: 34px minmax(0, 1fr); }
  .resume-row > time, .resume-actions { grid-column: 2; }
  .resume-actions { justify-content: flex-start; }
}

@media (max-width: 820px), (pointer: coarse) {
  .icon-button,
  .interview-context button,
  .interview-detail-footer .text-link,
  .profile-panel-head .text-link,
  .profile-panel-head .compact-button,
  .profile-back-button,
  .profile-asset-filters button,
  .current-scheme-bar button,
  .profile-description-actions button,
  .profile-description-empty button,
  .profile-overview-empty button,
  .resume-picker-description button,
  .resume-current-actions button,
  .scheme-replace-notice button,
  .profile-usage-head button,
  .profile-record-actions button,
  .resume-actions a,
  .resume-actions button,
  .status-filter-clear,
  .filter-options button,
  .toast button {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (pointer: coarse) and (max-width: 820px) {
  .detail-header-actions .quiet-action, .mobile-back-button { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.auth-locked > :not(.auth-gate) {
  visibility: hidden;
}

body.auth-locked {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  min-height: 100dvh;
  background: var(--canvas);
}

.auth-home {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--canvas);
}

.auth-brand-bar {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 1.75rem 3rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.auth-brand-logo {
  width: 176px;
  height: 44px;
  color: var(--deep);
}

.auth-brand-note {
  color: var(--muted);
  font-size: .8125rem;
}

.auth-home-main {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 1.5rem 3rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, .8fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.auth-hero {
  min-width: 0;
}

.auth-hero-eyebrow,
.auth-panel-eyebrow {
  display: block;
  color: var(--text-action);
  font-size: .75rem;
  font-weight: var(--weight-strong);
  letter-spacing: .12em;
  line-height: 1.4;
}

.auth-hero h1 {
  max-width: 44rem;
  margin: .75rem 0 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 3.25vw, 3.25rem);
  font-weight: var(--weight-heading);
  letter-spacing: -.045em;
  line-height: 1.2;
  text-wrap: balance;
}

.auth-hero-copy > p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--text-value);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.auth-value-list {
  margin: 1.5rem 0 0;
  padding: 1.125rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.auth-value-list li {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--text-value);
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}

.auth-value-list li span {
  color: var(--sage);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth-trust-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  color: var(--deep);
  font-weight: var(--weight-strong);
}

.auth-product-preview {
  margin-top: 1.75rem;
}

.auth-preview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.auth-preview-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 650;
}

.auth-preview-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .8125rem;
}

.auth-orbit-stage {
  position: relative;
  width: min(100%, 700px);
  height: 250px;
  margin-top: .75rem;
  overflow: hidden;
}

.auth-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.auth-orbit-path {
  fill: none;
  stroke: var(--selected-outline);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .025 .025;
  animation: auth-orbit-flow 14s linear infinite;
}

.auth-preview-card {
  position: absolute;
  z-index: 1;
  width: 184px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--selected-outline);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgb(0 72 69 / 9%);
  animation: auth-preview-float 7s ease-in-out infinite;
}

.auth-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.auth-preview-card figcaption {
  padding: .45rem .65rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 650;
}

.auth-preview-card-jobs {
  left: 1%;
  top: 5rem;
  animation-delay: -2s;
}

.auth-preview-card-overview {
  left: 50%;
  top: .25rem;
  width: 218px;
  transform: translateX(-50%);
  animation-name: auth-preview-float-center;
}

.auth-preview-card-profile {
  right: 1%;
  top: 5rem;
  animation-delay: -4s;
}

@keyframes auth-orbit-flow {
  to { stroke-dashoffset: -1; }
}

@keyframes auth-preview-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes auth-preview-float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.auth-panel {
  width: 100%;
  min-height: 0;
  padding: 1.25rem 2.5rem 1.75rem;
  border: 1px solid var(--selected-outline);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(0 72 69 / 7%);
}

.auth-primary-tabs {
  margin: 0 0 2rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-primary-tabs button {
  position: relative;
  min-height: 46px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .9375rem;
  font-weight: 650;
}

.auth-primary-tabs button::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: -1px;
  left: 28%;
  height: 2px;
  background: transparent;
}

.auth-primary-tabs button:hover {
  color: var(--deep);
}

.auth-primary-tabs button.active {
  color: var(--ink);
}

.auth-primary-tabs button.active::after {
  background: var(--deep);
}

.auth-primary-tabs button:focus-visible,
.auth-back:focus-visible,
.auth-label-row button:focus-visible,
.auth-alternative button:focus-visible,
.auth-account-note button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.auth-back {
  min-height: 44px;
  margin: -.25rem 0 1rem;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-action);
  background: transparent;
  font: inherit;
  font-size: .8125rem;
  font-weight: 650;
}

.auth-panel-heading h2 {
  margin: .45rem 0 0;
  color: var(--ink);
  font-size: 1.625rem;
  font-weight: var(--weight-heading);
  letter-spacing: -.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.auth-panel-heading p {
  margin: .625rem 0 1.5rem;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65;
}

.auth-panel form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: .5rem;
}

.auth-panel label {
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 650;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-label-row button,
.auth-account-note button {
  min-height: 24px;
  padding: 0;
  border: 0;
  color: var(--text-action);
  background: transparent;
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
}

.auth-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.auth-panel input::placeholder {
  color: #6f817e;
}

.auth-panel input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.auth-submit {
  min-height: 48px;
  margin-top: .125rem;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.auth-account-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

.auth-alternative {
  position: relative;
  margin-top: 1.25rem;
  display: grid;
  justify-items: stretch;
  gap: .75rem;
  text-align: center;
}

.auth-alternative::before {
  content: "";
  position: absolute;
  top: .55rem;
  right: 0;
  left: 0;
  border-top: 1px solid var(--line);
}

.auth-alternative > span {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 0 .75rem;
  color: var(--muted);
  background: var(--surface);
  font-size: .75rem;
}

.auth-alternative button {
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  color: var(--deep);
  background: var(--surface);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
}

.auth-alternative button:hover {
  border-color: var(--primary);
  background: var(--soft);
}

.auth-trust {
  margin-top: 1.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.55;
}

.auth-trust-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: .6875rem;
}

.auth-message {
  min-height: 52px;
  margin-top: 1rem;
  padding: .875rem 1rem;
  border: 1px solid var(--selected-outline);
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .75rem;
  color: var(--success);
  background: var(--surface-subtle);
  font-size: .8125rem;
  line-height: 1.55;
}

.auth-message[hidden] {
  display: none;
}

.auth-message-mark {
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: var(--weight-strong);
}

.auth-message button {
  min-height: 44px;
  padding: 0 .25rem;
  border: 0;
  color: var(--text-action);
  background: transparent;
  font-weight: 650;
  white-space: nowrap;
}

.auth-message[data-state="pending"] {
  color: var(--text-value);
}

.auth-message[data-state="pending"] .auth-message-mark {
  border-style: dashed;
}

.auth-message[data-state="error"] {
  border-color: rgb(167 66 55 / 32%);
  color: var(--danger);
  background: #fff9f8;
}

.auth-footer {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 1rem 3rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .auth-brand-bar {
    padding-inline: 2rem;
  }

  .auth-home-main {
    padding: 2rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .auth-panel {
    max-width: 42rem;
    min-height: 0;
    justify-self: center;
  }

  .auth-footer {
    padding-inline: 2rem;
  }
}

@media (min-width: 1081px) and (max-height: 800px) {
  .auth-hero h1 {
    font-size: 2.5rem;
    line-height: 1.25;
  }

  .auth-hero-copy > p {
    margin-top: .625rem;
    line-height: 1.55;
  }

  .auth-product-preview {
    margin-top: 1.25rem;
  }

  .auth-orbit-stage {
    height: 205px;
  }

  .auth-preview-card {
    width: 154px;
  }

  .auth-preview-card-overview {
    width: 176px;
  }

  .auth-preview-card-jobs,
  .auth-preview-card-profile {
    top: 3.75rem;
  }

  .auth-panel {
    padding: 1rem 2.25rem 1.5rem;
  }
}

@media (max-width: 680px) {
  .auth-brand-bar {
    padding: 1.25rem 1rem .75rem;
  }

  .auth-brand-note {
    display: none;
  }

  .auth-home-main {
    padding: .75rem 1rem 2rem;
    gap: 2.5rem;
  }

  .auth-panel {
    order: -1;
    padding: 1rem 1.25rem 1.25rem;
  }

  .auth-hero h1 {
    max-width: none;
    font-size: 2rem;
    line-height: 1.25;
  }

  .auth-hero h1 br {
    display: none;
  }

  .auth-hero-copy > p {
    font-size: .9375rem;
    line-height: 1.65;
  }

  .auth-value-list {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .auth-product-preview {
    margin-top: 1.5rem;
  }

  .auth-preview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .auth-orbit-stage {
    height: 150px;
    overflow: visible;
  }

  .auth-orbit-svg,
  .auth-preview-card-jobs,
  .auth-preview-card-profile {
    display: none;
  }

  .auth-preview-card-overview {
    position: relative;
    left: auto;
    top: auto;
    width: 148px;
    margin: 1rem auto 0;
    transform: none;
    animation-name: auth-preview-float;
  }

  .auth-panel-heading h2 {
    font-size: 1.5rem;
  }

  .auth-panel-heading p {
    margin-bottom: 1.25rem;
  }

  .auth-message {
    grid-template-columns: auto 1fr;
  }

  .auth-message button {
    grid-column: 2;
    justify-self: start;
  }

  .auth-footer {
    width: calc(100% - 2rem);
    padding-inline: 0;
  }
}

.cloud-sign-out {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: var(--type-body);
  font-weight: var(--weight-strong);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.cloud-sign-out:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--deep);
}

.cloud-sign-out:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.cloud-sign-out:disabled {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 820px) {
  .cloud-sign-out {
    min-height: 40px;
    padding-inline: 14px;
  }
}
