:root {
  --bg: #080c12;
  --surface: #0e141d;
  --surface-2: #121a25;
  --surface-3: #172130;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.12);
  --text: #eef3f8;
  --muted: #8290a3;
  --muted-2: #59677a;
  --accent: #78f0c5;
  --accent-2: #4ed0a4;
  --accent-soft: rgba(120,240,197,.10);
  --warning: #f0bd67;
  --danger: #ff7d88;
  --shadow: 0 22px 70px rgba(0,0,0,.25);
  --radius: 18px;
  --radius-sm: 12px;
}
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
* { box-sizing: border-box; }
dialog::backdrop { backdrop-filter: none !important; }
html { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; overflow-y: scroll; background: radial-gradient(circle at 72% -10%, rgba(68,138,126,.12), transparent 32%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 276px; padding: 22px 18px 20px; border-right: 1px solid var(--border); background: rgba(8,12,18,.92); backdrop-filter: blur(20px); display: flex; flex-direction: column; z-index: 30; transition: width .22s ease; overflow: hidden; }
.sidebar-header { position: relative; flex: 0 0 64px; min-height: 64px; margin: 20px 0 20px; }
.brand { position: absolute; top: 12px; left: 4px; display: flex; align-items: center; min-width: 0; }
.sidebar-toggle { position: absolute; top: 13px; right: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #05100c; font-size: 12px; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 0 0 5px rgba(120,240,197,.06); }
.brand strong { display: block; font-size: 14px; line-height: 1; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 0; }
.nav-item, .nav-subitem { min-height: 52px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 8px; padding: 0; border-radius: 0; color: #111820; font-size: 14px; font-weight: 400; transition: .18s ease; white-space: nowrap; }
.nav > .nav-item, .nav-dropdown > summary { width: calc(100% + 36px); margin-inline: -18px; padding-inline: 18px; border-top: 0; border-bottom: 1px solid #d9dee3; }
.nav > .nav-item:first-child { border-top: 1px solid #d9dee3; }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-icon { width: 48px; display: grid; place-items: center; font-size: 13px; font-weight: 400; }
.nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-dropdown { width: calc(100% + 36px); min-width: 0; margin-inline: -18px; }
.nav-dropdown > summary { width: 100%; margin-inline: 0; padding-inline: 18px; grid-template-columns: 48px minmax(0,1fr) 20px; cursor: pointer; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown-chevron { justify-self: center; margin-right: 8px; font-size: 10px; transition: transform .18s ease; }
.nav-dropdown[open] .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-submenu { display: grid; gap: 2px; padding: 3px 0 5px; }
.nav-dropdown[open] { padding-inline: 0; border-bottom: 1px solid #d9dee3; }
.nav-dropdown[open] .nav-submenu { padding: 3px 18px 5px; }
.nav-subitem { min-height: 39px; border: 0; color: #111820; font-size: 13px; }
.nav-subitem .nav-icon { font-size: 12px; }
.nav-subitem:hover, .nav-subitem.active { color: var(--accent-2); }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.sidebar-footer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.system-pill { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 11px; font-size: 11px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(120,240,197,.07); }
.system-pill.is-disconnected .status-dot { background: #9ba6b1; box-shadow: 0 0 0 4px rgba(155,166,177,.09); }
.profile-mini { display: flex; align-items: center; gap: 10px; padding: 4px 8px; min-width: 0; }
.profile-mini strong, .profile-mini small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.profile-mini strong { font-size: 12px; }.profile-mini small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-strong); font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; flex: 0 0 auto; }
.avatar.large { width: 48px; height: 48px; border-radius: 14px; font-size: 14px; }
.main { margin-right: 0; margin-left: 276px; min-height: 100vh; transition: margin-left .22s ease, margin-right .24s ease; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 34px; border-bottom: 1px solid var(--border); background: rgba(8,12,18,.75); backdrop-filter: blur(18px); }
.topbar-progress { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.topbar-progress.is-visible { opacity: 1; }
.topbar-progress span { display: block; width: 38%; height: 100%; background: var(--accent); transform: translateX(-110%); }
.topbar-progress.working span { animation: topbar-progress-running 1.15s ease-in-out infinite; }
.topbar-progress.success span { width: 100%; background: var(--accent); transform: none; }
.topbar-progress.error span { width: 100%; background: var(--danger); transform: none; }
@keyframes topbar-progress-running { from { transform: translateX(-110%); } to { transform: translateX(365%); } }
@media (prefers-reduced-motion: reduce) { .topbar-progress.working span { width: 100%; transform: none; animation: topbar-progress-pulse 1.2s ease-in-out infinite alternate; } @keyframes topbar-progress-pulse { from { opacity: .35; } to { opacity: 1; } } }
.topbar-title strong { display: block; margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.topbar-title { min-width: 0; }
.topbar-breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 23px; margin-top: 3px; line-height: 1.3; }
.topbar-breadcrumb a { color: var(--accent-2); font-size: 17px; line-height: 1.3; font-weight: 700; }
.topbar-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar-breadcrumb strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-separator { display: inline-grid; place-items: center; color: #111820; font-size: 0; line-height: 1; }
.breadcrumb-separator::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-size: 12px; font-weight: 900; }
.eyebrow { display: block; color: var(--muted-2); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.35; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.eyebrow.accent { color: var(--accent-2); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-process-status { position: relative; }
.global-process-status-trigger { position: relative; }
.global-process-status-trigger.is-working i { animation: global-process-spin .9s linear infinite; }
.global-process-status-trigger.is-error { color: var(--danger); }
.global-process-status-count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
.global-process-status-popover { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,.18); color: #111820; }
.global-process-status-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.global-process-status-head strong { font-size: 13px; }
.global-process-status-head span { color: var(--muted); font-size: 10px; }
.global-process-status-list { max-height: min(390px, 60vh); overflow-y: auto; }
.global-process-status-empty { padding: 22px 15px; color: var(--muted); font-size: 12px; text-align: center; }
.global-process-status-item { position: relative; display: flex; align-items: stretch; color: inherit; border-bottom: 1px solid var(--border); }
.global-process-status-item:last-child { border-bottom: 0; }
.global-process-status-link { display: grid; flex: 1; min-width: 0; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; padding: 13px 5px 13px 15px; color: inherit; }
.global-process-status-link > i { margin-top: 2px; color: var(--muted); text-align: center; }
.global-process-status-item.working .global-process-status-link > i:first-child { color: var(--accent-2); animation: global-process-spin .9s linear infinite; }
.global-process-status-item.success .global-process-status-link > i:first-child { color: var(--accent-2); }
.global-process-status-item.warning .global-process-status-link > i:first-child { color: var(--warning); }
.global-process-status-item.error .global-process-status-link > i:first-child { color: var(--danger); }
.global-process-status-copy { min-width: 0; }
.global-process-status-copy strong, .global-process-status-copy small { display: block; }
.global-process-status-copy strong { font-size: 12px; }
.global-process-status-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.global-process-status-copy small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted-2); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.global-process-status-copy .global-process-status-progress { color: var(--accent-2); font-weight: 650; }
.global-process-status-message { margin-top: 7px; }
.global-process-status-open, .global-process-status-dismiss { align-self: flex-start; width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; margin-top: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.global-process-status-open:last-child, .global-process-status-dismiss { margin-right: 9px; }
.global-process-status-open > i, .global-process-status-dismiss > i { font-size: 12px; line-height: 1; }
.global-process-status-open:hover, .global-process-status-dismiss:hover { background: #eef2f4; color: var(--text); }
.global-process-status-dismiss:disabled { cursor: wait; opacity: .45; }
@keyframes global-process-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .global-process-status-trigger.is-working i, .global-process-status-item.working .global-process-status-link > i:first-child { animation: global-process-pulse 1.2s ease-in-out infinite alternate; } @keyframes global-process-pulse { from { opacity: .35; } to { opacity: 1; } } }
.sync-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); cursor: pointer; transition: .18s ease; }
.icon-button:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.content { width: min(1980px, 100%); margin: 0 auto; padding: 34px; }
.hero-panel { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 24px; align-items: stretch; margin-bottom: 22px; padding: 34px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(115deg, rgba(17,26,37,.96), rgba(11,17,25,.96)); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-panel::after { content:""; position:absolute; width:380px; height:380px; border-radius:50%; right:18%; top:-280px; background:rgba(120,240,197,.06); filter:blur(5px); pointer-events:none; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin: 8px 0 10px; font-size: clamp(27px, 3.2vw, 44px); letter-spacing: -.045em; line-height: 1.05; }
h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.025em; }
h3 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.025em; }
.hero-panel > div:first-child > p, .page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.autopilot-card { align-self: stretch; padding: 19px; border: 1px solid var(--border); border-radius: 16px; background: rgba(5,10,15,.46); display: flex; flex-direction: column; justify-content: center; }
.autopilot-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; }
.autopilot-row span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.autopilot-row strong { font-size: 12px; color: var(--warning); }
.autopilot-card p { margin: 12px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.pulse { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }.pulse.amber { background: var(--warning); box-shadow: 0 0 0 5px rgba(240,189,103,.08); }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { background: var(--accent); color: #06110d; box-shadow: 0 10px 28px rgba(78,208,164,.12); }
.button.secondary { background: var(--surface-3); border-color: var(--border); color: var(--text); }
.button.ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.button.danger { background: var(--danger); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat-label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-card strong { display: block; margin: 13px 0 7px; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.stat-card small { color: var(--muted-2); font-size: 10px; }
.split-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(330px,.7fr); gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel.compact { border-radius: 14px; }
.panel-head { min-height: 71px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.text-link { color: var(--accent-2); font-size: 10px; font-weight: 700; }
.list-stack { padding: 7px; }
.activity-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto 18px; gap: 11px; align-items: center; min-height: 64px; padding: 7px 11px; border-radius: 12px; transition: .16s ease; }
.activity-row:hover { background: rgba(255,255,255,.026); }
.activity-main { min-width: 0; }.activity-main strong,.activity-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.activity-main strong { font-size: 12px; }.activity-main small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.company-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #1e2937, #151e29); border: 1px solid var(--border); font-style: normal; font-size: 12px; font-weight: 800; color: #b9c6d6; text-transform: uppercase; flex: 0 0 auto; }.company-badge.large { width: 42px; height: 42px; border-radius: 12px; }.company-badge.xl { width: 58px; height: 58px; border-radius: 16px; font-size: 18px; }
.status-chip { display: inline-flex; align-items: center; justify-content: center; max-width: 160px; min-height: 24px; padding: 0 8px; border-radius: 999px; font-style: normal; font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-chip.success { background: rgba(120,240,197,.08); color: var(--accent); border: 1px solid rgba(120,240,197,.12); }.status-chip.warning { background: rgba(240,189,103,.08); color: var(--warning); border: 1px solid rgba(240,189,103,.12); }.status-chip.neutral { color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--border); }
.row-arrow, .open-icon { color: var(--muted-2); font-size: 22px; line-height: 1; text-align: right; }
.open-icon { display: inline-grid; place-items: center; min-width: 28px; min-height: 32px; }
.open-icon:hover { color: var(--accent-2); }
.pipeline-panel { padding-bottom: 12px; }.pipeline { padding: 17px 20px; }.pipeline-step { display: flex; gap: 11px; align-items: center; opacity: .5; }.pipeline-step > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--border-strong); font-size: 10px; font-weight: 800; }.pipeline-step strong,.pipeline-step small { display: block; }.pipeline-step strong { font-size: 11px; }.pipeline-step small { color: var(--muted); font-size: 9px; margin-top: 3px; }.pipeline-step.done,.pipeline-step.active { opacity: 1; }.pipeline-step.done > span { background: var(--accent-soft); color: var(--accent); border-color: rgba(120,240,197,.14); }.pipeline-step.active > span { background: var(--surface-3); color: var(--text); }.pipeline-line { width: 1px; height: 18px; background: var(--border-strong); margin: 4px 0 4px 14px; }.pipeline-line.active { background: linear-gradient(var(--accent), var(--border-strong)); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 22px; }.page-heading h1 { font-size: 34px; margin-bottom: 8px; }
.toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px; margin-bottom: 16px; }
.search-box { flex: 1; max-width: 560px; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--border); border-radius: 11px; background: rgba(4,9,14,.35); color: var(--muted); }.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }.search-box input::placeholder { color: var(--muted-2); }
.filter-pills { display: flex; gap: 5px; }.filter-pill { min-height: 34px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }.filter-pill.active { border-color: var(--border); background: var(--surface-3); color: var(--text); }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.job-card { min-width: 0; min-height: 254px; display: flex; flex-direction: column; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: .18s ease; }.job-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 20px 55px rgba(0,0,0,.14); }.job-card-top,.job-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.source-badge { padding: 5px 7px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.company-line { margin: 0; color: var(--muted); font-size: 11px; }.job-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted-2); font-size: 9px; }.job-notes { flex: 1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.job-actions { margin-top: auto; }.job-actions .button { flex: 1; }
.record-count { padding-right: 7px; color: var(--muted); font-size: 10px; }.table-panel { overflow: hidden; }.responsive-table { min-width: 780px; }.table-row { display: grid; grid-template-columns: minmax(290px,1.5fr) minmax(100px,.55fr) minmax(120px,.6fr) 100px 20px; gap: 16px; align-items: center; min-height: 62px; padding: 0 18px; border-bottom: 1px solid var(--border); font-size: 10px; color: var(--muted); }.table-row:not(.table-head):hover { background: rgba(255,255,255,.022); }.table-row:last-child { border-bottom: 0; }.table-head { min-height: 42px; color: var(--muted-2); background: rgba(0,0,0,.08); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.primary-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }.primary-cell > span { min-width: 0; }.primary-cell strong,.primary-cell small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.primary-cell strong { color: var(--text); font-size: 11px; }.primary-cell small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.detail-heading { margin-bottom: 18px; }.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 10px; }.detail-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }.detail-title { display: flex; align-items: center; gap: 16px; min-width: 0; }.detail-title h1 { margin: 5px 0 4px; font-size: 30px; }.detail-title p { margin: 0; color: var(--muted); font-size: 12px; }.detail-actions { display: flex; align-items: center; gap: 10px; }.detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.6fr); gap: 16px; }.detail-main,.detail-side { display: grid; gap: 16px; align-content: start; }.letter-preview,.job-description { padding: 22px; color: #c4ceda; font-size: 11px; line-height: 1.82; }.job-description { max-height: 520px; overflow: auto; }.info-card { padding: 20px; }.info-card dl { margin: 18px 0 0; display: grid; gap: 0; }.info-card dl div { padding: 11px 0; border-top: 1px solid var(--border); }.info-card dt { color: var(--muted-2); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.info-card dd { margin: 5px 0 0; color: #c7d1dc; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }.pdf-card { display: flex; gap: 13px; padding: 18px; align-items: flex-start; }.pdf-icon { width: 39px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(255,125,136,.18); border-radius: 9px; color: var(--danger); background: rgba(255,125,136,.055); font-size: 9px; font-weight: 900; }.pdf-card strong { font-size: 11px; }.pdf-card p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.profile-card { padding: 19px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }.profile-card.selected { border-color: rgba(120,240,197,.22); box-shadow: inset 0 0 0 1px rgba(120,240,197,.04); }.profile-top,.profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.profile-card h3 { margin: 16px 0 13px; font-size: 17px; }.tag-cloud { min-height: 58px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }.tag-cloud span { padding: 5px 7px; border-radius: 7px; border: 1px solid var(--border); background: rgba(255,255,255,.025); color: var(--muted); font-size: 8px; }.asset-list { display: flex; gap: 6px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }.asset-list span { flex: 1; text-align: center; padding: 6px 3px; border-radius: 7px; color: var(--muted-2); background: rgba(255,255,255,.02); font-size: 8px; font-weight: 800; }.asset-list span.ok { color: var(--accent); background: var(--accent-soft); }.profile-footer small { color: var(--muted); font-size: 9px; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; font-size: 11px; }.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 8px; width: min(390px, calc(100vw - 44px)); }.toast { transform: translateY(10px); opacity: 0; padding: 13px 15px; border-radius: 12px; background: #18212d; border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: #dbe4ed; font-size: 11px; line-height: 1.45; transition: .2s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast.success { border-color: rgba(120,240,197,.2); }.toast.error { border-color: rgba(255,125,136,.25); }.mobile-nav,.mobile-only { display: none; }
@media (min-width: 821px) {
  body.sidebar-collapsed .sidebar { width: 84px; padding-inline: 18px; }
  body.sidebar-collapsed .main { margin-left: 84px; }
  body.sidebar-collapsed .brand { display: none; }
  body.sidebar-collapsed .sidebar-toggle { right: auto; left: 5px; }
  body.sidebar-collapsed .nav-text,
  body.sidebar-collapsed .nav-dropdown-chevron,
  body.sidebar-collapsed .system-pill > span:last-child,
  body.sidebar-collapsed .profile-mini > span:last-child { display: none; }
  body.sidebar-collapsed .nav-item,
  body.sidebar-collapsed .nav-subitem,
  body.sidebar-collapsed .nav-dropdown > summary { grid-template-columns: 48px 0; gap: 0; }
  body.sidebar-collapsed .nav-dropdown > summary { grid-template-columns: 48px 0 0; }
  body.sidebar-collapsed .sidebar-footer { align-items: center; }
  body.sidebar-collapsed .sidebar-footer-actions { flex-direction: column; }
  body.sidebar-collapsed .system-pill,
  body.sidebar-collapsed .profile-mini { justify-content: center; padding-inline: 0; }
}
@media (max-width: 1120px) { .stat-grid { grid-template-columns: repeat(2,1fr); }.split-grid,.detail-grid { grid-template-columns: 1fr; }.job-grid,.profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.detail-side { grid-template-columns: repeat(2,minmax(0,1fr)); }.hero-panel { grid-template-columns: 1fr; }.autopilot-card { max-width: 550px; } }
@media (max-width: 820px) { body { padding-bottom: 69px; }.sidebar { transform: translateX(-103%); transition: transform .22s ease; width: min(290px, 86vw); box-shadow: 24px 0 80px rgba(0,0,0,.42); }.sidebar-open .sidebar { transform: translateX(0); }.main { margin-left: 0; }.topbar { height: 64px; padding: 0 16px; }.topbar-title .eyebrow,.sync-state { display: none; }.content { padding: 20px 16px 26px; }.mobile-only { display: grid; }.mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5,1fr); inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 40; background: rgba(9,13,19,.94); border-top: 1px solid var(--border); backdrop-filter: blur(18px); }.mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted-2); }.mobile-nav a span { font-size: 17px; }.mobile-nav a small { font-size: 8px; font-weight: 750; }.mobile-nav a.active { color: var(--accent); }.page-heading,.detail-title-row { align-items: stretch; flex-direction: column; }.page-heading .button { align-self: flex-start; }.toolbar { align-items: stretch; flex-direction: column; }.search-box { max-width: none; }.filter-pills { overflow-x: auto; }.job-grid,.profile-grid { grid-template-columns: 1fr; }.detail-side { grid-template-columns: 1fr; }.table-panel { overflow-x: auto; }.detail-actions { justify-content: space-between; }.detail-title { align-items: flex-start; }.hero-panel { padding: 24px 20px; }.hero-panel h1 { font-size: 30px; } }
@media (max-width: 520px) { .topbar-actions .icon-button { display: none; }.stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { padding: 15px; border-radius: 14px; }.stat-card strong { font-size: 25px; }.stat-card small { display: block; line-height: 1.35; }.activity-row { grid-template-columns: auto minmax(0,1fr) 18px; }.activity-row .status-chip { display: none; }.detail-title h1 { font-size: 25px; }.company-badge.xl { width: 48px; height: 48px; }.detail-actions { flex-wrap: wrap; }.detail-actions .button { flex: 1; }.panel-head { padding: 0 15px; }.letter-preview,.job-description { padding: 17px; }.job-card { min-height: 230px; } }
@media (max-width: 520px) { .topbar-actions .global-process-status-trigger { display: grid; } }

.jobs-heading-actions { display: flex; align-items: center; gap: 10px; }
.job-quick-review-workspace { display: grid; grid-template-columns: minmax(640px,1.3fr) minmax(360px,.7fr); gap: 18px; align-items: stretch; }
.job-quick-review-analysis-panel,
.job-quick-review-source-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; height: min(800px, calc(100vh - 190px)); overflow: hidden; }
.job-quick-review-content { min-height: 0; overflow: auto; }
.job-quick-review-content > .empty-state { padding: 56px 24px; }
.job-quick-review-actions { display: grid; gap: 10px; padding: 15px 22px 20px; border-top: 1px solid var(--border); }
.job-quick-review-decision-actions { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.job-quick-review-arrow { width: 38px; min-width: 38px; padding-inline: 0; justify-content: center; }
.job-quick-review-action-spacer { flex: 1 1 auto; }
.job-quick-review-source-panel { grid-template-rows: auto minmax(0,1fr); }
.job-quick-review-source-panel .panel-head h2 a { color: inherit; text-decoration: none; }
.job-quick-review-source-panel .panel-head h2 a[href]:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.job-quick-review-source-body { position: relative; min-height: 0; overflow: hidden; background: var(--surface-2); }
.job-quick-review-source-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.job-quick-review-source-body > .empty-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
@media (max-width: 1180px) { .job-quick-review-workspace { grid-template-columns: 1fr; }.job-quick-review-analysis-panel,.job-quick-review-source-panel { height: auto; min-height: 620px; } }
@media (max-width: 700px) { .job-quick-review-analysis-panel,.job-quick-review-source-panel { min-height: 520px; }.job-quick-review-action-spacer { display: none; } }
.jobs-last-run { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; color: var(--muted); font: 400 14px/1.4 var(--font-sans); }
.jobs-last-run strong { color: inherit; font-weight: 400; }
.jobs-last-run span + strong::before, .jobs-last-run strong + span::before { content: "·"; margin-right: 10px; color: #a6b0ae; font-weight: 400; }
.job-workflow-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid #cbd5d1; border-radius: 999px; font: 500 12px/1.2 var(--font-sans); font-style: normal; white-space: nowrap; }
.job-workflow-chip.workflow-new { color: #52605b; background: #f7f9f8; }
.job-workflow-chip.workflow-evaluated { color: #27657c; border-color: #b4d2df; background: #f0f8fb; }
.job-workflow-chip.workflow-prepared { color: #17664f; border-color: #9fcfbd; background: #edf8f4; }
.job-intake-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(850px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 1px solid #dfe6e3; border-radius: 16px; background: #fff; box-shadow: 0 22px 70px rgba(22,39,34,.18); }
.job-intake-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.job-intake-dialog-head { align-items: flex-start; padding: 24px 26px 20px; border-bottom: 1px solid #e7ecea; }
.job-intake-dialog-head > div { display: grid; }
.job-intake-dialog-head .section-label { color: #475665; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; }
.job-intake-dialog-head h2 { margin: 6px 0 0; color: #17202a; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.job-intake-dialog-head .icon-button { width: 38px; height: 38px; padding: 0; border-radius: 10px; line-height: 1; }
.job-intake-dialog-head .icon-button i { display: block; font-size: 14px; line-height: 1; }
.job-intake-dialog-body { display: grid; gap: 28px; min-height: 0; overflow-y: auto; padding: 26px; }
.job-intake-dialog-body section { display: grid; gap: 14px; }
.job-intake-section-head { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: start; gap: 10px; }
.job-intake-section-head > span:nth-child(2) { display: grid; gap: 3px; }
.job-intake-section-head strong { color: #53615e; font: 700 12px/1.3 'Plus Jakarta Sans', sans-serif; letter-spacing: .035em; }
.job-intake-section-head small { color: #98a3a0; font-size: 14px; }
.job-intake-section-head > b { align-self: start; color: var(--accent-2); font-size: 11px; font-weight: 700; }
.job-intake-step { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: #e9f6f1; color: var(--accent-2); font: 700 10px/1 'Plus Jakarta Sans', sans-serif; }
.job-discovery-basis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; max-height: 230px; overflow-y: auto; }
.job-discovery-basis > label, .job-provider-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border: 1px solid #d9e0dd; border-radius: 9px; background: #fff; color: #5e6966; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.job-discovery-basis > label:has(input:checked), .job-provider-options label:has(input:checked) { border-color: #9bcfbe; background: #f0f9f6; color: #246e5b; }
.job-provider-options label:has(input:disabled) { cursor: not-allowed; opacity: .55; background: #f5f7f6; color: #7f8b87; }
.job-discovery-basis input, .job-provider-options input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--accent-2); }
.job-discovery-basis strong { font-size: 14px; font-weight: 400; }
.job-provider-options strong { font-size: 14px; font-weight: 400; }
.job-intake-fields { grid-template-columns: minmax(0,1fr) 190px; gap: 18px 12px !important; }
.job-intake-fields label { display: grid; gap: 7px; color: #687571; font-size: 14px; font-weight: 700; }
.job-intake-fields label:last-child { grid-column: 1; }
.job-intake-fields input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d9e0dd; border-radius: 9px; background: #fff; color: var(--text); font: 400 14px/1.3 var(--font-sans); outline: 0; }
.job-intake-fields input:focus { border-color: #82bea9; box-shadow: 0 0 0 3px rgba(22,130,99,.08); }
.job-intake-input-unit { position: relative; display: block; }
.job-intake-input-unit input { padding-right: 42px; }
.job-intake-input-unit i { position: absolute; top: 50%; right: 12px; color: #9aa5a2; font-size: 14px; font-style: normal; transform: translateY(-50%); }
.job-provider-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.job-provider-options label em { margin-left: auto; padding: 3px 5px; border-radius: 4px; background: #eef2f0; color: #a1aaa7; font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .04em; }
.job-agent-health { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 14px; }
.job-agent-health i { color: #b7791f; }
.job-agent-health.is-available i { color: #168263; }
.job-agent-health.is-unavailable i { color: #c24145; }
.job-intake-progress { display: grid; gap: 4px; padding: 12px; border: 1px solid #b8ddcf; border-radius: 9px; background: #f2faf7; color: #17664f; font-size: 12px; }
.job-intake-dialog-actions { padding: 18px 26px; border-top: 1px solid #e7ecea; }
.job-intake-dialog-actions .job-intake-cancel { display: inline-flex; align-items: center; justify-content: center; margin-right: auto; padding: 0 14px; border-color: transparent; background: transparent; box-shadow: none; color: #8a9692; text-align: center; }
.job-intake-dialog-actions .button { min-height: 42px; }
.job-intake-dialog-actions .button.primary { display: inline-flex; align-items: center; gap: 9px; padding-inline: 18px; }
.job-detail-drawer { position: fixed; inset: 0 0 0 auto; z-index: 160; display: flex; flex-direction: column; width: min(620px, calc(100vw - 24px)); border-left: 1px solid var(--border); background: #fff; transform: translateX(105%); visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; }
.job-detail-drawer > * { min-width: 0; }
.job-detail-drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.job-drawer-meta { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.job-detail-drawer-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.job-detail-drawer-title-link { display: block; color: inherit; }
.job-detail-drawer-title-link[href]:hover h2 { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.job-detail-drawer-title-link[aria-disabled="true"] { pointer-events: none; }
.job-detail-drawer-contacts { display: grid; padding: 18px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.job-detail-drawer-contact { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 12px; min-width: 0; margin-top: 9px; padding: 8px 0 0; border-top: 1px solid #eef1f0; }
.job-detail-drawer-contact strong, .job-detail-drawer-contact small { display: block; }
.job-detail-drawer-contact strong { color: #52605b; font-size: 12px; font-weight: 650; }
.job-detail-drawer-contact small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.job-detail-drawer-contact-channels { display: flex; flex-wrap: wrap; gap: 5px 14px; min-width: 0; }
.job-detail-drawer-contact a { color: #293541; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.job-drawer-section { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.job-drawer-section-content { display: grid; margin-top: 9px; }
.job-drawer-section-content > div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f0; }
.job-drawer-section-content strong { color: #52605b; font-size: 12px; font-weight: 650; }
.job-drawer-section-content span, .job-drawer-section-content li { color: #293541; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.job-drawer-section-content ul { margin: 0; padding-left: 18px; }
.job-detail-drawer-body .canonical-job-section { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.job-detail-drawer-body .canonical-job-section-body { display: grid; margin-top: 9px; }
.job-detail-drawer-body .canonical-job-section-body > div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f0; }
.job-detail-drawer-body .canonical-job-section-body strong { color: #52605b; font-size: 12px; font-weight: 650; }
.job-detail-drawer-body .canonical-job-section-body span,
.job-detail-drawer-body .canonical-job-section-body li { color: #293541; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.job-detail-drawer-body .canonical-job-section-body ul { margin: 0; padding-left: 18px; }
.canonical-job-section-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.canonical-job-section-toggle::-webkit-details-marker { display: none; }
.canonical-job-section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border: 1px solid var(--border); border-radius: 999px; color: #51606f; font-size: 11px; }
.canonical-job-section-toggle::after { content: "›"; color: #51606f; transform: rotate(90deg); transition: transform .16s ease; }
.canonical-job-section[open] > .canonical-job-section-toggle::after { transform: rotate(-90deg); }
.canonical-job-section-toggle .canonical-job-section-count { margin-left: auto; }
.matching-personal-fit { min-width: 0; }
.matching-personal-fit > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0; cursor: pointer; list-style: none; }
.matching-personal-fit > summary::-webkit-details-marker { display: none; }
.matching-personal-fit > summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.matching-personal-fit-toggle { color: var(--accent-2) !important; font-size: 12px !important; font-weight: 650; }
.matching-personal-fit-toggle::after { content: "›"; display: inline-block; margin-left: 6px; transform: rotate(90deg); transition: transform .16s ease; }
.matching-personal-fit[open] .matching-personal-fit-toggle::after { transform: rotate(-90deg); }
.matching-personal-fit-factors { display: grid; margin-top: 10px; border-top: 1px solid var(--border); }
.matching-personal-fit-factor { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.matching-personal-fit-copy { display: grid; gap: 2px; min-width: 0; }
.matching-personal-fit-copy .matching-personal-fit-label { color: #52605b; font-size: 12px; font-weight: 650; }
.matching-personal-fit-copy small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.matching-personal-fit-assessment { align-self: start; font-size: 11px !important; font-weight: 650; text-transform: lowercase; }
.matching-personal-fit-assessment.is-positive { color: #16705d !important; }
.matching-personal-fit-assessment.is-negative { color: #a14848 !important; }
.matching-personal-fit-assessment.is-neutral { color: #69757f !important; }
.matching-personal-fit-empty { display: block; padding: 10px 0; color: var(--muted) !important; font-size: 12px !important; }
.job-eligibility { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 12px; min-width: 0; }
.job-eligibility-value { font-weight: 400 !important; }
.job-eligibility-value.is-fulfilled { color: #16705d; }
.job-eligibility-value.is-unclear { color: #9a6814; }
.job-eligibility-value.is-confirmed_not_met, .job-eligibility-value.is-not_met { color: #b23a42; }
.job-eligibility-score { color: #293541 !important; font-size: 13px !important; font-weight: 400; }
.job-eligibility-assessment { font-size: 11px !important; font-weight: 650; text-transform: lowercase; }
.job-eligibility-assessment.is-positive { color: #16705d !important; }
.job-eligibility-assessment.is-negative { color: #a14848 !important; }
.job-eligibility-assessment.is-neutral { color: #69757f !important; }
.job-overall-score { min-width: 0; }
.job-overall-score > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; }
.job-overall-score > summary::-webkit-details-marker { display: none; }
.job-overall-score-toggle { color: var(--muted) !important; font-size: 11px !important; font-weight: 400; }
.job-overall-score-toggle::after { content: "›"; display: inline-block; margin-left: 5px; transform: rotate(90deg); transition: transform .16s ease; }
.job-overall-score[open] .job-overall-score-toggle::after { transform: rotate(-90deg); }
.job-overall-score-details { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 12px; width: calc(100% + 157px); margin: 10px 0 0 -157px; padding: 9px 0 0; border-top: 1px solid var(--border); }
.job-overall-score-details > span:first-child { color: #52605b !important; font-size: 12px !important; font-weight: 650; }
.job-overall-score-detail-copy { display: grid; gap: 4px; color: #293541; }
.job-overall-score-detail-copy > span { color: #293541 !important; font-size: 13px !important; font-weight: 400; }
.job-overall-score-detail-copy > small { color: #65717c; font-size: 12px; font-weight: 400; line-height: 1.5; }
.job-drawer-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.job-drawer-controls > * { min-width: 0; }
.job-detail-drawer-body { overflow-wrap: anywhere; }
.job-drawer-controls .job-drawer-select summary { min-width: 0; font-size: 13px; font-weight: 400; }
.job-drawer-select .application-filter-options { width: 100%; min-width: 0; box-sizing: border-box; }
.job-drawer-select .application-filter-options label { font-size: 13px; font-weight: 400; }
.job-prefilter-reasons { position: relative; margin-top: 10px; }
.job-prefilter-reasons > summary { color: var(--accent-2); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.job-prefilter-reasons > summary::-webkit-details-marker { display: none; }
.job-prefilter-reasons > summary::after { content: "›"; display: inline-block; margin-left: 6px; transform: rotate(90deg); transition: transform .16s ease; }
.job-prefilter-reasons[open] > summary::after { transform: rotate(-90deg); }
.job-prefilter-reasons ul { margin: 9px 0 0; padding: 10px 10px 10px 28px; border: 1px solid var(--border); border-radius: 8px; color: #51606f; font-size: 12px; line-height: 1.55; }
.job-detail-drawer-body .canonical-job-section[data-canonical-section="requirements"] .canonical-job-section-body > .job-requirement-row { display: block; padding: 11px 0; }
.job-requirement-row > strong { display: block; margin-bottom: 7px; color: #293541 !important; font-size: 13px !important; line-height: 1.45; }
.job-requirement-evidence > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.job-requirement-evidence > summary::-webkit-details-marker { display: none; }
.job-requirement-status { font-size: 12px !important; font-weight: 650; }
.job-requirement-status.is-explicit, .job-requirement-status.is-contextual { color: #16705d !important; }
.job-requirement-status.is-partial { color: #9a6814 !important; }
.job-requirement-status.is-not_evidenced { color: #b23a42 !important; }
.job-requirement-toggle { color: var(--muted) !important; font-size: 11px !important; }
.job-requirement-toggle::after { content: "›"; display: inline-block; margin-left: 5px; transform: rotate(90deg); transition: transform .16s ease; }
.job-requirement-evidence[open] .job-requirement-toggle::after { transform: rotate(-90deg); }
.job-requirement-evidence > ul { margin-top: 9px !important; padding: 10px 10px 10px 27px !important; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; }
.job-requirement-evidence > ul li { color: #51606f !important; font-size: 12px !important; line-height: 1.55 !important; }
.job-detail-drawer-body .matching-personal-fit-factors { width: calc(100% + 157px); margin-left: -157px; box-sizing: border-box; }
.job-detail-drawer-body .matching-personal-fit-factor { grid-template-columns: 145px minmax(0,1fr) 48px auto; column-gap: 12px; }
.job-detail-drawer-body .matching-personal-fit-factor:last-child { border-bottom: 0; }
.job-detail-drawer-body .matching-personal-fit-copy { display: contents; }
.job-detail-drawer-body .matching-personal-fit-copy .matching-personal-fit-label { grid-column: 1; color: #52605b; font-size: 12px; font-weight: 650; line-height: 1.55; }
.job-detail-drawer-body .matching-personal-fit-copy > span:not(.matching-personal-fit-label) { grid-column: 2; color: #293541; font-size: 13px; font-weight: 400; line-height: 1.5; }
.job-detail-drawer-body .matching-personal-fit-impact { grid-column: 3; grid-row: 1; color: #293541; font-size: 13px; font-weight: 400; text-align: right; }
.job-detail-drawer-body .matching-personal-fit-assessment { grid-column: 4; grid-row: 1; }
.job-detail-drawer-body .matching-personal-fit-toggle,
.job-detail-drawer-body .job-requirement-toggle { color: var(--muted) !important; font-size: 11px !important; font-weight: 400; }
.job-detail-drawer-body .matching-personal-fit-toggle::after,
.job-detail-drawer-body .job-requirement-toggle::after { margin-left: 5px; }
.job-detail-drawer-actions { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 36px; align-content: start; gap: 7px; padding: 10px 16px; border-top: 1px solid var(--border); background: #fff; }
.job-detail-drawer-actions .button { min-width: 0; min-height: 36px; height: 36px; padding: 6px 9px; border-radius: 8px; font-size: 12px; line-height: 1.25; white-space: normal; }
.job-duplicate-candidate { display: inline-flex; margin-left: 7px; padding: 2px 7px; border: 1px solid #e3c77a; border-radius: 999px; background: #fff8df; color: #80620b; font: 650 10px/1.4 var(--font-sans); font-style: normal; vertical-align: middle; }
.job-dedupe-list { display: grid; gap: 8px; }
.job-dedupe-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #eef1f0; }
.job-dedupe-item-copy { display: grid; gap: 2px; }
.job-dedupe-item-copy small { color: var(--muted); }
.job-dedupe-item .button { min-height: 32px; padding: 5px 10px; }
@media (max-width: 820px) { .jobs-page-heading, .jobs-heading-actions { align-items: stretch; flex-direction: column; }.jobs-heading-actions .job-matching-usage { margin-left: 0; text-align: left; }.job-detail-drawer { width: min(620px, 100vw); }.job-intake-fields, .job-provider-options { grid-template-columns: 1fr; } }

/* --- Light, text-first UI revision --- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f6;
  --border: #e1e6eb;
  --border-strong: #cfd7df;
  --text: #17202a;
  --muted: #5f6c78;
  --muted-2: #7d8894;
  --accent: #16735d;
  --accent-2: #12614f;
  --accent-soft: #eaf5f1;
  --field-focus-accent: #16735d;
  --warning: #9a6717;
  --danger: #b83a46;
  --shadow: 0 16px 45px rgba(25, 38, 52, .08);
  --radius: 14px;
  --radius-sm: 10px;
}
html { background: var(--bg); color: var(--text); font-family: "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 16px; }
body { background: var(--bg); color: var(--text); line-height: 1.55; }
.sidebar { background: rgba(255,255,255,.97); border-right-color: var(--border); box-shadow: 5px 0 22px rgba(31,45,61,.035); }
.brand-mark { background: var(--accent); color: #fff; box-shadow: none; }
.nav-item, .nav-subitem { color: #111820; font-size: 15px; font-weight: 400; }
.nav-item:hover { background: #f3f6f8; color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-2); }
.nav-item.active .nav-text { color: #111820; }
.nav-subitem { font-size: 13px; }
.topbar-breadcrumb a, .topbar-breadcrumb strong { color: #111820; }
.avatar { background: #f2f5f7; color: var(--accent-2); border-color: var(--border); }
.topbar { background: rgba(255,255,255,.94); border-bottom-color: var(--border); }
.content { max-width: 1980px; }
.hero-panel, .panel, .stat-card, .job-card, .profile-card, .icon-button { background: var(--surface); border-color: var(--border); box-shadow: none; }
.hero-panel { background: linear-gradient(135deg, #ffffff, #f7faf9); }
.autopilot-card, .search-box { background: #fff; border-color: var(--border); }
.search-box input { color: var(--text); font-size: 15px; }
.search-box input::placeholder { color: #929ca6; font-size: 13px; }
.button { font-size: 14px; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-2); }
.button.secondary, .button.ghost { background: #fff; color: #334150; border-color: var(--border); }
.page-heading h1 { font-size: 32px; }
.page-heading p, .hero-panel p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.eyebrow { font-size: 15px; line-height: 1.35; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.panel-head h2 { font-size: 18px; }
.stat-label, .stat-card small { font-size: 12px; }
.stat-card strong { color: var(--text); }
.status-chip { font-family: inherit; font-size: 11px; }
.status-chip.success { background: #edf7f3; color: #176b55; border-color: #d7ebe3; }
.status-chip.warning { background: #fff7e8; color: #8b611e; border-color: #f0e1c2; }
.status-chip.neutral { background: #f2f4f6; color: #626d78; border-color: var(--border); }
.status-chip.status-draft { background: #f2f4f6; color: #596672; border-color: #dfe4e8; }
.status-chip.status-progress { background:#e7f4f8; color:#23687f; border-color:#bbdfe9; }
.status-chip.status-outdated { background:#fff5df; color:#8a601a; border-color:#ead9a9; }
.status-chip.status-custom { background: #f5f1e9; color: #705f45; border-color: #e5dccb; }
.status-chip.status-exported { background: #eff4f0; color: #607a69; border-color: #d5e1d8; }
.status-chip.status-scheduled { background:#fff6e8; color:#94661d; border-color:#ead9a9; }
.status-chip.status-send-failed { background:#d723238c; color:#fff; border-color:#d7232347; }
.status-chip.status-sent, .status-chip.status-transferred { background: #e8f5ef; color: #176b55; border-color: #bfe0d1; }
.status-chip.status-followup { background: #fff5df; color: #8a601a; border-color: #ead9a9; }
.status-chip.status-response { background: #e7f4f8; color: #23687f; border-color: #bbdfe9; }
.status-chip.status-interview { background: #f0ecfa; color: #604799; border-color: #d4c8ed; }
.status-chip.status-assessment { background: #eceffd; color: #3e5591; border-color: #cbd3f0; }
.status-chip.status-rejected { background: #faecee; color: #a0444e; border-color: #efd5d9; }
.status-chip.status-archived { background: #eef0f2; color: #46515b; border-color: #c9d0d6; }
.status-chip:is(.status-draft, .status-progress, .status-outdated, .status-custom, .status-exported, .status-scheduled, .status-send-failed, .status-sent, .status-transferred, .status-followup, .status-response, .status-interview, .status-assessment, .status-rejected, .status-archived) { border-width: 1px; border-style: solid; font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.scheduled-topbar-badge { cursor:pointer; }
.company-badge { background: #f0f4f6; color: #34515c; border-color: var(--border); font-family: 'Plus Jakarta Sans', sans-serif; }
.company-badge.status-draft,.company-badge.job-status-new { background:#f2f4f6; color:#596672; border-color:#dfe4e8; }
.company-badge.status-progress { background:#e7f4f8; color:#23687f; border-color:#bbdfe9; }
.company-badge.status-outdated { background:#fff5df; color:#8a601a; border-color:#ead9a9; }
.company-badge.status-custom { background:#f5f1e9; color:#705f45; border-color:#e5dccb; }
.company-badge.status-exported { background:#eff4f0; color:#607a69; border-color:#d5e1d8; }
.company-badge.status-scheduled { background:#fff6e8; color:#94661d; border-color:#ead9a9; }
.company-badge.status-send-failed { background:#d723238c; color:#fff; border-color:#d7232347; }
.company-badge.status-sent,.company-badge.status-transferred,.company-badge.job-status-prepared { background:#e8f5ef; color:#176b55; border-color:#bfe0d1; }
.company-badge.status-followup { background:#fff5df; color:#8a601a; border-color:#ead9a9; }
.company-badge.status-response,.company-badge.job-status-evaluated { background:#e7f4f8; color:#23687f; border-color:#bbdfe9; }
.company-badge.job-status-availability_requested { background:#eeeafa; color:#5f4795; border-color:#d7ccef; }
.company-badge.job-status-data_check { background:#fff4df; color:#9a5a00; border-color:#edcd94; }
.company-badge.status-interview { background:#f0ecfa; color:#604799; border-color:#d4c8ed; }
.company-badge.status-assessment { background:#eceffd; color:#3e5591; border-color:#cbd3f0; }
.company-badge.status-rejected { background:#faecee; color:#a0444e; border-color:#efd5d9; }
.company-badge.status-archived,.company-badge.job-status-archived { background:#eef0f2; color:#46515b; border-color:#c9d0d6; }
.source-badge { background: #f2f4f6; color: #65717c; }
.activity-row, .table-row { border-color: var(--border); }
.activity-row:hover, .table-row:not(.table-head):hover { background: #f8fafb; }
.table-head { color: #64717d; background: #f6f8fa; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.table-row { min-height: 68px; font-size: 14px; color: #465462; }
.primary-cell strong { color: var(--text); font-size: 15px; }
.primary-cell small { color: var(--muted); font-size: 12px; }
.record-count { font-size: 13px; }
.applications-toolbar { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; justify-content: stretch; gap: 9px; width: 100%; overflow: visible; padding: 10px 12px; }
.applications-toolbar > .application-filter-row { justify-self: stretch; }
.application-filter-row { display: grid; grid-template-columns: minmax(280px,2fr) repeat(2,minmax(170px,1fr)) 134px 134px max-content max-content; align-items: center; gap: 8px; width: 100%; min-width: 0; }
[data-job-filters] .application-filter-row { grid-template-columns: minmax(250px,1.7fr) repeat(4,minmax(135px,1fr)) 134px 134px max-content max-content; column-gap: 12px; row-gap: 10px; }
[data-job-filters] .application-filter-menu summary,
[data-job-filters] .application-date-filter { width: 100%; min-width: 0; box-sizing: border-box; }
.application-search { width: 100%; min-width: 0; max-width: none; }
.application-search input { font-size: 13px; }
.application-filter-menu { position: relative; width: 100%; min-width: 0; }
.application-filter-menu summary, .application-date-filter { min-height: 40px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #334150; font-size: 13px; }
.application-filter-menu summary { display: flex; align-items: center; width: 100%; min-width: 160px; padding: 0 42px 0 12px; cursor: pointer; list-style: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 18px center; background-repeat: no-repeat; background-size: 12px 8px; }
.application-filter-menu summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-filter-menu summary::-webkit-details-marker { display: none; }
.application-filter-menu[open] summary { border-color: #a9c7bc; }
.application-filter-options { position: absolute; z-index: 18; top: calc(100% + 5px); left: 0; min-width: 230px; max-height: 290px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(31,45,61,.12); }
.application-filter-options label { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 7px; border-radius: 6px; color: #40505e; font-size: 13px; cursor: pointer; }
.application-filter-options label:hover { background: var(--accent-soft); }
.application-filter-options input { width: 16px; height: 16px; accent-color: var(--accent); }
.application-date-filter { display: flex; align-items: center; gap: 7px; padding: 0 7px 0 10px; }
.application-date-filter span { color: var(--muted); font-size: 12px; font-weight: 650; }
.application-date-filter input { position: relative; width: 88px; min-width: 88px; padding: 0 18px 0 0; border: 0; outline: 0; background: transparent; color: #334150; font: inherit; }
.application-date-filter input::-webkit-calendar-picker-indicator { position: absolute; top: 50%; right: 0; width: 15px; height: 15px; margin: 0; padding: 0; transform: translateY(-50%); cursor: pointer; }
.application-filter-reset { min-height: 40px; padding-inline: 13px; }
.application-filter-row .record-count { justify-self: end; margin-left: 0; white-space: nowrap; }
.text-link { color: var(--accent-2); font-size: 13px; font-weight: 650; }
.jobs-row { grid-template-columns: minmax(320px,1.8fr) 110px minmax(130px,.65fr) minmax(120px,.55fr) 100px; }
.responsive-table:has(.jobs-overview-row) { min-width: 1450px; }
.jobs-overview-row { grid-template-columns: 26px 32px minmax(155px,1.2fr) minmax(350px,2.2fr) minmax(90px,.6fr) minmax(95px,.6fr) minmax(90px,.62fr) minmax(105px,.72fr) minmax(90px,.62fr) minmax(88px,.55fr) 90px 80px; gap: 8px; padding-inline: 12px; }
.jobs-overview-row.table-head { font-size: 11px; }
.jobs-overview-row > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobs-overview-row .primary-cell strong, .jobs-overview-row .application-table-value { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobs-overview-row .primary-cell strong { font-size: 14px; }
.jobs-overview-row .status-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.job-plain-value, .job-profile-list { color: #465462; font: inherit; font-size: 14px; font-style: normal; }
.job-workflow-cell { overflow: visible !important; }
.job-status-chip { border: 1px solid #cbd2d8 !important; background: #fff !important; color: #465462 !important; }
.job-status-chip.job-status-availability_requested { background:#eeeafa !important; color:#5f4795 !important; border-color:#d7ccef !important; }
.jobs-overview-row .application-select-cell { overflow: visible; }
.job-profile-list { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.job-overview-row { cursor: pointer; }
.job-overview-row[hidden] { display: none; }
.job-match-cell { overflow: visible !important; }
.table-panel:has(.jobs-overview-row) { overflow-x: auto; overflow-y: visible; }
.responsive-table:has(.jobs-overview-row) { overflow: visible; }
.job-match-details { position: relative; }
.job-match-details summary { list-style: none; cursor: pointer; }
.job-match-details summary::-webkit-details-marker { display: none; }
.job-match-score, .job-match-trigger { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 1px solid #cbd5d1; border-radius: 999px; background: #fff; color: #52605b; font: 500 12px/1.2 var(--font-sans); white-space: nowrap; cursor: pointer; }
.job-match-score.is-strong { border-color: #9fcfbd; background: #edf8f4; color: #17664f; }
.job-match-score.score-weak { border-color: #dfb8b4; background: #fff4f2; color: #963f37; }
.job-match-score.score-neutral { border-color: #ded3b2; background: #fff9e9; color: #755b17; }
.job-match-score.score-review { border-color: #ded3b2; background: #fff9e9; color: #755b17; }
.job-match-score.score-good { border-color: #b4d2df; background: #f0f8fb; color: #27657c; }
.job-match-score.score-top { border-color: #9fcfbd; background: #edf8f4; color: #17664f; }
.job-match-score.is-error { border-color: #ddb8b4; background: #fff5f3; color: #9a3d35; }
.job-match-trigger:hover { border-color: #9fcfbd; color: var(--accent-2); }
.job-match-popover { position: absolute; z-index: 150; top: calc(100% + 7px); right: 0; bottom: auto; width: 310px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(31,45,61,.12); white-space: normal; }
.job-match-popover p { margin: 0 0 8px; }
.job-match-popover ol { margin: 0 0 12px; padding-left: 20px; }
.job-match-popover li + li { margin-top: 6px; }
@media (max-width: 820px) {
  .table-panel:has(.jobs-overview-row) { overflow-x: auto; overflow-y: visible; }
}
.page-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.responsive-table:has(.applications-row) { min-width: 1450px; }
.applications-row { grid-template-columns: 26px 32px minmax(250px,1.45fr) minmax(240px,1.25fr) minmax(105px,.58fr) minmax(140px,.72fr) minmax(150px,.72fr) 110px minmax(125px,.66fr) 90px; gap: 8px; padding-inline: 12px; }
.applications-row.table-head { font-size: 11px; }
.application-column-sort { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.application-column-sort i { width: 9px; height: 6px; flex: 0 0 auto; background: no-repeat center/9px 6px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1 4.5 4.5 8 1' fill='none' stroke='%2365727d' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); opacity: .65; }
.application-column-sort.is-active { color: var(--accent-2); }
.application-column-sort.is-active[data-sort-direction="asc"] i { transform: rotate(180deg); }
.application-column-sort.is-active i { opacity: 1; }
.application-column-sort.is-active[data-sort-priority]::after { content: attr(data-sort-priority); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 15px; height: 15px; padding-top: 1px; margin-left: -2px; border: 1px solid currentColor; border-radius: 50%; font: 600 9px/1 var(--font-sans); }
.applications-row > span:not(.application-select-cell) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.applications-row .status-chip { max-width: 100%; }
.application-status-cell { display: flex; align-items: center; overflow: visible !important; }
.application-row-status-menu { position: relative; max-width: 100%; }
.application-row-status-menu summary { display: inline-flex; max-width: 100%; align-items: center; cursor: pointer; list-style: none; }
.application-row-status-menu summary::-webkit-details-marker { display: none; }
.application-row-status-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 120; min-width: 220px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(31,45,61,.12); }
.application-row-status-options button { display: block; width: 100%; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: #40505e; cursor: pointer; text-align: left; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 13px; }
.application-row-status-options button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-2); }
.application-row-status-options button:disabled { color: #9aa3ab; cursor: default; }
.table-action-cell { display: flex; align-items: center; justify-content: center; overflow: visible !important; }
.list-delete-dialog { width: min(560px, calc(100vw - 32px)); }
.application-overview-row { cursor: pointer; }
.application-overview-row[hidden] { display: none; }
.application-select-cell { display: grid; place-items: center; }
.application-select-cell input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.table-pin-cell { display:grid; place-items:center; overflow:visible!important; }
.table-pin-button { display:grid; width:30px; height:30px; padding:0; place-items:center; border:0; border-radius:7px; background:transparent; color:#a5afb7; cursor:pointer; transition:color .15s ease; }
.table-pin-button:hover { background:#f1f5f4; color:#51606f; }
.table-pin-button.is-pinned,.table-pin-button.is-pinned:hover { background:transparent; color:#f0bd67; }
.table-pin-button i { font-size:13px; line-height:1; }
.applications-row .primary-cell strong, .application-table-value { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.applications-row .primary-cell strong { font-size: 14px; }
.application-followup { white-space: nowrap; font-size: inherit; font-weight: inherit; }
.application-followup.due { color: var(--warning); }
.application-followup.overdue { color: var(--danger); }
@media (max-width: 1380px) {
  .application-filter-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 128px 128px max-content max-content; }
  [data-job-filters] .application-filter-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .application-search { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .applications-toolbar { display: grid; }
  .application-filter-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; }
  [data-job-filters] .application-filter-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .application-search { grid-column: 1 / -1; }
  .application-filter-menu summary { width: 100%; }
  .application-date-filter input { flex: 1; width: auto; }
  .application-filter-row .record-count { align-self: center; justify-self: end; }
}
.profiles-row { grid-template-columns: minmax(220px,.8fr) minmax(420px,2fr) 80px; }
.profile-overview-row { cursor: pointer; }
.tags-cell { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tags-cell i { font-style: normal; display: inline-block; padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: #f8fafb; color: #53616e; font-size: 11px; }
.tags-cell small { color: var(--muted-2); }
.asset-status { display: inline-grid; place-items: center; min-width: 25px; height: 25px; border-radius: 50%; background: #f1f3f5; color: #9aa3ab; font-style: normal; }
.asset-status.ok { background: #eaf5f1; color: #176b55; }
.table-action { white-space: nowrap; }
.detail-grid-data-left { grid-template-columns: minmax(300px,.62fr) minmax(0,1.65fr); align-items: start; }
.detail-title p { color: var(--muted); font-size: 14px; }
.detail-title h1 { color: var(--text); }
.letter-preview, .job-description { color: #293541; font-size: 16px; line-height: 1.78; }
.info-card dt { color: #7c8792; font-size: 11px; }
.info-card dd { color: #293541; font-size: 14px; line-height: 1.55; }
.pdf-card { background: #fff; border-color: var(--border); }
.pdf-icon { background: #fff3f4; border-color: #f2d8db; color: var(--danger); }
.pdf-card strong { font-size: 14px; }
.pdf-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.pdf-status-copy { min-width: 0; }
.pdf-status-copy small { display: block; margin-top: 7px; color: #7a8792; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.pdf-status-card.ready { border-color: #bcded2; background: #fbfefd; }
.pdf-status-card.error { border-color: #efc7cb; background: #fffafb; }
.pdf-status-card.working { border-color: #d4dce4; background: #fafcfd; }
.toast { background: #fff; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); font-size: 14px; }
.mobile-nav { background: rgba(255,255,255,.97); border-top-color: var(--border); }
.mobile-nav a { color: var(--muted); }
.mobile-nav a.active { color: var(--accent); }
@media (max-width: 1120px) {
  .detail-grid-data-left { grid-template-columns: minmax(260px,.72fr) minmax(0,1.3fr); }
  .detail-side { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .detail-grid-data-left { grid-template-columns: 1fr; }
  .detail-side { order: 0; }
  .detail-main { order: 1; }
}
@media (max-width: 820px) {
  .sidebar { background: #fff; box-shadow: 24px 0 70px rgba(31,45,61,.18); }
  .mobile-nav { backdrop-filter: blur(18px); }
  .content { padding: 20px 14px 28px; }
  .table-row { font-size: 14px; }
}

/* v3: text-oriented detail view */
.section-label {
  display: block;
  color: #344454;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.info-card > .section-label { margin-bottom: 8px; }
.info-card dt {
  color: #566574;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.info-card dd {
  margin-top: 4px;
  color: #1f2d3a;
  font-size: 15px;
  line-height: 1.55;
}
.letter-editor-wrap { padding: 20px; }
.letter-editor-panel .letter-editor-wrap { padding: 0; }
.letter-editor {
  display: block;
  width: 100%;
  min-height: 520px;
  resize: vertical;
  padding: 18px 20px;
  border: 1px solid #d9e0e6;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #202d39;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  box-shadow: inset 0 1px 2px rgba(31,45,61,.025);
}
.letter-editor:focus {
  border-color: var(--field-focus-accent);
  box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.08);
}
.letter-editor::placeholder { color: #8a96a1; }
.letter-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.save-hint {
  color: #6d7a86;
  font-size: 13px;
  line-height: 1.45;
}
.letter-editor.is-saving { opacity: .7; }
.letter-editor[readonly] { background: #f7f9fb; color: #52606d; cursor: not-allowed; }
@media (max-width: 700px) {
  .letter-editor { min-height: 420px; font-size: 16px; padding: 16px; }
  .letter-editor-footer { align-items: stretch; flex-direction: column; }
  .letter-editor-footer .button { width: 100%; }
}

/* v15: central career and shared bullet editor */
.career-panel-head { align-items: center; }
.central-career-list { display: grid; }
.central-career-entry { display: grid; grid-template-columns: minmax(310px,.72fr) minmax(0,1.28fr); border-bottom: 1px solid var(--border); }
.central-career-entry:last-child { border-bottom: 0; }
.central-career-pool { display: grid; gap: 6px; padding: 0 72px 14px 18px; }
.central-career-pool > span { color: #596877; font-size: 12px; font-weight: 650; }
.central-career-pool > [data-career-bullet-pool] { min-width: 0; }
.career-entry-fields { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 13px; padding: 20px; border-right: 1px solid var(--border); background: #f8fafb; }
.career-entry-fields label:nth-child(1), .career-entry-fields label:nth-child(2) { grid-column: 1 / -1; }
.career-entry-fields label { display: grid; gap: 5px; }
.career-entry-fields label > span { color: #596876; font-size: 12px; font-weight: 700; }
.career-entry-fields input { width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.career-entry-fields input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.career-entry-remove { justify-self: start; grid-column: 1 / -1; padding: 5px 0; border: 0; background: transparent; color: var(--danger); cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; }
.career-entry-remove:hover { text-decoration: underline; }
.canonical-bullets { min-width: 0; padding: 20px; }
.bullet-editor-label { margin-bottom: 12px; }
.bullet-editor-label strong { display: block; color: #40505f; font-size: 13px; }
.bullet-editor-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bullet-editor { display: grid; gap: 11px; min-width: 0; }
.bullet-list { display: grid; gap: 8px; }
.bullet-row { display: grid; grid-template-columns: 26px minmax(0,1fr) 38px; align-items: stretch; gap: 7px; min-width: 0; transition: opacity .15s ease, transform .15s ease; }
.bullet-row.dragging { opacity: .45; transform: scale(.995); }
.bullet-drag-handle { display: grid; place-items: center; min-height: 38px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #8a959f; cursor: grab; font: inherit; font-size: 17px; letter-spacing: -4px; }
.bullet-drag-handle:hover { background: #eef4f1; color: var(--accent-2); }
.bullet-drag-handle:active { cursor: grabbing; }
.bullet-drag-handle:focus-visible { outline: 3px solid rgba(22,115,93,.15); }
.bullet-row textarea { display: block; width: 100%; min-width: 0; min-height: 42px; resize: none; overflow: hidden; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.bullet-row textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.bullet-remove, .bullet-add { display: grid; width: 38px; min-height: 38px; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #7b8792; cursor: pointer; font: inherit; font-size: 19px; }
.bullet-remove:hover { border-color: #e0bdc1; background: #fff7f8; color: var(--danger); }
.bullet-add { justify-self: end; }
.bullet-add:hover { border-color: #b9cec6; background: var(--accent-soft); color: var(--accent-2); }
.bullet-remove:focus-visible, .bullet-add:focus-visible { outline: 3px solid rgba(22,115,93,.15); }
.profile-career-table { overflow-x: auto; }
.profile-career-row { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(125px,.42fr) minmax(420px,1.75fr) 70px; gap: 16px; align-items: start; min-width: 900px; min-height: 76px; padding: 11px 18px; border-bottom: 1px solid var(--border); color: #465462; font-size: 13px; transition: opacity .18s ease, background .18s ease; }
.profile-career-row:last-child { border-bottom: 0; }
.profile-career-row.disabled { opacity: .55; background: #fafbfc; }
.profile-career-head { min-height: 42px; background: #f6f8fa; color: #64717d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.profile-career-station strong, .profile-career-station small { display: block; }
.profile-career-station strong { color: var(--text); font-size: 14px; }
.profile-career-station small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-bullet-preview { min-width: 0; color: inherit; font: inherit; font-size: 13px; line-height: 1.45; }
.profile-bullet-preview ul { display: grid; gap: 2px; margin: 0; padding-left: 16px; }
.profile-bullet-preview li { padding-left: 1px; }
.profile-bullet-preview small { color: var(--muted); font: inherit; font-size: 13px; }
.profile-bullet-preview .profile-bullet-count { display: block; margin-bottom: 4px; font-size: 11px; }
.profile-career-actions { display: flex; justify-content: center; align-items: center; }
.row-action-popover.profile-action-popover button { color: #334150; }
.row-action-popover.profile-action-popover button:hover { background: var(--accent-soft); color: var(--accent-2); }
.profile-career-row:last-child .row-action-popover { top: auto; bottom: calc(100% + 6px); }
.compact-toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.compact-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.compact-toggle i { position: relative; width: 34px; height: 19px; border-radius: 10px; background: #cbd3da; transition: .18s ease; }
.compact-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: .18s ease; }
.compact-toggle input:checked + i { background: var(--accent); }
.compact-toggle input:checked + i::after { transform: translateX(15px); }
.compact-toggle input:focus-visible + i { outline: 3px solid rgba(22,115,93,.15); }
.compact-toggle b { color: #52616f; font-size: 12px; }
.profile-active-cell { display: flex; align-self: center; justify-content: center; }
.variant-dialog { width: min(850px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 25px 80px rgba(31,45,61,.22); }
.variant-dialog::backdrop { background: rgba(23,32,42,.28); }
.variant-dialog-body { padding: 20px 22px; overflow-y: auto; }
.variant-source-note { margin-bottom: 15px; padding: 10px 12px; border: 1px solid #d9e8e2; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; }
.variant-dialog-actions { position: sticky; bottom: 0; align-items: center; border-top: 1px solid var(--border); background: #fff; }
.variant-dialog-actions [data-use-central] { margin-right: auto; }
@media (max-width: 1000px) {
  .central-career-entry { grid-template-columns: 1fr; }
  .career-entry-fields { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 650px) {
  .career-panel-head { align-items: stretch; flex-direction: column; }
  .career-panel-head .button { width: 100%; }
  .career-entry-fields { grid-template-columns: 1fr; padding: 16px; }
  .canonical-bullets { padding: 16px; }
  .bullet-row { grid-template-columns: 26px minmax(0,1fr) 40px; }
  .variant-dialog-actions { align-items: stretch; flex-direction: column; }
  .variant-dialog-actions .button { width: 100%; }
  .variant-dialog-actions [data-use-central] { margin-right: 0; }
}


/* v4: uppercase labels with readable system typography */
.section-label {
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: #475665;
}
.info-card dt {
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: #64717d;
}

/* v6: "Neue Bewerbung" – text-first, table-oriented work form */
.page-copy { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.application-create-form { display: grid; gap: 18px; }
.application-contacts-field { align-items: stretch; }
.application-contacts-editor { min-width: 0; padding: 0; }
.application-contact-list { display: grid; min-width: 0; }
.application-contact-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; min-width: 0; align-items: stretch; }
.application-contact-row + .application-contact-row { border-top: 1px solid var(--border); }
.application-contact-row.is-locked { grid-template-columns: minmax(0, 1fr); }
.application-contact-row input { min-width: 0; width: 100%; height: 42px; padding: 10px 12px; border: 0; border-radius: 0; background: #fff; color: var(--text); font: inherit; font-size: 13px; }
.application-contact-row input:focus { position: relative; z-index: 1; outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: -2px; }
.application-contact-row [data-contact-add-row],
.application-contact-row [data-analysis-contact-add] { display: grid; place-items: center; min-width: 38px; border: 0; border-left: 1px solid var(--border); background: #fff; color: var(--accent); cursor: pointer; }
.application-contact-row [data-contact-add-row]:hover,
.application-contact-row [data-analysis-contact-add]:hover { background: var(--surface-subtle); }
.application-contact-row [data-analysis-contact-add][hidden] { display: none; }
.content:has(.application-create-form) { width: min(1980px, 100%); max-width: 1980px; }
.form-panel { overflow: hidden; }
.form-panel .panel-head { border-bottom: 1px solid var(--border); }
.form-required-hint, .text-counter { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.field-table { display: grid; }
.field-row {
  display: grid;
  grid-template-columns: minmax(185px, .42fr) minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
}
.field-row:last-child { border-bottom: 0; }
.field-row > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #f8fafb;
  border-right: 1px solid var(--border);
  color: #51606f;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}
.field-row input, .field-row select {
  width: 100%;
  min-height: 57px;
  padding: 13px 16px;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.field-row input::placeholder { color: #98a2ac; }
.field-row input:focus, .field-row select:focus { background: #fbfefd; box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.field-row input:invalid:not(:focus):not(:placeholder-shown), .field-row select:invalid:not(:focus) { box-shadow: inset 3px 0 0 #d6a044; }
.text-work-panel .panel-head { min-height: 64px; }
.job-analysis-actions { display: flex; align-items: center; gap: 12px; }
.job-description-summary { display: grid; min-height: 300px; max-height: 520px; padding: 19px 22px; background: #fff; }
.job-description-summary span { display: block; min-height: 0; overflow-y: auto; padding-right: 8px; color: var(--muted); font-size: 13px; line-height: 1.62; white-space: pre-wrap; }
.job-description-summary.has-content { background: #fbfdfc; }
.job-analysis-status { padding: 11px 18px; border-top: 1px solid var(--border); background: #f8fafb; color: var(--muted); font-size: 13px; }
.job-analysis-status.success { background: var(--accent-soft); color: var(--accent-2); }
.job-analysis-status.warning { background: #fff9ed; color: var(--warning); }
.job-analysis-status.error { background: #fff5f6; color: var(--danger); }
.analysis-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid var(--border); }
.analysis-field { display: grid; grid-template-columns: 155px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.analysis-field:nth-child(2n) { border-right: 0; }
.analysis-field > span { grid-row: 1 / 3; padding: 13px 15px; color: #50606f; font-size: 12px; font-weight: 700; }
.analysis-field input { min-width: 0; height: 39px; padding: 8px 13px; border: 0; border-left: 1px solid var(--border); outline: 0; color: var(--text); font: inherit; font-size: 13px; }
.analysis-field textarea { min-width: 0; min-height: 62px; resize: vertical; padding: 8px 13px; border: 0; border-left: 1px solid var(--border); outline: 0; color: var(--text); font: inherit; font-size: 12px; line-height: 18px; }
.analysis-field textarea:focus { box-shadow: inset 3px 0 0 var(--field-focus-accent); background: #fbfefd; }
.analysis-field input:focus { box-shadow: inset 3px 0 0 var(--field-focus-accent); background: #fbfefd; }
.analysis-field small { min-width: 0; overflow: hidden; padding: 0 13px 8px; border-left: 1px solid var(--border); color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.analysis-list-field { display: grid; min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.analysis-list-field:nth-child(2n) { border-right: 0; }
.analysis-list-field > span { padding: 11px 14px 7px; color: #50606f; font-size: 12px; font-weight: 750; }
.analysis-list-field textarea { width: 100%; min-height: 120px; resize: vertical; padding: 10px 14px; border: 0; border-top: 1px solid var(--border); outline: 0; color: var(--text); font: inherit; font-size: 13px; line-height: 1.55; }
.analysis-list-field textarea:focus { box-shadow: inset 3px 0 0 var(--field-focus-accent); background: #fbfefd; }
.analysis-list-field small { padding: 7px 14px 9px; color: var(--muted); background: #f8fafb; font-size: 10px; }
.analysis-sources summary { padding: 12px 16px; cursor: pointer; color: #425363; font-size: 12px; font-weight: 700; }
.analysis-sources > div { display: grid; border-top: 1px solid var(--border); }
.analysis-sources > div > div { display: grid; grid-template-columns: minmax(150px,.35fr) minmax(0,1fr); gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 11px; }
.analysis-sources a { min-width: 0; overflow-wrap: anywhere; color: var(--accent-2); }
.large-text-wrap { padding: 0; }
.large-textarea {
  display: block;
  width: 100%;
  min-height: 340px;
  resize: vertical;
  padding: 22px 24px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #202d39;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}
.large-textarea.letter-input { min-height: 430px; }
.large-textarea:focus { box-shadow: inset 3px 0 0 var(--field-focus-accent); background: #fdfefe; }
.large-textarea::placeholder { color: #98a2ac; }
.create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  position: sticky;
  bottom: 14px;
  z-index: 8;
  padding: 14px 16px;
  border-color: #cfd9d5;
  box-shadow: 0 12px 35px rgba(31,45,61,.10);
}
.create-actions > div:first-child { min-width: 0; }
.create-actions strong { display: block; font-size: 13px; color: #30433d; }
.create-actions small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.create-actions code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.application-heading-state { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.application-heading-state [data-application-status] { max-width: none; }
.application-lock-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px 16px; border-color: #ebd19f; background: #fffaf0; }
.application-lock-notice strong { color: #75501a; font-size: 13px; }
.application-lock-notice span { color: #78684f; font-size: 12px; }
.application-lock-notice.application-locked-banner { border-color: #d7232347; background: #d723238c; color: #fff; }
.application-lock-notice.application-locked-banner strong,
.application-lock-notice.application-locked-banner span { color: #fff; }
.workspace-mode-navigation button.workspace-mode-error{color:#d72323}
.workspace-mode-navigation button.workspace-mode-error .workspace-mode-number{border-color:#d72323;background:#d72323;color:#fff}
.create-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.create-feedback { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.create-feedback.success { color: var(--accent-2); }
.create-feedback.error { color: var(--danger); }
@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .field-row > span { min-height: 38px; padding: 10px 14px 5px; border-right: 0; background: #fff; }
  .field-row input, .field-row select { min-height: 48px; padding: 8px 14px 12px; }
  .large-textarea, .large-textarea.letter-input { min-height: 340px; padding: 17px 16px; font-size: 16px; }
  .create-actions { position: static; align-items: stretch; flex-direction: column; }
  .create-action-buttons { justify-content: stretch; }
  .create-action-buttons .button { flex: 1 1 160px; }
  .create-feedback { flex-basis: 100%; max-width: none; }
}

/* v14: Candidate/ApplicationProfile management */
.profile-name-link:hover { color: var(--accent-2); }
.button.compact { padding: 7px 11px; font-size: 12px; }
.profile-detail-heading { align-items: flex-end; }
.profile-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 4px; }
.profile-save-feedback { color: var(--muted); font-size: 12px; }
.profile-save-feedback.success { color: var(--accent-2); }
.profile-save-feedback.error { color: var(--danger); }
.profile-edit-form, .experience-form { display: grid; gap: 18px; margin-bottom: 18px; }
.profile-favorites-panel { margin-bottom: 18px; }
.text-library { display: grid; gap: 14px; }
.text-library-tabs { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.text-library-tabs button { min-height: 38px; padding: 8px 15px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: 650 13px/1.3 "Plus Jakarta Sans", sans-serif; }
.text-library-tabs button:hover { color: var(--accent-2); }
.text-library-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-2); }
.letter-template-library > .panel-head { align-items: center; }
.letter-template-library > .panel-head .button { margin-left: auto; }
.letter-template-workspace { display: grid; grid-template-columns: minmax(230px, .36fr) minmax(0, 1fr); min-height: 610px; }
.letter-template-list { border-right: 1px solid var(--border); background: var(--surface); }
.letter-template-list-empty { margin: 0; padding: 18px 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.letter-template-list-item { display: grid; width: 100%; gap: 4px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.letter-template-list-item:hover { background: var(--surface-2); }
.letter-template-list-item.active { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.letter-template-list-item strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.letter-template-list-item span { color: var(--muted); font-size: 11px; }
.letter-template-list-item.is-inactive { opacity: .58; }
.letter-template-editor { display: grid; align-content: start; min-width: 0; }
.letter-template-editor[hidden] { display: none; }
.letter-template-fields { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .48fr) auto; align-items: end; border-bottom: 1px solid var(--border); }
.letter-template-fields > label:not(.letter-template-active) { display: grid; gap: 7px; min-width: 0; padding: 15px 16px; border-right: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; }
.letter-template-fields input[type="text"], .letter-template-fields select { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.letter-template-fields :is(input[type="text"], select):focus, .letter-template-body-field textarea:focus { border-color: var(--field-focus-accent); box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.letter-template-active { display: flex; min-height: 87px; align-items: center; gap: 8px; padding: 15px 18px; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.letter-template-active input { width: 16px; height: 16px; accent-color: var(--accent); }
.letter-template-token-bar { display: grid; gap: 9px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.letter-template-token-bar > strong { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .045em; }
.letter-template-token-bar > div { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-template-token-bar button { min-height: 29px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--accent-2); cursor: pointer; font-size: 11px; font-weight: 650; }
.letter-template-token-bar button:hover { border-color: #a9c9c0; background: var(--accent-soft); }
.letter-template-body-field { display: grid; gap: 8px; padding: 16px 16px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.letter-template-body-field textarea { width: 100%; min-height: 360px; resize: vertical; padding: 16px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: 400 14px/1.65 "Segoe UI", Arial, sans-serif; }
.letter-template-help { margin: 9px 16px 0; color: var(--muted); font-size: 11px; }
.letter-template-feedback { min-height: 20px; margin: 8px 16px 0; color: var(--muted); font-size: 12px; }
.letter-template-feedback.success { color: var(--accent-2); }
.letter-template-feedback.error { color: var(--danger); }
.letter-template-actions { display: flex; gap: 9px; justify-content: flex-end; padding: 12px 16px 18px; }
.letter-template-actions [data-letter-template-delete] { margin-right: auto; color: var(--danger); }
.letter-template-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 32px; color: var(--muted); text-align: center; }
.letter-template-empty i { font-size: 27px; }
.letter-template-empty strong { color: var(--text); font-size: 14px; }
.letter-template-empty span { max-width: 330px; font-size: 12px; line-height: 1.5; }
.text-favorites-editor { padding: 18px; }
.preferred-formulations-panel { overflow: visible; }
.preferred-formulations-panel > .panel-head { align-items: center; }
.preferred-formulations-panel > .panel-head .button { margin-left: auto; }
.preferred-formulations-panel > .panel-head .button { font-size: 14px; }
.preferred-formulations-switcher { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; border-bottom: 1px solid var(--border); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; }
.preferred-formulations-switcher > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preferred-formulations-content { min-width: 0; }
.preferred-formulations-view[hidden] { display: none; }
.favorite-create { display: grid; gap: 16px; margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: transparent; }
.profile-create-dialog.favorite-create-dialog { width: min(840px, calc(100vw - 48px)); max-width: none; overflow: visible; }
.favorite-create-dialog .favorite-create { min-width: 0; margin: 0; padding: 22px 24px 24px; border: 0; border-radius: 0; }
.favorite-create-dialog .favorite-create-actions { align-items: center; }
.favorite-create-dialog .favorite-create textarea { display: block; min-width: 0; max-width: 100%; min-height: 190px; }
.favorite-create-dialog .favorite-create textarea { font-size: 14px; }
.favorite-create-dialog .favorite-create textarea:focus { box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.favorite-create-dialog .favorite-placeholder-bar button { min-height: 32px; padding: 5px 9px; font-size: 14px; }
.favorite-create-dialog .favorite-category-menu summary,
.favorite-create-dialog .favorite-category-options label { font-size: 14px; }
.favorite-create-dialog .dialog-head.panel-head { align-items: center; }
.library-entry-type-field, .library-entry-name-field { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.library-entry-type-field select, .library-entry-name-field input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.library-entry-type-field select:focus, .library-entry-name-field input:focus { border-color: var(--field-focus-accent); box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.library-entry-active b { font-size: 14px; }
.favorite-create-submit-actions { display: flex; align-items: center; gap: 9px; }
.favorite-create-feedback { min-height: 18px; color: var(--muted); font-size: 12px; }
.favorite-create-feedback.error { color: var(--danger); }
.text-favorite-list:empty + .favorite-create { margin-top: 0; }
.favorite-create-head { display: flex; align-items: flex-start; gap: 12px; }
.favorite-create-symbol { flex: 0 0 auto; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--accent-2); font-size: 13px; line-height: 1; }
.favorite-create-head h3 { margin: 0; color: var(--text); font-size: 14px; line-height: 1.4; }
.favorite-create-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.favorite-create textarea { width: 100%; min-height: 108px; resize: vertical; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: 400 14px/1.55 "Segoe UI", Arial, sans-serif; }
.favorite-create textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.favorite-create-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.favorite-create-options { display: flex; align-items: flex-end; gap: 10px; }
.favorite-category-menu { width: 180px; }
.favorite-category-options { top: calc(100% + 5px); bottom: auto; width: 100%; min-width: 180px; }
.favorite-create-actions .button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.favorite-create-actions .button > i { font-size: 12px; line-height: 1; }
.favorite-create-actions .button > span { line-height: 1; }
.text-favorite-list { display: grid; gap: 10px; }
.text-favorite-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 38px; gap: 12px; align-items: start; min-height: 66px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.letter-template-card { grid-template-columns: minmax(0,1fr) 38px; }
.letter-template-card.is-requested { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.letter-template-card-active { min-height: 38px; align-self: start; }
.letter-template-card-active b { display: none; }
.text-library-card-head { display: grid; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 10px; width: 100%; }
.text-library-card-head input { flex: 1; min-width: 0; min-height: 34px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.text-library-card-head input:focus { border-color: var(--field-focus-accent); box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.text-library-card-head span { color: var(--muted); font-size: 12px; text-align: right; }
.letter-template-card .text-library-card-head input { font-weight: 700; }
.letter-template-card [data-letter-template-card-body] { width: calc(100% - 160px); min-height: 150px; resize: vertical; padding: 12px 13px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: 400 14px/1.55 "Segoe UI", Arial, sans-serif; }
.letter-template-card [data-letter-template-card-body]:focus { border-color: var(--field-focus-accent); box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.letter-template-ai-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.letter-template-ai-tools .button { min-height:34px; padding:6px 10px; font-size:14px; }
.letter-template-ai-tools > span { margin-left:auto; color:var(--muted); font-size:14px; }
.letter-template-ai-tools > span.warning { color:var(--warning, #9a6700); font-weight:650; }
.automation-template-dialog { width:min(620px, calc(100vw - 32px)); }
.automation-template-dialog-content { display:grid; gap:14px; padding:20px; }
.automation-template-dialog-content label { display:grid; gap:7px; color:var(--muted); font-size:14px; font-weight:650; }
.automation-template-dialog-content select { width:100%; min-height:42px; padding:8px 38px 8px 11px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font-size:14px; }
.automation-remediation-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}
.automation-remediation-content{display:grid;gap:16px;padding:20px}
.automation-remediation-options{display:grid;gap:10px}
.automation-remediation-option{display:grid;gap:5px;width:100%;padding:14px 16px;text-align:left;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);cursor:pointer}
.automation-remediation-option:hover{border-color:var(--accent);background:var(--accent-soft)}
.automation-remediation-option.is-selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.automation-remediation-information{cursor:default}.automation-remediation-information:hover{border-color:var(--border);background:var(--surface)}
.automation-remediation-option strong{font-size:14px}.automation-remediation-option span{color:var(--muted);font-size:13px;line-height:1.45}
.automation-remediation-manual{display:grid;gap:12px}.automation-remediation-manual label{display:grid;gap:7px;font-size:13px;font-weight:650}.automation-remediation-manual textarea{width:100%;resize:vertical}
.automation-remediation-manual-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.automation-remediation-manual-meta span{color:var(--muted);font-size:13px}
.automation-template-summary { min-height:58px; padding:13px 14px; border:1px solid var(--border); border-radius:8px; background:var(--surface-soft); color:var(--muted); font-size:14px; line-height:1.5; }
.automation-template-summary.warning { border-color:#d7b36a; color:var(--warning, #9a6700); }
.text-library-placeholder-panel { margin-top: 14px; }
.text-library-placeholder-content { padding: 16px 20px; }
.text-library-placeholder-bar { gap: 8px; }
.text-favorite-copy { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.favorite-placeholder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.favorite-placeholder-bar > span { margin-right: 2px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.favorite-placeholder-bar button { min-height: 26px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--accent-2); cursor: pointer; font: inherit; font-size: 10px; font-weight: 650; }
.favorite-placeholder-bar.text-library-placeholder-bar button { min-height: 36px; padding: 7px 10px; font-size: 14px; }
.favorite-placeholder-bar button:hover { border-color: #a9c9c0; background: var(--accent-soft); }
.text-favorite-row .favorite-placeholder-bar button { min-height: 32px; padding: 5px 9px; font-size: 14px; }
.text-favorite-row .favorite-category-menu summary { font-size: 14px; }
.favorite-create-placeholder-bar { margin: -7px 0 12px; }
.text-favorite-row [data-favorite-text], .prompt-generation-field textarea { width: 100%; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.text-favorite-row:not(.letter-template-card) { min-height: 66px; }
.text-favorite-row:not(.letter-template-card) .text-favorite-copy { width: 100%; }
.text-library-card-menu { justify-self:end; }
.text-library-card-popover { z-index:35; width:240px; padding:7px; }
.text-library-card-popover button { display:flex; align-items:center; gap:9px; }
.text-library-card-popover button i { width:16px; text-align:center; }
.text-library-card-popover .favorite-menu-action.required { color:#b78100; }
.text-library-card-popover .favorite-category-menu { width:auto; margin:5px 3px; padding:9px 7px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.text-library-card-popover .favorite-category-menu > strong { display:flex; justify-content:space-between; gap:10px; margin-bottom:7px; color:var(--muted); font-size:11px; }
.text-library-card-popover .favorite-category-menu > strong span { font-weight:500; }
.text-library-card-popover .favorite-category-options { position:static; display:grid; width:auto; min-width:0; padding:0; border:0; background:transparent; box-shadow:none; }
.text-library-card-popover .favorite-category-options label { display:flex; align-items:center; gap:8px; padding:6px 3px; color:var(--text); font-size:13px; cursor:pointer; }
.text-favorite-row [data-favorite-text] { min-height: 34px; padding: 6px 9px; border-color: var(--border); background: var(--surface); }
.text-favorite-row [data-favorite-text]:focus { border-color: var(--field-focus-accent); background: var(--surface); outline: 0; box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.favorite-remove { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; font-size: 14px; }
.favorite-remove:hover { color: var(--danger); }
.favorite-star { display: grid; width: 38px; height: 38px; place-items: center; align-self: start; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: #9aa4ad; cursor: pointer; font-size: 16px; line-height: 1; }
.favorite-star.required { border-color: #d4a31f; background: #fff9e8; color: #d09a00; }
.favorite-new-required { align-self: auto; }
.favorite-add { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 13px 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--accent-2); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.favorite-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.favorite-add span { display: inline-grid; width: 20px; place-items: center; font-size: 20px; line-height: 1; }
.favorite-feedback { display: inline-block; margin-left: 16px; color: var(--muted); font-size: 13px; }
.favorite-feedback.success { color: var(--accent-2); }
.favorite-feedback.error { color: var(--danger); }
.prompt-generation-field { display: grid; gap: 7px; padding: 18px; }
.prompt-generation-field > span { color: #52606d; font-size: 13px; font-weight: 700; }
.prompt-generation-field textarea { min-height: 170px; padding: 13px 14px; line-height: 1.55; resize: vertical; }
.ai-prompt-settings-panel { width: 100%; }
.ai-prompt-form { display: grid; gap: 18px; padding: 18px; }
.ai-prompt-form > label { display: grid; gap: 7px; color: var(--text); font-size: 13px; }
.ai-prompt-form select,
.ai-prompt-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); font-family: inherit; font-size: 13px; }
.ai-prompt-form select { min-height: 42px; padding: 8px 12px; }
.ai-prompt-form textarea { min-height: 360px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
.ai-prompt-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-prompt-meta > span { color: var(--muted); font-size: 12px; }
.ai-instruction-stack { display: grid; gap: 18px; }
.ai-instruction-stack .prompt-settings-panel { margin-bottom: 0; }
.ai-instruction-panel { overflow: hidden; }
.ai-instruction-picker { padding: 18px; }
.ai-instruction-picker > label { display: grid; gap: 7px; color: var(--text); font-size: 14px; }
.ai-instruction-picker select { width: 100%; min-height: 42px; padding: 8px 42px 8px 12px; border: 1px solid var(--border); border-radius: 7px; background-color: #fff; color: var(--text); font-family: inherit; font-size: 14px; }
.ai-instruction-view { border-top: 1px solid var(--border); }
.ai-instruction-view[hidden] { display: none; }
.ai-instruction-subsection { border-top: 1px solid var(--border); }
.ai-instruction-subsection-last { border-top: 1px solid var(--border); }
.ai-instruction-subhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px 0; }
.ai-instruction-subhead h2 { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 14px; font-weight: 650; line-height: 1.35; }
.ai-instruction-subhead p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ai-instruction-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: #fff; }
.ai-instruction-subsection .ai-prompt-form { padding-top: 14px; }
.letter-word-targets { display: grid; grid-template-columns: repeat(2, minmax(150px,220px)); gap: 14px; align-items: end; padding: 18px; }
.letter-word-targets label { display: grid; gap: 7px; color: #52606d; font-size: 13px; font-weight: 700; }
.letter-word-targets input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.letter-word-targets p { align-self: center; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.letter-validation-list { display: grid; gap: 9px; max-height: 45vh; overflow-y: auto; padding: 18px; }
.letter-validation-item { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #ead9aa; border-radius: 8px; background: #fff9ed; }
.letter-validation-item strong { color: var(--warning); font-size: 12px; text-transform: uppercase; }
.letter-validation-item span { font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .text-favorite-row { grid-template-columns: 34px minmax(0,1fr) 34px; padding: 13px 12px; } .favorite-create { padding: 16px; } .favorite-create-actions { align-items: stretch; flex-direction: column; } .favorite-create-options { align-items: center; } .favorite-category-menu { flex: 1; width: auto; } .favorite-create-actions .button { width: 100%; } .letter-word-targets { grid-template-columns: 1fr 1fr; } .letter-word-targets p { grid-column: 1 / -1; } }
@media (max-width: 820px) { .letter-template-workspace { grid-template-columns: 1fr; } .letter-template-list { max-height: 260px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--border); } .letter-template-fields { grid-template-columns: 1fr; } .letter-template-fields > label:not(.letter-template-active) { border-right: 0; border-bottom: 1px solid var(--border); } .letter-template-active { min-height: 58px; } }
.profile-config-grid { display: grid; grid-template-columns: minmax(280px,.62fr) minmax(0,1.65fr); gap: 16px; align-items: stretch; }
.profile-config-grid-single { grid-template-columns: minmax(0,1fr); }
.profile-config-sidebar { display: grid; grid-template-rows: minmax(0,1fr); align-content: stretch; gap: 16px; min-width: 0; }
.profile-config-main { display: grid; align-content: start; gap: 16px; min-width: 0; }
.profile-cv-preview { overflow: hidden; }
.profile-cv-preview .pdf-document-preview { border-top: 1px solid var(--border); }
.profile-tags-panel { display: flex; flex-direction: column; min-height: 100%; padding: 0; overflow: hidden; }
.profile-tags-panel label { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.profile-tags-panel label > span { color: #566574; font-size: 12px; font-weight: 600; }
.profile-tags-panel textarea { flex: 1; width: 100%; min-height: 286px; resize: vertical; padding: 12px 13px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; line-height: 1.55; }
.profile-tags-panel textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.profile-inline-bullets { min-width: 0; }
.profile-inline-bullets .bullet-editor { gap: 8px; }
.profile-inline-bullets .bullet-row textarea { min-height: 38px; padding: 7px 9px; font-size: 13px; line-height: 1.4; }
.profile-inline-bullets .bullet-remove { min-height: 38px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.profile-text-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--border); text-align: left; }
.profile-config-grid .profile-text-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-config-grid .profile-text-fields label:nth-child(2) { border-right: 0; }
.profile-config-grid .profile-orientation-fields { grid-template-columns: 1fr; }
.profile-config-grid .profile-orientation-fields label { border-right: 0; }
.profile-config-grid .profile-orientation-fields label:last-child { border-bottom: 0; }
.profile-text-fields label { display: flex; flex-direction: column; min-width: 0; padding: 17px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profile-text-fields label:nth-child(3) { border-right: 0; }
.profile-text-fields label.wide { grid-column: 1 / -1; border-right: 0; }
.profile-text-fields label > span, .experience-bullets > span { color: #51606f; font-size: 13px; font-weight: 700; }
.profile-text-fields label > small, .experience-bullets > small { margin: 2px 0 9px; color: var(--muted-2); font-size: 12px; }
.profile-text-fields textarea, .profile-text-fields input, .experience-bullets textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; line-height: 1.55; }
.profile-text-fields textarea, .experience-bullets textarea { resize: vertical; }
.profile-text-fields textarea:focus, .profile-text-fields input:focus, .experience-bullets textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.asset-upload-control { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 14px; }
.asset-file-name { flex: 1; min-width: 0; overflow: hidden; color: #344454; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.asset-upload-control .button { position: relative; flex: 0 0 auto; }
.asset-upload-control input[type="file"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.profile-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 14px 18px; background: #f8fafb; }
.profile-form-actions > span { margin-right: auto; color: var(--muted); font-size: 13px; }
.profile-form-actions > span.success { color: var(--accent-2); }
.profile-form-actions > span.error { color: var(--danger); }
.experience-list { display: grid; }
.experience-entry { display: grid; grid-template-columns: minmax(270px,.65fr) minmax(0,1.35fr); border-bottom: 1px solid var(--border); transition: opacity .18s ease; }
.experience-entry:last-child { border-bottom: 0; }
.experience-entry.disabled { opacity: .56; }
.experience-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 20px; background: #f8fafb; border-right: 1px solid var(--border); }
.experience-meta strong { display: block; color: var(--text); font-size: 15px; }
.experience-meta span, .experience-meta time { display: block; color: var(--muted); font-size: 13px; }
.experience-toggle { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; cursor: pointer; }
.experience-toggle input { accent-color: var(--accent); }
.experience-toggle span { color: #43515f; font-size: 12px; font-weight: 650; }
.experience-bullets { display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.breadcrumb-link { color: var(--accent-2); }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-separator { margin: 0 7px; color: #111820; }
.profile-menu-cell { display: flex; justify-content: flex-start; }
.row-action-menu { position: relative; }
.row-action-menu summary { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #53616e; cursor: pointer; font-size: 22px; line-height: 1; list-style: none; user-select: none; }
.row-action-menu summary::-webkit-details-marker { display: none; }
.row-action-menu summary:hover, .row-action-menu[open] summary { border-color: #b9cec6; background: var(--accent-soft); color: var(--accent-2); }
.row-action-menu summary:not(.icon-button) { display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 1; text-align: center; }
.row-action-menu summary:not(.icon-button):hover,
.row-action-menu[open] summary:not(.icon-button) { border-color: transparent; background: transparent; color: var(--accent-2); }
.row-action-popover { position: absolute; top: calc(100% + 6px); right: 0; z-index: 12; min-width: 130px; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 32px rgba(31,45,61,.13); }
.row-action-popover a { display: block; padding: 8px 10px; border-radius: 6px; color: #334150; font-size: 13px; font-weight: 650; }
.row-action-popover a:hover { background: var(--accent-soft); color: var(--accent-2); }
.profiles-table .table-row:last-child .row-action-popover { top: auto; bottom: calc(100% + 6px); }
.profile-detail-actions { flex: 0 0 auto; }
.profile-create-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 25px 80px rgba(31,45,61,.22); }
.profile-create-dialog::backdrop { background: rgba(23,32,42,.28); }
.profile-create-dialog form { display: grid; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px 17px; border-bottom: 1px solid var(--border); cursor: move; touch-action: none; user-select: none; }
.dialog-head.is-dragging { cursor: grabbing; }
.dialog-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dialog-close { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f2f4f6; color: #65717c; cursor: pointer; font-size: 20px; }
.dialog-close:hover { background: #e8ecef; color: var(--text); }
.dialog-field { display: grid; gap: 7px; padding: 20px 22px 8px; }
.dialog-field span { color: #51606f; font-size: 13px; font-weight: 700; }
.dialog-field input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font-size: 15px; }
.dialog-field input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.dialog-feedback { min-height: 29px; padding: 6px 22px 0; color: var(--muted); font-size: 13px; }
.dialog-feedback.success { color: var(--accent-2); }
.dialog-feedback.warning { color: var(--warning); }
.dialog-feedback.error { color: var(--danger); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 22px 20px; }
dialog[data-dialog-size-key] { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); min-width: 360px; min-height: 240px; resize: both; overflow: auto; }
.job-analysis-dialog { width: min(1420px, calc(100vw - 32px)); height: min(850px, calc(100vh - 32px)); min-width: min(900px, calc(100vw - 16px)); min-height: min(600px, calc(100vh - 16px)); max-width: none; max-height: calc(100vh - 16px); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 25px 80px rgba(31,45,61,.22); }
.job-analysis-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; }
.job-analysis-dialog::backdrop { background: rgba(23,32,42,.28); }
.job-analysis-dialog-workspace { display: grid; grid-template-columns: minmax(430px,.82fr) minmax(520px,1.18fr); min-height: 0; height: auto; border-bottom: 1px solid var(--border); background: #f7f9f9; }
.job-analysis-dialog-basis { display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; min-height: 0; overflow: hidden; border-right: 1px solid var(--border); background: #fff; }
.job-analysis-basis-head, .job-analysis-copy-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 72px; padding: 15px 18px 13px; border-bottom: 1px solid var(--border); background: #fff; }
.job-analysis-basis-head h3 { margin: 3px 0 0; color: var(--text); font-size: 18px; }
.job-analysis-copy-head h3 { margin: 3px 0 0; color: var(--text); font-size: 17px; }
.job-analysis-dialog-copy { display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; min-height: 0; padding: 0 18px 18px; background: #f7f9f9; }
.job-analysis-dialog-copy .job-analysis-copy-head { margin: 0 -18px; }
.job-analysis-dialog-field { display: grid; min-height: 0; padding-top: 18px; }
.job-analysis-dialog-field textarea { display: block; width: 100%; min-height: 0; resize: none; padding: 18px 19px; border: 1px solid var(--border); border-radius: 10px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; line-height: 1.65; box-shadow: 0 4px 16px rgba(31,45,61,.035); }
.job-analysis-dialog-field textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.job-analysis-basis-fields { min-height: 0; overflow-y: auto; box-shadow: inset 0 -1px 0 var(--border); }
.job-analysis-basis-fields .field-row { grid-template-columns: minmax(172px,.48fr) minmax(0,1fr); }
.job-analysis-basis-fields .field-row > span { padding: 11px 13px; font-size: 12px; }
.job-analysis-basis-fields .field-row input,
.job-analysis-basis-fields .field-row select { min-width: 0; padding: 11px 13px; font-size: 14px; }
.job-analysis-basis-fields .field-row select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 19px center; background-repeat: no-repeat; background-size: 12px 8px; appearance: none; }
.job-analysis-basis-fields .field-row select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2316735d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.job-analysis-dialog .dialog-actions { align-items: center; border-top: 0; }
.job-analysis-dialog [data-job-analysis-start] { margin-right: auto; }
.job-analysis-result-state { display: none !important; }
@media (max-width: 1050px) {
  .job-analysis-dialog { overflow-y: auto; }
  .job-analysis-dialog-workspace { grid-template-columns: 1fr; height: auto; }
  .job-analysis-dialog-basis { max-height: 48vh; border-right: 0; border-bottom: 1px solid var(--border); }
  .job-analysis-dialog-copy { min-height: 55vh; }
  .job-analysis-dialog-field textarea { min-height: 42vh; }
}
@media (max-width: 980px) {
  .profile-config-grid { grid-template-columns: 1fr; }
  .profile-text-fields { grid-template-columns: 1fr; }
  .profile-text-fields label, .profile-text-fields label:nth-child(3) { border-right: 0; }
  .experience-entry { grid-template-columns: 1fr; }
  .experience-meta { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .profile-detail-heading { align-items: stretch; }
  .profile-heading-actions .button { width: 100%; }
  .profile-form-actions { align-items: stretch; flex-direction: column; }
  .profile-form-actions > span { margin-right: 0; }
  .profile-form-actions .button { width: 100%; }
}


/* v7: Neue Bewerbung – Grunddaten links, Textarbeit rechts */
.application-create-workspace {
  display: grid;
  grid-template-columns: minmax(510px, 550px) minmax(720px, 1fr) minmax(230px, 260px);
  gap: 18px;
  align-items: start;
}
.application-text-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.letter-work-panel { min-width: 0; }
.letter-work-panel .unified-text-editor-surface { min-height: 650px !important; }
.letter-subject-table { border-bottom: 1px solid var(--border); }
.letter-subject-table .field-row { border-bottom: 1px solid var(--border); grid-template-columns: 110px minmax(0,1fr); }
.letter-subject-table .field-row:last-child { border-bottom: 0; }
.letter-subject-table .field-row > span { background: #f8fafb; }
.letter-subject-table .field-row input,
.letter-subject-table .field-row textarea { font-size: 14px; }
.letter-assistant-column { position: fixed; inset: 0 0 0 auto; z-index: 35; display: flex; flex-direction: column; width: min(440px, calc(100vw - 24px)); min-width: 0; padding: 22px 18px 20px; overflow: hidden; border-left: 1px solid var(--border); background: rgba(255,255,255,.97); backdrop-filter: blur(20px); box-shadow: none; transform: translateX(105%); visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; }
.letter-assistant-column.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.assistant-drawer-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 64px; margin: 0 0 14px; }
.assistant-drawer-title { min-width: 0; padding-left: 8px; }
.assistant-drawer-title h2 { margin: 3px 0 0; font-size: 18px; }
.assistant-drawer-head > .icon-button { flex: 0 0 38px; margin-left: auto; }
.assistant-drawer-open { flex: 0 0 auto; }
.system-assistant-trigger { color: #1f2933; }
.system-assistant-drawer .letter-chat-panel { grid-template-rows: auto minmax(0,1fr) auto; }
.system-assistant-drawer .letter-chat-prompts[hidden] { display: none; }
.system-assistant-actions { display: grid; }
.system-assistant-drawer .assistant-drawer-title .section-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; }
.system-assistant-drawer .assistant-drawer-title h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; }
@media (min-width: 701px) {
  body.system-assistant-open .main { margin-right: min(440px, calc(100vw - 24px)); }
  body.job-detail-drawer-open .main { margin-right: min(620px, calc(100vw - 24px)); }
}
.letter-chat-panel { display: grid; flex: 1 1 auto; grid-template-rows: minmax(0,1fr) auto auto auto auto; min-height: 0; overflow: hidden; }
.letter-assistant-column .letter-chat-panel { border: 0; border-radius: 0; background: transparent; }
.compact-icon { width: 30px; height: 30px; font-size: 18px; }
.letter-chat-messages { display: grid; align-content: start; gap: 10px; max-height: 340px; overflow-y: auto; padding: 14px; background: #f8fafb; }
.letter-assistant-column .letter-chat-messages { max-height: none; padding-inline: 0; background: transparent; }
.letter-chat-message-list { display: grid; align-content: start; gap: 10px; }
.letter-chat-empty { padding: 20px 12px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.letter-chat-message { display: grid; gap: 6px; max-width: 92%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.6; }
.letter-chat-message.user { justify-self: end; border-color: #cfe1dc; background: var(--accent-soft); }
.letter-chat-message strong { color: #4c5c6b; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.letter-chat-message > div { overflow-wrap: anywhere; white-space: pre-line; }
.letter-chat-quoted-selection { margin: 2px 0 4px; padding: 8px 9px; border-left: 2px solid #a8c9bd; background: #f5f9f7; color: #465761; }
.letter-chat-quoted-selection span { display: block; margin-bottom: 4px; color: var(--accent-2); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.letter-chat-quoted-selection p { max-height: 110px; margin: 0; overflow-y: auto; font-size: 12px; line-height: 1.45; white-space: pre-line; }
.letter-chat-apply { justify-self: start; min-height: 32px; margin-top: 5px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #475765; cursor: pointer; font: 700 11px/1.3 var(--font-sans); }
.letter-chat-apply:hover { border-color: #b9cec6; background: var(--accent-soft); color: var(--accent-2); }
.letter-chat-apply:disabled { cursor: default; opacity: .55; }
.letter-chat-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 0; }
.letter-chat-prompts button { min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #475765; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.letter-chat-prompts button:hover { border-color: #b9cec6; background: var(--accent-soft); color: var(--accent-2); }
.letter-chat-prompts button:disabled { cursor: wait; opacity: .55; }
.letter-chat-compose { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.letter-assistant-column .letter-chat-compose { padding-inline: 0; border-top: 0; background: transparent; }
.letter-chat-compose textarea { width: 100%; min-height: 66px; resize: vertical; padding: 10px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; color: var(--text); font: inherit; font-size: 13px; line-height: 1.45; }
.letter-chat-compose textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.letter-chat-compose-actions { display: flex; justify-content: flex-end; gap: 8px; }
.letter-chat-compose .button { min-width: 92px; }
.letter-chat-selection { display: grid; gap: 6px; padding: 9px 10px; border-left: 3px solid var(--accent); border-radius: 6px; background: #f3f8f6; color: #52606d; }
.letter-chat-selection-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.letter-chat-selection-head strong { color: var(--accent-2); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.letter-chat-selection-head button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #65737f; cursor: pointer; font: inherit; font-size: 18px; line-height: 1; }
.letter-chat-selection-head button:hover { background: #dfebe7; color: var(--accent-2); }
.letter-chat-selection p { max-height: 84px; margin: 0; overflow-y: auto; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
.letter-selection-context-menu { position: fixed; z-index: 120; min-width: 175px; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 14px 38px rgba(31,45,61,.18); }
.letter-selection-context-menu button { width: 100%; padding: 9px 11px; border: 0; border-radius: 6px; background: transparent; color: #364654; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-align: left; }
.letter-selection-context-menu button:hover { background: var(--accent-soft); color: var(--accent-2); }
.letter-assistant-status { padding: 8px 12px; border-top: 1px solid var(--border); color: var(--muted); background: #f8fafb; font-size: 11px; }
.letter-assistant-status.success { color: var(--accent-2); background: var(--accent-soft); }
.letter-assistant-status.error { color: var(--danger); background: #fff5f6; }
.letter-assistant-column .letter-assistant-status { justify-self: start; padding: 0 2px; border: 0; background: transparent; }
.letter-chat-footer { display: flex; justify-content: flex-end; padding-top: 10px; }
.letter-tools-panel { align-self: start; overflow: hidden; }
.pdf-overflow-notice { margin: 12px; padding: 13px; border: 1px solid #e7b8bd; border-radius: 10px; background: #fff8f8; color: var(--text); }
.pdf-overflow-notice[hidden] { display: none; }
.pdf-overflow-notice strong { display: block; font-size: 13px; }
.pdf-overflow-notice p { margin: 5px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pdf-overflow-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf-overflow-notice small { display: block; margin-top: 9px; color: var(--muted); line-height: 1.45; }
.letter-layout-capacity { padding: 12px 16px 14px; border-top: 1px solid var(--border); background: #fff; }
.letter-layout-capacity-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.letter-layout-capacity-head > div { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.letter-layout-capacity-head strong { color: #3f4e5c; font-size: 12px; }
.letter-layout-capacity-head span { color: var(--muted); font-size: 11px; }
.letter-layout-capacity-track { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #edf1f2; }
.letter-layout-capacity-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease, background-color .2s ease; }
.letter-layout-capacity.warning .letter-layout-capacity-track span { background: #d59734; }
.letter-layout-capacity.error .letter-layout-capacity-track span { background: var(--danger); }
.letter-layout-capacity small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.letter-tool-list { display: grid; }
.letter-tool-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 15px 14px; border: 0; border-bottom: 1px solid var(--border); background: #fff; color: #3f4e5c; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-align: left; }
.application-create-workspace > .letter-tools-panel .letter-tool-button,
.application-create-workspace > .letter-tools-panel .job-analysis-status { font-size: 13px; }
.letter-tool-button:last-child { border-bottom: 0; }
.letter-tool-button:hover { background: var(--accent-soft); color: var(--accent-2); }
.letter-tool-button.danger { color: var(--danger); }
.letter-tool-button.danger:hover { background: #fff3f4; color: var(--danger); }
.letter-tool-button:disabled { cursor: wait; opacity: .55; }
.letter-tool-button i { color: #86919b; font-size: 18px; font-style: normal; }
.application-review-column,
.application-transmission-column,
.application-history-column { min-width: 0; display: grid; gap: 18px; align-content: start; }
.transmission-side-column { display: grid; gap: 18px; min-width: 0; align-content: start; }
.transmission-template-field { display: grid; gap: 7px; padding: 14px 16px 16px; color: #51606f; font-size: 12px; font-weight: 650; }
.transmission-template-field select { width: 100%; min-width: 0; min-height: 39px; padding: 8px 34px 8px 10px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.transmission-template-field select:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.history-side-column { display: grid; gap: 18px; min-width: 0; align-content: start; }
.history-summary-panel { position: relative; z-index: 2; min-width: 0; overflow: visible; align-self: start; }
.history-status-panel,
.history-communications-panel { min-width: 0; overflow: hidden; align-self: start; }
.history-summary-list { display: grid; }
.history-summary-list > div { display: grid; gap: 4px; min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.history-summary-list > div:last-child { border-bottom: 0; }
.history-summary-list span { color: #51606f; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 12px; line-height: 1.4; font-weight: 650; }
.history-summary-list strong { color: var(--text); font-family: "Segoe UI", Inter, ui-sans-serif, sans-serif; font-size: 14px; line-height: 1.45; font-weight: 400; }
.history-summary-list .history-followup-summary { gap: 2px; }
.history-summary-list .history-followup-summary small { color: var(--muted); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 12px; line-height: 1.45; }
.history-summary-status > div { display: grid; gap: 8px; }
.history-summary-status select,
.history-summary-status input { width: 100%; min-width: 0; min-height: 39px; padding: 8px 34px 8px 10px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background-color: #fff; color: var(--text); font: inherit; font-size: 14px; }
.history-summary-status select { padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 18px center; background-repeat: no-repeat; background-size: 12px 8px; appearance: none; }
.history-summary-status select:focus,
.history-summary-status input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.history-status-filter { width: 100%; }
.history-status-filter summary { min-width: 0; }
.history-status-filter[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.history-status-options { width: 100%; min-width: 100%; }
.history-status-option { display: flex; align-items: center; width: 100%; min-height: 34px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: #40505e; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.history-status-option:hover,
.history-status-option.is-selected { background: var(--accent-soft); color: var(--accent-2); }
.history-summary-list > .history-summary-table-row { grid-template-columns: minmax(116px,.42fr) minmax(0,.58fr); gap: 0; min-height: 0; padding: 0; }
.history-summary-table-row > span,
.history-summary-table-row > strong { display: flex; min-height: 48px; align-items: center; padding: 12px 14px; }
.history-summary-table-row > span { border-right: 1px solid var(--border); background: #f7f9fa; }
.history-notes-panel { min-width: 0; overflow: hidden; }
.history-summary-notes { position: relative; display: grid; padding: 0; }
.history-summary-notes textarea { display: block; width: 100%; min-height: 145px; resize: none; padding: 14px 19px 24px; border: 0; border-radius: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; line-height: 1.8; }
.history-summary-notes textarea:focus { border: 0; box-shadow: none; }
.history-summary-notes small { position: absolute; left: 16px; bottom: 5px; min-height: 15px; color: var(--muted); font-size: 11px; font-weight: 400; pointer-events: none; }
.history-notes-resizer { position: absolute; right: 1px; bottom: 1px; display: grid; width: 22px; height: 22px; padding: 0; place-items: end; border: 0; background: transparent; color: #667581; cursor: nwse-resize; touch-action: none; }
.history-notes-resizer svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.workspace-review-panel,
.workspace-package-panel,
.workspace-document-review-panel,
.workspace-pdf-panel,
.transmission-panel { min-width: 0; overflow: hidden; }
.workspace-review-pdf-side { display: grid; gap: 18px; align-self: start; min-width: 0; }
.application-review-column[data-workspace-side="review"] { order: 1; }
.workspace-review-pdf-side[data-workspace-panel="review"] { order: 2; }
[data-workspace-actions="review"] { order: 3; }
.workspace-state-chip { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #dfe4e8; border-radius: 999px; background: #f1f4f5; color: #65727d; }
.workspace-state-chip.ok { border-color: #bfe0d1; background: var(--accent-soft); color: var(--accent-2); }
.workspace-state-chip.warning { border-color: #ead9a9; background: #fff6e8; color: #94661d; }
.workspace-state-chip.blocker { border-color: #efd5d9; background: #fff0f1; color: var(--danger); }
.preflight-list,
.document-package-list { display: grid; }
.document-review-list { display: grid; }
.application-file-list { display: grid; background: #fff; }
.application-file-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); }
.application-file-row:last-child { border-bottom: 0; }
.application-file-row > i { color: #d72323; font-size: 15px; }
.application-file-copy { display: grid; gap: 2px; min-width: 0; }
.application-file-copy strong { overflow: hidden; color: #17202a; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.application-file-copy small { color: var(--muted); font-size: 14px; }
.application-file-actions { display: flex; gap: 4px; }
.application-file-action { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #51606f; cursor: pointer; text-decoration: none; }
.application-file-action:hover { border-color: #a9c9c0; color: var(--accent-2); }
.application-file-action.danger:hover { border-color: #e4b8bd; color: var(--danger); }
.application-file-action:disabled { opacity: .45; cursor: not-allowed; }
.workspace-application-files-panel { min-width: 0; overflow: hidden; }
.application-file-empty { padding: 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.application-file-delete-dialog { width: min(460px, calc(100vw - 32px)); }
.file-explorer-page { display: block; }
.file-browser-files { min-width: 0; overflow: hidden; }
.file-browser-detail-head { min-height: 66px; padding: 13px 16px; }
.file-browser-detail-head h2 { margin-bottom: 2px; font-size: 17px; }
.file-browser-groups { display: grid; }
.file-browser-group { border-bottom: 1px solid var(--border); }
.file-browser-group:last-child { border-bottom: 0; }
.file-browser-group-summary { display: grid; grid-template-columns: minmax(0,1fr) auto 18px; gap: 12px; align-items: center; min-height: 58px; padding: 9px 16px; cursor: pointer; list-style: none; }
.file-browser-group-summary::-webkit-details-marker { display: none; }
.file-browser-group-summary:hover { background: #f7faf9; }
.file-browser-group-summary::after { content: "›"; color: #51606f; font-size: 16px; transform: rotate(90deg); transition: transform .16s ease; }
.file-browser-group[open] > .file-browser-group-summary { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent-2); }
.file-browser-group[open] > .file-browser-group-summary::after { transform: rotate(-90deg); }
.file-browser-group-copy { display: grid; gap: 2px; min-width: 0; }
.file-browser-group-copy strong, .file-browser-group-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-browser-group-copy strong { color: #17202a; font-size: 13px; font-weight: 650; }
.file-browser-group-copy small { color: var(--muted); font-size: 11px; }
.file-browser-group-summary .workspace-state-chip { min-width: 25px; padding-inline: 6px; text-align: center; }
.file-browser-open-application { display: block; padding: 8px 16px 11px 55px; border-top: 1px solid var(--border); color: var(--accent-2); font-size: 11px; font-weight: 650; }
.file-browser-open-application:hover { text-decoration: underline; }
.file-explorer-page .application-file-row { grid-template-columns: 24px minmax(0,1fr) auto; min-height: 54px; padding-inline: 15px 10px; }
.file-explorer-page .application-file-copy strong { font-size: 13px; }
.file-explorer-page .application-file-copy small { font-size: 11px; }
.file-explorer-empty { display: grid; min-height: 180px; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.file-explorer-empty > i { font-size: 30px; }
.file-explorer-empty > strong { font-size: 14px; font-weight: 500; }
@media (max-width: 820px) {
  .mobile-nav { grid-template-columns: repeat(7, 1fr); }
  .mobile-nav a small { font-size: 7px; }
  .file-browser-group-summary { padding-inline: 12px; }
}
.application-create-form.is-automation-locked [data-text-editor-input] { background: #f5f7f8; cursor: not-allowed; }
.document-review-empty,
.document-review-stale { padding: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.document-review-empty.success { color: var(--accent-2); }
.document-review-empty.error,
.document-review-stale { color: #8b611e; background: #fff9ee; }
.document-review-row { display: grid; grid-template-columns: 145px minmax(0,1fr); border-bottom: 1px solid var(--border); }
.document-review-row:last-child { border-bottom: 0; }
.document-review-meta { display: grid; align-content: start; gap: 5px; padding: 14px 16px; border-right: 1px solid var(--border); }
.document-review-meta strong { color: #8b611e; font: 700 11px/1.3 var(--font-display); letter-spacing: .04em; }
.document-review-row.critical .document-review-meta strong,
.document-review-row.error .document-review-meta strong { color: var(--danger); }
.document-review-meta span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.document-review-locations { display: grid; gap: 2px; }
.document-review-copy { display: grid; gap: 5px; padding: 14px 16px; min-width: 0; }
.document-review-copy > strong { color: var(--text); font-size: 14px; font-weight: 600; }
.document-review-copy p { margin: 0; color: #51606f; font-size: 13px; line-height: 1.5; }
.document-review-copy dl { display: grid; gap: 7px; margin: 7px 0 0; }
.document-review-copy dl div { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 8px; }
.document-review-copy dt { color: var(--muted); font-size: 11px; font-weight: 650; }
.document-review-copy dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; }
.workspace-loading { padding: 22px; color: var(--muted); font-size: 13px; }
.preflight-row,
.document-package-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 58px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.preflight-row:last-child,
.document-package-row:last-child { border-bottom: 0; }
.preflight-icon,
.document-package-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #eef6f3; color: var(--accent-2); font-size: 12px; font-weight: 850; }
.preflight-index,
.document-package-index { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.preflight-row.warning .preflight-icon,
.document-package-row.warning .document-package-icon { background: #fff4df; color: #a36b15; }
.preflight-row.blocker .preflight-icon,
.document-package-row.blocker .document-package-icon { background: #fff0f1; color: var(--danger); }
.preflight-copy,
.document-package-copy { display: grid; gap: 3px; min-width: 0; }
.preflight-copy strong,
.document-package-copy strong { color: #51606f; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 12px; line-height: 1.4; font-weight: 650; }
.preflight-copy small,
.document-package-copy small { overflow-wrap: anywhere; color: var(--text); font-family: "Segoe UI", Inter, ui-sans-serif, sans-serif; font-size: 14px; line-height: 1.45; }
.pdf-freshness-message { padding: 14px 18px; border-bottom: 1px solid var(--border); color: #52616e; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.pdf-freshness-message.warning { background: #fff9ee; color: #8b611e; }
.pdf-freshness-message.ok { background: #f4faf8; color: var(--accent-2); }
.pdf-preview-stack { display: grid; gap: 18px; background: transparent; }
.pdf-preview-card { min-width: 0; overflow: hidden; background: #fff; }
.pdf-preview-card-head { width: 100%; }
.pdf-preview-head-actions { display: flex; align-items: center; gap: 8px; }
.pdf-preview-fullscreen { display: inline-grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #51606f; cursor: pointer; }
.pdf-preview-fullscreen:hover { border-color: var(--field-focus-accent); color: var(--field-focus-accent); }
.pdf-preview-fullscreen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pdf-preview-fullscreen-stage { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr); width: 100vw; height: 100vh; min-height: 100vh; overflow: hidden; background: #fff; }
.pdf-preview-fullscreen-stage .pdf-preview-fullscreen-body { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.pdf-preview-fullscreen-stage .pdf-document-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 100%; aspect-ratio: auto; }
.pdf-preview-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #fff; }
.pdf-preview-dialog[open] { display: block; }
.pdf-document-preview { display: block; width: 100%; height: auto; aspect-ratio: var(--pdf-page-ratio, 210 / 297); border: 0; background: #fff; color-scheme: light; }
.pdf-document-preview.whole-document { height: 720px; aspect-ratio: auto; }
.pdf-document-preview + .pdf-document-preview { border-top: 1px solid var(--border); }
.pdf-document-preview p { padding: 20px; color: var(--muted); font-size: 12px; }
.pdf-preview-card-empty,
.pdf-preview-empty { display: grid; min-height: 150px; place-items: center; padding: 24px; color: var(--muted); background: #f8fafb; font-size: 13px; text-align: center; }
.transmission-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.transmission-tabs button { min-height: 44px; border: 0; border-right: 1px solid var(--border); background: #fff; color: #65727d; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.transmission-tabs button:last-child { border-right: 0; }
.transmission-tabs button.active { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 -2px 0 var(--accent); }
.transmission-fields { border-bottom: 1px solid var(--border); }
.transmission-fields .field-row { grid-template-columns: 130px minmax(0,1fr); }
.transmission-fields .field-row > span { padding: 11px 13px; font-size: 12px; }
.transmission-fields .field-row input,
.transmission-fields .field-row select { min-width: 0; padding: 11px 13px; font-size: 14px; }
.email-signature-editor { padding: 0; }
.email-signature-editor .unified-text-editor-surface { min-height: 280px !important; }
.transmission-body-field { display: grid; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: #53616e; font-size: 12px; font-weight: 700; }
.transmission-body-field textarea { width: 100%; resize: vertical; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; outline: 0; color: var(--text); font: inherit; font-size: 13px; line-height: 1.55; }
.transmission-body-field textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.transmission-mail-editor .unified-text-editor-surface { min-height: 300px !important; }
.transmission-attachment-list { display: grid; }
.transmission-attachment-option { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 11px; align-items: center; min-height: 58px; padding: 11px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.transmission-attachment-option:last-child { border-bottom: 0; }
.transmission-attachment-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.transmission-attachment-option span { display: grid; gap: 3px; min-width: 0; }
.transmission-attachment-option strong { color: #51606f; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 12px; line-height: 1.4; font-weight: 650; }
.transmission-attachment-option small { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.transmission-attachment-option.unavailable { cursor: default; opacity: .5; }
.transmission-file-row,
.online-application-block { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.transmission-file-row > span,
.online-application-block > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.online-application-block a { color: var(--accent-2); overflow-wrap: anywhere; }
.transmission-result { padding: 14px 18px; border-bottom: 1px solid var(--border); color: #52616e; font-size: 13px; }
.transmission-result.success { background: var(--accent-soft); color: var(--accent-2); }
.transmission-result.warning { background: #fff9ee; color: #8b611e; }
.transmission-result.error { background: #fff0f1; color: var(--danger); }
.transmission-schedule-controls { display:grid; gap:12px; padding:16px 18px; border-top:1px solid var(--border); }
.transmission-schedule-controls > strong { color:#51606f; font-size:13px; font-weight:650; }
.transmission-schedule-options { display:flex; flex-wrap:wrap; gap:18px; }
.transmission-schedule-options label { display:flex; gap:8px; align-items:center; color:#51606f; font-size:14px; cursor:pointer; }
.transmission-schedule-options input { accent-color:var(--accent); }
.transmission-schedule-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.transmission-schedule-fields label { display:grid; gap:6px; color:#51606f; font-size:12px; }
.transmission-schedule-fields input { width:100%; min-height:40px; padding:8px 11px; border:1px solid var(--border); border-radius:8px; color:var(--text); font:inherit; font-size:14px; }
.scheduled-transmission-card { margin:16px 18px; border:1px solid #ead9a9; border-radius:10px; overflow:hidden; background:#fffaf1; }
.scheduled-transmission-card > div:first-child { display:grid; gap:4px; padding:14px 16px; }
.scheduled-transmission-card > div:first-child > span { color:#94661d; font-size:10px; letter-spacing:.05em; }
.scheduled-transmission-card > div:first-child > strong { color:#17202a; font-size:16px; font-weight:600; }
.scheduled-transmission-card > div:first-child > small { color:var(--danger); font-size:13px; }
.scheduled-transmission-card dl { margin:0; border-top:1px solid #ead9a9; }
.scheduled-transmission-card dl > div { display:grid; grid-template-columns:110px minmax(0,1fr); border-bottom:1px solid #ead9a9; }
.scheduled-transmission-card dt,.scheduled-transmission-card dd { margin:0; padding:10px 13px; font-size:13px; overflow-wrap:anywhere; }
.scheduled-transmission-card dt { color:#65727d; }
.scheduled-transmission-actions { display:flex; flex-wrap:wrap; gap:8px; padding:14px 16px; }
.status-history-detail { color:#51606f; font-size:13px; font-weight:400; line-height:1.5; }
@media (max-width:700px) { .transmission-schedule-fields { grid-template-columns:1fr; } }
.status-history-list { display: grid; }
.status-history-row { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; align-items: center; min-height: 66px; padding: 12px 18px; border-bottom: 1px solid var(--border); color: #4d5c69; }
.status-history-row:last-child { border-bottom: 0; }
.status-history-index { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.status-history-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; }
.status-history-copy strong { color: #51606f; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.4; font-weight: 650; }
.status-history-meta { display: inline-flex; align-items: center; gap: 0; }
.status-history-time { margin-right: 3px; color: var(--text); font-size: 14px; line-height: 1.3; white-space: nowrap; }
.status-history-icon-button { display: inline-grid; width: 30px; height: 32px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #60707d; cursor: pointer; }
.status-history-icon-button:hover { border-color: var(--border); color: var(--accent-2); }
.status-history-icon-button.danger:hover { color: var(--danger); }
.status-history-icon-button:disabled { cursor: default; opacity: .35; }
.status-history-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.status-history-empty { padding: 28px 18px; color: var(--muted); font-size: 13px; text-align: center; }
.status-history-list.compact .status-history-row { grid-template-columns: 25px minmax(0,1fr); gap: 8px; min-height: 58px; padding: 9px 12px; }
.status-history-list.compact .status-history-copy { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.status-history-list.compact .status-history-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-history-list.compact .status-history-meta { justify-self: end; }
.status-history-list.compact .status-history-time { font-family: "Segoe UI", Inter, ui-sans-serif, sans-serif; font-size: 14px; font-weight: 400; }
.status-history-list.compact .status-history-icon-button { width: 27px; height: 29px; }
.history-communications-list { display: grid; }
.history-communication-row { display: grid; grid-template-columns: 145px minmax(135px,.38fr) minmax(0,1.25fr) 34px; column-gap: 8px; align-items: center; min-height: 86px; padding: 13px 12px 13px 17px; border-bottom: 1px solid var(--border); color: inherit; cursor: pointer; }
.history-communication-row:last-child { border-bottom: 0; }
.history-communication-row:hover { background: #f8faf9; }
.history-communication-row.unread { box-shadow: inset 3px 0 0 var(--accent); }
.history-communication-time { color: var(--text); font-family: "Segoe UI", Inter, ui-sans-serif, sans-serif; font-size: 14px; white-space: nowrap; }
.history-communication-sender { display: grid; gap: 3px; min-width: 0; }
.history-communication-sender strong { overflow: hidden; color: #51606f; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.history-communication-sender small { color: #6b7883; font-size: 11px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.history-communication-row.incoming .history-communication-sender small { color: var(--accent-2); }
.history-communication-copy { display: grid; gap: 4px; min-width: 0; }
.history-communication-subject { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.history-communication-excerpt { overflow: hidden; color: #6b7883; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.history-communication-actions { display: flex; justify-content: flex-end; cursor: default; }
.history-communication-actions .row-action-menu summary { width: 30px; height: 30px; font-size: 19px; }
.history-mail-assignment-dialog { width: min(560px, calc(100vw - 32px)); }
.history-communications-empty { display: grid; min-height: 190px; place-items: center; padding: 28px; color: var(--muted); font-size: 13px; text-align: center; }
.history-mail-links { display: grid; }
.history-mail-link-row { display: grid; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.history-mail-link-row:last-child { border-bottom: 0; }
.history-mail-link-dropdown { position: relative; width: 100%; min-width: 0; }
.history-mail-link-select { display: flex; width: 100%; min-width: 0; min-height: 40px; align-items: center; overflow: hidden; cursor: pointer; font-size: 13px; list-style: none; text-overflow: ellipsis; white-space: nowrap; }
.history-mail-link-select::-webkit-details-marker { display: none; }
.history-mail-link-dropdown[open] .history-mail-link-select { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.history-mail-link-options { z-index: 150; display: grid; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(31,45,61,.12); }
.history-mail-link-search { position: sticky; top: -5px; z-index: 1; display: block; padding: 5px; background: #fff; }
.history-mail-link-search input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; outline: 0; color: var(--text); font: inherit; font-size: 13px; }
.history-mail-link-search input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.history-mail-link-option { display: grid; gap: 2px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #263746; cursor: pointer; font: inherit; font-size: 13px; line-height: 1.35; text-align: left; }
.history-mail-link-option strong { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.history-mail-link-option small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-mail-link-option:hover, .history-mail-link-option.is-selected { background: var(--accent-soft); color: var(--accent-2); }
.history-mail-link-option:hover small, .history-mail-link-option.is-selected small { color: #4d7167; }
.history-mail-link-option:disabled { cursor: wait; opacity: .55; }
.history-mail-link-no-results { padding: 13px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.history-mail-links-empty { padding: 17px 15px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.history-action-status { display: block; min-height: 0; padding: 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.history-action-status:not(:empty) { padding-top: 9px; padding-bottom: 10px; border-top: 1px solid var(--border); }
.history-action-status.error { color: var(--danger); }
.followup-dialog { width: min(820px, calc(100vw - 32px)); }
.followup-dialog-content { display: grid; min-width: 0; }
.followup-dialog-fields .field-row { grid-template-columns: 116px minmax(0, 1fr); }
.followup-dialog-editor { min-width: 0; border-top: 1px solid var(--border); }
.followup-dialog-editor .unified-text-editor-surface { min-height: 300px !important; }
.followup-dialog-editor .unified-text-editor-footer { display: none; }
.followup-dialog[aria-busy="true"] .dialog-close { pointer-events: none; opacity: .45; }
.status-change-dialog { width: min(590px, calc(100vw - 32px)); }
.status-change-dialog-content { display: grid; gap: 16px; padding: 20px 22px; }
.status-change-dialog-content label { display: grid; gap: 7px; color: #53616e; font-size: 12px; font-weight: 700; }
.status-change-dialog-content select,
.status-change-dialog-content input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.status-change-dialog-content select:focus,
.status-change-dialog-content input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.status-change-current { display: grid; grid-template-columns: 135px minmax(0,1fr); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.status-change-current span,
.status-change-current strong { padding: 11px 13px; font-size: 13px; }
.status-change-current span { background: #f7f9fa; color: #536170; font-weight: 700; }
.status-change-current strong { font-weight: 500; }
.status-change-dialog-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-date-dialog { width: min(590px, calc(100vw - 32px)); }
.history-date-dialog-content { display: grid; gap: 16px; padding: 20px 22px; }
.history-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.history-date-fields label { display: grid; gap: 7px; color: #53616e; font-size: 12px; font-weight: 700; }
.history-date-fields input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.history-date-fields input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.history-date-dialog-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-delete-dialog { width: min(590px, calc(100vw - 32px)); }
.history-delete-dialog-content { display: grid; gap: 12px; padding: 20px 22px; }
.history-delete-dialog-content p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 620px) {
  .status-history-copy { grid-template-columns: 1fr; gap: 5px; }
  .status-history-meta { justify-self: start; }
  .history-communication-row { grid-template-columns: 125px minmax(0,1fr) 24px; }
  .history-communication-copy { grid-column: 1 / -1; }
  .history-date-fields { grid-template-columns: 1fr; }
}
.application-analysis-column { min-width: 0; min-height: 0; }
.application-cv-side-column,
.application-cv-column { display: grid; min-width: 0; gap: 18px; align-content: start; }
.application-cv-summary-panel,
.application-cv-preview-panel,
.application-cv-panel { min-width: 0; overflow: hidden; }
.application-cv-preview-panel { position: relative; }
.application-cv-summary { display: grid; }
.application-cv-summary > div { display: grid; gap: 4px; min-height: 62px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.application-cv-summary > div:last-child { border-bottom: 0; }
.application-cv-summary span { color: #596877; font-size: 12px; font-weight: 650; }
.application-cv-summary strong { overflow-wrap: anywhere; color: var(--text); font-size: 14px; font-weight: 400; }
.application-cv-insights-panel { min-width: 0; overflow: hidden; }
.application-cv-insights-embedded { border-top: 18px solid var(--bg); }
.application-cv-insights-embedded .application-cv-insights-content { border-top: 1px solid var(--border); }
.application-cv-insights-head { display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px; gap: 12px; align-items: center; }
.application-cv-insights-head > div { min-width: 0; text-align: left; }
.application-cv-insights-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-cv-insights-content { min-height: 246px; background: #fff; }
.application-cv-insight-list { display: grid; margin: 0; padding: 0; list-style: none; }
.application-cv-insight-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.application-cv-insight-list li > span { color: #596877; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.application-cv-insight-list p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.42; }
.application-cv-insight-empty { margin: 0; padding: 24px 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.application-cv-side-column .application-cv-insight-list p,
.application-cv-side-column .application-cv-insight-empty,
.application-cv-insights-embedded .application-cv-insight-list p,
.application-cv-insights-embedded .application-cv-insight-empty { font-size: 14px; }
.settings-legacy-note { margin: 0; padding: 11px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.45; }
.application-cv-preview { min-height: 510px; background: #fff; }
.application-cv-preview .pdf-document-preview { display: block; width: 100%; min-height: 510px; border: 0; background: #fff; }
.application-cv-notice { padding: 28px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.application-cv-stations { display: grid; }
.application-cv-station { min-width: 0; border-top: 1px solid var(--border); background: #fff; }
.application-cv-station:first-child { border-top: 0; }
.application-cv-station-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; background: #f8fafb; }
.application-cv-station-meta { display: grid; gap: 2px; min-width: 0; }
.application-cv-station-meta strong { color: var(--text); font-size: 14px; }
.application-cv-station-meta span { color: #4d5c69; font-size: 13px; }
.application-cv-station-meta small { color: var(--muted); font-size: 12px; }
.application-cv-station-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.application-cv-head-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.application-cv-station-controls .icon-button { width: 31px; height: 31px; min-height: 31px; padding: 0; font-size: 15px; }
.application-cv-station-library { color: var(--accent-2); }
.application-cv-bullet-library-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); overflow: hidden; }
.application-cv-bullet-library-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.application-cv-bullet-library-list { display: grid; align-content: start; min-height: 140px; overflow-y: auto; padding: 12px 0; }
.application-cv-bullet-library-option { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: center; gap: 14px; width: 100%; padding: 12px 18px 12px 22px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: 400 14px/1.45 "Segoe UI", Arial, sans-serif; }
.application-cv-bullet-library-option:first-child { border-top: 1px solid var(--border); }
.application-cv-bullet-library-option:hover { background: var(--accent-soft); }
.application-cv-bullet-library-option i { color: var(--accent-2); text-align: center; }
.application-cv-bullet-library-empty { margin: 0; padding: 28px 22px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.selection-audit-dialog { width: min(960px, calc(100vw - 32px)); max-height: min(880px, calc(100vh - 32px)); overflow: hidden; }
.selection-audit-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.selection-audit-content { display: grid; align-content: start; gap: 18px; min-height: 180px; overflow-y: auto; padding: 18px 22px 24px; background: var(--bg); }
.selection-audit-section { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.selection-audit-section > h3 { margin: 0 0 2px; color: var(--text); font-size: 14px; }
.selection-audit-summary { border-color: #bfd9cf; background: var(--accent-soft); }
.selection-audit-details { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 12px; line-height: 1.45; }
.selection-audit-details dt { color: var(--muted); font-weight: 600; }
.selection-audit-details dd { min-width: 0; margin: 0; color: var(--text); overflow-wrap: anywhere; }
.selection-audit-item { display: grid; gap: 9px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.selection-audit-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.selection-audit-item-labels { display: grid; gap: 3px; min-width: 0; }
.selection-audit-item-labels strong { color: var(--text); font-size: 13px; line-height: 1.45; }
.selection-audit-item-labels small { color: var(--muted); font-size: 11px; }
.selection-audit-badges { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.selection-audit-badges span { padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.selection-audit-reason, .selection-audit-note, .selection-audit-empty, .selection-audit-education-candidate { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.selection-audit-note { padding: 8px 10px; border-left: 3px solid #c79b30; background: #fff9e9; color: #6d571e; }
.selection-audit-empty.error { color: var(--danger); }
.selection-audit-evidence { display: grid; gap: 6px; padding: 10px; border-radius: 7px; background: var(--surface-muted, #f6f8f9); }
.selection-audit-evidence > strong { color: var(--text); font-size: 11px; text-transform: uppercase; }
.selection-audit-evidence > div { display: grid; gap: 2px; }
.selection-audit-evidence span { color: var(--text); font-size: 12px; }
.selection-audit-evidence small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.selection-audit-group { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.selection-audit-group > summary, .selection-audit-technical > summary, .selection-audit-raw > summary { padding: 10px 12px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 600; }
.selection-audit-group[open] > summary { border-bottom: 1px solid var(--border); }
.selection-audit-group > .selection-audit-item { margin: 10px; }
.selection-audit-rules { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--text); font-size: 12px; line-height: 1.5; }
.selection-audit-technical, .selection-audit-raw { border: 1px solid var(--border); border-radius: 8px; }
.selection-audit-technical > .selection-audit-details { padding: 10px 12px; border-top: 1px solid var(--border); }
.selection-audit-raw { margin: 10px; }
.selection-audit-raw pre { max-height: 320px; margin: 0; overflow: auto; padding: 12px; border-top: 1px solid var(--border); background: #17202a; color: #e9eef2; font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .selection-audit-content { padding: 14px; }
  .selection-audit-details { grid-template-columns: 1fr; gap: 2px; }
  .selection-audit-details dd { margin-bottom: 6px; }
  .selection-audit-item-head { display: grid; }
  .selection-audit-badges { justify-content: flex-start; }
}
.application-stage-automation-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.application-stage-automation-status.is-running { color: var(--accent-2); }
.application-stage-automation-status.success { color: var(--accent-2); }
.application-stage-automation-status.error { color: var(--danger); }
.application-side-toggle.is-running { border-color: #b9cec6; background: var(--accent-soft); color: var(--accent-2); }
.application-cv-enabled { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: #4d5c69; font-size: 12px; }
.application-cv-enabled input { accent-color: var(--accent); }
.application-cv-bullets { display: grid; }
.application-cv-bullet-list { display: grid; }
.application-cv-bullets label { display: grid; grid-template-columns: 38px minmax(0,1fr) 42px; min-height: 38px; border-top: 1px solid var(--border); }
.application-cv-bullet-content { display: grid; min-width: 0; width: 100%; align-items: center; }
.application-cv-bullets textarea { box-sizing: border-box; display: block; width: 100%; min-height: 38px; height: 38px; overflow: hidden; align-self: stretch; resize: none; justify-self: stretch; padding: 9px 11px; border: 0; border-radius: 0; outline: 0; color: var(--text); background: #fff; font: 400 14px/20px "Segoe UI", Arial, sans-serif; }
.application-cv-bullet-actions { display: flex; position: relative; align-items: center; justify-content: center; gap: 4px; overflow: visible; border-left: 1px solid var(--border); }
.application-cv-bullet-actions > button,
.application-cv-bullet-add { display: inline-grid; place-items: center; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 0; color: #657480; background: transparent; font: 400 18px/1 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.application-cv-bullet-actions > button:hover,
.application-cv-bullet-add:hover { background: #eef2f4; color: var(--text); }
.application-cv-bullet-menu summary { width: 28px; height: 28px; font-size: 18px; }
.application-cv-bullet-menu .row-action-popover { top: calc(100% + 4px); z-index: 30; }
.application-cv-bullet-menu button:disabled { opacity: .42; cursor: default; }
.application-cv-bullet-menu button:disabled:hover { background: transparent; color: #334150; }
.application-cv-bullet-rejected-copy { display: none; min-height: 38px; padding: 7px 11px; color: #aa3945; background: #fff7f7; font: 400 14px/1.4 "Segoe UI", Arial, sans-serif; text-decoration: line-through; text-decoration-color: #c43d49; text-decoration-thickness: 1.5px; }
.application-cv-bullet-list label.proposal-rejected textarea { display: none; }
.application-cv-bullet-list label.proposal-rejected .application-cv-bullet-rejected-copy:not([hidden]) { display: block; }
.application-cv-bullet-list label.proposal-replaced textarea { display: none; }
.application-cv-bullet-list label.proposal-replaced .application-cv-bullet-rejected-copy:not([hidden]) { display: block; color: #7a621d; background: #fffaf0; text-decoration-color: #bb8a20; }
.application-cv-bullet-list label.proposal-added textarea { background: #f3f8f6; }
.application-cv-bullet-list label.proposal-add textarea { background: #edf8f1; color: #145d43; }
.application-cv-bullet-list label.proposal-rewrite textarea { background: #fff9eb; color: #6f5818; }
.application-cv-bullet-list label.proposal-add .application-cv-decision-note { color: #18704f; }
.application-cv-bullet-handle { display: grid; width: 38px; min-height: 38px; place-items: center; padding: 0; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; color: #8a959f; cursor: grab !important; font: 400 17px/1 "Segoe UI", Arial, sans-serif; letter-spacing: -4px; }
.application-cv-bullet-handle:hover { background: #eef4f1; color: var(--accent-2); }
.application-cv-bullet-handle:active { cursor: grabbing !important; }
.application-cv-bullet-remove { font-size: 18px !important; }
.application-cv-bullet-add-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 42px; min-height: 38px; border-top: 1px solid var(--border); }
.application-cv-bullet-add-handle { display: grid; min-height: 38px; place-items: center; border-right: 1px solid var(--border); color: #a7b0b8; font: 400 17px/1 "Segoe UI", Arial, sans-serif; letter-spacing: -4px; }
.application-cv-bullet-add-row .application-cv-bullet-add-field { min-height: 38px; }
.application-cv-bullet-add-actions { min-height: 38px; }
.application-cv-bullet-list label.dragging { opacity: .48; }
.profile-visibility-control { display: flex; align-items: center; gap: 9px; }
.profile-visibility-control input { accent-color: var(--accent); }
.profile-visibility-control small { color: var(--muted); font-size: 13px; }
.application-cv-bullets textarea:focus { box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.application-cv-competency-panel { min-width: 0; overflow: hidden; }
.application-cv-competencies { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.application-cv-competency-group { min-width: 0; border-right: 1px solid var(--border); }
.application-cv-competency-group:last-child { border-right: 0; }
.application-cv-competency-group-title { display: grid; grid-template-columns: minmax(74px,1fr) auto minmax(74px,1fr); align-items: center; gap: 8px; min-height: 48px; padding: 7px 10px 7px 14px; border-bottom: 1px solid var(--border); color: #4e5c69; font: 650 12px/1.35 "Segoe UI", Arial, sans-serif; }
.application-cv-competency-group-title > strong { justify-self: center; text-transform: uppercase; }
.application-cv-category-visibility { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--muted); font: 400 11px/1.35 "Segoe UI", Arial, sans-serif; text-transform: none; cursor: pointer; }
.application-cv-category-visibility input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.application-cv-category-position { display: flex; align-items: center; justify-self: end; gap: 3px; }
.application-cv-category-position .icon-button { width: 27px; height: 27px; min-height: 27px; padding: 0; font-size: 11px; }
.application-cv-competency-group.category-hidden .application-cv-competency-group-list { opacity: .46; }
.application-cv-competency-group-list { display: grid; }
.application-cv-competency { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 58px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--border); }
.application-cv-competency:last-child { border-bottom: 0; }
.application-cv-competency-selection { display: flex; min-width: 0; align-items: center; gap: 10px; cursor: pointer; }
.application-cv-competency-selection input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.application-cv-competency-selection input:disabled { cursor: not-allowed; }
.application-cv-competency-selection > span { display: grid; min-width: 0; gap: 2px; }
.application-cv-competency-selection strong { overflow: hidden; color: var(--text); font: 400 13px/1.35 "Segoe UI", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.application-cv-competency-selection small { color: var(--muted); font: 400 12px/1.35 "Segoe UI", Arial, sans-serif; }
.application-cv-competency-controls { display: flex; align-items: center; gap: 6px; }
.application-cv-competency-controls .icon-button { width: 30px; height: 30px; min-height: 30px; padding: 0; font-size: 14px; }
.application-cv-competency-suggestion { color: var(--accent-2); font-size: 11px; font-weight: 650; white-space: nowrap; }
.application-cv-page-information { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.application-cv-page-information > label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 58px; padding: 10px 16px; border-right: 1px solid var(--border); cursor: pointer; }
.application-cv-page-information > label:last-child { border-right: 0; }
.application-cv-page-information input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.application-cv-page-information label > span { display: grid; gap: 2px; }
.application-cv-page-information strong { color: var(--text); font: 400 13px/1.35 "Segoe UI", Arial, sans-serif; }
.application-cv-page-information small { color: var(--muted); font: 400 12px/1.35 "Segoe UI", Arial, sans-serif; }
.application-cv-page-information i { color: var(--muted); font: normal 400 11px/1.35 "Segoe UI", Arial, sans-serif; }
.application-analysis-panel {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  overflow: hidden;
}
.application-analysis-panel > .panel-head { flex: 0 0 auto; }
.application-analysis-content {
  display: grid;
  align-content: start;
  gap: 0;
  overflow: visible;
}
.application-analysis-section,
.application-analysis-content > .canonical-job-section { border-top: 1px solid var(--border); }
.application-analysis-section:first-child { border-top: 0; }
.application-analysis-section > .eyebrow,
.application-analysis-content > .canonical-job-section > .eyebrow { display: block; padding: 14px 18px 9px; color: var(--accent-2); }
.application-analysis-section-body,
.application-analysis-content .canonical-job-section-body { display: grid; }
.application-analysis-section-body > div,
.application-analysis-content .canonical-job-section-body > div { display: grid; grid-template-columns: minmax(165px, .42fr) minmax(0, 1fr); min-height: 48px; border-top: 1px solid var(--border); }
.application-analysis-section-body > div > strong,
.application-analysis-content .canonical-job-section-body > div > strong { padding: 13px 15px 13px 18px; border-right: 1px solid var(--border); background: #f8fafb; color: #596877; font: 700 12px/1.45 "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; }
.application-analysis-section-body > div > span,
.application-analysis-section-body > div > ul,
.application-analysis-content .canonical-job-section-body > div > span,
.application-analysis-content .canonical-job-section-body > div > ul { margin: 0; padding: 13px 18px; color: var(--text); font: 400 14px/1.55 "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; }
.application-analysis-section-body > div > ul,
.application-analysis-content .canonical-job-section-body > div > ul { padding-left: 36px; }
.application-analysis-section-body > div > ul li + li,
.application-analysis-content .canonical-job-section-body > div > ul li + li { margin-top: 5px; }
.application-analysis-section-body > div > .matching-personal-fit,
.application-analysis-content .canonical-job-section-body > div > .matching-personal-fit { margin: 0; padding: 13px 18px; color: var(--text); font: 400 14px/1.55 "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; }
.transmission-confirm-dialog { width: min(560px, calc(100vw - 32px)); }
.transmission-confirm-content { padding: 18px 22px; }
.transmission-confirm-content dl { margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.transmission-confirm-content dl > div { display: grid; grid-template-columns: 105px minmax(0,1fr); border-bottom: 1px solid var(--border); }
.transmission-confirm-content dl > div:last-child { border-bottom: 0; }
.transmission-confirm-content dt, .transmission-confirm-content dd { margin: 0; padding: 11px 13px; font-size: 13px; }
.transmission-confirm-content dt { color: #536170; background: #f7f9fa; font-weight: 700; }
.transmission-confirm-content dd { overflow-wrap: anywhere; }
.transmission-confirm-attachments { margin-top: 17px; }
.transmission-confirm-attachments > span { color: #536170; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.transmission-confirm-attachments ul { margin: 9px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.transmission-confirm-attachments li { padding: 9px 0; border-bottom: 1px solid var(--border); color: #465462; font-size: 13px; }
.application-reset-dialog-copy { padding: 20px 22px; color: #4d5c69; font-size: 13px; line-height: 1.6; }
.application-workflow-bar { position: sticky; top: 76px; z-index: 19; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; min-height: 54px; padding: 0 max(34px, calc((100% - 1980px) / 2 + 34px)); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.workspace-mode-navigation { display: flex; min-width: 0; align-items: stretch; justify-content: flex-start; overflow-x: auto; }
.workspace-mode-navigation .workspace-interview-link { display: inline-flex; align-items: center; min-height: 53px; padding: 0 17px; color: #147766; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.workspace-mode-navigation button { position: relative; min-height: 53px; padding: 0 17px; border: 0; background: transparent; color: #8a959e; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.workspace-mode-navigation button:first-child { padding-left: 0; }
.workspace-mode-navigation .workspace-mode-number { display: inline-grid; width: 19px; height: 19px; margin-right: 7px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; line-height: 1; letter-spacing: 0; }
.workspace-followup-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-left: 7px; padding: 2px 7px; border: 1px solid #bfe0d1; border-radius: 999px; background: #edf6f2; color: var(--accent-2); line-height: 1; }
.workspace-followup-badge[hidden] { display: none; }
.workspace-followup-badge.due-today,
.workspace-followup-badge.overdue { border-color: #efd5d9; background: #fff0f1; color: var(--danger); }
.workspace-mode-navigation button:hover { background: transparent; color: var(--accent-2); }
.workspace-mode-navigation button.active { background: transparent; color: var(--accent-2); box-shadow: none; }
.workspace-mode-navigation button.active::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 2px; background: var(--accent); }
.workspace-save-state { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 10px; }
.workspace-save-state [data-workspace-save-state].saving { color: #8b611e; }
.workspace-save-state [data-workspace-save-state].error { color: var(--danger); }
.workspace-save-state .save-state-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; max-width: none; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; background: #f2f4f6; color: var(--muted); font-size: 11px; }
.workspace-save-state .save-state-chip::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.workspace-save-state .save-state-chip.success { border-color: #bfe0d1; background: #edf7f3; color: var(--accent-2); }
.workspace-save-state .save-state-chip.warning { border-color: #ead9a9; background: #fff7e8; color: #b57b1d; }
.workspace-save-state .save-state-chip.locked{border-color:#d7232347;background:#d723238c;color:#fff;font-size:13px;font-weight:400}
.workspace-save-state .save-state-chip.locked::before{display:none}
.content:has(.application-create-form) .detail-heading { margin-bottom: 30px; font-family: 'Plus Jakarta Sans', sans-serif; }
.content:has(.application-create-form) .detail-heading .eyebrow.accent { display: flex; align-items: center; gap: 15px; color: #14745f; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; }
.content:has(.application-create-form) .detail-heading .eyebrow.accent::after { content: ""; width: 49px; height: 1px; background: #80bfb2; }
.content:has(.application-create-form) .detail-heading h1 { margin: 12px 0 2px; color: #122735; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(34px, 3vw, 46px); line-height: 1.12; font-weight: 400; letter-spacing: -.045em; }
.content > .page-heading,
.content > .detail-heading {
  margin-bottom: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.content > .page-heading .eyebrow.accent,
.content > .detail-heading .eyebrow.accent {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #14745f;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .055em;
}
.content > .page-heading .eyebrow.accent::after,
.content > .detail-heading .eyebrow.accent::after {
  content: "";
  width: 49px;
  height: 1px;
  background: #80bfb2;
}
.content > .page-heading h1,
.content > .detail-heading h1 {
  margin: 12px 0 2px;
  color: #122735;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -.045em;
}
/* Shared panel-header design contract. New panels inherit this typography by using .panel-head. */
.panel-head {
  padding-top: 17px;
  padding-bottom: 17px;
}
.panel-head .section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .055em;
}
.panel-head h2 {
  margin: 4px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}
/* Keep the job drawer border aligned with the responsive application topbar. */
:root { --topbar-height: 76px; }
.topbar { height: var(--topbar-height); }
.job-detail-drawer > .job-detail-drawer-head {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  padding: 0 20px;
}
.job-detail-drawer-head .assistant-drawer-title { overflow: hidden; padding-left: 0; }
.job-detail-drawer-head .section-label,
.job-detail-drawer-head h2 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-detail-drawer-head > .icon-button { flex-shrink: 0; }
@media (max-width: 820px) { :root { --topbar-height: 64px; } }
.topbar-title > .eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
}
.topbar-breadcrumb {
  font-family: 'DM Sans', sans-serif;
}
.topbar-breadcrumb a {
  color: #7a8c90;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
}
.topbar-breadcrumb strong {
  color: #111820;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.status-chip, .workspace-state-chip, .workspace-followup-badge, .source-badge { font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.text-favorites-picker-dialog { width: min(820px, calc(100vw - 32px)); height: min(720px, calc(100vh - 32px)); overflow: hidden !important; }
.text-favorites-picker-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; }
.text-favorites-picker-content { min-height: 0; overflow-y: auto; padding: 18px 22px; background: #f8fafb; }
.text-favorites-picker-loading, .text-favorites-picker-empty { padding: 36px 18px; color: var(--muted); font-size: 13px; text-align: center; }
.text-favorites-picker-group { display: grid; gap: 9px; }
.text-favorites-picker-group + .text-favorites-picker-group { margin-top: 22px; }
.text-favorites-picker-group h3 { margin: 0; color: #344352; font-size: 14px; }
.text-favorites-picker-group > p { margin: -4px 0 2px; color: var(--muted); font-size: 12px; }
.text-favorite-choice { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 12px 13px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; }
.text-favorite-choice:hover { border-color: #bcd5ce; background: #fbfefd; }
.text-favorite-choice:has(input:checked) { border-color: #a9c9c0; background: var(--accent-soft); }
.text-favorite-choice input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.text-favorite-choice-copy { display: grid; gap: 4px; min-width: 0; }
.text-favorite-choice-copy strong { color: #334250; font-size: 13px; font-weight: 650; line-height: 1.5; }
.text-favorite-choice-copy small { color: var(--muted); font-size: 11px; }
.text-favorite-choice-required { color: #8b611e; font-size: 11px; font-weight: 750; white-space: nowrap; }
.text-favorites-picker-actions { align-items: center; }
.text-favorites-picker-actions > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.letter-template-apply-dialog { width: min(700px, calc(100vw - 32px)); }
.letter-template-apply-content { display: grid; gap: 14px; padding: 18px 22px 4px; }
.letter-template-apply-content label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.letter-template-apply-content select { width: 100%; min-height: 43px; padding: 9px 34px 9px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.letter-template-apply-content pre { min-height: 250px; max-height: 440px; margin: 0; overflow: auto; padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text); font: 400 13px/1.65 "Segoe UI", Arial, sans-serif; white-space: pre-wrap; }
.salutation-control { display: grid; grid-template-columns: minmax(0,1fr) auto; min-width: 0; background: #fff; }
.salutation-control > textarea { grid-column: 1; width: 100%; min-width: 0; min-height: 58px; padding: 9px 16px; resize: vertical; border: 0; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; line-height: 20px; }
.salutation-control > textarea:focus { background: #fbfefd; box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.salutation-modes { display: flex; align-items: center; gap: 5px; padding: 8px 10px; }
.salutation-modes label { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 7px; border: 1px solid var(--border); border-radius: 7px; color: #53616f; cursor: pointer; font-size: 11px; font-weight: 700; }
.salutation-modes label:has(input:checked) { border-color: #a9c9c0; background: var(--accent-soft); color: var(--accent-2); }
.salutation-modes input { width: 14px; height: 14px; min-height: 14px; padding: 0; accent-color: var(--accent); box-shadow: none !important; }
.basic-data-panel {
  align-self: start;
}
.basic-data-panel .panel-head {
  background: #fff;
}
.application-side-panel-head { gap: 12px; }
.application-side-head-actions { display: flex; align-items: center; gap: 8px; }
.application-side-toggle { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--accent-2); cursor: pointer; }
.application-side-toggle svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.application-side-toggle:hover { border-color: #b9cec6; background: var(--accent-soft); }
.side-job-description { height: 720px; min-height: 720px; max-height: 720px; padding: 20px 22px; }
.side-job-description span { font-size: 15px; line-height: 1.7; }
.basic-data-panel .field-row {
  grid-template-columns: minmax(172px, .48fr) minmax(0, 1fr);
}
.basic-data-panel .field-row > span {
  padding: 11px 13px;
  font-size: 13px;
}
.basic-data-panel .field-row input,
.basic-data-panel .field-row select {
  min-width: 0;
  padding: 11px 13px;
  font-size: 14px;
}
.basic-data-panel .application-contact-row input { font-size:14px; }
.basic-data-panel .field-table > .field-row:last-child { border-bottom: 1px solid var(--border); }
.application-job-analysis-row { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border: 0; border-top: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; font: 400 13px/1.4 "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; text-align: left; text-decoration: none; }
.application-job-analysis-row:hover { background: #f7faf9; color: var(--accent-2); }
.application-job-analysis-row > i { color: var(--muted); font: normal 400 18px/1 "Segoe UI", Arial, sans-serif; }
.basic-data-panel .field-row select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 19px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  appearance: none;
}
.basic-data-panel .field-row select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2316735d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.source-url-control { display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: stretch; min-width: 0; }
.source-url-control input { grid-column: 1 / -1; grid-row: 1; padding-right: 48px !important; }
.source-url-control a { grid-column: 2; grid-row: 1; z-index: 1; display: grid; place-items: center; color: #52616e; font-size: 13px; }
.source-url-control a:hover { color: var(--accent-2); }
.source-url-control a.disabled { pointer-events: none; color: #b2bac1; }
@media (max-width: 1750px) {
  .application-create-workspace { grid-template-columns: 1fr; }
  .basic-data-panel {
    grid-column: auto;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .basic-data-panel .panel-head { position: static; }
  .basic-data-panel .field-row {
    grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .application-workflow-bar { grid-template-columns: minmax(0,1fr) auto; padding-inline: 16px; }
  .workspace-mode-navigation { width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .workspace-mode-navigation::-webkit-scrollbar { display: none; }
  .workspace-mode-navigation button { flex: 0 0 auto; padding-inline: 11px; }
}
@media (max-width: 900px) {
  .application-create-workspace { grid-template-columns: 1fr; }
  .basic-data-panel { grid-column: auto; }
}
@media (max-width: 820px) {
  .letter-assistant-column { inset: 0 0 0 auto; width: min(440px, 100vw); }
  .application-workflow-bar { top: 64px; padding-inline: 10px; }
  .workspace-save-state .button { display: none; }
  .workspace-save-state { padding-left: 8px; }
}
@media (max-width: 760px) {
  .application-cv-competencies { grid-template-columns: 1fr; }
  .application-cv-competency-group { border-right: 0; border-bottom: 1px solid var(--border); }
  .application-cv-competency-group:last-child { border-bottom: 0; }
  .application-cv-page-information { grid-template-columns: 1fr; }
  .application-cv-page-information > label { border-right: 0; border-bottom: 1px solid var(--border); }
  .application-cv-page-information > label:last-child { border-bottom: 0; }
  .candidate-page-information-fields { grid-template-columns: 1fr; }
  .candidate-page-information-fields > :nth-child(2) { border-top: 1px solid var(--border); border-left: 0; }
  .basic-data-panel .field-row { grid-template-columns: 1fr; }
  .basic-data-panel .field-row > span { font-size: 13px; }
  .salutation-control { grid-template-columns: 1fr; }
  .salutation-modes { grid-column: 1; border-top: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .letter-assistant-column { grid-template-columns: 1fr; }
}

/* v17: compact central career table */
.central-career-table { overflow-x: auto; }
.central-career-list { display: block; }
.central-career-entry { display: block; border-bottom: 1px solid var(--border); }
.central-career-entry:last-child { border-bottom: 0; }
.central-career-row { display: grid; grid-template-columns: minmax(260px,1fr) minmax(340px,1fr) minmax(180px,.65fr) 54px; gap: 16px; align-items: start; min-width: 950px; min-height: 96px; padding: 14px 18px; color: #465462; font-size: 13px; }
.central-career-head { min-height: 42px; background: #f6f8fa; color: #64717d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.central-station-fields, .central-period-fields { display: grid; gap: 8px; min-width: 0; }
.central-period-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
.central-station-fields label, .central-period-fields label { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 8px; min-width: 0; }
.central-station-fields label { display: block; }
.central-period-fields label:first-child { grid-template-columns: 28px minmax(0,1fr); }
.central-period-fields label:last-child { grid-template-columns: 22px minmax(0,1fr); }
.central-period-fields .career-current-toggle { grid-column: 1 / -1; display: inline-flex; grid-template-columns: none; align-items: center; justify-self: start; gap: 8px; min-height: 24px; color: #465462; font-size: 13px; }
.central-period-fields .career-current-toggle input { width: 16px; min-height: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
.central-period-fields input:disabled { color: #89939d; background: #f3f5f6; cursor: not-allowed; }
.central-station-fields small, .central-period-fields small { color: #6b7782; font-size: 11px; font-weight: 700; }
.central-station-fields input, .central-period-fields input { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 13px; }
.career-location-input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; outline: 0; font: inherit; font-size: 13px; }
.central-station-fields input:focus, .central-period-fields input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.central-bullet-summary { display: block; min-width: 0; }
.central-career-actions { display: flex; align-self: stretch; justify-content: center; align-items: center; }
.central-career-actions .career-entry-remove { grid-column: auto; justify-self: auto; }
.row-action-popover button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--danger); cursor: pointer; text-align: left; font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; }
.row-action-popover button:hover { background: #fff3f4; }
.row-action-popover .menu-action { color: #334150; }
.row-action-popover .menu-action:hover { background: var(--accent-soft); color: var(--accent-2); }
.profile-list-actions .menu-action { color: #334150; }
.profile-list-actions .menu-action:hover { background: var(--accent-soft); color: var(--accent-2); }
.row-action-popover .menu-danger { color: var(--danger); }
.row-action-popover .menu-danger:hover { background: #fff3f4; color: var(--danger); }
.central-inline-bullet-editor .bullet-add { margin-top: 2px; }
.central-career-entry:last-child .row-action-popover { top: auto; bottom: calc(100% + 6px); }
.settings-overview { overflow: hidden; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: 0; }
.settings-row:not(.pending):hover { background: #f8fafb; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { color: var(--text); font-size: 15px; }
.settings-row small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.settings-row i { color: var(--accent-2); font-style: normal; font-size: 13px; font-weight: 650; white-space: nowrap; }
.settings-row .row-arrow { font-size: 22px; }
.settings-row.pending { background: #fafbfc; opacity: .68; }
.settings-row.pending i { color: var(--muted-2); }

.job-source-overview { overflow: hidden; }
.job-intake-automation { margin-bottom: 16px; overflow: hidden; }
.job-intake-automation .panel-actions { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }
.job-availability-dialog { width: min(680px, calc(100vw - 32px)); overflow: hidden; }
.job-availability-dialog-body { display: grid; gap: 14px; padding: 18px 22px; }
.job-availability-dialog-body label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.job-availability-dialog-body label small { color: var(--muted-2); font-size: 11px; font-weight: 400; line-height: 1.45; }
.job-availability-dialog-body input,
.job-availability-dialog-body textarea { width: 100%; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; resize: vertical; }
.job-availability-dialog-body input { min-height: 44px; }
.job-availability-dialog-body input:focus { outline: 0; border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.job-availability-dialog-body input[readonly],
.job-availability-dialog-body textarea[readonly] { background: #f7f9fa; color: #3d4a57; }
.job-intake-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.job-intake-head-actions .compact-toggle { min-height: 34px; }
.job-intake-automation .field-row,
.job-intake-automation .field-row > span { background: #fff; }
.job-intake-automation-state { display: flex; min-width: 0; padding: 10px 14px; flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 2px; text-align: left; }
.job-intake-automation-state b { font-size: 13px; }
.job-intake-automation-state small, .job-intake-automation-state em { color: var(--muted); font-size: 11px; font-style: normal; }
.job-source-row { display: grid; grid-template-columns: minmax(280px, 1.6fr) minmax(170px, .75fr) minmax(110px, .45fr) 24px; align-items: center; gap: 18px; min-height: 70px; padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text); }
.job-source-row:last-child { border-bottom: 0; }
.job-source-row:not(.is-head):hover { background: #f8fafb; }
.job-source-row.is-head { min-height: 38px; padding-block: 8px; background: #f7f9fa; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.job-source-row strong, .job-source-row small { display: block; }
.job-source-row strong { font-size: 14px; font-weight: 650; }
.job-source-row small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.job-source-row > :nth-child(3) { font-size: 14px; }
.job-source-exclusions > label { display: grid; gap: 8px; padding: 18px 22px 22px; }
.job-source-exclusions > label > span { color: #53615e; font-size: 13px; font-weight: 650; }
.job-source-exclusions textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 12px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: 400 14px/1.55 var(--font-sans); }
.job-source-exclusions textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(22,130,99,.08); }
.job-source-exclusions small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.job-source-row .row-arrow { color: var(--accent-2); font-size: 22px; text-align: right; }
.job-source-status { display: inline-flex; width: fit-content; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; }
.job-source-status.is-active { background: #e8f4ef; color: #12644f; }
.job-source-status.is-off { background: #eef1f3; color: #66737f; }
.job-source-status.is-incomplete { background: #fff3dc; color: #8a5b10; }
.job-source-settings-table .field-row { align-items: stretch; }
.job-source-settings-table .field-row > span:first-child { align-content: center; }
.job-source-settings-table .field-row input,
.job-source-settings-table .field-row select { font-size: 13px; }
.job-source-toggle-cell, .job-source-secret-cell, .job-source-option-list, .job-source-registry-list, .job-source-settings-table .field-row > span:last-child { display: flex; min-width: 0; padding: 10px 14px; align-items: center; }
.job-source-secret-cell { flex-direction: column; align-items: stretch; gap: 5px; }
.job-source-secret-cell input { width: 100%; padding: 0 !important; }
.job-source-secret-cell small { color: var(--muted); font-size: 11px; }
.job-source-option-list { flex-wrap: wrap; gap: 12px 22px; }
.job-source-option-list label { display: inline-flex; align-items: center; gap: 7px; color: #465462; font-size: 13px; }
.job-source-option-list input { width: 16px; min-height: 16px; height: 16px; padding: 0; accent-color: var(--accent); box-shadow: none; }
.job-source-registry-list { flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.job-source-registry-list em { font-style: normal; }
.job-source-phase-note { margin-top: 14px; padding: 15px 18px; border-color: #e2d5bb; background: #fffaf0; }
.job-source-phase-note strong { font-size: 13px; }
.job-source-phase-note p { margin: 4px 0 0; color: #6e6251; font-size: 12px; }
.job-source-discovery-terms { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px; }
.job-source-discovery-terms > span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; background: #fafbfc; color: #43515f; font-size: 12px; }
.job-source-discovery-terms small { color: var(--muted); }
@media (max-width: 760px) {
  .job-source-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .job-source-row > :nth-child(3) { grid-column: 1; color: var(--muted); font-size: 12px; }
  .job-source-row > :last-child { grid-column: 2; grid-row: 1 / span 2; }
  .job-source-row.is-head { display: none; }
}
.metadata-form { margin-bottom: 18px; }
.metadata-personal-form { display: grid; grid-template-columns: minmax(0,1.56fr) minmax(360px,1fr); gap: 18px; align-items: start; }
.metadata-personal-left { display: grid; grid-column: 1; gap: 18px; min-width: 0; }
.metadata-personal-right { display: grid; grid-column: 2; gap: 18px; min-width: 0; align-content: start; }
.metadata-personal-fields-panel { min-width: 0; }
.content:has(> .page-heading + .metadata-personal-form),
body[data-assistant-surface="settings"] .content { width: min(1380px,100%); max-width: 1380px; }
body[data-assistant-surface="settings"] .panel-head { min-height: 86px; padding-top: 16px; padding-bottom: 16px; }
body[data-assistant-surface="settings"] .panel-head .section-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; }
body[data-assistant-surface="settings"] .panel-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; line-height: 1.35; font-weight: 500; }
body[data-assistant-surface="settings"] .panel-head p { margin-top: 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; line-height: 1.5; font-weight: 400; }
body[data-assistant-surface="settings"] .panel-head > div:not(:has(h2)) > p { margin-top: 5px; color: var(--text); font-size: 18px; line-height: 1.35; font-weight: 500; }
.candidate-education-form,
.candidate-competencies-form,
.candidate-additional-evidence-form,
.candidate-interests-form { margin-bottom: 18px; }
[data-cv-metadata-fields] { display: flex; flex-direction: column; }
[data-cv-metadata-fields] .central-career-form { order: 1; }
[data-cv-metadata-fields] .candidate-education-form { order: 2; }
[data-cv-metadata-fields] .candidate-competencies-form { order: 3; }
[data-cv-metadata-fields] .candidate-additional-evidence-form { order: 4; }
[data-cv-metadata-fields] .candidate-interests-form { order: 5; }
.competency-groups { display: grid; grid-template-columns: minmax(0,1fr); }
.competency-panel { overflow: visible; }
.competency-group { min-width: 0; }
.competency-group-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--border); color: #263646; font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 400; }
.competency-category-heading { min-width: 0; margin: 0; }
.competency-category-heading strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.competency-category-heading input { width: min(360px,60vw); min-height: 32px; font-size: 13px; }
.competency-category-navigation { display: inline-flex; align-items: center; gap: 6px; }
.competency-category-arrow { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px; color: #51606f; font-size: 12px; }
.competency-category-arrow:hover { border-color: var(--border); background: #f7faf9; color: var(--accent-2); }
.competency-add-row { display: grid; grid-template-columns: 20px 34px minmax(0,1fr) 210px 180px 78px 32px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 14px; border-top: 1px solid var(--border); }
.competency-add { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0 0 2px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #51606f; font: 400 19px/1 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.competency-add-row .competency-add { grid-column: 7; justify-self: center; }
.competency-add:hover { border-color: #b8cbc5; background: #f7faf9; color: var(--accent-2); }
.competency-list { display: grid; }
.competency-row { display: grid; grid-template-columns: 20px 34px minmax(0,1fr) 210px 180px 78px 32px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid var(--border); }
.competency-row:last-child { border-bottom: 0; }
.competency-row.is-dragging { opacity: .45; background: #f4f8f7; }
.competency-row.is-drag-target { box-shadow: inset 0 2px 0 var(--accent); }
.competency-drag { display: inline-grid; place-items: center; width: 20px; height: 30px; color: #9aa7b2; font-size: 16px; line-height: 1; cursor: grab; user-select: none; }
.competency-drag:active { cursor: grabbing; }
.competency-index { display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 7px; background: #e8f4f1; color: var(--accent-2); font: 600 10px/1 'Plus Jakarta Sans', sans-serif; }
.competency-row > input { min-width: 0; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); font: 400 14px/1.4 "Segoe UI", Arial, sans-serif; }
.competency-row > input:hover, .competency-row > input:focus { border-color: var(--border); background: #fff; outline: 0; }
.competency-active { display: inline-flex; align-items: center; gap: 5px; color: #687582; font-size: 12px; white-space: nowrap; }
.competency-active input,
.education-visible input { accent-color: var(--accent); }
.competency-profile-picker { position: relative; min-width: 0; }
.competency-profile-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; cursor: pointer; list-style: none; text-rendering: optimizeLegibility; }
.competency-profile-picker > summary::-webkit-details-marker { display: none; }
.competency-profile-picker[open] > summary { border-color: #9ebdb4; box-shadow: 0 0 0 2px rgba(22,115,93,.10); }
.competency-profile-picker > summary i { color: #75828e; font-size: 10px; transition: transform .14s ease; }
.competency-profile-picker[open] > summary i { transform: rotate(180deg); }
.competency-profile-options { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; display: grid; width: max(210px,100%); max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgba(31,45,40,.16); }
.competency-profile-options label { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 7px; border-radius: 5px; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; cursor: pointer; text-rendering: optimizeLegibility; }
.competency-profile-options label:hover { background: #f4f8f7; }
.competency-profile-options input { accent-color: var(--accent); }
.competency-cv-level { display: inline-flex; align-items: center; gap: 5px; width: 210px; color: #687582; font-size: 12px; white-space: nowrap; transform: translateX(-8px); }
.competency-level-segments { display: inline-flex; align-items: center; gap: 5px; width: 100%; padding: 8px 2px; }
.competency-level-segment { flex: 1 1 0; min-width: 34px; height: 8px; padding: 0; border: 0; border-radius: 3px; background: #e2e9e7; cursor: pointer; transition: background-color .14s ease, transform .14s ease; }
.competency-level-segment:hover { background: #b9cbc6; transform: translateY(-1px); }
.competency-level-segment.is-active { background: #16735d; }
.competency-level-segment.is-active:hover { background: #105d4b; }
.competency-level-segment:focus-visible { outline: 2px solid rgba(22,115,93,.32); outline-offset: 3px; }
.competency-remove { width: 30px; height: 30px; color: #6d7883; font-size: 18px; }
@media (max-width: 980px) {
  .competency-row,
  .competency-add-row { grid-template-columns: 20px 32px minmax(160px,1fr) 180px 160px 70px 30px; gap: 8px; padding-inline: 10px; }
  .competency-cv-level { width: 180px; }
}
.candidate-education-list { display: grid; }
.candidate-additional-evidence-list { display: grid; }
.candidate-additional-evidence-row { display: grid; grid-template-columns: 20px 34px minmax(0,1fr) 78px 32px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid var(--border); }
.candidate-additional-evidence-row:last-child { border-bottom: 0; }
.candidate-additional-evidence-row input,
.candidate-additional-evidence-row select { min-height: 34px; font-size: 13px; }
.candidate-additional-evidence-row > input { min-width: 0; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); font: 400 14px/1.4 "Segoe UI", Arial, sans-serif; }
.candidate-additional-evidence-row > input:hover,
.candidate-additional-evidence-row > input:focus { border-color: var(--border); background: #fff; outline: 0; }
.additional-evidence-active { display: inline-flex; align-items: center; gap: 5px; color: #687582; font-size: 12px; white-space: nowrap; }
.additional-evidence-active input { min-height: auto; }
.candidate-additional-evidence-add-row { display: grid; grid-template-columns: 20px 34px minmax(0,1fr) 78px 32px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 14px; border-top: 1px solid var(--border); }
.candidate-additional-evidence-add-row .competency-add { grid-column: 5; justify-self: center; }
.shared-list-drag { display: inline-grid; place-items: center; width: 20px; height: 30px; color: #9aa7b2; font-size: 16px; line-height: 1; cursor: grab; user-select: none; }
.shared-list-drag:active { cursor: grabbing; }
.shared-list-index { display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 7px; background: #e8f4f1; color: var(--accent-2); font: 600 10px/1 'Plus Jakarta Sans', sans-serif; }
.candidate-additional-evidence-row.is-dragging,
.candidate-page-information-row.is-dragging { opacity: .45; background: #f4f8f7; }
.candidate-additional-evidence-row.is-drag-target,
.candidate-page-information-row.is-drag-target { box-shadow: inset 0 2px 0 var(--accent); }
@media (max-width: 900px) { .candidate-additional-evidence-row, .candidate-additional-evidence-add-row { grid-template-columns: 20px 32px minmax(0,1fr) 70px 30px; gap: 8px; padding-inline: 10px; } }
.candidate-education-entry { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); border-bottom: 1px solid var(--border); }
.candidate-education-entry:last-child { border-bottom: 0; }
.candidate-education-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; padding: 16px 18px; border-right: 1px solid var(--border); }
.candidate-education-fields label,
.candidate-detail-editor { display: grid; gap: 6px; min-width: 0; }
.candidate-education-fields label:nth-child(-n+2) { grid-column: 1 / -1; }
.candidate-education-fields label > span,
.candidate-detail-editor > span,
.candidate-interests-field > span { color: #51606f; font-size: 12px; font-weight: 650; }
.candidate-education-fields input,
.candidate-interests-field textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: #fff; color: var(--text); font: 400 13px/1.5 "Segoe UI", Arial, sans-serif; }
.candidate-education-fields input { min-height: 38px; }
.candidate-education-fields input:focus,
.candidate-interests-field textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.education-visible { display: inline-flex !important; grid-template-columns: auto 1fr; grid-column: 1 / -1; align-items: center; justify-content: start; }
.candidate-education-details { position: relative; padding: 16px 54px 16px 18px; }
.candidate-education-details > .icon-button { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; font-size: 18px; }
.metadata-inline-bullet-editor { gap: 7px; }
.metadata-inline-bullet-editor .bullet-list { gap: 6px; }
.metadata-inline-bullet-editor .bullet-row textarea { min-height: 38px; padding: 7px 9px; font-size: 13px; line-height: 1.4; }
.metadata-inline-bullet-editor .bullet-drag-handle,
.metadata-inline-bullet-editor .bullet-remove,
.metadata-inline-bullet-editor .bullet-add { min-height: 34px; height: 34px; }
.bullet-protect { display: inline-grid; place-items: center; width: 34px; min-width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #a8b1af; font-size: 17px; line-height: 1; cursor: pointer; }
.bullet-protect:hover { border-color: #d1b26d; color: #a8750f; }
.bullet-protect.is-active { border-color: #d7b65d; background: #fff8df; color: #a8750f; }
.bullet-protect:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(168,117,15,.14); }
.metadata-inline-bullet-editor[data-bullet-protection="true"] .bullet-row { grid-template-columns: 26px minmax(0,1fr) 34px 34px; align-items: center; }
.candidate-interests-field { display: grid; gap: 7px; padding: 16px 18px 18px; }
.candidate-page-information-fields { display: grid; grid-template-columns: minmax(0,1fr); }
.candidate-interests-field textarea { min-height: 150px; resize: vertical; }
.candidate-page-information-group { display: grid; align-content: start; min-width: 0; }
.candidate-page-information-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.candidate-page-information-head strong { color: var(--text); font-size: 13px; font-weight: 650; }
.candidate-page-information-list { display: grid; }
.candidate-page-information-row { display: grid; grid-template-columns: 20px 34px minmax(0,1fr) 32px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid var(--border); }
.candidate-page-information-row:last-child { border-bottom: 0; }
.candidate-page-information-row input { min-width: 0; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; outline: 0; background: transparent; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; }
.candidate-page-information-row input:hover,
.candidate-page-information-row input:focus { border-color: var(--border); background: #fff; }
.candidate-page-information-row .icon-button { width: 30px; height: 30px; color: #6d7883; font-size: 18px; }
.candidate-page-information-add-row { display: grid; grid-template-columns: 20px 34px minmax(0,1fr) 32px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 14px; border-top: 1px solid var(--border); }
.candidate-page-information-add-row .competency-add { grid-column: 4; justify-self: center; }
.metadata-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; padding: 18px; }
.metadata-fields > label { display: grid; gap: 6px; padding: 0; border: 0; }
.metadata-fields > label:nth-child(2n) { border: 0; }
.metadata-personal-fields-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0; }
.metadata-field-column { display: grid; align-content: start; gap: 16px; padding: 18px; }
.metadata-field-column + .metadata-field-column { border-left: 1px solid var(--border); }
.metadata-field-column > label { display: grid; gap: 6px; }
.metadata-personal-head { min-height: 86px; padding-top: 16px; padding-bottom: 16px; }
.metadata-personal-head .section-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; }
.metadata-personal-head h2 { margin-top: 5px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; line-height: 1.35; font-weight: 500; }
.settings-editable-heading { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-top: 4px; }
.settings-editable-heading h2 { margin: 0; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; line-height: 1.35; font-weight: 500; }
.settings-editable-heading input { width: min(420px,70vw); min-height: 34px; padding: 5px 9px; border: 1px solid var(--field-focus-accent); border-radius: 6px; outline: 0; color: var(--text); font: 500 18px/1.35 'Plus Jakarta Sans', sans-serif; box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.settings-editable-heading .settings-heading-edit { flex: 0 0 auto; width: 28px; height: 28px; border-color: transparent; color: #51606f; font-size: 13px; }
.settings-editable-heading .settings-heading-edit:hover,
.settings-editable-heading.is-editing .settings-heading-edit { border-color: var(--border); background: #f7faf9; color: var(--accent-2); }
.metadata-fields label > span, .metadata-signature > span { color: #51606f; font-size: 13px; font-weight: 650; }
.metadata-fields input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; outline: 0; color: var(--text); font: 400 14px/1.4 "Segoe UI", Arial, sans-serif; }
.metadata-fields input:focus, .career-location-input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.metadata-signature { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 12px; padding: 0; }
.metadata-signature > span { grid-column: 1/-1; }
.metadata-signature i { overflow: hidden; color: var(--muted); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.metadata-signature input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.metadata-profile-photo { display: grid; grid-column: 2; grid-row: 1; align-content: start; min-width: 0; padding: 0; overflow: hidden; background: var(--surface); }
.metadata-personal-right .metadata-profile-photo { grid-column: auto; grid-row: auto; }
.metadata-profile-photo-body { padding: 18px 18px 12px; }
.metadata-profile-photo-control { display: grid; align-content: start; gap: 12px; }
.metadata-profile-photo-preview { display: grid; place-items: center; width: 100%; height: min(468px,calc(42vw - 12px)); min-height: 338px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-2); }
.metadata-profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.metadata-profile-photo-preview.is-empty { border-style: dashed; }
.metadata-profile-photo-control > i { overflow: hidden; color: var(--muted); font-size: 14px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.metadata-profile-photo-control .button { justify-self: start; }
.profile-photo-dialog { width: min(780px, calc(100vw - 32px)); }
.profile-photo-dialog-content { display: grid; min-width: 0; }
.profile-photo-assignment-list { display: grid; max-height: min(58vh,560px); overflow: auto; border-bottom: 1px solid var(--border); }
.profile-photo-assignment-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(140px,210px) auto; gap: 16px; align-items: center; min-width: 0; padding: 14px 22px; border-top: 1px solid var(--border); }
.profile-photo-assignment-row:first-child { border-top: 0; }
.profile-photo-assignment-row > div { display: grid; gap: 4px; min-width: 0; }
.profile-photo-assignment-row strong { color: var(--text); font-size: 14px; }
.profile-photo-assignment-row small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-photo-assignment-row > span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-photo-assignment-row input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-photo-dialog .dialog-feedback { min-height: 20px; padding: 12px 22px 0; }
.metadata-profiles-panel { min-width: 0; padding: 0; }
.metadata-profiles-head { gap: 12px; }
.metadata-profile-create { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; color: var(--accent-2); font-size: 20px; font-weight: 400; line-height: 1; }
.metadata-profile-create > span { display: block; line-height: 1; }
.metadata-profile-list { display: grid; }
.metadata-profile-row { display: grid; grid-template-columns: 30px 38px minmax(0,1fr) 42px; align-items: center; min-height: 52px; padding: 0; border-top: 1px solid var(--border); }
.metadata-profile-row:first-child { border-top: 0; }
.metadata-profile-drag { display: grid; align-self: stretch; place-items: center; color: var(--muted-2); cursor: grab; font-size: 14px; line-height: 1; touch-action: none; user-select: none; }
.metadata-profile-drag:active { cursor: grabbing; }
.metadata-profile-row.is-dragging { z-index: 1; background: var(--surface); box-shadow: 0 5px 16px rgba(31,45,61,.12); opacity: .82; }
.metadata-profile-row.is-drag-target { box-shadow: inset 0 2px 0 var(--field-focus-accent); }
.metadata-profile-list.is-saving { pointer-events: none; opacity: .72; }
.metadata-profile-index { display: flex; align-self: stretch; align-items: center; justify-content: center; border-right: 1px solid var(--border); color: var(--muted-2); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.metadata-profile-name { align-self: stretch; min-width: 0; padding: 0 12px; overflow: hidden; border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.metadata-profile-name:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.metadata-profile-name:focus-visible { outline: 2px solid var(--field-focus-accent); outline-offset: -3px; }
.metadata-profile-tags { display: flex; gap: 5px; align-items: center; min-width: 0; overflow: hidden; }
.metadata-profile-tags i,.profile-tag-chip { display: inline-flex; align-items: center; min-width: 0; padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-style: normal; line-height: 1; white-space: nowrap; }
.metadata-profile-tags i { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.metadata-profile-tags > span,.metadata-profile-tags small { color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.metadata-profile-actions { justify-self: end; margin-right: 8px; }
.metadata-profile-actions > summary { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: var(--muted); }
.profile-tags-dialog { width: min(540px,calc(100vw - 32px)); }
.profile-tags-dialog .dialog-head .section-label { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; }
.profile-tags-dialog .dialog-head h2 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 18px; line-height: 1.35; font-weight: 500; }
.profile-tags-dialog-body { display: grid; gap: 18px; padding: 18px 22px 8px; }
.profile-tags-name,.profile-tags-visibility,.profile-tags-editor { display: grid; gap: 8px; }
.profile-tags-name > span,.profile-tags-visibility > span:first-child,.profile-tags-editor > strong { color: var(--text); font-size: 13px; font-weight: 650; }
.profile-tags-name input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.profile-tags-editor-list { display: flex; min-height: 36px; flex-wrap: wrap; gap: 7px; align-items: center; }
.profile-tags-empty { color: var(--muted-2); font-size: 13px; }
.profile-tag-chip { gap: 7px; cursor: pointer; font: inherit; font-size: 12px; }
.profile-tag-chip:hover { border-color: var(--border-strong); color: var(--text); }
.profile-tag-chip span { font-size: 14px; line-height: .8; }
.profile-tags-add { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 8px; }
.profile-tags-add input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.metadata-signature-panel { min-width: 0; overflow: hidden; }
.metadata-signature-head,
.metadata-profile-photo-head { min-height: 86px; padding-top: 16px; padding-bottom: 16px; }
.metadata-signature-layout { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1fr); gap: 18px; padding: 18px; }
.metadata-signature-preview { display: grid; place-items: center; min-height: 150px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-2); }
.metadata-signature-preview.is-empty { border-style: dashed; }
.metadata-signature-preview img { display: block; width: 100%; height: 150px; padding: 18px; object-fit: contain; }
.metadata-signature-controls { display: grid; align-content: start; gap: 18px; }
.metadata-signature-scale { display: grid; gap: 6px; }
.metadata-signature-scale > span,
.metadata-signature > span { color: #51606f; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 650; }
.metadata-signature-scale input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; outline: 0; color: var(--text); font: 400 14px/1.4 "Segoe UI", Arial, sans-serif; }
.metadata-signature-scale input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.metadata-profile-photo-control input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-settings-form { display: grid; gap: 18px; margin-bottom: 18px; }
.file-settings-table .field-row { align-items: stretch; }
.file-settings-table .field-row input { font-size: 13px; }
.filename-setting-control { display: grid; min-width: 0; }
.output-directory-control small { min-width: 0; padding: 0 16px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.output-directory-control small strong { color: #425262; font-weight: 600; }
.output-directory-control { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-width: 0; }
.output-directory-control .button { grid-column: 2; grid-row: 1; margin-right: 14px; white-space: nowrap; }
.output-directory-control small { grid-column: 1 / -1; }
.filename-placeholder-help { display: flex; align-items: center; gap: 16px; padding: 15px 20px; background: var(--surface); }
.filename-placeholder-help > span { flex: 0 0 auto; color: #51606f; font-size: 12px; font-weight: 650; }
.filename-placeholder-help > div { display: flex; flex-wrap: wrap; gap: 7px; }
.filename-placeholder-help code { padding: 4px 7px; border: 1px solid #dbe5e1; border-radius: 6px; background: #fff; color: var(--accent-2); font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.openai-settings-form { display: grid; gap: 18px; margin-bottom: 18px; }
.openai-settings-table .field-row { align-items: stretch; }
.openai-settings-table .field-row select {
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 19px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  appearance: none;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
.openai-settings-table .field-row select:focus {
  background-color: #fbfefd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2316735d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.openai-settings-table .field-row input,
.openai-pricing-row strong,
.openai-pricing-row input { font-size: 14px; }
.openai-settings-table .field-row input[type="checkbox"],
.profile-visibility-control input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: none;
  accent-color: var(--accent);
}
.openai-settings-table .field-row > input[type="checkbox"] {
  align-self: center;
  justify-self: start;
  margin: 0 16px;
}
.openai-secret-control { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-width: 0; }
.openai-secret-control > span { padding-left: 16px; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.4; }
.openai-secret-control .button { grid-column: 2; grid-row: 1; margin-right: 14px; white-space: nowrap; }
.openai-test-status { padding: 12px 18px; border-top: 1px solid var(--border); background: #f8fafb; color: var(--muted); font-size: 13px; }
.openai-test-status.success { background: var(--accent-soft); color: var(--accent-2); }
.openai-test-status.error { background: #fff7f8; color: var(--danger); }
.currency-input { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.currency-input > span { padding-left: 18px; color: var(--muted); }
.currency-input input { padding-left: 8px; }
.openai-usage-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.openai-usage-summary > div { display: grid; gap: 4px; padding: 16px 18px; }
.openai-usage-summary > div + div { border-left: 1px solid var(--border); }
.openai-usage-summary span { color: var(--muted); font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .05em; }
.openai-usage-summary strong { color: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1.25; }
.openai-usage-summary small { color: var(--muted); font-size: 14px; }
.openai-usage-summary > p { grid-column: 1 / -1; margin: 0; padding: 10px 18px; border-top: 1px solid var(--border); color: #8a6415; font-size: 12px; }
.openai-cost-history-panel { overflow: hidden; }
.openai-cost-history-total { display: grid; gap: 2px; justify-items: end; white-space: nowrap; }
.openai-cost-history-total small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.openai-cost-history-total strong { color: var(--accent-2); font-size: 18px; }
.openai-cost-history { display: grid; }
.openai-cost-history-item { border-top: 1px solid var(--border); }
.openai-cost-history-item:first-child { border-top: 0; }
.openai-cost-history-item summary { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px; align-items: center; min-height: 68px; padding: 12px 18px; cursor: pointer; list-style: none; }
.openai-cost-history-item summary::-webkit-details-marker { display: none; }
.openai-cost-history-item summary::after { content: "⌄"; color: var(--muted); font-size: 16px; transition: transform .16s ease; }
.openai-cost-history-item[open] summary::after { transform: rotate(180deg); }
.openai-cost-history-application,
.openai-cost-history-meta { display: grid; gap: 3px; min-width: 0; }
.openai-cost-history-application strong,
.openai-cost-history-application small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.openai-cost-history-application strong { color: var(--text); font-size: 14px; }
.openai-cost-history-application small,
.openai-cost-history-meta small { color: var(--muted); font-size: 12px; }
.openai-cost-history-meta { justify-items: end; text-align: right; }
.openai-cost-history-meta strong { color: var(--accent-2); font-size: 14px; }
.openai-cost-history-details { display: grid; grid-template-columns: minmax(0,1fr); padding: 0 18px 15px; background: #f8fafb; border-top: 1px solid var(--border); }
.openai-cost-history-details > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.openai-cost-history-details span { color: var(--muted); }
.openai-cost-history-details strong { color: var(--text); font-weight: 600; text-align: right; }
.openai-cost-history-details > a { grid-column: 1 / -1; justify-self: start; margin-top: 12px; color: var(--accent-2); font-size: 12px; font-weight: 650; }
.openai-cost-history-empty,
.openai-cost-history-warning { margin: 0; padding: 16px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.openai-cost-history-warning { background: #fffaf0; color: #8a6415; }
.openai-pricing-table { display: grid; }
.openai-pricing-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, 1fr)); align-items: center; border-top: 1px solid var(--border); }
.openai-pricing-row:first-child { border-top: 0; }
.openai-pricing-row > * { min-width: 0; padding: 12px 16px; }
.openai-pricing-row label { padding: 0; border-left: 1px solid var(--border); }
.openai-pricing-row input { width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 0; background: transparent; font: 400 13px/1.4 "Segoe UI", Arial, sans-serif; }
.openai-pricing-row.is-head { color: var(--muted); background: #f8fafb; font: 600 11px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.prompt-settings-panel { overflow: hidden; margin-bottom: 18px; }
.prompt-panel-head { min-height: 84px; }
.prompt-panel-actions { display: flex; gap: 8px; }
.prompt-task-table { overflow-x: auto; }
.prompt-task-header,
.prompt-task-row { display: grid; grid-template-columns: minmax(180px,.62fr) minmax(390px,1.5fr) 95px 125px 68px; min-width: 970px; }
.prompt-task-header { min-height: 42px; border-bottom: 1px solid var(--border); background: #f8fafb; color: #64717d; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.prompt-task-header span { display: flex; align-items: center; padding: 9px 12px; border-right: 1px solid var(--border); }
.prompt-task-header span:last-child { justify-content: center; border-right: 0; }
.prompt-task-row { align-items: stretch; border-bottom: 1px solid var(--border); background: #fff; }
.prompt-task-row:last-child { border-bottom: 0; }
.prompt-task-row > input,
.prompt-task-row > textarea { width: 100%; min-width: 0; padding: 12px; border: 0; border-right: 1px solid var(--border); outline: 0; background: #fff; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.prompt-task-row > textarea { min-height: 82px; resize: vertical; }
.prompt-task-row > input:focus,
.prompt-task-row > textarea:focus { background: #fbfefd; box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.prompt-task-check { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 7px; border-right: 1px solid var(--border); color: #586674; font-size: 14px; cursor: pointer; }
.prompt-task-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.prompt-task-action { display: grid; place-items: center; }
.prompt-task-remove { width: 32px; height: 32px; border-radius: 8px; color: #7b8792; font-size: 19px; }
.prompt-task-remove:hover { border-color: #e3b9bd; background: #fff3f4; color: var(--danger); }
.prompt-empty { padding: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.email-settings-form { display: grid; gap: 18px; margin-bottom: 18px; }
.email-settings-table .field-row { align-items: stretch; }
.email-settings-table .field-row input,
.email-settings-table .field-row select,
.email-settings-table .field-row p { font-size: 14px; }
.email-settings-table .field-row select { padding-right: 52px; background-position: right 22px center; }
.email-inline-control { display: grid; grid-template-columns: minmax(130px,.35fr) minmax(220px,1fr); align-items: center; min-width: 0; }
.email-inline-control > input { border-right: 1px solid var(--border); }
.email-checkbox { display: flex; align-items: center; gap: 9px; min-height: 57px; padding: 12px 16px; color: #51606f; cursor: pointer; font-size: 14px; }
.field-row .email-checkbox input { width: 16px; height: 16px; min-height: 16px; padding: 0; border: 1px solid var(--border); accent-color: var(--accent); box-shadow: none; }
.email-checkbox-row { width: 100%; }
.email-send-test-control { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-width: 0; }
.email-send-test-control .button { margin-right: 14px; white-space: nowrap; }
.email-test-status { padding: 12px 18px; border-top: 1px solid var(--border); background: #f8fafb; color: var(--muted); font-size: 13px; }
.email-test-status.success { background: var(--accent-soft); color: var(--accent-2); }
.email-test-status.error { background: #fff7f8; color: var(--danger); }
.email-template-selector { border-bottom: 1px solid var(--border); }
.email-template-selector select { padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 19px center; background-repeat: no-repeat; background-size: 12px 8px; appearance: none; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; }
.email-normal-subject input { font-size: 14px; }
.email-template-view[hidden] { display: none; }
.email-placeholder-help { border-top: 1px solid var(--border); }
.unified-text-editor { display: grid; grid-template-rows: auto auto minmax(220px,auto) auto; min-width: 0; background: #fff; }
.unified-text-editor.has-no-editor-head { grid-template-rows: auto minmax(220px,auto) auto; }
.unified-text-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--border); background: #f8fafb; }
.unified-text-editor-head > div { min-width: 0; }
.unified-text-editor-head strong,
.unified-text-editor-head small { display: block; }
.unified-text-editor-head strong { color: #344454; font-size: 13px; }
.unified-text-editor-head small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.unified-text-editor-toolbar { display: flex; align-items: center; gap: 5px; min-height: 43px; padding: 6px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.unified-text-editor-toolbar[hidden] { display: none; }
.text-format-button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #344454; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; cursor: pointer; }
.text-format-button:hover { border-color: var(--border); background: #f1f5f5; }
.text-format-button:disabled,
.text-format-size:disabled { cursor: default; opacity: .45; }
.text-format-button.is-active { border-color: var(--field-focus-accent); background: #e9f3f1; color: var(--field-focus-accent); }
.text-format-button[data-text-command="bold"] { font-weight: 800; }
.text-format-button[data-text-command="italic"] { font-style: italic; }
.text-format-button[data-text-command="underline"] { text-decoration: underline; }
.text-format-button[data-text-command="removeFormat"] { font-weight: 500; }
.text-format-size { width: auto; min-width: 118px; height: 30px; margin-left: 5px; padding: 0 28px 0 9px; border: 1px solid var(--border); border-radius: 6px; background-position: right 9px center; color: #344454; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 600; }
.text-editor-view-toggle { display: inline-flex; margin-left: auto; padding: 2px; border: 1px solid var(--border); border-radius: 7px; background: #f6f8f9; }
.text-editor-view-toggle button { min-width: 55px; height: 26px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #687581; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.text-editor-view-toggle button.is-active { background: #fff; color: var(--accent-2); box-shadow: 0 1px 3px rgba(31,45,61,.12); }
.text-editor-view-toggle + .text-editor-expand-icon { margin-left: 3px; }
.text-editor-expand-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #51606f; cursor: pointer; }
.text-editor-expand-icon:hover { border-color: var(--border); background: #f1f5f5; color: var(--field-focus-accent); }
.text-editor-expand-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.unified-text-editor-surface { display: block; width: 100%; min-height: 270px; overflow-wrap: anywhere; padding: 18px; border: 0; outline: 0; background: #fff; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.65; tab-size: 4; }
.unified-text-editor-surface > :is(p, div) { min-height: 1.65em; margin: 0 0 .8em; }
.unified-text-editor-surface > :is(p, div):last-child { margin-bottom: 0; }
[data-text-editor-role="application-letter"] .unified-text-editor-surface > :is(p, div),
[data-text-editor-role="application-create-letter"] .unified-text-editor-surface > :is(p, div) { margin-bottom: 1.65em; }
[data-text-editor-role="application-letter"] .unified-text-editor-surface > :is(p, div):last-child,
[data-text-editor-role="application-create-letter"] .unified-text-editor-surface > :is(p, div):last-child { margin-bottom: 0; }
.unified-text-editor-surface:focus { background: #fbfefd; box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.unified-text-editor-surface:empty::before { content: attr(data-placeholder); color: #89959f; pointer-events: none; }
[data-text-editor-role="application-letter"] .unified-text-editor-surface font,
[data-text-editor-role="application-create-letter"] .unified-text-editor-surface font { font-size: inherit; }
.unified-text-editor-html-source { display: block; width: 100%; min-height: 270px; padding: 18px; border: 0; outline: 0; resize: none; background: #fff; color: #263746; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.6; tab-size: 2; }
.unified-text-editor-html-source:focus { background: #fbfefd; box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.unified-text-editor-html-source[hidden] { display: none; }
.unified-text-editor.is-readonly .unified-text-editor-surface { background: #f8fafb; color: #596773; }
.unified-text-editor-footer { display: flex; justify-content: flex-end; gap: 14px; min-height: 35px; padding: 8px 14px; border-top: 1px solid var(--border); background: #f8fafb; color: var(--muted); font-size: 11px; font-weight: 650; }
.unified-text-editor.is-expanded { position: fixed; inset: 18px; z-index: 1200; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 22px 70px rgba(25,38,49,.24); }
.unified-text-editor.has-no-editor-head.is-expanded { grid-template-rows: auto minmax(0,1fr) auto; }
.unified-text-editor.is-expanded .unified-text-editor-surface { min-height: 0 !important; height: 100%; overflow-y: auto; }
.unified-text-editor.is-expanded .unified-text-editor-html-source { min-height: 0; height: 100%; overflow-y: auto; }
body.text-editor-expanded { overflow: hidden; }

/* Bewerbungs-Postfach */
.mailbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; margin-bottom: 16px; padding: 8px 14px; }
.mailbox-heading-actions, .mailbox-toolbar-navigation, .mailbox-filters { display: flex; align-items: center; gap: 6px; }
.mailbox-filters a { padding: 8px 12px; border-radius: 7px; color: #5c6975; font-size: 13px; font-weight: 650; }
.mailbox-filters a.active { color: var(--accent-2); }
.mail-sync-status { color: var(--muted); font-size: 13px; }
.mail-sync-status.error { color: var(--danger); }
.mail-row { display: grid; grid-template-columns: 145px minmax(150px,.75fr) minmax(220px,1.4fr) minmax(150px,.75fr) 40px; align-items: center; gap: 14px; min-height: 68px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--border); color: #465462; font-size: 14px; }
.mail-row:last-child { border-bottom: 0; }
.mail-row:not(.mail-head) { cursor: pointer; }
.mail-row:not(.mail-head):hover { background: #f8fafb; }
.mail-head { min-height: 42px; background: #f8fafb; color: #64717d; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.mail-row.unread { background: #fbfefd; }
.mail-row.unread .mail-subject, .mail-row.unread .mail-application-title, .mail-row.unread .mail-sender strong { color: var(--text); font-weight: 750; }
.mail-row small, .mail-row strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.mail-subject, .mail-application-title { min-width: 0; overflow: hidden; color: #263746; font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.mail-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.mail-unmatched { color: #8a6c2d; font-style: normal; font-size: 12px; }
.mail-row-actions { display: flex; align-items: center; justify-content: center; }
.mail-action-popover button { color: #334150; }
.mail-action-popover button:hover { background: var(--accent-soft); color: var(--accent-2); }
.mail-action-popover .menu-danger { color: var(--danger); }
.mailbox-table .row-action-menu[open] .row-action-popover { z-index: 120; }
.mailbox-table, .mailbox-table .responsive-table { overflow: visible; }
.mailbox-table .mail-row:nth-last-child(-n+2) .row-action-popover { top: auto; bottom: calc(100% + 6px); }
.mail-action-dialog { width: min(520px, calc(100vw - 32px)); }
.mail-delete-dialog { width: min(560px, calc(100vw - 32px)); }
.mail-action-dialog-body { display: grid; gap: 10px; padding: 20px 22px; }
.mail-action-dialog-body p { margin: 0; color: #536170; font-size: 14px; line-height: 1.6; }
.mail-action-dialog-body small { color: var(--muted); font-size: 12px; }
.mail-action-dialog-body small.error { color: var(--danger); }
.mail-detail-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(360px,.65fr); align-items: start; gap: 18px; }
.mail-detail-main, .mail-detail-side { display: grid; gap: 18px; min-width: 0; }
.mail-message-card, .mail-thread-card, .mail-application-card, .mail-reply-card { overflow: hidden; }
.mail-meta { display: grid; margin: 0; border-bottom: 1px solid var(--border); }
.mail-meta > div { display: grid; grid-template-columns: 105px minmax(0,1fr); min-height: 46px; border-bottom: 1px solid var(--border); }
.mail-meta > div:last-child { border-bottom: 0; }
.mail-meta dt, .mail-meta dd { display: flex; align-items: center; margin: 0; padding: 10px 16px; }
.mail-meta dt { border-right: 1px solid var(--border); background: #f8fafb; color: #536170; font-size: 12px; font-weight: 700; }
.mail-meta dd { color: #263746; font-size: 14px; overflow-wrap: anywhere; }
.mail-body { min-height: 270px; padding: 24px; color: #263746; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.mail-body img { display: none !important; }
.mail-attachments { display: grid; gap: 6px; padding: 15px 18px; border-top: 1px solid var(--border); background: #f8fafb; }
.mail-attachments strong { color: #445361; font-size: 12px; text-transform: uppercase; }
.mail-attachments span { color: var(--muted); font-size: 13px; }
.mail-thread-list { display: grid; }
.mail-thread-item { display: grid; grid-template-columns: 165px 155px minmax(0,1fr); align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px; border-bottom: 1px solid var(--border); color: #52616e; font-size: 13px; }
.mail-thread-item:last-child { border-bottom: 0; }
.mail-thread-item.active { box-shadow: inset 3px 0 0 var(--accent); }
.mail-thread-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-thread-item strong { overflow: hidden; color: #263746; text-overflow: ellipsis; white-space: nowrap; }
.mail-thread-item time { color: var(--muted); text-align: left; white-space: nowrap; }
.mail-application-current, .mail-link-form { display: grid; gap: 10px; padding: 16px; }
.mail-application-current { border-bottom: 1px solid var(--border); }
.mail-application-current strong, .mail-application-current span { display: block; }
.mail-application-current span { color: var(--muted); font-size: 13px; }
.mail-application-current .button { justify-self: start; }
.mail-unmatched-note { margin: 0; padding: 16px 16px 0; color: #8a6c2d; font-size: 13px; }
.mail-contact-details { padding: 16px; border-top: 1px solid var(--border); }
.mail-contact-details dl { display: grid; gap: 0; margin: 10px 0 0; }
.mail-contact-details dl > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; padding: 7px 0; }
.mail-contact-details dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.mail-contact-details dd { min-width: 0; margin: 0; color: #263746; font-size: 13px; overflow-wrap: anywhere; }
.mail-contact-details a { color: var(--accent-2); }
.mail-select { width: 100%; min-height: 42px; padding: 8px 46px 8px 10px; border: 1px solid var(--border); border-radius: 7px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351606f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 19px center; background-repeat: no-repeat; background-size: 12px 8px; appearance: none; color: #263746; font: inherit; font-size: 13px; }
.mail-select:focus { border-color: var(--field-focus-accent); outline: 0; box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.mail-link-form small, .mail-reply-actions small { color: var(--muted); font-size: 12px; }
.mail-link-form small.error, .mail-reply-actions small.error { color: var(--danger); }
.mail-reply-recipient, .mail-reply-subject { display: grid; grid-template-columns: 78px minmax(0,1fr); min-height: 48px; border-bottom: 1px solid var(--border); }
.mail-reply-recipient span, .mail-reply-subject span, .mail-reply-recipient strong, .mail-reply-subject strong { display: flex; align-items: center; padding: 10px 14px; }
.mail-reply-recipient span, .mail-reply-subject span { border-right: 1px solid var(--border); background: #f8fafb; color: #536170; font-size: 12px; font-weight: 700; }
.mail-reply-recipient strong, .mail-reply-subject strong { min-width: 0; color: #263746; font-size: 13px; overflow-wrap: anywhere; }
.mail-reply-card .unified-text-editor-surface { min-height: 210px !important; }
.mail-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
.mail-compose { overflow: hidden; }
.mail-compose-fields { display: grid; border-bottom: 1px solid var(--border); }
.mail-compose-fields label { display: grid; grid-template-columns: 130px minmax(0,1fr); min-height: 54px; border-bottom: 1px solid var(--border); }
.mail-compose-fields label:last-child { border-bottom: 0; }
.mail-compose-fields label > span { display: flex; align-items: center; padding: 10px 16px; border-right: 1px solid var(--border); background: #f8fafb; color: #536170; font-size: 13px; font-weight: 700; }
.mail-compose-fields input, .mail-compose-fields .mail-select { width: 100%; min-width: 0; min-height: 53px; padding-top: 10px; padding-bottom: 10px; border: 0; border-radius: 0; outline: 0; font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; }
.mail-compose-fields input { padding-right: 14px; padding-left: 14px; }
.mail-compose-fields input:focus, .mail-compose-fields .mail-select:focus { background-color: #fbfefd; box-shadow: inset 3px 0 0 var(--field-focus-accent); }
.mail-compose .unified-text-editor-surface { min-height: 360px !important; }
.mail-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-top: 1px solid var(--border); }
.mail-compose-actions small { color: var(--muted); font-size: 12px; }
.mail-compose-actions small.error { color: var(--danger); }
@media (max-width: 1050px) { .mail-detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .mobile-nav { grid-template-columns: repeat(6,1fr); }.mailbox-table { overflow-x: auto; }.mailbox-table .responsive-table { overflow: visible; }.mail-row { min-width: 940px; }.mail-detail-heading .button { align-self: flex-start; }.mail-thread-item { grid-template-columns: minmax(140px,.7fr) 145px minmax(220px,1fr); }.mailbox-heading-actions, .mailbox-toolbar-navigation { align-items: stretch; flex-direction: column; }.mail-compose-fields label { grid-template-columns: 95px minmax(0,1fr); } }
@media (max-width: 700px) {
  .central-career-row { min-width: 950px; }
  .metadata-fields { grid-template-columns: 1fr; }
  .metadata-personal-form { grid-template-columns: 1fr; }
  .metadata-personal-left,
  .metadata-personal-right,
  .metadata-personal-fields-panel,
  .metadata-profile-photo,
  .metadata-signature-panel { grid-column: 1; grid-row: auto; }
  .metadata-personal-fields-grid { grid-template-columns: 1fr; }
  .metadata-field-column + .metadata-field-column { border-top: 1px solid var(--border); border-left: 0; }
  .metadata-signature-layout { grid-template-columns: 1fr; }
  .competency-groups { grid-template-columns: 1fr; }
  .competency-group { border-right: 0; border-bottom: 1px solid var(--border); }
  .competency-group:last-child { border-bottom: 0; }
  .candidate-education-entry { grid-template-columns: 1fr; }
  .candidate-education-fields { border-right: 0; border-bottom: 1px solid var(--border); }
  .metadata-fields > label { border-right: 0; }
  .metadata-signature { grid-template-columns: 1fr; }
  .output-directory-control { grid-template-columns: 1fr; padding-bottom: 10px; }
  .output-directory-control .button { grid-column: 1; grid-row: auto; justify-self: start; margin: 0 14px 9px; }
  .output-directory-control small { padding-bottom: 0; }
  .filename-placeholder-help { align-items: flex-start; flex-direction: column; }
  .openai-secret-control { grid-template-columns: 1fr; padding-bottom: 10px; }
  .openai-secret-control .button { grid-column: 1; grid-row: auto; justify-self: start; margin: 0 14px 9px; }
  .openai-usage-summary { grid-template-columns: 1fr; }
  .openai-usage-summary > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .openai-cost-history-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .openai-cost-history-item summary { grid-template-columns: minmax(0,1fr) auto; }
  .openai-cost-history-item summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .openai-cost-history-meta { grid-column: 1; justify-items: start; text-align: left; }
  .openai-cost-history-details { grid-template-columns: 1fr; }
  .openai-pricing-row { grid-template-columns: 1fr; }
  .openai-pricing-row.is-head { display: none; }
  .openai-pricing-row label { border-left: 0; border-top: 1px solid var(--border); }
  .prompt-panel-head { align-items: stretch; flex-direction: column; padding-top: 15px; padding-bottom: 15px; }
  .prompt-panel-actions { flex-wrap: wrap; }
  .email-inline-control { grid-template-columns: 1fr; }
  .email-inline-control > input { border-right: 0; border-bottom: 1px solid var(--border); }
  .email-send-test-control { grid-template-columns: 1fr; padding-bottom: 10px; }
  .email-send-test-control .button { justify-self: start; margin: 0 14px 0; }
  .unified-text-editor.is-expanded { inset: 8px; border-radius: 9px; }
  .unified-text-editor-head { align-items: flex-start; }
  .job-analysis-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
  .job-analysis-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .job-analysis-dialog-field { padding: 14px 14px 6px; }
  .job-analysis-dialog-field textarea { min-height: 52vh; }
  .job-analysis-dialog .dialog-actions { padding: 13px 14px 16px; }
  .analysis-field-grid,
  .analysis-list-grid { grid-template-columns: 1fr; }
  .analysis-field,
  .analysis-list-field { border-right: 0; }
  .analysis-field { grid-template-columns: 120px minmax(0,1fr); }
}
.application-cv-proposal-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
}

.application-cv-proposal-summary strong { font-size: 12px; }

.application-cv-decision-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.proposal-rejected .application-cv-decision-note { color: #a13737; text-decoration: none; }
.proposal-replaced .application-cv-decision-note { color: #8a6818; text-decoration: none; }

/* Central career: compact expandable station lists in one shared container. */
.central-career-panel { overflow: visible; background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.central-career-panel > .panel-head { margin-bottom: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.central-career-table { overflow: visible; }
.central-career-list { display: grid; gap: 0; }
.central-career-entry,
.central-career-entry:last-child { overflow: visible; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--surface); }
.central-career-entry:last-child { border-bottom: 0; }
.central-career-summary { display: grid; grid-template-columns: 20px 30px minmax(0,1fr); gap: 10px; align-items: center; min-height: 70px; padding: 8px 18px; }
.central-career-drag { color: #aeb9b7; font-family: Arial, sans-serif; font-size: 20px; line-height: 1; }
.central-career-index { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 700; }
.central-career-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; min-height: 52px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.central-career-toggle:focus { outline: 0; }
.central-career-toggle:focus-visible { border-radius: 7px; box-shadow: 0 0 0 3px rgba(22,115,93,.1); }
.central-career-summary-copy { display: grid; gap: 2px; min-width: 0; }
.central-career-summary-copy strong { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.central-career-summary-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.central-career-summary-end { display: inline-flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.central-career-current-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 11px; font-weight: 700; }
.central-career-current-badge[hidden] { display: none; }
.central-career-chevron { width: 12px; height: 8px; overflow: visible; fill: none; stroke: #768682; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(0deg); transition: transform .16s ease; }
.central-career-toggle[aria-expanded="true"] .central-career-chevron { transform: rotate(180deg); }
.central-career-details { position: relative; padding: 26px 22px 20px; border-top: 1px solid var(--border); }
.central-career-details[hidden] { display: none; }
.central-career-primary-fields,
.central-career-secondary-fields { display: grid; gap: 18px; }
.central-career-primary-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.central-career-secondary-fields { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; }
.central-career-primary-fields label,
.central-career-secondary-fields label { display: grid; gap: 7px; min-width: 0; color: #536170; font-size: 12px; font-weight: 700; }
.central-career-primary-fields input,
.central-career-secondary-fields input,
.central-career-secondary-fields .career-location-input { width: 100%; min-width: 0; min-height: 43px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 400; }
.central-career-primary-fields input:focus,
.central-career-secondary-fields input:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.central-career-details > .career-current-toggle { display: inline-flex; align-items: center; gap: 9px; margin: 24px 3px 0; color: #536170; font-size: 12px; }
.central-career-details > .career-current-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.central-career-pool { display: grid; gap: 12px; margin-top: 38px; padding: 0; }
.central-career-pool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.central-career-pool-head > span:first-child { display: grid; gap: 3px; }
.central-career-pool-head strong { color: var(--text); font-size: 14px; }
.central-career-pool-head small { color: var(--muted); font-size: 12px; }
.central-career-count { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 12px; border-radius: 999px; background: #edf5f2; color: #537269; font-size: 11px; white-space: nowrap; }
.central-career-pool .metadata-inline-bullet-editor .bullet-row textarea { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
.career-additional-evidence { display: grid; gap: 10px; margin-top: 30px; padding-top: 0; border-top: 0; }
.career-additional-evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.career-additional-evidence-head strong { color: var(--text); font-size: 14px; }
.career-additional-evidence-list { display: grid; gap: 6px; }
.career-additional-evidence > .bullet-add { justify-self: end; min-height: 34px; height: 34px; }
.station-evidence-row textarea { display: block; width: 100%; min-width: 0; min-height: 42px; resize: none; overflow: hidden; padding: 10px 9px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: #fff; color: var(--text); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 20px; }
.station-evidence-row textarea:focus { border-color: var(--field-focus-accent); box-shadow: inset 3px 0 0 var(--field-focus-accent), 0 0 0 3px rgba(22,115,93,.07); }
.station-evidence-row .bullet-drag-handle { cursor: default; }
.central-career-detail-actions { display: flex; justify-content: flex-end; min-height: 34px; margin-top: 10px; }
.central-career-detail-actions .row-action-menu { position: relative; }
.central-career-entry:last-child .row-action-popover { top: calc(100% + 6px); bottom: auto; }
.central-career-form { margin-bottom: 18px; }
.candidate-education-list { display: grid; gap: 0; }
.candidate-education-entry,
.candidate-education-entry:last-child { display: block; overflow: visible; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--surface); }
.candidate-education-entry:last-child { border-bottom: 0; }
.candidate-education-entry .education-visible { margin-top: 24px; color: #536170; font-size: 12px; }
.candidate-education-entry .education-visible input { width: 16px; height: 16px; margin: 0; }
.candidate-education-entry .central-career-pool { margin-top: 32px; }
.candidate-education-entry .metadata-inline-bullet-editor .bullet-row textarea { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
.candidate-education-entry .central-career-detail-actions { margin-top: 14px; }
.candidate-education-entry [data-education-remove] { color: var(--danger); }

@media (max-width: 800px) {
  .central-career-summary { grid-template-columns: 16px 28px minmax(0,1fr); padding-right: 12px; padding-left: 12px; }
  .central-career-summary-end { gap: 9px; }
  .central-career-primary-fields,
  .central-career-secondary-fields { grid-template-columns: 1fr; }
  .central-career-details { padding: 20px 16px 16px; }
  .central-career-pool-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.global-process-status-popover { font-family: "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
.global-process-status-head strong { font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.025em; }
.global-process-status-copy strong { font-family: inherit; font-size: 13px; font-weight: 600; }
.global-process-status-copy small,
.global-process-status-copy span { font-size: 12px; line-height: 1.5; }
.notification-count { position: absolute; right: -3px; top: -3px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #1f7a68; color: #fff; font-size: 10px; line-height: 1; }
.application-review-document-panel{height:calc(100vh - 100px);min-height:1450px;display:flex;flex-direction:column;overflow:hidden}
.application-review-document-head{flex:0 0 auto;gap:18px}
.application-review-toolbar{position:relative;display:flex;align-items:center;gap:6px;margin-left:auto;font:500 12px 'DM Sans',sans-serif;color:#607477}
.application-review-toolbar button{min-height:30px;padding:5px 9px;border:1px solid #d6dfe1;border-radius:7px;background:#fff;color:#26383b;font:600 11px 'DM Sans',sans-serif;cursor:pointer}
.application-review-toolbar strong{min-width:48px;text-align:center;font-size:11px}
.review-proposal-count{display:inline-grid;min-width:18px;height:18px;place-items:center;margin-left:3px;padding:0 5px;border-radius:9px;background:#e4efec;color:#146c5a;font-size:9px;font-weight:700}
.application-review-search{position:absolute;z-index:90;top:calc(100% + 7px);right:0;display:flex;align-items:center;gap:3px;min-height:34px;padding:3px 3px 3px 9px;border:1px solid #c8d6d8;border-radius:7px;background:#fff;box-shadow:0 7px 22px #183c3326}
.application-review-search[hidden]{display:none}
.application-review-search input{width:180px;min-width:90px;border:0;outline:0;background:transparent;color:#26383b;font:500 11px 'DM Sans',sans-serif}
.application-review-search span{min-width:42px;text-align:center;color:#607477;font-size:10px}
.application-review-search button{min-width:26px;min-height:24px;padding:2px 5px;border:0;background:transparent}
.application-review-document-stage{flex:1;min-height:0;background:#e9edef;overflow:hidden}
.application-review-document-stage{position:relative}
.application-review-document-stage>iframe.is-zoom-pending{visibility:hidden}
.review-context-popover{position:absolute;z-index:80;width:min(360px,calc(100% - 16px));max-height:calc(100% - 16px);overflow:auto;background:#fff;border:1px solid #cedcda;border-radius:10px;box-shadow:0 10px 35px #183c3333;padding:0 8px 8px;color:#183135}
.review-context-popover .application-review-selection{padding:10px 8px}
.review-popover-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:0 4px 0 8px;border-bottom:1px solid #e4ebec;background:#fff;font:600 12px 'Plus Jakarta Sans',sans-serif;cursor:grab;user-select:none;touch-action:none}
.review-popover-head:active{cursor:grabbing}
.review-popover-close{position:relative;z-index:4;display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border:0;background:transparent;font-size:20px;cursor:pointer;pointer-events:auto}
.review-context-popover details{padding:8px;font-size:12px}
.review-context-popover summary{cursor:pointer}
.application-review-toolbar button[aria-pressed="true"]{background:#e3f3ee;border-color:#167e68;color:#167e68}
.application-review-document-stage iframe{display:block;width:100%;height:100%;border:0;background:#e9edef}
.application-review-document-stage:fullscreen{width:100vw;height:100vh;background:#e9edef}
.application-review-document-panel.is-fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;min-height:0;margin:0;border-radius:0;background:#fff}
body.review-fullscreen-open{overflow:hidden}
.application-review-tools{align-self:start;max-height:calc(100vh - 235px);overflow:auto}
.application-review-selection{padding:14px;border-bottom:1px solid #dbe3e5;display:grid;gap:8px}
.application-review-selection small{font:700 10px 'Plus Jakarta Sans',sans-serif;color:#167e68;letter-spacing:.06em}
.application-review-selection textarea{width:100%;resize:vertical;border:1px solid #d7e0e2;border-radius:7px;padding:9px;font:400 12px 'DM Sans',sans-serif;line-height:1.45;background:#fff}
.application-review-selection>div{display:flex;gap:6px;flex-wrap:wrap}
.application-review-change-groups{display:grid;gap:0;width:100%}
.application-review-change-empty{margin:4px 0;padding:8px 0;color:#718184;font-size:11px}
.application-review-change-group{width:100%;padding-top:8px;border-top:1px solid #edf1f2}
.application-review-change-group h3{margin:0 0 8px;font:600 12px 'Plus Jakarta Sans',sans-serif;color:#314a4e}
.application-review-change{padding:4px 0 0;margin-top:6px;background:transparent}
.application-review-change.accepted{background:#f1faf7}.application-review-change.rejected{opacity:.62}
.application-review-change small{font:700 9px 'DM Sans',sans-serif;color:#167e68}.application-review-change p{margin:3px 0 7px;font-size:11px;line-height:1.4}
.application-review-change>div{display:flex;gap:7px;margin-top:9px}
.application-review-change .button{transform:none!important;transition:none!important;will-change:auto}
.application-review-change .button:hover:not(:disabled),.application-review-change .button:active:not(:disabled){transform:none!important}
.application-review-change .application-review-proposal-text{font-size:12px;line-height:1.5;color:#26383b}
.application-review-change .application-review-proposal-text mark{border-radius:3px;background:#ccefe5;color:#0f6a57;padding:1px 2px;font-weight:600}
.application-review-draft-notice{margin:12px 14px;padding:10px;border:1px solid #e4c990;border-radius:7px;background:#fff9ed;font-size:12px;line-height:1.5;color:#75561f}
.application-review-document-head{flex-wrap:wrap}
.application-review-column .document-review-row{display:grid;grid-template-columns:28px 150px minmax(110px,.9fr) minmax(68px,.5fr) minmax(68px,.55fr) 72px;column-gap:10px;align-items:stretch;min-height:58px;padding-left:16px}
.application-review-column .document-review-index{display:flex;align-items:center;align-self:stretch;border-right:1px solid var(--border);color:var(--muted);font-size:10px;font-weight:400;letter-spacing:.04em}
.application-review-column .document-review-severity{display:flex;align-items:center;align-self:stretch;padding-right:10px;border-right:1px solid var(--border);font:650 14px/1.4 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;letter-spacing:0}
.application-review-column .document-review-location-document,
.application-review-column .document-review-location-page{display:flex;align-items:center;align-self:stretch;padding-right:10px;border-right:1px solid var(--border);color:#51606f;font:400 14px/1.4 "Segoe UI",Inter,ui-sans-serif,sans-serif}
.application-review-column .document-review-details{position:relative;min-width:0;align-self:stretch}
.application-review-column .document-review-details>summary{display:flex;height:100%;align-items:center;overflow:hidden;color:#51606f;cursor:pointer;font:400 14px/1.4 "Segoe UI",Inter,ui-sans-serif,sans-serif;list-style:none;text-overflow:ellipsis;white-space:nowrap}
.application-review-column .document-review-details>summary::-webkit-details-marker{display:none}
.document-review-popover{position:fixed;z-index:1200;width:min(340px,calc(100vw - 16px));padding:14px;border:1px solid var(--border);border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(31,45,61,.12);white-space:normal}
.document-review-popover h3{margin:0 0 9px;color:#263746;font-size:13px;font-weight:650}
.document-review-popover p{margin:0;color:#51606f;font-size:13px;line-height:1.5}
.document-review-popover dl{display:grid;gap:7px;margin:12px 0 0}
.document-review-popover dl div{display:grid;grid-template-columns:75px minmax(0,1fr);gap:8px}
.document-review-popover dt{color:var(--muted);font-size:11px;font-weight:650}
.document-review-popover dd{margin:0;overflow-wrap:anywhere;color:var(--text);font-size:12px}
.application-review-column .document-review-state{display:flex;width:72px;min-height:58px;align-self:stretch;align-items:center;justify-content:center;justify-self:end;border:1px solid var(--border);background:#d72323;color:#fff;font-size:12px;line-height:1}
.application-review-column .document-review-row.warning .document-review-state{background:#f0bd67}
.application-review-column .document-review-row.info .document-review-state{background:#4f91b5}
.application-review-column .document-review-row.critical .document-review-severity,
.application-review-column .document-review-row.error .document-review-severity{color:#d72323}
.application-review-column .document-review-row.warning .document-review-severity{color:#f0bd67}
.application-review-column .document-review-row.info .document-review-severity{color:#4f91b5}
.application-review-column .panel-head{flex-wrap:wrap;gap:8px}
.application-review-automation-panel{min-width:0;overflow:hidden}
.application-automation-panel-head{gap:12px}
.application-automation-head-meta{display:grid;grid-template-columns:42px minmax(128px,auto);align-self:stretch;margin-right:-16px}
.application-automation-restart{display:grid;width:42px;min-height:42px;place-items:center;border:0;background:#fff;color:#51606f;cursor:pointer;font-size:13px}
.application-automation-restart:hover:not(:disabled){background:#f5f7f8;color:var(--accent-2)}
.application-automation-restart:disabled{cursor:not-allowed;opacity:.45}
.application-automation-head-meta time{display:flex;align-items:center;justify-content:center;padding:0 14px;color:#51606f;font-size:13px;font-weight:400;white-space:nowrap}
.application-automation-stage-list{display:grid}
.application-automation-stage-row{display:grid;grid-template-columns:28px minmax(0,1fr) 72px;column-gap:10px;align-items:center;min-height:46px;padding-left:14px;border-bottom:1px solid var(--border);font-size:13px}
.application-automation-stage-row:last-child{border-bottom:0}
.application-automation-stage-index{color:var(--muted);font-size:10px;font-weight:400;letter-spacing:.04em}
.application-automation-stage-name{color:#17202a;font-size:14px;font-weight:400}
.application-automation-stage-state{display:flex;width:72px;min-height:46px;padding:0;align-self:stretch;align-items:center;justify-content:center;justify-self:end;border:1px solid var(--border);background:#d72323;color:#fff;cursor:pointer;font:inherit;line-height:1}
.application-automation-stage-state:hover:not(:disabled){filter:brightness(.94)}
.application-automation-stage-state:disabled{cursor:not-allowed;opacity:1}
.application-automation-stage-complete .application-automation-stage-state{background:#4dbf4c;color:#fff}
.application-automation-stage-working .application-automation-stage-state{background:#4f91b5;color:#fff}
.application-automation-stage-working .application-automation-stage-state i{animation:global-process-spin .9s linear infinite}
.application-automation-stage-failed .application-automation-stage-state,
.application-automation-stage-blocked .application-automation-stage-state{background:#d72323;color:#fff}
.application-automation-stage-outdated .application-automation-stage-state,
.application-automation-stage-stale .application-automation-stage-state{background:#d72323;color:#fff}
.application-automation-stage-state i{font-size:12px;line-height:1}
.application-review-column .preflight-row{grid-template-columns:28px 150px minmax(0,1.3fr) 72px;column-gap:11px;min-height:58px;padding:0 0 0 16px}
.application-review-column .preflight-title{align-self:stretch;display:flex;align-items:center;padding-right:11px;border-right:1px solid var(--border);color:#51606f;font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.4;font-weight:650}
.application-review-column .preflight-detail{align-self:stretch;display:flex;align-items:center;overflow-wrap:anywhere;color:var(--text);font-family:"Segoe UI",Inter,ui-sans-serif,sans-serif;font-size:14px;line-height:1.45}
.application-review-column .preflight-icon{display:flex;width:72px;height:auto;min-height:58px;align-self:stretch;align-items:center;justify-content:center;justify-self:end;border:1px solid var(--border);border-radius:0;background:#d72323;color:#fff;font-size:12px;font-weight:850;line-height:1}
.application-review-column .preflight-row.ok .preflight-icon{background:#4dbf4c;color:#fff}
.application-review-column .preflight-row.warning .preflight-icon,
.application-review-column .preflight-row.blocker .preflight-icon{background:#d72323;color:#fff}
.application-automation-stage-index,
.application-review-column .preflight-index,
.status-history-index,
.application-cv-side-column .application-cv-insight-list li>span,
.application-cv-insights-embedded .application-cv-insight-list li>span{display:flex;align-self:stretch;align-items:center;font-size:10px;font-weight:400}
.application-automation-stage-index,
.application-review-column .preflight-index{border-right:1px solid var(--border)}
.status-history-index,
.application-cv-side-column .application-cv-insight-list li>span,
.application-cv-insights-embedded .application-cv-insight-list li>span{border-right:1px solid var(--border)}
.application-cv-insight-list li{align-items:stretch;padding-block:0}
.application-cv-insight-list p{padding-block:10px}
.status-history-row{align-items:stretch;padding-block:0}
.status-history-copy{padding-block:12px}
.status-history-index{position:relative;height:100%;border-right:0}
.status-history-index::after{content:"";position:absolute;top:-1px;right:0;bottom:-1px;width:1px;background:var(--border)}
.application-automation-detail{margin:0;padding:11px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:12px;line-height:1.45}
.automation-followup-head{border-top:1px solid var(--border)}
.automation-followup-row>span{display:grid;gap:3px}
.automation-followup-row>span small{color:var(--muted);font-size:11px;font-weight:400;line-height:1.4}
.application-review-column .preflight-copy,.application-review-tools{overflow-wrap:anywhere;min-width:0}
[data-interaction-mode="read_only"] [data-live-edit-control],
[data-interaction-mode="read_only"] [data-review-popover]{display:none!important}
.application-review-document-panel.is-fullscreen .application-review-toolbar{flex-wrap:wrap}
[data-live-document-open] i{font-size:13px}
.local-agent-settings-body{padding:20px;display:grid;gap:16px;font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}
.local-agent-settings-body p{margin:0;font-size:14px;line-height:1.5}
.local-agent-settings-body label,.local-agent-settings-body small,.local-agent-settings-body .button{font-size:14px}
.local-agent-controls{display:flex;flex-wrap:wrap;gap:10px}
[data-local-agent-settings]{margin-top:20px}
[data-local-agent-settings] .panel-head{flex-wrap:wrap;gap:12px}
[data-agent-connection]{color:var(--muted);font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.4}
[data-agent-token-box]:not([hidden]){display:flex;align-items:end;flex-wrap:wrap;gap:10px}
[data-agent-token-box] label{flex:1 1 320px;display:grid;gap:8px}
[data-agent-token-box] input{width:100%;padding:10px;border:1px solid var(--border);border-radius:8px}
[data-agent-token-box] small{flex-basis:100%;color:var(--muted)}
.job-intake-dialog-head .jobs-last-run{font-size:14px}
.job-intake-dialog .job-intake-fields input{font-size:14px;font-weight:400}
@media (max-width:1200px){.application-review-toolbar>span{display:none}.application-review-document-panel{min-height:1250px}.application-review-search input{width:130px}}

.job-entry-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.job-entry-data-panel,.job-entry-analysis-panel,.job-entry-actions-panel{min-width:0;overflow:hidden}
.job-entry-action-column{display:grid;gap:18px;min-width:0;align-content:start}
.job-entry-workspace .panel-head{padding-top:17px;padding-bottom:17px}
.job-entry-workspace .panel-head .section-label,.job-entry-import-dialog .dialog-head .section-label{font-family:'Plus Jakarta Sans',sans-serif;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.055em}
.job-entry-workspace .panel-head h2,.job-entry-import-dialog .dialog-head h2{font-family:'Plus Jakarta Sans',sans-serif;font-weight:500}
.job-entry-analysis-states{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex-wrap:wrap}
.job-entry-analysis-panel{min-height:680px}
.job-entry-analysis-content{min-height:610px}
.job-entry-analysis-content>.empty-state{padding:48px 22px;font:400 14px/1.6 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-analysis-content>.canonical-job-section>.eyebrow,
.job-entry-analysis-content>.canonical-job-section>.canonical-job-section-toggle .eyebrow{color:var(--accent-2);font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.35;font-weight:700;letter-spacing:0}
.job-entry-analysis-content>.canonical-job-section>.canonical-job-section-toggle{padding:14px 18px 9px;color:var(--accent-2)}
.job-entry-analysis-content>.canonical-job-section>.canonical-job-section-toggle .eyebrow{padding:0}
.job-entry-analysis-content .canonical-job-section-body>div{grid-template-columns:minmax(165px,30%) minmax(0,70%)}
.job-entry-analysis-content .canonical-job-section-body>div>*{min-width:0;overflow-wrap:anywhere}
.job-entry-analysis-content .canonical-job-section-body>div>details,
.job-entry-analysis-content .canonical-job-section-body>div>div{margin:0;padding:13px 18px;color:var(--text);font:400 14px/1.55 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-analysis-content .canonical-job-section-body>div>.job-eligibility{grid-template-columns:minmax(58px,auto) minmax(0,1fr) auto}
.job-entry-analysis-content .canonical-job-section-body>div>.job-overall-score{width:100%}
.job-entry-analysis-content .job-overall-score-details{width:100%;margin-left:0;grid-template-columns:minmax(120px,.32fr) minmax(0,1fr)}
.job-entry-analysis-content .job-requirement-evidence>summary{min-height:22px}
.job-entry-analysis-content .job-requirement-evidence>ul{box-sizing:border-box;width:100%}
.job-entry-analysis-content .canonical-job-section-body>.job-personal-fit-row>.matching-personal-fit{padding:0}
.job-entry-analysis-content .canonical-job-section-body>.job-personal-fit-row>.matching-personal-fit>summary{padding:13px 18px}
.job-entry-analysis-content .matching-personal-fit-factors{box-sizing:border-box;width:142.857%;margin:0 0 0 -42.857%}
.job-entry-analysis-content .matching-personal-fit-factor{grid-template-columns:30% minmax(0,1fr) 56px auto;gap:0;align-items:stretch;padding:0}
.job-entry-analysis-content .matching-personal-fit-copy{display:contents}
.job-entry-analysis-content .matching-personal-fit-copy .matching-personal-fit-label{grid-column:1;padding:11px 15px 11px 18px;border-right:1px solid var(--border);background:#f8fafb;color:#596877;font:700 12px/1.45 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-analysis-content .matching-personal-fit-copy>span:not(.matching-personal-fit-label){grid-column:2;padding:11px 18px;color:var(--text);font:400 14px/1.55 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-analysis-content .matching-personal-fit-impact{grid-column:3;grid-row:1;padding:11px 6px;color:var(--text);font:400 14px/1.55 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;text-align:right}
.job-entry-analysis-content .matching-personal-fit-assessment{grid-column:4;grid-row:1;padding:12px 18px 11px 8px}
.job-entry-analysis-panel>.job-analysis-status{margin:0;padding:12px 18px;border-top:1px solid var(--border);font-size:13px}
.job-entry-action-state{padding:12px 14px;border-bottom:1px solid var(--border);background:#f8fafb}
.job-entry-actions-panel .letter-tool-button,.job-entry-actions-panel .job-analysis-status{font-size:13px}
.job-entry-import-dialog{width:min(940px,calc(100vw - 32px));max-height:min(900px,calc(100vh - 24px));overflow:hidden}
.job-entry-test-dialog{width:min(520px,calc(100vw - 32px));overflow:hidden}
.job-entry-test-body{display:grid;gap:18px;padding:20px 22px 24px}
.job-entry-test-body p{margin:0;color:var(--muted);line-height:1.55}
.job-entry-test-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.job-entry-test-options .button{justify-content:center}
.job-entry-import-body{display:grid;min-height:0;max-height:calc(100vh - 190px);overflow:auto;background:#fff}
.job-entry-mode-tabs{display:flex;gap:6px;padding:18px 22px 14px}
.job-entry-mode-tabs button{min-height:34px;padding:7px 13px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#51606f;cursor:pointer;font:500 13px/1 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-mode-tabs button.active{border-color:#9acdbb;background:#edf8f4;color:var(--accent-2)}
.job-entry-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:0 22px}
.job-entry-url-row label,.job-entry-description{display:grid;gap:7px;color:#51606f;font:600 13px/1.45 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-url-row input{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--border);border-radius:8px;color:var(--text);font:400 14px/1.3 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-hint{margin:10px 22px 0;color:var(--muted);font:400 12px/1.5 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-fields .field-row>span{font-size:13px}
.job-entry-fields .field-row input,.job-entry-fields .field-row select{font-size:14px}
.job-entry-description{padding:18px 22px 22px}
.job-entry-description textarea{width:100%;min-height:430px;resize:vertical;padding:13px;border:1px solid var(--border);border-radius:8px;color:var(--text);font:400 14px/1.65 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.job-entry-import-actions{display:flex;justify-content:flex-end;gap:9px;padding:15px 22px 20px;border-top:1px solid var(--border)}
@media(max-width:560px){.job-entry-test-options{grid-template-columns:1fr}}
.application-job-source-link{display:inline-block;margin-top:5px;color:var(--accent-2);font-size:12px;font-weight:500;text-decoration:none}
.application-job-source-link:hover{text-decoration:underline}
@media (max-width:1100px){.job-entry-analysis-panel{min-height:0}.job-entry-analysis-content{min-height:420px}}
@media (max-width:680px){.job-entry-heading{align-items:flex-start;flex-direction:column}.job-entry-url-row{grid-template-columns:1fr}}
.application-analysis-panel.job-quick-review-analysis-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-height: 0; height: min(800px,calc(100dvh - 190px)); }
.job-quick-review-content.job-entry-analysis-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.job-quick-review-analysis-panel .job-quick-review-actions { flex: 0 0 auto; }
.job-quick-review-analysis-panel .job-quick-review-decision-actions { display: flex; }
@media(max-width:1180px){.application-analysis-panel.job-quick-review-analysis-panel{height:680px}}
@media(max-width:700px){.job-quick-review-analysis-panel .job-quick-review-action-spacer{display:none}}
/* Auth */
.login-page{margin:0;min-height:100vh;background:#f4f7f6;color:#17202a;font-family:'DM Sans',sans-serif}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px}
.login-card{width:min(100%,430px);padding:34px;border:1px solid #dbe2e1;border-radius:16px;background:#fff;box-shadow:0 22px 60px rgba(23,42,47,.12)}
.login-brand{display:grid;width:44px;height:44px;margin-bottom:28px;place-items:center;border-radius:10px;background:#167e68;color:#fff;font:700 13px/1 'Plus Jakarta Sans',sans-serif}
.login-heading h1{margin:5px 0 8px;font:500 29px/1.2 'Plus Jakarta Sans',sans-serif}
.login-heading p{margin:0 0 24px;color:#68757f;font-size:14px;line-height:1.55}
.login-form{display:grid;gap:17px}
.login-form label{display:grid;gap:7px;color:#44515d;font-size:13px;font-weight:600}
.login-form input{box-sizing:border-box;width:100%;height:44px;padding:0 13px;border:1px solid #cfd8d7;border-radius:8px;background:#fff;color:#17202a;font:14px/1.2 'DM Sans',sans-serif;outline:none}
.login-form input:focus{border-color:#167e68;box-shadow:0 0 0 3px rgba(22,126,104,.12)}
.login-submit{width:100%;height:44px;margin-top:4px;justify-content:center}
.login-error{margin:0 0 18px;padding:11px 13px;border:1px solid #d7232347;border-radius:8px;background:#d7232314;color:#a51b1b;font-size:13px;line-height:1.45}
.logout-form{display:flex;margin:0}

/* High-contrast application theme */
html[data-theme="dark"] {
  --bg: #181818;
  --surface: #202020;
  --surface-2: #292929;
  --surface-3: #333333;
  --border: #3c3c3c;
  --border-strong: #575757;
  --text: #f2f2f2;
  --muted: #b9b9b9;
  --muted-2: #969696;
  --accent: #63dbb5;
  --accent-2: #8ce9cc;
  --accent-soft: rgba(99, 219, 181, .14);
  --field-focus-accent: #63dbb5;
  --warning: #f4c872;
  --danger: #ff8e99;
  --shadow: 0 18px 55px rgba(0, 0, 0, .38);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: #181818; color: var(--text); }
html[data-theme="dark"] :is(h1, h2, h3, h4, .page-heading h1, .detail-title h1) { color: var(--text); }
html[data-theme="dark"] .sidebar { background: rgba(24, 24, 24, .98); border-right-color: var(--border); box-shadow: 5px 0 24px rgba(0, 0, 0, .25); }
html[data-theme="dark"] .topbar { background: rgba(24, 24, 24, .95); border-bottom-color: var(--border); }
html[data-theme="dark"] .mobile-nav { background: rgba(24, 24, 24, .97); }
html[data-theme="dark"] .brand-mark { color: #07110e; }
html[data-theme="dark"] :is(.nav-item, .nav-subitem, .nav-item.active .nav-text, .topbar-breadcrumb a, .topbar-breadcrumb strong, .breadcrumb-separator) { color: var(--text); }
html[data-theme="dark"] :is(.nav > .nav-item, .nav-dropdown > summary, .nav-dropdown[open]) { border-color: var(--border); }
html[data-theme="dark"] .nav-item:hover { background: #303030; }
html[data-theme="dark"] .nav-item.active { background: var(--accent-soft); color: var(--accent-2); }
html[data-theme="dark"] .nav-item.active .nav-text { color: var(--accent-2); }
html[data-theme="dark"] .theme-toggle { color: #ffd56a; }
html[data-theme="dark"] .theme-toggle:hover { background: #353535; }

html[data-theme="dark"] :is(.panel, .hero-panel, .stat-card, .job-card, .profile-card, .icon-button, .pdf-card) { background: var(--surface); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .hero-panel { background: linear-gradient(135deg, #282828, #202020); }
html[data-theme="dark"] :is(.autopilot-card, .search-box, .application-filter-menu summary, .application-date-filter, .application-filter-options, .job-match-popover, .application-row-status-options, .row-action-popover, .global-process-status-popover, .dialog, dialog, .job-intake-dialog, .job-detail-drawer, .document-review-popover, .review-context-popover, .application-review-search, .job-entry-import-body) { background: var(--surface); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] :is(.global-process-status-head, .review-popover-head, .job-detail-drawer-actions, .dialog-head, .dialog-actions, .job-entry-import-actions) { background: var(--surface); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] :is(.button.secondary, .button.ghost, .application-review-toolbar button, .job-entry-mode-tabs button, .application-file-action, .pdf-preview-fullscreen, .competency-add) { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
html[data-theme="dark"] .application-file-list { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .file-browser-group-summary:hover { background: var(--surface-2); }
html[data-theme="dark"] .file-browser-group[open] > .file-browser-group-summary { background: var(--accent-soft); }
html[data-theme="dark"] .file-browser-group-copy strong { color: var(--text); }
html[data-theme="dark"] :is(.button.secondary, .button.ghost, .icon-button):hover { background: #353535; border-color: #626262; }
html[data-theme="dark"] .button.primary { background: var(--accent); border-color: var(--accent); color: #07110e; }

html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea, [contenteditable="true"]) { background-color: #1b1b1b; border-color: var(--border); color: var(--text); caret-color: var(--accent); }
html[data-theme="dark"] :is(input, textarea)::placeholder { color: #858585; }
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, [contenteditable="true"]):focus { background-color: #242424; border-color: var(--accent); }
html[data-theme="dark"] input[type="checkbox"], html[data-theme="dark"] input[type="radio"] { accent-color: var(--accent); }
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }

html[data-theme="dark"] :is(.field-row > span, .mail-meta dt, .mail-reply-recipient span, .mail-reply-subject span, .mail-compose-fields label > span, .matching-personal-fit-label) { background: var(--surface-2) !important; border-color: var(--border); color: var(--muted) !important; }
html[data-theme="dark"] :is(.field-row, .panel-head, .table-row, .mail-row, .prompt-task-row, .candidate-page-information-row, .candidate-additional-evidence-row, .competency-row, .central-career-row) { border-color: var(--border); }
html[data-theme="dark"] :is(.table-head, .mail-head, .prompt-task-header, .profile-career-head, .central-career-head, .job-entry-action-state, .email-test-status, .openai-test-status, .unified-text-editor-head, .unified-text-editor-footer, .mail-attachments, .text-favorites-picker-content) { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
html[data-theme="dark"] :is(.activity-row, .table-row:not(.table-head), .mail-row:not(.mail-head), .settings-row):hover { background: #2b2b2b; }
html[data-theme="dark"] .settings-row.pending { background: var(--surface-2); }

html[data-theme="dark"] :is(.unified-text-editor, .unified-text-editor-toolbar, .unified-text-editor-surface, .unified-text-editor-html-source, .prompt-task-row, .prompt-task-row > input, .prompt-task-row > textarea, .ai-instruction-actions) { background: var(--surface); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] :is(.text-format-button, .text-format-size, .text-editor-expand-icon, .unified-text-editor-head strong) { color: var(--text); }
html[data-theme="dark"] .text-editor-view-toggle { background: #191919; border-color: var(--border); }
html[data-theme="dark"] .text-editor-view-toggle button { color: var(--muted); }
html[data-theme="dark"] .text-editor-view-toggle button.is-active { background: var(--surface-3); color: var(--accent-2); }
html[data-theme="dark"] :is(.unified-text-editor-surface, .unified-text-editor-html-source, .prompt-task-row > input, .prompt-task-row > textarea):focus { background: #252525; }

html[data-theme="dark"] :is(.profile-text-fields label > span, .experience-bullets > span, .prompt-generation-field > span, .letter-word-targets label, .metadata-fields label > span, .metadata-signature > span, .email-checkbox, .prompt-task-check, .dialog-field span, .job-entry-url-row label, .job-entry-description) { color: var(--muted); }
html[data-theme="dark"] :is(.asset-file-name, .application-file-copy strong, .output-directory-control small strong, .text-format-button, .text-format-size) { color: var(--text); }
html[data-theme="dark"] :is(.filename-placeholder-help, .email-placeholder-help) { background: var(--surface); }
html[data-theme="dark"] .filename-placeholder-help code { background: var(--surface-2); border-color: var(--border); color: var(--accent-2); }
html[data-theme="dark"] :is(.letter-chat-selection, .job-requirement-evidence > ul, .job-prefilter-reasons ul) { background: var(--surface-2) !important; border-color: var(--border); color: var(--muted) !important; }
html[data-theme="dark"] :is(.mail-row.unread, .email-test-status.success, .openai-test-status.success) { background: rgba(99, 219, 181, .10); }
html[data-theme="dark"] :is(.email-test-status.error, .openai-test-status.error) { background: rgba(255, 142, 153, .10); }
html[data-theme="dark"] :is(.toast, .system-pill) { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
html[data-theme="dark"] .pdf-document-preview { color-scheme: light; }

html[data-theme="dark"] :is(.status-chip, .company-badge, .workspace-state-chip, .workspace-followup-badge, .workspace-save-state .save-state-chip) { background: #303030; border-color: #555; color: #dedede; }
html[data-theme="dark"] :is(.status-chip.status-sent, .status-chip.status-transferred, .status-chip.status-exported, .company-badge.status-sent, .company-badge.status-transferred, .company-badge.status-exported, .workspace-state-chip.ok, .workspace-followup-badge, .workspace-save-state .save-state-chip.success) { background: #24342f; border-color: #42685c; color: #a8dccb; }
html[data-theme="dark"] :is(.status-chip.status-followup, .status-chip.status-scheduled, .company-badge.status-followup, .company-badge.status-scheduled, .workspace-state-chip.warning, .workspace-save-state .save-state-chip.warning) { background: #393226; border-color: #6c5a38; color: #e1c184; }
html[data-theme="dark"] :is(.status-chip.status-response, .status-chip.status-interview, .status-chip.status-assessment, .company-badge.status-response, .company-badge.status-interview, .company-badge.status-assessment) { background: #2c3039; border-color: #505968; color: #c0cada; }
html[data-theme="dark"] :is(.status-chip.status-rejected, .company-badge.status-rejected, .workspace-state-chip.blocker, .workspace-followup-badge.overdue, .workspace-followup-badge.due-today) { background: #3c292b; border-color: #70474c; color: #efa7af; }
html[data-theme="dark"] :is(.status-chip.status-draft, .status-chip.status-custom, .status-chip.status-archived, .company-badge.status-draft, .company-badge.status-custom, .company-badge.status-archived) { background: #303030; border-color: #555; color: #d0d0d0; }

html[data-theme="dark"] .application-workflow-bar { background: rgba(32, 32, 32, .97); border-color: var(--border); }
html[data-theme="dark"] .workspace-mode-navigation button { color: var(--muted); }
html[data-theme="dark"] .workspace-mode-navigation button:is(:hover, .active) { color: var(--accent-2); }
html[data-theme="dark"] .application-side-panel-head { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .application-side-toggle { background: var(--surface-2); border-color: var(--border-strong); color: var(--accent-2); }
html[data-theme="dark"] .application-side-toggle:hover { background: var(--surface-3); }
html[data-theme="dark"] .application-cv-station { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .application-cv-station-head { background: var(--surface-2); }
html[data-theme="dark"] .application-cv-station-meta span { color: var(--muted); }
html[data-theme="dark"] .letter-tool-button { background: var(--surface-2); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .letter-tool-button:hover { background: var(--surface-3); color: var(--accent-2); }
html[data-theme="dark"] .content > .detail-heading h1 { color: var(--text) !important; }
html[data-theme="dark"] .letter-assistant-column.system-assistant-drawer { background: rgba(32, 32, 32, .98); border-left-color: var(--border); color: var(--text); }

@media (max-width: 520px) {
  .topbar-actions .theme-toggle { display: grid; }
  .profile-photo-assignment-row { grid-template-columns: 1fr; gap: 9px; padding-inline: 16px; }
  .profile-photo-assignment-row .button { justify-self: start; }
}

/* Historical letter archive */
.letter-archive-heading { margin-bottom: 18px; }
.letter-archive-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.letter-archive-toolbar { margin-bottom: 14px; }
.letter-archive-toolbar .application-filter-row { grid-template-columns: minmax(280px, 620px) minmax(170px, 240px) minmax(0, 1fr); }
.letter-archive-toolbar .application-search { grid-column: auto; max-width: 620px; }
.letter-archive-toolbar .record-count { justify-self: end; margin-left: auto; }
.letter-archive { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(400px, 1.75fr) minmax(250px, .68fr); gap: 14px; min-height: min(720px, calc(100vh - 205px)); align-items: stretch; }
.letter-archive > .panel { min-width: 0; overflow: hidden; }
.letter-archive-history { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.letter-archive-list { min-height: 0; overflow-y: auto; }
.letter-archive-entry { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; font-size: 14px; cursor: pointer; }
.letter-archive-entry:hover { background: var(--surface-2); }
.letter-archive-entry.active { background: transparent; box-shadow: none; }
.letter-archive-entry strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: inherit; }
.letter-archive-entry span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: inherit; }
.letter-archive-entry time { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted-2); font-size: 12px; }
.letter-archive-no-results { margin: 0; padding: 22px 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.letter-archive-reader { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.letter-archive-editor { min-height: 0; overflow: hidden; }
.letter-archive-editor .unified-text-editor { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
.letter-archive-editor .unified-text-editor-surface { min-height: 0 !important; overflow-y: auto; padding: 30px clamp(24px, 4vw, 58px) 44px; white-space: normal; user-select: text; cursor: text; }
.letter-archive-editor .unified-text-editor-surface:empty::before { content: none; }
.letter-archive-paragraph { margin: 0 0 1em; line-height: 1.65; }
.letter-archive-paragraph:last-child { margin-bottom: 0; }
.letter-archive-paragraph > :is(span, mark) { white-space: pre-wrap; }
.letter-archive-editor .unified-text-editor-surface mark { padding: 1px 0; border-radius: 2px; background: #ffe89a; color: #2d291b; cursor: pointer; }
.letter-archive-editor .unified-text-editor-surface mark:hover { background: #ffdd64; }
.letter-archive-editor .unified-text-editor-surface mark.letter-archive-search-hit { padding-inline: 2px; background: #ffd84d; color: #2d291b; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: text; }
.letter-archive-empty { position: absolute; inset: 72px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 30px; color: var(--muted); text-align: center; }
.letter-archive-empty i { font-size: 25px; }
.letter-archive-empty strong { color: var(--text); font-size: 12px; }
.letter-archive-empty span { max-width: 280px; font-size: 10px; line-height: 1.5; }
.letter-archive-actions { display: flex; flex-direction: column; }
.letter-archive-action-list { display: grid; gap: 9px; padding: 14px 14px 0; }
.letter-archive-action-list .button { width: 100%; justify-content: flex-start; }
.letter-archive-action-state { min-height: 18px; margin: 12px 14px 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.letter-archive-action-state[data-tone="success"] { color: var(--accent); }
.letter-archive-action-state[data-tone="error"] { color: var(--danger); }
.letter-formulation-dialog,
.letter-template-copy-dialog { width: min(760px, calc(100vw - 32px)); }
.letter-formulation-dialog-content { display: grid; gap: 17px; padding: 18px 22px 4px; }
.letter-formulation-dialog-content blockquote { max-height: 260px; margin: 0; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; line-height: 1.65; }
.letter-formulation-dialog-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.letter-formulation-dialog-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.letter-formulation-dialog-fields select { width: 100%; min-height: 42px; padding: 9px 34px 9px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.letter-formulation-dialog-fields select:focus { border-color: var(--field-focus-accent); box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.letter-archive-readonly-note { display: flex; gap: 8px; margin: auto 14px 16px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.letter-archive-readonly-note i { margin-top: 2px; }
.letter-archive-live-document[hidden] { display: none; }
.letter-archive-editor.is-editing .unified-text-editor-surface { background: #fffef8; box-shadow: inset 3px 0 0 #d79b17; }
.letter-archive-edit-tools { display: grid; gap: 8px; padding: 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.letter-archive-edit-tools[hidden] { display: none; }
.letter-archive-edit-tools > strong { font-size: 10px; color: var(--muted); }
.letter-archive-edit-tools > div { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-archive-edit-tools button { min-height: 29px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--accent); font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.letter-template-copy-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr); gap: 14px; padding: 18px 22px 4px; }
.letter-template-copy-content label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.letter-template-copy-content :is(input, select, textarea) { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.letter-template-copy-content :is(input, select, textarea):focus { border-color: var(--field-focus-accent); box-shadow: 0 0 0 3px rgba(22,115,93,.07); }
.letter-template-copy-preview-field { grid-column: 1 / -1; }
.letter-template-copy-preview-field textarea { min-height: 260px; resize: vertical; line-height: 1.65; }
html[data-theme="dark"] .letter-archive-editor .unified-text-editor-surface mark { background: #80661b; color: #fff4c7; }
html[data-theme="dark"] .letter-archive-editor .unified-text-editor-surface mark.letter-archive-search-hit { background: #ffd84d; color: #2d291b; }

@media (max-width: 1080px) {
  .letter-archive-toolbar .application-filter-row { grid-template-columns: minmax(0, 1fr) minmax(170px, 240px); }
  .letter-archive-toolbar .application-search { grid-column: 1 / -1; max-width: none; }
  .letter-archive { grid-template-columns: minmax(220px, .72fr) minmax(340px, 1.6fr) minmax(220px, .68fr); }
}
@media (max-width: 820px) {
  .mobile-nav { grid-template-columns: repeat(7, 1fr); }
  .letter-archive { grid-template-columns: 1fr; min-height: 0; }
  .letter-archive-history { max-height: 340px; }
  .letter-archive-reader { min-height: 560px; }
  .letter-archive-actions { min-height: 360px; }
  .letter-formulation-dialog-fields { grid-template-columns: 1fr; }
  .letter-template-copy-content { grid-template-columns: 1fr; }
  .letter-template-copy-preview-field { grid-column: auto; }
}

/* Lebenslauf-Einstellungen: gut lesbare Fließ- und Bedientexte, ohne Überschriften oder Badges zu skalieren. */
.resume-settings-font { font-size: 14px; }
.resume-settings-font .button:not(.competency-add):not(.panel-head *),
.resume-settings-font .competency-group-head,
.resume-settings-font .competency-category-heading strong,
.resume-settings-font .competency-category-heading input,
.resume-settings-font .competency-active,
.resume-settings-font .competency-profile-picker > summary,
.resume-settings-font .competency-profile-options label,
.resume-settings-font .competency-cv-level,
.resume-settings-font .candidate-additional-evidence-row input,
.resume-settings-font .candidate-additional-evidence-row select,
.resume-settings-font .additional-evidence-active,
.resume-settings-font .candidate-education-fields label > span,
.resume-settings-font .candidate-detail-editor > span,
.resume-settings-font .candidate-interests-field > span,
.resume-settings-font .candidate-education-fields input,
.resume-settings-font .candidate-interests-field textarea,
.resume-settings-font .metadata-inline-bullet-editor .bullet-row textarea,
.resume-settings-font .candidate-page-information-head strong,
.resume-settings-font .central-career-summary-copy small,
.resume-settings-font .central-career-secondary-fields label,
.resume-settings-font .central-career-details > .career-current-toggle,
.resume-settings-font .central-career-pool-head small,
.resume-settings-font .station-evidence-row textarea,
.resume-settings-font .candidate-education-entry .education-visible,
.resume-settings-font .empty-state { font-size: 14px; }
