
:root{
  --bg:#eef2f6;
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --ink:#101828;
  --muted:#667085;
  --line:#e4e7ec;
  --brand:#155eef;
  --brand-2:#0b4dcc;
  --success:#067647;
  --success-bg:#ecfdf3;
  --danger:#b42318;
  --danger-bg:#fef3f2;
  --shadow:0 18px 50px rgba(16,24,40,.08);
  --shadow-sm:0 8px 24px rgba(16,24,40,.06);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 0 0,rgba(21,94,239,.055),transparent 30%),
    linear-gradient(180deg,#f3f6fa 0%,#edf1f5 100%);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
button,input{font:inherit}
.shell{max-width:1320px;margin:0 auto;padding:30px 24px 84px}

/* NAV */
.nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;padding:2px 2px 0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-mark{
  width:48px;height:48px;border-radius:14px;background:#101828;color:#fff;
  display:grid;place-items:center;font-size:14px;font-weight:700;letter-spacing:-.5px;
  box-shadow:0 8px 22px rgba(16,24,40,.16)
}
.brand-title{font-weight:650;font-size:22px;letter-spacing:-.45px}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px;letter-spacing:.02em}
.nav-actions{display:flex;gap:9px;align-items:center}

/* BASE */
.card{
  background:rgba(255,255,255,.98);
  border:1px solid rgba(228,231,236,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.panel{padding:34px;margin-bottom:24px}
.panel-title{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}
.panel-title h2{margin:0;font-size:26px;letter-spacing:-.6px}
.panel-title p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.5}

.btn{
  border:0;border-radius:13px;padding:12px 17px;font-size:14px;font-weight:600;
  cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
  gap:8px;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.65;cursor:wait;transform:none}
.btn-dark{background:#101828;color:#fff;box-shadow:0 7px 18px rgba(16,24,40,.15)}
.btn-green{background:var(--success);color:#fff;box-shadow:0 7px 18px rgba(6,118,71,.18)}
.btn-blue{background:var(--brand);color:#fff;box-shadow:0 7px 18px rgba(21,94,239,.2)}
.btn-soft{background:#f2f4f7;color:#344054}
.btn-outline{background:#fff;color:#344054;border:1px solid var(--line)}

.alert{padding:14px 16px;border-radius:14px;margin-bottom:18px;font-size:13px;font-weight:650}
.alert-success{background:var(--success-bg);color:var(--success);border:1px solid #abefc6}
.alert-error{background:var(--danger-bg);color:var(--danger);border:1px solid #fecdca}

/* HOME HERO */
.hero{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  overflow:hidden;
  margin-bottom:24px;
  min-height:430px;
}
.hero-copy{
  padding:60px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.eyebrow{
  font-size:12px;
  font-weight:650;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:14px;
}
.hero h1{
  margin:0 0 18px;
  font-size:51px;
  line-height:1.04;
  letter-spacing:-1.9px;
}
.hero p{
  margin:0;
  max-width:620px;
  color:var(--muted);
  font-size:17px;
  line-height:1.68;
}
.hero-side{
  background:
    radial-gradient(circle at 100% 0,rgba(83,131,255,.18),transparent 35%),
    linear-gradient(145deg,#101828,#1d2939);
  color:#fff;
  padding:38px;
  display:flex;
  align-items:center;
}
.steps{display:grid;gap:12px;width:100%}
.step{
  display:flex;gap:13px;align-items:center;
  padding:17px 18px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:15px;
  background:rgba(255,255,255,.055);
}
.step-no{
  width:34px;height:34px;border-radius:10px;
  background:#fff;color:#101828;
  display:grid;place-items:center;
  font-size:13px;font-weight:700;flex:none
}
.step b{display:block;font-size:15px;margin-bottom:3px}
.step span{display:block;color:#c3cad5;font-size:11px;line-height:1.35}

/* UPLOAD */
.dropzone{
  display:block;
  border:2px dashed #d0d5dd;
  border-radius:19px;
  background:#fbfcfe;
  padding:38px 28px;
  text-align:center;
  cursor:pointer;
  transition:.18s ease;
}
.dropzone:hover,.dropzone.drag{
  border-color:#84adff;
  background:#f5f8ff;
}
.dropzone input{display:none}
.drop-icon{
  width:60px;height:60px;border-radius:18px;
  background:#eef4ff;color:var(--brand);
  display:grid;place-items:center;
  margin:0 auto 15px;
  font-size:28px;font-weight:700;
}
.dropzone strong{display:block;font-size:18px;margin-bottom:6px}
.dropzone span{display:block;color:var(--muted);font-size:12px}
.selected-file{margin-top:12px;color:var(--success);font-size:13px;font-weight:600}
.upload-actions{display:flex;justify-content:center;margin-top:18px}

/* RECENT CVS */
.recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.recent{
  padding:18px;
  text-decoration:none;
  transition:.18s ease;
  box-shadow:none;
}
.recent:hover{
  transform:translateY(-2px);
  border-color:#b2ccff;
  box-shadow:0 12px 30px rgba(16,24,40,.07);
}
.avatar{
  width:44px;height:44px;border-radius:13px;
  background:#eef2f6;color:#344054;
  display:grid;place-items:center;
  font-weight:700;font-size:13px;
  margin-bottom:14px;
}
.recent h3{margin:0 0 6px;font-size:15px}
.recent p{
  margin:0 0 13px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.meta{display:flex;gap:7px;flex-wrap:wrap}
.pill{
  display:inline-flex;
  padding:6px 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:10px;
  font-weight:750;
}

/* FLOW PROGRESS */
.progress{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:20px}
.progress-step{
  min-height:48px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.84);
  border:1px solid var(--line);display:flex;align-items:center;gap:9px;
  color:#7a8493;font-size:12px;font-weight:600;box-shadow:var(--shadow-sm)
}
.progress-dot{
  width:26px;height:26px;border-radius:9px;background:#eef1f5;
  display:grid;place-items:center;flex:0 0 auto;font-size:11px
}
.progress-step.active{color:var(--brand);border-color:#b2ccff;background:#f5f8ff}
.progress-step.active .progress-dot{background:var(--brand);color:#fff}
.progress-step.done{color:var(--success);border-color:#abefc6;background:#f6fef9}
.progress-step.done .progress-dot{background:var(--success);color:#fff}

/* CANDIDATE */
.section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.info-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.info-card .k{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:650;margin-bottom:5px}
.info-card .v{font-size:14px;font-weight:600}

/* TEMPLATE GRID */
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.template-option{position:relative}
.template-option input{position:absolute;opacity:0;pointer-events:none}
.template-card{
  height:100%;min-height:135px;background:#fff;border:1px solid var(--line);
  border-radius:17px;padding:17px;cursor:pointer;transition:.18s ease;
  box-shadow:0 3px 12px rgba(16,24,40,.025)
}
.template-card:hover{border-color:#b2ccff;box-shadow:0 9px 25px rgba(16,24,40,.07);transform:translateY(-2px)}
.template-option input:checked + .template-card{
  border:2px solid var(--brand);background:#f7f9ff;padding:16px;
  box-shadow:0 12px 30px rgba(21,94,239,.10)
}
.tpl-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.tpl-logo{
  height:38px;min-width:52px;padding:0 10px;border-radius:11px;background:#f2f4f7;
  display:grid;place-items:center;font-size:12px;font-weight:700;color:#344054
}
.template-option input:checked + .template-card .tpl-logo{background:#eaf0ff;color:var(--brand)}
.tpl-check{width:22px;height:22px;border:1.5px solid #cfd4dc;border-radius:50%;background:#fff}
.template-option input:checked + .template-card .tpl-check{border:6px solid var(--brand)}
.template-card h3{font-size:14px;line-height:1.35;margin:0 0 5px}
.template-card p{font-size:11px;color:var(--muted);line-height:1.4;margin:0;word-break:break-word}

.settings-box{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:17px;background:var(--surface-2)}
.settings-box h3{font-size:14px;margin:0 0 13px}
.radio-row{display:flex;gap:9px;flex-wrap:wrap}
.radio-chip{
  padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:12px;
  cursor:pointer;font-size:13px;font-weight:750
}
.radio-chip:has(input:checked){border-color:#84adff;background:#f5f8ff;color:var(--brand)}
.radio-chip input{margin-right:7px;accent-color:var(--brand)}

/* FORMAT */
.format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.format-option{position:relative}
.format-option input{position:absolute;opacity:0;pointer-events:none}
.format-card{
  min-height:88px;padding:14px 15px;background:#fff;border:1px solid var(--line);
  border-radius:14px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;
  transition:.16s ease
}
.format-card:hover{border-color:#b2ccff}
.format-option input:checked + .format-card{
  border:2px solid var(--brand);background:#f7f9ff;padding:13px 14px;
  box-shadow:0 7px 18px rgba(21,94,239,.08)
}
.format-card strong{font-size:14px;margin-bottom:4px}
.format-card span{font-size:11px;color:var(--muted)}
.format-option input:checked + .format-card strong{color:var(--brand)}

.export-bar{
  position:sticky;bottom:16px;z-index:20;margin-top:20px;padding:14px 15px;
  border-radius:17px;border:1px solid rgba(228,231,236,.95);
  background:rgba(255,255,255,.93);backdrop-filter:blur(16px);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  box-shadow:0 16px 40px rgba(16,24,40,.14)
}
.export-bar strong{font-size:14px}
.export-bar small{display:block;color:var(--muted);font-size:11px;margin-top:3px}

/* LIST / ADVANCED */
.file-card{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
details.advanced{
  margin-top:18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)
}
details.advanced summary{padding:15px 17px;cursor:pointer;font-size:13px;font-weight:600}
details.advanced .advanced-body{padding:0 17px 17px}

/* MODAL */
.loading-overlay{
  position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;
  padding:22px;background:rgba(16,24,40,.62);backdrop-filter:blur(10px)
}
.loading-overlay.show{display:flex}
.loading-box{
  width:min(500px,94vw);background:#fff;border:1px solid rgba(255,255,255,.7);
  border-radius:24px;padding:34px 32px 30px;text-align:center;
  box-shadow:0 36px 90px rgba(16,24,40,.30);animation:pop .22s ease-out
}
.loading-icon{
  width:64px;height:64px;margin:0 auto 18px;border-radius:20px;background:#f0f5ff;
  display:grid;place-items:center
}
.loading-icon:before{
  content:"";width:30px;height:30px;border:4px solid #c7d7fe;border-top-color:var(--brand);
  border-radius:50%;animation:spin .82s linear infinite
}
.loading-box h3{font-size:21px;letter-spacing:-.35px;margin:0 0 8px}
.loading-box p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.loading-meta{margin-top:18px;padding:12px 14px;border-radius:13px;background:#f8fafc;text-align:left}
.loading-meta-row{display:flex;justify-content:space-between;gap:14px;font-size:12px;padding:4px 0}
.loading-meta-row span:first-child{color:var(--muted)}
.loading-meta-row strong{font-size:12px;text-align:right}
.progress-track{height:7px;background:#eef2f6;border-radius:999px;overflow:hidden;margin-top:18px}
.progress-track span{
  display:block;height:100%;width:32%;border-radius:999px;background:var(--brand);
  animation:flow 1.25s ease-in-out infinite
}
.loading-note{font-size:11px!important;margin-top:13px!important;color:#98a2b3!important}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes flow{0%{transform:translateX(-120%)}100%{transform:translateX(420%)}}
@keyframes pop{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}

@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-copy{padding:40px 30px}
  .hero h1{font-size:38px}
  .template-grid,.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .shell{padding:18px 13px 60px}
  .panel{padding:20px}
  .hero-copy{padding:30px 22px}
  .hero-side{padding:22px}
  .hero h1{font-size:32px}
  .template-grid,.format-grid,.recent-grid,.section-grid{grid-template-columns:1fr}
  .progress{grid-template-columns:1fr 1fr}
  .export-bar{position:static;flex-direction:column;align-items:stretch}
  .export-bar .btn{width:100%}
}


/* V16 - stronger desktop presence */
body{font-size:16px}
.hero{border-radius:26px}
.hero-side{min-height:430px}
.dropzone{padding:48px 30px}
.drop-icon{width:66px;height:66px;font-size:31px}
.dropzone strong{font-size:20px}
.upload-actions .btn{padding:14px 22px;font-size:15px}

/* Recent CV list */
.recent-section{padding-bottom:28px}
.count-badge{
  padding:7px 10px;border-radius:999px;background:#f2f4f7;
  color:#475467;font-size:11px;font-weight:600;white-space:nowrap
}
.recent-list{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:#fff}
.recent-row{
  display:grid;
  grid-template-columns:minmax(300px,2.2fr) .8fr .55fr .55fr 1fr auto;
  gap:18px;align-items:center;padding:15px 16px;border-bottom:1px solid #edf0f3;
  transition:.15s ease
}
.recent-row:last-child{border-bottom:0}
.recent-row:hover{background:#fafcff}
.recent-person{display:flex;align-items:center;gap:13px;min-width:0}
.recent-person .avatar{margin:0;flex:0 0 auto}
.recent-main{min-width:0}
.recent-main strong{display:block;font-size:14px;margin-bottom:4px}
.recent-main span{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-stat{min-width:0}
.stat-label{display:block;font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#98a2b3;font-weight:650;margin-bottom:4px}
.recent-stat strong{font-size:12px;color:#344054}
.status-ready{color:var(--success)!important}
.status-wait{color:#b54708!important}
.recent-actions{display:flex;gap:7px;justify-content:flex-end}
.btn-small{padding:9px 11px;font-size:11px;border-radius:10px}
.empty-state{padding:36px;text-align:center;border:1px dashed #d0d5dd;border-radius:16px;background:#fbfcfe}
.empty-state .empty-icon{width:50px;height:50px;border-radius:15px;background:#eef4ff;color:var(--brand);display:grid;place-items:center;margin:0 auto 12px;font-weight:700}
.empty-state strong{display:block;font-size:14px;margin-bottom:5px}
.empty-state span{font-size:11px;color:var(--muted)}

/* Completed export popup */
.result-overlay{
  position:fixed;inset:0;z-index:10020;display:none;align-items:center;justify-content:center;
  padding:22px;background:rgba(16,24,40,.58);backdrop-filter:blur(11px)
}
.result-overlay.show{display:flex}
.result-modal{
  width:min(540px,94vw);position:relative;background:#fff;border-radius:26px;
  padding:36px 34px 30px;text-align:center;box-shadow:0 40px 100px rgba(16,24,40,.34);
  animation:pop .22s ease-out
}
.modal-close{
  position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:11px;
  background:#f2f4f7;color:#667085;font-size:22px;line-height:1;cursor:pointer
}
.result-check{
  width:68px;height:68px;border-radius:22px;margin:0 auto 14px;background:#ecfdf3;color:var(--success);
  display:grid;place-items:center;font-size:30px;font-weight:700;border:1px solid #abefc6
}
.result-kicker{font-size:10px;letter-spacing:.13em;color:var(--success);font-weight:700;margin-bottom:8px}
.result-modal h3{font-size:21px;margin:0 0 7px;letter-spacing:-.4px}
.result-modal>p{font-size:12px;color:var(--muted);margin:0 0 20px}
.result-downloads{display:grid;gap:9px;text-align:left}
.download-card{
  text-decoration:none;border:1px solid var(--line);border-radius:15px;padding:13px;
  display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;background:#fff;
  transition:.15s ease
}
.download-card:hover{transform:translateY(-1px);border-color:#b2ccff;box-shadow:0 8px 22px rgba(16,24,40,.06)}
.download-icon{
  width:46px;height:46px;border-radius:13px;background:#eef4ff;color:var(--brand);
  display:grid;place-items:center;font-size:12px;font-weight:700
}
.download-card.pdf .download-icon{background:#fef3f2;color:#b42318;font-size:9px}
.download-card strong{display:block;font-size:13px;margin-bottom:3px}
.download-card small{font-size:10px;color:var(--muted)}
.download-card>b{font-size:20px;color:#98a2b3}
.result-footer{display:flex;gap:9px;justify-content:center;margin-top:20px}

@media(max-width:1100px){
  .recent-row{grid-template-columns:minmax(250px,2fr) .8fr .6fr .6fr auto}
  .recent-date{display:none}
}
@media(max-width:760px){
  .recent-row{grid-template-columns:1fr auto;padding:14px}
  .recent-stat{display:none}
  .recent-actions{grid-column:1/-1;justify-content:flex-start;padding-left:57px}
  .result-footer{flex-direction:column}
}


/* V17 - clearer workflow states */
.state-hero{
  display:flex;gap:18px;align-items:flex-start;
  padding:20px;border-radius:17px;border:1px solid var(--line);
  background:#fbfcfe;margin-bottom:18px
}
.state-warning{
  background:#fffcf5;
  border-color:#fedf89
}
.state-icon{
  width:44px;height:44px;flex:0 0 auto;border-radius:14px;
  background:#fff3d6;color:#b54708;display:grid;place-items:center;
  font-weight:700;font-size:17px;border:1px solid #fedf89
}
.state-kicker{
  font-size:9px;letter-spacing:.12em;font-weight:700;color:#b54708;margin-bottom:6px
}
.state-hero h2{font-size:20px;margin:0 0 7px;letter-spacing:-.35px}
.state-hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.6;max-width:760px}
.primary-flow-form{margin-top:2px}
.btn-large{padding:14px 20px;font-size:15px}
.flow-help{
  margin-top:13px;padding:12px 14px;border-radius:13px;background:#f8fafc;
  display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)
}
.flow-help strong{color:#344054}

/* Slightly stronger instructional hierarchy */
.hero p{max-width:650px}
.panel-title p{max-width:720px}
.step span{max-width:230px}


/* V18 - inline ADB options */
.template-option-adb .template-card{min-height:188px}
.adb-inline-settings{
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.adb-inline-title{
  grid-column:1/-1;
  font-size:10px;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-bottom:1px;
}
.mini-option{
  position:relative;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  padding:9px 10px;
  cursor:pointer;
  transition:.15s ease;
}
.mini-option:hover{border-color:#b2ccff}
.mini-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.mini-option span{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#344054;
}
.mini-option small{
  display:block;
  margin-top:2px;
  font-size:10px;
  color:var(--muted);
}
.mini-option:has(input:checked){
  border-color:var(--brand);
  background:#f5f8ff;
  box-shadow:0 4px 14px rgba(21,94,239,.07);
}
.mini-option:has(input:checked) span{color:var(--brand)}

/* V19 - keep special ADB card compact when placed last */
.template-option-adb{grid-column:auto}
.template-option-adb .adb-inline-settings{margin-top:11px;padding-top:10px}
.template-option-adb .mini-option{padding:8px 9px}


/* V1.10 - stronger export result emphasis */
.result-modal-strong{
  width:min(590px,94vw);
  padding:38px 36px 30px;
}
.result-modal-strong .result-check{
  width:72px;height:72px;border-radius:24px;
  font-size:32px;margin-bottom:14px
}
.result-modal-strong h3{
  font-size:23px;
  line-height:1.35;
  margin-bottom:8px
}
.result-lead{
  font-size:13px!important;
  margin-bottom:16px!important;
}
.ready-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:4px 0 14px;
  color:var(--success);
  font-size:10px;
  letter-spacing:.12em;
  font-weight:700
}
.ready-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 5px rgba(6,118,71,.08)
}
.result-downloads.emphasized{
  gap:12px;
}
.download-card-strong{
  min-height:86px;
  padding:14px 15px;
  border:1.5px solid #b2ccff;
  background:linear-gradient(180deg,#fbfdff 0%,#f4f8ff 100%);
  box-shadow:0 10px 26px rgba(21,94,239,.08);
}
.download-card-strong:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(21,94,239,.13);
  border-color:var(--brand);
}
.download-card-strong.pdf{
  border-color:#f6b8b3;
  background:linear-gradient(180deg,#fffdfd 0%,#fff6f5 100%);
  box-shadow:0 10px 26px rgba(180,35,24,.06);
}
.download-icon-word{
  width:54px;height:54px;border-radius:15px;
  font-size:18px;
  background:#eaf0ff;
  color:var(--brand);
  border:1px solid #c7d7fe
}
.download-icon-pdf{
  width:54px;height:54px;border-radius:15px;
  background:#fef3f2;
  color:#b42318;
  border:1px solid #fecdca;
  font-size:10px
}
.download-content strong{
  font-size:14px;
  margin-bottom:4px
}
.download-content small{
  font-size:11px
}
.download-cta{
  align-self:center;
  justify-self:end;
  padding:10px 13px;
  border-radius:11px;
  background:var(--brand);
  color:#fff;
  font-size:11px;
  font-weight:600;
  white-space:nowrap
}
.pdf-cta{background:#b42318}
.result-divider{
  height:1px;
  background:var(--line);
  margin:22px 0 16px
}
.result-footer.subdued{
  margin-top:0;
}
.result-footer.subdued .btn{
  font-size:12px;
  padding:10px 13px
}

/* V1.11 QA polish */
.template-option input:disabled + .template-card{
  opacity:.48;
  cursor:not-allowed;
  background:#f9fafb
}
.template-option input:disabled + .template-card:hover{
  transform:none;
  box-shadow:none;
  border-color:var(--line)
}
.tpl-unavailable{
  display:inline-flex;
  margin-top:9px;
  padding:5px 7px;
  border-radius:999px;
  background:#fef3f2;
  color:#b42318;
  font-size:9px;
  font-weight:600
}
.download-filename{
  display:block;
  max-width:330px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#667085!important
}

/* V1.20 - master review / preflight / history / search */
.preflight-box{
  display:flex;justify-content:space-between;gap:18px;align-items:flex-start;
  padding:15px 16px;border-radius:14px;margin-bottom:18px;border:1px solid var(--line)
}
.preflight-box>div>strong{display:block;font-size:13px;margin-bottom:3px}
.preflight-box>div>span{display:block;font-size:11px;color:var(--muted);line-height:1.5}
.preflight-box ul{margin:8px 0 0;padding-left:18px;color:#7a271a;font-size:11px;line-height:1.55}
.preflight-box.ready{background:#f6fef9;border-color:#abefc6}
.preflight-box.warn{background:#fffcf5;border-color:#fedf89}
.preflight-badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:600;white-space:nowrap}
.preflight-badge.ready{background:#ecfdf3;color:#067647}
.preflight-badge.warn{background:#fff1d6;color:#b54708}

.review-section,.review-details{
  border:1px solid var(--line);border-radius:17px;background:#fff;margin-top:14px
}
.review-section{padding:20px}
.review-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.review-head h3{margin:0;font-size:16px}
.review-head span,.review-details summary span{font-size:10px;color:var(--muted)}
.review-details summary{padding:16px 18px;cursor:pointer;font-size:14px;font-weight:600;display:flex;justify-content:space-between}
.review-body{padding:0 18px 14px}
.form-grid,.repeat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.form-grid label,.repeat-grid label{display:block}
.form-grid label>span,.repeat-grid label>span{
  display:block;font-size:10px;color:var(--muted);font-weight:600;margin-bottom:5px
}
.form-grid input,.form-grid textarea,.repeat-grid input,.repeat-grid textarea,.repeat-row.simple input{
  width:100%;border:1px solid #d0d5dd;border-radius:11px;padding:10px 11px;background:#fff;color:var(--ink);outline:none
}
.form-grid input:focus,.form-grid textarea:focus,.repeat-grid input:focus,.repeat-grid textarea:focus,.repeat-row.simple input:focus{
  border-color:#84adff;box-shadow:0 0 0 3px rgba(21,94,239,.08)
}
.span-2{grid-column:1/-1}
.repeat-row{border-top:1px solid #edf0f3;padding:14px 0}
.repeat-row:first-child{border-top:0}
.education-grid{grid-template-columns:1.4fr .7fr 1.4fr}
.language-grid{grid-template-columns:repeat(4,1fr)}
.project-grid{grid-template-columns:repeat(3,1fr)}
.project-edit-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.project-edit-title strong{font-size:12px}
.delete-check{font-size:10px;color:#b42318;display:flex!important;align-items:center;gap:6px}
.delete-check input{width:auto!important}
.add-row{margin:0 18px 16px}
.review-savebar{
  position:sticky;bottom:14px;z-index:30;margin-top:20px;padding:14px 15px;border:1px solid var(--line);
  border-radius:16px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);
  display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 15px 38px rgba(16,24,40,.13)
}
.review-savebar strong{display:block;font-size:13px}
.review-savebar small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.review-save-actions{display:flex;gap:8px}

.history-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.history-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border-bottom:1px solid #edf0f3}
.history-row:last-child{border-bottom:0}
.history-row strong{display:block;font-size:12px;margin-bottom:3px}
.history-row span{display:block;font-size:10px;color:var(--muted)}
.history-links{display:flex;gap:6px}
.export-history summary span{margin-left:5px;color:var(--muted)}

.cv-searchbar{display:flex;gap:8px;margin-bottom:18px}
.search-input-wrap{
  flex:1;display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fff;border-radius:13px;padding:0 12px
}
.search-input-wrap span{color:#98a2b3;font-size:18px}
.search-input-wrap input{width:100%;border:0;outline:0;padding:11px 0;background:transparent;font-size:13px}

@media(max-width:800px){
  .form-grid,.repeat-grid,.education-grid,.language-grid,.project-grid{grid-template-columns:1fr}
  .span-2{grid-column:auto}
  .review-savebar{position:static;flex-direction:column;align-items:stretch}
  .review-save-actions{flex-direction:column}
  .cv-searchbar{flex-wrap:wrap}
}

/* V1.30 - intake confidence / smart review */
.intake-summary{
  display:flex;gap:16px;align-items:center;padding:16px 17px;border:1px solid var(--line);
  border-radius:16px;background:#f8fafc;margin-bottom:14px
}
.intake-summary.high{background:#f6fef9;border-color:#abefc6}
.intake-summary.medium{background:#fffcf5;border-color:#fedf89}
.intake-summary.low{background:#fef3f2;border-color:#fecdca}
.quality-score{
  width:72px;height:72px;border-radius:20px;background:#fff;display:flex;align-items:baseline;
  justify-content:center;padding-top:18px;flex:0 0 auto;border:1px solid var(--line)
}
.quality-score strong{font-size:25px;font-weight:650}
.quality-score span{font-size:10px;color:var(--muted)}
.quality-copy>strong{display:block;font-size:14px;margin-bottom:4px}
.quality-copy>span{display:block;font-size:11px;color:var(--muted);line-height:1.5}
.quality-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.quality-tags span{padding:5px 7px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:9px;color:#475467}
.quality-warnings{border:1px solid #fedf89;border-radius:14px;background:#fffcf5;margin-bottom:17px}
.quality-warnings summary{padding:12px 14px;cursor:pointer;font-size:12px;font-weight:600}
.quality-warnings summary span{color:#b54708;margin-left:4px}
.quality-warnings>div{padding:0 14px 12px}
.quality-warnings p{margin:5px 0;font-size:11px;color:#93370d;line-height:1.45}

/* V1.40 - evidence / confidence / duplicate / scan UX */
.field-confidence{
  display:inline-flex;margin-left:6px;padding:2px 5px;border-radius:999px;font-size:8px;font-weight:600;vertical-align:middle
}
.field-confidence.high{background:#ecfdf3;color:#067647}
.field-confidence.medium{background:#fffaeb;color:#b54708}
.field-confidence.low{background:#fef3f2;color:#b42318}
.field-confidence.empty{background:#f2f4f7;color:#667085}

.duplicate-alert,.scan-alert,.confidence-panel{
  border-radius:15px;padding:14px 15px;margin-bottom:14px;border:1px solid var(--line)
}
.duplicate-alert{background:#fff6ed;border-color:#f9dbaf}
.scan-alert{background:#fef3f2;border-color:#fecdca}
.confidence-panel{background:#fffcf5;border-color:#fedf89}
.duplicate-alert>div:first-child strong,.scan-alert strong,.confidence-panel>strong{display:block;font-size:12px;margin-bottom:3px}
.duplicate-alert>div:first-child span,.scan-alert span{display:block;font-size:10px;color:var(--muted)}
.duplicate-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.duplicate-list a{display:block;text-decoration:none;border:1px solid #f9dbaf;background:#fff;border-radius:11px;padding:8px 10px}
.duplicate-list a strong{display:block;font-size:10px}
.duplicate-list a small{display:block;font-size:9px;color:#b54708;margin-top:2px}
.confidence-panel>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.confidence-panel>div span{padding:5px 7px;background:#fff;border:1px solid #fedf89;border-radius:999px;font-size:9px;color:#93370d}

.source-evidence{
  border:1px solid var(--line);border-radius:15px;background:#fff;margin-bottom:17px
}
.source-evidence summary{padding:13px 15px;cursor:pointer;font-size:11px;font-weight:600}
.source-evidence-grid{padding:0 15px 15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.evidence-card{border:1px solid #edf0f3;border-radius:12px;padding:10px;background:#f8fafc;min-width:0}
.evidence-card strong{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#667085;margin-bottom:5px}
.evidence-card pre{white-space:pre-wrap;word-break:break-word;margin:0;font-family:inherit;font-size:10px;line-height:1.45;color:#344054}
@media(max-width:760px){.source-evidence-grid{grid-template-columns:1fr}}

.quality-note{display:block;margin-top:5px;font-size:9px;color:#98a2b3}

/* V1.50 - clear dual metrics */
.metrics-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px
}
.metric-card{
  display:flex;gap:15px;align-items:center;padding:16px;border:1px solid var(--line);
  border-radius:17px;background:#fff
}
.metric-card.auto.high{background:#f6fef9;border-color:#abefc6}
.metric-card.auto.medium{background:#fffcf5;border-color:#fedf89}
.metric-card.auto.low{background:#fef3f2;border-color:#fecdca}
.metric-card.completion{background:#f7f9ff;border-color:#b2ccff}
.metric-number{
  width:76px;height:76px;flex:0 0 auto;border-radius:20px;background:#fff;
  display:flex;align-items:baseline;justify-content:center;padding-top:19px;border:1px solid var(--line)
}
.metric-number strong{font-size:27px;font-weight:650}
.metric-number span{font-size:10px;color:var(--muted)}
.metric-label{font-size:13px;font-weight:650;margin-bottom:4px}
.metric-card p{margin:0 0 4px;font-size:10px;color:var(--muted);line-height:1.45}
.metric-card small{font-size:9px;color:#98a2b3}
.completion-track{
  height:7px;background:#e8eefc;border-radius:999px;overflow:hidden;margin:8px 0 5px
}
.completion-track span{
  display:block;height:100%;border-radius:999px;background:var(--brand);transition:width .2s ease
}
.metric-tags{margin:0 0 14px}
.field-confidence.manual{background:#eef4ff;color:var(--brand)}
@media(max-width:760px){.metrics-grid{grid-template-columns:1fr}}

/* V1.51 - single clear primary metric */
.completion-hero{
  display:flex;
  align-items:center;
  gap:22px;
  padding:22px 24px;
  border:1px solid #b2ccff;
  border-radius:18px;
  background:linear-gradient(180deg,#f8faff 0%,#f3f7ff 100%);
  margin-bottom:12px;
}
.completion-score{
  width:104px;
  height:104px;
  border-radius:24px;
  background:#fff;
  border:1px solid #c7d7fe;
  display:flex;
  align-items:baseline;
  justify-content:center;
  padding-top:27px;
  flex:0 0 auto;
  box-shadow:0 8px 22px rgba(21,94,239,.08)
}
.completion-score strong{
  font-size:38px;
  line-height:1;
  font-weight:650;
  color:var(--brand)
}
.completion-score span{
  font-size:14px;
  color:var(--muted)
}
.completion-copy{
  flex:1;
  min-width:0
}
.completion-label{
  font-size:20px;
  font-weight:650;
  margin-bottom:6px;
  letter-spacing:-.25px
}
.completion-copy p{
  margin:0 0 12px;
  font-size:14px;
  line-height:1.55;
  color:#475467
}
.completion-copy small{
  display:block;
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
  color:#667085
}
.completion-track.large{
  height:10px;
  background:#e4ebfb;
  border-radius:999px;
  overflow:hidden
}
.completion-track.large span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#155eef,#3e7bfa);
  border-radius:999px;
  transition:width .2s ease
}

.parser-info{
  margin-bottom:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff
}
.parser-info summary{
  padding:12px 14px;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  color:#475467
}
.parser-info-body{
  padding:0 14px 13px;
  display:flex;
  gap:18px;
  align-items:flex-start
}
.parser-info-body>div{
  min-width:110px
}
.parser-info-body span{
  display:block;
  font-size:10px;
  color:#98a2b3;
  margin-bottom:3px
}
.parser-info-body strong{
  font-size:15px;
  color:#344054
}
.parser-info-body p{
  margin:0;
  font-size:11px;
  line-height:1.55;
  color:#667085
}

/* enlarge explanatory/helper text throughout review */
.preflight-box>div>span{font-size:12px!important;line-height:1.6!important}
.preflight-box ul{font-size:12px!important;line-height:1.65!important}
.quality-warnings p{font-size:12px!important;line-height:1.55!important}
.quality-warnings summary{font-size:13px!important}
.state-hero p{font-size:14px!important}
.review-head span,.review-details summary span{font-size:11px!important}
.form-grid label>span,.repeat-grid label>span{font-size:11px!important}
.flow-help{font-size:12px!important}
.quality-tags span{font-size:10px!important}

@media(max-width:760px){
  .completion-hero{flex-direction:column;align-items:flex-start}
  .completion-score{width:92px;height:92px;padding-top:22px}
  .completion-score strong{font-size:34px}
  .parser-info-body{flex-direction:column;gap:8px}
}

/* V1.52 - sticky completion indicator */
.completion-sticky{
  position:sticky;
  top:14px;
  z-index:45;
  box-shadow:0 12px 32px rgba(16,24,40,.10);
  backdrop-filter:blur(12px);
}
.completion-sticky::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-10px;
  height:10px;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(238,242,246,.45),rgba(238,242,246,0));
}
@media(max-width:760px){
  .completion-sticky{
    top:8px;
  }
}


/* V2.10 production */
.auth-body{min-height:100vh;background:#f4f6f8}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px}
.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 22px 60px rgba(16,24,40,.10)}
.auth-brand{display:inline-flex;margin-bottom:30px}
.auth-copy h1{font-size:30px;margin:0 0 8px;font-weight:650}
.auth-copy p{font-size:14px;line-height:1.6;color:#667085;margin:0 0 22px}
.auth-form{display:grid;gap:15px}
.auth-form label span{display:block;font-size:12px;font-weight:600;margin-bottom:7px}
.auth-form input{width:100%;height:46px;border:1px solid #d0d5dd;border-radius:11px;padding:0 13px;font-size:14px;box-sizing:border-box}
.auth-submit{height:47px;margin-top:4px}
.auth-mode{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:#667085;display:flex;gap:8px;align-items:center}
.auth-dot{width:8px;height:8px;border-radius:99px;background:#12b76a}

.engine-status{display:inline-flex;align-items:center;gap:6px;margin-top:7px;font-size:10px;font-weight:600}
.engine-status span{width:7px;height:7px;border-radius:99px}
.engine-status.ok{color:#027a48}.engine-status.ok span{background:#12b76a}
.engine-status.warn{color:#b54708}.engine-status.warn span{background:#f79009}

.annex-manager{margin:16px 0 20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fbfcfe}
.annex-head h3{font-size:16px;margin:0 0 4px;font-weight:650}
.annex-head p{font-size:12px;line-height:1.55;color:#667085;margin:0 0 14px}
.annex-upload-form{display:grid;grid-template-columns:150px 1fr 1.35fr auto;gap:8px;margin-bottom:12px}
.annex-upload-form select,.annex-upload-form input{height:39px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;padding:0 10px;font-size:11px;min-width:0}
.annex-upload-form input[type=file]{padding:8px}
.annex-list{display:grid;gap:7px}
.annex-row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #e4e7ec;border-radius:11px;padding:9px 11px}
.annex-select{display:flex;align-items:center;gap:9px;flex:1;cursor:pointer}
.annex-select input{width:16px;height:16px}
.annex-select>span:last-child{display:flex;flex-direction:column;gap:2px}
.annex-select strong{font-size:11px}.annex-select small{font-size:9px;color:#98a2b3}
.annex-type{font-size:8px;font-weight:650;border:1px solid #b2ccff;background:#eef4ff;color:#155eef;border-radius:6px;padding:4px 6px}
.annex-delete{border:0;background:transparent;color:#b42318;font-size:10px;cursor:pointer}
.annex-empty{font-size:11px;color:#667085;padding:12px;border:1px dashed #d0d5dd;border-radius:10px;background:#fff}
.annex-tip{font-size:10px;color:#475467;margin-top:9px}
@media(max-width:850px){.annex-upload-form{grid-template-columns:1fr 1fr}.annex-upload-form .btn{grid-column:1/-1}}
@media(max-width:540px){.annex-upload-form{grid-template-columns:1fr}.annex-upload-form .btn{grid-column:auto}}

.nav-user{font-size:10px;color:#667085;font-weight:600;padding:0 4px}


/* V2.12 - Export / attachment UX refresh */
.annex-v212{margin:22px 0 24px;padding:22px;border:1px solid #d9e2ef;border-radius:20px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);box-shadow:0 8px 24px rgba(16,24,40,.035)}
.annex-v212-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px}
.annex-title-wrap{display:flex;gap:13px;align-items:flex-start}
.annex-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eef4ff;color:#155eef;font-size:24px;font-weight:500;flex:0 0 auto}
.annex-title-row{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.annex-title-row h3{margin:0;font-size:19px;font-weight:650;letter-spacing:-.2px}
.annex-count{padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:600}
.annex-v212-head p{margin:0;max-width:760px;font-size:13px;line-height:1.55;color:#667085}
.annex-behavior{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.annex-behavior span{padding:7px 10px;border-radius:9px;font-size:10px;font-weight:650;white-space:nowrap}
.annex-behavior-pdf{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.annex-behavior-word{background:#f2f4f7;color:#475467;border:1px solid #e4e7ec}
.annex-info-banner{display:flex;gap:9px;align-items:center;padding:11px 13px;margin-bottom:16px;border-radius:11px;background:#f8f9fc;border:1px solid #eaecf0;color:#475467}
.annex-info-banner strong{font-size:11px;white-space:nowrap}
.annex-info-banner span{font-size:11px;line-height:1.5}
.annex-upload-card{display:grid;grid-template-columns:170px minmax(220px,1fr) minmax(280px,1.25fr) auto;gap:10px;align-items:end;padding:15px;margin-bottom:18px;border:1px solid #e4e7ec;border-radius:14px;background:#fff}
.annex-upload-field{min-width:0}
.annex-upload-field>label:first-child{display:block;margin:0 0 6px;font-size:11px;font-weight:650;color:#344054}
.annex-upload-field>label:first-child span{margin-left:4px;font-size:9px;font-weight:500;color:#98a2b3}
.annex-upload-field select,.annex-upload-field input[type="text"]{width:100%;height:43px;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:0 12px;font-size:12px;color:#344054}
.annex-upload-field select:focus,.annex-upload-field input[type="text"]:focus{outline:none;border-color:#84adff;box-shadow:0 0 0 3px rgba(21,94,239,.08)}
.annex-file-picker{display:flex;height:43px;align-items:center;overflow:hidden;border:1px solid #d0d5dd;border-radius:10px;background:#fff;cursor:pointer}
.annex-file-picker input{display:none}
.annex-file-button{height:100%;display:flex;align-items:center;padding:0 12px;background:#f8fafc;border-right:1px solid #e4e7ec;font-size:11px;font-weight:650;color:#344054;white-space:nowrap}
.annex-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 12px;font-size:10px;color:#667085}
.annex-upload-button{height:43px!important;padding:0 16px!important;background:#101828!important;color:#fff!important;border-color:#101828!important;white-space:nowrap}
.annex-list-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 1px 10px}
.annex-list-head>div{display:flex;flex-direction:column;gap:2px}
.annex-list-head strong{font-size:12px;color:#101828}
.annex-list-head span{font-size:10px;color:#667085}
.annex-select-all{display:flex;align-items:center;gap:6px;font-size:10px;color:#475467;cursor:pointer}
.annex-select-all input{width:15px;height:15px}
.annex-list-v212{display:grid;gap:8px}
.annex-row-v212{min-height:58px;padding:8px 10px 8px 12px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;transition:.15s ease}
.annex-row-v212:hover{border-color:#c7d7fe;background:#fcfdff}
.annex-select-v212{gap:10px;min-width:0}
.annex-select-v212>.annex-checkbox{position:absolute;opacity:0;pointer-events:none}
.annex-check-ui{width:21px;height:21px;border-radius:6px;display:grid;place-items:center;border:1px solid #d0d5dd;color:transparent;background:#fff;font-size:12px;font-weight:700;flex:0 0 auto}
.annex-checkbox:checked + .annex-check-ui{background:#155eef;border-color:#155eef;color:#fff}
.annex-doc-icon{width:42px;height:38px;border-radius:9px;display:grid;place-items:center;background:#f5f8ff;border:1px solid #dbe7ff;color:#155eef;font-size:9px;font-weight:700;flex:0 0 auto}
.annex-doc-copy{min-width:0;display:flex!important;flex-direction:column!important;gap:3px!important;flex:1}
.annex-doc-copy strong{font-size:12px!important;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.annex-doc-copy small{font-size:10px!important;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.annex-type-v212{font-size:9px!important;padding:5px 8px!important;border-radius:8px!important;background:#eef4ff!important;color:#155eef!important;border:1px solid #c7d7fe!important;white-space:nowrap}
.annex-delete-v212{padding:8px 10px;border-radius:8px!important;font-size:10px!important}
.annex-delete-v212:hover{background:#fef3f2!important}
.annex-selection-summary{display:flex;align-items:center;gap:5px;margin-top:10px;padding:0 2px;font-size:11px;color:#475467}
.annex-selection-summary strong{font-size:11px;color:#101828}
.annex-summary-dot{width:7px;height:7px;border-radius:99px;background:#12b76a}
.annex-empty-v212{display:flex!important;gap:12px!important;align-items:center!important;padding:18px!important}
.annex-empty-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#f2f4f7;font-size:18px}
.annex-empty-v212>div:last-child{display:flex;flex-direction:column;gap:3px}
.annex-empty-v212 strong{font-size:12px;color:#344054}
.annex-empty-v212 span{font-size:11px;color:#667085}
@media(max-width:1050px){.annex-upload-card{grid-template-columns:1fr 1fr}.annex-upload-button{width:100%}}
@media(max-width:720px){.annex-v212{padding:16px}.annex-v212-head{flex-direction:column}.annex-behavior{justify-content:flex-start}.annex-upload-card{grid-template-columns:1fr}.annex-info-banner{align-items:flex-start;flex-direction:column}.annex-list-head{align-items:flex-start;flex-direction:column}.annex-type-v212{display:none}}

/* V2.13 - clearer review confidence + collapsed attachments */
.annex-v213{
  margin:22px 0 24px;
  border:1px solid #d9e2ef;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 7px 20px rgba(16,24,40,.03)
}
.annex-v213>summary{list-style:none}
.annex-v213>summary::-webkit-details-marker{display:none}
.annex-summary{
  min-height:72px;
  padding:15px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  cursor:pointer;
  user-select:none
}
.annex-summary:hover{background:#fbfcff}
.annex-summary-left{display:flex;align-items:center;gap:12px;min-width:0}
.annex-summary-icon{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  background:#eef4ff;font-size:17px;flex:0 0 auto
}
.annex-summary-title{
  display:flex;align-items:center;gap:8px;
  font-size:16px;font-weight:650;color:#101828
}
.annex-summary-sub{
  margin-top:4px;font-size:12px;line-height:1.45;color:#667085
}
.annex-summary-right{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.annex-summary-selected{
  padding:6px 9px;border-radius:999px;background:#ecfdf3;color:#027a48;
  font-size:10px;font-weight:650
}
.annex-chevron{
  width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  background:#f2f4f7;color:#475467;font-size:17px;transition:transform .18s ease
}
.annex-v213[open] .annex-chevron{transform:rotate(180deg)}
.annex-details-body{
  padding:0 18px 18px;border-top:1px solid #eef2f6
}
.annex-details-body .annex-v212-head{display:none}
.annex-details-body .annex-info-banner{margin-top:16px}

/* Review language: completeness and parser confidence are two different things. */
.confidence-explainer{
  display:flex;align-items:flex-start;gap:8px;margin:0 0 11px;padding:10px 12px;
  border-radius:10px;background:#fffcf5;border:1px solid #fedf89
}
.confidence-explainer strong{
  font-size:12px;line-height:1.5;color:#93370d;white-space:nowrap
}
.confidence-explainer span{
  font-size:12px;line-height:1.55;color:#7a2e0e
}
.low-confidence-box>strong{
  display:block;font-size:14px!important;margin-bottom:8px;color:#101828
}
.low-confidence-box .low-confidence-chip,
.low-confidence-box .confidence-chip{
  font-size:10px!important
}
.duplicate-alert strong{font-size:14px!important}
.duplicate-alert>span,.duplicate-alert p{font-size:12px!important;line-height:1.55!important}
.duplicate-card strong{font-size:11px!important}
.duplicate-card small{font-size:10px!important;line-height:1.4!important}

@media(max-width:720px){
  .annex-summary{align-items:flex-start}
  .annex-summary-right{margin-top:4px}
  .annex-summary-selected{display:none}
  .confidence-explainer{flex-direction:column;gap:2px}
}

/* V2.14 - Administration */
.admin-shell{min-height:100vh;background:#f4f7fb}
.admin-topbar{
  width:min(1220px,calc(100% - 36px));margin:0 auto;padding:22px 0 16px;
  display:flex;align-items:center;justify-content:space-between;gap:20px
}
.admin-topbar nav{display:flex;align-items:center;gap:8px}
.admin-topbar nav a{
  padding:9px 11px;border-radius:9px;text-decoration:none;color:#475467;
  font-size:11px;font-weight:600
}
.admin-topbar nav a:hover,.admin-topbar nav a.active{background:#fff;color:#101828;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.admin-content{width:min(1220px,calc(100% - 36px));margin:0 auto;padding:14px 0 60px}
.admin-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 22px}
.admin-eyebrow{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#155eef}
.admin-page-head h1{margin:6px 0 5px;font-size:30px;font-weight:650;letter-spacing:-.6px}
.admin-page-head p{margin:0;font-size:13px;color:#667085;line-height:1.55}
.admin-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.admin-stat{background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:17px 18px;box-shadow:0 4px 14px rgba(16,24,40,.025)}
.admin-stat span{display:block;font-size:10px;color:#667085;margin-bottom:9px}
.admin-stat strong{display:block;font-size:28px;font-weight:650;color:#101828;line-height:1}
.admin-stat small{display:block;margin-top:7px;font-size:9px;color:#98a2b3}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.admin-card,.user-table-card{background:#fff;border:1px solid #e4e7ec;border-radius:17px;box-shadow:0 5px 18px rgba(16,24,40,.025)}
.admin-card{padding:18px}
.admin-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.admin-card-head h2{font-size:15px;margin:0 0 3px}
.admin-card-head p{font-size:10px;color:#667085;margin:0}
.admin-card-head a{font-size:10px;color:#155eef;text-decoration:none}
.admin-status-list{display:grid;gap:0}
.admin-status-list>div{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-top:1px solid #f0f2f5}
.admin-status-list>div:first-child{border-top:0}
.admin-status-list span{font-size:11px;color:#667085}
.admin-status-list strong{font-size:10px;color:#344054}
.status-ok{color:#027a48!important}.status-bad{color:#b42318!important}
.admin-user-mini-list{display:grid}
.admin-user-mini{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;padding:9px 0;border-top:1px solid #f0f2f5}
.admin-user-mini:first-child{border-top:0}
.admin-avatar{width:34px;height:34px;border-radius:10px;background:#eef4ff;color:#155eef;display:grid;place-items:center;font-size:11px;font-weight:700}
.admin-user-mini>div:nth-child(2){display:flex;flex-direction:column;gap:2px}
.admin-user-mini strong{font-size:11px}.admin-user-mini span{font-size:9px;color:#98a2b3}
.role-pill{font-size:8px!important;font-weight:700!important;padding:4px 7px;border-radius:999px}
.role-pill.admin{background:#eef4ff;color:#155eef!important}.role-pill.user{background:#f2f4f7;color:#475467!important}

.new-user-panel{
  display:none;background:#fff;border:1px solid #b2ccff;border-radius:17px;
  padding:18px;margin-bottom:16px;box-shadow:0 8px 22px rgba(21,94,239,.05)
}
.new-user-panel.open{display:block}
.new-user-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}
.new-user-head h2{font-size:16px;margin:0 0 3px}
.new-user-head p{font-size:10px;color:#667085;margin:0}
.new-user-head>button{border:0;background:#f2f4f7;width:28px;height:28px;border-radius:8px;cursor:pointer;font-size:17px}
.admin-user-form{display:grid;grid-template-columns:1.2fr 1.4fr 1fr 170px auto;gap:9px;align-items:end}
.admin-user-form label,.user-edit-form label{min-width:0}
.admin-user-form label span,.user-edit-form label span{display:block;font-size:10px;font-weight:600;margin-bottom:5px;color:#344054}
.admin-user-form input,.admin-user-form select,.user-edit-form input,.user-edit-form select,.password-reset-form input{
  width:100%;height:40px;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:9px;padding:0 10px;background:#fff;font-size:11px
}
.user-table-head{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:1px solid #eaecf0}
.user-table-head strong{font-size:12px}.user-table-head span{font-size:10px;color:#667085}
.user-table{display:grid}
.user-row{border-bottom:1px solid #eaecf0}
.user-row:last-child{border-bottom:0}
.user-row>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 16px;cursor:pointer}
.user-row>summary::-webkit-details-marker{display:none}
.user-row>summary:hover{background:#fbfcff}
.user-ident{display:flex;align-items:center;gap:10px}
.user-ident>div:last-child{display:flex;flex-direction:column;gap:2px}
.user-ident strong{font-size:11px}.user-ident span{font-size:9px;color:#98a2b3}
.user-row-meta{display:flex;align-items:center;gap:9px}
.active-pill{font-size:8px;font-weight:700;padding:4px 7px;border-radius:999px}
.active-pill.on{background:#ecfdf3;color:#027a48}.active-pill.off{background:#fef3f2;color:#b42318}
.user-row-meta small{font-size:9px;color:#98a2b3}
.user-chevron{width:28px;height:28px;border-radius:8px;background:#f2f4f7;display:grid;place-items:center;font-size:15px;transition:.15s}
.user-row[open] .user-chevron{transform:rotate(180deg)}
.user-row-body{padding:14px 16px 16px;background:#fafbfc;border-top:1px solid #f0f2f5}
.user-edit-form{display:grid;grid-template-columns:1fr 1.35fr 180px auto;gap:9px;align-items:end}
.user-actions-row{display:flex;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e4e7ec}
.password-reset-form{display:flex;gap:8px;flex:1;max-width:520px}
.password-reset-form input{flex:1}
.btn-danger-soft{background:#fef3f2!important;color:#b42318!important;border:1px solid #fecdca!important}
.btn-success-soft{background:#ecfdf3!important;color:#027a48!important;border:1px solid #abefc6!important}
@media(max-width:960px){
  .admin-stat-grid{grid-template-columns:1fr 1fr}
  .admin-grid{grid-template-columns:1fr}
  .admin-user-form{grid-template-columns:1fr 1fr}
  .user-edit-form{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .admin-topbar,.admin-page-head{align-items:flex-start;flex-direction:column}
  .admin-topbar nav{flex-wrap:wrap}
  .admin-stat-grid{grid-template-columns:1fr 1fr}
  .admin-user-form,.user-edit-form{grid-template-columns:1fr}
  .user-row>summary{align-items:flex-start;flex-direction:column}
  .user-row-meta{width:100%;flex-wrap:wrap}
  .user-actions-row{flex-direction:column}
}

/* V2.15 - Admin panel scale / usability */
.admin-shell{font-size:16px}
.admin-topbar{
  width:min(1360px,calc(100% - 42px));
  padding:26px 0 20px
}
.admin-topbar .brand-title{font-size:19px}
.admin-topbar .brand-sub{font-size:11px}
.admin-topbar nav{gap:10px}
.admin-topbar nav a{
  padding:11px 14px;
  border-radius:10px;
  font-size:13px
}
.admin-content{
  width:min(1360px,calc(100% - 42px));
  padding:18px 0 70px
}
.admin-page-head{margin:10px 0 26px}
.admin-title-line{display:flex;align-items:center;gap:10px}
.admin-eyebrow{font-size:11px;letter-spacing:1.8px}
.admin-version{
  padding:4px 8px;border-radius:999px;background:#eef4ff;color:#155eef;
  font-size:10px;font-weight:700
}
.admin-page-head h1{font-size:36px;margin:7px 0 6px}
.admin-page-head p{font-size:15px;line-height:1.6}
.admin-head-actions{display:flex;gap:9px;align-items:center}

.admin-stat-grid{gap:15px;margin-bottom:18px}
.admin-stat{padding:21px 22px;border-radius:18px}
.admin-stat span{font-size:12px;margin-bottom:11px}
.admin-stat strong{font-size:34px}
.admin-stat small{font-size:11px;margin-top:8px}

.admin-quick-actions{
  display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:18px
}
.admin-quick-card{
  display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;
  padding:16px 17px;background:#fff;border:1px solid #e4e7ec;border-radius:16px;
  text-decoration:none;color:inherit;transition:.15s
}
.admin-quick-card:not(.admin-quick-static):hover{
  border-color:#b2ccff;transform:translateY(-1px);box-shadow:0 8px 22px rgba(21,94,239,.06)
}
.admin-quick-icon{
  width:46px;height:46px;border-radius:12px;background:#f2f4f7;
  display:grid;place-items:center;font-size:19px
}
.admin-quick-card>div:nth-child(2){display:flex;flex-direction:column;gap:4px}
.admin-quick-card strong{font-size:13px}
.admin-quick-card span{font-size:11px;line-height:1.5;color:#667085}
.admin-quick-card>b{font-size:17px;color:#98a2b3}
.quick-ok{color:#12b76a!important}.quick-warn{color:#f79009!important}

.admin-grid{gap:16px}
.admin-card{padding:22px;border-radius:18px}
.admin-card-head{margin-bottom:16px}
.admin-card-head h2{font-size:18px;margin-bottom:5px}
.admin-card-head p{font-size:12px}
.admin-card-head a{font-size:12px}
.admin-status-list>div{padding:14px 0}
.admin-status-list span{font-size:13px}
.admin-status-list strong{font-size:12px}
.admin-user-mini{grid-template-columns:42px 1fr auto;gap:11px;padding:12px 0}
.admin-avatar{width:42px;height:42px;border-radius:12px;font-size:13px}
.admin-user-mini strong{font-size:13px}
.admin-user-mini span{font-size:11px}
.role-pill{font-size:10px!important;padding:5px 9px}

.admin-audit-card{margin-top:16px}
.admin-audit-list{display:grid}
.admin-audit-row{
  display:grid;grid-template-columns:12px 1fr auto;gap:10px;align-items:center;
  padding:11px 0;border-top:1px solid #f0f2f5
}
.admin-audit-row:first-child{border-top:0}
.admin-audit-dot{width:8px;height:8px;border-radius:99px;background:#84adff}
.admin-audit-copy{display:flex;flex-direction:column;gap:2px}
.admin-audit-copy strong{font-size:12px}
.admin-audit-copy span{font-size:10px;color:#667085}
.admin-audit-row small{font-size:10px;color:#98a2b3}
.admin-empty-state{font-size:12px;color:#667085;padding:8px 0}

.new-user-panel{padding:22px;border-radius:18px;margin-bottom:18px}
.new-user-head{margin-bottom:18px}
.new-user-head h2{font-size:19px}
.new-user-head p{font-size:12px}
.admin-user-form{grid-template-columns:1.2fr 1.4fr 1fr 180px auto;gap:11px}
.admin-user-form label span,.user-edit-form label span{font-size:12px;margin-bottom:6px}
.admin-user-form input,.admin-user-form select,.user-edit-form input,.user-edit-form select,.password-reset-form input{
  height:44px;border-radius:10px;padding:0 12px;font-size:12px
}

.user-table-card{border-radius:18px}
.user-table-head{padding:18px 20px}
.user-table-head-v215{display:flex;align-items:center;justify-content:space-between;gap:18px}
.user-table-head-v215>div:first-child{display:flex;flex-direction:column;gap:3px}
.user-table-head strong{font-size:14px}
.user-table-head span{font-size:11px;line-height:1.5}
.admin-user-search{
  width:260px;height:40px;display:flex;align-items:center;gap:7px;
  border:1px solid #d0d5dd;border-radius:10px;padding:0 10px;background:#fff
}
.admin-user-search span{font-size:16px;color:#98a2b3}
.admin-user-search input{
  width:100%;border:0;outline:0;font-size:12px;background:transparent
}
.user-row>summary{padding:16px 20px}
.user-ident{gap:12px}
.user-ident strong{font-size:13px}
.user-ident span{font-size:11px}
.user-row-meta{gap:11px}
.active-pill{font-size:10px;padding:5px 8px}
.user-row-meta small{font-size:10px}
.user-row-body{padding:17px 20px 19px}
.user-edit-form{gap:11px}
.user-actions-row{margin-top:15px;padding-top:15px}

@media(max-width:1050px){
  .admin-quick-actions{grid-template-columns:1fr}
}
@media(max-width:760px){
  .admin-content,.admin-topbar{width:min(100% - 26px,1360px)}
  .admin-page-head h1{font-size:30px}
  .admin-head-actions{width:100%;flex-wrap:wrap}
  .user-table-head-v215{align-items:flex-start;flex-direction:column}
  .admin-user-search{width:100%;box-sizing:border-box}
}


/* V2.16 - Eptisa branding + unified sticky topbars */
.shell{max-width:1360px;padding:22px 24px 84px}
.nav-sticky{position:sticky;top:14px;z-index:80}
.nav,.admin-topbar{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(228,231,236,.92);
  border-radius:20px;
  box-shadow:0 14px 34px rgba(16,24,40,.06)
}
.nav{padding:14px 18px;margin-bottom:22px}
.nav-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}
.nav-actions .btn,.admin-topbar nav a{height:40px;padding:0 15px;border-radius:12px}
.nav-actions .btn-soft,.admin-topbar nav a{background:#fff;border:1px solid #e4e7ec;color:#344054;box-shadow:none}
.nav-actions .btn-soft:hover,.admin-topbar nav a:hover,.admin-topbar nav a.active{background:#f8fafc;border-color:#d0d5dd;color:#101828}
.brand-eptisa{gap:14px}
.brand-eptisa-logo{display:block;width:110px;height:auto;object-fit:contain}
.brand-divider{width:1px;height:34px;background:#e4e7ec;flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column}
.brand-title{font-size:21px}
.brand-sub{font-size:11px;letter-spacing:.02em}
.nav-user{font-size:12px;color:#344054;font-weight:650;padding:9px 12px;border-radius:12px;background:#eef4ff;border:1px solid #d9e2ff}

.admin-topbar{padding:14px 18px!important;margin-top:14px}
.admin-topbar nav{justify-content:flex-end;flex-wrap:wrap}
.admin-page-head{align-items:flex-start}
.admin-tabline{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.admin-tab{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid #e4e7ec;text-decoration:none;color:#475467;font-size:12px;font-weight:600}
.admin-tab.active{background:#eef4ff;border-color:#b2ccff;color:#155eef}
.admin-stat-grid{margin-top:6px}
.admin-quick-actions{grid-template-columns:repeat(4,1fr)}
.admin-quick-card{min-height:86px}
.admin-card{box-shadow:0 8px 24px rgba(16,24,40,.04)}
.admin-card-head p,.admin-status-list span,.admin-empty-state{font-size:12px}
.admin-status-list strong{font-size:12px}
.admin-audit-card{margin-top:18px}

.auth-body{background:linear-gradient(180deg,#eff3f8 0%,#eef2f6 100%)}
.auth-card{width:min(580px,100%);padding:34px 36px;border-radius:28px;box-shadow:0 28px 70px rgba(16,24,40,.11)}
.auth-brand{margin-bottom:26px}
.auth-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#155eef;font-size:11px;font-weight:700;letter-spacing:.08em;margin-bottom:12px}
.auth-copy h1{font-size:34px}
.auth-copy p{font-size:15px;line-height:1.65}
.auth-trust-list{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.auth-trust-list span{padding:7px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e4e7ec;color:#344054;font-size:11px;font-weight:600}
.auth-form input{height:48px;border-radius:12px}
.auth-submit{height:49px}
.auth-mode{font-size:12px}

@media(max-width:1180px){
  .admin-quick-actions{grid-template-columns:1fr 1fr}
}
@media(max-width:860px){
  .brand-eptisa-logo{width:92px}
  .brand-divider{height:28px}
  .nav,.admin-topbar{padding:12px 14px}
}
@media(max-width:760px){
  .nav{align-items:flex-start;flex-direction:column;gap:14px}
  .nav-actions{justify-content:flex-start}
  .admin-topbar nav{justify-content:flex-start}
  .admin-quick-actions{grid-template-columns:1fr}
  .auth-card{padding:28px 24px}
}
@media(max-width:520px){
  .brand-eptisa{align-items:flex-start;gap:10px}
  .brand-eptisa-logo{width:84px}
  .brand-title{font-size:18px}
  .brand-sub{font-size:10px}
  .admin-topbar,.nav{border-radius:16px}
}

.admin-page-head{flex-wrap:wrap}
.admin-tabline{width:100%}
\n/* V2.20 - Full admin suite */
.admin-mini-statbar{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:-4px 0 18px}.admin-mini-statbar>div{background:#fff;border:1px solid #e4e7ec;border-radius:13px;padding:11px 14px;display:flex;justify-content:space-between;align-items:center}.admin-mini-statbar span{font-size:10px;color:#667085}.admin-mini-statbar strong{font-size:12px;color:#101828}
.template-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.template-admin-card{background:#fff;border:1px solid #e4e7ec;border-radius:17px;padding:18px}.template-admin-head{display:flex;justify-content:space-between;gap:12px}.template-admin-head span{font-size:10px;color:#667085}.template-admin-head h3{font-size:15px;margin:4px 0 0}.template-admin-card>p{font-size:10px;color:#98a2b3}.template-admin-switches{display:flex;gap:16px;margin:12px 0}.template-admin-switches label{font-size:11px}.template-admin-card textarea{width:100%;min-height:72px;border:1px solid #d0d5dd;border-radius:10px;padding:10px;font:inherit;font-size:11px;margin-bottom:10px}
.settings-form{display:grid;gap:13px}.settings-form label>span{display:block;font-size:11px;font-weight:650;margin-bottom:5px}.settings-form select,.settings-form input{width:100%;height:42px;border:1px solid #d0d5dd;border-radius:10px;padding:0 11px}.settings-check{display:flex;gap:8px;align-items:center;font-size:11px}.settings-check input{width:16px;height:16px}
.audit-search{display:flex;gap:8px;margin-bottom:14px}.audit-search input{flex:1;height:42px;border:1px solid #d0d5dd;border-radius:10px;padding:0 12px}.audit-table-card{background:#fff;border:1px solid #e4e7ec;border-radius:16px;overflow:hidden}.audit-row{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;padding:13px 16px;border-top:1px solid #f0f2f5}.audit-row:first-child{border-top:0}.audit-row>div{display:flex;flex-direction:column;gap:2px}.audit-row strong{font-size:11px}.audit-row span{font-size:9px;color:#98a2b3}
.version-history{margin-top:16px}.version-list{padding:12px}.version-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #eef2f6}.version-row:first-child{border-top:0}.version-row>div{display:flex;flex-direction:column;gap:2px}.version-row strong{font-size:11px}.version-row span{font-size:9px;color:#98a2b3}
.annex-row-actions{display:flex;gap:4px;align-items:center}.annex-action-link{border:0;background:#f2f4f7;color:#475467;border-radius:7px;padding:6px 8px;font-size:9px;text-decoration:none;cursor:pointer}.role-pill.editor{background:#fffaeb;color:#b54708!important}
@media(max-width:900px){.template-admin-grid{grid-template-columns:1fr}.admin-mini-statbar{grid-template-columns:1fr 1fr}.audit-row{grid-template-columns:1fr}}


/* V2.21 - Admin UI harmony / scale alignment */
.admin-shell{font-size:17px;background:#f3f6fb}
.admin-topbar,.admin-content{width:min(1360px,calc(100% - 40px))}
.admin-topbar{padding:16px 20px!important;gap:24px}
.admin-topbar .brand-title{font-size:22px;font-weight:700}
.admin-topbar .brand-sub{font-size:12px;color:#667085}
.admin-topbar nav{gap:10px}
.admin-topbar nav a{height:42px;padding:0 16px;font-size:13px;font-weight:650}
.admin-content{padding:20px 0 78px}
.admin-page-head{margin:8px 0 24px;gap:18px}
.admin-title-line{gap:12px;align-items:center}
.admin-eyebrow{font-size:12px;letter-spacing:1.7px}
.admin-version{font-size:11px;padding:5px 10px}
.admin-page-head h1{font-size:38px;line-height:1.1;margin:8px 0 8px;font-weight:750}
.admin-page-head p{font-size:15px;line-height:1.65;max-width:760px;color:#667085}
.admin-head-actions{gap:10px}
.admin-head-actions .btn{height:44px;padding:0 16px;font-size:13px;border-radius:12px}
.admin-tabline{gap:10px;margin-top:14px}
.admin-tab{min-height:42px;padding:0 14px;font-size:13px;border-radius:12px}

.admin-stat-grid{gap:16px;margin-bottom:16px}
.admin-stat{padding:22px 22px;border-radius:18px;box-shadow:0 8px 24px rgba(16,24,40,.04)}
.admin-stat span{font-size:12px;font-weight:650;color:#667085;margin-bottom:12px}
.admin-stat strong{font-size:36px;line-height:1;font-weight:750}
.admin-stat small{font-size:11px;margin-top:9px;color:#98a2b3}

.admin-mini-statbar{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 18px}
.admin-mini-statbar>div{background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:18px 18px 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;box-shadow:0 8px 24px rgba(16,24,40,.035)}
.admin-mini-statbar span{font-size:12px;font-weight:650;color:#667085}
.admin-mini-statbar strong{font-size:20px;line-height:1.25;color:#101828;font-weight:750;word-break:break-word}
.admin-mini-statbar small{font-size:11px;color:#98a2b3;line-height:1.45}

.admin-quick-actions{gap:16px;margin-bottom:20px}
.admin-quick-card{padding:18px 18px;min-height:94px;border-radius:18px}
.admin-quick-icon{width:48px;height:48px;border-radius:13px;font-size:20px}
.admin-quick-card strong{font-size:15px;line-height:1.3}
.admin-quick-card span{font-size:13px;line-height:1.55;color:#667085}
.admin-quick-card>b{font-size:18px}

.admin-card,.user-table-card,.template-admin-card,.audit-table-card{border-radius:18px;box-shadow:0 8px 24px rgba(16,24,40,.04)}
.admin-card{padding:22px}
.admin-card-head{margin-bottom:16px}
.admin-card-head h2{font-size:19px;line-height:1.3;margin-bottom:4px}
.admin-card-head p,.admin-card-head a{font-size:13px;line-height:1.55}
.admin-status-list>div{padding:14px 0}
.admin-status-list span{font-size:14px}
.admin-status-list strong{font-size:13px;font-weight:700}
.admin-user-mini{grid-template-columns:44px 1fr auto;gap:12px;padding:13px 0}
.admin-avatar{width:44px;height:44px;border-radius:13px;font-size:14px}
.admin-user-mini strong{font-size:14px}
.admin-user-mini span{font-size:11px}
.role-pill{font-size:10px!important;padding:5px 9px}
.role-pill.editor{background:#fffaeb;color:#b54708!important}

.admin-audit-row{padding:13px 0;grid-template-columns:12px 1fr auto}
.admin-audit-copy strong{font-size:13px}
.admin-audit-copy span,.admin-audit-row small{font-size:11px;line-height:1.5}
.admin-empty-state{font-size:13px;line-height:1.6}

.user-table-head strong{font-size:15px}.user-table-head span{font-size:12px;line-height:1.5}
.admin-user-search{height:42px;border-radius:12px}
.admin-user-search input{font-size:13px}
.user-row>summary{padding:16px 18px}
.user-ident strong{font-size:14px}.user-ident span,.user-row-meta small{font-size:11px}
.user-row-body{padding:18px 18px 20px}
.admin-user-form label span,.user-edit-form label span,.settings-form label>span,.template-admin-switches label{font-size:12px}
.admin-user-form input,.admin-user-form select,.user-edit-form input,.user-edit-form select,.password-reset-form input,.settings-form select,.settings-form input,.template-admin-card textarea{font-size:13px}
.template-admin-head span{font-size:11px}.template-admin-head h3{font-size:16px}.template-admin-card>p{font-size:11px}
.audit-search input{height:44px;font-size:13px}.audit-row strong{font-size:12px}.audit-row span{font-size:11px;line-height:1.5}
.version-row strong{font-size:12px}.version-row span{font-size:11px}
.annex-action-link{font-size:10px;padding:7px 9px}

@media (max-width:1200px){
  .admin-mini-statbar{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .admin-topbar,.admin-content{width:min(100% - 24px,1360px)}
  .admin-page-head h1{font-size:32px}
  .admin-topbar nav{justify-content:flex-start}
}
@media (max-width:640px){
  .admin-stat-grid,.admin-mini-statbar,.admin-grid{grid-template-columns:1fr}
  .admin-topbar nav a,.admin-tab,.admin-head-actions .btn{width:auto}
  .admin-page-head p{font-size:14px}
}


/* V2.22 - Admin width / top spacing parity with home */
.admin-topbar,.admin-content{max-width:1320px;width:calc(100% - 48px)}
.admin-topbar{margin-top:0!important;margin-bottom:20px;padding:14px 18px!important}
.admin-content{padding-top:4px;padding-bottom:78px}
.admin-page-head{margin:0 0 22px;gap:14px}
.admin-page-head h1{font-size:34px;line-height:1.08;margin:6px 0 8px}
.admin-page-head p{font-size:14px;line-height:1.6;max-width:720px}
.admin-title-line{gap:10px;align-items:center}
.admin-topbar nav a{font-size:13px}
.admin-head-actions .btn{height:42px}

@media (max-width:860px){
  .admin-topbar,.admin-content{width:calc(100% - 24px)}
  .admin-topbar{margin-bottom:16px}
  .admin-page-head h1{font-size:30px}
}


/* V2.23 - Admin header parity + nav vertical centering */
.admin-topbar,
.admin-content{
  max-width:1312px !important;
  width:calc(100% - 48px) !important;
}
.admin-topbar{
  margin:0 auto 22px !important;
  padding:14px 18px !important;
  min-height:60px;
  gap:18px;
}
.admin-content{
  padding-top:0 !important;
}
.admin-page-head{
  margin-top:0 !important;
}
.admin-topbar nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.admin-topbar nav a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:40px !important;
  min-height:40px;
  padding:0 16px !important;
  line-height:1 !important;
  font-size:13px !important;
  vertical-align:middle;
  text-align:center;
}
.admin-topbar .brand-copy{justify-content:center}
.admin-topbar .brand-title,
.admin-topbar .brand-sub{line-height:1.1}

@media (max-width:860px){
  .admin-topbar,
  .admin-content{width:calc(100% - 24px) !important}
  .admin-topbar{margin-bottom:16px !important}
  .admin-topbar nav{justify-content:flex-start}
}


/* V2.30 - Unified workspace shell / real admin layout */
:root{--workspace-sidebar:268px;--workspace-gap:22px}
body{background:#f4f7fb}
.workspace-layout{min-height:100vh}
.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:var(--workspace-sidebar);background:#101828;color:#fff;z-index:120;display:flex;flex-direction:column;padding:20px 16px 16px;border-right:1px solid rgba(255,255,255,.06);box-shadow:14px 0 34px rgba(16,24,40,.09)}
.workspace-brand{display:flex;align-items:center;justify-content:space-between;padding:2px 5px 20px}
.workspace-brand-link{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0}
.workspace-brand-logo{width:92px;height:auto;display:block;filter:brightness(0) invert(1);opacity:.96}
.workspace-brand-divider{width:1px;height:31px;background:rgba(255,255,255,.18)}
.workspace-brand-copy{display:flex;flex-direction:column;min-width:0}.workspace-brand-copy strong{font-size:18px;line-height:1.1;color:#fff}.workspace-brand-copy small{font-size:10px;color:#98a2b3;margin-top:3px;white-space:nowrap}
.workspace-sidebar-close{display:none;border:0;background:rgba(255,255,255,.08);color:#fff;width:32px;height:32px;border-radius:8px;font-size:18px}
.workspace-nav{flex:1;overflow:auto;padding:4px 2px 12px}.workspace-nav-group{margin-bottom:22px}.workspace-nav-label{font-size:9px;letter-spacing:.14em;font-weight:700;color:#667085;padding:0 11px 8px}
.workspace-nav-item{display:flex;align-items:center;gap:11px;min-height:44px;padding:0 12px;margin:3px 0;border-radius:11px;text-decoration:none;color:#cdd5df;font-size:13px;transition:.15s}.workspace-nav-item>span{width:22px;text-align:center;font-size:16px;color:#98a2b3}.workspace-nav-item b{font-weight:600}.workspace-nav-item:hover{background:rgba(255,255,255,.06);color:#fff}.workspace-nav-item.active{background:#155eef;color:#fff;box-shadow:0 7px 18px rgba(21,94,239,.24)}.workspace-nav-item.active>span{color:#fff}
.workspace-userbox{display:grid;grid-template-columns:38px 1fr 32px;gap:9px;align-items:center;padding:12px 10px 6px;border-top:1px solid rgba(255,255,255,.09)}.workspace-user-avatar{width:38px;height:38px;border-radius:11px;background:#344054;display:grid;place-items:center;font-size:13px;font-weight:700}.workspace-user-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.workspace-user-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-user-copy span{font-size:8px;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-logout{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.06);display:grid;place-items:center;text-decoration:none;color:#cdd5df}.workspace-logout:hover{background:rgba(255,255,255,.1);color:#fff}
.workspace-main{margin-left:var(--workspace-sidebar);min-height:100vh}
.workspace-topbar{position:sticky;top:0;z-index:90;height:74px;background:rgba(244,247,251,.91);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid #e4e7ec;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 28px}
.workspace-topbar-left{display:flex;align-items:center;gap:12px;min-width:0}.workspace-topbar-left>div{display:flex;flex-direction:column;gap:2px}.workspace-topbar-left strong{font-size:16px;color:#101828}.workspace-topbar-left span{font-size:11px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-menu-button{display:none;border:1px solid #d0d5dd;background:#fff;width:40px;height:40px;border-radius:10px;font-size:17px;color:#344054}
.workspace-topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workspace-topbar-actions .btn{height:40px;padding:0 14px;border-radius:11px;font-size:12px}
.workspace-content{padding:24px 28px 70px}.workspace-inner{width:100%!important;max-width:1320px!important;margin:0 auto!important;padding:0!important}.workspace-content>.admin-content{width:100%!important;max-width:1320px!important;margin:0 auto!important;padding:0!important}.workspace-content>.shell{width:100%;max-width:1320px}
.workspace-sidebar-overlay{display:none}

/* Home becomes the operational landing page */
.landing-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.landing-action{display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center;min-height:88px;padding:15px 16px;background:#fff;border:1px solid #e4e7ec;border-radius:17px;text-decoration:none;box-shadow:0 7px 20px rgba(16,24,40,.035);transition:.15s}.landing-action:hover{transform:translateY(-1px);border-color:#b2ccff;box-shadow:0 10px 26px rgba(21,94,239,.06)}.landing-action.primary{background:linear-gradient(145deg,#101828,#1d2939);border-color:#1d2939;color:#fff}.landing-action-icon{width:44px;height:44px;border-radius:12px;background:#f2f4f7;display:grid;place-items:center;font-size:19px;color:#344054}.landing-action.primary .landing-action-icon{background:rgba(255,255,255,.12);color:#fff}.landing-action>div{display:flex;flex-direction:column;gap:4px}.landing-action strong{font-size:13px}.landing-action small{font-size:10px;line-height:1.45;color:#667085}.landing-action.primary small{color:#c7ced8}.landing-action>b{font-size:17px;color:#98a2b3}.landing-action.primary>b{color:#fff}
.workspace-inner .hero{min-height:330px}.workspace-inner .hero-copy{padding:42px 44px}.workspace-inner .hero h1{font-size:43px}.workspace-inner .hero p{font-size:15px}.workspace-inner .hero-side{min-height:330px;padding:28px}

/* Legacy topbars are replaced by workspace shell */
.workspace-layout .nav,.workspace-layout .admin-topbar{display:none!important}.workspace-layout .admin-shell{background:transparent;min-height:0}.workspace-layout .admin-page-head{margin-top:0}.workspace-layout .admin-content{background:transparent}

@media(max-width:1180px){.landing-actions{grid-template-columns:1fr 1fr}}
@media(max-width:960px){
  :root{--workspace-sidebar:268px}
  .workspace-sidebar{transform:translateX(-100%);transition:transform .2s ease}.sidebar-open .workspace-sidebar{transform:translateX(0)}.workspace-sidebar-close{display:block}.workspace-main{margin-left:0}.workspace-menu-button{display:inline-grid;place-items:center}.workspace-sidebar-overlay{position:fixed;inset:0;background:rgba(16,24,40,.45);z-index:110}.sidebar-open .workspace-sidebar-overlay{display:block}.workspace-content{padding:18px 18px 60px}.workspace-topbar{height:68px;padding:0 18px}
}
@media(max-width:680px){.landing-actions{grid-template-columns:1fr}.workspace-topbar-actions .btn-soft{display:none}.workspace-topbar-left span{max-width:220px}.workspace-inner .hero{grid-template-columns:1fr}.workspace-inner .hero-copy{padding:30px 24px}.workspace-inner .hero h1{font-size:34px}.workspace-inner .hero-side{min-height:auto;padding:22px}}


/* V2.31 - Global typography scale + 10k library */
:root{--text-xs:11px;--text-sm:12px;--text-md:14px;--text-lg:16px}
.workspace-topbar-left strong{font-size:15px}
.workspace-topbar-left span{font-size:12px;line-height:1.5}
.workspace-topbar-actions .btn{font-size:12px}
.sidebar-brand strong{font-size:18px}.sidebar-brand span{font-size:11px}
.workspace-nav-label{font-size:10px;letter-spacing:.12em}
.workspace-nav a{font-size:13px;min-height:43px}.workspace-nav a span{font-size:13px}
.landing-action strong{font-size:14px}.landing-action small{font-size:11px;line-height:1.45}
.step b{font-size:15px}.step span{font-size:12px}
.panel-title p,.hero p,.state-hero p{font-size:14px}
.stat-label,.recent-main span,.library-meta span{font-size:11px}
.recent-main strong,.library-meta strong{font-size:13px}
.btn-small{font-size:11px}
.count-badge{font-size:11px}
.dashboard-library-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.library-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.library-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#155eef}.library-hero h1{font-size:32px;margin:6px 0 6px;letter-spacing:-.8px}.library-hero p{font-size:14px;color:#667085;margin:0}.library-count{display:flex;align-items:baseline;gap:5px;background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:14px 18px}.library-count strong{font-size:28px}.library-count span{font-size:12px;color:#667085}
.library-filter-card{display:grid;grid-template-columns:minmax(280px,2fr) 160px 190px 110px 170px auto;gap:10px;align-items:end;background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:16px;margin-bottom:16px;box-shadow:0 8px 24px rgba(16,24,40,.035)}.library-filter-card label{display:block;font-size:11px;font-weight:650;color:#344054;margin-bottom:6px}.library-filter input,.library-filter select{width:100%;height:42px;border:1px solid #d0d5dd;border-radius:10px;padding:0 10px;font-size:12px;background:#fff}.library-search-main .search-input-wrap{height:42px}.library-search-main input{font-size:12px}.library-filter-actions{display:flex;gap:7px}.library-filter-actions .btn{height:42px;padding:0 13px;font-size:12px}
.library-table-card{background:#fff;border:1px solid #e4e7ec;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(16,24,40,.035)}.library-table-head{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #eef2f6}.library-table-head>div{display:flex;flex-direction:column;gap:2px}.library-table-head strong{font-size:13px}.library-table-head span{font-size:11px;color:#667085}.library-list{display:grid}.library-row{display:grid;grid-template-columns:minmax(250px,1.6fr) 120px 85px minmax(180px,1.1fr) 145px auto;gap:14px;align-items:center;padding:13px 16px;border-top:1px solid #f0f2f5}.library-row:first-child{border-top:0}.library-row:hover{background:#fbfcff}.library-person{display:flex;align-items:center;gap:10px;min-width:0}.library-person>div:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}.library-person strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-person span{font-size:11px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-meta{min-width:0;display:flex;flex-direction:column;gap:3px}.library-meta span{color:#98a2b3}.library-meta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-actions{display:flex;gap:6px;justify-content:flex-end}.library-pagination{display:flex;gap:6px;padding:14px 16px;border-top:1px solid #eef2f6}.library-pagination a{width:34px;height:34px;border:1px solid #e4e7ec;border-radius:9px;display:grid;place-items:center;text-decoration:none;font-size:11px;background:#fff}.library-pagination a.active{background:#155eef;color:#fff;border-color:#155eef}
@media(max-width:1200px){.library-filter-card{grid-template-columns:1fr 1fr 1fr}.library-search-main{grid-column:1/-1}.library-row{grid-template-columns:minmax(220px,1.5fr) 110px 75px minmax(160px,1fr) auto}.library-row .library-meta:nth-of-type(4){display:none}}
@media(max-width:800px){.library-filter-card{grid-template-columns:1fr}.library-search-main{grid-column:auto}.library-row{grid-template-columns:1fr auto}.library-meta,.library-source{display:none!important}.library-actions{grid-column:2}.library-hero{align-items:flex-start;flex-direction:column}.library-count{align-self:flex-start}}


/* V2.32 - Library membership + template history */
.library-prompt-card{display:grid;grid-template-columns:48px 1fr auto auto;gap:14px;align-items:center;margin-bottom:18px;padding:16px 18px;border:1px solid #b2ccff;border-radius:16px;background:linear-gradient(90deg,#f5f8ff,#fff);box-shadow:0 8px 22px rgba(21,94,239,.04)}
.library-prompt-icon{width:48px;height:48px;border-radius:13px;background:#155eef;color:#fff;display:grid;place-items:center;font-size:20px}.library-prompt-copy{display:flex;flex-direction:column;gap:4px}.library-prompt-copy strong{font-size:14px}.library-prompt-copy span{font-size:12px;line-height:1.55;color:#667085}.library-prompt-skip{font-size:10px;color:#98a2b3;white-space:nowrap}
.result-library-cta{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 14px;border:1px solid #abefc6;background:#ecfdf3;border-radius:13px}.result-library-cta>div{display:flex;flex-direction:column;gap:3px}.result-library-cta strong{font-size:12px;color:#067647}.result-library-cta span{font-size:10px;color:#475467}
.library-status-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 16px;margin:14px 0;border:1px solid #e4e7ec;border-radius:14px;background:#fbfcfe}.library-status-card>div:first-child{display:flex;flex-direction:column;gap:3px}.library-status-card span{font-size:10px;color:#667085}.library-status-card strong{font-size:15px}.library-status-card small{font-size:10px;color:#98a2b3}.library-status-actions{display:flex;gap:7px;flex-wrap:wrap}.library-status-actions form{margin:0}.status-active{border-color:#abefc6;background:#f6fef9}.status-draft{border-color:#b2ccff;background:#f5f8ff}.status-archived,.status-do_not_use{background:#f9fafb}
.candidate-template-status{margin:18px 0;padding:18px;border:1px solid #e4e7ec;border-radius:16px;background:#fff}.candidate-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}.candidate-section-head h3{font-size:17px;margin:0 0 4px}.candidate-section-head p{font-size:11px;color:#667085;margin:0}.candidate-template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.candidate-template-card{padding:12px;border:1px solid #e4e7ec;border-radius:12px;min-width:0}.candidate-template-card>div:first-child{display:flex;flex-direction:column;gap:3px}.candidate-template-card span{font-size:9px;color:#98a2b3}.candidate-template-card strong{font-size:11px;line-height:1.35}.candidate-template-card small{display:block;font-size:9px;color:#98a2b3;margin-top:4px}.candidate-template-card.ready{border-color:#abefc6;background:#fbfffd}.candidate-template-ready{margin-top:8px;font-size:10px;font-weight:700;color:#067647}.candidate-template-missing{margin-top:8px;font-size:10px;color:#98a2b3}.candidate-template-links{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.candidate-template-links a,.candidate-template-create{font-size:9px;color:#155eef;text-decoration:none;font-weight:650}
.library-state-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:-2px 0 13px}.library-state-tabs a{padding:8px 11px;border:1px solid #e4e7ec;border-radius:10px;background:#fff;text-decoration:none;font-size:11px;font-weight:650;color:#475467}.library-state-tabs a.active{background:#eef4ff;border-color:#b2ccff;color:#155eef}.library-row-v232{grid-template-columns:minmax(250px,1.5fr) 110px 80px minmax(190px,1.1fr) 125px auto}.library-person small{font-size:9px;color:#98a2b3;margin-top:3px}.library-template-cell{min-width:0}.library-template-cell>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#98a2b3;margin-bottom:5px}.library-template-badges{display:flex;gap:4px;flex-wrap:wrap}.library-template-badges b,.library-template-badges em{font-size:8px;padding:4px 6px;border-radius:7px;font-style:normal}.library-template-badges b{background:#ecfdf3;color:#067647;border:1px solid #abefc6}.library-template-badges em{background:#f2f4f7;color:#667085}.library-actions{display:flex;gap:6px}
@media(max-width:1150px){.candidate-template-grid{grid-template-columns:1fr 1fr}.library-row-v232{grid-template-columns:minmax(240px,1.5fr) 90px 70px minmax(160px,1fr) auto}.library-row-v232>.library-meta:nth-of-type(3){display:none}}
@media(max-width:760px){.library-prompt-card{grid-template-columns:44px 1fr}.library-prompt-card form,.library-prompt-skip{grid-column:2}.candidate-template-grid{grid-template-columns:1fr}.library-status-card,.candidate-section-head,.result-library-cta{align-items:flex-start;flex-direction:column}.library-row-v232{grid-template-columns:1fr}.library-row-v232>*{display:block!important}.library-actions{display:flex!important}.library-template-cell{margin:6px 0}}

/* V2.33 - i18n language switcher + changelog */
.workspace-userbox{grid-template-columns:38px minmax(0,1fr) auto 32px}
.workspace-language{display:flex;gap:4px;align-items:center;justify-content:flex-end}
.workspace-language a{min-width:29px;height:28px;padding:0 7px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#98a2b3;background:rgba(255,255,255,.055);font-size:9px;font-weight:700;letter-spacing:.04em}
.workspace-language a:hover{background:rgba(255,255,255,.1);color:#fff}
.workspace-language a.active{background:#155eef;color:#fff}
.auth-card{position:relative}
.auth-language-switch{position:absolute;right:24px;top:22px;display:flex;gap:5px}
.auth-language-switch a{height:31px;min-width:34px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e4e7ec;border-radius:9px;background:#fff;text-decoration:none;color:#667085;font-size:10px;font-weight:700}
.auth-language-switch a.active{background:#eef4ff;border-color:#b2ccff;color:#155eef}
.changelog-hero{margin-bottom:18px;border:1px solid #b2ccff;background:linear-gradient(135deg,#f8faff,#eef4ff);border-radius:20px;padding:24px 26px;box-shadow:0 8px 24px rgba(21,94,239,.045)}
.changelog-hero>div{display:grid;grid-template-columns:auto auto 1fr;gap:10px 14px;align-items:center}
.changelog-hero span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#155eef}
.changelog-hero strong{font-size:24px;color:#101828}
.changelog-hero p{grid-column:1/-1;margin:3px 0 0;font-size:13px;line-height:1.6;color:#667085}
.changelog-list{position:relative;padding-left:30px}
.changelog-list:before{content:"";position:absolute;left:10px;top:13px;bottom:20px;width:2px;background:#dbe5f7}
.changelog-entry{position:relative;margin-bottom:14px}
.changelog-marker{position:absolute;left:-27px;top:21px;width:10px;height:10px;border-radius:999px;background:#98a2b3;border:3px solid #f4f7fb;box-shadow:0 0 0 2px #dbe5f7}
.changelog-entry.latest .changelog-marker{background:#155eef;box-shadow:0 0 0 3px #c7d7fe}
.changelog-card{background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:17px 19px;box-shadow:0 6px 18px rgba(16,24,40,.03)}
.changelog-entry.latest .changelog-card{border-color:#b2ccff}
.changelog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.changelog-head>div{display:flex;align-items:center;gap:8px}
.changelog-version{font-size:15px;font-weight:750;color:#101828}
.changelog-latest{padding:4px 7px;border-radius:999px;background:#ecfdf3;color:#027a48;font-size:9px;font-weight:700}
.changelog-head time{font-size:10px;color:#98a2b3}
.changelog-card ul{margin:0;padding-left:19px;display:grid;gap:6px}
.changelog-card li{font-size:12px;line-height:1.55;color:#475467}
@media(max-width:700px){
  .workspace-userbox{grid-template-columns:38px minmax(0,1fr) auto 32px}
  .workspace-language a{min-width:27px;padding:0 5px}
  .auth-language-switch{right:18px;top:18px}
  .changelog-hero>div{grid-template-columns:1fr auto}
}


/* V2.34 - Workspace consistency pass */
:root{--workspace-sidebar:268px;--workspace-topbar-height:74px;--workspace-max:1320px}
.workspace-sidebar{padding:20px 16px 14px}
.workspace-nav{padding-bottom:16px}
.workspace-nav-group{margin-bottom:24px}
.workspace-nav-label{font-size:10px;line-height:1.4;padding:0 11px 9px}
.workspace-nav-item{min-height:45px;font-size:13px}
.workspace-nav-item b{font-size:13px;line-height:1.2}
.workspace-nav-item>span{font-size:14px}
.workspace-userbox{grid-template-columns:40px minmax(0,1fr) 34px;gap:10px;padding:14px 8px 4px}
.workspace-user-avatar{width:40px;height:40px;font-size:13px}
.workspace-user-copy strong{font-size:12px;line-height:1.35}
.workspace-user-copy span{font-size:10px;line-height:1.35}
.workspace-logout{width:34px;height:34px}
.workspace-language{display:none!important}

.workspace-topbar{height:var(--workspace-topbar-height);padding:0 28px}
.workspace-topbar-left strong{font-size:16px;line-height:1.25}
.workspace-topbar-left span{font-size:12px;line-height:1.4}
.workspace-topbar-actions{gap:8px;flex-wrap:nowrap}
.workspace-topbar-actions .btn{height:40px;font-size:12px;white-space:nowrap}
.workspace-topbar-language{display:flex;align-items:center;gap:5px;padding-left:4px}
.workspace-topbar-language a{min-width:34px;height:34px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:9px;background:#fff;text-decoration:none;color:#667085;font-size:10px;font-weight:750;letter-spacing:.03em}
.workspace-topbar-language a:hover{border-color:#98a2b3;color:#344054}
.workspace-topbar-language a.active{background:#155eef;border-color:#155eef;color:#fff}

.workspace-content{padding:24px 28px 72px}
.workspace-inner,.workspace-content>.admin-content,.workspace-content>.shell{max-width:var(--workspace-max)!important}
.workspace-page-head{min-height:112px;margin:0 0 18px;padding:6px 0 20px;border-bottom:1px solid #e4e7ec;display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.workspace-page-copy{min-width:0;max-width:820px}
.workspace-page-eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#155eef;margin-bottom:8px}
.workspace-page-head h1{margin:0 0 8px;font-size:32px;line-height:1.1;letter-spacing:-.7px;color:#101828}
.workspace-page-head p{margin:0;font-size:14px;line-height:1.6;color:#667085}
.workspace-page-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding-top:6px}
.workspace-page-actions .btn{height:42px;padding:0 15px;font-size:12px}

/* Keep internal pages visually stable: topbar + page header always occupy the same vertical rhythm. */
.workspace-content>.admin-content,.workspace-content>.shell{padding-top:0!important}
.admin-page-head,.admin-tabline{display:none!important}

/* Readability normalization */
.panel-title h2{font-size:24px}
.panel-title p,.hero p,.state-hero p{font-size:14px;line-height:1.6}
.admin-card-head h2{font-size:18px}
.admin-card-head p,.admin-status-list span,.admin-empty-state{font-size:12px}
.changelog-card li{font-size:13px;line-height:1.6}
.changelog-head time{font-size:11px}
.template-admin-head h3{font-size:16px}.template-admin-head span,.template-admin-card>p{font-size:11px}
.user-ident strong{font-size:13px}.user-ident span,.user-row-meta small{font-size:11px}
.library-table-head strong{font-size:13px}.library-table-head span{font-size:11px}

@media(max-width:960px){
  .workspace-topbar-actions{flex-wrap:wrap}
  .workspace-page-head{min-height:0;flex-direction:column;padding-bottom:18px}
  .workspace-page-actions{padding-top:0}
}
@media(max-width:680px){
  .workspace-topbar-language a{min-width:31px;height:32px;padding:0 6px}
  .workspace-topbar-left span{max-width:180px}
  .workspace-page-head h1{font-size:28px}
}


/* V2.35 - Admin content containment fix */
.workspace-content > .admin-content.workspace-inner{
  width:100% !important;
  max-width:1320px !important;
  margin:0 auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.workspace-content .template-admin-grid,
.workspace-content .admin-grid,
.workspace-content .audit-search,
.workspace-content .audit-table-card{
  width:100%;
  max-width:100%;
}


/* V2.40 - Expert intelligence / advanced library / best match */
.library-filter-advanced{grid-template-columns:minmax(320px,2fr) repeat(5,minmax(140px,1fr));align-items:end}
.library-more-filters{grid-column:1/-2;border:1px solid #e4e7ec;border-radius:12px;background:#fafbfc;padding:0 12px}.library-more-filters summary{padding:10px 0;font-size:12px;font-weight:650;cursor:pointer}.library-more-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:0 0 12px}
.match-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.match-upload-card,.match-history-card,.tor-requirements-card,.match-candidate-card{background:#fff;border:1px solid #e4e7ec;border-radius:18px;box-shadow:0 8px 24px rgba(16,24,40,.04)}.match-upload-card{padding:24px;display:grid;grid-template-columns:50px 1fr;gap:14px}.match-upload-icon{width:50px;height:50px;border-radius:14px;background:#eef4ff;color:#155eef;display:grid;place-items:center;font-size:24px}.match-upload-card h2,.match-history-card h2{font-size:20px;margin:0 0 5px}.match-upload-card p{font-size:13px;color:#667085;line-height:1.55;margin:0}.match-upload-card form{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.3fr auto;gap:10px;align-items:end;margin-top:6px}.match-upload-card label span{display:block;font-size:11px;font-weight:650;margin-bottom:6px}.match-upload-card input{height:43px;width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:0 11px}.match-history-card{padding:20px}.match-history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.match-history-head>span{font-size:11px;background:#f2f4f7;padding:5px 8px;border-radius:999px}.match-tor-list{display:grid}.match-tor-list a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eef2f6;text-decoration:none}.match-tor-list a:first-child{border-top:0}.match-tor-list div{display:flex;flex-direction:column;gap:3px}.match-tor-list strong{font-size:13px}.match-tor-list span,.match-tor-list small{font-size:10px;color:#98a2b3}.tor-requirements-card{padding:18px;margin-bottom:16px}.tor-req-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}.tor-req-head div{display:flex;flex-direction:column;gap:3px}.tor-req-head strong{font-size:14px}.tor-req-head span{font-size:10px;color:#98a2b3}.match-run-id{padding:5px 8px;border-radius:999px;background:#f2f4f7}.tor-chip-grid{display:flex;flex-wrap:wrap;gap:7px}.tor-chip-grid>span{display:flex;gap:5px;padding:7px 9px;border:1px solid #e4e7ec;border-radius:9px;background:#fafbfc;font-size:10px}.tor-chip-grid b{color:#344054}.match-result-head{display:flex;justify-content:space-between;margin:12px 0}.match-result-head>div{display:flex;flex-direction:column;gap:3px}.match-result-head strong{font-size:15px}.match-result-head span{font-size:11px;color:#667085}.match-results-list{display:grid;gap:10px}.match-candidate-card{display:grid;grid-template-columns:45px 74px minmax(0,1fr) auto;gap:13px;align-items:start;padding:16px}.match-rank{font-size:11px;color:#98a2b3;padding-top:9px}.match-score{width:68px;height:58px;border-radius:13px;display:flex;align-items:baseline;justify-content:center;padding-top:13px;border:1px solid #e4e7ec}.match-score strong{font-size:22px}.match-score span{font-size:9px}.match-score.high{background:#ecfdf3;color:#027a48;border-color:#abefc6}.match-score.mid{background:#fffaeb;color:#b54708;border-color:#fedf89}.match-score.low{background:#f8fafc;color:#475467}.match-person h3{font-size:15px;margin:0 0 3px}.match-person>p{font-size:11px;color:#667085;margin:0 0 9px}.match-reasons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.match-positive,.match-negative{display:flex;flex-direction:column;gap:3px}.match-positive span,.match-negative span{font-size:10px;line-height:1.45}.match-positive span{color:#027a48}.match-negative span{color:#b54708}.match-template-status{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.match-template-status b{font-size:9px;padding:4px 6px;border-radius:7px;background:#eef4ff;color:#155eef}.match-template-status em{font-size:9px;color:#98a2b3}.match-actions{display:flex;gap:7px;align-items:center;align-self:center}
@media(max-width:1200px){.library-filter-advanced{grid-template-columns:1fr 1fr 1fr}.library-search-main{grid-column:1/-1}.library-more-filters{grid-column:1/-1}.library-more-grid{grid-template-columns:1fr 1fr 1fr}.match-layout{grid-template-columns:1fr}.match-candidate-card{grid-template-columns:40px 68px 1fr}.match-actions{grid-column:3}}
@media(max-width:760px){.library-filter-advanced,.library-more-grid{grid-template-columns:1fr}.match-upload-card form{grid-template-columns:1fr}.match-candidate-card{grid-template-columns:1fr}.match-rank{display:none}.match-score{width:72px}.match-actions{grid-column:auto}.match-reasons{grid-template-columns:1fr}}

/* V2.41 - Best Match V2 + typography floor */
.workspace-main{font-size:14px}
.workspace-nav-label{font-size:11px}
.workspace-nav-item{font-size:14px;min-height:46px}
.workspace-nav-item b{font-size:14px}
.workspace-user-copy strong{font-size:13px}.workspace-user-copy span{font-size:11px}
.workspace-topbar-left strong{font-size:17px}.workspace-topbar-left span{font-size:13px}
.workspace-topbar-actions .btn{font-size:13px}
.workspace-page-eyebrow{font-size:12px}.workspace-page-head h1{font-size:34px}.workspace-page-head p{font-size:15px}

/* Global readability floor for operational screens */
.workspace-main .panel-title p,.workspace-main .state-hero p,.workspace-main .preflight-box>div>span,.workspace-main .preflight-box ul,
.workspace-main .review-head span,.workspace-main .review-details summary span,.workspace-main .form-grid label>span,.workspace-main .repeat-grid label>span,
.workspace-main .source-evidence summary,.workspace-main .history-row span,.workspace-main .quality-copy>span,.workspace-main .quality-warnings p,
.workspace-main .annex-info-banner span,.workspace-main .annex-upload-field>label:first-child,.workspace-main .annex-list-head span,
.workspace-main .library-meta span,.workspace-main .library-person span,.workspace-main .library-table-head span,
.workspace-main .candidate-section-head p,.workspace-main .library-prompt-copy span,.workspace-main .result-library-cta span{
  font-size:12px!important;line-height:1.55
}
.workspace-main .quality-tags span,.workspace-main .confidence-panel>div span,.workspace-main .library-template-cell>span,
.workspace-main .library-person small,.workspace-main .candidate-template-card span,.workspace-main .candidate-template-card small,
.workspace-main .candidate-template-ready,.workspace-main .candidate-template-missing,.workspace-main .candidate-template-links a,.workspace-main .candidate-template-create{
  font-size:11px!important
}
.workspace-main .field-confidence{font-size:10px!important}
.workspace-main .btn-small{font-size:12px}

.match-guide{display:flex;align-items:flex-start;gap:12px;padding:15px 16px;margin-bottom:16px;background:#fffcf5;border:1px solid #fedf89;border-radius:14px}
.match-guide-icon{width:34px;height:34px;border-radius:10px;background:#fef0c7;color:#b54708;display:grid;place-items:center;font-size:18px;font-weight:800;flex:0 0 auto}
.match-guide>div{display:flex;flex-direction:column;gap:4px}.match-guide strong{font-size:14px;color:#93370d}.match-guide span{font-size:13px;line-height:1.55;color:#7a2e0e}
.match-upload-card h2,.match-history-card h2{font-size:22px}.match-upload-card p{font-size:14px}.match-upload-card label span{font-size:12px}.match-upload-card input{font-size:13px}
.match-history-head>span{font-size:12px}.match-tor-list strong{font-size:14px}.match-tor-list span,.match-tor-list small{font-size:12px}

.tor-review-notice{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;margin-bottom:16px;border:1px solid #abefc6;background:#f6fef9;border-radius:15px}
.tor-review-notice.warn{border-color:#fedf89;background:#fffcf5}.tor-review-notice>div{display:flex;flex-direction:column;gap:4px}.tor-review-notice strong{font-size:14px}.tor-review-notice span{font-size:12px;line-height:1.55;color:#667085}.tor-review-notice>b{font-size:12px;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #e4e7ec}
.tor-review-form{display:grid;gap:14px}.tor-review-section{background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(16,24,40,.035)}
.tor-review-section.must{border-left:4px solid #b42318}.tor-review-section.preferred{border-left:4px solid #f79009}.tor-review-section.context{border-left:4px solid #667085}
.tor-review-section-head{margin-bottom:15px}.tor-review-section-head h2{font-size:19px;margin:7px 0 4px}.tor-review-section-head p{font-size:13px;color:#667085;margin:0;line-height:1.55}
.tor-group-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.05em}.tor-group-badge.must{background:#fef3f2;color:#b42318}.tor-group-badge.preferred{background:#fffaeb;color:#b54708}.tor-group-badge.context{background:#f2f4f7;color:#475467}
.tor-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tor-review-grid label{display:flex;flex-direction:column;gap:6px}.tor-review-grid label.wide{grid-column:span 2}.tor-review-grid label>span{font-size:12px;font-weight:650;color:#344054}.tor-review-grid input,.tor-review-grid textarea{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:10px 11px;font:inherit;font-size:13px;background:#fff}.tor-review-grid input{height:43px}.tor-review-grid textarea{min-height:74px;resize:vertical}
.tor-review-actions{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 17px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border:1px solid #d0d5dd;border-radius:15px;box-shadow:0 12px 34px rgba(16,24,40,.12);z-index:20}.tor-review-actions>div{display:flex;flex-direction:column;gap:3px}.tor-review-actions strong{font-size:14px}.tor-review-actions span{font-size:12px;color:#667085}

.tor-requirements-card.v241{padding:20px}.tor-req-head strong{font-size:16px}.tor-req-head span{font-size:12px}.match-run-id{font-size:11px}.tor-group-summary{display:grid;gap:12px}.tor-summary-group{padding:12px;border-radius:12px;background:#fafbfc;border:1px solid #eef2f6}.tor-chip-grid>span{font-size:12px;line-height:1.45;padding:8px 10px}
.match-result-head strong{font-size:17px}.match-result-head span{font-size:13px;line-height:1.5}
.match-results-list.v241{gap:14px}.match-candidate-card.v241{grid-template-columns:48px 84px minmax(0,1fr) auto;padding:19px;gap:15px}.match-rank{font-size:12px}.match-score{width:78px;height:66px;padding-top:15px}.match-score strong{font-size:26px}.match-score span{font-size:11px}.match-person-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.match-person h3{font-size:17px}.match-person>p{font-size:13px;margin-bottom:11px}.duplicate-collapsed{font-size:10px;padding:4px 7px;border-radius:999px;background:#eef4ff;color:#155eef;font-weight:700}
.match-breakdown{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.match-breakdown span{display:flex;gap:5px;align-items:center;padding:6px 8px;border-radius:8px;background:#f8fafc;border:1px solid #e4e7ec;font-size:11px}.match-breakdown b{font-weight:700;color:#344054}
.match-detail{border:1px solid #e4e7ec;border-radius:10px;background:#fff}.match-detail>summary{padding:9px 11px;cursor:pointer;font-size:12px;font-weight:650;color:#344054}.match-detail-grid{padding:0 10px 10px;display:grid;gap:6px}.match-detail-row{display:grid;grid-template-columns:22px 1fr auto;gap:8px;align-items:start;padding:8px;border-radius:8px;background:#f9fafb}.match-detail-row>span{font-weight:800}.match-detail-row>div{display:flex;flex-direction:column;gap:2px}.match-detail-row strong{font-size:10px;color:#667085}.match-detail-row p{font-size:12px;line-height:1.45;margin:0}.match-detail-row>b{font-size:11px}.match-detail-row.match{background:#f6fef9;color:#027a48}.match-detail-row.partial{background:#fffcf5;color:#b54708}.match-detail-row.missing{background:#fef3f2;color:#b42318}
.match-template-status b,.match-template-status em{font-size:11px}.match-actions .btn{font-size:12px}

@media(max-width:1000px){.tor-review-grid{grid-template-columns:1fr 1fr}.match-candidate-card.v241{grid-template-columns:40px 78px 1fr}.match-actions{grid-column:3}}
@media(max-width:720px){.tor-review-grid{grid-template-columns:1fr}.tor-review-grid label.wide{grid-column:auto}.tor-review-actions{position:static;flex-direction:column;align-items:stretch}.match-candidate-card.v241{grid-template-columns:1fr}.match-actions{grid-column:auto}.match-rank{display:none}}
