:root{
  --bg:#f4f7fb;
  --bg-2:#eef3f9;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --surface-3:#eef4ff;
  --border:#dbe5f0;
  --border-strong:#c5d2e0;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --primary:#2563eb;
  --primary-strong:#1d4ed8;
  --primary-soft:#e9f1ff;
  --teal:#0f766e;
  --teal-soft:#e8fbf8;
  --charcoal:#0f172a;
  --charcoal-2:#172554;
  --steel:#6f7881;
  --gold:#3b82f6;
  --success:#16a34a;
  --success-soft:#ebf9ef;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
  --danger:#dc2626;
  --danger-soft:#fdf0f0;
  --shadow-sm:0 10px 24px rgba(15,23,42,.06);
  --shadow-md:0 20px 48px rgba(15,23,42,.08);
  --shadow-lg:0 28px 70px rgba(15,23,42,.12);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:12px;
  --radius-xs:6px;
  --content:1240px;
  --workflow-card-radius:18px;
  --workflow-card-accent-height:5px;
  --workflow-card-padding:18px;
  --workflow-card-gap:14px;
  --workflow-card-number-size:42px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#f7f9fc 0%,#f2f6fb 100%);color:var(--text);font:15px/1.6 'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-strong)}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
button{font-family:inherit}
.container{width:min(var(--content),calc(100% - 40px));margin:0 auto}
.page-stack,.stack-12,.stack-16,.stack-20,.stack-24,.stack-32{display:grid}
.page-stack{gap:28px}.stack-12{gap:12px}.stack-16{gap:16px}.stack-20{gap:20px}.stack-24{gap:24px}.stack-32{gap:32px}
.grid-2,.grid-3,.grid-4,.stats-grid,.summary-grid,.price-grid,.feature-grid,.workflow-steps{display:grid;gap:20px}
.grid-2,.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4,.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.price-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.feature-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.workflow-steps{grid-template-columns:repeat(6,minmax(0,1fr))}
.card,.sub-card,.hero-panel,.table-card,.empty-state,.status-card,.metric-card,.saas-window,.workflow-step,.workflow-step-card{background:rgba(255,255,255,.94);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.card{padding:26px}
.sub-card{padding:18px}
.table-card{padding:0;overflow:hidden}
.status-card,.metric-card{padding:20px 18px}
.soft-panel{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px}
.subtle{background:linear-gradient(180deg,#fbfdff,#f4f8ff)}
.muted{color:var(--muted)}
.small{font-size:13px}.tiny{font-size:12px}
.label,.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}
.brand{display:flex;align-items:center;gap:12px;color:inherit}
.brand-title{font-size:19px;font-weight:800;letter-spacing:-.04em;color:var(--text)}
.brand-subtitle{font-size:12px;color:var(--muted);letter-spacing:.01em}
.brand-mark.hex{width:40px;height:40px;border-radius:14px;transform:rotate(45deg);background:linear-gradient(135deg,#ffffff,#e8f0ff);border:1px solid rgba(37,99,235,.28);position:relative;box-shadow:inset 0 0 0 5px rgba(37,99,235,.06)}
.brand-mark.hex:after{content:"";position:absolute;inset:9px;border:2px solid var(--teal);border-radius:9px}
h1,h2,h3,h4{margin:0;color:var(--text);letter-spacing:-.04em;line-height:1.08}
h1{font-size:clamp(2.5rem,5.2vw,4.9rem);font-weight:800}
h2{font-size:clamp(2rem,3vw,3rem);font-weight:800}
h3{font-size:1.35rem;font-weight:750}
h4{font-size:1rem;font-weight:750}
p{margin:0}
.lead{font-size:1.08rem;color:var(--muted);max-width:760px}
.section-lead,.page-intro{max-width:760px;color:var(--muted)}
.page-header,.section-head,.section-row,.page-actions,.topbar-actions,.hero-actions,.auth-actions,.footer-links{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.page-header{position:relative}
.page-title{font-size:1.9rem;font-weight:800;letter-spacing:-.04em}
.section-heading-block{display:grid;gap:10px;max-width:860px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border-radius:12px;border:1px solid transparent;background:#fff;color:var(--text);font-weight:800;line-height:1.15;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;white-space:normal;text-align:center}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(37,99,235,.16)}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-strong));color:#fff;box-shadow:0 14px 30px rgba(37,99,235,.22)}
.btn-secondary{border-color:var(--border-strong);background:#fff;color:var(--text)}
.btn-tertiary,.btn-ghost{border-color:var(--border);background:var(--surface-2);color:var(--muted)}
.btn-link{background:none;border:0;padding:0;color:var(--primary);font-weight:700;box-shadow:none}
.btn-small,.btn-sm{padding:9px 12px;font-size:13px;border-radius:12px}
.btn-block,.w-full{width:100%}
.link-danger{background:none;border:0;color:var(--danger);padding:0;cursor:pointer;font-weight:700}
button:disabled,.btn:disabled,.btn[disabled]{opacity:.62;cursor:not-allowed;transform:none;box-shadow:none}
.stat-card span,.metric-card span,.status-card span{display:block;font-size:11px;line-height:1.35;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;margin-bottom:12px}
.stat-card strong,.metric-card strong{display:block;font-size:2rem;line-height:1.05;font-weight:800;margin-bottom:6px}
.summary-list,.meta-list,.detail-list,.list-stack{display:grid;gap:12px}
.summary-list>div,.meta-list>div,.detail-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f7}
.summary-list>div:last-child,.meta-list>div:last-child,.detail-list>div:last-child{border-bottom:0;padding-bottom:0}
.summary-list span,.meta-list span,.detail-list span{color:var(--muted)}
.pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;line-height:1;border:1px solid transparent}
.pill-info{background:var(--primary-soft);color:var(--primary-strong);border-color:#cad9ff}
.pill-soft{background:#eff5ff;color:#335792;border-color:#d8e3fb}
.pill-success{background:var(--success-soft);color:var(--success);border-color:#cde9d4}
.pill-warning{background:var(--warning-soft);color:var(--warning);border-color:#bae6fd}
.pill-danger{background:var(--danger-soft);color:var(--danger);border-color:#f3cfcf}
.pill-attention{background:var(--danger-soft);color:#b91c1c;border-color:#f3cfcf}
.pill-neutral{background:#f5f7fb;color:var(--muted);border-color:#e3e8f1}
.pill-teal{background:var(--teal-soft);color:var(--teal);border-color:#c3ebe4}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:separate;border-spacing:0}
thead th{background:linear-gradient(180deg,#fbfdff,#f2f7fd);padding:14px 16px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;text-align:left;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1}
tbody td{padding:14px 16px;border-bottom:1px solid #edf2f7;vertical-align:top}
tbody tr:hover{background:#fbfdff}
tr:last-child td{border-bottom:0}
.table-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.elevated-table{border:1px solid var(--border);border-radius:18px;overflow:auto;background:#fff;box-shadow:var(--shadow-sm)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.form-stack{display:grid;gap:16px}
.form-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.form-actions{display:flex;justify-content:flex-end;gap:12px;grid-column:1/-1;flex-wrap:wrap}
.form-span-2{grid-column:1/-1}
label{display:grid;gap:8px;font-weight:700;color:var(--text)}
input,select,textarea{width:100%;padding:13px 14px;background:#fff;border:1px solid var(--border-strong);border-radius:14px;color:var(--text);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
input::placeholder,textarea::placeholder{color:var(--muted-2)}
input:focus,select:focus,textarea:focus{border-color:#9bb8ff;background:#fff}
textarea{min-height:130px;resize:vertical}
.field-help{font-size:12px;color:var(--muted)}
.flash-stack{display:grid;gap:12px;margin-bottom:18px}
.flash{padding:14px 16px;border-radius:16px;border:1px solid transparent;font-weight:700}
.flash-success{background:var(--success-soft);color:#0f7a34;border-color:#d0ead7}
.flash-danger{background:var(--danger-soft);color:#b42323;border-color:#efcece}
.flash-warning{background:var(--warning-soft);color:#075985;border-color:#bae6fd}
.flash-info{background:var(--primary-soft);color:#2459c8;border-color:#d3e0ff}
.empty-state{padding:30px}
.empty-state p{margin-top:8px;color:var(--muted);max-width:620px}
.empty-state-actionable{background:linear-gradient(180deg,#fff,#f7fbff)}
.list-item{display:grid;gap:4px;padding:14px 0;border-bottom:1px solid #edf2f7}
.list-item:last-child{border-bottom:0;padding-bottom:0}
.sidebar-logout-form{margin-top:auto}
.link-button{background:none;border:0;padding:0;color:var(--primary);cursor:pointer;font:inherit;text-align:left}

.public-shell{min-height:100vh;display:flex;flex-direction:column}
.public-header{position:sticky;top:0;z-index:30;border-bottom:1px solid rgba(219,229,240,.9);backdrop-filter:blur(14px);background:rgba(247,250,252,.82)}
.public-header--transparent{background:rgba(248,251,255,.72)}
.public-header-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px}
.public-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.public-nav a{color:var(--muted);font-weight:650}
.public-nav a.btn{color:#fff}
.public-nav-toggle{display:none;border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 14px;font-weight:700}
.public-main{flex:1}
.public-page-stack{padding:34px 0 10px}

.landing-hero{padding:42px 0 36px;background:
  radial-gradient(circle at 12% 10%,rgba(37,99,235,.11),transparent 30%),
  radial-gradient(circle at 88% 18%,rgba(15,118,110,.10),transparent 24%),
  linear-gradient(180deg,#f9fcff 0%,#f2f6fb 100%)}
.landing-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:28px;align-items:center}
.hero-copy{padding:24px 0}
.hero-proof-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hero-proof-card{padding:16px;border-radius:18px;background:rgba(255,255,255,.7);border:1px solid rgba(219,229,240,.85);backdrop-filter:blur(12px);box-shadow:var(--shadow-sm)}
.hero-proof-card strong{display:block;font-size:14px;margin-top:8px}
.hero-visual-stack{position:relative;display:grid;gap:18px}
.saas-window{overflow:hidden;background:rgba(255,255,255,.85);backdrop-filter:blur(18px);box-shadow:var(--shadow-lg)}
.window-topbar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border);background:rgba(248,251,255,.95)}
.window-dots{display:flex;gap:6px}
.window-dots span{width:9px;height:9px;border-radius:999px;background:#c3d4ea}
.window-title{font-size:13px;font-weight:700;color:var(--muted)}
.window-body{padding:18px}
.window-dashboard-preview{display:grid;grid-template-columns:160px 1fr;gap:18px}
.preview-sidebar{display:grid;gap:10px}
.preview-nav-pill{padding:12px 14px;border-radius:14px;background:#f7fafe;border:1px solid var(--border);color:var(--muted);font-weight:700}
.preview-nav-pill.active{background:var(--primary-soft);border-color:#cddcff;color:var(--primary-strong)}
.preview-main{min-width:0}
.preview-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.preview-table-card{display:grid;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#fff}
.preview-table-row{display:grid;grid-template-columns:1.4fr .9fr .7fr;gap:14px;align-items:center;padding:13px 16px;border-top:1px solid #edf2f7}
.preview-table-row.header{border-top:0;background:#f8fbff;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.hero-floating-card{position:absolute;right:-16px;bottom:-22px;width:min(280px,78%);padding:18px;border-radius:22px;background:rgba(10,15,30,.92);color:#fff;box-shadow:var(--shadow-lg)}
.hero-floating-card .label,.hero-floating-card .muted{color:rgba(255,255,255,.72)}
.hero-floating-card .summary-list>div{border-bottom-color:rgba(255,255,255,.12)}
.compact-summary>div{padding:8px 0}
.optimizer-preview{display:grid;gap:12px}
.preview-track{display:flex;gap:6px;align-items:stretch;height:46px}
.seg,.bar-seg{display:flex;align-items:center;justify-content:center;text-align:center;border-radius:10px;padding:0 8px;color:#fff;font-size:11px;font-weight:800;min-width:28px}
.seg.cut,.bar-seg.cut{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}
.seg.offcut,.bar-seg.offcut{background:linear-gradient(135deg,#22c55e,#15803d)}
.seg.scrap,.bar-seg.scrap{background:linear-gradient(135deg,#ef4444,#b91c1c)}
.landing-section{padding:32px 0}
.landing-section-alt{background:linear-gradient(180deg,rgba(255,255,255,.36),rgba(244,248,252,.82));border-top:1px solid rgba(219,229,240,.65);border-bottom:1px solid rgba(219,229,240,.65)}
.premium-feature-grid .feature-card{padding:22px;position:relative;overflow:hidden}
.feature-icon{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:var(--surface-3);color:var(--primary-strong);font-size:12px;font-weight:800;margin-bottom:16px}
.workflow-steps-premium{gap:var(--workflow-card-gap)}
.workflow-steps-premium .workflow-step{padding:20px;display:grid;gap:10px}
.workflow-step-card{
  position:relative;
  overflow:hidden;
  min-height:178px;
  padding:calc(var(--workflow-card-padding) + var(--workflow-card-accent-height)) var(--workflow-card-padding) var(--workflow-card-padding);
  border-radius:var(--workflow-card-radius);
  background:#fff;
  display:grid;
  grid-template-rows:auto 1fr;
  align-content:start;
  gap:var(--workflow-card-gap);
}
.workflow-step-card__accent{
  position:absolute;
  inset:0 0 auto;
  height:var(--workflow-card-accent-height);
  border-radius:var(--workflow-card-radius) var(--workflow-card-radius) 0 0;
  background:linear-gradient(90deg,var(--primary),#7dd3fc);
}
.workflow-step-card__number{
  width:var(--workflow-card-number-size);
  height:var(--workflow-card-number-size);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid #cbdcff;
  background:linear-gradient(135deg,#e9f1ff,#e0f2fe);
  color:var(--primary-strong);
  font-size:12px;
  font-weight:800;
  line-height:1;
  letter-spacing:.12em;
}
.workflow-step-card__body{
  display:grid;
  gap:8px;
  align-content:start;
}
.workflow-step-card__body p{
  line-height:1.55;
}
.workflow-index{font-size:12px;font-weight:800;color:var(--primary-strong);letter-spacing:.12em}
.price-card{display:grid;gap:14px;align-content:start}
.price-card-featured{position:relative;background:linear-gradient(180deg,#f9fbff,#eef5ff);border-color:#cbdcff;box-shadow:var(--shadow-md)}
.enterprise-card{background:linear-gradient(180deg,#fcfffe,#f2fbf9)}
.price{font-size:2.3rem;font-weight:800;letter-spacing:-.05em}
.quote-card{padding:22px}
.cta-card,.cta-card-soft{background:linear-gradient(135deg,#ffffff,#f4f8ff)}

.interactive-row{transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.interactive-row:hover{background:#f8fbff;box-shadow:inset 3px 0 0 var(--primary)}
.correction-form-card,.correction-register-card{position:relative;overflow:hidden}
.correction-form-card:before,.correction-register-card:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--primary),var(--teal));opacity:.9}
.correction-detail-grid .metric-card strong{font-size:1.65rem}
.correction-impact-panel .summary-list strong{word-break:break-word}
.checkbox-row{display:flex;align-items:flex-start;gap:12px;font-weight:700;color:var(--text)}
.checkbox-row input{width:auto;margin-top:4px;flex:0 0 auto}
.correction-form select option{color:var(--text)}

.auth-shell{padding:42px 0 58px}
.auth-shell-premium{display:grid;grid-template-columns:minmax(0,.95fr) minmax(360px,.8fr);gap:24px;align-items:stretch}
.auth-shell-wide{grid-template-columns:minmax(0,1.12fr) minmax(320px,.68fr)}
.auth-card,.auth-showcase{height:100%}
.auth-showcase{background:linear-gradient(135deg,#0f172a,#172554);color:#fff;box-shadow:var(--shadow-lg)}
.auth-showcase h1,.auth-showcase h2,.auth-showcase h3,.auth-showcase .muted{color:#fff}
.auth-showcase .muted{opacity:.76}
.auth-showcase .list-item{border-bottom-color:rgba(255,255,255,.12)}
.auth-steps{display:flex;gap:10px;flex-wrap:wrap}
.auth-value-list .list-item strong{font-size:15px}
.page-header-card,.workspace-hero-card{padding:28px;border-radius:24px;background:linear-gradient(135deg,#ffffff,#f5f9ff);border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.workspace-hero-card{align-items:flex-end}
.metric-card-premium{background:linear-gradient(180deg,#ffffff,#f8fbff)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:22px}
.dashboard-grid-premium .card{height:fit-content}
.dashboard-side-stack{align-content:start}
.action-card{background:linear-gradient(135deg,#ffffff,#f4f9ff)}
.activity-log-card{min-width:0}
.activity-feed{max-height:420px;overflow:auto;padding-right:6px;min-width:0}
.activity-feed .timeline-item{position:relative;padding-left:18px;border-left:2px solid #dbe7f6;word-break:break-word}
.activity-feed .timeline-item:before{content:"";position:absolute;left:-5px;top:6px;width:8px;height:8px;border-radius:999px;background:var(--primary)}

.dashboard-top-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:22px;align-items:start}
.dashboard-start-card{height:fit-content}
.activity-log-card--full{width:100%}
.activity-feed--wide{max-height:360px}
.bug-report-page-grid{align-items:start}
.bug-report-card--page .form-stack{gap:16px}
@media (max-width:980px){
  .dashboard-top-grid{grid-template-columns:1fr}
}

.app-shell{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:100vh}
.app-overlay{display:none}
.sidebar{position:sticky;top:0;height:100vh;padding:22px;border-right:1px solid var(--border);background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);display:flex;flex-direction:column;gap:18px;z-index:25;overflow-y:auto}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sidebar-close{display:none;background:none;border:0;font-size:28px;line-height:1;cursor:pointer;color:var(--muted)}
.sidebar-section{display:grid;gap:10px}
.sidebar-section-label{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}
.sidebar-nav{display:grid;gap:7px}
.sidebar-nav a{display:flex;align-items:center;padding:12px 14px;border-radius:14px;color:var(--text);font-weight:700}
.sidebar-nav a.active{background:var(--primary-soft);border:1px solid #ccdcff;color:var(--primary-strong)}
.cardless-panel{padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface-2)}
.sidebar-mini-list{display:grid;gap:8px}
.sidebar-mini-item{padding:11px 12px;border-radius:14px;background:#fff;border:1px solid var(--border);display:grid;gap:4px;color:var(--text)}
.sidebar-mini-item span{font-size:12px;color:var(--muted)}
.main-content{min-width:0;display:flex;flex-direction:column}
.content-wrap{padding:28px}
.topbar{display:grid;gap:16px;padding:24px 28px 0}
.topbar-main{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.topbar-kicker-row{display:flex;align-items:center;gap:10px}
.app-nav-toggle{display:none;border:1px solid var(--border);background:#fff;border-radius:12px;padding:8px 12px;font-size:18px;line-height:1;cursor:pointer}
.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--muted);margin-top:6px}
.project-context-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:15px 16px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-sm)}
.project-context-item{display:grid;gap:6px}
.project-context-item strong{font-size:14px}
.project-switcher-form{min-width:230px}
.switcher-label{display:grid;gap:6px}

.readiness-grid{padding:22px}
.readiness-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;padding-bottom:2px}
.readiness-item{padding:10px 12px;border-radius:16px;border:1px solid var(--border);background:#fff;min-width:0}
.readiness-item strong{display:block;font-size:14px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blocker-card{display:grid;gap:10px;padding:16px 18px;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #cddcff;border-radius:16px}
.blocker-card ul{margin:0;padding-left:18px;color:#31506f}
.stage-nav{display:flex;gap:10px;flex-wrap:wrap}
.stage-chip{display:flex;align-items:center;gap:10px;min-width:150px;padding:12px 14px;border-radius:16px;border:1px solid var(--border);background:#fff;color:var(--text);box-shadow:var(--shadow-sm)}
.stage-chip.active{background:var(--primary-soft);border-color:#caddff}
.stage-chip .dot{width:10px;height:10px;border-radius:999px;background:#d0d8e4}
.stage-chip.complete .dot{background:var(--success)}
.stage-chip.pending .dot{background:var(--danger);box-shadow:0 0 0 4px rgba(220,38,38,.10)}
.stage-chip.pending .stage-copy em{color:#b91c1c}
.stage-copy{display:grid;gap:2px}.stage-copy em{font-style:normal;color:var(--muted);font-size:12px}
.project-builder-shell{display:grid;grid-template-columns:264px minmax(0,1fr);gap:22px;align-items:start}
.project-builder-shell.is-workflow-collapsed{grid-template-columns:76px minmax(0,1fr)}
.builder-work-area{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.builder-main{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.builder-side{display:none}
.builder-summary-card{margin-top:1.25rem}
.sticky-summary{position:static}
.builder-workflow-mobile-bar{display:none}
.builder-workflow-rail{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;padding:12px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:var(--shadow-sm)}
.builder-workflow-rail-head,.builder-workflow-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.builder-workflow-rail-title{display:grid;gap:2px}
.builder-workflow-collapse{width:34px;height:34px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--text);font-weight:800;cursor:pointer}
.builder-workflow-list{display:grid;gap:8px}
.builder-workflow-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:14px;background:#fff;color:var(--text)}
.builder-workflow-item:hover,.builder-workflow-item.is-active{border-color:#b7c9e5;background:#f8fbff}
.builder-workflow-item.is-active{box-shadow:inset 3px 0 0 var(--primary)}
.builder-workflow-status-dot{width:11px;height:11px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.13)}
.builder-workflow-copy{display:grid;gap:2px;min-width:0}
.builder-workflow-copy strong{font-size:13px;color:var(--text)}
.builder-workflow-copy em,.builder-workflow-copy small{font-style:normal;font-size:11px;line-height:1.35;color:var(--muted)}
.builder-workflow-status-text,.builder-workflow-mobile-status{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 8px;border-radius:999px;border:1px solid var(--border);font-size:11px;font-weight:800;white-space:nowrap}
.builder-workflow-short{display:none;font-size:11px;font-weight:800;color:var(--muted);text-align:center}
.builder-workflow-item--ready .builder-workflow-status-dot,.builder-next-issue-card--ready .builder-next-issue-dot{background:var(--success);box-shadow:0 0 0 4px rgba(22,163,74,.13)}
.builder-workflow-item--ready .builder-workflow-status-text,.builder-workflow-status--ready{background:#ecfdf3;border-color:#bbf7d0;color:#166534}
.builder-workflow-item--not_ready .builder-workflow-status-dot,.builder-next-issue-card--not_ready .builder-next-issue-dot{background:var(--danger);box-shadow:0 0 0 4px rgba(220,38,38,.13)}
.builder-workflow-item--not_ready .builder-workflow-status-text,.builder-workflow-status--not_ready{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.builder-workflow-item--warning .builder-workflow-status-dot,.builder-next-issue-card--warning .builder-next-issue-dot{background:#d97706;box-shadow:0 0 0 4px rgba(217,119,6,.15)}
.builder-workflow-item--warning .builder-workflow-status-text,.builder-workflow-status--warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.builder-workflow-item--not_started .builder-workflow-status-dot,.builder-next-issue-card--not_started .builder-next-issue-dot{background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.13)}
.builder-workflow-item--not_started .builder-workflow-status-text,.builder-workflow-status--not_started{background:#f8fafc;border-color:#cbd5e1;color:#475569}
.project-builder-shell.is-workflow-collapsed .builder-workflow-rail{padding:10px}
.project-builder-shell.is-workflow-collapsed .builder-workflow-rail-title,.project-builder-shell.is-workflow-collapsed .builder-workflow-copy,.project-builder-shell.is-workflow-collapsed .builder-workflow-status-text{display:none}
.project-builder-shell.is-workflow-collapsed .builder-workflow-rail-head{justify-content:center}
.project-builder-shell.is-workflow-collapsed .builder-workflow-item{grid-template-columns:1fr;justify-items:center;gap:6px;padding:10px 6px}
.project-builder-shell.is-workflow-collapsed .builder-workflow-short{display:block}
.builder-next-issue-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}
.builder-next-issue-dot{width:12px;height:12px;border-radius:999px;background:#94a3b8}
.builder-next-issue-copy{display:grid;gap:2px;min-width:0}
.builder-next-issue-copy strong{font-size:15px}
.builder-next-issue-copy p{margin:0;color:var(--muted);font-size:13px}
.builder-next-issue-card--not_ready{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff7f7)}
.builder-next-issue-card--warning{border-color:#fde68a;background:linear-gradient(180deg,#fff,#fffbeb)}
.builder-next-issue-card--ready{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f2fff6)}
.builder-workflow-drawer{display:none}
@media (max-width:1180px){
  .project-builder-shell,.project-builder-shell.is-workflow-collapsed{grid-template-columns:1fr}
  .builder-workflow-rail{display:none}
  .builder-workflow-mobile-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}
  .builder-workflow-drawer{display:block;position:fixed;inset:0;z-index:80;pointer-events:none}
  .builder-workflow-drawer.is-open{pointer-events:auto}
  .builder-workflow-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.44);opacity:0;transition:opacity .18s ease}
  .builder-workflow-drawer.is-open .builder-workflow-backdrop{opacity:1}
  .builder-workflow-sheet{position:absolute;top:0;right:0;width:min(420px,92vw);height:100%;padding:18px;background:#fff;border-left:1px solid var(--border);box-shadow:var(--shadow-lg);transform:translateX(104%);transition:transform .2s ease;overflow:auto}
  .builder-workflow-drawer.is-open .builder-workflow-sheet{transform:translateX(0)}
  body.builder-workflow-drawer-opened{overflow:hidden}
}
@media (max-width:720px){
  .builder-next-issue-card{grid-template-columns:auto minmax(0,1fr);align-items:start}
  .builder-next-issue-card .btn{grid-column:1 / -1;width:100%}
  .builder-workflow-mobile-bar{align-items:stretch;flex-direction:column}
  .builder-workflow-drawer-open{width:100%}
}
.profile-grid{display:grid;gap:16px}
.profile-card{padding:20px;border-radius:18px;border:1px solid var(--border);background:#fff;display:grid;gap:18px}
.profile-card-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.profile-stats .soft-panel{padding:12px}
.profile-metric-grid{align-items:stretch}
.profile-metric{
  min-height:96px;
  display:grid;
  align-content:space-between;
  gap:12px;
}
.profile-metric .metric-label{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.profile-metric .metric-value{
  display:block;
  color:var(--text);
  font-size:1.35rem;
  line-height:1.15;
  font-weight:800;
  overflow-wrap:anywhere;
}
.profile-card-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.profile-shortcuts,.preset-row,.tab-row,.pagination-row,.inline-filter,.entry-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.profile-shortcuts{
  justify-content:flex-end;
  padding-top:2px;
}
.entry-table{min-width:980px}
.entry-table input,.entry-table select{min-width:120px}
.row-no,.row-no-cell{width:42px;text-align:center;color:var(--muted);font-weight:700}
.row-actions{display:flex;gap:8px;flex-wrap:wrap}
.table-totals{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted);font-weight:700}
.table-totals strong{color:var(--text)}
.optimize-anchors{position:sticky;top:16px;z-index:2;background:var(--bg);padding:4px 0}
.bar-section{display:grid;gap:14px}
.bar-card{display:grid;gap:12px;padding:16px;border-radius:18px;border:1px solid var(--border);background:#fff}
.bar-header{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.bar-track{display:flex;align-items:stretch;min-height:56px;background:#eef5fb;border-radius:14px;padding:6px;gap:6px;overflow:auto}
.bar-seg{position:relative;min-width:48px;padding:8px 10px;font-size:12px}
.bar-legend{display:flex;gap:10px;flex-wrap:wrap}
.bar-legend span{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.swatch{width:10px;height:10px;border-radius:999px;display:inline-block}
.filter-card{padding:18px}
.filter-card label{min-width:180px}
.tab{padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--text);font-weight:700}
.tab.active{background:var(--primary-soft);border-color:#caddff;color:var(--primary-strong)}
.table-card-shell{padding:20px}
.operator-card{background:linear-gradient(180deg,#fff,#f8fbff)}
.pagination-row{justify-content:space-between}
.workflow-mini ol{margin:8px 0 0;padding-left:18px;color:var(--muted)}
.label-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.print-shell{padding:24px;background:#fff}
.no-print{display:block}

.site-footer{margin-top:auto;padding:18px 24px;border-top:1px solid var(--border);background:#fff}
.footer-grid{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:flex-start}
.footer-grid-public{padding:18px 0}
.footer-brand{margin-bottom:8px}
.footer-copy{max-width:560px}
.public-footer{margin-top:22px}
.app-footer{background:transparent}
.legal-page{padding-bottom:40px}.legal-copy p+p{margin-top:14px}.narrow{max-width:980px}

@media (max-width:1180px){
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workflow-steps,.price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .landing-hero-grid,.dashboard-grid,.project-builder-shell{grid-template-columns:1fr}
  .sticky-summary{position:static}
}
@media (max-width:980px){
  .app-shell{grid-template-columns:1fr}
  .app-overlay.is-visible{display:block;position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:20}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:min(320px,88vw);height:100vh;transform:translateX(-104%);transition:transform .22s ease;box-shadow:var(--shadow-lg)}
  .sidebar.is-open{transform:translateX(0)}
  .sidebar-close,.app-nav-toggle,.public-nav-toggle{display:inline-flex}
  .content-wrap,.topbar{padding-left:20px;padding-right:20px}
  .topbar{padding-top:20px}
  .project-context-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .window-dashboard-preview,.preview-kpis,.hero-proof-row,.auth-shell-premium,.grid-2,.grid-3,.grid-4,.stats-grid,.summary-grid,.price-grid,.profile-stats,.label-preview-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .public-header-row{min-height:72px}
  .public-nav{display:none;position:absolute;left:20px;right:20px;top:76px;padding:16px;border-radius:18px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-md);flex-direction:column;align-items:flex-start}
  .public-nav.is-open{display:flex}
}
@media (max-width:720px){
  .container{width:min(100% - 28px,var(--content))}
  .feature-grid,.workflow-steps,.readiness-strip{grid-template-columns:1fr}
  .page-header,.section-head,.section-row,.page-actions,.topbar-main,.pagination-row{flex-direction:column;align-items:flex-start}
  .project-context-bar{grid-template-columns:1fr}
  .hero-floating-card{position:relative;right:auto;bottom:auto;width:100%}
  .entry-table{min-width:720px}
  .bar-track{min-width:720px}
  .table-totals{flex-direction:column;gap:8px}
  .site-footer{padding-left:18px;padding-right:18px}
}

.list-clean{margin:0;padding-left:18px;display:grid;gap:8px;color:var(--muted)}
.span-2{grid-column:span 2}
.workflow-banner{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;padding:18px 20px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(135deg,#fbfdff,#f2f7ff)}
.workflow-badges{display:flex;gap:10px;flex-wrap:wrap}
.builder-flow-banner{box-shadow:var(--shadow-sm)}
.builder-section-card{padding:20px;border-radius:24px;background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid var(--border)}
.builder-section-head{padding-bottom:8px;border-bottom:1px solid var(--border)}
.builder-section-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.soft-stat{display:grid;gap:3px;padding:10px 12px;border-radius:14px;background:#f6f9fd;border:1px solid var(--border)}
.soft-stat span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.soft-stat strong{font-size:13px}
.builder-tools-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px}
.builder-paste-box,.builder-quick-panel{padding:16px;border-radius:18px;border:1px solid var(--border);background:#fff}
.builder-paste-box textarea{min-height:124px}
.paste-box-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap;margin-bottom:10px}
.builder-table-wrap{border-radius:22px;overflow:hidden;background:#fff}
.builder-entry-table thead th{position:sticky;top:0;background:#f8fbff;z-index:1}
.builder-entry-table tbody tr:hover{background:#fbfdff}
.builder-entry-table td{vertical-align:top}
.builder-entry-table input,.builder-entry-table select{min-height:42px;border-radius:12px;width:100%}
.builder-entry-table .row-actions{display:flex;gap:8px;flex-wrap:wrap}
.table-totals-rich{padding:6px 0}
.builder-action-bar{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center;padding-top:4px}
.status-inline{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:600}
.status-dot{width:10px;height:10px;border-radius:999px;background:var(--primary);box-shadow:0 0 0 4px rgba(29,78,216,.10)}
.premium-bar-card{border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff)}
.premium-bar-track{min-height:72px;padding:8px;border:1px solid #dde9f5;background:linear-gradient(180deg,#eef5fb,#f6faff)}
.bar-seg{display:flex;align-items:center;justify-content:center;border-radius:10px;overflow:hidden;text-align:center;font-weight:700}
.bar-seg span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bar-seg.cut{background:#dbeafe;color:#123a8c}
.bar-seg.offcut{background:#dcfce7;color:#166534}
.bar-seg.scrap{background:#fee2e2;color:#991b1b}
.inventory-profile-cell{display:grid;gap:4px}
.inventory-profile-cell span{font-size:12px;color:var(--muted)}
.inventory-meta-stack{display:grid;gap:4px;font-size:13px;color:var(--muted)}
.inventory-qty{display:inline-flex;min-width:36px;justify-content:center;padding:6px 10px;border-radius:999px;background:#eef5ff;color:var(--primary-strong);font-weight:800}
.inventory-panel-shell{gap:18px}
.inventory-table-wrap table tbody tr:hover{background:#fbfdff}
.warehouse-top-grid,.billing-top-grid,.account-top-grid{align-items:start}
.warehouse-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.inventory-tab-row{position:sticky;top:12px;z-index:5;background:var(--bg);padding-top:4px}
.inventory-section-head{align-items:flex-start}
.billing-summary-list div strong{line-height:1.35}
.billing-status-footnote{display:flex;gap:10px;flex-wrap:wrap}
.price-card.is-current{border-color:#b8d0ff;box-shadow:0 0 0 3px rgba(59,130,246,.10)}
.price-big{font-size:32px;font-weight:800;letter-spacing:-.04em}
.plan-feature-list li{color:var(--text)}
.billing-preview-card{background:linear-gradient(180deg,#fff,#f7fbff)}
.account-user-form input,.account-user-form select,.billing-change-form select{min-height:44px}
.account-metric-grid .metric-card,.warehouse-metric-grid .metric-card{min-height:120px}
.compact-empty-state{padding:18px}
.compact-empty-state h3{font-size:18px}
.table-actions{display:flex;gap:8px;flex-wrap:wrap}

@media (max-width:980px){
  .builder-tools-grid,.warehouse-filter-grid{grid-template-columns:1fr}
  .span-2{grid-column:auto}
}
@media (max-width:720px){
  .workflow-banner,.builder-action-bar,.billing-status-footnote{flex-direction:column;align-items:flex-start}
  .inventory-tab-row{position:static}
  .builder-entry-table{min-width:860px}
}

/* SaaS polish pass */
body.is-public{background:
  radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 22%),
  linear-gradient(180deg,#f7faff 0%,#f3f7fc 48%,#eef4fb 100%)}
body.is-authenticated{background:linear-gradient(180deg,#f6f9fd 0%,#eef4fb 100%)}
.announcement-bar{border-bottom:1px solid rgba(219,229,240,.85);background:#0f172a;color:#dbeafe}
.announcement-bar-row{min-height:42px;display:flex;align-items:center;gap:14px;justify-content:center;flex-wrap:wrap;padding:6px 0;font-size:13px}
.announcement-bar-row p{color:#c4d6f5}
.announcement-bar-row a{color:#fff;font-weight:700}
.announcement-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;background:rgba(255,255,255,.12);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.panel-soft-glow{background:linear-gradient(180deg,#f9fbff,#f1f6ff);border:1px solid #d8e4fb;border-radius:18px;padding:16px;box-shadow:0 12px 30px rgba(37,99,235,.08)}
.sidebar-insight{margin-bottom:18px}
.sidebar-help{display:grid;gap:10px;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.08)}
.sidebar-help-actions{display:flex;gap:10px;flex-wrap:wrap}
.footer-links-app,.footer-links-public{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.topbar-premium{background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.62));backdrop-filter:blur(16px)}
.topbar-meta-strip{display:flex;gap:12px;flex-wrap:wrap;padding-top:14px}
.meta-chip{display:grid;gap:4px;padding:12px 14px;border-radius:16px;border:1px solid var(--border);background:rgba(255,255,255,.88);min-width:180px;box-shadow:var(--shadow-sm)}
.meta-chip strong{font-size:14px;line-height:1.25}
.workspace-hero-card-premium{background:
  radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 35%),
  linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border-radius:30px;padding:28px;border:1px solid #d8e4f3;box-shadow:var(--shadow-md)}
.workspace-story-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.story-chip{padding:18px 20px;border-radius:20px;background:rgba(255,255,255,.92);border:1px solid var(--border);box-shadow:var(--shadow-sm);display:grid;gap:8px}
.story-chip strong{font-size:15px;line-height:1.45}
.compact-story-strip .story-chip{padding:16px 18px}
.landing-hero-grid-premium{align-items:center;gap:34px}
.hero-copy-shell{padding:10px 0}
.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.premium-saas-window{padding:18px;background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 100%);box-shadow:0 32px 80px rgba(15,23,42,.16);position:relative}
.window-title{font-size:12px;font-weight:700;color:var(--muted);margin-left:auto}
.preview-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.preview-card-grid > div{padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--border)}
.trust-band{padding:8px 0 22px}
.trust-band-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:20px 24px;border:1px solid var(--border);border-radius:26px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-sm)}
.logo-rail{display:flex;gap:12px;flex-wrap:wrap}
.logo-rail span{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--border);font-size:13px;font-weight:700;color:var(--muted)}
.section-heading-wide{max-width:960px}
.product-story-grid{align-items:stretch}
.product-story-card{padding:26px}
.product-story-card-contrast{background:linear-gradient(180deg,#eff6ff,#ffffff)}
.plan-inline-list{padding-left:18px;display:grid;gap:8px;color:var(--muted)}
.price-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.dashboard-primary-card,.action-card-premium,.dashboard-help-card,.auth-card-elevated,.auth-showcase-gradient,.demo-form-shell,.demo-result-card{box-shadow:var(--shadow-md)}
.auth-showcase-gradient{background:
  radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 28%),
  linear-gradient(180deg,#ffffff 0%,#f5f9ff 100%)}
.auth-proof-strip,.demo-summary-badges{display:flex;gap:10px;flex-wrap:wrap}
.project-intake-grid{align-items:start}
.demo-hero-card{align-items:flex-end}
@media (max-width:1180px){
  .workspace-story-strip{grid-template-columns:1fr}
}
@media (max-width:980px){
  .preview-card-grid{grid-template-columns:1fr}
  .trust-band-row,.announcement-bar-row{justify-content:flex-start}
  .topbar-meta-strip{padding-top:10px}
}
@media (max-width:720px){
  .announcement-bar-row{align-items:flex-start}
  .workspace-hero-card-premium{padding:22px}
  .meta-chip,.story-chip{width:100%}
  .demo-hero-card{align-items:flex-start}
}


/* March 2026 polish overrides */
.hero-panel{position:relative}
.hero-floating-card{display:none}
.trust-band{padding:4px 0 22px}
.trust-band-row{padding:18px 24px}
.auth-showcase-light,
.auth-showcase-light h1,
.auth-showcase-light h2,
.auth-showcase-light h3,
.auth-showcase-light .muted{color:var(--text)}
.auth-showcase-light .muted{color:var(--muted);opacity:1}
.auth-showcase-light .list-item{border-bottom-color:#e6edf6}
.auth-showcase-light .pill-soft{background:#eef4ff;color:#335792;border-color:#d8e3fb}
.auth-showcase-gradient{background:radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 32%), linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%)}
.preview-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.preview-kpi{min-width:0}
.preview-kpi span{display:block;margin-bottom:6px;line-height:1.2}
.window-dashboard-preview{align-items:stretch}
.preview-main{min-width:0}
.preview-card{overflow:hidden}
.workspace-story-strip{gap:14px}
.story-chip{padding:16px 18px;border-radius:18px;border:1px solid var(--border);background:#fff;box-shadow:var(--shadow-sm)}
.dashboard-side-stack{padding-bottom:10px}
.sidebar{padding-bottom:28px}
.sidebar-help{margin-top:4px}
.sidebar-help p{margin-bottom:12px}
.sidebar-help-actions{display:flex;gap:10px;flex-wrap:wrap}
.site-footer{padding:20px 28px}
.footer-links,.footer-links-app,.footer-links-public{justify-content:flex-start;align-items:center;gap:20px}
.footer-links-app{display:grid;grid-template-columns:repeat(5,max-content);justify-content:space-between;width:100%}
.footer-links-app span{color:var(--text);font-weight:700}
.footer-grid{align-items:flex-start}
.footer-grid-public{justify-content:space-between}
.feature-grid-premium{align-items:stretch}
.feature-card{height:100%}
.product-story-card-contrast{background:linear-gradient(180deg,#f3f7ff,#ffffff)}
.profile-form-panel select{max-width:100%}
select{background-color:#fff}
@media (max-width:980px){
  .footer-links-app{grid-template-columns:1fr 1fr;gap:12px;width:100%}
  .footer-links-app span{grid-column:1/-1}
}
@media (max-width:720px){
  .footer-links,.footer-links-app,.footer-links-public{gap:12px}
  .site-footer{padding:18px 20px}
}

.sidebar{padding-bottom:32px}
.sidebar-help{margin-top:16px;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface-2)}
.sidebar-help-actions .btn{flex:1 1 auto}
.sidebar-mini-list{margin-bottom:8px}
.main-content{min-height:100vh}
.content-wrap{padding:28px 28px 40px}
.site-footer{padding:20px 28px;position:relative;z-index:2}
.footer-links-app{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;text-align:center;gap:16px}
.footer-links-app span{justify-self:start;text-align:left;font-weight:800;color:var(--text)}
.timeline-item{padding:14px 0 14px 20px;border-left:2px solid #d9e4f3;position:relative}
.timeline-item:before{content:'';position:absolute;left:-6px;top:18px;width:8px;height:8px;border-radius:50%;background:var(--primary)}
@media (max-width: 900px){.footer-links-app{grid-template-columns:1fr 1fr;}.footer-links-app span{grid-column:1/-1;justify-self:start}}


/* UI alignment fixes - March 2026 */
.price-grid{align-items:stretch}
.price-card{height:100%}
.price-card .btn{margin-top:auto}
.price-card .list-clean,.price-card .plan-inline-list,.price-card .plan-feature-list{min-height:132px;align-content:start}
.price-grid .price-card{padding-bottom:22px}
.price-grid .price-card .price-card-head{align-items:flex-start}

.footer-links-app{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.footer-link-cluster{display:flex;align-items:center;justify-content:flex-start;gap:16px 22px;flex-wrap:wrap}
.footer-link-cluster a{white-space:nowrap}

.warehouse-filter-card label{display:grid;gap:8px}
.warehouse-filter-grid{align-items:end}
.warehouse-filter-grid label,.warehouse-filter-grid select{width:100%}
.warehouse-filter-card .page-actions{align-items:center}

@media (max-width:980px){
  .footer-links-app{align-items:flex-start}
  .footer-link-cluster{gap:12px 16px}
}
@media (max-width:720px){
  .footer-links-app{flex-direction:column;align-items:flex-start}
  .footer-link-cluster{width:100%}
  .price-card .list-clean,.price-card .plan-inline-list,.price-card .plan-feature-list{min-height:0}
}

/* Pricing CTA baseline fix - March 2026 */
.price-grid .price-card{display:flex;flex-direction:column;height:100%}
.price-card-content{display:grid;gap:14px;align-content:start;flex:1 1 auto}
.price-card-copy{min-height:72px}
.price-card-actions{margin-top:auto;padding-top:6px}
.price-grid .price-card .plan-inline-list{min-height:112px}
.price-grid .enterprise-card .price-card-head{min-height:28px}
@media (max-width:720px){
  .price-card-copy,.price-grid .price-card .plan-inline-list{min-height:0}
}


.billing-activate-grid{align-items:start;gap:28px}
.billing-activate-copy h1{font-size:clamp(2.6rem,4.8vw,4.4rem);max-width:8ch;line-height:.96;overflow-wrap:anywhere}
.billing-activate-copy .muted{max-width:62ch}
@media (max-width: 980px){
  .billing-activate-copy h1{max-width:none;font-size:clamp(2.4rem,10vw,3.6rem);overflow-wrap:normal}
}

.password-field{position:relative;display:flex;align-items:center}
.password-field input{padding-right:84px}
.password-toggle{position:absolute;right:10px;border:0;background:transparent;color:var(--primary-strong);font-weight:700;cursor:pointer;padding:6px 8px;border-radius:10px}
.password-toggle:hover{background:#eef4ff}
.auth-link-row{margin-top:-6px}
.warehouse-page-tools{display:grid;gap:20px}
.warehouse-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.warehouse-intake-stack{display:grid;gap:20px}
.sidebar-help-actions .btn{min-width:0}


/* March 2026 final UI fixes */
.sidebar{overflow-y:auto;overflow-x:hidden;padding-bottom:22px}
.sidebar-section.sidebar-recent{display:grid;min-height:0;flex:1 1 auto}
.sidebar-mini-list{overflow:auto;padding-right:4px;max-height:min(26vh,220px)}
.sidebar-help{margin-top:auto;position:static;background:linear-gradient(180deg,rgba(248,251,255,.92),#f8fbff);border-radius:18px}
.sidebar-logout-form{padding-top:12px;background:linear-gradient(180deg,transparent,#f7fbff 32%)}
.password-checkbox{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--muted);margin-top:-6px}
.password-checkbox input{width:auto;margin:0}
.warehouse-actions-grid,.warehouse-intake-stack{align-items:start}
.warehouse-intake-card{height:fit-content}
.warehouse-filter-card .page-actions{justify-content:space-between}
.warehouse-filter-grid-wide{grid-template-columns:repeat(3,minmax(0,1fr))}
#warehouse-filter-profile:disabled,#warehouse-filter-variant:disabled{background:var(--surface-2);color:var(--muted)}
@media (max-width:980px){
  .warehouse-actions-grid,.warehouse-filter-grid-wide{grid-template-columns:1fr}
  .warehouse-intake-stack{grid-template-columns:1fr}
}

/* Dashboard / auth / sidebar polish - March 2026 */
.sidebar-insight{padding:14px 16px;min-height:auto}
.sidebar-insight h4{margin:0;font-size:1.02rem}
.sidebar-help-actions--single .btn{width:100%;justify-content:center}
.sidebar-help{gap:8px}
.sidebar-help p{margin:0 0 8px}
.sidebar-mini-list{max-height:min(22vh,180px)}

.password-field{position:relative;display:flex;align-items:center}
.password-field input{padding-right:84px}
.password-toggle{position:absolute;right:10px}

.price-card.is-current{position:relative;border:1px solid #cddcff;background:linear-gradient(180deg,#ffffff,#f8fbff);box-shadow:0 8px 24px rgba(59,130,246,.08)}
.price-card.is-current .price-card-head{margin-bottom:4px;padding-right:0}
.price-card.is-current .pill{align-self:flex-start}

.bug-report-card textarea{min-height:96px}
.compact-form{gap:14px}
.compact-list .list-item{padding:10px 0}

@media (max-width:900px){
  .sidebar{padding:18px 16px 28px;width:min(300px,86vw)}
  .sidebar-mini-list{max-height:min(18vh,140px)}
}

 .builder-bottom-nav-card {
  margin-top: 1.25rem;
  position: sticky;
  bottom: 12px;
  z-index: 24;
  border: 1px solid rgba(47, 109, 246, 0.14);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.builder-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.builder-bottom-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex: 1 1 24rem;
}
.builder-bottom-nav-links .btn.active,
.builder-bottom-nav-links .btn.btn-primary {
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.18);
}

@media (max-width: 900px) {
  .builder-bottom-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .builder-bottom-nav-links {
    justify-content: stretch;
  }

  .builder-bottom-nav-links .btn {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }
}

.builder-profile-switcher-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.builder-profile-switcher-controls select {
  min-width: 320px;
  max-width: 100%;
}

.builder-profile-switcher-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-readiness-chip {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "dot name"
    "dot status";
  align-items: center;
  gap: 3px 8px;
  min-height: 42px;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.section-readiness-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.section-readiness-dot {
  grid-area: dot;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.section-readiness-name {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-readiness-status {
  grid-area: status;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-readiness-chip.is-ready {
  background: #eefaf2;
  border-color: #bde5c8;
  color: #166534;
}

.section-readiness-chip.is-ready .section-readiness-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.section-readiness-chip.is-attention {
  background: #fff1f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.section-readiness-chip.is-attention .section-readiness-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.section-readiness-chip.is-active {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .20), var(--shadow-sm);
}

.section-readiness-chip.is-active.is-ready {
  border-color: #16a34a;
}

.section-readiness-chip.is-active.is-attention {
  border-color: #dc2626;
}

.pill-primary {
  background: rgba(29, 78, 216, 0.14);
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.28);
}

.compact-actions {
  gap: 8px;
}
.stock-plan-wrap{overflow:auto}
.stock-plan-row td{vertical-align:top}
.stock-supply-cell{display:grid;gap:10px}
.trace-source-card{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#f8fbff}
.trace-source-label{font-size:13px;line-height:1.3}
.trace-source-note{line-height:1.35}
.traceability-stack{display:grid;gap:8px}
.trace-pill-row{display:flex;gap:8px;flex-wrap:wrap}
.trace-pill{display:inline-flex;gap:6px;align-items:center;padding:8px 10px;border-radius:999px;background:#f5f9ff;border:1px solid #d7e5f7;font-size:12px;color:var(--text)}
.stock-plan-row[data-warehouse-linked="false"] .trace-pill strong{color:var(--muted)}

.dashboard-kpis-secondary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
}
.dashboard-summary-card .summary-list {
  display: grid;
  gap: 12px;
}
.summary-list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.summary-list-row:last-child { border-bottom: 0; }
.docs-page .page-header,
.doc-card,
.faq-card {
  border-radius: 24px;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.doc-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-card {
  padding: 22px 24px;
}
.faq-card h3,
.doc-card h3,
.help-rule-item strong {
  margin: 0 0 8px;
}
.help-rule-list {
  display: grid;
  gap: 14px;
}
.help-rule-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
}
.stock-plan-table th,
.stock-plan-table td {
  vertical-align: top;
}
.stock-plan-table .stock-supply-cell {
  min-width: 184px;
  display: grid;
  gap: 10px;
}
.stock-plan-table input[type="number"],
.stock-plan-table .stock-source-select {
  min-width: 120px;
}
.trace-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.trace-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: #173b72;
}
.trace-source-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.builder-tools-grid {
  align-items: stretch;
}
.builder-quick-panel {
  padding: 18px;
}
.builder-quick-panel p,
.builder-section-head p,
.page-intro,
.muted.small {
  line-height: 1.5;
}
.activity-feed--wide .timeline-item {
  gap: 6px;
}
@media (max-width: 1180px) {
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}

.readiness-strip--full .readiness-item{min-width:0}
.stock-supply-cell .warehouse-reference-select{display:block;opacity:1}
.trace-pill{max-width:100%;overflow:hidden}
.trace-pill strong{display:inline-block;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.stock-supply-cell{display:grid;gap:10px;align-items:start}
.stock-supply-cell .stock-source-select,.stock-supply-cell .warehouse-reference-select{width:100%}
.trace-source-card{min-height:84px}
.traceability-stack .muted.small{line-height:1.4}

.stock-supply-cell .warehouse-reference-select:disabled{opacity:.7;cursor:not-allowed}
.stock-supply-cell{grid-template-rows:auto auto 1fr}
.trace-pill-row{display:flex;flex-wrap:wrap;gap:8px}
.trace-pill{display:inline-flex;gap:4px;align-items:center}


.optimize-run-form-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);gap:16px 18px;align-items:end}.optimize-run-form-card > label{margin:0}.optimize-run-form-card > button{justify-self:start;align-self:start;margin-top:0}.optimize-run-form-card #optimize-profile-group,.optimize-run-form-card #report-profile-group{grid-column:1 / -1}.optimize-run-form-card .btn{min-width:170px}@media (max-width:900px){.optimize-run-form-card{grid-template-columns:1fr}.optimize-run-form-card > button,.optimize-run-form-card #optimize-profile-group,.optimize-run-form-card #report-profile-group{grid-column:auto}}


body.label-preview-page .topbar-meta-strip { display:none; }
@media print {
  body.label-preview-page .sidebar,
  body.label-preview-page .topbar,
  body.label-preview-page .site-footer,
  body.label-preview-page .app-overlay,
  body.label-preview-page .public-header,
  body.label-preview-page .announcement-bar,
  body.label-preview-page .no-print { display:none !important; }
  body.label-preview-page .content-wrap,
  body.label-preview-page .main-content,
  body.label-preview-page .app-shell,
  body.label-preview-page .page-stack.print-shell { padding:0 !important; margin:0 !important; max-width:none !important; }
  body.label-preview-page .label-preview-grid { gap:8mm !important; }
}


/* v13 targeted cleanup */
.sidebar-plan,.sidebar-section.sidebar-recent{display:none !important;}
.topbar-actions .project-switcher-form{display:none !important;}
.sidebar-help{margin-top:18px;}

.builder-bottom-nav-card{left:auto;right:auto;overflow:visible;}
.builder-bottom-nav--grid{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;}
.builder-bottom-nav-next{justify-self:end;}
.builder-bottom-nav-links{min-width:0;justify-content:center;}
.builder-bottom-nav-links .btn{white-space:nowrap;}
@media (max-width:980px){
  .builder-bottom-nav--grid{grid-template-columns:1fr;align-items:stretch;}
  .builder-bottom-nav-next{justify-self:stretch;width:100%;}
}

.optimize-card-refined .page-actions.optimize-actions{justify-content:flex-start;margin-top:10px;}
.optimize-card-refined .optimize-run-btn{min-width:172px;}
.optimize-card-refined .tab-row{margin-top:16px;}

.label-preview-grid--cards{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:22px;}
.print-label-card{padding:18px 20px;border:1px solid #cdd8e8;border-radius:20px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.06);display:grid;gap:12px;min-height:240px;}
.label-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.label-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef4ff;border:1px solid #c9d8ff;color:#1d4ed8;font-weight:700;font-size:12px;}
.label-title{font-size:12px;letter-spacing:.12em;color:#64748b;font-weight:800;}
.label-code{font-size:28px;line-height:1;font-weight:800;color:#0f172a;}
.label-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;}
.label-lines div{display:grid;gap:2px;padding:8px 10px;border-radius:12px;background:#f8fbff;border:1px solid #e3ebf6;}
.label-lines span{font-size:12px;color:#64748b;font-weight:700;}
.label-lines strong{font-size:16px;color:#0f172a;line-height:1.25;overflow-wrap:anywhere;}
.label-qr-note{font-size:13px;color:#475569;border-top:1px dashed #d6e0ee;padding-top:10px;}
@media (max-width:720px){.label-lines{grid-template-columns:1fr;}}

.help-grid,.docs-grid,.faq-grid{margin-top:12px;}

/* v15 optimize scope disable state */
.scope-select-group.is-disabled{opacity:.58;}
.scope-select-group.is-disabled select{background:#eef2f7;color:#6b7a90;cursor:not-allowed;}
.scope-select-group.is-disabled .field-help{color:#6b7a90;}


/* Global loading overlay */
.loading-overlay{position:fixed;inset:0;background:rgba(248,250,252,.78);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity .18s ease}
body.is-loading .loading-overlay{opacity:1;pointer-events:auto}
.loading-orb{display:flex;align-items:center;gap:14px;padding:18px 22px;border:1px solid #cbd5e1;border-radius:20px;background:#fff;box-shadow:0 20px 45px rgba(15,23,42,.12)}
.loading-orb-mark{width:26px;height:26px;border-radius:999px;border:3px solid #2563eb;border-top-color:#dbeafe;animation:fabricata-spin .85s linear infinite;position:relative}
.loading-orb-mark::after{content:'';position:absolute;inset:4px;border-radius:999px;background:#e2e8f0}
.loading-orb-copy{display:flex;flex-direction:column;gap:2px}.loading-orb-copy strong{font-size:14px;color:#0f172a}.loading-orb-copy span{font-size:12px;color:#64748b}
@keyframes fabricata-spin{to{transform:rotate(360deg)}}

.scope-select-group.is-disabled select,.scope-select-group select.is-disabled{opacity:.52;background:#f8fafc;color:#94a3b8;cursor:not-allowed}
.scope-select-group.is-disabled .field-help{color:#94a3b8}
.label-brand{height:18px;width:auto;object-fit:contain}
.label-qr-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px dashed #cbd5e1}
.label-qr-image{width:72px;height:72px;object-fit:contain;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:4px}
.label-qr-note{flex:1}


.coming-soon-hero{padding:56px 0 72px;background:radial-gradient(circle at 12% 10%,rgba(37,99,235,.12),transparent 28%),radial-gradient(circle at 88% 18%,rgba(15,118,110,.12),transparent 24%),linear-gradient(180deg,#f9fcff 0%,#f2f6fb 100%)}
.coming-soon-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center}
.countdown-card{padding:22px;border-radius:22px;background:rgba(255,255,255,.84);border:1px solid var(--border);box-shadow:var(--shadow-md)}
.countdown-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.countdown-grid div{padding:16px;border-radius:18px;background:#fff;border:1px solid var(--border);text-align:center}
.countdown-grid strong{display:block;font-size:2rem;line-height:1.05}
.countdown-grid span{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.coming-soon-panel{padding:24px}
.admin-grid{align-items:start}
.table-wrap{overflow:auto}
.data-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.data-table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);text-align:left;padding:0 10px}
.data-table td{padding:10px;background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.data-table td:first-child{border-left:1px solid var(--border);border-radius:14px 0 0 14px}
.data-table td:last-child{border-right:1px solid var(--border);border-radius:0 14px 14px 0}
.data-table input,.data-table select{min-width:120px}
@media (max-width:980px){.coming-soon-grid{grid-template-columns:1fr}.countdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Reworked landing page */
.landing-hero-grid-reworked{grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);align-items:stretch}
.hero-copy-shell-reworked{padding-right:10px}
.hero-proof-row-reworked{grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}
.landing-workspace-art{padding:0;overflow:hidden;background:linear-gradient(180deg,#ffffff,#f7fbff)}
.workspace-art-window{display:grid;min-height:100%;background:linear-gradient(180deg,#ffffff,#f6faff)}
.workspace-art-body{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:720px}
.workspace-art-sidebar{padding:20px;border-right:1px solid var(--border);background:linear-gradient(180deg,#f9fbff,#f2f7fe);display:grid;gap:18px;align-content:start}
.workspace-art-brand{display:flex;align-items:center;gap:12px}
.workspace-art-nav{display:grid;gap:8px}
.workspace-art-nav-item{padding:12px 14px;border-radius:14px;background:#fff;border:1px solid var(--border);color:var(--muted);font-weight:700}
.workspace-art-nav-item.active{background:var(--primary-soft);border-color:#cadcff;color:var(--primary-strong)}
.workspace-art-sidecard{padding:16px;border-radius:18px;border:1px solid var(--border);background:#fff;box-shadow:var(--shadow-sm)}
.workspace-art-sidecard strong{display:block;margin:8px 0 6px;font-size:18px}
.workspace-art-main{padding:20px}
.workspace-art-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.workspace-art-header h3{margin:6px 0 0;font-size:1.6rem;line-height:1.15}
.workspace-art-actions{display:flex;gap:10px;flex-wrap:wrap}
.workspace-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.workspace-stage-strip-reworked{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.preview-stage-card{padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff;display:grid;gap:4px}
.preview-stage-card strong{font-size:14px}
.preview-stage-card span{font-size:12px;color:var(--muted)}
.preview-stage-card.active{background:var(--primary-soft);border-color:#cadcff}
.workspace-panels-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:16px}
.workspace-panel{min-width:0}
.table-wrap-preview table{font-size:14px}
.workspace-mini-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.workspace-mini-metrics .soft-panel{padding:14px;border-radius:16px}
.workspace-mini-metrics span{display:block;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.workspace-mini-metrics strong{display:block;margin-top:8px;font-size:22px}
.label-preview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(140px,.85fr);gap:12px;align-items:start}
.label-preview-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff}
.label-preview-qr{width:96px;height:96px;border-radius:12px;background:
linear-gradient(90deg,#0f172a 12px,transparent 12px) 0 0/24px 24px,
linear-gradient(#0f172a 12px,transparent 12px) 0 0/24px 24px,
linear-gradient(90deg,transparent 12px,#0f172a 12px) 0 12px/24px 24px,
linear-gradient(transparent 12px,#0f172a 12px) 12px 0/24px 24px,
#fff;border:1px solid var(--border)}
.label-preview-copy{display:grid;gap:6px;min-width:0}
.label-preview-copy strong{font-size:16px;line-height:1.2}
.label-preview-copy span{color:var(--muted);font-size:13px;word-break:break-word}
.dashboard-style-feature-grid .feature-card,.landing-story-grid-reworked .product-story-card{box-shadow:var(--shadow-sm)}
@media (max-width:1180px){.landing-hero-grid-reworked{grid-template-columns:1fr}.workspace-art-body{grid-template-columns:1fr}.workspace-art-sidebar{display:none}.workspace-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-stage-strip-reworked{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-panels-grid{grid-template-columns:1fr}}
@media (max-width:720px){.workspace-stage-strip-reworked,.workspace-kpi-grid,.workspace-mini-metrics,.label-preview-grid{grid-template-columns:1fr}.label-preview-card{grid-template-columns:1fr;justify-items:start}.label-preview-qr{width:84px;height:84px}.hero-proof-row-reworked{grid-template-columns:1fr}}

/* Landing page redesign v5 */
.landing-v5-hero{padding:48px 0 34px;background:radial-gradient(circle at 10% 10%,rgba(37,99,235,.10),transparent 28%),radial-gradient(circle at 92% 12%,rgba(15,118,110,.08),transparent 22%),linear-gradient(180deg,#f9fcff 0%,#f3f7fc 100%)}
.landing-v5-hero-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(540px,1.08fr);gap:32px;align-items:center}
.landing-v5-copy{padding:8px 0}
.landing-v5-trust-points{display:grid;gap:12px}
.landing-v5-trust-card{padding:18px 20px;border:1px solid var(--border);border-radius:20px;background:rgba(255,255,255,.78);box-shadow:var(--shadow-sm)}
.landing-v5-trust-card strong{display:block;margin-top:8px;font-size:15px;line-height:1.45}
.landing-v5-visual{padding:0;overflow:hidden;background:linear-gradient(180deg,#ffffff,#f7fbff);box-shadow:var(--shadow-md)}
.landing-v5-window-topbar{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fbfdff,#f3f8fe)}
.landing-v5-visual-shell{padding:22px}
.landing-v5-overview{display:grid;gap:18px;padding:22px;border:1px solid var(--border);border-radius:24px;background:#fff}
.landing-v5-overview h3{font-size:clamp(1.65rem,2.4vw,2.3rem);line-height:1.06;max-width:11ch}
.landing-v5-chips,.landing-v5-action-row{display:flex;gap:10px;flex-wrap:wrap}
.landing-v5-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.landing-v5-kpi{padding:16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,#fbfdff,#f6faff);display:grid;gap:8px}
.landing-v5-kpi span{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}
.landing-v5-kpi strong{font-size:2rem;line-height:1;font-weight:800;letter-spacing:-.04em}
.landing-v5-kpi small{font-size:13px;line-height:1.45;color:var(--muted)}
.landing-v5-action-pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);font-weight:700;color:#46607f}
.landing-v5-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.landing-v5-preview-card{padding:18px;border:1px solid var(--border);border-radius:22px;background:#fff;display:grid;gap:14px;align-content:start}
.landing-v5-preview-card--wide{grid-column:span 1}
.landing-v5-preview-list,.landing-v5-stat-lines,.landing-v5-report-list{display:grid;gap:12px}
.landing-v5-preview-list div,.landing-v5-stat-lines div{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid #edf2f7}
.landing-v5-preview-list div:last-child,.landing-v5-stat-lines div:last-child{padding-bottom:0;border-bottom:0}
.landing-v5-preview-list strong,.landing-v5-report-list strong,.landing-v5-label-copy strong{font-size:1rem;line-height:1.3}
.landing-v5-preview-list span,.landing-v5-stat-lines span,.landing-v5-label-copy span,.landing-v5-report-list li{font-size:14px;line-height:1.5;color:var(--muted)}
.landing-v5-stat-lines strong{font-size:1.2rem;line-height:1.15}
.landing-v5-label-row{display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;align-items:start}
.landing-v5-label-copy{display:grid;gap:6px;min-width:0}
.landing-v5-qr{width:84px;height:84px;border-radius:16px;border:1px solid var(--border);background:
radial-gradient(circle at 9px 9px,#fff 0 2px,transparent 2px) 0 0/18px 18px,
#0f2347}
.landing-v5-report-list ul{margin:0;padding-left:18px;display:grid;gap:8px}
.landing-v5-value-bar{padding:0 0 16px}
.landing-v5-value-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.landing-v5-value-row span{padding:16px 18px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.9);box-shadow:var(--shadow-sm);text-align:center;font-weight:750;color:#355273}
.landing-v5-story-stack{display:grid;gap:18px}
.landing-v5-story-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.86fr);gap:28px;align-items:center}
.landing-v5-story-row:nth-child(even){grid-template-columns:minmax(320px,.86fr) minmax(0,1fr)}
.landing-v5-story-copy{padding-right:10px}
.landing-v5-story-visual{min-width:0}
.landing-v5-wire-card{padding:22px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(180deg,#f9fbff,#f3f8fe);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.landing-v5-wire-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 16px;border:1px solid #d8e4f3;border-radius:18px;background:#fff;margin-bottom:12px}
.landing-v5-wire-row span{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.landing-v5-wire-row strong{font-size:15px;line-height:1.35;color:#28415d;text-align:right}
.landing-v5-wire-bars{display:grid;gap:12px;margin-top:18px}
.landing-v5-wire-bars span{display:block;height:12px;border-radius:999px;background:linear-gradient(90deg,#d7e3f3,#edf3fb)}
.landing-v5-wire-bars span:nth-child(1){width:100%}
.landing-v5-wire-bars span:nth-child(2){width:64%}
.landing-v5-wire-bars span:nth-child(3){width:88%}
.landing-v5-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.landing-v5-metric-grid div{padding:16px;border-radius:18px;border:1px solid #d8e4f3;background:#fff;display:grid;gap:8px}
.landing-v5-metric-grid span{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.landing-v5-metric-grid strong{font-size:1.3rem;line-height:1.15}
.landing-v5-report-block{display:grid;gap:10px}
.landing-v5-report-block strong{font-size:1.1rem}
.landing-v5-report-block span{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #d8e4f3;border-radius:16px;background:#fff;color:#355273;font-weight:700}
.landing-v5-steps{grid-template-columns:repeat(6,minmax(0,1fr))}
.landing-v5-diff-grid{align-items:stretch}
.landing-v5-dark-panel{background:linear-gradient(135deg,#132d68,#1f4ac8);color:#fff;box-shadow:var(--shadow-lg)}
.landing-v5-dark-panel h3,.landing-v5-dark-panel p,.landing-v5-dark-panel .eyebrow{color:#fff}
.landing-v5-dark-panel .eyebrow{opacity:.78}
.landing-v5-dark-panel .btn-secondary{background:#fff;border-color:rgba(255,255,255,.9);color:#0f2347}
.landing-v5-price-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.list-clean{margin:0;padding-left:18px;display:grid;gap:10px}
.list-clean li{color:var(--muted)}

.landing-v5-overview-sub{margin:2px 0 0;font-size:14px;line-height:1.55;color:var(--muted);max-width:52ch}
.landing-v5-chips{margin-top:6px}
.landing-v5-action-row{padding-top:2px}
.landing-v5-overview h3{margin:0}
.landing-v5-preview-card--wide{padding:16px 18px}
.landing-v5-label-row{grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center}
.landing-v5-label-copy strong{font-size:1.05rem}
.landing-v5-label-copy span{line-height:1.45}
.landing-v5-qr{position:relative;width:72px;height:72px;border-radius:18px;border:1px solid #d9e5f2;background:#0f2347;display:grid;place-items:center;overflow:hidden}
.landing-v5-qr:before{content:"";position:absolute;inset:10px;background-image:radial-gradient(circle,#fff 0 2px,transparent 2.2px);background-size:14px 14px;background-position:0 0;opacity:.95}
.landing-v5-qr span{position:absolute;width:10px;height:10px;border-radius:3px;background:#fff;z-index:2}
.landing-v5-qr span:nth-child(1){top:8px;left:8px}.landing-v5-qr span:nth-child(2){top:8px;right:8px}.landing-v5-qr span:nth-child(3){bottom:8px;left:8px}.landing-v5-qr span:nth-child(4){bottom:8px;right:8px}
.pricing-note-bar{padding:14px 18px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-sm);font-weight:700;color:#355273}
.annual-note{min-height:20px;color:#56708f}
.landing-v5-price-grid{align-items:stretch}
.enterprise-card{background:linear-gradient(180deg,#fbfdff,#f5f9ff)}


@media (max-width:1180px){
  .landing-v5-hero-grid,.landing-v5-story-row,.landing-v5-story-row:nth-child(even){grid-template-columns:1fr}
  .landing-v5-copy{order:1}
  .landing-v5-visual{order:2}
  .landing-v5-kpis,.landing-v5-value-row,.landing-v5-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .landing-v5-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .landing-v5-hero{padding:34px 0 24px}
  .landing-v5-window-topbar,.landing-v5-visual-shell,.landing-v5-overview,.landing-v5-preview-card,.landing-v5-wire-card{padding:16px}
  .landing-v5-kpis,.landing-v5-preview-grid,.landing-v5-value-row,.landing-v5-metric-grid,.landing-v5-price-grid,.landing-v5-steps{grid-template-columns:1fr}
  .landing-v5-label-row{grid-template-columns:1fr}
  .landing-v5-qr{width:72px;height:72px}
  .landing-v5-overview h3{max-width:none}
}


/* Final production hardening sweep */
body{line-height:1.65}
p,.muted,.page-intro,.section-lead,.lead{line-height:1.7}
.card,.sub-card,.metric-card,.status-card,.workflow-step,.price-card,.auth-card,.auth-showcase{border-color:rgba(197,210,224,.92);box-shadow:0 14px 34px rgba(15,23,42,.06)}
.card:hover,.price-card:hover,.workflow-step:hover{box-shadow:0 18px 44px rgba(15,23,42,.08)}
.btn{min-height:44px;letter-spacing:-.01em}
.btn-secondary,.btn-tertiary,.btn-ghost{color:#1f334d}
label{font-size:14px}
input,select,textarea{min-height:46px}
textarea{line-height:1.55}

input[type="checkbox"],input[type="radio"]{width:auto;min-height:auto;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--primary);box-shadow:none}
.checkbox-row{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--muted);margin-top:-6px;cursor:pointer}
.checkbox-row input{margin:0;flex:0 0 auto}
.checkbox-row span{line-height:1.2}
.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;border-radius:18px}
table{min-width:100%}
thead th{white-space:normal;word-break:keep-all;line-height:1.35}
tbody td{line-height:1.5;word-break:break-word}
.summary-list>div,.meta-list>div,.detail-list>div{align-items:flex-start}
.public-nav a{padding:8px 0}
.public-nav a:not(.btn){position:relative}
.public-nav a:not(.btn)::after{content:'';position:absolute;left:0;bottom:2px;width:100%;height:2px;background:rgba(37,99,235,.18);transform:scaleX(0);transform-origin:left;transition:transform .18s ease}
.public-nav a:not(.btn):hover::after{transform:scaleX(1)}
.loading-overlay{position:fixed;inset:0;display:grid;place-items:center;background:rgba(244,247,251,.68);backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:80}
body.is-loading .loading-overlay{opacity:1;pointer-events:auto}
.loading-orb{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-md)}
.loading-orb-mark{width:18px;height:18px;border-radius:999px;border:3px solid var(--primary);border-top-color:transparent;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-orb-copy{display:grid;gap:2px}
.loading-orb-copy span{font-size:13px;color:var(--muted)}
.auth-shell{padding:32px 0 42px}
.auth-card h1,.auth-card h2{font-size:clamp(1.85rem,2.6vw,2.5rem)}
.workspace-hero-card,.page-header{padding:24px 24px 22px}
.billing-top-grid,.account-top-grid,.account-team-grid{align-items:start}
.inventory-profile-cell span,.inventory-meta-stack span{line-height:1.45}
.inventory-meta-stack{display:grid;gap:4px}
.landing-v5-hero-grid{gap:40px}
.landing-v5-visual-shell{padding:20px}
.landing-v5-overview{gap:16px}
.landing-v5-action-row{padding-top:4px}
.landing-v5-preview-grid--clean{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.landing-v5-preview-card{min-width:0}
.landing-v5-preview-card--wide{grid-column:1 / -1}
.landing-v5-wire-row{display:grid;grid-template-columns:124px minmax(0,1fr);gap:14px;align-items:start}
.landing-v5-wire-row strong{font-size:15px;line-height:1.4;text-align:left;word-break:break-word}
.landing-v5-wire-row span{display:block}
.landing-v5-dark-panel{border-color:rgba(255,255,255,.14)}
.landing-v5-dark-panel p{opacity:.92}
.label-card-preview,.print-label-card{border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}
.label-lines div{align-items:start}
.price-card-content,.price-card-actions{display:grid;gap:16px}
.page-actions .btn,.hero-actions .btn{white-space:nowrap}
@media (max-width:1180px){.price-grid,.feature-grid,.workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.public-nav{gap:14px}.landing-v5-preview-grid--clean{grid-template-columns:1fr}}
@media (max-width:860px){.form-grid,.grid-2,.summary-grid,.grid-3,.grid-4,.stats-grid,.price-grid,.feature-grid,.workflow-steps,.billing-top-grid,.account-top-grid,.account-team-grid{grid-template-columns:1fr}.public-nav{display:none;position:absolute;left:20px;right:20px;top:72px;padding:16px;background:rgba(255,255,255,.98);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-md)}.public-nav.is-open{display:grid}.public-nav-toggle{display:inline-flex}.container{width:min(var(--content),calc(100% - 28px))}}
@media (max-width:760px){h1{line-height:1.02}.landing-v5-kpi strong{font-size:1.55rem}.landing-v5-wire-row{grid-template-columns:1fr}.landing-v5-value-row span{text-align:left}.table-wrap{border-radius:16px}}

.workspace-hero-card h2,.page-header h2{margin:0 0 8px;line-height:1.15;max-width:22ch}
.workspace-hero-card .page-intro,.page-header .page-intro{max-width:72ch;line-height:1.65;margin:0}
.page-actions{align-items:center}
.public-nav-cta{padding:11px 18px;line-height:1.15;border-radius:14px}
.public-nav .btn{padding:11px 18px}
.table-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inline-form{display:inline-flex;margin:0}
.pricing-note-bar{line-height:1.55}
.price-card-copy{line-height:1.6}
@media (max-width:860px){.workspace-hero-card,.page-header{padding:20px 18px}.workspace-hero-card h2,.page-header h2{max-width:none}}


.public-label-grid{align-items:start}
.public-label-card{min-height:100%}
.public-label-card .summary-list{gap:12px}
.public-label-card--note{justify-content:center}
@media (max-width:720px){.public-label-grid{grid-template-columns:1fr}}

/* Fabricata Cut light blue remediation - May 2026 */
:root{
  --bg:#f4f7fb;
  --bg-2:#eef3f9;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --surface-3:#eef4ff;
  --border:#dbe5f0;
  --border-strong:#c5d2e0;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --primary:#2563eb;
  --primary-strong:#1d4ed8;
  --primary-soft:#e9f1ff;
  --teal:#0f766e;
  --teal-soft:#e8fbf8;
  --success:#16a34a;
  --success-soft:#ebf9ef;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
  --danger:#dc2626;
  --danger-soft:#fef2f2;
  --shadow-sm:0 10px 24px rgba(15,23,42,.06);
  --shadow-md:0 20px 48px rgba(15,23,42,.09);
  --shadow-lg:0 28px 70px rgba(15,23,42,.13);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:12px;
}

body,body.is-public,body.is-authenticated{
  background:
    radial-gradient(circle at 8% 0,rgba(37,99,235,.08),transparent 24%),
    radial-gradient(circle at 92% 6%,rgba(14,165,233,.08),transparent 24%),
    linear-gradient(180deg,#f8fbff 0%,#f3f7fc 48%,#eef4fb 100%);
  color:var(--text);
}

h1{font-size:clamp(2.6rem,5vw,4.75rem)}
h2{font-size:clamp(2rem,3vw,3rem)}
h1,h2,h3,h4,.brand-title{letter-spacing:0}
.lead{font-size:1.08rem;line-height:1.75;color:var(--muted)}

.public-shell{background:transparent}
.announcement-bar{background:linear-gradient(90deg,#eaf2ff,#f7fbff);color:var(--text);border-bottom:1px solid var(--border)}
.announcement-bar-row p{color:var(--muted)}
.announcement-bar-row a{color:var(--primary-strong);font-weight:800}
.announcement-pill{background:#fff;color:var(--primary-strong);border:1px solid #cfe0ff}
.public-header{background:rgba(255,255,255,.86);border-bottom:1px solid rgba(219,229,240,.88);backdrop-filter:blur(16px)}
.public-header .brand-title,.public-header .brand-subtitle,.public-nav a:not(.btn){color:var(--text)}
.public-header .brand-subtitle,.public-nav a:not(.btn){color:var(--muted)}
.public-nav a:not(.btn):hover{color:var(--primary-strong)}
.site-footer{background:#fff;color:var(--text);border-top:1px solid var(--border)}
.site-footer .brand-title,.site-footer a{color:var(--text)}
.site-footer a:hover{color:var(--primary-strong)}
.site-footer .muted{color:var(--muted)}

.brand-mark.hex{background:linear-gradient(135deg,#fff,#e7efff);border-color:#c8d8ff;box-shadow:inset 0 0 0 5px rgba(37,99,235,.07)}
.brand-mark.hex:after{border-color:var(--teal)}

.card,.sub-card,.hero-panel,.table-card,.empty-state,.status-card,.metric-card,.saas-window,.workflow-step,.price-card,.auth-card,.auth-showcase,.landing-v5-preview-card,.landing-v5-trust-card,.landing-v5-wire-card{
  border-radius:var(--radius-lg);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}
.card,.price-card,.workflow-step,.metric-card,.status-card,.interactive-card,.project-card,.landing-v5-preview-card,.landing-v5-trust-card,.landing-v5-wire-card{
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease,color .2s ease;
}
.card:hover,.price-card:hover,.workflow-step:hover,.metric-card:hover,.status-card:hover,.interactive-card:hover,.project-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 44px rgba(37,99,235,.12);
  border-color:#9db8ff;
}
.interactive-card{cursor:pointer}
.interactive-card .feature-icon,.interactive-card .workflow-index,.interactive-card .landing-v5-qr,.interactive-card .brand-mark{transition:transform .2s ease,box-shadow .2s ease}
.interactive-card:hover .feature-icon,.interactive-card:hover .workflow-index,.interactive-card:hover .landing-v5-qr{transform:translateY(-2px)}

.btn{
  min-height:44px;
  padding:12px 17px;
  border-radius:14px;
  font-weight:800;
  color:var(--text);
  background:#fff;
  border-color:var(--border);
}
.btn:hover{color:var(--text);background:#f8fbff;border-color:#adc4ff;box-shadow:0 12px 28px rgba(37,99,235,.12);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(37,99,235,.16)}
.btn-primary,.btn-primary:visited{background:linear-gradient(135deg,var(--primary),var(--primary-strong));border-color:var(--primary);color:#fff;box-shadow:0 14px 30px rgba(37,99,235,.22)}
.btn-primary:hover,.btn-primary:active{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-color:#1d4ed8;color:#fff;box-shadow:0 18px 38px rgba(37,99,235,.28)}
.btn-secondary{background:#fff;color:#17315a;border-color:var(--border-strong)}
.btn-secondary:hover{background:#eef5ff;color:#102a53;border-color:#9db8ff}
.btn-outline{background:#fff;color:var(--primary-strong);border-color:#b7ccff}
.btn-outline:hover{background:var(--primary-soft);color:#173fa4;border-color:#84a8ff}
.btn-ghost,.btn-tertiary{background:var(--surface-2);color:#31506f;border-color:var(--border)}
.btn-ghost:hover,.btn-tertiary:hover{background:#edf5ff;color:#17315a;border-color:#b7ccff}
.btn-success{background:linear-gradient(135deg,#16a34a,#0f8a3d);border-color:#0f8a3d;color:#fff}
.btn-success:hover{background:linear-gradient(135deg,#22c55e,#15803d);color:#fff}
.btn-danger{background:linear-gradient(135deg,#dc2626,#b91c1c);border-color:#b91c1c;color:#fff}
.btn-danger:hover{background:linear-gradient(135deg,#ef4444,#991b1b);color:#fff}
.btn-link{color:var(--primary-strong)}
.btn-link:hover{color:#173fa4;background:transparent;box-shadow:none}
.btn-small,.btn-sm{min-height:36px;padding:9px 12px}
.btn-large{min-height:52px;padding:14px 20px;font-size:1rem}
.btn[aria-disabled="true"],.btn:disabled,button:disabled{
  background:#e9eef7;
  color:#7a8799;
  border-color:#d5deec;
  opacity:1;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.pill-info{background:var(--primary-soft);color:var(--primary-strong);border-color:#cbdcff}
.pill-soft{background:#eff5ff;color:#335792;border-color:#d8e3fb}
.pill-warning{background:var(--warning-soft);color:#075985;border-color:#bae6fd}
.pill-neutral{background:#f5f7fb;color:var(--muted);border-color:#e3e8f1}
.pill-success{background:var(--success-soft);color:#12823c;border-color:#cde9d4}
.pill-danger{background:var(--danger-soft);color:#b91c1c;border-color:#fecaca}
.pill-teal{background:var(--teal-soft);color:var(--teal);border-color:#bfeee8}

.landing-section{padding:68px 0}
.landing-section-alt,.launch-band{background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(234,242,255,.74));border-top:1px solid rgba(219,229,240,.72);border-bottom:1px solid rgba(219,229,240,.72)}
.cut-landing-hero,.landing-v5-hero{
  background:
    radial-gradient(circle at 10% 8%,rgba(37,99,235,.12),transparent 28%),
    radial-gradient(circle at 88% 16%,rgba(14,165,233,.10),transparent 24%),
    linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  color:var(--text);
}
.cut-landing-hero h1,.cut-landing-hero .lead,.landing-v5-hero h1,.landing-v5-hero .lead{color:inherit}
.cut-landing-hero .lead,.landing-v5-hero .lead{color:var(--muted)}
.landing-v5-visual,.cut-visual-card,.landing-v5-overview,.landing-v5-wire-card{background:linear-gradient(180deg,#fff,#f7fbff);border-color:var(--border)}
.landing-v5-overview h3{max-width:20ch}
.landing-v5-value-row span,.landing-v5-trust-card,.landing-v5-preview-card,.landing-v5-wire-card{border-radius:var(--radius-lg)}
.landing-v5-wire-row strong{color:#17315a}
.landing-v5-wire-bars span{background:linear-gradient(90deg,#2563eb,#7dd3fc)}
.landing-v5-report-block span{background:#f8fbff;border-color:var(--border)}
.landing-module-grid .card{display:grid;gap:12px;align-content:start}

.launch-hero,.reserved-shell{
  padding:64px 0 86px;
  background:
    radial-gradient(circle at 12% 12%,rgba(37,99,235,.13),transparent 30%),
    radial-gradient(circle at 90% 18%,rgba(15,118,110,.10),transparent 24%),
    linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  color:var(--text);
  position:relative;
  overflow:hidden;
}
.launch-hero:before,.reserved-shell:before{background:radial-gradient(circle,rgba(37,99,235,.14),transparent 64%)}
.launch-copy h1,.launch-copy .lead,.reserved-card h1,.reserved-card .lead{color:var(--text)}
.launch-copy .lead,.reserved-card .lead{color:var(--muted)}
.launch-panel,.reserved-card{background:rgba(255,255,255,.96);color:var(--text);border-color:#cddcff}
.launch-note-grid div{background:rgba(255,255,255,.78);border-color:#cddcff}
.launch-note-grid span{color:var(--muted)}
.launch-note-grid strong{color:var(--text)}
.countdown-grid-premium div{border-radius:14px;background:linear-gradient(180deg,#fff,#f3f7ff);border-color:var(--border)}
.countdown-grid-premium strong{color:var(--primary-strong)}
.countdown-grid-premium span{color:var(--muted)}
.steel-cut-visual{background:linear-gradient(135deg,#ffffff,#eef5ff);border-color:#cddcff;box-shadow:inset 0 0 0 1px rgba(37,99,235,.06)}
.stock-bar{background:repeating-linear-gradient(135deg,#dbeafe 0,#dbeafe 8px,#eaf2ff 8px,#eaf2ff 16px);border-color:#bcd0ff}
.stock-bar span{background:linear-gradient(180deg,#60a5fa,#2563eb)}
.stock-bar span:after{background:#0f766e;box-shadow:0 0 10px rgba(15,118,110,.18)}
.cut-readout div{background:#fff;border-color:#d8e5fb}
.cut-readout span{color:var(--muted)}
.cut-readout strong{color:var(--text)}
.feature-icon,.workflow-index{
  background:linear-gradient(135deg,#e9f1ff,#dceaff);
  color:var(--primary-strong);
  border:1px solid #cddcff;
}
.workflow-step{padding:22px;background:#fff}
.price-card-featured{border-color:#9db8ff;box-shadow:0 22px 54px rgba(37,99,235,.14)}
.price{color:var(--text)}
.signup-billing-note{background:#f1f7ff;border-color:#cddcff;color:#17315a}
.reserved-panel{background:#f8fbff;border-color:#dbe5f0;border-radius:var(--radius-lg)}
.reserved-cut-card{border-color:var(--border);border-radius:var(--radius-md)}

.tab-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:4px 0 14px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-sm);
}
.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:#31506f;
  font-weight:800;
  line-height:1.2;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.tab:hover{background:#eef5ff;color:var(--primary-strong);border-color:#cddcff;box-shadow:0 8px 18px rgba(37,99,235,.10)}
.tab:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(37,99,235,.16)}
.tab.active{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.18)}
.tab[aria-disabled="true"],.tab.disabled{opacity:.58;cursor:not-allowed;background:#eef2f7;color:#8492a6}
.inventory-tab-row,.optimize-anchors{position:sticky;top:12px;z-index:5;background:rgba(248,251,255,.88);backdrop-filter:blur(12px)}
.inventory-tab-row + .card,.optimize-anchors + .card,.optimize-anchors + section{margin-top:12px}
.inventory-panel-shell,.table-card-shell{padding:24px;gap:22px}
.section-head{gap:18px}
.section-head.compact{gap:14px}
.cardless-panel{padding:18px;border-radius:var(--radius-md)}

thead th{background:linear-gradient(180deg,#f8fbff,#eef5ff);color:#52647a;border-bottom:1px solid var(--border)}
tbody td{padding:15px 16px}
tbody tr:hover,.data-table tr:hover{background:#f8fbff}
input,select,textarea{border-radius:14px;border-color:var(--border-strong);background:#fff}
input:focus,select:focus,textarea:focus{border-color:#8eb0ff;box-shadow:0 0 0 4px rgba(37,99,235,.14)}
.flash,.empty-state{border-radius:var(--radius-md)}
.alert{padding:14px 16px;border-radius:var(--radius-md);border:1px solid var(--border);background:#f8fbff;color:var(--text);font-weight:700}
.alert-danger{background:var(--danger-soft);border-color:#fecaca;color:#991b1b}
.alert-success{background:var(--success-soft);border-color:#cde9d4;color:#166534}
.alert-warning{background:var(--warning-soft);border-color:#bae6fd;color:#075985}

.project-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.project-card-actions{border-top-color:var(--border);background:#f8fbff}
.project-card-main:hover{color:inherit;background:#f8fbff}
.project-card-meta div{border-top-color:#e6edf6}

.metrics-row,.demo-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.demo-shell{padding:34px 0 48px}
.demo-intro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.demo-intro-grid .card{display:grid;gap:12px;align-content:start}
.demo-workbench{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:22px;align-items:start}
.demo-form-shell,.demo-result-card{box-shadow:var(--shadow-md)}
.demo-input-panel{display:grid;gap:12px;background:#f8fbff}
.demo-input-table th,.demo-input-table td{padding:12px}
.demo-form-actions{justify-content:flex-start}
.demo-bar-grid{display:grid;gap:16px}
.demo-bar-card{display:grid;gap:14px;background:#f8fbff}
.demo-bar-track{display:flex;align-items:stretch;gap:5px;min-height:54px;padding:7px;border-radius:14px;background:#eaf2ff;border:1px solid #cddcff;overflow:hidden}
.demo-bar-seg{display:flex;align-items:center;justify-content:center;min-width:34px;width:max(var(--w),34px);border-radius:10px;font-size:11px;font-weight:900;line-height:1;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.demo-bar-seg.cut{background:linear-gradient(135deg,#60a5fa,#2563eb)}
.demo-bar-seg.offcut{background:linear-gradient(135deg,#34d399,#0f766e)}
.demo-bar-seg.scrap{background:linear-gradient(135deg,#ef4444,#dc2626)}
.demo-bar-summary{gap:0}
.demo-bar-summary>div{padding:8px 0}

.js-reveal{opacity:0;transform:translateY(14px);transition:opacity .45s ease,transform .45s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease,color .2s ease}
.js-reveal.is-visible{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .js-reveal{opacity:1;transform:none}
}

@media (max-width:1180px){
  .landing-v5-hero-grid,.launch-hero-grid,.reserved-grid,.demo-workbench{grid-template-columns:1fr}
  .launch-feature-grid,.launch-price-grid,.landing-v5-price-grid,.project-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .launch-steps,.landing-v5-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .public-nav{background:#fff;border-color:var(--border);border-radius:18px}
  .public-nav a{width:100%}
  .launch-hero,.reserved-shell{padding:42px 0 58px}
  .launch-note-grid,.cut-readout,.steel-cut-visual-large .cut-readout,.launch-feature-grid,.launch-price-grid,.landing-v5-price-grid,.launch-steps,.landing-v5-steps,.countdown-grid-premium,.demo-intro-grid,.metrics-row,.demo-metric-grid{grid-template-columns:1fr}
  .project-card-grid,.project-card-actions{grid-template-columns:1fr}
  .hero-actions{display:grid;width:100%}
  .hero-actions .btn{width:100%}
  .card{padding:20px}
  .page-actions{width:100%;display:grid}
  .page-actions .btn{width:100%}
  .tab-row{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:8px}
  .tab{flex:0 0 auto}
}
@media (max-width:520px){
  h1{font-size:2.25rem}
  h2{font-size:1.8rem}
  .launch-panel,.reserved-card{padding:18px}
  .countdown-grid-premium strong{font-size:1.75rem}
  .landing-section{padding:48px 0}
}

/* Fabricata Cut industrial launch system - May 2026 */
:root{
  --bg:#0b1118;
  --bg-2:#111923;
  --surface:#ffffff;
  --surface-2:#f6f8fb;
  --surface-3:#eef2f6;
  --surface-dark:#111923;
  --surface-dark-2:#17212d;
  --border:#d7dee8;
  --border-strong:#b9c3d1;
  --border-dark:rgba(255,255,255,.13);
  --text:#121821;
  --muted:#5f6b7a;
  --muted-2:#8b96a5;
  --primary:#3b82f6;
  --primary-strong:#1d4ed8;
  --primary-soft:#fff3df;
  --teal:#168579;
  --teal-soft:#e7f8f5;
  --charcoal:#0b1118;
  --charcoal-2:#111923;
  --steel:#697584;
  --gold:#3b82f6;
  --success:#16834a;
  --success-soft:#eaf7ef;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
  --danger:#c7362f;
  --danger-soft:#fff0ef;
  --shadow-sm:0 10px 24px rgba(11,17,24,.08);
  --shadow-md:0 20px 52px rgba(11,17,24,.14);
  --shadow-lg:0 32px 80px rgba(11,17,24,.24);
}

body,body.is-public,body.is-authenticated{
  background:
    linear-gradient(135deg,rgba(37,99,235,.09),transparent 26%),
    linear-gradient(225deg,rgba(22,133,121,.08),transparent 28%),
    linear-gradient(180deg,#0b1118 0%,#111923 45%,#0d141c 100%);
  color:var(--text);
}

.public-shell,.app-shell{background:transparent}
.content-wrap{background:linear-gradient(180deg,rgba(246,248,251,.96),rgba(239,243,248,.98));min-height:calc(100vh - 130px)}
.public-main{background:transparent}

.announcement-bar{
  background:linear-gradient(90deg,#080d13,#151f2b);
  color:#f7efe2;
  border-bottom:1px solid var(--border-dark);
}
.announcement-bar-row p{color:#d9e0e7}
.announcement-bar-row a{color:#bfdbfe}
.announcement-pill{background:rgba(37,99,235,.16);color:#bfdbfe;border:1px solid rgba(37,99,235,.42)}

.public-header{
  background:rgba(11,17,24,.86);
  border-bottom:1px solid var(--border-dark);
  box-shadow:0 16px 44px rgba(0,0,0,.16);
}
.public-header .brand-title,.public-header .brand-subtitle{color:#fff}
.public-header .brand-subtitle{color:#b7c0cb}
.public-nav a:not(.btn){color:#dce3ec}
.public-nav a:not(.btn):hover{color:#bfdbfe}
.public-nav a:not(.btn)::after{background:rgba(37,99,235,.5)}
.public-nav a.btn-primary{color:#111923}
.public-nav a.btn-primary:hover{color:#0b1118}
.public-nav-toggle{background:#17212d;color:#fff;border-color:var(--border-dark)}

.site-footer{
  background:#090e14;
  color:#d7dee8;
  border-top:1px solid var(--border-dark);
}
.site-footer .brand-title,.site-footer a{color:#f8fafc}
.site-footer a:hover{color:#bfdbfe}
.site-footer .muted{color:#aeb8c4}

.brand-mark.hex{
  background:linear-gradient(135deg,#f8fafc,#cfd6df);
  border-color:rgba(37,99,235,.52);
  box-shadow:inset 0 0 0 5px rgba(37,99,235,.10),0 12px 28px rgba(0,0,0,.18);
}
.brand-mark.hex:after{border-color:var(--primary)}

.card,.sub-card,.hero-panel,.table-card,.empty-state,.status-card,.metric-card,.saas-window,.workflow-step,.price-card,.auth-card,.landing-v5-preview-card,.landing-v5-trust-card,.landing-v5-wire-card{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-sm);
}
.card:hover,.price-card:hover,.workflow-step:hover,.metric-card:hover,.status-card:hover,.interactive-card:hover,.project-card:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 56px rgba(11,17,24,.18);
  border-color:rgba(37,99,235,.58);
}
.interactive-card{cursor:pointer}
.feature-card,.workflow-step,.price-card,.project-card,.metric-card,.status-card,.dashboard-primary-card,.action-card,.account-summary-card,.billing-status-card,.billing-change-card,.warehouse-intake-card{
  position:relative;
  overflow:hidden;
}
.feature-card:before,.workflow-step:before,.price-card:before,.project-card:before,.metric-card:before,.status-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--primary),#7dd3fc);
  opacity:.78;
}

.btn{
  min-height:44px;
  padding:12px 17px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:#121821;
  font-weight:800;
  line-height:1.15;
  text-align:center;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.btn:hover{background:#f8fafc;color:#121821;border-color:#9db8ff;box-shadow:0 14px 30px rgba(11,17,24,.14);transform:translateY(-1px)}
.btn:active{transform:translateY(0);box-shadow:0 8px 18px rgba(11,17,24,.12)}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.tab:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(37,99,235,.26);
}
.btn-primary,.btn-primary:visited{
  background:linear-gradient(135deg,#3b82f6,#3b82f6 54%,#1e40af);
  border-color:#2563eb;
  color:#111923;
  box-shadow:0 16px 34px rgba(37,99,235,.26);
}
.btn-primary:hover,.btn-primary:active{
  background:linear-gradient(135deg,#60a5fa,#2563eb 55%,#1d4ed8);
  color:#0b1118;
  border-color:#3b82f6;
  box-shadow:0 20px 42px rgba(37,99,235,.34);
}
.btn-secondary{
  background:#17212d;
  color:#f8fafc;
  border-color:#253243;
}
.btn-secondary:hover{
  background:#223043;
  color:#fff;
  border-color:#3b82f6;
}
.btn-outline{
  background:#fff;
  color:#1d4ed8;
  border-color:#9db8ff;
}
.btn-outline:hover{background:var(--primary-soft);color:#173fa4;border-color:var(--primary)}
.btn-ghost,.btn-tertiary{
  background:#eef2f6;
  color:#263341;
  border-color:#d5dde7;
}
.btn-ghost:hover,.btn-tertiary:hover{background:#fff6e7;color:#173fa4;border-color:#9db8ff}
.btn-success{background:linear-gradient(135deg,#1fa463,#16834a);border-color:#16834a;color:#fff}
.btn-success:hover{background:linear-gradient(135deg,#27bd75,#16834a);color:#fff}
.btn-danger{background:linear-gradient(135deg,#d94a42,#a92520);border-color:#a92520;color:#fff}
.btn-danger:hover{background:linear-gradient(135deg,#ef5a50,#8f1f1a);color:#fff}
.btn-link{background:transparent;border:0;color:#1d4ed8;padding:0;min-height:auto;box-shadow:none}
.btn-link:hover{background:transparent;color:#173fa4;box-shadow:none;transform:none}
.btn[aria-disabled="true"],.btn:disabled,button:disabled{
  background:#e3e8ef;
  color:#7a8593;
  border-color:#cfd7e2;
  opacity:1;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.pill-info,.pill-soft{background:#eef2f6;color:#263341;border-color:#d4dce6}
.pill-warning{background:#e0f2fe;color:#075985;border-color:#bae6fd}
.pill-neutral{background:#f4f6f8;color:#5c6775;border-color:#dce2ea}
.pill-success{background:#eaf7ef;color:#126b3d;border-color:#bce4cb}
.pill-danger{background:#fff0ef;color:#a92520;border-color:#f3c2bd}
.pill-teal{background:#e7f8f5;color:#106e65;border-color:#b7e6df}

.landing-v5-hero,.cut-landing-hero,.launch-hero,.reserved-shell{
  background:
    linear-gradient(135deg,rgba(37,99,235,.20),transparent 28%),
    linear-gradient(225deg,rgba(22,133,121,.14),transparent 26%),
    linear-gradient(180deg,#0a0f15 0%,#111923 62%,#0d141c 100%);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.landing-v5-hero h1,.landing-v5-hero h2,.landing-v5-hero h3,.landing-v5-hero .lead,
.cut-landing-hero h1,.cut-landing-hero .lead,
.launch-copy h1,.launch-copy .lead,
.reserved-card h1,.reserved-card .lead{color:#fff}
.landing-v5-hero .lead,.cut-landing-hero .lead,.launch-copy .lead,.reserved-card .lead{color:#d5dce6}
.landing-v5-copy .pill-neutral,.launch-copy .pill-neutral{background:rgba(255,255,255,.10);color:#e8edf4;border-color:rgba(255,255,255,.22)}
.landing-v5-trust-card{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}
.landing-v5-trust-card .label{color:#bfdbfe}

.landing-section{
  padding:72px 0;
  background:linear-gradient(180deg,rgba(11,17,24,.96),rgba(17,25,35,.96));
  color:#fff;
}
.landing-section-alt,.launch-band{
  background:linear-gradient(180deg,#111923,#0d141c);
  border-top:1px solid var(--border-dark);
  border-bottom:1px solid var(--border-dark);
}
.landing-section .section-heading-block h2,
.landing-section .section-heading-block h3,
.landing-section .section-heading-block .eyebrow,
.landing-section .section-heading-wide h2{color:#fff}
.landing-section .section-lead,.landing-section .section-heading-block .muted{color:#c7d0dc}
.landing-section .card,.landing-section .price-card,.landing-section .workflow-step{color:var(--text)}
.landing-section .card .muted,.landing-section .price-card .muted,.landing-section .workflow-step .muted{color:var(--muted)}
.landing-v5-value-bar{background:#080d13;border-top:1px solid var(--border-dark);border-bottom:1px solid var(--border-dark)}
.landing-v5-value-row span{background:rgba(255,255,255,.08);color:#f8fafc;border:1px solid rgba(255,255,255,.14)}
.landing-v5-visual,.cut-visual-card,.landing-v5-overview,.landing-v5-wire-card{
  background:linear-gradient(180deg,#fdfefe,#edf1f5);
  border-color:rgba(37,99,235,.36);
}
.landing-v5-wire-row strong{color:#111923}
.landing-v5-wire-bars span{background:linear-gradient(90deg,#66717f,#3b82f6)}
.landing-v5-report-block span{background:#f8fafc;border-color:#d9e1eb}

.launch-panel{
  background:linear-gradient(180deg,rgba(17,25,35,.96),rgba(11,17,24,.96));
  color:#fff;
  border-color:rgba(37,99,235,.35);
  box-shadow:0 28px 76px rgba(0,0,0,.34);
}
.launch-panel .muted,.launch-panel .small,.launch-panel .eyebrow{color:#d5dce6}
.launch-note-grid div{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16)}
.launch-note-grid span{color:#b8c2cf}
.launch-note-grid strong{color:#fff}
.countdown-grid-premium div{
  background:linear-gradient(180deg,#fdfaf4,#f1e7d4);
  border:1px solid rgba(37,99,235,.35);
}
.countdown-grid-premium strong{color:#7a4207}
.countdown-grid-premium span{color:#5b4b36}
.steel-cut-visual{
  background:linear-gradient(135deg,#151f2b,#0e151d);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
.stock-bar{
  background:repeating-linear-gradient(135deg,#2a3440 0,#2a3440 8px,#1a2530 8px,#1a2530 16px);
  border-color:#3a4654;
}
.stock-bar span{background:linear-gradient(180deg,#d7dee8,#8793a1)}
.stock-bar span:after{background:#3b82f6;box-shadow:0 0 12px rgba(37,99,235,.55)}
.cut-readout div{background:#f8fafc;border-color:#d7dee8}
.cut-readout span{color:#687483}
.cut-readout strong{color:#111923}
.feature-icon,.workflow-index{
  background:linear-gradient(135deg,#fff3df,#f6cf8c);
  color:#7a4207;
  border:1px solid #e4b35f;
}
.price-card-featured{border-color:#3b82f6;box-shadow:0 24px 60px rgba(37,99,235,.20)}
.price{color:#111923}
.pricing-note-bar,.signup-billing-note{
  background:#fff3df;
  border:1px solid #e7bd77;
  color:#173fa4;
}

.reserved-card{
  background:linear-gradient(180deg,#ffffff,#f7f9fc);
  color:var(--text);
  border-color:rgba(37,99,235,.35);
}
.reserved-card h1,.reserved-card .lead{color:var(--text)}
.reserved-card .lead{color:var(--muted)}
.reserved-panel{
  background:linear-gradient(180deg,#111923,#0b1118);
  border:1px solid rgba(37,99,235,.35);
  border-radius:16px;
  color:#fff;
  padding:22px;
}
.reserved-panel .eyebrow,.reserved-panel p{color:#d5dce6}
.reserved-cut-card{border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.06)}

.auth-showcase,.auth-showcase-gradient,.auth-showcase-light{
  background:
    linear-gradient(135deg,rgba(37,99,235,.16),transparent 36%),
    linear-gradient(180deg,#111923,#0b1118);
  color:#fff;
  border-color:rgba(37,99,235,.25);
}
.auth-showcase-light h1,.auth-showcase-light h2,.auth-showcase-light h3,.auth-showcase-light .muted,
.auth-showcase h1,.auth-showcase h2,.auth-showcase h3{color:#fff}
.auth-showcase-light .muted,.auth-showcase .muted{color:#c7d0dc;opacity:1}
.auth-showcase-light .list-item,.auth-showcase .list-item{border-bottom-color:rgba(255,255,255,.13)}
.auth-showcase-light .pill-soft,.auth-showcase .pill-soft{background:rgba(255,255,255,.10);color:#f8fafc;border-color:rgba(255,255,255,.18)}

.app-shell{
  background:
    linear-gradient(135deg,rgba(37,99,235,.08),transparent 30%),
    linear-gradient(180deg,#0b1118,#111923);
}
.sidebar{
  background:linear-gradient(180deg,#0b1118,#111923);
  border-right:1px solid var(--border-dark);
  color:#fff;
}
.sidebar .brand-title,.sidebar h4,.sidebar-section-label{color:#fff}
.sidebar .brand-subtitle,.sidebar .muted,.sidebar-mini-item span{color:#aeb8c4}
.sidebar-nav a{color:#e4eaf2}
.sidebar-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.sidebar-nav a.active{background:rgba(37,99,235,.16);border-color:rgba(37,99,235,.42);color:#bfdbfe}
.sidebar-mini-item,.cardless-panel,.panel-soft-glow{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:#fff}
.sidebar-close{color:#fff}
.topbar{
  background:linear-gradient(180deg,#0b1118,#111923);
  color:#fff;
  padding-bottom:22px;
  border-bottom:1px solid var(--border-dark);
}
.topbar .page-title,.topbar .eyebrow{color:#fff}
.topbar .breadcrumbs,.topbar .muted{color:#aeb8c4}
.app-nav-toggle{background:#17212d;color:#fff;border-color:var(--border-dark)}
.project-context-bar{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
}
.project-context-item .label{color:#aeb8c4}
.project-context-item strong{color:#fff}
.workspace-hero-card,.page-header-card,.page-header{
  background:linear-gradient(135deg,#ffffff,#f4f6f9);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
}
.page-header .eyebrow,.workspace-hero-card .eyebrow,.page-header-card .eyebrow{color:#075985}

.tab-row{
  gap:12px;
  padding:10px;
  margin:4px 0 18px;
  background:linear-gradient(180deg,#ffffff,#f6f8fb);
  border-color:var(--border);
  border-radius:16px;
}
.tab{
  min-height:46px;
  padding:12px 17px;
  border-radius:12px;
  color:#263341;
}
.tab:hover{background:#fff3df;color:#7a4207;border-color:#e0ad58;box-shadow:0 10px 20px rgba(37,99,235,.14)}
.tab.active{background:linear-gradient(135deg,#3b82f6,#1e40af);border-color:#1e40af;color:#111923;box-shadow:0 12px 24px rgba(37,99,235,.22)}
.tab[aria-disabled="true"],.tab.disabled{background:#e3e8ef;color:#7a8593}
.inventory-tab-row,.optimize-anchors{
  background:rgba(246,248,251,.92);
  backdrop-filter:blur(14px);
}
.inventory-tab-row + .card,.optimize-anchors + .card,.optimize-anchors + section{margin-top:16px}
.inventory-panel-shell,.table-card-shell{padding:26px;gap:24px}

thead th{background:linear-gradient(180deg,#f8fafc,#edf1f5);color:#4c5968;border-bottom:1px solid var(--border)}
tbody td{padding:15px 16px;line-height:1.55}
tbody tr:hover,.data-table tr:hover{background:#fff8ec}
.elevated-table,.builder-table-wrap,.table-wrap{border-color:var(--border)}
input,select,textarea{
  background:#fff;
  color:#121821;
  border-color:var(--border-strong);
  border-radius:12px;
}
input:focus,select:focus,textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(37,99,235,.18)}
input::placeholder,textarea::placeholder{color:#8b96a5}
label{line-height:1.35}
.field-help,.small{line-height:1.5}

.flash-info{background:#fff3df;color:#173fa4;border-color:#e7bd77}
.flash-success{background:#eaf7ef;color:#126b3d;border-color:#bce4cb}
.flash-warning{background:#e0f2fe;color:#075985;border-color:#bae6fd}
.flash-danger{background:#fff0ef;color:#a92520;border-color:#f3c2bd}
.loading-overlay{background:rgba(11,17,24,.72)}
.loading-orb{background:#111923;color:#fff;border-color:rgba(37,99,235,.35)}
.loading-orb-mark{border-color:#3b82f6;border-top-color:transparent}
.loading-orb-copy span{color:#c7d0dc}

.demo-shell{background:transparent}
.demo-bar-card,.demo-input-panel{background:#f8fafc}
.demo-bar-track{background:#17212d;border-color:#2e3a48}
.demo-bar-seg.cut{background:linear-gradient(135deg,#d7dee8,#7d8998);color:#101820}
.demo-bar-seg.offcut{background:linear-gradient(135deg,#36c2b1,#168579)}
.demo-bar-seg.scrap{background:linear-gradient(135deg,#3b82f6,#c7362f)}

@media (max-width:860px){
  .public-nav{
    background:#111923;
    border-color:var(--border-dark);
    box-shadow:0 22px 52px rgba(0,0,0,.34);
  }
  .public-nav a{width:100%}
  .content-wrap,.topbar{padding-left:18px;padding-right:18px}
  .workspace-hero-card,.page-header-card,.page-header{padding:20px}
}

/* Release remediation: launch, billing, projects, onboarding, and correction form */
.launch-panel{
  display:grid;
  gap:18px;
}
.launch-panel h3{
  margin:0;
  color:#fff;
  font-size:clamp(1.25rem,2vw,1.7rem);
  line-height:1.2;
}
.launch-panel-actions{
  margin-top:2px;
}
.landing-countdown-section{
  padding:58px 0;
  background:linear-gradient(180deg,#101821,#0b1118);
}
.landing-countdown-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  gap:28px;
  align-items:center;
  background:linear-gradient(135deg,#ffffff,#f6f1e8);
  border-color:rgba(37,99,235,.34);
}
.landing-countdown-card h2{
  color:#101820;
  margin:0;
}
.landing-countdown-card .section-lead{
  color:#526070;
  max-width:58ch;
}
.landing-faq-section .grid-2{
  align-items:stretch;
}
.launch-faq .card h3,
.landing-faq-section .card h3{
  margin:0;
  line-height:1.25;
}
.launch-faq .card,
.landing-faq-section .card{
  display:grid;
  align-content:start;
  gap:12px;
}

.project-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  align-items:stretch;
}
.project-card{
  display:grid;
  grid-template-rows:1fr auto;
  padding:0;
  min-height:100%;
  overflow:hidden;
}
.project-card-main{
  display:grid;
  gap:18px;
  padding:24px;
  color:inherit;
  text-decoration:none;
}
.project-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.project-card h3{
  margin:0;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.project-card .muted{
  margin:0;
  overflow-wrap:anywhere;
}
.project-card-meta{
  display:grid;
  gap:12px;
  margin-top:4px;
}
.project-card-meta div{
  display:grid;
  gap:4px;
  padding-top:12px;
  border-top:1px solid var(--border);
}
.project-card-meta span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.project-card-meta strong{
  color:var(--text);
  line-height:1.35;
  overflow-wrap:anywhere;
}
.project-card-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:18px 24px 24px;
  border-top:1px solid var(--border);
  background:#f8fafc;
}
.project-card-actions .inline-form{
  display:grid;
  width:100%;
}

.correction-form-card select[name="cutting_list_item_id"]{
  min-height:52px;
}
.correction-impact-panel .checkbox-row{
  align-items:flex-start;
}

.onboarding-overlay{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(11,17,24,.72);
  backdrop-filter:blur(10px);
}
.onboarding-overlay.is-dismissed{
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.onboarding-modal{
  width:min(760px,100%);
  display:grid;
  gap:22px;
  padding:28px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-color:rgba(37,99,235,.42);
  box-shadow:0 32px 90px rgba(0,0,0,.34);
}
.onboarding-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.onboarding-head h2{
  margin:0;
  color:var(--text);
  line-height:1.18;
}
.onboarding-progress{
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e8edf3;
}
.onboarding-progress span{
  display:block;
  height:100%;
  width:25%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--primary),#7dd3fc);
  transition:width .22s ease;
}
.onboarding-steps{
  min-height:210px;
  position:relative;
}
.onboarding-step{
  display:none;
  gap:12px;
  align-content:start;
}
.onboarding-step.is-active{
  display:grid;
}
.onboarding-step h3{
  margin:0;
  font-size:1.45rem;
}
.onboarding-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.onboarding-actions [hidden]{
  display:none !important;
}

@media (max-width:1180px){
  .project-card-grid,
  .landing-countdown-card{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:860px){
  .project-card-grid,
  .project-card-actions,
  .landing-countdown-card{
    grid-template-columns:1fr;
  }
  .project-card-main{
    padding:20px;
  }
  .project-card-actions{
    padding:16px 20px 20px;
  }
  .onboarding-modal{
    padding:22px;
  }
  .onboarding-head,
  .onboarding-actions{
    display:grid;
  }
  .onboarding-actions .btn,
  .onboarding-head .btn{
    width:100%;
  }
}

@media (prefers-reduced-motion: reduce){
  .onboarding-progress span,
  .onboarding-overlay.is-dismissed{
    transition:none;
  }
}

/* Launch/public palette remediation - May 2026 */
:root{
  --bg:#f8fbff;
  --bg-2:#eef4ff;
  --surface:#ffffff;
  --surface-2:#f9fbf7;
  --surface-3:#eef5ef;
  --border:#d8ded8;
  --border-strong:#bdcabc;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#7a8781;
  --primary:#1d4ed8;
  --primary-strong:#1e3a8a;
  --primary-soft:#e9f1ff;
  --teal:#2563eb;
  --teal-soft:#e9f1ff;
  --success:#257a45;
  --success-soft:#e9f6ed;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
  --danger:#be3b32;
  --danger-soft:#fff0ee;
  --charcoal:#0f172a;
  --charcoal-2:#1e3a8a;
  --steel:#475569;
  --gold:#3b82f6;
  --shadow-sm:0 10px 24px rgba(15,23,42,.07);
  --shadow-md:0 18px 46px rgba(15,23,42,.10);
  --shadow-lg:0 28px 72px rgba(15,23,42,.15);
}

body.is-public{
  background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 54%,#f8fbff 100%);
  color:var(--text);
}
body.is-public .content-wrap,
body.is-public .public-main,
body.is-public .public-shell{
  background:transparent;
}

.announcement-bar{
  background:#1d4ed8;
  color:#f8fbff;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.announcement-bar-row p{color:#e2e8f0}
.announcement-bar-row a{color:#e0f2fe}
.announcement-pill{background:#fff;color:#1d4ed8;border-color:rgba(255,255,255,.7)}

.public-header,
.public-header--transparent{
  background:rgba(255,255,255,.9);
  border-bottom:1px solid var(--border);
  box-shadow:0 12px 34px rgba(15,23,42,.08);
}
.public-header .brand-title,
.public-header .brand-subtitle,
.public-nav a:not(.btn){color:var(--text)}
.public-header .brand-subtitle,
.public-nav a:not(.btn){color:var(--muted)}
.public-nav a:not(.btn):hover{color:var(--primary)}
.public-nav a:not(.btn)::after{background:rgba(37,99,235,.45)}
.public-nav a.btn-primary,
.public-nav a.btn-primary:hover{
  color:#fff;
}
.public-nav-toggle{background:#fff;color:var(--text);border-color:var(--border)}

.brand-mark.hex{
  background:linear-gradient(135deg,#ffffff,#e9f1ff);
  border-color:#b9cbbd;
  box-shadow:inset 0 0 0 5px rgba(37,99,235,.07),0 10px 24px rgba(15,23,42,.10);
}
.brand-mark.hex:after{border-color:var(--gold)}

.btn-primary,
.btn-primary:visited{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color:#1d4ed8;
  color:#fff;
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}
.btn-primary:hover,
.btn-primary:active{
  background:linear-gradient(135deg,#3b82f6,#1e3a8a);
  border-color:#1e3a8a;
  color:#fff;
  box-shadow:0 18px 38px rgba(37,99,235,.28);
}
.btn-secondary{
  background:#fff;
  color:#17315a;
  border-color:#9db8ff;
}
.btn-secondary:hover{
  background:#eef5ff;
  color:#102a53;
  border-color:#3b82f6;
}
.btn-outline{
  background:#fff;
  color:#1d4ed8;
  border-color:#9db8ff;
}
.btn-outline:hover,
.btn-ghost:hover,
.btn-tertiary:hover{
  background:#e9f1ff;
  color:#1e3a8a;
  border-color:#9db8ff;
}
.btn-ghost,
.btn-tertiary{
  background:#f8fbff;
  color:#3c514b;
  border-color:var(--border);
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab:focus-visible{
  box-shadow:0 0 0 4px rgba(37,99,235,.18);
}

.pill-info,
.pill-soft{background:#e9f1ff;color:#1d4ed8;border-color:#cbdcff}
.pill-warning{background:#e0f2fe;color:#075985;border-color:#bae6fd}
.pill-neutral{background:#f8fbff;color:#64748b;border-color:#d8ded8}
.pill-success{background:#e9f6ed;color:#1f6f3e;border-color:#bfe1c8}
.pill-teal{background:#e9f1ff;color:#1d4ed8;border-color:#cbdcff}
.landing-v5-copy .pill-neutral,
.launch-copy .pill-neutral{
  background:#f8fbff;
  color:var(--muted);
  border-color:#d8ded8;
}

.landing-v5-hero,
.cut-landing-hero,
.launch-hero,
.reserved-shell{
  background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 58%,#eef5ff 100%);
  color:var(--text);
  overflow:hidden;
}
.launch-hero:before,
.reserved-shell:before,
.landing-v5-hero:before,
.cut-landing-hero:before{
  content:none;
  display:none;
}
.landing-v5-hero h1,
.landing-v5-hero h2,
.landing-v5-hero h3,
.landing-v5-hero .lead,
.cut-landing-hero h1,
.cut-landing-hero .lead,
.launch-copy h1,
.launch-copy .lead,
.reserved-card h1,
.reserved-card .lead{color:var(--text)}
.landing-v5-hero .lead,
.cut-landing-hero .lead,
.launch-copy .lead,
.reserved-card .lead{color:var(--muted)}

.landing-section{
  background:#fff;
  color:var(--text);
  border-top:1px solid transparent;
}
.landing-section-alt,
.launch-band,
.landing-prelaunch-section{
  background:linear-gradient(180deg,#ffffff 0%,#eef4ff 100%);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.landing-section .section-heading-block h2,
.landing-section .section-heading-block h3,
.landing-section .section-heading-block .eyebrow,
.landing-section .section-heading-wide h2{color:var(--text)}
.landing-section .section-lead,
.landing-section .section-heading-block .muted{color:var(--muted)}
.landing-v5-value-bar{
  background:#1d4ed8;
  border-color:rgba(255,255,255,.16);
}
.landing-v5-value-row span{
  background:rgba(255,255,255,.12);
  color:#f8fbff;
  border-color:rgba(255,255,255,.22);
}

.landing-v5-trust-card{
  background:rgba(255,255,255,.78);
  color:var(--text);
  border-color:var(--border);
  backdrop-filter:blur(10px);
}
.landing-v5-trust-card .label{color:var(--primary)}
.landing-v5-visual,
.cut-visual-card,
.landing-v5-overview,
.landing-v5-wire-card,
.landing-v5-preview-card,
.landing-prelaunch-card{
  background:linear-gradient(180deg,#ffffff,#f9fbf7);
  border-color:var(--border);
  color:var(--text);
}
.card:hover,
.price-card:hover,
.workflow-step:hover,
.metric-card:hover,
.status-card:hover,
.interactive-card:hover,
.project-card:hover{
  border-color:#9db8ff;
  box-shadow:0 18px 44px rgba(37,99,235,.12);
}
.landing-v5-wire-row strong{color:var(--primary-strong)}
.landing-v5-wire-bars span{background:linear-gradient(90deg,#1d4ed8,#3b82f6)}
.landing-v5-report-block span{background:#f9fbf7;border-color:var(--border)}

.launch-panel,
.reserved-card,
.reserved-panel{
  background:linear-gradient(180deg,#ffffff,#f9fbf7);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-md);
}
.launch-panel h3,
.launch-panel .muted,
.launch-panel .small,
.launch-panel .eyebrow,
.reserved-panel .eyebrow,
.reserved-panel p{color:var(--muted)}
.launch-panel h3{color:var(--text)}
.launch-panel-head{
  align-items:center;
  gap:12px;
}
.launch-note-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.launch-note-grid div{
  display:grid;
  gap:6px;
  min-height:88px;
  align-content:center;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f6faf4;
}
.launch-note-grid span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.launch-note-grid strong{
  color:var(--text);
  line-height:1.25;
}
.landing-prelaunch-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:28px;
  align-items:center;
}

.steel-cut-visual{background:linear-gradient(135deg,#ffffff,#e9f1ff);border-color:#cbdcff}
.stock-bar{background:repeating-linear-gradient(135deg,#dfe8df 0,#dfe8df 8px,#eef4ff 8px,#eef4ff 16px);border-color:#bfcebf}
.stock-bar span{background:linear-gradient(180deg,#60a5fa,#1d4ed8)}
.stock-bar span:after{background:#3b82f6;box-shadow:0 0 10px rgba(199,121,42,.2)}
.cut-readout div{background:#fff;border-color:var(--border)}
.cut-readout span{color:var(--muted)}
.cut-readout strong{color:var(--text)}

.feature-icon,
.workflow-index{
  background:linear-gradient(135deg,#e9f1ff,#e0f2fe);
  color:var(--primary-strong);
  border:1px solid #cbdcff;
}
.price-card-featured{border-color:#3b82f6;box-shadow:0 22px 54px rgba(199,121,42,.14)}
.price{color:var(--text)}
.pricing-note-bar,
.signup-billing-note,
.launch-pricing-note{
  background:#e0f2fe;
  border-color:#bae6fd;
  color:#6b3c13;
}

.reserved-cut-card{
  border-color:var(--border);
  background:#f6faf4;
  color:var(--text);
}

.site-footer{
  background:#0f172a;
  color:#e6ece8;
  border-top:1px solid rgba(255,255,255,.12);
}
.site-footer .brand-title,
.site-footer a{color:#f8fbff}
.site-footer a:hover{color:#bfdbfe}
.site-footer .muted{color:#a8b3c3}

@media (max-width:1180px){
  .landing-prelaunch-card{
    grid-template-columns:1fr;
  }
}
@media (max-width:860px){
  .public-nav{
    background:#fff;
    border-color:var(--border);
  }
  .launch-note-grid{
    grid-template-columns:1fr;
  }
}

/* Fabricata white/blue pack restoration - May 2026 */
:root{
  --bg:#f4f7fb;
  --bg-2:#eef3f9;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --surface-3:#eef4ff;
  --border:#dbe5f0;
  --border-strong:#c5d2e0;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --primary:#2563eb;
  --primary-strong:#1d4ed8;
  --primary-soft:#e9f1ff;
  --teal:#0f766e;
  --teal-soft:#e8fbf8;
  --success:#16a34a;
  --success-soft:#ebf9ef;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
  --danger:#dc2626;
  --danger-soft:#fef2f2;
  --charcoal:#0f172a;
  --charcoal-2:#172554;
  --steel:#6f7881;
  --gold:#3b82f6;
  --shadow-sm:0 10px 24px rgba(15,23,42,.06);
  --shadow-md:0 20px 48px rgba(15,23,42,.09);
  --shadow-lg:0 28px 70px rgba(15,23,42,.13);
}

body,
body.is-public,
body.is-authenticated{
  background:linear-gradient(180deg,#f8fbff 0%,#f3f7fc 48%,#eef4fb 100%);
  color:var(--text);
}
.content-wrap,
.public-main,
.public-shell,
.app-shell{
  background:transparent;
}

.announcement-bar{
  background:linear-gradient(90deg,#eaf2ff,#f7fbff);
  color:var(--text);
  border-bottom:1px solid var(--border);
}
.announcement-bar-row p{color:var(--muted)}
.announcement-bar-row a{color:var(--primary-strong)}
.announcement-pill{background:#fff;color:var(--primary-strong);border-color:#cfe0ff}

.public-header,
.public-header--transparent{
  background:rgba(255,255,255,.9);
  border-bottom:1px solid rgba(219,229,240,.9);
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.public-header .brand-title,
.public-header .brand-subtitle,
.public-nav a:not(.btn){color:var(--text)}
.public-header .brand-subtitle,
.public-nav a:not(.btn){color:var(--muted)}
.public-nav a:not(.btn):hover{color:var(--primary-strong)}
.public-nav a:not(.btn)::after{background:rgba(37,99,235,.45)}
.public-nav a.btn-primary,
.public-nav a.btn-primary:hover{color:#fff}
.public-nav-toggle{
  background:#fff;
  color:var(--primary-strong);
  border-color:var(--border);
}

.brand-mark.hex{
  background:linear-gradient(135deg,#ffffff,#e7efff);
  border-color:#c8d8ff;
  box-shadow:inset 0 0 0 5px rgba(37,99,235,.07),0 10px 24px rgba(15,23,42,.08);
}
.brand-mark.hex:after{border-color:var(--teal)}

.btn-primary,
.btn-primary:visited{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  border-color:var(--primary);
  color:#fff;
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}
.btn-primary:hover,
.btn-primary:active{
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  border-color:#1d4ed8;
  color:#fff;
  box-shadow:0 18px 38px rgba(37,99,235,.28);
}
.btn-secondary{
  background:#fff;
  color:#17315a;
  border-color:var(--border-strong);
}
.btn-secondary:hover{
  background:#eef5ff;
  color:#102a53;
  border-color:#9db8ff;
}
.btn-outline{
  background:#fff;
  color:var(--primary-strong);
  border-color:#b7ccff;
}
.btn-outline:hover,
.btn-ghost:hover,
.btn-tertiary:hover{
  background:var(--primary-soft);
  color:#173fa4;
  border-color:#9db8ff;
}
.btn-ghost,
.btn-tertiary{
  background:var(--surface-2);
  color:#31506f;
  border-color:var(--border);
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab:focus-visible{
  box-shadow:0 0 0 4px rgba(37,99,235,.16);
}

.pill-info{background:var(--primary-soft);color:var(--primary-strong);border-color:#cbdcff}
.pill-soft{background:#eff5ff;color:#335792;border-color:#d8e3fb}
.pill-warning{background:var(--warning-soft);color:#075985;border-color:#bae6fd}
.pill-neutral{background:#f5f7fb;color:var(--muted);border-color:#e3e8f1}
.pill-success{background:var(--success-soft);color:#12823c;border-color:#cde9d4}
.pill-danger{background:var(--danger-soft);color:#b91c1c;border-color:#fecaca}
.pill-teal{background:var(--teal-soft);color:var(--teal);border-color:#bfeee8}
.landing-v5-copy .pill-neutral,
.launch-copy .pill-neutral{
  background:#f5f7fb;
  color:var(--muted);
  border-color:#e3e8f1;
}

.landing-v5-hero,
.cut-landing-hero,
.launch-hero,
.reserved-shell{
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  color:var(--text);
  overflow:hidden;
}
.launch-hero:before,
.reserved-shell:before,
.landing-v5-hero:before,
.cut-landing-hero:before{
  content:none;
  display:none;
}
.landing-v5-hero h1,
.landing-v5-hero h2,
.landing-v5-hero h3,
.landing-v5-hero .lead,
.cut-landing-hero h1,
.cut-landing-hero .lead,
.launch-copy h1,
.launch-copy .lead,
.reserved-card h1,
.reserved-card .lead{color:var(--text)}
.landing-v5-hero .lead,
.cut-landing-hero .lead,
.launch-copy .lead,
.reserved-card .lead{color:var(--muted)}

.landing-section{
  background:#fff;
  color:var(--text);
}
.landing-section-alt,
.launch-band,
.landing-prelaunch-section{
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(234,242,255,.78));
  border-top:1px solid rgba(219,229,240,.72);
  border-bottom:1px solid rgba(219,229,240,.72);
}
.landing-section .section-heading-block h2,
.landing-section .section-heading-block h3,
.landing-section .section-heading-block .eyebrow,
.landing-section .section-heading-wide h2{color:var(--text)}
.landing-section .section-lead,
.landing-section .section-heading-block .muted{color:var(--muted)}
.landing-v5-value-bar{
  background:#eaf2ff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.landing-v5-value-row span{
  background:#fff;
  color:var(--primary-strong);
  border-color:#cddcff;
}
.landing-v5-trust-card,
.landing-v5-visual,
.cut-visual-card,
.landing-v5-overview,
.landing-v5-wire-card,
.landing-v5-preview-card,
.landing-prelaunch-card,
.launch-panel,
.reserved-card,
.reserved-panel{
  background:linear-gradient(180deg,#ffffff,#f7fbff);
  border-color:var(--border);
  color:var(--text);
  box-shadow:var(--shadow-sm);
}
.landing-v5-trust-card .label{color:var(--primary-strong)}
.landing-v5-wire-row strong{color:#17315a}
.landing-v5-wire-bars span{background:linear-gradient(90deg,#2563eb,#7dd3fc)}
.landing-v5-report-block span{background:#f8fbff;border-color:var(--border)}
.card:hover,
.price-card:hover,
.workflow-step:hover,
.metric-card:hover,
.status-card:hover,
.interactive-card:hover,
.project-card:hover{
  border-color:#9db8ff;
  box-shadow:0 18px 44px rgba(37,99,235,.12);
}

.launch-panel h3{color:var(--text)}
.launch-panel .muted,
.launch-panel .small,
.launch-panel .eyebrow,
.reserved-panel .eyebrow,
.reserved-panel p{color:var(--muted)}
.launch-note-grid div{
  background:#f8fbff;
  border-color:#d8e5fb;
}
.launch-note-grid span{color:var(--muted)}
.launch-note-grid strong{color:var(--text)}

.steel-cut-visual{background:linear-gradient(135deg,#ffffff,#eef5ff);border-color:#cddcff}
.stock-bar{background:repeating-linear-gradient(135deg,#dbeafe 0,#dbeafe 8px,#eaf2ff 8px,#eaf2ff 16px);border-color:#bcd0ff}
.stock-bar span{background:linear-gradient(180deg,#60a5fa,#2563eb)}
.stock-bar span:after{background:#0f766e;box-shadow:0 0 10px rgba(15,118,110,.18)}
.cut-readout div{background:#fff;border-color:#d8e5fb}
.cut-readout span{color:var(--muted)}
.cut-readout strong{color:var(--text)}
.feature-icon,
.workflow-index{
  background:linear-gradient(135deg,#e9f1ff,#dceaff);
  color:var(--primary-strong);
  border:1px solid #cddcff;
}
.price-card-featured{border-color:#9db8ff;box-shadow:0 22px 54px rgba(37,99,235,.14)}
.price{color:var(--text)}
.pricing-note-bar,
.signup-billing-note,
.launch-pricing-note{
  background:#f1f7ff;
  border-color:#cddcff;
  color:#17315a;
}

.auth-shell{background:transparent}
.auth-card,
.auth-showcase,
.auth-showcase-gradient,
.auth-showcase-light{
  background:linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-md);
}
.auth-showcase h1,
.auth-showcase h2,
.auth-showcase h3,
.auth-showcase .muted,
.auth-showcase-light h1,
.auth-showcase-light h2,
.auth-showcase-light h3,
.auth-showcase-light .muted{color:var(--text)}
.auth-showcase .muted,
.auth-showcase-light .muted{color:var(--muted);opacity:1}
.auth-showcase .list-item,
.auth-showcase-light .list-item{border-bottom-color:#e6edf6}
.auth-showcase .pill-soft,
.auth-showcase-light .pill-soft{background:#eef4ff;color:#335792;border-color:#d8e3fb}

.app-shell{
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
  color:var(--text);
}
.main-content{background:transparent}
.content-wrap{
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
  min-height:calc(100vh - 130px);
}
.sidebar{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  border-right:1px solid var(--border);
  color:var(--text);
}
.sidebar .brand-title,
.sidebar h4,
.sidebar-section-label{color:var(--text)}
.sidebar .brand-subtitle,
.sidebar .muted,
.sidebar-mini-item span{color:var(--muted)}
.sidebar-nav a{color:var(--text)}
.sidebar-nav a:hover{background:#eef5ff;color:var(--primary-strong)}
.sidebar-nav a.active{
  background:var(--primary-soft);
  border:1px solid #ccdcff;
  color:var(--primary-strong);
}
.sidebar-mini-item,
.cardless-panel,
.panel-soft-glow{
  background:#fff;
  border-color:var(--border);
  color:var(--text);
}
.sidebar-help{
  background:linear-gradient(180deg,rgba(248,251,255,.92),#f8fbff);
  border-color:var(--border);
}
.sidebar-logout-form{background:linear-gradient(180deg,transparent,#f7fbff 32%)}
.sidebar-close{color:var(--muted)}
.topbar{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.72));
  color:var(--text);
  padding-bottom:22px;
  border-bottom:1px solid var(--border);
}
.topbar .page-title,
.topbar .eyebrow{color:var(--text)}
.topbar .breadcrumbs,
.topbar .muted{color:var(--muted)}
.app-nav-toggle{
  background:#fff;
  color:var(--primary-strong);
  border-color:var(--border);
}
.project-context-bar{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
}
.project-context-item .label{color:var(--muted)}
.project-context-item strong{color:var(--text)}
.theme-toggle{min-width:112px}

thead th{background:linear-gradient(180deg,#f8fbff,#eef5ff);color:#52647a;border-bottom:1px solid var(--border)}
tbody tr:hover,
.data-table tr:hover{background:#f8fbff}
input,
select,
textarea{
  background:#fff;
  color:var(--text);
  border-color:var(--border-strong);
}
input:focus,
select:focus,
textarea:focus{border-color:#8eb0ff;box-shadow:0 0 0 4px rgba(37,99,235,.14)}
input::placeholder,
textarea::placeholder{color:var(--muted-2)}

.loading-overlay{
  background:rgba(244,247,251,.68);
  backdrop-filter:blur(6px);
}
.loading-orb{
  background:#fff;
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-md);
}
.loading-orb-mark{
  border-color:var(--primary);
  border-top-color:transparent;
}
.loading-orb-mark::after{background:#eaf2ff}
.loading-orb-copy strong{color:var(--text)}
.loading-orb-copy span{color:var(--muted)}

.site-footer{
  background:#fff;
  color:var(--text);
  border-top:1px solid var(--border);
}
.site-footer .brand-title,
.site-footer a{color:var(--text)}
.site-footer a:hover{color:var(--primary-strong)}
.site-footer .muted{color:var(--muted)}

html[data-theme="dark"] body.is-authenticated{
  --bg:#0f172a;
  --bg-2:#111827;
  --surface:#111827;
  --surface-2:#172033;
  --surface-3:#1f2a44;
  --border:rgba(148,163,184,.24);
  --border-strong:rgba(148,163,184,.36);
  --text:#e5edf7;
  --muted:#a8b4c7;
  --muted-2:#7f8da3;
  --primary:#60a5fa;
  --primary-strong:#93c5fd;
  --primary-soft:rgba(96,165,250,.14);
  --teal:#5eead4;
  --teal-soft:rgba(94,234,212,.12);
  --shadow-sm:0 10px 24px rgba(0,0,0,.20);
  --shadow-md:0 20px 48px rgba(0,0,0,.28);
  --shadow-lg:0 28px 70px rgba(0,0,0,.38);
  background:linear-gradient(180deg,#0f172a 0%,#111827 100%);
  color:var(--text);
}
html[data-theme="dark"] body.is-authenticated .app-shell,
html[data-theme="dark"] body.is-authenticated .content-wrap{
  background:linear-gradient(180deg,#0f172a 0%,#111827 100%);
}
html[data-theme="dark"] body.is-authenticated .sidebar,
html[data-theme="dark"] body.is-authenticated .topbar,
html[data-theme="dark"] body.is-authenticated .card,
html[data-theme="dark"] body.is-authenticated .sub-card,
html[data-theme="dark"] body.is-authenticated .hero-panel,
html[data-theme="dark"] body.is-authenticated .table-card,
html[data-theme="dark"] body.is-authenticated .empty-state,
html[data-theme="dark"] body.is-authenticated .status-card,
html[data-theme="dark"] body.is-authenticated .metric-card,
html[data-theme="dark"] body.is-authenticated .workflow-step,
html[data-theme="dark"] body.is-authenticated .price-card,
html[data-theme="dark"] body.is-authenticated .project-context-bar,
html[data-theme="dark"] body.is-authenticated .workspace-hero-card,
html[data-theme="dark"] body.is-authenticated .page-header-card,
html[data-theme="dark"] body.is-authenticated .page-header,
html[data-theme="dark"] body.is-authenticated .cardless-panel,
html[data-theme="dark"] body.is-authenticated .panel-soft-glow{
  background:linear-gradient(180deg,#111827,#172033);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}
html[data-theme="dark"] body.is-authenticated .sidebar{
  border-right-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .topbar{
  border-bottom-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .brand-title,
html[data-theme="dark"] body.is-authenticated h1,
html[data-theme="dark"] body.is-authenticated h2,
html[data-theme="dark"] body.is-authenticated h3,
html[data-theme="dark"] body.is-authenticated h4,
html[data-theme="dark"] body.is-authenticated .page-title,
html[data-theme="dark"] body.is-authenticated .project-context-item strong,
html[data-theme="dark"] body.is-authenticated .summary-list strong,
html[data-theme="dark"] body.is-authenticated .meta-list strong,
html[data-theme="dark"] body.is-authenticated .detail-list strong{color:var(--text)}
html[data-theme="dark"] body.is-authenticated .muted,
html[data-theme="dark"] body.is-authenticated .brand-subtitle,
html[data-theme="dark"] body.is-authenticated .breadcrumbs,
html[data-theme="dark"] body.is-authenticated .summary-list span,
html[data-theme="dark"] body.is-authenticated .meta-list span,
html[data-theme="dark"] body.is-authenticated .detail-list span,
html[data-theme="dark"] body.is-authenticated .field-help{color:var(--muted)}
html[data-theme="dark"] body.is-authenticated .sidebar-nav a{color:var(--text)}
html[data-theme="dark"] body.is-authenticated .sidebar-nav a:hover{
  background:rgba(96,165,250,.12);
  color:var(--primary-strong);
}
html[data-theme="dark"] body.is-authenticated .sidebar-nav a.active{
  background:rgba(96,165,250,.16);
  border-color:rgba(96,165,250,.35);
  color:var(--primary-strong);
}
html[data-theme="dark"] body.is-authenticated .btn-secondary,
html[data-theme="dark"] body.is-authenticated .btn-tertiary,
html[data-theme="dark"] body.is-authenticated .btn-ghost,
html[data-theme="dark"] body.is-authenticated .app-nav-toggle{
  background:#172033;
  color:var(--text);
  border-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .btn-secondary:hover,
html[data-theme="dark"] body.is-authenticated .btn-tertiary:hover,
html[data-theme="dark"] body.is-authenticated .btn-ghost:hover{
  background:#1f2a44;
  color:var(--primary-strong);
  border-color:rgba(96,165,250,.38);
}
html[data-theme="dark"] body.is-authenticated input,
html[data-theme="dark"] body.is-authenticated select,
html[data-theme="dark"] body.is-authenticated textarea{
  background:#0f172a;
  color:var(--text);
  border-color:var(--border-strong);
}
html[data-theme="dark"] body.is-authenticated input::placeholder,
html[data-theme="dark"] body.is-authenticated textarea::placeholder{color:var(--muted-2)}
html[data-theme="dark"] body.is-authenticated thead th{
  background:#172033;
  color:var(--muted);
  border-bottom-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated tbody td{border-bottom-color:var(--border)}
html[data-theme="dark"] body.is-authenticated tbody tr:hover,
html[data-theme="dark"] body.is-authenticated .data-table tr:hover{background:rgba(96,165,250,.08)}
html[data-theme="dark"] body.is-authenticated .loading-overlay{background:rgba(15,23,42,.72)}
html[data-theme="dark"] body.is-authenticated .loading-orb{
  background:#111827;
  color:var(--text);
  border-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .loading-orb-mark{border-color:var(--primary);border-top-color:transparent}
html[data-theme="dark"] body.is-authenticated .loading-orb-mark::after{background:#172033}
html[data-theme="dark"] body.is-authenticated .loading-orb-copy strong{color:var(--text)}
html[data-theme="dark"] body.is-authenticated .loading-orb-copy span{color:var(--muted)}

@media (max-width:860px){
  .public-nav{
    background:#fff;
    border-color:var(--border);
  }
  .topbar-actions{
    width:100%;
  }
  .theme-toggle{
    width:100%;
  }
  html[data-theme="dark"] body.is-authenticated .public-nav{
    background:#111827;
    border-color:var(--border);
  }
}

/* Live landing refresh - May 2026 */
.landing-live-section{
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(234,242,255,.78));
  border-top:1px solid rgba(219,229,240,.72);
  border-bottom:1px solid rgba(219,229,240,.72);
}
.landing-live-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:28px;
  align-items:center;
  background:linear-gradient(180deg,#ffffff,#f7fbff);
  border-color:var(--border);
  color:var(--text);
  box-shadow:var(--shadow-sm);
}
.landing-action-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.landing-action-grid div{
  display:grid;
  gap:6px;
  min-height:88px;
  align-content:center;
  padding:14px;
  border:1px solid #d8e5fb;
  border-radius:14px;
  background:#f8fbff;
}
.landing-action-grid span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.landing-action-grid strong{
  color:var(--text);
  line-height:1.25;
}
.launch-feature-grid{
  width:100%;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.launch-feature-grid .feature-card{
  display:grid;
  grid-template-rows:auto auto 1fr;
  gap:14px;
  min-width:0;
  min-height:220px;
  padding:24px;
}
.launch-feature-grid .feature-card h3{
  line-height:1.12;
}
.launch-feature-grid .feature-card p{
  margin:0;
}

@media (max-width:1180px){
  .landing-live-card{
    grid-template-columns:1fr;
  }
  .launch-feature-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:860px){
  .landing-action-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:640px){
  .launch-feature-grid{
    grid-template-columns:1fr;
  }
  .launch-feature-grid .feature-card{
    min-height:0;
  }
}

/* May 2026 product polish: Fabricata white/blue workspace refresh */
.cut-readout{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.cut-readout div{
  display:grid;
  align-content:center;
  gap:8px;
  min-height:88px;
  padding:18px 16px;
  border-radius:16px;
  background:#fff;
  border:1px solid #d8e5fb;
}
.cut-readout span{
  display:block;
  margin-bottom:0;
  color:var(--muted);
}
.cut-readout strong{
  display:block;
  color:var(--text);
  font-size:1.12rem;
  line-height:1.2;
}

.inventory-tab-row,
.optimize-anchors{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:8px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow-sm);
}
.inventory-tab-row .tab,
.optimize-anchors .tab{
  background:transparent;
  color:#31506f;
  border-color:transparent;
}
.inventory-tab-row .tab:hover,
.optimize-anchors .tab:hover{
  background:#eef5ff;
  border-color:#cddcff;
  color:var(--primary-strong);
}
.inventory-tab-row .tab.active,
.optimize-anchors .tab.active{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  color:#fff;
  border-color:var(--primary);
  box-shadow:0 10px 22px rgba(37,99,235,.2);
}
.inventory-panel-shell,
.table-card-shell,
.optimize-summary-grid .metric-card,
.operator-card,
.bar-section,
.bar-card,
.demo-bar-card,
.demo-input-panel{
  background:linear-gradient(180deg,#fff,#f7fbff);
  border-color:var(--border);
  color:var(--text);
}
.premium-bar-track,
.bar-track,
.demo-bar-track{
  background:#eaf2ff;
  border:1px solid #cddcff;
}
.bar-seg.cut,
.demo-bar-seg.cut{
  background:linear-gradient(135deg,#60a5fa,#2563eb);
  color:#fff;
}
.bar-seg.offcut,
.demo-bar-seg.offcut{
  background:linear-gradient(135deg,#34d399,#0f766e);
  color:#fff;
}
.bar-seg.scrap,
.demo-bar-seg.scrap{
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
}
.bar-legend .swatch{
  border:1px solid rgba(15,23,42,.08);
}

.stock-length-cell{
  display:grid;
  gap:8px;
  min-width:190px;
}
.stock-length-cell .warehouse-length-select,
.stock-length-cell .warehouse-length-help{
  display:none;
}
.stock-plan-row[data-source="warehouse"] .stock-length-input{
  display:none;
}
.stock-plan-row[data-source="warehouse"] .warehouse-length-select,
.stock-plan-row[data-source="warehouse"] .warehouse-length-help{
  display:block;
}
.warehouse-length-select.is-empty{
  color:var(--muted);
  background:#f8fbff;
}
.stock-supply-cell{
  grid-template-rows:auto 1fr;
}

/* Builder and warehouse table hardening */
.pill,
.status-pill,
.builder-workflow-status-text,
.builder-workflow-mobile-status,
.table-actions .btn,
.row-actions .btn,
.table-action-button,
.inventory-qty,
.stock-length-cell input,
.stock-plan-table input[type="number"]{
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
}

.pill,
.status-pill{
  min-width:max-content;
  text-align:center;
}

.builder-table-wrap,
.inventory-table-wrap{
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
}

.builder-entry-table{
  table-layout:auto;
}

.builder-entry-table:not(.stock-plan-table){
  min-width:700px;
}

.builder-entry-table:not(.stock-plan-table) th:nth-child(1),
.builder-entry-table:not(.stock-plan-table) td:nth-child(1){
  width:56px;
}

.builder-entry-table:not(.stock-plan-table) th:nth-child(3),
.builder-entry-table:not(.stock-plan-table) td:nth-child(3),
.builder-entry-table:not(.stock-plan-table) th:nth-child(4),
.builder-entry-table:not(.stock-plan-table) td:nth-child(4){
  width:150px;
}

.builder-entry-table:not(.stock-plan-table) th:nth-child(5),
.builder-entry-table:not(.stock-plan-table) td:nth-child(5){
  width:130px;
  text-align:center;
}

.builder-entry-table:not(.stock-plan-table) th:nth-child(6),
.builder-entry-table:not(.stock-plan-table) td:nth-child(6){
  width:150px;
  min-width:150px;
  text-align:center;
}

.actions-cell{
  width:150px;
  min-width:150px;
  text-align:center;
  vertical-align:middle;
}

.status-cell{
  text-align:center;
  vertical-align:middle;
}

.table-action-stack{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
}

.table-action-stack--vertical,
.table-action-stack--compact{
  flex-direction:column;
}

.table-action-stack--warehouse{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  min-width:0;
}

.table-action-stack--warehouse .table-action-button{
  min-width:0;
  width:100%;
  padding-left:8px;
  padding-right:8px;
}

.table-action-button{
  min-width:104px;
  justify-content:center;
  text-align:center;
}

.table-action-stack--vertical .table-action-button{
  width:116px;
}

.table-action-stack--compact .table-action-button{
  width:104px;
}

/* Sized to what the controls need so the plan fits the builder column on a laptop
   with the workflow rail collapsed; narrower screens scroll inside the table wrap. */
.stock-plan-table{
  min-width:760px;
}

.stock-plan-table th:nth-child(2),
.stock-plan-table td:nth-child(2){
  width:230px;
}

.stock-plan-table th:nth-child(3),
.stock-plan-table td:nth-child(3){
  width:170px;
}

.stock-plan-table th:nth-child(4),
.stock-plan-table td:nth-child(4){
  width:90px;
}

.stock-plan-table th:nth-child(6),
.stock-plan-table td:nth-child(6),
.stock-plan-table .actions-cell{
  width:108px;
  min-width:108px;
  text-align:center;
}

.builder-entry-table th,
.builder-entry-table td{
  padding-left:10px;
  padding-right:10px;
}

.stock-plan-table input[name="stock_qty[]"]{
  min-width:72px;
}

.stock-plan-table .table-action-stack--compact .table-action-button{
  width:88px;
  min-width:88px;
}

.stock-length-cell{
  min-width:140px;
}

.traceability-stack{
  min-width:180px;
}

.trace-pill{
  min-height:32px;
}

.warehouse-stock-table{
  min-width:860px;
}

.warehouse-stock-table td > strong,
.warehouse-stock-table td > a > strong{
  white-space:nowrap;
}

.warehouse-stock-table th,
.warehouse-stock-table td{
  padding-left:10px;
  padding-right:10px;
}

.warehouse-stock-table .inventory-meta-stack .pill{
  white-space:normal;
  min-width:0;
}

.warehouse-stock-table th:last-child,
.warehouse-stock-table td:last-child{
  width:156px;
  min-width:156px;
  text-align:center;
  vertical-align:middle;
}

.warehouse-actions-cell{
  width:156px;
  min-width:156px;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.52);
}

.modal-backdrop[hidden]{
  display:none;
}

.modal-panel{
  width:min(720px,100%);
  max-height:min(calc(100dvh - 48px),760px);
  border:1px solid var(--border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.26);
  overflow:hidden;
}

.modal-form{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  max-height:inherit;
  height:100%;
}

.modal-head,
.modal-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px;
}

.modal-head{
  border-bottom:1px solid var(--border);
}

.modal-head h3{
  margin:2px 0 0;
}

.modal-close-btn{
  width:40px;
  height:40px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.modal-body{
  display:grid;
  gap:16px;
  padding:20px 22px;
  min-height:0;
  overflow:auto;
}

.modal-body label{
  display:grid;
  gap:8px;
  font-size:13px;
  font-weight:700;
}

.modal-body textarea{
  resize:vertical;
  min-height:92px;
}

.modal-actions{
  justify-content:flex-end;
  border-top:1px solid var(--border);
  background:#f8fbff;
  position:relative;
  z-index:1;
}

.stock-remove-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.stock-remove-summary div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f8fbff;
}

.stock-remove-summary .span-2{
  grid-column:1 / -1;
}

.stock-remove-summary span{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.stock-remove-summary strong{
  font-size:14px;
  line-height:1.35;
}

.modal-error{
  padding:12px 14px;
  border:1px solid rgba(220,38,38,.28);
  border-radius:14px;
  background:#fef2f2;
  color:#991b1b;
  font-weight:700;
}

.stock-remove-reservation-confirm{
  display:flex;
  grid-template-columns:auto 1fr;
  align-items:flex-start;
  padding:12px;
  border:1px solid rgba(217,119,6,.28);
  border-radius:14px;
  background:#fffbeb;
}

.stock-remove-reservation-confirm input{
  width:auto;
  min-height:0;
  margin-top:3px;
}

html[data-theme="dark"] body.is-authenticated .modal-panel,
html[data-theme="dark"] body.is-authenticated .modal-close-btn{
  background:#172033;
  border-color:var(--border);
  color:var(--text);
}

html[data-theme="dark"] body.is-authenticated .modal-actions,
html[data-theme="dark"] body.is-authenticated .stock-remove-summary div{
  background:#101827;
}

html[data-theme="dark"] body.is-authenticated .modal-error{
  background:rgba(127,29,29,.28);
  border-color:rgba(248,113,113,.32);
  color:#fecaca;
}

@media (max-width:640px){
  .modal-backdrop{
    padding:12px;
    align-items:flex-end;
  }
  .modal-panel{
    max-height:92vh;
    border-radius:20px;
  }
  .modal-head,
  .modal-actions,
  .modal-body{
    padding:16px;
  }
  .stock-remove-summary{
    grid-template-columns:1fr;
  }
}

@media (max-width:1180px){
  .builder-work-area,
  .builder-main,
  .builder-summary-card,
  .project-builder-shell{
    min-width:0;
  }
}

html[data-theme="dark"] body.is-authenticated .inventory-tab-row,
html[data-theme="dark"] body.is-authenticated .optimize-anchors{
  background:rgba(17,24,39,.9);
  border-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .inventory-tab-row .tab,
html[data-theme="dark"] body.is-authenticated .optimize-anchors .tab{
  color:var(--muted);
}
html[data-theme="dark"] body.is-authenticated .inventory-tab-row .tab:hover,
html[data-theme="dark"] body.is-authenticated .optimize-anchors .tab:hover{
  background:#1f2a44;
  color:var(--primary-strong);
  border-color:rgba(96,165,250,.34);
}
html[data-theme="dark"] body.is-authenticated .inventory-panel-shell,
html[data-theme="dark"] body.is-authenticated .table-card-shell,
html[data-theme="dark"] body.is-authenticated .optimize-summary-grid .metric-card,
html[data-theme="dark"] body.is-authenticated .operator-card,
html[data-theme="dark"] body.is-authenticated .bar-section,
html[data-theme="dark"] body.is-authenticated .bar-card,
html[data-theme="dark"] body.is-authenticated .demo-bar-card,
html[data-theme="dark"] body.is-authenticated .demo-input-panel{
  background:linear-gradient(180deg,#111827,#172033);
  border-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .premium-bar-track,
html[data-theme="dark"] body.is-authenticated .bar-track,
html[data-theme="dark"] body.is-authenticated .demo-bar-track{
  background:#0f172a;
  border-color:var(--border-strong);
}

@media (max-width:860px){
  .cut-readout{
    grid-template-columns:1fr;
  }
}

/* Billing activation revamp and dark-mode hardening */
.billing-activate-modern{
  gap:24px;
}
.billing-activate-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  background:
    linear-gradient(135deg,rgba(37,99,235,.08),transparent 42%),
    linear-gradient(180deg,#fff,#f7fbff);
}
.billing-activate-hero h2{
  max-width:18ch;
}
.billing-activation-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:24px;
  align-items:start;
}
.billing-state-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.billing-state-card{
  display:grid;
  gap:14px;
  min-height:148px;
  background:linear-gradient(180deg,#fff,#f7fbff);
  border-color:var(--border);
}
.billing-state-card h3,
.manual-payment-card h3,
.billing-safety-card h3{
  line-height:1.2;
}
.billing-safety-card{
  display:grid;
  gap:12px;
  background:#f1f7ff;
  border-color:#cddcff;
}
.manual-payment-card{
  display:grid;
  gap:18px;
  position:sticky;
  top:18px;
  background:linear-gradient(180deg,#fff,#f7fbff);
  border-color:var(--border);
}
.billing-activation-form{
  gap:18px;
}
.billing-activation-form label{
  gap:10px;
}
.billing-activation-form select{
  min-height:48px;
}
html[data-theme="dark"] body.is-authenticated{
  background:linear-gradient(180deg,#0f172a 0%,#111827 100%);
}
html[data-theme="dark"] body.is-authenticated .content-wrap,
html[data-theme="dark"] body.is-authenticated .main-content,
html[data-theme="dark"] body.is-authenticated .app-shell{
  background:linear-gradient(180deg,#0f172a 0%,#111827 100%);
}
html[data-theme="dark"] body.is-authenticated .card,
html[data-theme="dark"] body.is-authenticated .sub-card,
html[data-theme="dark"] body.is-authenticated .auth-card,
html[data-theme="dark"] body.is-authenticated .auth-showcase,
html[data-theme="dark"] body.is-authenticated .metric-card,
html[data-theme="dark"] body.is-authenticated .status-card,
html[data-theme="dark"] body.is-authenticated .price-card,
html[data-theme="dark"] body.is-authenticated .workflow-step,
html[data-theme="dark"] body.is-authenticated .cardless-panel,
html[data-theme="dark"] body.is-authenticated .soft-panel,
html[data-theme="dark"] body.is-authenticated .page-header-card,
html[data-theme="dark"] body.is-authenticated .workspace-hero-card,
html[data-theme="dark"] body.is-authenticated .billing-state-card,
html[data-theme="dark"] body.is-authenticated .billing-safety-card,
html[data-theme="dark"] body.is-authenticated .manual-payment-card,
html[data-theme="dark"] body.is-authenticated .elevated-table{
  background:linear-gradient(180deg,#111827,#172033);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}
html[data-theme="dark"] body.is-authenticated h1,
html[data-theme="dark"] body.is-authenticated h2,
html[data-theme="dark"] body.is-authenticated h3,
html[data-theme="dark"] body.is-authenticated h4,
html[data-theme="dark"] body.is-authenticated strong,
html[data-theme="dark"] body.is-authenticated .brand-title,
html[data-theme="dark"] body.is-authenticated .page-title,
html[data-theme="dark"] body.is-authenticated .label,
html[data-theme="dark"] body.is-authenticated .eyebrow{
  color:var(--text);
}
html[data-theme="dark"] body.is-authenticated p,
html[data-theme="dark"] body.is-authenticated .muted,
html[data-theme="dark"] body.is-authenticated .small,
html[data-theme="dark"] body.is-authenticated .field-help,
html[data-theme="dark"] body.is-authenticated .page-intro,
html[data-theme="dark"] body.is-authenticated .section-lead,
html[data-theme="dark"] body.is-authenticated .summary-list span,
html[data-theme="dark"] body.is-authenticated .meta-list span,
html[data-theme="dark"] body.is-authenticated .detail-list span{
  color:var(--muted);
}
html[data-theme="dark"] body.is-authenticated input,
html[data-theme="dark"] body.is-authenticated select,
html[data-theme="dark"] body.is-authenticated textarea{
  background:#0f172a;
  color:var(--text);
  border-color:var(--border-strong);
}
html[data-theme="dark"] body.is-authenticated option{
  background:#0f172a;
  color:var(--text);
}
html[data-theme="dark"] body.is-authenticated .summary-list>div,
html[data-theme="dark"] body.is-authenticated .meta-list>div,
html[data-theme="dark"] body.is-authenticated .detail-list>div,
html[data-theme="dark"] body.is-authenticated tbody td{
  border-bottom-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .pill-neutral,
html[data-theme="dark"] body.is-authenticated .pill-soft,
html[data-theme="dark"] body.is-authenticated .pill-info{
  background:rgba(96,165,250,.12);
  color:var(--primary-strong);
  border-color:rgba(96,165,250,.28);
}
html[data-theme="dark"] body.is-authenticated .pill-success{
  background:rgba(34,197,94,.12);
  color:#86efac;
  border-color:rgba(34,197,94,.24);
}
html[data-theme="dark"] body.is-authenticated .pill-warning{
  background:rgba(251,146,60,.12);
  color:#bae6fd;
  border-color:rgba(251,146,60,.28);
}
html[data-theme="dark"] body.is-authenticated .theme-toggle{
  background:#0f172a;
  color:var(--primary-strong);
  border-color:rgba(96,165,250,.34);
}

@media (max-width:980px){
  .billing-activation-layout,
  .billing-state-grid{
    grid-template-columns:1fr;
  }
  .manual-payment-card{
    position:static;
  }
}

/* Production manual billing and industrial blue refinement */
:root{
  --primary:#2563eb;
  --primary-strong:#1d4ed8;
  --primary-soft:#eaf2ff;
  --teal:#0f766e;
  --teal-soft:#e7f8f5;
  --steel:#64748b;
  --gold:#38bdf8;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
}
.btn-secondary{
  color:#17315a;
  border-color:var(--border-strong);
}
.btn-secondary:hover,
.btn-ghost:hover,
.btn-tertiary:hover{
  background:#edf5ff;
  color:var(--primary-strong);
  border-color:#9db8ff;
}
.pill-warning{
  background:var(--warning-soft);
  color:#075985;
  border-color:#bae6fd;
}
html[data-theme="dark"] body.is-authenticated .btn-secondary,
html[data-theme="dark"] body.is-authenticated .btn-tertiary,
html[data-theme="dark"] body.is-authenticated .btn-ghost,
html[data-theme="dark"] body.is-authenticated .app-nav-toggle{
  background:#172033;
  color:var(--text);
  border-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .sidebar-logout-form .btn{
  background:#172033;
  color:#e5edf7;
  border-color:rgba(96,165,250,.34);
}
html[data-theme="dark"] body.is-authenticated .btn-secondary:hover,
html[data-theme="dark"] body.is-authenticated .btn-tertiary:hover,
html[data-theme="dark"] body.is-authenticated .btn-ghost:hover,
html[data-theme="dark"] body.is-authenticated .sidebar-logout-form .btn:hover{
  background:#1f2a44;
  color:#93c5fd;
  border-color:rgba(96,165,250,.46);
}
.price-card-featured{
  border-color:#9db8ff;
  box-shadow:0 22px 54px rgba(37,99,235,.14);
}
.brand-mark.hex:after{border-color:var(--teal)}
.billing-access-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  padding:16px 18px;
  border:1px solid #cddcff;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#eef5ff);
  box-shadow:var(--shadow-sm);
}
.billing-access-banner strong{
  display:block;
  margin-top:4px;
  font-size:1.05rem;
}
.billing-access-banner p{
  margin-top:4px;
  color:var(--muted);
}
.manual-billing-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:24px;
  align-items:start;
}
.manual-activation-card{
  background:linear-gradient(180deg,#ffffff,#f7fbff);
}
.activation-steps{
  margin:12px 0 0;
  padding-left:22px;
  color:var(--text);
  display:grid;
  gap:10px;
}
.activation-steps li::marker{
  color:var(--primary);
  font-weight:800;
}
.manual-invoice-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.manual-invoice-strip div{
  display:grid;
  gap:6px;
  min-width:0;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f8fbff;
}
.manual-invoice-strip span{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
.manual-invoice-strip strong{
  overflow-wrap:anywhere;
}
.billing-action-row,
.button-cluster{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.billing-bank-list strong{
  text-align:right;
  overflow-wrap:anywhere;
}
.pop-upload-form{
  padding-top:18px;
  border-top:1px solid var(--border);
}
.pop-preview{
  display:grid;
  gap:8px;
  padding:14px;
  border:1px dashed #b7ccff;
  border-radius:14px;
  background:#f8fbff;
}
.admin-billing-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.admin-billing-actions{
  min-width:310px;
}
.admin-action-form{
  display:grid;
  gap:10px;
}
.admin-action-form textarea{
  min-height:72px;
}
.movement-table{
  table-layout:fixed;
  min-width:920px;
}
.movement-col-type{width:190px}
.movement-col-ref{width:140px}
.movement-col-small{width:92px}
.movement-col-created{width:170px}
.movement-type-cell{
  vertical-align:middle;
}
.movement-type-pill{
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  line-height:1.25;
  text-align:left;
  justify-content:flex-start;
  min-width:152px;
}
.movement-table td,
.movement-table th{
  vertical-align:middle;
}
.topbar-kicker-row{
  flex-wrap:wrap;
  min-width:0;
}
.topbar-title-group{
  min-width:min(100%,340px);
}
.topbar-actions{
  align-items:center;
}
.app-nav-toggle,
.public-nav-toggle{
  align-items:center;
  justify-content:center;
  min-width:44px;
  white-space:nowrap;
}
@media (max-width:980px){
  .manual-billing-grid,
  .manual-invoice-strip,
  .admin-billing-filter-grid{
    grid-template-columns:1fr;
  }
  .billing-access-banner{
    align-items:flex-start;
  }
  .topbar-main,
  .topbar-actions{
    width:100%;
  }
  .topbar-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .topbar-actions .btn{
    width:100%;
  }
}
@media (max-width:640px){
  .billing-access-banner,
  .billing-action-row,
  .button-cluster{
    display:grid;
  }
  .topbar-actions{
    grid-template-columns:1fr;
  }
}

html[data-theme="dark"] body.is-authenticated{
  --warning:#7dd3fc;
  --warning-soft:rgba(125,211,252,.12);
}
html[data-theme="dark"] body.is-authenticated .site-footer,
html[data-theme="dark"] body.is-authenticated .app-footer{
  background:#0f172a;
  color:var(--text);
  border-top-color:var(--border);
}
html[data-theme="dark"] body.is-authenticated .site-footer a,
html[data-theme="dark"] body.is-authenticated .site-footer .brand-title,
html[data-theme="dark"] body.is-authenticated .footer-links-app span{
  color:var(--text);
}
html[data-theme="dark"] body.is-authenticated .site-footer a:hover{
  color:var(--primary-strong);
}
html[data-theme="dark"] body.is-authenticated .sidebar-logout-form{
  background:linear-gradient(180deg,transparent,#111827 36%);
}
html[data-theme="dark"] body.is-authenticated .billing-access-banner,
html[data-theme="dark"] body.is-authenticated .manual-activation-card,
html[data-theme="dark"] body.is-authenticated .manual-invoice-strip div,
html[data-theme="dark"] body.is-authenticated .pop-preview{
  background:linear-gradient(180deg,#111827,#172033);
  border-color:var(--border);
  color:var(--text);
}
html[data-theme="dark"] body.is-authenticated .movement-table tbody tr:hover{
  background:rgba(96,165,250,.08);
}

.admin-console-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  background:linear-gradient(180deg,#f5f8fc 0%,#eef4fb 100%);
}
.admin-console-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:26px 20px;
  background:linear-gradient(180deg,#0f172a,#172033);
  color:#fff;
  border-right:1px solid rgba(255,255,255,.08);
}
.admin-brand .brand-title,
.admin-brand .brand-subtitle{
  color:#fff;
}
.admin-brand .brand-subtitle,
.admin-console-meta span{
  color:rgba(255,255,255,.66);
}
.admin-console-nav{
  display:grid;
  gap:8px;
}
.admin-console-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:11px 13px;
  border-radius:12px;
  color:rgba(255,255,255,.78);
  font-weight:800;
  border:1px solid transparent;
}
.admin-console-nav a:hover,
.admin-console-nav a.active{
  color:#fff;
  background:rgba(59,130,246,.16);
  border-color:rgba(147,197,253,.28);
}
.admin-console-meta{
  margin-top:auto;
  display:grid;
  gap:4px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  overflow-wrap:anywhere;
}
.admin-console-logout .btn-secondary{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
  color:#fff;
}
.admin-console-main{
  min-width:0;
  display:grid;
  grid-template-rows:auto 1fr;
}
.admin-console-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:26px 30px;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  position:sticky;
  top:0;
  z-index:20;
}
.admin-console-topbar h1{
  font-size:clamp(1.9rem,3vw,2.7rem);
}
.admin-console-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.admin-console-content{
  padding:28px 30px 42px;
  min-width:0;
}
.admin-dashboard-page,
.admin-dashboard-page>section,
.admin-dashboard-page>.card,
.admin-management-grid>.card{
  min-width:0;
  max-width:100%;
}
.admin-login-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 18px;
  background:
    linear-gradient(135deg,rgba(15,23,42,.94),rgba(23,32,51,.92)),
    linear-gradient(180deg,#f5f8fc,#eef4fb);
}
.admin-login-card{
  width:min(520px,100%);
  display:grid;
  gap:22px;
  padding:30px;
  border-radius:22px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(219,229,240,.78);
  box-shadow:var(--shadow-lg);
}
.admin-login-card h1{
  font-size:clamp(2rem,4vw,3rem);
}
.admin-filter-card{
  padding:18px;
}
.admin-filter-grid{
  display:grid;
  grid-template-columns:minmax(240px,1.4fr) minmax(160px,.7fr) minmax(160px,.7fr) auto;
  gap:14px;
  align-items:end;
}
.admin-filter-actions,
.admin-row-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.admin-kpi-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.admin-management-grid{
  align-items:start;
}
.admin-table-wrap{
  max-width:100%;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.admin-data-table{
  min-width:980px;
}
.admin-data-table input,
.admin-data-table select{
  min-width:132px;
}
.admin-data-table details{
  max-width:360px;
}
.admin-data-table pre{
  white-space:pre-wrap;
  word-break:break-word;
  margin:8px 0 0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface-2);
  color:var(--text);
}
body.is-admin-console .site-footer{
  display:none;
}
html[data-theme="dark"] body.is-admin-console{
  --bg:#0b1120;
  --bg-2:#101827;
  --surface:#111827;
  --surface-2:#172033;
  --surface-3:#1e293b;
  --border:#263244;
  --border-strong:#334155;
  --text:#e5edf6;
  --muted:#a8b3c3;
  background:#0b1120;
}
html[data-theme="dark"] body.is-admin-console .admin-console-shell{
  background:linear-gradient(180deg,#0b1120,#101827);
}
html[data-theme="dark"] body.is-admin-console .admin-console-topbar,
html[data-theme="dark"] body.is-admin-console .admin-login-card,
html[data-theme="dark"] body.is-admin-console .card,
html[data-theme="dark"] body.is-admin-console .admin-table-wrap{
  background:#111827;
  border-color:#263244;
  color:var(--text);
}
html[data-theme="dark"] body.is-admin-console tbody tr:hover{
  background:rgba(96,165,250,.08);
}
html[data-theme="dark"] body.is-admin-console input,
html[data-theme="dark"] body.is-admin-console select,
html[data-theme="dark"] body.is-admin-console textarea{
  background:#0f172a;
  border-color:#334155;
  color:var(--text);
}
html[data-theme="dark"] body.is-admin-console input::placeholder,
html[data-theme="dark"] body.is-admin-console textarea::placeholder{
  color:#7f8da0;
}
html[data-theme="dark"] body.is-admin-console .btn-secondary,
html[data-theme="dark"] body.is-admin-console .btn-tertiary{
  background:#172033;
  border-color:#334155;
  color:var(--text);
}
html[data-theme="dark"] body.is-admin-console .btn-secondary:hover,
html[data-theme="dark"] body.is-admin-console .btn-tertiary:hover{
  background:#1e293b;
}
@media (max-width:1100px){
  .admin-console-shell{
    grid-template-columns:1fr;
  }
  .admin-console-sidebar{
    position:relative;
    height:auto;
  }
  .admin-console-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-filter-grid,
  .admin-kpi-grid,
  .admin-management-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:680px){
  .admin-console-topbar,
  .admin-console-content{
    padding-left:18px;
    padding-right:18px;
  }
  .admin-console-actions,
  .admin-filter-actions{
    display:grid;
    width:100%;
  }
  .admin-console-actions .btn,
  .admin-filter-actions .btn{
    width:100%;
  }
  .admin-console-nav{
    grid-template-columns:1fr;
  }
}

/* Fabricata Cut brand system refresh - supplied 2026 logo pack */
:root{
  --bg:#f4f7fb;
  --bg-2:#eef3f9;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --surface-3:#eef4ff;
  --border:#dbe5f0;
  --border-strong:#c5d2e0;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --primary:#2563eb;
  --primary-strong:#1d4ed8;
  --primary-soft:#e9f1ff;
  --teal:#2563eb;
  --teal-soft:#e9f1ff;
  --charcoal:#0f172a;
  --charcoal-2:#1e3a8a;
  --steel:#475569;
  --gold:#60a5fa;
  --warning:#0369a1;
  --warning-soft:#e0f2fe;
  --danger:#dc2626;
  --danger-soft:#fef2f2;
  --shadow-sm:0 10px 24px rgba(15,23,42,.06);
  --shadow-md:0 20px 48px rgba(15,23,42,.09);
  --shadow-lg:0 28px 70px rgba(15,23,42,.13);
}

body,
body.is-public,
body.is-authenticated,
body.is-admin-console{
  background:linear-gradient(180deg,#f8fbff 0%,#f4f7fb 50%,#eef4fb 100%);
  color:var(--text);
}

/* Brand lockup frames.
   The approved horizontal lockup is 1135x200, i.e. 5.675:1. Frame widths below are
   height * 5.675 so the mark fills the frame at its true aspect and object-fit:contain
   never has to letterbox it. Do not change one axis without the other. */
.brand-logo-frame{
  --brand-logo-frame-height:40px;
  --brand-logo-frame-width:227px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  width:var(--brand-logo-frame-width);
  height:var(--brand-logo-frame-height);
  max-width:var(--brand-logo-frame-width);
  overflow:hidden;
}
.brand-logo-frame--header{
  --brand-logo-frame-height:40px;
  --brand-logo-frame-width:227px;
}
.brand-logo-frame--sidebar,
.brand-logo-frame--auth{
  --brand-logo-frame-height:46px;
  --brand-logo-frame-width:261.05px;
}
.brand-logo-frame--admin,
.brand-logo-frame--footer{
  --brand-logo-frame-height:42px;
  --brand-logo-frame-width:238.35px;
}
.brand-logo-frame--footer{display:flex;margin-bottom:12px}
.brand-logo{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:contain;
  object-position:left center;
  flex:0 0 auto;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.footer-brand-logo{height:100%;width:100%;margin:0}
.brand:has(.brand-logo){
  min-width:0;
}
/* Lockup variant switching. Exactly one of the three is displayed at any time.
   Default: colour lockup on light surfaces, wide viewports. */
.brand-logo--dark,
.brand-logo--compact,
.brand-logo--compact-dark{display:none}
html[data-theme="dark"] .brand-logo--light{display:none}
html[data-theme="dark"] .brand-logo--dark{display:block}
@media (max-width:479px){
  .brand-logo-frame--header{
    /* icon-only below the 120px brand minimum for the horizontal lockup */
    --brand-logo-frame-height:34px;
    --brand-logo-frame-width:34px;
  }
  /* The theme rules above are html[data-theme] qualified, so they outrank a
     bare .frame .logo selector no matter that this block comes later. The
     dark-theme lockup has to be hidden by an equally qualified selector or it
     stays on screen next to the icon. */
  .brand-logo-frame--header .brand-logo--light,
  .brand-logo-frame--header .brand-logo--dark,
  html[data-theme="dark"] .brand-logo-frame--header .brand-logo--light,
  html[data-theme="dark"] .brand-logo-frame--header .brand-logo--dark{display:none}
  .brand-logo-frame--header .brand-logo--compact{display:block}
  html[data-theme="dark"] .brand-logo-frame--header .brand-logo--compact{display:none}
  html[data-theme="dark"] .brand-logo-frame--header .brand-logo--compact-dark{display:block}
}
.auth-card .brand,
.admin-brand,
.admin-login-brand{
  align-items:flex-start;
  flex-direction:column;
  gap:8px;
}
.brand-mark.hex{
  width:42px;
  height:42px;
  transform:none;
  border-radius:13px;
  background:#fff url('/static/brand/fabricata-cut-icon.svg') center/100% 100% no-repeat;
  border:1px solid rgba(30,58,138,.22);
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.brand-mark.hex:after{content:none}

.announcement-bar{
  background:linear-gradient(90deg,#f8fbff,#eef5ff);
  color:var(--text);
  border-bottom:1px solid var(--border);
}
.announcement-bar-row p{color:var(--muted)}
.announcement-bar-row a{color:var(--primary-strong);font-weight:800}
.announcement-pill{background:#fff;color:var(--primary-strong);border:1px solid #cbdcff}
.public-header,
.public-header--transparent{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(219,229,240,.9);
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.public-nav a:not(.btn){color:var(--muted)}
.public-nav a:not(.btn):hover{color:var(--primary-strong)}
.public-nav a:not(.btn)::after{background:rgba(37,99,235,.42)}

.btn-primary,
.btn-primary:visited{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color:#1d4ed8;
  color:#fff;
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}
.btn-primary:hover,
.btn-primary:active{
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  border-color:#1d4ed8;
  color:#fff;
  box-shadow:0 18px 38px rgba(37,99,235,.28);
}
.btn-secondary{background:#fff;color:#17315a;border-color:#b9c8dc}
.btn-secondary:hover{background:#eef5ff;color:#102a53;border-color:#9db8ff}
.btn-ghost,
.btn-tertiary{background:#f8fbff;color:#31506f;border-color:var(--border)}
.btn-ghost:hover,
.btn-tertiary:hover{background:#edf5ff;color:#17315a;border-color:#b7ccff}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab:focus-visible{
  box-shadow:0 0 0 4px rgba(37,99,235,.18);
}

.pill-info,
.pill-soft{background:#e9f1ff;color:#1d4ed8;border-color:#cbdcff}
.pill-teal{background:#e9f1ff;color:#1d4ed8;border-color:#cbdcff}
.pill-warning{background:#e0f2fe;color:#075985;border-color:#bae6fd}
.label-chip{background:#eef4ff;border-color:#c9d8ff;color:#1d4ed8}

.auth-showcase,
.auth-showcase-gradient,
.auth-showcase-light{
  background:
    radial-gradient(circle at 12% 0,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%);
  color:var(--text);
  border-color:var(--border);
}
.auth-showcase h1,
.auth-showcase h2,
.auth-showcase h3,
.auth-showcase .muted,
.auth-showcase-light h1,
.auth-showcase-light h2,
.auth-showcase-light h3,
.auth-showcase-light .muted{color:var(--text)}
.auth-showcase .muted,
.auth-showcase-light .muted{color:var(--muted);opacity:1}
.auth-showcase .list-item,
.auth-showcase-light .list-item{border-bottom-color:#e6edf6}
.auth-showcase .pill-soft,
.auth-showcase-light .pill-soft{background:#eef4ff;color:#335792;border-color:#d8e3fb}

.site-footer{
  background:#fff;
  color:var(--text);
  border-top:1px solid var(--border);
}
.site-footer .brand-title,
.site-footer a,
.footer-links-app span{color:var(--text)}
.site-footer a:hover{color:var(--primary-strong)}
.site-footer .muted{color:var(--muted)}

.bar-seg.scrap,
.demo-bar-seg.scrap,
.seg.scrap{
  background:linear-gradient(135deg,#ef4444,#b91c1c);
  color:#fff;
}
.bar-seg.cut,
.demo-bar-seg.cut,
.seg.cut{
  background:linear-gradient(135deg,#60a5fa,#2563eb);
  color:#fff;
}

.label-brand{
  height:26px;
  width:auto;
  max-width:172px;
  object-fit:contain;
}

.admin-console-shell{
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
}
.admin-console-sidebar{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  color:var(--text);
  border-right:1px solid var(--border);
  box-shadow:8px 0 24px rgba(15,23,42,.04);
}
.admin-brand .brand-title,
.admin-brand .brand-subtitle,
.admin-console-meta span,
.admin-console-meta strong{color:var(--text)}
.admin-brand .brand-subtitle,
.admin-console-meta span{color:var(--muted)}
.admin-console-nav a{
  color:var(--text);
  border-color:transparent;
}
.admin-console-nav a:hover,
.admin-console-nav a.active{
  color:var(--primary-strong);
  background:#e9f1ff;
  border-color:#cbdcff;
}
.admin-console-meta{
  background:#ffffff;
  border-color:var(--border);
  color:var(--text);
}
.admin-console-logout .btn-secondary{
  background:#fff;
  border-color:var(--border-strong);
  color:var(--text);
}
.admin-login-shell{
  background:
    radial-gradient(circle at 12% 0,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(180deg,#f8fbff,#eef4fb);
}
.admin-login-card{
  background:#fff;
  border-color:var(--border);
}

/* The white plate behind the lockup is no longer needed: dark mode now serves the approved
   reversed lockup (fabricata-cut-logo-horizontal-white.svg) rather than the ink one, so the
   mark sits directly on the dark surface with no container. Keeping the plate here would put
   white artwork on a white background. */
html[data-theme="dark"] body.is-authenticated .brand-logo-frame,
html[data-theme="dark"] body.is-admin-console .brand-logo-frame{
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html[data-theme="dark"] body.is-authenticated .site-footer,
html[data-theme="dark"] body.is-authenticated .app-footer{
  background:#0f172a;
  color:#e5edf6;
  border-top-color:#263244;
}
html[data-theme="dark"] body.is-authenticated .site-footer a,
html[data-theme="dark"] body.is-authenticated .site-footer .brand-title,
html[data-theme="dark"] body.is-authenticated .footer-links-app span{
  color:#e5edf6;
}
html[data-theme="dark"] body.is-authenticated .site-footer .muted{color:#a8b3c3}
html[data-theme="dark"] body.is-admin-console .admin-console-sidebar{
  background:linear-gradient(180deg,#111827,#172033);
  color:var(--text);
  border-right-color:#263244;
}
html[data-theme="dark"] body.is-admin-console .admin-console-meta{
  background:#172033;
  border-color:#334155;
}
html[data-theme="dark"] body.is-admin-console .admin-console-nav a{
  color:#e5edf6;
}
html[data-theme="dark"] body.is-admin-console .admin-console-nav a:hover,
html[data-theme="dark"] body.is-admin-console .admin-console-nav a.active{
  color:#bfdbfe;
  background:rgba(96,165,250,.14);
  border-color:rgba(147,197,253,.28);
}

@media (max-width:860px){
  .brand-logo-frame--header{
    --brand-logo-frame-height:34px;
    --brand-logo-frame-width:192.95px;
  }
  .brand-logo-frame--sidebar,
  .brand-logo-frame--auth,
  .brand-logo-frame--admin{
    --brand-logo-frame-height:40px;
    --brand-logo-frame-width:227px;
  }
  .brand-logo-frame--footer{
    --brand-logo-frame-height:36px;
    --brand-logo-frame-width:204.3px;
  }
  .public-nav{
    background:#fff;
    border-color:var(--border);
  }
}

/* Dark-mode contrast remediation for builder and platform console */
html[data-theme="dark"] body.is-authenticated .project-builder-shell,
html[data-theme="dark"] body.is-authenticated .builder-main,
html[data-theme="dark"] body.is-authenticated .profile-grid,
html[data-theme="dark"] body.is-authenticated .admin-dashboard-page{
  color:var(--text);
}

html[data-theme="dark"] body.is-authenticated .profile-card,
html[data-theme="dark"] body.is-authenticated .premium-profile-card,
html[data-theme="dark"] body.is-authenticated .readiness-item,
html[data-theme="dark"] body.is-authenticated .stage-chip,
html[data-theme="dark"] body.is-authenticated .builder-workflow-rail,
html[data-theme="dark"] body.is-authenticated .builder-workflow-mobile-bar,
html[data-theme="dark"] body.is-authenticated .builder-workflow-sheet,
html[data-theme="dark"] body.is-authenticated .builder-workflow-item,
html[data-theme="dark"] body.is-authenticated .builder-next-issue-card,
html[data-theme="dark"] body.is-authenticated .workflow-banner,
html[data-theme="dark"] body.is-authenticated .builder-flow-banner,
html[data-theme="dark"] body.is-authenticated .builder-bottom-nav-card,
html[data-theme="dark"] body.is-authenticated .builder-section-card,
html[data-theme="dark"] body.is-authenticated .builder-profile-switcher,
html[data-theme="dark"] body.is-authenticated .builder-paste-box,
html[data-theme="dark"] body.is-authenticated .builder-quick-panel,
html[data-theme="dark"] body.is-authenticated .builder-table-wrap,
html[data-theme="dark"] body.is-authenticated .blocker-card,
html[data-theme="dark"] body.is-authenticated .trace-source-card,
html[data-theme="dark"] body.is-authenticated .price-card.is-current{
  background:linear-gradient(180deg,#111827,#172033);
  border-color:var(--border);
  color:var(--text);
  box-shadow:var(--shadow-sm);
}

html[data-theme="dark"] body.is-authenticated .profile-stats .soft-panel,
html[data-theme="dark"] body.is-authenticated .soft-stat,
html[data-theme="dark"] body.is-authenticated .preview-card-grid > div,
html[data-theme="dark"] body.is-authenticated .countdown-grid div,
html[data-theme="dark"] body.is-authenticated .cut-readout div,
html[data-theme="dark"] body.is-authenticated .landing-action-grid div{
  background:#0f172a;
  border-color:var(--border);
  color:var(--text);
}

html[data-theme="dark"] body.is-authenticated .profile-card h4,
html[data-theme="dark"] body.is-authenticated .premium-profile-card h4,
html[data-theme="dark"] body.is-authenticated .readiness-item strong,
html[data-theme="dark"] body.is-authenticated .stage-chip strong,
html[data-theme="dark"] body.is-authenticated .builder-workflow-copy strong,
html[data-theme="dark"] body.is-authenticated .builder-next-issue-copy strong,
html[data-theme="dark"] body.is-authenticated .builder-workflow-rail-title strong,
html[data-theme="dark"] body.is-authenticated .soft-stat strong,
html[data-theme="dark"] body.is-authenticated .profile-stats .soft-panel strong,
html[data-theme="dark"] body.is-authenticated .builder-bottom-nav-card h3,
html[data-theme="dark"] body.is-authenticated .builder-section-card h4,
html[data-theme="dark"] body.is-authenticated .builder-profile-switcher strong,
html[data-theme="dark"] body.is-authenticated .cut-readout strong{
  color:#f8fafc;
}

html[data-theme="dark"] body.is-authenticated .profile-card .muted,
html[data-theme="dark"] body.is-authenticated .premium-profile-card .muted,
html[data-theme="dark"] body.is-authenticated .readiness-item .label,
html[data-theme="dark"] body.is-authenticated .stage-copy em,
html[data-theme="dark"] body.is-authenticated .builder-workflow-copy em,
html[data-theme="dark"] body.is-authenticated .builder-workflow-copy small,
html[data-theme="dark"] body.is-authenticated .builder-next-issue-copy p,
html[data-theme="dark"] body.is-authenticated .soft-stat span,
html[data-theme="dark"] body.is-authenticated .builder-section-card .muted,
html[data-theme="dark"] body.is-authenticated .builder-profile-switcher .muted,
html[data-theme="dark"] body.is-authenticated .cut-readout span{
  color:#a8b3c3;
}

html[data-theme="dark"] body.is-authenticated .stage-chip:hover,
html[data-theme="dark"] body.is-authenticated .stage-chip.active{
  background:linear-gradient(180deg,#1e3a5f,#172033);
  border-color:rgba(96,165,250,.46);
  color:#bfdbfe;
}

html[data-theme="dark"] body.is-authenticated .builder-workflow-item:hover,
html[data-theme="dark"] body.is-authenticated .builder-workflow-item.is-active{
  background:linear-gradient(180deg,#1e293b,#172033);
  border-color:rgba(96,165,250,.44);
}

html[data-theme="dark"] body.is-authenticated .builder-workflow-collapse{
  background:#0f172a;
  border-color:var(--border);
  color:#e5edf6;
}

html[data-theme="dark"] body.is-authenticated .builder-workflow-item--ready .builder-workflow-status-text,
html[data-theme="dark"] body.is-authenticated .builder-workflow-status--ready{
  background:rgba(20,83,45,.42);
  border-color:rgba(74,222,128,.36);
  color:#bbf7d0;
}

html[data-theme="dark"] body.is-authenticated .builder-workflow-item--not_ready .builder-workflow-status-text,
html[data-theme="dark"] body.is-authenticated .builder-workflow-status--not_ready{
  background:rgba(127,29,29,.42);
  border-color:rgba(248,113,113,.40);
  color:#fecaca;
}

html[data-theme="dark"] body.is-authenticated .builder-workflow-item--warning .builder-workflow-status-text,
html[data-theme="dark"] body.is-authenticated .builder-workflow-status--warning{
  background:rgba(120,53,15,.42);
  border-color:rgba(251,191,36,.42);
  color:#fde68a;
}

html[data-theme="dark"] body.is-authenticated .builder-workflow-item--not_started .builder-workflow-status-text,
html[data-theme="dark"] body.is-authenticated .builder-workflow-status--not_started{
  background:rgba(51,65,85,.55);
  border-color:rgba(148,163,184,.36);
  color:#cbd5e1;
}

html[data-theme="dark"] body.is-authenticated .stage-chip.complete .dot{
  background:#22c55e;
}

html[data-theme="dark"] body.is-authenticated .stage-chip.pending .dot{
  background:#f87171;
  box-shadow:0 0 0 4px rgba(248,113,113,.14);
}

html[data-theme="dark"] body.is-authenticated .stage-chip.pending .stage-copy em{
  color:#fecaca;
}

html[data-theme="dark"] body.is-authenticated .pill-attention{
  background:rgba(127,29,29,.45);
  border-color:rgba(248,113,113,.42);
  color:#fecaca;
}

html[data-theme="dark"] body.is-authenticated .section-readiness-chip.is-ready{
  background:rgba(20,83,45,.42);
  border-color:rgba(74,222,128,.36);
  color:#bbf7d0;
}

html[data-theme="dark"] body.is-authenticated .section-readiness-chip.is-ready .section-readiness-dot{
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

html[data-theme="dark"] body.is-authenticated .section-readiness-chip.is-attention{
  background:rgba(127,29,29,.42);
  border-color:rgba(248,113,113,.40);
  color:#fecaca;
}

html[data-theme="dark"] body.is-authenticated .section-readiness-chip.is-attention .section-readiness-dot{
  background:#f87171;
  box-shadow:0 0 0 4px rgba(248,113,113,.14);
}

html[data-theme="dark"] body.is-authenticated .section-readiness-chip.is-active{
  box-shadow:0 0 0 2px rgba(96,165,250,.28), var(--shadow-sm);
}

html[data-theme="dark"] body.is-authenticated .tab-row,
html[data-theme="dark"] body.is-authenticated .inventory-tab-row,
html[data-theme="dark"] body.is-authenticated .optimize-anchors{
  background:rgba(15,23,42,.86);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}

html[data-theme="dark"] body.is-authenticated .tab,
html[data-theme="dark"] body.is-authenticated .inventory-tab-row .tab,
html[data-theme="dark"] body.is-authenticated .optimize-anchors .tab,
html[data-theme="dark"] body.is-authenticated .builder-bottom-nav-links .btn.btn-tertiary{
  background:#172033;
  border-color:var(--border);
  color:#e5edf6;
}

html[data-theme="dark"] body.is-authenticated .tab:hover,
html[data-theme="dark"] body.is-authenticated .inventory-tab-row .tab:hover,
html[data-theme="dark"] body.is-authenticated .optimize-anchors .tab:hover,
html[data-theme="dark"] body.is-authenticated .builder-bottom-nav-links .btn.btn-tertiary:hover{
  background:#1f2a44;
  border-color:rgba(96,165,250,.46);
  color:#bfdbfe;
}

html[data-theme="dark"] body.is-authenticated .tab.active,
html[data-theme="dark"] body.is-authenticated .inventory-tab-row .tab.active,
html[data-theme="dark"] body.is-authenticated .optimize-anchors .tab.active{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color:#2563eb;
  color:#fff;
}

html[data-theme="dark"] body.is-authenticated .pill-primary,
html[data-theme="dark"] body.is-authenticated .pill-info,
html[data-theme="dark"] body.is-authenticated .pill-soft{
  background:rgba(96,165,250,.16);
  color:#bfdbfe;
  border-color:rgba(147,197,253,.34);
}

html[data-theme="dark"] body.is-authenticated .pill-success{
  background:rgba(34,197,94,.14);
  color:#86efac;
  border-color:rgba(74,222,128,.30);
}

html[data-theme="dark"] body.is-authenticated .pill-warning{
  background:rgba(125,211,252,.14);
  color:#bae6fd;
  border-color:rgba(125,211,252,.32);
}

html[data-theme="dark"] body.is-authenticated .pill-danger{
  background:rgba(248,113,113,.14);
  color:#fca5a5;
  border-color:rgba(248,113,113,.30);
}

html[data-theme="dark"] body.is-authenticated .link-danger{
  color:#fca5a5;
}

html[data-theme="dark"] body.is-authenticated .link-danger:hover{
  color:#fecaca;
}

html[data-theme="dark"] body.is-authenticated .builder-entry-table thead th{
  background:#172033;
  color:#cbd5e1;
  border-bottom-color:var(--border);
}

html[data-theme="dark"] body.is-authenticated .builder-entry-table td,
html[data-theme="dark"] body.is-authenticated .data-table td{
  background:#111827;
  color:#e5edf6;
  border-color:var(--border);
}

html[data-theme="dark"] body.is-authenticated .builder-entry-table tbody tr:hover,
html[data-theme="dark"] body.is-authenticated .data-table tr:hover{
  background:rgba(96,165,250,.08);
}

html[data-theme="dark"] body.is-authenticated .builder-entry-table tbody tr:hover td,
html[data-theme="dark"] body.is-authenticated .data-table tbody tr:hover td{
  background:#13213a;
}

html[data-theme="dark"] body.is-admin-console{
  --bg:#0b1120;
  --bg-2:#101827;
  --surface:#111827;
  --surface-2:#172033;
  --surface-3:#1e293b;
  --border:#263244;
  --border-strong:#334155;
  --text:#e5edf6;
  --muted:#a8b3c3;
  --primary:#60a5fa;
  --primary-strong:#bfdbfe;
  --primary-soft:rgba(96,165,250,.14);
  background:#0b1120;
  color:var(--text);
}

html[data-theme="dark"] body.is-admin-console .admin-console-shell,
html[data-theme="dark"] body.is-admin-console .admin-console-main,
html[data-theme="dark"] body.is-admin-console .admin-console-content{
  background:linear-gradient(180deg,#0b1120,#101827);
  color:var(--text);
}

html[data-theme="dark"] body.is-admin-console .admin-console-topbar,
html[data-theme="dark"] body.is-admin-console .admin-login-card,
html[data-theme="dark"] body.is-admin-console .card,
html[data-theme="dark"] body.is-admin-console .metric-card,
html[data-theme="dark"] body.is-admin-console .admin-filter-card,
html[data-theme="dark"] body.is-admin-console .admin-table-wrap,
html[data-theme="dark"] body.is-admin-console .activity-feed{
  background:#111827;
  border-color:#263244;
  color:var(--text);
  box-shadow:0 18px 44px rgba(0,0,0,.24);
}

html[data-theme="dark"] body.is-admin-console h1,
html[data-theme="dark"] body.is-admin-console h2,
html[data-theme="dark"] body.is-admin-console h3,
html[data-theme="dark"] body.is-admin-console h4,
html[data-theme="dark"] body.is-admin-console strong,
html[data-theme="dark"] body.is-admin-console .eyebrow,
html[data-theme="dark"] body.is-admin-console .label{
  color:#f8fafc;
}

html[data-theme="dark"] body.is-admin-console p,
html[data-theme="dark"] body.is-admin-console .muted,
html[data-theme="dark"] body.is-admin-console .small,
html[data-theme="dark"] body.is-admin-console .field-help,
html[data-theme="dark"] body.is-admin-console .admin-console-meta span{
  color:#a8b3c3;
}

html[data-theme="dark"] body.is-admin-console .admin-data-table th,
html[data-theme="dark"] body.is-admin-console .data-table th,
html[data-theme="dark"] body.is-admin-console thead th{
  background:#172033;
  color:#cbd5e1;
  border-bottom-color:#334155;
}

html[data-theme="dark"] body.is-admin-console .admin-data-table td,
html[data-theme="dark"] body.is-admin-console .data-table td,
html[data-theme="dark"] body.is-admin-console tbody td{
  background:#111827;
  color:#e5edf6;
  border-color:#263244;
}

html[data-theme="dark"] body.is-admin-console .admin-data-table tr:hover td,
html[data-theme="dark"] body.is-admin-console .data-table tr:hover td{
  background:#13213a;
}

html[data-theme="dark"] body.is-admin-console input,
html[data-theme="dark"] body.is-admin-console select,
html[data-theme="dark"] body.is-admin-console textarea{
  background:#0f172a;
  border-color:#334155;
  color:#f8fafc;
}

html[data-theme="dark"] body.is-admin-console input::placeholder,
html[data-theme="dark"] body.is-admin-console textarea::placeholder{
  color:#94a3b8;
}

html[data-theme="dark"] body.is-admin-console option{
  background:#0f172a;
  color:#f8fafc;
}

html[data-theme="dark"] body.is-admin-console .pill-soft,
html[data-theme="dark"] body.is-admin-console .pill-info,
html[data-theme="dark"] body.is-admin-console .pill-neutral{
  background:rgba(96,165,250,.16);
  color:#bfdbfe;
  border-color:rgba(147,197,253,.34);
}

html[data-theme="dark"] body.is-admin-console .pill-success{
  background:rgba(34,197,94,.14);
  color:#86efac;
  border-color:rgba(74,222,128,.30);
}

html[data-theme="dark"] body.is-admin-console .pill-warning{
  background:rgba(125,211,252,.14);
  color:#bae6fd;
  border-color:rgba(125,211,252,.32);
}

/* Focused UI cleanup */
.report-preview-grid,
.strategy-explainer-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.strategy-explainer-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.report-preview-card,
.strategy-explainer-card{
  min-width:0;
}
.report-preview-card .pill{
  justify-self:start;
  margin-bottom:6px;
}
.report-preview-cta,
.showcase-result-cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.optimization-warning-card{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #f5d58a;
  border-radius:18px;
  background:#fffbeb;
  color:#713f12;
}
.optimization-warning-card h4{
  margin-top:8px;
  color:#713f12;
  line-height:1.35;
}
.optimization-warning-card .pill-warning{
  background:#fef3c7;
  color:#92400e;
  border-color:#f5d58a;
}
.warning-metric-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.warning-metric-row span{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #f5d58a;
  border-radius:999px;
  background:#fff7d6;
  color:#713f12;
  font-size:13px;
  font-weight:700;
}
.warning-metric-row strong{
  color:#713f12;
}
.warehouse-filter-grid-wide{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.warehouse-filter-search{
  grid-column:span 2;
}
.inventory-chip-stack{
  display:flex;
  gap:8px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.inventory-certificate-cell a{
  font-weight:800;
}
.movement-table{
  min-width:1180px;
}
@media (max-width:1180px){
  .strategy-explainer-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .warehouse-filter-grid-wide{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px){
  .report-preview-grid,
  .strategy-explainer-grid,
  .warehouse-filter-grid-wide{
    grid-template-columns:1fr;
  }
  .warehouse-filter-search{
    grid-column:auto;
  }
  .report-preview-cta,
  .showcase-result-cta{
    align-items:flex-start;
  }
}
@media (max-width:980px){
  .builder-workflow-drawer{
    overflow:hidden;
  }
  .builder-workflow-drawer:not(.is-open) .builder-workflow-sheet{
    display:none;
    visibility:hidden;
  }
  .builder-workflow-drawer.is-open .builder-workflow-sheet{
    display:block;
    visibility:visible;
  }
}

html[data-theme="dark"] body.is-admin-console .admin-console-actions .btn,
html[data-theme="dark"] body.is-admin-console .admin-row-actions .btn-secondary,
html[data-theme="dark"] body.is-admin-console .admin-filter-actions .btn,
html[data-theme="dark"] body.is-admin-console .theme-toggle,
html[data-theme="dark"] body.is-admin-console .admin-console-logout .btn-secondary{
  background:#172033;
  border-color:#334155;
  color:#e5edf6;
}

html[data-theme="dark"] body.is-admin-console .admin-console-actions .btn:hover,
html[data-theme="dark"] body.is-admin-console .admin-row-actions .btn-secondary:hover,
html[data-theme="dark"] body.is-admin-console .admin-filter-actions .btn:hover,
html[data-theme="dark"] body.is-admin-console .theme-toggle:hover,
html[data-theme="dark"] body.is-admin-console .admin-console-logout .btn-secondary:hover{
  background:#1e293b;
  border-color:rgba(96,165,250,.46);
  color:#bfdbfe;
}

html[data-theme="dark"] body.is-admin-console .btn-danger{
  background:linear-gradient(135deg,#dc2626,#991b1b);
  border-color:#b91c1c;
  color:#fff;
}

html[data-theme="dark"] body.is-admin-console .btn-danger:hover{
  background:linear-gradient(135deg,#ef4444,#b91c1c);
  color:#fff;
}

html[data-theme="dark"] body.is-admin-console .timeline-item,
html[data-theme="dark"] body.is-admin-console .activity-feed .timeline-item{
  border-left-color:#334155;
}

.legal-centre-page,.legal-document-page{max-width:1180px}
.legal-hero{align-items:flex-start;gap:24px}
.legal-meta-row{display:flex;flex-wrap:wrap;gap:10px}
.legal-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.legal-index-card{display:grid;gap:18px;align-content:space-between;min-height:260px}
.legal-index-card h2{font-size:1.15rem;line-height:1.25;margin:10px 0 8px}
.legal-index-card-copy{display:grid;gap:8px}
.legal-review-note{display:grid;gap:8px;background:#f8fbff}
.legal-review-note p{margin:0;color:var(--muted);line-height:1.65}
.legal-document-grid{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:22px;align-items:start}
.legal-toc{position:sticky;top:96px;display:grid;gap:14px}
.legal-toc h2{font-size:1rem;margin:0}
.legal-toc nav{display:grid;gap:8px}
.legal-toc a{font-size:.9rem;line-height:1.35;color:var(--muted);text-decoration:none}
.legal-toc a:hover{color:var(--primary)}
.legal-copy{max-width:860px;line-height:1.72}
.legal-section{padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--border)}
.legal-section:last-child{border-bottom:0;margin-bottom:0}
.legal-section h2{font-size:1.18rem;line-height:1.3;margin:0 0 12px;color:var(--text)}
.legal-section p{margin:0 0 12px;color:var(--muted)}
.legal-section ul{margin:0;padding-left:20px;color:var(--muted)}
.legal-section li{margin:7px 0}
.legal-contact-callout{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-top:12px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-md);background:#f8fbff}
.legal-contact-callout h2{margin:4px 0 8px;font-size:1.1rem}
.legal-contact-callout p{margin:0;max-width:68ch;color:var(--muted)}
.legal-inline-note{font-size:.9rem;line-height:1.55;color:var(--muted);margin:0}
.legal-inline-note a,.legal-copy a,.legal-contact-callout a{font-weight:700}
.footer-links-public--grouped{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.footer-link-group{display:grid;gap:8px;align-content:start}
.footer-link-group h3{font-size:.85rem;line-height:1.2;margin:0 0 4px;color:var(--text);text-transform:uppercase;letter-spacing:.08em}
.legal-billing-links .footer-link-cluster,.account-legal-links .footer-link-cluster{justify-content:flex-start}

@media (max-width:980px){
  .legal-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .legal-document-grid{grid-template-columns:1fr}
  .legal-toc{position:static}
}

@media (max-width:640px){
  .legal-card-grid,.footer-links-public--grouped{grid-template-columns:1fr}
  .legal-contact-callout{display:grid}
}

/* Mobile app remediation: keep authenticated workspaces readable on phone-sized screens. */
body.is-authenticated .js-reveal{
  opacity:1 !important;
  transform:none !important;
  transition-delay:0ms !important;
}

@media (max-width:860px){
  body.is-authenticated .project-context-bar{
    display:none;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards]{
    min-width:0;
    width:100%;
    border-collapse:separate;
    border-spacing:0;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] thead{
    display:none;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] tbody,
  body.is-authenticated .table-wrap table[data-mobile-cards] tr,
  body.is-authenticated .table-wrap table[data-mobile-cards] td{
    display:block;
    width:100%;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] tr{
    padding:14px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,.04);
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] tr + tr{
    margin-top:12px;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] td{
    display:grid;
    grid-template-columns:minmax(92px,.42fr) minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:9px 0;
    border-bottom:1px solid rgba(148,163,184,.16);
    overflow-wrap:anywhere;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] td:last-child{
    border-bottom:0;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] td[colspan]{
    display:block;
  }

  body.is-authenticated .table-wrap table[data-mobile-cards] td[colspan]::before{
    content:"";
    display:none;
  }

  /* The cards above are white; in dark mode they take the dark surface so the
     light text on them stays readable. */
  html[data-theme="dark"] body.is-authenticated .table-wrap table[data-mobile-cards] tr{
    background:var(--surface-2);
    box-shadow:none;
  }
}

@media (max-width:1180px){
  body.is-authenticated .project-builder-shell,
  body.is-authenticated .builder-work-area,
  body.is-authenticated .builder-main{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  body.is-authenticated .builder-work-area > *,
  body.is-authenticated .builder-main > *{
    max-width:100%;
    min-width:0;
  }

  body.is-authenticated .builder-main .card{
    grid-template-columns:minmax(0,1fr);
  }

  body.is-authenticated .builder-main .card > *,
  body.is-authenticated .builder-main .section-head,
  body.is-authenticated .builder-main .section-row,
  body.is-authenticated .builder-main .tab-row,
  body.is-authenticated .builder-main .stats-grid,
  body.is-authenticated .builder-main .pill-row,
  body.is-authenticated .builder-main .optimize-run-form-card{
    max-width:100%;
    min-width:0;
  }

  body.is-authenticated .readiness-grid{
    overflow:hidden;
  }

  body.is-authenticated .readiness-strip{
    max-width:100%;
    min-width:0;
  }

  body.is-authenticated .builder-main .stack-16,
  body.is-authenticated .builder-main .bar-section,
  body.is-authenticated .builder-main .bar-card{
    grid-template-columns:minmax(0,1fr);
    max-width:100%;
    min-width:0;
  }

  body.is-authenticated .builder-main .bar-section{
    overflow:hidden;
  }

  body.is-authenticated .builder-main .bar-header{
    flex-wrap:wrap;
    max-width:100%;
    min-width:0;
  }

  body.is-authenticated .builder-main .bar-track{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto;
  }

  body.is-authenticated .builder-workflow-drawer{
    width:100vw;
    max-width:100vw;
    overflow:hidden;
  }

  body.is-authenticated .builder-next-issue-card{
    grid-template-columns:auto minmax(0,1fr);
    align-items:start;
    overflow:hidden;
  }

  body.is-authenticated .builder-next-issue-card .btn{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
  }
}

@media (max-width:720px){
  body.is-authenticated .readiness-strip{
    display:flex !important;
    grid-template-columns:none !important;
    gap:10px;
    overflow-x:auto;
    padding-bottom:8px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  body.is-authenticated .readiness-strip .readiness-item{
    flex:0 0 132px;
    min-width:132px;
    max-width:132px;
    scroll-snap-align:start;
  }

  body.is-authenticated .readiness-item .label,
  body.is-authenticated .readiness-item strong{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  body.is-authenticated .readiness-item strong{
    font-size:13px;
    line-height:1.25;
  }

  body.is-authenticated .readiness-item .pill{
    justify-content:center;
    white-space:normal;
    font-size:10px;
    line-height:1.15;
    padding:4px 7px;
  }

  body.is-authenticated .builder-profile-switcher-summary{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
  }

  body.is-authenticated .section-readiness-chip{
    flex:0 0 136px;
    max-width:136px;
  }

  body.is-authenticated .section-readiness-name{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
}

@media (max-width:640px){
  body.is-authenticated .topbar{
    gap:10px;
    padding:14px 12px 0;
  }

  body.is-authenticated .content-wrap{
    padding:18px 12px 28px !important;
  }

  body.is-authenticated .topbar-main,
  body.is-authenticated .topbar-title-group{
    width:100%;
    min-width:0;
  }

  body.is-authenticated .topbar-kicker-row{
    gap:8px;
  }

  body.is-authenticated .topbar-kicker-row .eyebrow{
    font-size:10px;
    letter-spacing:.08em;
  }

  body.is-authenticated .topbar .page-title{
    font-size:1.55rem;
    line-height:1.05;
  }

  body.is-authenticated .breadcrumbs{
    gap:5px;
    font-size:12px;
  }

  body.is-authenticated .topbar-actions{
    display:grid;
    grid-template-columns:1fr !important;
    gap:8px;
    width:100%;
  }

  body.is-authenticated .topbar-actions .theme-toggle,
  body.is-authenticated .topbar-actions .btn-secondary{
    display:none !important;
  }

  body.is-authenticated .topbar-actions .btn-primary{
    min-height:44px;
  }

  body.is-authenticated .page-stack{
    gap:20px;
  }

  body.is-authenticated .workspace-hero-card,
  body.is-authenticated .page-header,
  body.is-authenticated .card,
  body.is-authenticated .metric-card{
    border-radius:18px;
  }
}

@media print{
  .announcement-bar,.public-header,.sidebar,.topbar,.site-footer,.loading-overlay,.no-print{display:none!important}
  body,.public-shell,.public-main,.main-content,.content-wrap{background:#fff!important;color:#111827!important}
  .container,.legal-document-page{width:100%!important;max-width:none!important}
  .card,.page-header-card{box-shadow:none!important;border:0!important;background:#fff!important;padding:0!important}
  .legal-document-grid{display:block}
  .legal-copy{max-width:none}
  .legal-section{break-inside:avoid}
  a{color:#111827!important;text-decoration:none!important}
}

.basic-dashboard-grid,
.quick-cut-input-grid {
  align-items: start;
}

.quick-cut-form .sub-card,
.quick-cut-result .sub-card {
  overflow: hidden;
}

.quick-cut-table-wrap table {
  min-width: 520px;
}

.quick-cut-table-wrap input {
  min-width: 120px;
}

.quick-stock-source-chip {
  max-width: 220px;
  white-space: normal;
}

.quick-commit-card {
  align-items: center;
}

.basic-warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.basic-warehouse-table {
  min-width: 980px;
}

.basic-warehouse-table th,
.basic-warehouse-table td {
  white-space: nowrap;
}

.quick-quality-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quick-quality-card-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.notice-card {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.notice-card-warning,
.notice-card-danger {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.notice-card-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.locked-feature-card {
  max-width: 760px;
}

@media (max-width: 760px) {
  .quick-quality-card,
  .notice-card,
  .quick-commit-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-cut-table-wrap table {
    min-width: 460px;
  }
}

/* Public landing overhaul: scoped fixes for FC-LP-AUDIT-001 through FC-LP-AUDIT-016 */
body.is-public .announcement-bar-row{
  min-height:36px;
  padding:5px 0;
  gap:10px;
}
body.is-public .announcement-bar-row p{
  margin:0;
  line-height:1.35;
}
body.is-public .announcement-pill{
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
body.is-public .public-nav{
  gap:16px;
}
.public-landing-overhaul.landing-v5-hero{
  padding:38px 0 28px;
}
.public-landing-overhaul .landing-v5-copy{
  align-self:center;
}
.public-landing-overhaul h1{
  max-width:12ch;
}
.public-landing-overhaul .lead{
  max-width:62ch;
}
.landing-hero-proof-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.landing-hero-proof-strip div{
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.84);
  box-shadow:var(--shadow-sm);
}
.landing-hero-proof-strip span,
.preview-kpi-row span,
.preview-table div:first-child span{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.landing-hero-proof-strip strong{
  display:block;
  margin-top:5px;
  font-size:14px;
  line-height:1.35;
  color:var(--text);
}
.product-preview-card{
  overflow:hidden;
}
.product-preview-body{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  min-width:0;
  background:linear-gradient(180deg,#ffffff,#f7fbff);
}
.product-preview-rail{
  display:grid;
  align-content:start;
  gap:8px;
  padding:18px 14px;
  border-right:1px solid var(--border);
  background:#f8fbff;
}
.product-preview-rail span{
  padding:9px 10px;
  border-radius:12px;
  color:#42617f;
  font-size:12px;
  font-weight:800;
}
.product-preview-rail .is-active{
  background:#e9f1ff;
  color:#1d4ed8;
}
.product-preview-main{
  display:grid;
  gap:14px;
  min-width:0;
  padding:18px;
}
.preview-status-row,
.preview-panel-title,
.enterprise-pricing-copy > div{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.preview-status-row strong{
  display:block;
  margin-top:4px;
  color:#17315a;
  line-height:1.3;
}
.preview-kpi-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.preview-kpi-row div{
  min-width:0;
  padding:12px;
  border:1px solid #d8e4f3;
  border-radius:14px;
  background:#fff;
}
.preview-kpi-row strong{
  display:block;
  margin-top:4px;
  font-size:1.18rem;
  line-height:1.05;
  color:#17315a;
}
.preview-work-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(180px,.82fr);
  gap:12px;
  min-width:0;
}
.preview-panel{
  min-width:0;
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid #d8e4f3;
  border-radius:16px;
  background:#fff;
}
.preview-panel-title strong,
.enterprise-pricing-copy strong{
  color:#17315a;
  line-height:1.25;
}
.preview-panel-title span{
  color:var(--muted);
  font-size:13px;
}
.preview-table{
  display:grid;
  gap:6px;
}
.preview-table div{
  display:grid;
  grid-template-columns:minmax(70px,1fr) minmax(68px,.9fr) minmax(32px,.4fr) minmax(58px,.75fr);
  gap:7px;
  align-items:center;
  min-width:0;
  padding:8px 9px;
  border-radius:10px;
  background:#f8fbff;
  font-size:12px;
}
.preview-table strong,
.preview-table span{
  min-width:0;
  overflow-wrap:anywhere;
}
.trace-chip-grid{
  display:grid;
  gap:8px;
}
.trace-chip-grid span{
  padding:9px 10px;
  border:1px solid #d8e4f3;
  border-radius:999px;
  background:#f8fbff;
  color:#355273;
  font-size:12px;
  font-weight:800;
}
.preview-bars{
  display:grid;
  gap:9px;
}
.preview-bars div{
  display:flex;
  gap:4px;
  min-width:0;
  padding:8px;
  border:1px solid #d8e4f3;
  border-radius:999px;
  background:#f1f6fc;
  overflow:hidden;
}
.preview-bars span{
  width:var(--w);
  min-width:18px;
  height:14px;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#7dd3fc);
}
.preview-bars em{
  flex:1 1 auto;
  min-width:20px;
  border-radius:999px;
  background:#dbe6f2;
}
.trust-proof-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.trust-proof-card{
  display:grid;
  gap:10px;
}
.trust-proof-card strong{
  font-size:1.05rem;
  line-height:1.4;
  color:#17315a;
}
.self-service-price-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.enterprise-pricing-callout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr) minmax(220px,.72fr);
  gap:20px;
  align-items:center;
  border-color:#b9c8dc;
  background:linear-gradient(180deg,#fbfdff,#f5f9ff);
}
.enterprise-pricing-copy{
  display:grid;
  gap:10px;
}
.enterprise-pricing-copy strong{
  font-size:1.5rem;
}
.enterprise-feature-list{
  columns:1;
}
.enterprise-pricing-actions{
  display:grid;
  gap:10px;
  justify-items:stretch;
}
.trial-cta-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid #bfd2eb;
  background:#f7fbff;
}
.trial-cta-strip div{
  display:grid;
  gap:4px;
}
.trial-cta-strip strong{
  color:#17315a;
}
.trial-cta-strip span{
  color:var(--muted);
  line-height:1.5;
}
.contact-trust-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.contact-trust-item{
  display:grid;
  gap:6px;
  background:#f8fbff;
}
.contact-trust-item strong{
  color:#17315a;
}
.contact-trust-item span{
  color:var(--muted);
  line-height:1.45;
}
.pricing-comparison-section{
  margin-top:8px;
}
.pricing-comparison-wrap{
  border:1px solid var(--border);
  background:#fff;
}
.pricing-comparison-table{
  min-width:920px;
  border-collapse:separate;
  border-spacing:0;
}
.pricing-comparison-table th,
.pricing-comparison-table td{
  padding:14px 16px;
  border-bottom:1px solid #e6edf6;
  text-align:left;
  vertical-align:top;
}
.pricing-comparison-table thead th{
  position:sticky;
  top:0;
  background:#f8fbff;
  z-index:1;
}
.pricing-comparison-table tbody th{
  color:#17315a;
  font-weight:850;
  width:220px;
}
.pricing-comparison-table th.is-recommended{
  background:#eaf4ff;
  color:#0f4fa8;
}
.pricing-comparison-table th.is-recommended span{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#2563eb;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.optimization-ready-card{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:16px;
  border:1px solid #b8dbc5;
  border-radius:18px;
  background:#f3fbf6;
}
.optimization-ready-card h4{
  margin-top:8px;
}
.price-card-copy,
.price-grid .price-card .plan-inline-list{
  min-height:0;
}
.price-card-actions .btn{
  white-space:normal;
}
.pricing-page-card{
  border-radius:var(--radius-lg);
}
.landing-final-cta-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  flex-wrap:wrap;
}
.landing-final-cta-card h2{
  margin-top:6px;
  max-width:18ch;
}
.footer-trust-details{
  display:grid;
  gap:6px;
  margin-top:14px;
  max-width:620px;
}
.footer-trust-details span,
.footer-contact-group span{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.footer-links-public--grouped{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.footer-contact-group{
  min-width:220px;
}
@media (max-width:1180px){
  .public-landing-overhaul h1{
    max-width:14ch;
  }
  .landing-hero-proof-strip,
  .trust-proof-grid,
  .enterprise-pricing-callout{
    grid-template-columns:1fr;
  }
  .preview-work-grid{
    grid-template-columns:1fr;
  }
  .footer-links-public--grouped{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:860px){
  body.is-public .announcement-bar-row{
    justify-content:center;
    text-align:center;
  }
  .public-landing-overhaul.landing-v5-hero{
    padding:24px 0 18px;
  }
  .public-landing-overhaul .landing-v5-copy{
    gap:16px;
  }
  .public-landing-overhaul .hero-badges{
    margin-bottom:4px;
  }
  .public-landing-overhaul h1{
    max-width:11ch;
  }
  .public-landing-overhaul .lead{
    font-size:1rem;
    line-height:1.55;
  }
  .product-preview-body{
    grid-template-columns:1fr;
  }
  .product-preview-rail{
    display:none;
  }
  .product-preview-main{
    padding:14px;
    gap:12px;
  }
  .preview-kpi-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .self-service-price-grid{
    grid-template-columns:1fr;
  }
  .trial-cta-strip{
    align-items:flex-start;
    flex-direction:column;
  }
  .contact-trust-grid{
    grid-template-columns:1fr;
  }
  .price-card{
    gap:12px;
  }
  .price-card-content{
    gap:10px;
  }
  .price-card-actions{
    gap:10px;
  }
  .enterprise-pricing-copy > div,
  .preview-status-row,
  .preview-panel-title{
    align-items:flex-start;
  }
}
@media (max-width:640px){
  body.is-public .announcement-bar-row{
    min-height:0;
    padding:6px 0;
    gap:6px;
  }
  body.is-public .announcement-pill{
    display:none;
  }
  body.is-public .announcement-bar-row p{
    flex-basis:100%;
    font-size:12px;
  }
  body.is-public .announcement-bar-row a{
    font-size:12px;
  }
  .landing-hero-proof-strip{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
  }
  .landing-hero-proof-strip div{
    flex:0 0 238px;
    padding:10px 12px;
    scroll-snap-align:start;
  }
  .public-landing-overhaul h1{
    max-width:none;
    font-size:2.28rem;
    line-height:1.04;
  }
  .landing-hero-proof-strip strong{
    font-size:13px;
  }
  .preview-kpi-row{
    gap:8px;
  }
  .preview-kpi-row div,
  .preview-panel{
    padding:10px;
  }
  .preview-kpi-row strong{
    font-size:1.02rem;
  }
  .preview-table div{
    grid-template-columns:minmax(64px,1fr) minmax(60px,.85fr) minmax(28px,.35fr) minmax(48px,.7fr);
    gap:5px;
    padding:7px;
    font-size:11px;
  }
  .trace-chip-grid{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .trace-chip-grid span{
    padding:8px;
    border-radius:10px;
    font-size:11px;
  }
  .landing-final-cta-card{
    align-items:flex-start;
  }
  .footer-links-public--grouped{
    grid-template-columns:1fr;
  }
}

/* --------------------------------------------------------------------------
   Touch targets and field sizing on touch devices
   -------------------------------------------------------------------------- */

/* body sets font:15px and inputs take font:inherit, so every field in the app
   -- including the sample optimiser tables, which are not on the .fc field
   system -- sat one pixel under the 16px floor that stops iOS Safari zooming
   in on focus. On the sample optimiser that was the worst of it: the visitor
   taps a length cell and the page is left zoomed and scrolled sideways mid
   data entry. */
@media (pointer:coarse){
  input,select,textarea{font-size:16px}
  input[type="checkbox"],input[type="radio"]{font-size:inherit}

  /* Footer links stack to full width on a phone but keep a 25px line box, so
     consecutive legal links sit close enough to mis-tap. Padding rather than
     min-height, so the hit area grows around the text instead of leaving it
     floating at the top of a taller box. */
  .footer-link-group a,
  .footer-links-public a,
  .footer-links-app a{padding-block:7px}

  /* Same problem in the announcement bar: the call to action is a bare link
     sitting on one 20px line next to the strapline. */
  .announcement-bar-row a{padding-block:7px}
}

/* Cut status progression controls, in the cuts stage status column. */
.cut-status-select{min-height:34px;padding:6px 8px;font-size:12px;width:auto;min-width:118px}
/* The status form only carries hidden inputs, so it must not take up a row of
   its own between the cuts table and whatever follows it. */
.visually-hidden-form{display:none}

/* Short laptop screens (e.g. 1366x768): keep the whole navigation on screen so the
   sidebar does not grow its own scrollbar beside the page's. */
@media (max-height:900px){
  body.is-authenticated .sidebar{gap:12px;padding-top:16px;padding-bottom:16px}
  body.is-authenticated .sidebar-nav a{padding-top:8px;padding-bottom:8px}
  body.is-authenticated .sidebar-section-label{margin-bottom:4px}
  body.is-authenticated .sidebar-help p{display:none}
  body.is-authenticated .sidebar-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
}

/* Customer dashboard: a short feed at full height, not a scroll box inside the page. */
.activity-feed--static{max-height:none;overflow:visible;padding-right:0}

/* Billing: plan options. The only definition of the billing plan cards and the
   Enterprise band. Column counts follow the width the section actually gets
   (the sidebar takes a varying share of the viewport), so they are container
   queries on .billing-plans rather than viewport media queries. */
.billing-plans{container-type:inline-size}
.billing-plan-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.billing-plan-grid > .billing-plan{
  display:flex;
  flex-direction:column;
  gap:12px;
  height:auto;
  min-width:0;
  padding:24px 18px 18px;
}
/* Every card spans the same six rows (head, price, annual note, summary,
   features, action) and shares them with its neighbours, so prices, lists and
   buttons line up across a row whatever the copy length. Without subgrid the
   flex column above still pins each button to the bottom of its card. */
@supports (grid-template-rows:subgrid){
  .billing-plan-grid > .billing-plan{
    display:grid;
    grid-row:span 6;
    grid-template-rows:subgrid;
    row-gap:12px;
  }
}
.billing-plan-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  min-width:0;
}
.billing-plan-tag{
  padding-top:6px;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  text-align:right;
  color:var(--muted);
}
.billing-plan-price{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:2px;
  margin-top:4px;
  color:var(--text);
}
.billing-plan-price strong{
  font-size:2rem;
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.04em;
}
.billing-plan-price span{
  font-size:.95rem;
  font-weight:600;
  color:var(--muted);
}
.billing-plan-annual,
.billing-plan-summary,
.billing-enterprise-rate{margin:0;color:var(--muted)}
.billing-plan-annual{font-size:12.5px;line-height:1.45}
.billing-plan-summary{font-size:14px;line-height:1.55}
.billing-plan-features{
  display:grid;
  align-content:start;
  gap:8px;
  margin:0;
  padding:14px 0 0;
  list-style:none;
  border-top:1px solid var(--border);
  font-size:14px;
  color:var(--text);
}
.billing-plan-features li{position:relative;padding-left:22px;line-height:1.4}
.billing-plan-features li::before{
  content:"";
  position:absolute;
  left:4px;
  top:.2em;
  width:5px;
  height:10px;
  border:solid var(--primary);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
/* The action row is shared, so the buttons stretch to its height: if a label
   ever wraps, every button in the row grows with it instead of one standing
   taller than its neighbours. */
.billing-plan-action{display:flex;padding-top:6px}
.billing-plan-action .btn{flex:1 1 auto;margin-top:0;padding-inline:12px;text-wrap:balance}

.billing-plans > .billing-enterprise{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 220px;
  align-items:center;
  gap:20px 32px;
  height:auto;
  padding:24px;
  background:linear-gradient(135deg,var(--surface),var(--surface-2));
}
.billing-enterprise-intro{display:grid;gap:10px;min-width:0}
.billing-enterprise-intro .billing-plan-head{justify-content:flex-start;gap:12px}
.billing-enterprise-price{
  margin:4px 0 0;
  font-size:1.5rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--text);
}
.billing-enterprise-rate{font-size:14px;line-height:1.5}
.billing-enterprise-rate strong{color:var(--text)}
.billing-plans .billing-enterprise-features{
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:10px 20px;
  padding:4px 0 4px 32px;
  border-top:0;
  border-left:1px solid var(--border);
}
.billing-enterprise-action{display:grid;gap:8px}

@container (max-width:990px){
  .billing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .billing-plans > .billing-enterprise{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .billing-enterprise-action{grid-column:1 / -1;justify-self:start;min-width:240px}
}
@container (max-width:620px){
  .billing-plans > .billing-enterprise{grid-template-columns:minmax(0,1fr)}
  .billing-plans .billing-enterprise-features{padding:14px 0 0;border-left:0;border-top:1px solid var(--border)}
  .billing-enterprise-action{justify-self:stretch;min-width:0}
}
@container (max-width:480px){
  .billing-plan-grid{grid-template-columns:minmax(0,1fr)}
}

/* Project builder, optimize stage: two results cards side by side (stock
   length usage beside the section summary, generated offcuts beside the
   operator actions). The table with more to show takes three fifths of the
   row: second by default, first with --wide-first. The pair stacks when the
   space beside the sidebar is too narrow for both, measured on .optimize-split
   itself rather than the viewport. Under 860px the tables switch to the shared
   data-mobile-cards layout. */
.optimize-split{container-type:inline-size}
.optimize-split-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,3fr);
  gap:20px;
  align-items:stretch;
}
.optimize-split-grid--wide-first{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.optimize-split-grid > .card{align-content:start;min-width:0}
/* Measurements, percentages and offcut numbers never split across lines;
   names and labels are the only text that wraps. */
.optimize-results-table .num,
.optimize-results-table .code{white-space:nowrap}
/* On phones each cell shows its column name before the value; that label wraps
   even when the value beside it must not. */
.optimize-results-table td::before{white-space:normal}
.optimize-results-table td{word-break:normal;overflow-wrap:normal}
.optimize-results-table th,
.optimize-results-table td{padding-inline:12px}
/* The template renders each hyphen-separated part of an offcut number as its
   own unit. The units never wrap on wider screens; a phone card is too narrow
   for a whole number, so there it may wrap between parts, never inside one. */
.optimize-results-table .code > span{display:inline-block}
@media (max-width:860px){
  .optimize-results-table .code{white-space:normal}
}
@container (max-width:940px){
  .optimize-split-grid,
  .optimize-split-grid--wide-first{grid-template-columns:minmax(0,1fr)}
}
