*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#292827;background:#f3f0eb}button,input,select{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#262524;color:#f7f3ee;padding:28px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand .mark{width:42px;height:42px;display:grid;place-items:center}.brand svg{width:100%;height:100%}.brand b,.brand em{display:block;font-style:normal;letter-spacing:.08em}.brand em{font-size:11px;color:#f05a22;margin-top:3px}.operator{font-size:10px;letter-spacing:.16em;color:#aaa49f;margin:26px 4px 12px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:8px;background:transparent;color:#cfc9c3;padding:12px}.sidebar nav button i{font-style:normal;color:#77716d;font-size:11px}.sidebar nav button.active,.sidebar nav button:hover{background:#343230;color:#fff}.side-note{margin-top:auto;border-top:1px solid #45413e;padding-top:18px}.side-note b{font-size:11px;letter-spacing:.12em;color:#f05a22}.side-note p{font-size:12px;line-height:1.5;color:#aaa49f}main{min-width:0}header{height:84px;background:#faf8f4;border-bottom:1px solid #ddd7d1;display:flex;align-items:center;justify-content:space-between;padding:0 38px}header small,.page-head small,.section-top small,.review-hero small,.panel>small{font-size:10px;letter-spacing:.15em;color:#8b837d;font-weight:700}h1,h2,h3,p{margin-top:0}header h1{font-size:21px;margin:4px 0 0}.status{display:flex;align-items:center;gap:8px;font-size:12px;color:#77706b}.status span{width:8px;height:8px;border-radius:50%;background:#bf8c45}.status.ok span{background:#60895a}.status.bad span{background:#b14d46}.content{padding:34px 38px 60px;max-width:1450px;margin:0 auto}.view{display:none}.view.active{display:block}.page-head,.review-hero,.section-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.page-head h2,.review-hero h2{font-size:29px;letter-spacing:-.03em;margin:4px 0 6px}.page-head p,.review-hero p{color:#746e69;margin:0}.panel{background:#fff;border:1px solid #ddd7d1;border-radius:12px;padding:22px;box-shadow:0 8px 28px rgba(45,41,38,.035)}.two-col{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.two-col>div{display:grid;gap:18px;align-content:start}.help{align-self:start}.help h3{font-size:24px;margin:6px 0 8px}.help>p{color:#716b66}.help-item{padding:15px 0;border-top:1px solid #ece7e1}.help-item b,.help-item span{display:block}.help-item span{font-size:13px;color:#776f69;margin-top:4px;line-height:1.5}label>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:#7d746e;margin-bottom:7px}input,select{width:100%;border:1px solid #d7d0c9;background:#fff;border-radius:8px;padding:12px 13px;color:#2d2a28}.drop{margin-top:16px;border:1px dashed #b9b0a8;background:#faf8f4;border-radius:10px;padding:36px 24px;text-align:center}.drop.drag{border-color:#f05a22;background:#fff7f2}.upload-icon{width:42px;height:42px;border-radius:50%;background:#2b2927;color:white;display:grid;place-items:center;margin:0 auto 13px;font-size:22px}.drop h3{margin:0 0 7px}.drop p{font-size:13px;color:#77706b;max-width:580px;margin:0 auto 15px;line-height:1.5}.drop button,.secondary,.primary{border-radius:8px;padding:10px 14px;border:1px solid #cfc6be;background:#fff;color:#2c2927;font-weight:700}.primary{background:#2d2a28;color:white;border-color:#2d2a28}.primary:hover{background:#171615}.primary:disabled{opacity:.4;cursor:not-allowed}.green-btn{background:#5f8059;border-color:#5f8059}.secondary:hover{background:#f7f3ef}.full{width:100%}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:17px}.file-card{margin-top:14px;border:1px solid #ded8d2;border-radius:8px;padding:14px;display:flex;justify-content:space-between;align-items:center}.file-card span{display:block;color:#857e78;font-size:12px;margin-top:4px}.file-card em{font-size:10px;font-style:normal;font-weight:800;letter-spacing:.12em;color:#5f8059}.privacy{margin-top:16px;border-left:3px solid #f05a22;background:#faf6f2;padding:13px 15px;border-radius:5px}.privacy b,.privacy span{display:block}.privacy span{font-size:12px;color:#746e69;line-height:1.45;margin-top:3px}.privacy.green{border-left-color:#64875f;background:#f3f8f2}.progress-line{margin-top:12px;font-size:12px;color:#766e68}.stat-grid,.decision-grid,.review-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat-grid>div,.decision-grid>div,.review-stats>div{border:1px solid #e6e0da;border-radius:8px;padding:14px;background:#fbfaf8}.stat-grid strong,.decision-grid strong,.review-stats strong{display:block;font-size:23px}.stat-grid span,.decision-grid span,.review-stats span{display:block;color:#807871;font-size:11px;margin-top:3px}.analysis-progress{margin:18px 0}.progress-top{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:7px}.bar{height:8px;background:#e9e3dc;border-radius:20px;overflow:hidden}.bar i{display:block;width:0;height:100%;background:#f05a22;transition:width .25s ease}.analysis-progress small{display:block;color:#7a736d;margin-top:7px}.table-head,.import-row{display:grid;grid-template-columns:1.1fr 1.5fr .75fr .8fr 90px;gap:14px;align-items:center}.table-head{font-size:10px;color:#8a827c;text-transform:uppercase;letter-spacing:.1em;padding:0 10px 10px}.import-row{border-top:1px solid #eee9e4;padding:14px 10px;font-size:13px}.import-row:first-child{border-top:0}.import-row .subtle{color:#817973;font-size:12px}.pill,.mode-badge{display:inline-flex;align-items:center;width:max-content;border:1px solid #d7d0c9;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800;letter-spacing:.07em}.pill.review,.mode-badge{background:#fff7ef;border-color:#e7c2a5;color:#a4542c}.pill.published{background:#eef6ed;border-color:#bed4bb;color:#52744d}.empty,.empty-state{text-align:center;color:#837b75;padding:28px}.auth-gate{max-width:480px;margin:80px auto}.auth-card{background:#fff;border:1px solid #ddd7d1;border-radius:12px;padding:28px}.auth-card h2{font-size:28px;margin:6px 0}.auth-card p{color:#77706b}.auth-message{min-height:22px;font-size:12px;color:#aa4d42;margin-top:10px}.text-btn{border:0;background:transparent;padding:0;color:#6c655f;text-decoration:underline;margin-top:12px}.review-actions{display:flex;gap:10px;align-items:center}.analysis-note{display:flex;gap:12px;padding:14px 16px;background:#2c2a28;color:#fff;border-radius:8px;margin-bottom:18px}.analysis-note span{color:#cec8c2;font-size:12px;line-height:1.45}.review-tabs{display:flex;gap:5px;border-bottom:1px solid #ddd7d1;margin-top:22px}.review-tabs button{border:0;background:transparent;padding:12px 14px;color:#766f69;font-weight:700}.review-tabs button.active{color:#f05a22;border-bottom:2px solid #f05a22}.review-tab{display:none;padding-top:15px}.review-tab.active{display:block}.candidate{border:1px solid #e1dad4;background:#fff;border-radius:10px;padding:17px;margin-bottom:10px}.candidate-head{display:flex;justify-content:space-between;gap:15px}.candidate h3{margin:0 0 6px}.candidate p{color:#6e6762;font-size:13px;line-height:1.5}.candidate .meta{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.candidate .buttons{display:flex;gap:8px;margin-top:12px}.list-row{padding:13px 2px;border-top:1px solid #eee9e4}.list-row:first-child{border-top:0}.list-row b{display:block}.list-row span{font-size:12px;color:#7c746f}.account-card{display:flex;align-items:center;justify-content:space-between}.account-card h3{margin:4px 0 0}.toast,#toast{position:fixed;right:24px;bottom:24px;background:#2b2927;color:#fff;padding:10px 14px;border-radius:8px;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.toast.show,#toast.show{opacity:1;transform:none}@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.sidebar nav{grid-template-columns:repeat(4,1fr)}.side-note{display:none}.two-col{grid-template-columns:1fr}.content{padding:24px 18px}.table-head{display:none}.import-row{grid-template-columns:1fr}.stat-grid,.decision-grid,.review-stats{grid-template-columns:repeat(2,1fr)}header{padding:0 18px}}


/* v6 Guided Operator Flow */
.guided-shell{max-width:980px;margin:0 auto}.wizard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.wizard-head h2{font-size:32px;letter-spacing:-.035em;margin:5px 0 7px}.wizard-head p{max-width:700px;color:#746e69;line-height:1.55}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 18px}.step{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #ded8d2;background:#ece8e3;color:#8a827b;border-radius:9px}.step span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#d7d0c9;color:#746e69;font-size:11px;font-weight:800}.step b{font-size:12px}.step.active{background:#2c2a28;color:#fff;border-color:#2c2a28}.step.active span{background:#f05a22;color:#fff}.step.done{background:#f2f7f1;color:#4d7149;border-color:#c8d9c5}.step.done span{background:#64875f;color:#fff}.wizard-card{background:#fff;border:1px solid #ddd7d1;border-radius:14px;padding:28px;box-shadow:0 12px 38px rgba(45,41,38,.045)}.wizard-title{margin-bottom:20px}.wizard-title .eyebrow{display:block;font-size:10px;letter-spacing:.15em;color:#f05a22;font-weight:800;margin-bottom:6px}.wizard-title h3{font-size:25px;margin:0 0 7px;letter-spacing:-.02em}.wizard-title p{color:#746e69;line-height:1.5;max-width:690px}.guided-drop{padding:44px 24px;margin-top:16px}.guided-drop h3{font-size:20px}.guided-drop button{padding:11px 18px}.inline-status{display:flex;align-items:flex-start;gap:10px;margin-top:18px;padding:13px 14px;border:1px solid #e4ded7;background:#faf8f5;border-radius:8px;color:#6f6862;font-size:13px}.inline-status .dot{width:9px;height:9px;border-radius:50%;background:#b9afa8;margin-top:5px;flex:0 0 auto}.process{display:grid;gap:10px}.process-row{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;border:1px solid #e4ded8;border-radius:9px;padding:14px 15px}.process-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#eee9e4;color:#766f69;font-size:11px;font-weight:800}.process-row b,.process-row small{display:block}.process-row small{color:#807870;margin-top:3px;line-height:1.4}.process-row em{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.05em;color:#8a827b}.process-row.running{border-color:#efc2a4;background:#fff9f4}.process-row.running .process-icon{background:#f05a22;color:#fff}.process-row.running em{color:#b2532e}.process-row.done{border-color:#c9dcc6;background:#f4f9f3}.process-row.done .process-icon{background:#64875f;color:#fff}.process-row.done em{color:#52744d}.process-row.error{border-color:#e2b7b2;background:#fff5f4}.process-row.error .process-icon{background:#aa4d42;color:#fff}.process-row.error em{color:#aa4d42}.check-summary{margin-top:22px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.summary-grid>div{background:#f8f6f3;border:1px solid #e5dfd9;border-radius:9px;padding:16px}.summary-grid strong{display:block;font-size:26px}.summary-grid span{font-size:11px;color:#7d756f}.ready-box{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:16px;padding:18px;border-radius:10px;background:#2c2a28;color:#fff}.ready-box b,.ready-box span{display:block}.ready-box span{font-size:13px;color:#d5cec7;margin-top:3px}.primary.big{padding:13px 18px;white-space:nowrap;background:#f05a22;border-color:#f05a22}.details{margin-top:16px;border-top:1px solid #ece6df;padding-top:14px}.details summary{cursor:pointer;color:#6e6762;font-size:12px;font-weight:700}.details-body{padding:14px 0 0;color:#756e68;font-size:12px}.review-intro{display:flex;gap:10px;padding:15px 16px;border-left:3px solid #64875f;background:#f4f8f3;border-radius:6px;margin-bottom:18px}.review-intro b,.review-intro span{display:block}.review-intro span{font-size:12px;color:#6f6862;line-height:1.45}.review-steps{margin-bottom:20px}#view-new{display:none!important}.sidebar nav button[data-view="new"]{display:none}.sidebar nav button[data-view="imports"] i{display:none}.sidebar nav button[data-view="imports"]::after{content:"New Import"}.sidebar nav button[data-view="review"] i,.sidebar nav button[data-view="account"] i{display:none}.sidebar nav button[data-view="imports"]{font-size:0}.sidebar nav button[data-view="imports"]::after{font-size:14px}.sidebar nav button[data-view="review"]{font-size:0}.sidebar nav button[data-view="review"]::after{content:"Review";font-size:14px}.sidebar nav button[data-view="account"]{font-size:0}.sidebar nav button[data-view="account"]::after{content:"Account";font-size:14px}.sidebar .side-note p{margin-bottom:0}@media(max-width:800px){.steps{grid-template-columns:1fr 1fr}.summary-grid{grid-template-columns:1fr 1fr}.ready-box{align-items:flex-start;flex-direction:column}.wizard-head{flex-direction:column}.wizard-card{padding:20px}}

.error-details{margin-top:16px;border:1px solid #e6c4bf;background:#fff8f7;border-radius:8px;padding:12px 14px}
.error-details pre{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#7b4944}

.retry-row{margin-top:14px;display:flex;justify-content:flex-start}
.retry-row[hidden]{display:none!important}

/* BG1.5 persistent navigation + review management */
.sidebar nav button.nav-main,
.sidebar nav #currentReviewNav{
  display:flex!important;font-size:14px!important;
}
.sidebar nav button.nav-main::after,
.sidebar nav #currentReviewNav::after{content:none!important}
.sidebar nav button.nav-main i{display:none!important}

.table-head.manage,.import-row.manage{
  grid-template-columns:1.05fr 1.6fr .85fr .8fr 170px;
}
.row-actions{display:flex;align-items:center;gap:8px;justify-content:flex-start}
.danger-btn,.danger-link{
  border-radius:8px;padding:10px 14px;border:1px solid #d9aaa4;
  background:#fff;color:#a3443a;font-weight:700;
}
.danger-link{padding:8px 10px}
.danger-btn:hover,.danger-link:hover{background:#fff4f2}
.danger-btn:disabled,.danger-link:disabled{opacity:.42;cursor:not-allowed}

.review-actions{flex-wrap:wrap;justify-content:flex-end}
.review-state{
  display:flex;gap:8px;align-items:flex-start;margin-bottom:14px;padding:14px 16px;
  border:1px solid #e2ddd7;border-left:3px solid #8a827b;border-radius:8px;background:#fbfaf8;
}
.review-state b,.review-state span{display:block}
.review-state span{font-size:12px;color:#706963;line-height:1.5;padding-top:1px}
.review-state.running{border-left-color:#f05a22;background:#fff8f3}
.review-state.ready,.review-state.published{border-left-color:#64875f;background:#f3f8f2}
.review-state.attention{border-left-color:#ae4d43;background:#fff5f4}
.review-state.pending{border-left-color:#b08a4a;background:#fffaf1}

.mode-badge.lifecycle-running{background:#fff5ec;border-color:#efc2a4;color:#a4542c}
.mode-badge.lifecycle-ready,.mode-badge.lifecycle-published{background:#eef6ed;border-color:#bed4bb;color:#52744d}
.mode-badge.lifecycle-attention{background:#fff3f1;border-color:#ddb0aa;color:#a3443a}
.mode-badge.lifecycle-pending{background:#fff9ed;border-color:#dfc898;color:#8a6a2d}

@media(max-width:900px){
  .table-head.manage{display:none}
  .import-row.manage{grid-template-columns:1fr}
  .row-actions{justify-content:flex-start}
  .review-actions{justify-content:flex-start}
}


/* =====================================================================
   SPROCKET RECLAIM BG1.6 — OPERATOR CONSOLE
   Visual layer only. Workflow/state selectors remain unchanged.
   ===================================================================== */

:root{
  --ink:#171715;
  --ink-2:#242220;
  --ink-3:#33302d;
  --paper:#f4f1ec;
  --surface:#fffdfa;
  --surface-2:#f8f5f0;
  --surface-3:#efeae4;
  --line:#ded8d0;
  --line-strong:#cfc6bc;
  --muted:#766e67;
  --muted-2:#9b928a;
  --orange:#f25a22;
  --orange-2:#ff6c30;
  --orange-soft:#fff0e8;
  --green:#5d855d;
  --green-soft:#eff6ee;
  --red:#ad4b40;
  --red-soft:#fff2f0;
  --amber:#947039;
  --amber-soft:#fff8e9;
  --shadow-sm:0 1px 2px rgba(31,27,24,.04),0 8px 28px rgba(31,27,24,.035);
  --shadow-md:0 18px 50px rgba(31,27,24,.08);
  --radius:16px;
  --radius-sm:10px;
  --sidebar:252px;
  --header-h:84px;
}

*{box-sizing:border-box}
html{background:var(--paper)}
body{
  margin:0;
  background:
    radial-gradient(circle at 78% -10%,rgba(242,90,34,.055),transparent 32rem),
    linear-gradient(180deg,#f7f4ef 0,#f3f0eb 100%);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,select{font:inherit}
button{transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}
button:not(:disabled):active{transform:translateY(1px)}

.shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) 1fr}
.sidebar{
  position:fixed;inset:0 auto 0 0;width:var(--sidebar);
  display:flex;flex-direction:column;
  padding:22px 16px 18px;
  background:
    radial-gradient(circle at 20% 0,rgba(242,90,34,.11),transparent 16rem),
    #1d1c1b;
  border-right:1px solid rgba(255,255,255,.06);
  z-index:20;
}
.sidebar .brand{
  display:flex;align-items:center;gap:11px;
  padding:4px 8px 22px;
  color:#fff;text-decoration:none;
}
.sidebar .brand .mark{
  width:36px;height:36px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.18);border-radius:11px;
  background:rgba(255,255,255,.04);
}
.sidebar .brand svg{width:25px;height:25px}
.sidebar .brand b{
  display:block;font-size:13px;letter-spacing:.12em;line-height:1.15;
}
.sidebar .brand em{
  display:block;margin-top:4px;color:var(--orange);
  font-style:normal;font-size:9px;font-weight:900;letter-spacing:.19em;
}
.sidebar .operator{
  margin:2px 8px 12px;color:#837d77;
  font-size:9px;font-weight:800;letter-spacing:.17em;
}
.sidebar nav{display:grid;gap:5px}
.sidebar nav button.nav-main,
.sidebar nav #currentReviewNav{
  position:relative;display:flex!important;align-items:center;
  width:100%;min-height:46px;padding:0 12px 0 42px;
  border:1px solid transparent;border-radius:11px;
  background:transparent;color:#bdb7b1;
  text-align:left;font-size:13px!important;font-weight:700;
  cursor:pointer;
}
.sidebar nav button.nav-main::before,
.sidebar nav #currentReviewNav::before{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  display:grid;place-items:center;width:20px;height:20px;
  border:1px solid #4a4642;border-radius:6px;
  color:#9b938c;font-size:12px;font-weight:900;
}
.sidebar nav button[data-view="imports"]::before{content:"+"}
.sidebar nav button[data-view="history"]::before{content:"▦";font-size:10px}
.sidebar nav #currentReviewNav::before{content:"✓";font-size:10px}
.sidebar nav button[data-view="account"]::before{content:"○";font-size:14px}
.sidebar nav button.nav-main:hover,
.sidebar nav #currentReviewNav:hover{
  color:#fff;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.055);
}
.sidebar nav button.active{
  color:#fff;background:#302d2a;border-color:#3b3734;
  box-shadow:inset 3px 0 0 var(--orange);
}
.sidebar nav button.active::before{
  color:#fff;background:var(--orange);border-color:var(--orange);
}
.sidebar .side-note{
  margin-top:auto;padding:15px 10px 2px;border-top:1px solid #35322f;
}
.sidebar .side-note b{
  color:var(--orange);font-size:8px;letter-spacing:.12em;
}
.sidebar .side-note p{
  margin:7px 0 0;color:#756e68;font-size:10px;line-height:1.45;
}

main{grid-column:2;min-width:0}
header{
  position:sticky;top:0;z-index:12;height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:0 34px;
  background:rgba(248,246,242,.88);
  border-bottom:1px solid rgba(207,198,188,.78);
  backdrop-filter:blur(18px);
}
header small{
  display:block;margin-bottom:4px;
  color:#948b83;font-size:8px;font-weight:900;letter-spacing:.17em;
}
header h1{margin:0;font-size:19px;letter-spacing:-.025em}
.status{
  display:inline-flex;align-items:center;gap:8px;
  min-height:34px;padding:0 12px;
  border:1px solid var(--line);border-radius:999px;
  background:rgba(255,255,255,.65);
  color:#6c655f;font-size:11px;font-weight:700;
}
.status span{width:7px;height:7px;border-radius:999px;background:#b7afa7}
.status.ok span{background:var(--green);box-shadow:0 0 0 4px rgba(93,133,93,.12)}
.status.bad span{background:var(--red)}

.content{padding:34px 38px 64px}
.view{display:none}
.view.active{display:block}
.guided-shell{max-width:1180px!important;margin:0 auto}

.section-chip,.eyebrow{
  display:inline-flex!important;align-items:center;gap:7px;
  margin:0 0 9px!important;padding:6px 9px!important;
  border:1px solid rgba(242,90,34,.22);border-radius:999px;
  background:var(--orange-soft);color:#b6451c!important;
  font-size:8px!important;font-weight:900!important;letter-spacing:.15em!important;
}
.section-chip::before,.eyebrow::before{
  content:"";width:5px;height:5px;border-radius:50%;background:var(--orange);
}

.wizard-head,.page-head,.review-hero{
  display:flex;align-items:flex-start;justify-content:space-between;gap:28px;
}
.wizard-head{margin-bottom:22px}
.wizard-head .hero-copy{max-width:760px}
.wizard-head h2,.page-head h2,.review-hero h2{
  margin:0;color:var(--ink);font-size:clamp(31px,3.1vw,48px);line-height:1.02;
  letter-spacing:-.048em;font-weight:780;
}
.wizard-head p,.page-head p,.review-hero p{
  margin:13px 0 0;max-width:760px;color:var(--muted);
  font-size:15px;line-height:1.55;
}
.hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.hero-badges span{
  display:inline-flex;align-items:center;gap:6px;padding:7px 10px;
  border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.52);
  color:#655e58;font-size:10px;font-weight:750;
}
.hero-badges span::before{content:"✓";color:var(--green);font-weight:950}
.history-shortcut{margin-top:4px}

.primary,.secondary,.green-btn,.text-btn,.drop button{
  border-radius:10px!important;font-weight:780!important;
}
.primary{
  border:1px solid var(--orange)!important;background:var(--orange)!important;color:#fff!important;
  box-shadow:0 8px 22px rgba(242,90,34,.16);
}
.primary:hover:not(:disabled){background:var(--orange-2)!important;border-color:var(--orange-2)!important;box-shadow:0 10px 26px rgba(242,90,34,.22)}
.secondary{
  border:1px solid var(--line-strong)!important;background:rgba(255,255,255,.76)!important;color:var(--ink-2)!important;
}
.secondary:hover:not(:disabled){background:#fff!important;border-color:#bfb5ab!important;box-shadow:var(--shadow-sm)}
.green-btn{
  background:var(--green)!important;border-color:var(--green)!important;color:#fff!important;
  box-shadow:0 8px 22px rgba(93,133,93,.16)!important;
}

.steps{
  position:relative;display:grid!important;grid-template-columns:repeat(4,1fr)!important;
  gap:8px!important;margin:0 0 18px!important;padding:5px!important;
  border:1px solid var(--line);border-radius:14px;background:#ebe6e0;
}
.step{
  position:relative;min-height:50px!important;padding:0 13px!important;
  display:flex!important;align-items:center!important;gap:10px!important;
  border:1px solid transparent!important;border-radius:10px!important;
  background:transparent!important;color:#898078!important;
}
.step span{
  display:grid!important;place-items:center!important;width:25px!important;height:25px!important;
  border-radius:8px!important;background:#d7d0c9!important;color:#736b64!important;
  font-size:10px!important;font-weight:900!important;
}
.step b{font-size:11px!important}
.step.done{color:#52724f!important;background:#f3f8f1!important;border-color:#cfdecc!important}
.step.done span{background:#64875f!important;color:#fff!important}
.step.active{
  color:#fff!important;background:var(--ink-2)!important;border-color:var(--ink-2)!important;
  box-shadow:0 8px 18px rgba(31,29,27,.15);
}
.step.active span{background:var(--orange)!important;color:#fff!important}

.wizard-card,.panel,.candidate,.review-tab>.panel{
  border:1px solid var(--line)!important;border-radius:var(--radius)!important;
  background:rgba(255,253,250,.92)!important;
  box-shadow:var(--shadow-sm)!important;
}
.wizard-card{padding:30px!important}
.wizard-title{display:block;margin-bottom:22px!important}
.wizard-title h3{
  margin:0!important;font-size:25px!important;letter-spacing:-.035em!important;color:var(--ink)!important;
}
.wizard-title p{margin:8px 0 0!important;color:var(--muted)!important;font-size:13px!important;line-height:1.55!important}

label>span{
  display:block;margin:0 0 7px;color:#655e58;
  font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;
}
select,input{
  width:100%;min-height:48px;padding:0 13px;
  border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--ink);
  outline:none;box-shadow:0 1px 0 rgba(255,255,255,.8);
}
select:focus,input:focus{border-color:rgba(242,90,34,.7);box-shadow:0 0 0 3px rgba(242,90,34,.09)}

.drop.guided-drop{
  position:relative;min-height:250px!important;margin-top:16px!important;padding:40px 22px!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  border:1.5px dashed #cfc6bc!important;border-radius:14px!important;
  background:
    linear-gradient(135deg,rgba(242,90,34,.025),transparent 45%),
    #faf8f5!important;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.drop.guided-drop:hover,.drop.guided-drop.drag{
  border-color:var(--orange)!important;background:#fff8f3!important;transform:translateY(-1px);
}
.upload-icon{
  width:52px!important;height:52px!important;display:grid!important;place-items:center!important;
  margin-bottom:14px!important;border-radius:14px!important;
  background:var(--ink-2)!important;color:#fff!important;font-size:23px!important;
  box-shadow:0 10px 24px rgba(31,29,27,.14);
}
.guided-drop h3{margin:0!important;font-size:20px!important;letter-spacing:-.025em!important}
.guided-drop p{margin:7px 0 16px!important;color:var(--muted)!important;font-size:12px!important}
.guided-drop button{
  min-height:40px;padding:0 15px;border:1px solid var(--line-strong)!important;background:#fff!important;color:var(--ink)!important;
}
.file-card{
  margin-top:12px!important;padding:14px 15px!important;
  border:1px solid #cfdccc!important;border-radius:10px!important;background:#f4f8f2!important;
}
.file-card b,.file-card span{display:block}
.file-card span{margin-top:2px;color:#71806d;font-size:10px}
.file-card em{
  padding:5px 7px;border-radius:6px;background:#dfeada;color:#557251;
  font-size:8px!important;font-style:normal!important;font-weight:900!important;letter-spacing:.09em!important;
}

.inline-status{
  margin-top:14px!important;padding:12px 13px!important;
  border:1px solid var(--line)!important;border-radius:10px!important;background:#f8f5f1!important;
  color:#6e665f!important;font-size:11px!important;
}

.process{display:grid!important;gap:9px!important}
.process-row{
  min-height:70px!important;padding:13px 15px!important;
  display:grid!important;grid-template-columns:38px 1fr auto!important;align-items:center!important;gap:12px!important;
  border:1px solid var(--line)!important;border-radius:12px!important;background:#fff!important;
}
.process-icon{
  width:32px!important;height:32px!important;border-radius:9px!important;
  background:#efebe7!important;color:#776f68!important;
}
.process-row b{font-size:12px!important}
.process-row small{margin-top:3px!important;color:var(--muted)!important;font-size:10px!important}
.process-row em{
  padding:5px 7px;border-radius:999px;background:#f2eeea;color:#857c74;
  font-size:8px!important;letter-spacing:.07em!important;
}
.process-row.running{border-color:#efc1a7!important;background:#fff9f5!important}
.process-row.running .process-icon{background:var(--orange)!important;color:#fff!important}
.process-row.done{border-color:#c9dcc6!important;background:#f3f8f2!important}
.process-row.done .process-icon{background:var(--green)!important;color:#fff!important}
.process-row.error{border-color:#e3bbb6!important;background:var(--red-soft)!important}
.process-row.error .process-icon{background:var(--red)!important;color:#fff!important}

.analysis-progress{
  margin-top:14px!important;padding:15px!important;border:1px solid var(--line)!important;
  border-radius:12px!important;background:#f9f7f4!important;
}
.progress-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px}
.progress-top b{font-size:11px!important}
.progress-top span{color:var(--muted)!important;font-size:10px!important}
.bar,.review-progress-track{
  height:7px!important;margin-top:10px!important;border-radius:999px!important;background:#e5dfd8!important;overflow:hidden!important;
}
.bar i,.review-progress-track i{
  display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--orange),#ff7b43)!important;
  transition:width .25s ease;
}

.summary-grid,.review-stats,.history-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;
}
.summary-grid>div,.review-stats>div,.history-summary>div{
  min-height:92px;padding:16px;
  border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.7);
}
.summary-grid strong,.review-stats strong,.history-summary strong{
  display:block;color:var(--ink);font-size:27px;letter-spacing:-.045em;line-height:1;
}
.summary-grid span,.review-stats span,.history-summary span{
  display:block;margin-top:8px;color:var(--muted);font-size:10px;font-weight:700;
}
.ready-box{
  margin-top:12px!important;padding:17px 18px!important;border-radius:12px!important;
  background:linear-gradient(135deg,#262321,#1c1b1a)!important;color:#fff!important;
  box-shadow:0 12px 30px rgba(30,28,26,.13);
}
.ready-box b{font-size:14px!important}
.ready-box span{margin-top:4px!important;color:#c6beb7!important;font-size:11px!important}
.primary.big{min-height:48px!important;padding:0 18px!important}

.details{
  margin-top:15px!important;padding-top:13px!important;border-top:1px solid #e8e2db!important;
}
.details summary{
  color:#6d655f!important;font-size:10px!important;font-weight:800!important;
  cursor:pointer;user-select:none;
}
.details-body{padding-top:12px!important;color:var(--muted)!important;font-size:10px!important;line-height:1.6!important}
.error-details{border:1px solid #e2bbb5!important;background:#fff6f4!important;border-radius:10px!important;padding:12px!important}
.error-details pre{font-size:10px!important}

.page-head{max-width:1180px;margin:0 auto 22px}
.page-head h2{font-size:38px}
.page-head p{font-size:13px}
.history-summary{max-width:1180px;margin:0 auto 12px}
.history-panel{max-width:1180px;margin:0 auto;padding:0!important;overflow:hidden!important}
.table-head.manage,.import-row.manage{
  display:grid!important;grid-template-columns:1.05fr 1.7fr .82fr .8fr 160px!important;
  align-items:center;gap:14px;
}
.table-head{
  min-height:42px;padding:0 18px!important;background:#f1ece6!important;border-bottom:1px solid var(--line)!important;
}
.table-head span{
  color:#91877f!important;font-size:8px!important;font-weight:900!important;letter-spacing:.09em!important;text-transform:uppercase;
}
.import-row{
  min-height:76px;padding:12px 18px!important;border-bottom:1px solid #ece7e1!important;background:#fffdfa;
  transition:background .12s ease;
}
.import-row:last-child{border-bottom:0!important}
.import-row:hover{background:#fff!important}
.import-row b{display:block;color:var(--ink);font-size:11px!important;line-height:1.35}
.import-row .subtle{display:block;margin-top:4px;color:#8a8179;font-size:9px!important;line-height:1.4}
.row-actions{display:flex;align-items:center;gap:6px}
.row-actions button{min-height:34px;padding:0 11px!important;font-size:9px!important}
.pill,.mode-badge{
  display:inline-flex!important;align-items:center!important;min-height:25px!important;padding:0 8px!important;
  border:1px solid var(--line)!important;border-radius:999px!important;background:#f7f3ef!important;
  color:#736a63!important;font-size:8px!important;font-weight:900!important;letter-spacing:.055em!important;text-transform:uppercase;
}
.pill.analyzing{border-color:#efc1a7!important;background:#fff2e9!important;color:#a64d27!important}
.pill.review,.pill.ready-for-review{border-color:#c8ddc6!important;background:#eef7ed!important;color:#557451!important}
.pill.published{border-color:#c8ddc6!important;background:#e9f4e8!important;color:#557451!important}
.pill.analysis-failed,.pill.needs-attention,.pill.cost-limit{border-color:#e2b9b3!important;background:#fff0ee!important;color:#a3453a!important}

.review-steps{max-width:1180px;margin:0 auto 16px!important}
.review-hero{
  max-width:1180px;margin:0 auto 12px;padding:24px 26px;
  border:1px solid var(--line);border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(249,246,241,.95));
  box-shadow:var(--shadow-sm);
}
.review-hero h2{font-size:32px}
.review-hero p{margin-top:7px;font-size:11px}
.review-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.review-actions button{min-height:36px;padding:0 11px!important;font-size:9px!important}

.review-state{
  max-width:1180px;margin:0 auto 12px!important;padding:16px 18px!important;
  display:grid!important;grid-template-columns:1fr minmax(220px,330px);align-items:center;gap:18px!important;
  border:1px solid var(--line)!important;border-left:4px solid #9a9188!important;
  border-radius:12px!important;background:#fffdfa!important;
}
.review-state-copy b{display:block;font-size:12px}
.review-state-copy span{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.5}
.review-state.running{border-left-color:var(--orange)!important;background:#fff8f3!important}
.review-state.ready,.review-state.published{border-left-color:var(--green)!important;background:#f3f8f2!important}
.review-state.attention{border-left-color:var(--red)!important;background:var(--red-soft)!important}
.review-state.pending{border-left-color:var(--amber)!important;background:var(--amber-soft)!important}
.review-progress-top{display:flex;align-items:end;justify-content:space-between}
.review-progress-top strong{font-size:19px;letter-spacing:-.04em}
.review-progress-top span{font-size:9px;color:var(--muted)}

.review-intro{
  max-width:1180px;margin:0 auto 12px!important;padding:13px 15px!important;
  border:1px solid #d5e2d2!important;border-left:3px solid var(--green)!important;
  border-radius:10px!important;background:#f4f8f2!important;
}
.review-intro b{font-size:11px!important}
.review-intro span{font-size:9px!important}
.review-stats{max-width:1180px;margin:0 auto 12px}
.review-tabs{
  max-width:1180px;margin:0 auto 0!important;padding:5px!important;
  display:flex!important;gap:5px!important;border:1px solid var(--line)!important;border-radius:12px 12px 0 0!important;
  background:#ece7e1!important;
}
.review-tabs button{
  min-height:36px;padding:0 13px!important;border:0!important;border-radius:8px!important;
  background:transparent!important;color:#746c65!important;font-size:10px!important;font-weight:800!important;
}
.review-tabs button.active{background:#fff!important;color:var(--ink)!important;box-shadow:0 1px 4px rgba(31,27,24,.08)}
.review-tab{
  max-width:1180px;margin:0 auto!important;padding:14px!important;
  border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);
  background:rgba(255,253,250,.86);
}
.candidate{
  margin:0 0 10px!important;padding:18px!important;
  background:#fff!important;
}
.candidate:last-child{margin-bottom:0!important}
.candidate-head h3{margin:0!important;font-size:15px!important;letter-spacing:-.02em}
.candidate p{color:#645d57!important;font-size:10px!important;line-height:1.6!important}
.candidate .buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.candidate .buttons button{min-height:35px;padding:0 10px!important;font-size:9px!important}

.list-row{
  padding:13px 4px!important;border-bottom:1px solid #eee8e2!important;
}
.list-row:last-child{border-bottom:0!important}
.list-row b{display:block;font-size:11px!important}
.list-row span{display:block;margin-top:3px;color:#8b827a;font-size:9px!important}

.danger-btn,.danger-link{
  border:1px solid #e0b5af!important;border-radius:9px!important;background:#fff7f5!important;color:var(--red)!important;
  font-weight:800!important;
}
.danger-btn:hover:not(:disabled),.danger-link:hover:not(:disabled){background:#ffefec!important;border-color:#cf9189!important}
.danger-btn:disabled,.danger-link:disabled{opacity:.38!important;cursor:not-allowed!important}

.account-card{max-width:720px!important;margin:0 auto!important;padding:24px!important}
.auth-gate{min-height:calc(100vh - var(--header-h) - 70px);display:grid;place-items:center}
.auth-card{
  width:min(480px,100%);padding:30px!important;border:1px solid var(--line)!important;border-radius:18px!important;
  background:rgba(255,253,250,.95)!important;box-shadow:var(--shadow-md)!important;
}
.auth-card h2{margin:0 0 8px!important;font-size:30px!important;letter-spacing:-.04em!important}
.auth-card p{color:var(--muted)!important;font-size:12px!important;line-height:1.55!important}
.full{width:100%;min-height:46px;margin-top:12px}

#toast{
  position:fixed!important;right:24px!important;bottom:24px!important;z-index:100!important;
  max-width:380px;padding:11px 14px!important;border:1px solid #3f3a36!important;border-radius:10px!important;
  background:#24211f!important;color:#fff!important;
  font-size:10px!important;font-weight:750!important;box-shadow:0 15px 35px rgba(20,18,17,.2)!important;
}

.empty-state{text-align:center;padding:54px 24px!important}
.empty-state h2{font-size:28px!important;letter-spacing:-.04em!important}

@media(max-width:1020px){
  :root{--sidebar:210px}
  .content{padding:26px 24px 50px}
  header{padding:0 24px}
  .summary-grid,.review-stats,.history-summary{grid-template-columns:repeat(2,1fr)}
  .table-head.manage{display:none!important}
  .import-row.manage{grid-template-columns:1fr 1fr!important}
  .import-row.manage>div:nth-child(3),.import-row.manage>div:nth-child(4),.import-row.manage>div:nth-child(5){margin-top:4px}
  .review-state{grid-template-columns:1fr}
}
@media(max-width:760px){
  :root{--sidebar:0px;--header-h:72px}
  .shell{display:block}
  .sidebar{
    position:fixed;left:0;right:0;top:auto;bottom:0;width:100%;height:66px;
    padding:7px 8px;background:#1d1c1b;border-right:0;border-top:1px solid #36322f;
    display:block;
  }
  .sidebar .brand,.sidebar .operator,.sidebar .side-note{display:none}
  .sidebar nav{height:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
  .sidebar nav button.nav-main,.sidebar nav #currentReviewNav{
    min-height:50px;padding:27px 4px 4px!important;justify-content:center!important;text-align:center!important;
    font-size:8px!important;border-radius:8px!important;
  }
  .sidebar nav button.nav-main::before,.sidebar nav #currentReviewNav::before{
    left:50%;top:7px;transform:translateX(-50%);
  }
  main{padding-bottom:70px}
  header{padding:0 16px}
  header small{display:none}
  .status{font-size:0;padding:0 10px}
  .content{padding:20px 14px 34px}
  .wizard-head,.page-head,.review-hero{flex-direction:column}
  .wizard-head h2,.page-head h2{font-size:34px}
  .review-hero h2{font-size:28px}
  .steps{grid-template-columns:repeat(4,1fr)!important}
  .step{min-height:46px!important;padding:0 7px!important;justify-content:center}
  .step b{display:none}
  .wizard-card{padding:20px!important}
  .summary-grid,.review-stats,.history-summary{grid-template-columns:repeat(2,1fr)}
  .ready-box{flex-direction:column!important;align-items:stretch!important}
  .ready-box .primary.big{width:100%}
  .review-actions{justify-content:flex-start}
  .review-state{padding:14px!important}
  .review-tabs{overflow-x:auto}
  .review-tabs button{white-space:nowrap}
  .import-row.manage{grid-template-columns:1fr!important}
  .row-actions{margin-top:8px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* BG1.7 — QA password authentication */
.auth-form{display:grid;gap:14px;margin-top:22px}
.password-wrap{position:relative}
.password-wrap input{padding-right:72px}
.password-toggle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  min-width:50px;height:32px;padding:0 9px;
  border:1px solid var(--line);border-radius:8px;
  background:#f7f3ef;color:#635c56;
  font-size:9px;font-weight:800;cursor:pointer;
}
.password-toggle:hover{background:#fff}
.auth-status{
  margin-top:12px;padding:11px 12px;
  border:1px solid #e1b9b3;border-radius:9px;
  background:#fff3f1;color:#9e4339;
  font-size:10px;font-weight:700;line-height:1.45;
}
.auth-note{
  display:flex;gap:8px;align-items:flex-start;
  margin-top:18px;padding-top:15px;border-top:1px solid var(--line);
}
.auth-note b{
  flex:0 0 auto;padding:4px 6px;border-radius:6px;
  background:#efeae4;color:#6c645d;
  font-size:8px;letter-spacing:.08em;text-transform:uppercase;
}
.auth-note span{color:var(--muted);font-size:9px;line-height:1.5}


/* =====================================================================
   BG1.8 CRITICAL VISIBILITY HOTFIX
   HTML hidden state must outrank component display declarations.
   BG1.6 introduced several display:flex/grid !important rules that could
   make hidden auth/navigation/workflow elements visible.
   ===================================================================== */
[hidden] {
  display: none !important;
}


/* =====================================================================
   SPROCKET RECLAIM R1.1 — LIVE ANALYSIS VISIBILITY CONSOLE
   ===================================================================== */
.analysis-console{width:100%}
.review-state.running,.review-state.attention{display:block!important;padding:0!important;border:0!important;background:transparent!important}
.analysis-console{
  border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:16px;
  background:rgba(255,253,250,.92);box-shadow:var(--shadow-sm);padding:20px;
}
.review-state.attention .analysis-console{border-left-color:var(--red)}
.analysis-console-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.analysis-console-head h3{margin:5px 0 5px;font-size:18px;letter-spacing:-.025em;color:var(--ink)}
.analysis-console-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;max-width:820px}
.analysis-kicker{display:block;color:var(--orange);font-size:9px;font-weight:900;letter-spacing:.16em}
.phase-badge{
  flex:0 0 auto;display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;
  border:1px solid #efc5aa;background:var(--orange-soft);color:#9b4b28;font-size:9px;font-weight:900;letter-spacing:.08em
}
.phase-meter{margin-top:17px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.phase-meter-top{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:11px}
.phase-meter-top span{color:var(--muted);font-weight:750}
.phase-meter.indeterminate .review-progress-track i{width:35%!important;animation:reclaimPulse 1.35s ease-in-out infinite}
@keyframes reclaimPulse{0%{transform:translateX(-110%)}50%{transform:translateX(120%)}100%{transform:translateX(320%)}}
.analysis-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}
.analysis-stage{
  display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;
  padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface)
}
.analysis-stage.running{border-color:#efc5aa;background:var(--orange-soft)}
.analysis-stage.complete{border-color:#c8d9c5;background:var(--green-soft)}
.analysis-stage-index{
  width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e9e4de;
  color:var(--muted);font-size:11px;font-weight:900
}
.analysis-stage.running .analysis-stage-index{background:var(--orange);color:#fff}
.analysis-stage.complete .analysis-stage-index{background:var(--green);color:#fff}
.analysis-stage-copy b{display:block!important;color:var(--ink);font-size:11px}
.analysis-stage-copy span{display:block!important;padding:2px 0 0!important;color:var(--muted);font-size:10px}
.analysis-stage-state{padding:0!important;color:var(--muted-2)!important;font-size:8px!important;font-weight:900;letter-spacing:.08em}
.analysis-stage.running .analysis-stage-state{color:#a8512c!important}
.analysis-stage.complete .analysis-stage-state{color:#52744d!important}
.analysis-telemetry{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:13px}
.analysis-telemetry>div{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.analysis-telemetry span{display:block!important;padding:0!important;color:var(--muted)!important;font-size:8px!important;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.analysis-telemetry b{display:block!important;margin-top:4px;color:var(--ink);font-size:12px}
.analysis-now,.analysis-safe-note,.analysis-error{
  margin-top:10px;padding:10px 12px;border-radius:9px;font-size:10px;line-height:1.45
}
.analysis-now{background:#f5f2ed;color:var(--ink);font-weight:750}
.analysis-safe-note{background:#f1f6ef;color:#557052}
.analysis-error{background:var(--red-soft);color:#8c4038}
.analysis-error b,.analysis-error span{display:block!important}
.analysis-error span{padding-top:3px!important;color:#8c4038!important}
@media(max-width:900px){
  .analysis-console-head{display:block}
  .phase-badge{margin-top:10px}
  .analysis-stage-grid,.analysis-telemetry{grid-template-columns:1fr}
}


/* =====================================================================
   SPROCKET RECLAIM R1.2 — REVIEW WORKBENCH
   ===================================================================== */

.review-stats>div small{
  display:block;margin-top:4px;color:var(--muted-2);font-size:9px;font-weight:650;line-height:1.3;
}
.review-tabs .tab-count{
  display:inline-grid;place-items:center;min-width:22px;height:20px;margin-left:6px;padding:0 6px;
  border-radius:999px;background:rgba(29,27,25,.07);color:inherit;font-size:9px;font-weight:850;
}
.review-tabs button.active .tab-count{background:rgba(255,255,255,.9)}
.review-workbench{position:relative}
.candidate-review-summary{
  margin:16px 16px 10px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);
  box-shadow:var(--shadow-sm);
}
.candidate-review-summary-main{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.candidate-review-summary h3{margin:4px 0 4px;font-size:18px;letter-spacing:-.025em}
.candidate-review-summary p{margin:0;max-width:760px;color:var(--muted);font-size:11px;line-height:1.5}
.summary-kicker{display:block;color:var(--orange);font-size:8px;font-weight:900;letter-spacing:.14em}
.review-percent{font-size:28px;letter-spacing:-.04em}
.review-decision-progress{margin-top:13px}
.decision-counts{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.decision-counts span{
  display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid var(--line);
  border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:700;
}
.decision-counts span b{color:var(--ink)}
.decision-counts .warning{background:#fff6e8;border-color:#ead7b9;color:#8d6129}

.review-toolbar,.review-list-controls{
  display:grid;grid-template-columns:minmax(250px,1.8fr) minmax(150px,.75fr) minmax(150px,.75fr) auto;
  gap:9px;align-items:end;margin:0 16px 12px;padding:12px;border:1px solid var(--line);border-radius:12px;
  background:rgba(250,248,245,.96);box-shadow:var(--shadow-sm);
}
.review-toolbar{
  position:sticky;top:12px;z-index:8;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.review-list-controls{grid-template-columns:minmax(250px,1.8fr) minmax(160px,.8fr) minmax(160px,.8fr);margin-top:16px}
#tab-entities .review-list-controls{grid-template-columns:minmax(250px,1.8fr) minmax(180px,.8fr)}
#tab-sensitive .review-list-controls{grid-template-columns:minmax(250px,1fr)}
.review-toolbar label,.review-list-controls label{display:block}
.review-toolbar label>span,.review-list-controls label>span{
  display:block;margin:0 0 5px;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;
}
.review-toolbar input,.review-toolbar select,.review-list-controls input,.review-list-controls select{
  width:100%;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#fff;
  color:var(--ink);font:inherit;font-size:11px;outline:none;
}
.review-toolbar input:focus,.review-toolbar select:focus,.review-list-controls input:focus,.review-list-controls select:focus{
  border-color:#dfa788;box-shadow:0 0 0 3px rgba(246,83,28,.08);
}
button.compact{height:38px;padding:0 13px;font-size:10px}

.review-card{margin:0 16px 12px!important;padding:20px!important;border-radius:15px!important}
.review-card.needs-review{border-left:3px solid var(--orange)!important}
.review-card.decision-kept{border-left:3px solid var(--green)!important}
.review-card.decision-project{border-left:3px solid #8b7e6c!important}
.review-card.decision-rejected{border-left:3px solid #cb6256!important;opacity:.88}
.review-card-head{align-items:flex-start}
.candidate-title-block{min-width:0}
.candidate-eyebrow{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.candidate-eyebrow .pill{margin:0!important}
.sensitive-pill{background:#fff0e9!important;border-color:#f2c1ad!important;color:#a54a29!important}
.candidate-flag{background:#fff6e8!important;border-color:#ead7b9!important;color:#8d6129!important}
.candidate-flag.conflict{background:#fff0ee!important;border-color:#ecc1bb!important;color:#9f443b!important}
.decision-chip{
  flex:0 0 auto;display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border:1px solid var(--line);
  border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;
}
.decision-chip.needs-review{background:var(--orange-soft);border-color:#efc5aa;color:#a8512c}
.decision-chip.decision-kept,.decision-chip.decision-approved{background:var(--green-soft);border-color:#c8d9c5;color:#52744d}
.decision-chip.decision-project{background:#f2eee8;color:#756b5f}
.decision-chip.decision-rejected,.decision-chip.decision-retired{background:var(--red-soft);border-color:#ebc5bf;color:#94453c}

.candidate-finding,.candidate-analysis-note{
  margin-top:15px;padding:13px 14px;border-radius:10px;background:var(--surface-2);
}
.candidate-finding>span,.candidate-analysis-note>span{
  display:block;margin-bottom:5px;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.candidate-finding p,.candidate-analysis-note p{margin:0!important;color:var(--ink);font-size:12px;line-height:1.55}
.candidate-analysis-note{background:#f6f4f1}
.candidate-analysis-note p{color:var(--muted)}

.candidate-decision-area{
  display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:16px;padding-top:15px;border-top:1px solid var(--line);
}
.decision-context{min-width:200px}
.decision-context b{display:block;font-size:10px}
.decision-context span{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}
.decision-context .recommendation{display:inline!important;color:#805f49;font-weight:800}
.candidate-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.decision-button{
  min-height:38px;padding:0 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);
  font:inherit;font-size:10px;font-weight:800;cursor:pointer;transition:.15s ease;
}
.decision-button:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.decision-button.selected{box-shadow:inset 0 0 0 1px currentColor}
.decision-button.keep.selected{background:var(--green-soft);border-color:#a8c2a3;color:#456b42}
.decision-button.project.selected{background:#f2eee8;border-color:#c9bfb0;color:#6f6252}
.decision-button.reject{color:#ad493f;border-color:#ebbbb4;background:#fffafa}
.decision-button.reject.selected{background:var(--red-soft);border-color:#da9c94;color:#963f36}
.decision-button:disabled{opacity:.5;cursor:wait;transform:none}

.candidate-details{margin-top:12px}
.candidate-details summary,.inline-details summary{
  cursor:pointer;color:var(--muted);font-size:9px;font-weight:800;user-select:none;
}
.candidate-details summary:hover,.inline-details summary:hover{color:var(--ink)}
.candidate-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}
.candidate-detail-grid>div{padding:10px;border:1px solid var(--line);border-radius:9px;background:#faf9f7}
.candidate-detail-grid span,.candidate-detail-grid b,.candidate-detail-grid small{display:block}
.candidate-detail-grid span{color:var(--muted);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
.candidate-detail-grid b{margin-top:3px;font-size:11px}
.candidate-detail-grid small{margin-top:3px;color:var(--muted);font-size:8px;line-height:1.35}

.review-list-panel{margin:0 16px 16px!important;padding:0!important;overflow:hidden}
.review-list-summary{
  padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-2);
  color:var(--muted);font-size:9px;font-weight:800;
}
.list-row.enhanced{
  display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px!important;
}
.list-row.enhanced>div:first-child{min-width:0}
.list-row.enhanced b{display:block!important}
.list-row.enhanced span{padding:2px 0 0!important}
.list-row-tags{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.list-row-tags .pill{padding:5px 7px!important}
.entity-group+.entity-group{border-top:8px solid var(--surface-2)}
.entity-group-head{
  display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-bottom:1px solid var(--line);
  background:#f6f3ef;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em;
}
.entity-group-head span{padding:0!important}
.inline-details{text-align:right;min-width:125px}
.inline-details span{display:block!important;margin-top:4px;color:var(--muted)!important;font-size:8px!important}
.sensitive-explainer{
  padding:13px 15px;border-bottom:1px solid #efd4c7;background:#fff5ef;
}
.sensitive-explainer b,.sensitive-explainer span{display:block}
.sensitive-explainer b{font-size:10px;color:#8c4c30}
.sensitive-explainer span{margin-top:3px;color:#8c6b5c;font-size:9px;line-height:1.4}

@media(max-width:900px){
  .candidate-review-summary-main{display:block}
  .review-percent{display:block;margin-top:10px}
  .review-toolbar,.review-list-controls,#tab-entities .review-list-controls{grid-template-columns:1fr;position:static}
  .candidate-decision-area{display:block}
  .candidate-actions{justify-content:flex-start;margin-top:12px}
  .candidate-detail-grid{grid-template-columns:1fr}
  .list-row.enhanced{align-items:flex-start}
}


/* =====================================================================
   SPROCKET RECLAIM R1.3 — GUIDED REVIEW
   Task-oriented review: queue -> evidence -> decision
   ===================================================================== */

.review-mode-switch{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;background:#ece7e1;border-bottom:1px solid var(--line);
}
.review-mode-switch button{
  display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;
  align-items:center;text-align:left;padding:12px 14px;border:1px solid transparent;border-radius:11px;
  background:transparent;color:var(--muted);cursor:pointer;font:inherit;
}
.review-mode-switch button>span{
  grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#ded8d1;
  color:#746b62;font-size:10px;font-weight:900;
}
.review-mode-switch button b{font-size:11px;color:inherit}
.review-mode-switch button small{margin-top:2px;font-size:9px;color:var(--muted-2)}
.review-mode-switch button.active{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:var(--shadow-sm)}
.review-mode-switch button.active>span{background:var(--orange);color:#fff}
.review-mode{display:none}
.review-mode.active{display:block}

.guided-review-shell{
  display:grid;grid-template-columns:minmax(330px,38%) minmax(0,62%);min-height:680px;background:#f5f2ee;
}
.review-queue{border-right:1px solid var(--line);background:#fbfaf8}
.review-queue-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:18px 18px 12px}
.review-queue-head h3{margin:4px 0 0;font-size:15px;letter-spacing:-.02em}
.queue-progress{flex:0 0 auto;text-align:right;min-width:74px}
.queue-progress b{display:block;font-size:18px;letter-spacing:-.03em}
.queue-progress span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.queue-mini-track{width:74px;height:4px;margin-top:6px;border-radius:999px;background:#e6e0da;overflow:hidden}
.queue-mini-track i{display:block;height:100%;background:var(--green);border-radius:inherit}

.review-queue-search{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:7px;padding:0 18px 10px}
.review-queue-search input,.review-queue-search select{
  width:100%;height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 10px;
  color:var(--ink);font:inherit;font-size:10px;outline:none;
}
.review-queue-search input:focus,.review-queue-search select:focus{border-color:#dfa788;box-shadow:0 0 0 3px rgba(246,83,28,.08)}

.queue-filter-chips{display:flex;gap:5px;overflow-x:auto;padding:0 18px 12px;scrollbar-width:none}
.queue-filter-chips::-webkit-scrollbar{display:none}
.queue-filter-chips button{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 9px;border:1px solid var(--line);
  border-radius:999px;background:#fff;color:var(--muted);font:inherit;font-size:8px;font-weight:850;cursor:pointer;
}
.queue-filter-chips button span{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#eee9e3;font-size:8px}
.queue-filter-chips button.active{background:var(--ink);border-color:var(--ink);color:#fff}
.queue-filter-chips button.active span{background:rgba(255,255,255,.18);color:#fff}

.candidate-queue-list{border-top:1px solid var(--line);max-height:760px;overflow:auto}
.candidate-queue-item{
  width:100%;display:block;padding:14px 18px;border:0;border-bottom:1px solid var(--line);background:transparent;
  text-align:left;color:var(--ink);font:inherit;cursor:pointer;transition:.12s ease;
}
.candidate-queue-item:hover{background:#f6f2ed}
.candidate-queue-item.selected{background:#fff5ee;box-shadow:inset 3px 0 0 var(--orange)}
.candidate-queue-item.reviewed{opacity:.82}
.queue-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.queue-item-type{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.queue-decision{
  flex:0 0 auto;padding:4px 6px;border-radius:999px;background:#eee9e3;color:#756b61;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.05em
}
.queue-decision.needs-review{background:var(--orange-soft);color:#a8512c}
.queue-decision.decision-kept,.queue-decision.decision-approved{background:var(--green-soft);color:#52744d}
.queue-decision.decision-rejected{background:var(--red-soft);color:#94453c}
.candidate-queue-item>b{display:block;font-size:11px;line-height:1.35}
.candidate-queue-item>p{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  margin:5px 0 7px;color:var(--muted);font-size:9px;line-height:1.45
}
.queue-item-meta{display:flex;flex-wrap:wrap;gap:5px;color:var(--muted-2);font-size:8px}
.queue-item-meta span{padding:3px 5px;border-radius:5px;background:#f1ede8}
.queue-item-meta .queue-alert{background:#fff0ee;color:#9b453b;font-weight:800}
.queue-item-meta .queue-sensitive{background:#fff0e9;color:#a54a29;font-weight:800}
.queue-empty{padding:28px 18px;text-align:center;color:var(--muted)}
.queue-empty b,.queue-empty span{display:block}
.queue-empty b{color:var(--ink);font-size:11px}
.queue-empty span{margin-top:4px;font-size:9px}

.review-detail{min-width:0;padding:24px;background:#fff}
.detail-titlebar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}
.detail-titlebar h2{margin:9px 0 0;font-size:24px;line-height:1.18;letter-spacing:-.035em;max-width:760px}
.detail-pills{display:flex;flex-wrap:wrap;gap:6px}
.detail-section{padding:20px 0;border-bottom:1px solid var(--line)}
.detail-section-head{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;margin-bottom:12px}
.detail-section-head>span{
  width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#eee9e3;color:#746b62;font-size:10px;font-weight:900
}
.detail-section-head h4{margin:1px 0 2px;font-size:13px}
.detail-section-head p{margin:0;color:var(--muted);font-size:9px;line-height:1.45}
.finding-statement{
  margin-left:38px;padding:16px 17px;border-radius:11px;background:#f5f2ee;color:var(--ink);font-size:13px;line-height:1.6
}
.why-surfaced{margin:10px 0 0 38px;padding:11px 13px;border-left:2px solid #d8d0c7;color:var(--muted)}
.why-surfaced b,.why-surfaced span{display:block}
.why-surfaced b{font-size:9px;color:var(--ink)}
.why-surfaced span{margin-top:3px;font-size:9px;line-height:1.5}

.evidence-list{display:grid;gap:9px;margin-left:38px}
.evidence-card{padding:14px;border:1px solid var(--line);border-radius:11px;background:#fbfaf8}
.evidence-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.evidence-card-head b,.evidence-card-head span{display:block}
.evidence-card-head b{font-size:10px}
.evidence-card-head div>span{margin-top:2px;color:var(--muted);font-size:8px}
.evidence-weight{
  flex:0 0 auto;padding:5px 7px;border-radius:999px;background:var(--green-soft);color:#52744d;font-size:7px!important;font-weight:900;text-transform:uppercase
}
.evidence-card blockquote{
  margin:12px 0 0;padding:12px 14px;border-left:3px solid #cfc6bc;background:#f4f1ed;color:#383431;
  font-size:10px;line-height:1.58;font-style:normal;border-radius:0 8px 8px 0
}
.evidence-reason{margin-top:10px;color:var(--muted)}
.evidence-reason b,.evidence-reason span{display:block}
.evidence-reason b{font-size:8px;color:var(--ink)}
.evidence-reason span{margin-top:2px;font-size:8px;line-height:1.45}
.evidence-empty{margin-left:38px;padding:13px;border:1px dashed #d7cec5;border-radius:9px;color:var(--muted);font-size:9px}

.guided-decision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-left:38px}
.guided-decision{
  position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;
  column-gap:9px;align-items:start;min-height:96px;padding:13px;border:1px solid var(--line);border-radius:11px;
  background:#fff;color:var(--ink);text-align:left;font:inherit;cursor:pointer;transition:.12s ease
}
.guided-decision:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm);border-color:#cfc4ba}
.guided-decision .decision-icon{
  grid-row:1/3;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#eee9e3;
  color:#746b62;font-size:13px;font-weight:900
}
.guided-decision b{font-size:10px;margin-top:1px}
.guided-decision small{margin-top:3px;color:var(--muted);font-size:8px;line-height:1.4}
.guided-decision.keep.selected{background:var(--green-soft);border-color:#9fbd99}
.guided-decision.keep.selected .decision-icon{background:var(--green);color:#fff}
.guided-decision.project.selected{background:#f2eee8;border-color:#c8bdaf}
.guided-decision.reject{color:#9d453d}
.guided-decision.reject.selected{background:var(--red-soft);border-color:#d99c94}
.guided-decision.reject.selected .decision-icon{background:#b9574c;color:#fff}
.guided-decision:disabled{opacity:.55;cursor:wait;transform:none}
.saved-decision-note{margin:9px 0 0 38px;color:var(--muted);font-size:8px}

.model-details{margin-top:16px;padding:0 0 6px 38px}
.model-details summary{cursor:pointer;color:var(--muted);font-size:9px;font-weight:800}
.model-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:9px}
.model-detail-grid>div{padding:9px;border:1px solid var(--line);border-radius:8px;background:#faf9f7}
.model-detail-grid span,.model-detail-grid b,.model-detail-grid small{display:block}
.model-detail-grid span{color:var(--muted);font-size:7px;font-weight:850;text-transform:uppercase}
.model-detail-grid b{margin-top:2px;font-size:10px}
.model-detail-grid small{margin-top:2px;color:var(--muted);font-size:7px;line-height:1.35}

.detail-empty{display:grid;place-items:center;min-height:560px;padding:40px;text-align:center;color:var(--muted)}
.detail-empty h3{margin:0;color:var(--ink);font-size:18px}
.detail-empty p{max-width:460px;margin:7px 0 0;font-size:10px;line-height:1.5}
.detail-empty.success>span{width:40px;height:40px;display:grid;place-items:center;border-radius:999px;background:var(--green);color:#fff;font-size:18px;margin-bottom:10px}
.detail-empty button{margin-top:14px}

.source-explorer-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px 20px 14px;background:#fff}
.source-explorer-head h3{margin:4px 0 3px;font-size:17px}
.source-explorer-head p{margin:0;color:var(--muted);font-size:9px}
.source-explorer-stats{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.source-explorer-stats span{padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#f7f4f0;color:var(--muted);font-size:8px}
.source-explorer-stats b{color:var(--ink)}
.source-subtabs{display:flex;gap:5px;padding:0 20px 12px;background:#fff;border-bottom:1px solid var(--line)}
.source-subtabs button{
  height:32px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font:inherit;font-size:9px;font-weight:800;cursor:pointer
}
.source-subtabs button.active{background:var(--ink);border-color:var(--ink);color:#fff}
.source-pane{display:none;padding-top:1px}
.source-pane.active{display:block}
.source-pane .review-list-controls{margin-top:14px}

@media(max-width:1050px){
  .guided-review-shell{grid-template-columns:320px minmax(0,1fr)}
  .guided-decision-grid{grid-template-columns:1fr}
  .model-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .review-mode-switch{grid-template-columns:1fr}
  .guided-review-shell{display:block}
  .review-queue{border-right:0;border-bottom:1px solid var(--line)}
  .candidate-queue-list{max-height:430px}
  .review-detail{padding:18px}
  .detail-titlebar{display:block}
  .decision-chip{margin-top:10px}
  .finding-statement,.why-surfaced,.evidence-list,.evidence-empty,.guided-decision-grid,.saved-decision-note,.model-details{margin-left:0;padding-left:0}
  .model-detail-grid{grid-template-columns:1fr}
  .source-explorer-head{display:block}
  .source-explorer-stats{justify-content:flex-start;margin-top:10px}
}
