:root{
  --wfv2-bg:#f4f7fb;
  --wfv2-surface:#ffffff;
  --wfv2-surface-soft:#f8fafc;
  --wfv2-text:#14213d;
  --wfv2-muted:#60708a;
  --wfv2-line:#dce4ef;
  --wfv2-brand:#155eef;
  --wfv2-brand-deep:#0b2f74;
  --wfv2-accent:#00a878;
  --wfv2-warning:#b54708;
  --wfv2-danger:#b42318;
  --wfv2-radius:18px;
  --wfv2-radius-sm:12px;
  --wfv2-shadow:0 16px 45px rgba(28,52,84,.10);
  --wfv2-shadow-soft:0 8px 24px rgba(28,52,84,.07);
  --wfv2-content:1440px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at top right,rgba(21,94,239,.08),transparent 30rem),
    var(--wfv2-bg);
  color:var(--wfv2-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}
body.wfv2-premium-ready{min-height:100vh}
body.wfv2-premium-ready main{min-height:60vh}
.container{
  width:min(calc(100% - 32px),var(--wfv2-content));
  margin-inline:auto;
}
.section{padding:34px 0}
.section:first-of-type{padding-top:28px}
h1,h2,h3{
  color:var(--wfv2-text);
  line-height:1.18;
  letter-spacing:-.025em;
}
h1{font-size:clamp(2rem,4vw,3.6rem);margin:.25em 0}
h2{font-size:clamp(1.4rem,2.2vw,2rem)}
h3{font-size:1.1rem}
p{color:var(--wfv2-muted)}

.card,.panel,.stat-card,.metric-card,.feature-card,.workspace-card,.record-card{
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  border:1px solid var(--wfv2-line);
  border-radius:var(--wfv2-radius);
  box-shadow:var(--wfv2-shadow-soft);
}
.card,.panel,.feature-card,.workspace-card,.record-card{padding:clamp(18px,2.5vw,28px)}
.grid,.cards,.dashboard-grid,.metrics-grid,.feature-grid{
  gap:20px!important;
  align-items:stretch;
}

.btn,button,input[type="submit"],input[type="button"]{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:12px!important;
  border:1px solid transparent;
  padding:11px 17px!important;
  font-weight:750;
  letter-spacing:-.01em;
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
  vertical-align:middle;
}
.btn:hover,button:hover,input[type="submit"]:hover,input[type="button"]:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(21,94,239,.16);
}
.btn-primary,button[type="submit"],input[type="submit"]{
  background:linear-gradient(135deg,var(--wfv2-brand),#3978f6)!important;
  color:#fff!important;
  border-color:var(--wfv2-brand)!important;
}
.btn:not(.btn-primary),button:not([type="submit"]){
  background:#fff;
  color:var(--wfv2-brand-deep);
  border-color:var(--wfv2-line);
}

form{width:100%}
.field{display:grid;gap:7px}
label{font-weight:750;color:var(--wfv2-text)}
input,select,textarea{
  width:100%;
  min-height:46px;
  border:1px solid #cfd9e7;
  border-radius:12px!important;
  background:#fff;
  color:var(--wfv2-text);
  padding:11px 13px!important;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:var(--wfv2-brand);
  box-shadow:0 0 0 4px rgba(21,94,239,.11);
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--wfv2-line);
  border-radius:14px;
}
th{
  background:#f2f6fc;
  color:var(--wfv2-text);
  text-align:left;
  font-size:.82rem;
  letter-spacing:.035em;
  text-transform:uppercase;
}
th,td{padding:14px 16px;border-bottom:1px solid var(--wfv2-line)}
tr:last-child td{border-bottom:0}

.badge,.route-flag{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#eaf1ff;
  color:var(--wfv2-brand-deep);
  border:1px solid #cfe0ff;
  font-weight:800;
  font-size:.76rem;
  letter-spacing:.025em;
}

.wfv2-premium-hero{
  position:relative;
  overflow:hidden;
  min-height:220px;
  display:flex;
  align-items:flex-end;
  padding:clamp(28px,5vw,64px);
  margin:22px auto 30px;
  border-radius:26px;
  background:
    linear-gradient(115deg,rgba(7,28,65,.98),rgba(21,94,239,.88)),
    var(--wfv2-banner-image,none);
  background-size:cover;
  background-position:center;
  box-shadow:var(--wfv2-shadow);
}
.wfv2-premium-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.2),transparent 25rem);
  pointer-events:none;
}
.wfv2-premium-hero__content{
  position:relative;
  z-index:1;
  max-width:820px;
}
.wfv2-premium-hero h1,.wfv2-premium-hero p{color:#fff}
.wfv2-premium-hero p{font-size:1.05rem;opacity:.9}

.wfv2-page-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.wfv2-page-actions>*{margin:0!important}

.wfv2-global-status{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 4px;
}
.wfv2-global-status span{
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
}

.wfv2-polish-skip{position:absolute;left:-9999px}
.wfv2-polish-skip:focus{
  left:16px;
  top:16px;
  z-index:99999;
  background:#fff;
  color:#000;
  padding:10px 14px;
  border-radius:10px;
}

@media(max-width:900px){
  .section{padding:24px 0}
  .wfv2-premium-hero{min-height:190px;border-radius:20px;padding:26px}
  .grid,.cards,.dashboard-grid,.metrics-grid,.feature-grid{grid-template-columns:1fr!important}
  .btn,button,input[type="submit"],input[type="button"]{width:100%}
  .wfv2-page-actions{display:grid;grid-template-columns:1fr;width:100%}
  table{display:block;overflow-x:auto;white-space:nowrap}
}
@media(max-width:560px){
  .container{width:min(calc(100% - 20px),var(--wfv2-content))}
  h1{font-size:2rem}
  .card,.panel,.feature-card,.workspace-card,.record-card{padding:17px}
}

/* ==========================================================================================
   PREMIUM POLISH MODE — PART 3
   Navigation, staff login and admin experience
   ========================================================================================== */

#wfv2-premium-nav{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(7,28,65,.94);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.1);
  box-shadow:0 12px 30px rgba(7,28,65,.18);
}

.wfv2-nav-shell{
  width:min(calc(100% - 28px),var(--wfv2-content));
  margin-inline:auto;
  min-height:74px;
  display:flex;
  align-items:center;
  gap:18px;
}

.wfv2-nav-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  min-width:max-content;
}

.wfv2-nav-brand__mark{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,#2f73ff,#00b58a);
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 24px rgba(21,94,239,.28);
}

.wfv2-nav-brand__text{
  display:grid;
  line-height:1.05;
}

.wfv2-nav-brand__text strong{
  font-size:.95rem;
  letter-spacing:.01em;
}

.wfv2-nav-brand__text span{
  margin-top:3px;
  color:rgba(255,255,255,.68);
  font-size:.74rem;
}

.wfv2-nav-toggle{
  display:none;
  margin-left:auto;
  width:44px;
  min-height:44px;
  padding:0!important;
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.14)!important;
  color:#fff!important;
}

.wfv2-nav-groups{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

.wfv2-nav-item{
  position:relative;
}

.wfv2-nav-link,
.wfv2-nav-trigger{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:10px 12px;
  border-radius:10px;
  color:rgba(255,255,255,.82);
  text-decoration:none;
  font-size:.88rem;
  font-weight:750;
  border:1px solid transparent;
  background:transparent;
}

.wfv2-nav-link:hover,
.wfv2-nav-trigger:hover,
.wfv2-nav-link.active{
  color:#fff;
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.12);
}

.wfv2-nav-trigger{
  min-width:auto;
  width:auto;
  box-shadow:none!important;
  transform:none!important;
}

.wfv2-nav-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:260px;
  max-height:65vh;
  overflow:auto;
  padding:10px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--wfv2-line);
  box-shadow:var(--wfv2-shadow);
  display:none;
}

.wfv2-nav-item.open .wfv2-nav-menu{
  display:grid;
  gap:4px;
}

.wfv2-nav-menu a{
  display:grid;
  gap:2px;
  padding:11px 12px;
  border-radius:10px;
  color:var(--wfv2-text);
  text-decoration:none;
  font-weight:750;
}

.wfv2-nav-menu a small{
  color:var(--wfv2-muted);
  font-size:.72rem;
  font-weight:600;
}

.wfv2-nav-menu a:hover{
  background:#eef4ff;
  color:var(--wfv2-brand-deep);
}

.wfv2-login-layout{
  min-height:calc(100vh - 74px);
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);
  gap:0;
}

.wfv2-login-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px;
}

.wfv2-login-card{
  width:min(100%,520px);
  background:#fff;
  border:1px solid var(--wfv2-line);
  border-radius:24px;
  box-shadow:var(--wfv2-shadow);
  padding:36px;
}

.wfv2-login-brand{
  display:grid;
  gap:10px;
  margin-bottom:24px;
}

.wfv2-login-brand h1{
  font-size:2rem;
  margin:0;
}

.wfv2-login-aside{
  position:relative;
  overflow:hidden;
  padding:56px;
  display:flex;
  align-items:flex-end;
  color:#fff;
  background:
    radial-gradient(circle at 80% 20%,rgba(255,255,255,.18),transparent 20rem),
    linear-gradient(145deg,#071c41,#155eef 62%,#00a878);
}

.wfv2-login-aside::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,transparent 0 55%,rgba(255,255,255,.05) 55% 56%,transparent 56% 100%);
  background-size:24px 24px;
  opacity:.45;
}

.wfv2-login-aside__content{
  position:relative;
  z-index:1;
  max-width:620px;
}

.wfv2-login-aside h2,
.wfv2-login-aside p{
  color:#fff;
}

.wfv2-login-aside h2{
  font-size:clamp(2rem,4vw,4.1rem);
  margin-bottom:16px;
}

.wfv2-login-points{
  display:grid;
  gap:10px;
  margin-top:24px;
}

.wfv2-login-points span{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}

.wfv2-login-points span::before{
  content:"✓";
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.15);
}

.wfv2-admin-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  min-height:calc(100vh - 74px);
}

.wfv2-admin-sidebar{
  position:sticky;
  top:74px;
  align-self:start;
  height:calc(100vh - 74px);
  overflow:auto;
  padding:22px 16px;
  background:#0b234f;
  border-right:1px solid rgba(255,255,255,.08);
}

.wfv2-admin-sidebar__section{
  display:grid;
  gap:5px;
  margin-bottom:18px;
}

.wfv2-admin-sidebar__label{
  padding:8px 10px;
  color:rgba(255,255,255,.48);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.68rem;
  font-weight:900;
}

.wfv2-admin-sidebar a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:10px 12px;
  border-radius:10px;
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-size:.88rem;
  font-weight:700;
}

.wfv2-admin-sidebar a:hover,
.wfv2-admin-sidebar a.active{
  color:#fff;
  background:rgba(255,255,255,.1);
}

.wfv2-admin-main{
  min-width:0;
  padding:24px 0 48px;
}

.wfv2-admin-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
  padding:16px 18px;
  background:#fff;
  border:1px solid var(--wfv2-line);
  border-radius:16px;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-admin-toolbar__meta{
  display:grid;
  gap:2px;
}

.wfv2-admin-toolbar__meta strong{
  color:var(--wfv2-text);
}

.wfv2-admin-toolbar__meta span{
  color:var(--wfv2-muted);
  font-size:.82rem;
}

.wfv2-admin-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}

.wfv2-admin-overview .card{
  padding:20px;
}

.wfv2-admin-overview strong{
  display:block;
  margin-top:6px;
  font-size:1.55rem;
}

@media(max-width:1100px){
  .wfv2-nav-toggle{display:inline-flex}
  .wfv2-nav-groups{
    position:absolute;
    left:14px;
    right:14px;
    top:82px;
    display:none;
    align-items:stretch;
    padding:12px;
    border-radius:16px;
    background:#0b234f;
    box-shadow:var(--wfv2-shadow);
  }
  #wfv2-premium-nav.open .wfv2-nav-groups{
    display:grid;
    gap:6px;
  }
  .wfv2-nav-link,
  .wfv2-nav-trigger{
    width:100%;
    justify-content:space-between;
  }
  .wfv2-nav-menu{
    position:static;
    margin-top:6px;
    box-shadow:none;
    max-height:none;
  }
  .wfv2-login-layout{
    grid-template-columns:1fr;
  }
  .wfv2-login-aside{
    min-height:330px;
    order:-1;
  }
  .wfv2-admin-shell{
    grid-template-columns:1fr;
  }
  .wfv2-admin-sidebar{
    position:static;
    height:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .wfv2-admin-overview{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .wfv2-nav-brand__text span{display:none}
  .wfv2-login-panel,
  .wfv2-login-aside{
    padding:26px;
  }
  .wfv2-login-card{
    padding:24px;
    border-radius:18px;
  }
  .wfv2-admin-sidebar{
    grid-template-columns:1fr;
  }
  .wfv2-admin-overview{
    grid-template-columns:1fr;
  }
  .wfv2-admin-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ==========================================================================================
   PREMIUM POLISH MODE — PART 4
   Dashboard and Command Center experience
   ========================================================================================== */

.wfv2-dashboard-shell{
  display:grid;
  gap:22px;
}

.wfv2-dashboard-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.wfv2-dashboard-kpi{
  position:relative;
  overflow:hidden;
  min-height:138px;
  padding:20px;
  border:1px solid var(--wfv2-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-dashboard-kpi::after{
  content:"";
  position:absolute;
  right:-26px;
  bottom:-26px;
  width:90px;
  height:90px;
  border-radius:999px;
  background:rgba(21,94,239,.08);
}

.wfv2-dashboard-kpi__label{
  color:var(--wfv2-muted);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.wfv2-dashboard-kpi__value{
  display:block;
  margin:9px 0 2px;
  color:var(--wfv2-text);
  font-size:clamp(1.6rem,3vw,2.5rem);
  line-height:1;
  font-weight:900;
}

.wfv2-dashboard-kpi__note{
  color:var(--wfv2-muted);
  font-size:.78rem;
}

.wfv2-command-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.wfv2-command-card{
  display:flex;
  flex-direction:column;
  min-height:230px;
  padding:22px;
  border:1px solid var(--wfv2-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-command-card__eyebrow{
  color:var(--wfv2-brand);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.wfv2-command-card h2,
.wfv2-command-card h3{
  margin:9px 0;
}

.wfv2-command-card p{
  margin-top:0;
}

.wfv2-command-card .wfv2-page-actions{
  margin-top:auto;
}

.wfv2-dashboard-section{
  padding:22px;
  border:1px solid var(--wfv2-line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-dashboard-section__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.wfv2-dashboard-section__header h2{
  margin:0 0 4px;
}

.wfv2-dashboard-section__header p{
  margin:0;
}

.wfv2-dashboard-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:14px;
  border:1px solid var(--wfv2-line);
  border-radius:14px;
  background:var(--wfv2-surface-soft);
}

.wfv2-dashboard-toolbar__search{
  flex:1 1 260px;
}

.wfv2-dashboard-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border-radius:999px;
  background:#eafaf5;
  color:#067456;
  border:1px solid #b9eadb;
  font-size:.75rem;
  font-weight:850;
}

.wfv2-dashboard-status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#00a878;
  box-shadow:0 0 0 4px rgba(0,168,120,.12);
}

.wfv2-dashboard-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:20px;
}

.wfv2-dashboard-rail{
  display:grid;
  gap:16px;
  align-self:start;
}

.wfv2-dashboard-rail .card{
  padding:18px;
}

.wfv2-dashboard-empty{
  display:grid;
  place-items:center;
  min-height:180px;
  padding:24px;
  text-align:center;
  border:1px dashed #c9d5e5;
  border-radius:16px;
  background:#f8fbff;
}

.wfv2-dashboard-empty strong{
  display:block;
  margin-bottom:6px;
}

@media(max-width:1100px){
  .wfv2-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wfv2-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wfv2-dashboard-layout{grid-template-columns:1fr}
}

@media(max-width:700px){
  .wfv2-dashboard-kpis,
  .wfv2-command-grid{grid-template-columns:1fr}
  .wfv2-dashboard-section__header{flex-direction:column}
}

/* ==========================================================================================
   PREMIUM POLISH MODE — PART 5
   Public participant service experience
   ========================================================================================== */

.wfv2-service-shell{
  display:grid;
  gap:24px;
}

.wfv2-service-progress{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  padding:14px;
  background:#fff;
  border:1px solid var(--wfv2-line);
  border-radius:16px;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-service-progress a{
  display:grid;
  gap:5px;
  min-height:70px;
  padding:11px;
  border-radius:12px;
  color:var(--wfv2-muted);
  text-decoration:none;
  font-size:.76rem;
  font-weight:800;
}

.wfv2-service-progress a::before{
  content:attr(data-step);
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#edf2f8;
  color:var(--wfv2-brand-deep);
}

.wfv2-service-progress a:hover,
.wfv2-service-progress a.active{
  background:#eaf1ff;
  color:var(--wfv2-brand-deep);
}

.wfv2-service-progress a.active::before{
  background:var(--wfv2-brand);
  color:#fff;
}

.wfv2-service-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.wfv2-service-card{
  display:flex;
  flex-direction:column;
  min-height:230px;
  padding:22px;
  border:1px solid var(--wfv2-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-service-card__icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,#e8f0ff,#e9fbf5);
  color:var(--wfv2-brand-deep);
  font-size:1.25rem;
  font-weight:900;
}

.wfv2-service-card h2,
.wfv2-service-card h3{
  margin:16px 0 7px;
}

.wfv2-service-card p{
  margin-top:0;
}

.wfv2-service-card .wfv2-page-actions{
  margin-top:auto;
}

.wfv2-participant-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border-radius:14px;
  background:#eef8ff;
  border:1px solid #cfe5fb;
}

.wfv2-participant-note strong{
  display:block;
  margin-bottom:3px;
}

.wfv2-participant-note p{
  margin:0;
}

.wfv2-form-section{
  display:grid;
  gap:18px;
  padding:24px;
  background:#fff;
  border:1px solid var(--wfv2-line);
  border-radius:20px;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-form-section form{
  display:grid;
  gap:16px;
}

.wfv2-form-section .grid,
.wfv2-form-section .form-grid{
  gap:16px!important;
}

.wfv2-form-actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  padding-top:16px;
  border-top:1px solid var(--wfv2-line);
}

.wfv2-journey-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.wfv2-journey-summary article{
  padding:18px;
  border:1px solid var(--wfv2-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

@media(max-width:1050px){
  .wfv2-service-progress{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wfv2-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wfv2-journey-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .wfv2-service-progress,
  .wfv2-service-grid,
  .wfv2-journey-summary{grid-template-columns:1fr}
  .wfv2-form-actions{display:grid}
}

/* ==========================================================================================
   PREMIUM POLISH MODE — PART 6
   Communications, AI review and enterprise workspaces
   ========================================================================================== */

.wfv2-workspace-shell{
  display:grid;
  gap:22px;
}

.wfv2-workspace-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  padding:16px 18px;
  border:1px solid var(--wfv2-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-workspace-toolbar__title{
  display:grid;
  gap:3px;
}

.wfv2-workspace-toolbar__title strong{
  color:var(--wfv2-text);
  font-size:1rem;
}

.wfv2-workspace-toolbar__title span{
  color:var(--wfv2-muted);
  font-size:.8rem;
}

.wfv2-workspace-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border:1px solid var(--wfv2-line);
  border-radius:14px;
  background:#f7f9fc;
}

.wfv2-workspace-tabs a{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  padding:9px 12px;
  border-radius:10px;
  color:var(--wfv2-muted);
  text-decoration:none;
  font-size:.82rem;
  font-weight:800;
}

.wfv2-workspace-tabs a:hover,
.wfv2-workspace-tabs a.active{
  color:var(--wfv2-brand-deep);
  background:#fff;
  box-shadow:0 6px 18px rgba(28,52,84,.08);
}

.wfv2-workspace-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:20px;
}

.wfv2-workspace-primary,
.wfv2-workspace-rail{
  display:grid;
  align-content:start;
  gap:16px;
}

.wfv2-review-banner{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:17px 18px;
  border:1px solid #cfe0ff;
  border-radius:15px;
  background:#edf4ff;
}

.wfv2-review-banner__mark{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--wfv2-brand);
  color:#fff;
  font-weight:900;
}

.wfv2-review-banner strong{
  display:block;
  margin-bottom:3px;
  color:var(--wfv2-text);
}

.wfv2-review-banner p{
  margin:0;
}

.wfv2-review-state{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.wfv2-review-state article{
  padding:16px;
  border:1px solid var(--wfv2-line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-review-state span{
  color:var(--wfv2-muted);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.wfv2-review-state strong{
  display:block;
  margin-top:6px;
  color:var(--wfv2-text);
}

.wfv2-timeline{
  position:relative;
  display:grid;
  gap:14px;
  padding-left:22px;
}

.wfv2-timeline::before{
  content:"";
  position:absolute;
  left:7px;
  top:6px;
  bottom:6px;
  width:2px;
  background:#d7e2ef;
}

.wfv2-timeline > *{
  position:relative;
}

.wfv2-timeline > *::before{
  content:"";
  position:absolute;
  left:-21px;
  top:10px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--wfv2-brand);
  box-shadow:0 0 0 4px #eaf1ff;
}

.wfv2-enterprise-boundary{
  display:grid;
  gap:10px;
  padding:18px;
  border-radius:16px;
  border:1px solid #d8e4ef;
  background:linear-gradient(135deg,#f8fbff,#f1faf7);
}

.wfv2-enterprise-boundary__items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.wfv2-enterprise-boundary__items span{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:9px 11px;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--wfv2-line);
  color:var(--wfv2-text);
  font-size:.8rem;
  font-weight:750;
}

@media(max-width:1050px){
  .wfv2-workspace-layout{grid-template-columns:1fr}
  .wfv2-review-state{grid-template-columns:1fr}
}

@media(max-width:700px){
  .wfv2-workspace-toolbar{align-items:flex-start;flex-direction:column}
  .wfv2-workspace-tabs{display:grid}
  .wfv2-enterprise-boundary__items{grid-template-columns:1fr}
}

/* PREMIUM POLISH MODE — PART 8 */

:root{--wfv2-ease:cubic-bezier(.2,.8,.2,1)}

a,button,.btn,input,select,textarea,.card,.panel,
.feature-card,.workspace-card,.record-card,
.wfv2-service-card,.wfv2-command-card,.wfv2-dashboard-kpi{
  transition:
    transform .18s var(--wfv2-ease),
    box-shadow .18s var(--wfv2-ease),
    border-color .18s var(--wfv2-ease),
    background-color .18s var(--wfv2-ease),
    color .18s var(--wfv2-ease),
    opacity .18s var(--wfv2-ease);
}

.card:hover,.panel:hover,.feature-card:hover,.workspace-card:hover,
.record-card:hover,.wfv2-service-card:hover,.wfv2-command-card:hover,
.wfv2-dashboard-kpi:hover{
  transform:translateY(-2px);
  border-color:#c7d8ee;
  box-shadow:0 18px 36px rgba(28,52,84,.11);
}

button:focus-visible,.btn:focus-visible,a:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(21,94,239,.28);
  outline-offset:3px;
}

button[disabled],.btn[aria-disabled="true"],input[disabled]{
  cursor:not-allowed!important;
  opacity:.55;
  transform:none!important;
  box-shadow:none!important;
}

.wfv2-feedback{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:2000;
  width:min(390px,calc(100% - 36px));
  display:grid;
  gap:10px;
  pointer-events:none;
}

.wfv2-toast{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:14px 16px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--wfv2-line);
  box-shadow:var(--wfv2-shadow);
  opacity:0;
  transform:translateY(12px);
  animation:wfv2-toast-in .25s var(--wfv2-ease) forwards;
  pointer-events:auto;
}

.wfv2-toast--success{border-left:4px solid var(--wfv2-accent)}
.wfv2-toast--error{border-left:4px solid var(--wfv2-danger)}
.wfv2-toast--info{border-left:4px solid var(--wfv2-brand)}
.wfv2-toast strong{display:block;margin-bottom:2px;color:var(--wfv2-text)}
.wfv2-toast p{margin:0;font-size:.84rem}

@keyframes wfv2-toast-in{to{opacity:1;transform:translateY(0)}}

.wfv2-loading{
  position:relative;
  color:transparent!important;
  pointer-events:none;
}

.wfv2-loading::after{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  width:18px;
  height:18px;
  margin:-9px 0 0 -9px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  border-radius:999px;
  animation:wfv2-spin .7s linear infinite;
}

@keyframes wfv2-spin{to{transform:rotate(360deg)}}

.wfv2-empty-state{
  display:grid;
  place-items:center;
  min-height:180px;
  padding:28px;
  text-align:center;
  border:1px dashed #cbd8e8;
  border-radius:16px;
  background:#f8fbff;
}

.wfv2-manual-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.wfv2-manual-nav{
  position:sticky;
  top:96px;
  display:grid;
  gap:6px;
  padding:16px;
  border:1px solid var(--wfv2-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-manual-nav a{
  padding:9px 10px;
  border-radius:9px;
  color:var(--wfv2-muted);
  text-decoration:none;
  font-size:.82rem;
  font-weight:750;
}

.wfv2-manual-nav a:hover{
  color:var(--wfv2-brand-deep);
  background:#eef4ff;
}

.wfv2-manual-content{display:grid;gap:20px}

.wfv2-manual-section{
  scroll-margin-top:100px;
  padding:24px;
  border:1px solid var(--wfv2-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-manual-table{width:100%;overflow:auto}

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

@media(max-width:900px){
  .wfv2-manual-shell{grid-template-columns:1fr}
  .wfv2-manual-nav{position:static}
}

/* PREMIUM POLISH MODE — PART 9 */

.wfv2-qa-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.wfv2-qa-card{
  display:flex;
  flex-direction:column;
  min-height:250px;
  padding:22px;
  border:1px solid var(--wfv2-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-qa-card h2{margin:12px 0 7px;font-size:1.15rem}
.wfv2-qa-card p{margin-top:0}

.wfv2-qa-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:14px;
}

.wfv2-qa-card__actions{
  display:grid;
  gap:9px;
  margin-top:auto;
}

.wfv2-qa-card__actions a{width:100%}

.wfv2-qa-checklist{
  display:grid;
  gap:7px;
  margin:14px 0;
  padding:0;
  list-style:none;
}

.wfv2-qa-checklist li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:var(--wfv2-muted);
  font-size:.82rem;
}

.wfv2-qa-checklist li::before{
  content:"□";
  color:var(--wfv2-brand);
  font-weight:900;
}

.wfv2-qa-status{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:22px;
}

.wfv2-qa-status article{
  padding:18px;
  border:1px solid var(--wfv2-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--wfv2-shadow-soft);
}

.wfv2-qa-status strong{
  display:block;
  margin-top:5px;
  font-size:1.45rem;
}

@media(max-width:1050px){
  .wfv2-qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wfv2-qa-status{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .wfv2-qa-grid,.wfv2-qa-status{grid-template-columns:1fr}
}
