/* V103 Audit Workday Simulator: long-form, non-MCQ, no-workpaper interactive audit floor */
:root{
  --workday-line: rgba(255,255,255,.12);
  --workday-soft: rgba(255,255,255,.065);
  --workday-soft-2: rgba(255,255,255,.095);
  --workday-text: rgba(255,255,255,.92);
  --workday-muted: rgba(255,255,255,.62);
  --workday-dim: rgba(255,255,255,.46);
  --workday-blue: rgba(93,154,255,.86);
  --workday-green: rgba(91,221,156,.86);
  --workday-warn: rgba(255,198,91,.9);
}

.nav-item[data-section="modules"]::before,
[data-open-section="modules"]::before{
  content:"";
}

#modulesSection .section-card{
  padding: clamp(14px,2vw,22px);
  overflow: hidden;
}

.workday-shell{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height: 72vh;
}

.workday-hero-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:stretch;
  padding:20px;
  border:1px solid var(--workday-line);
  border-radius:28px;
  background:
    radial-gradient(circle at 5% 0%, rgba(58,120,255,.19), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  box-shadow: 0 22px 80px rgba(0,0,0,.28);
}

.workday-hero-card h3{
  margin:4px 0 8px;
  font-size: clamp(24px,3.4vw,42px);
  letter-spacing:-.05em;
  line-height:1;
}

.workday-hero-card span{
  display:block;
  max-width:820px;
  color:var(--workday-muted);
  line-height:1.55;
}

.workday-hero-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(112px,1fr));
  gap:10px;
  min-width:280px;
}

.workday-hero-stats div{
  border:1px solid var(--workday-line);
  border-radius:20px;
  background:rgba(8,12,22,.62);
  padding:14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.workday-hero-stats strong{
  display:block;
  font-size:22px;
  letter-spacing:-.04em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.workday-hero-stats small{
  color:var(--workday-dim);
  font-size:12px;
}

.workday-layout{
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.workday-rail,
.workday-stage{
  border:1px solid var(--workday-line);
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border-radius:28px;
  box-shadow:0 22px 70px rgba(0,0,0,.22);
}

.workday-rail{
  padding:14px;
  position:sticky;
  top:16px;
  max-height: calc(100vh - 32px);
  overflow:auto;
  scrollbar-width: thin;
}

.workday-rail::-webkit-scrollbar,
.station-rail::-webkit-scrollbar{
  width:8px;
}
.workday-rail::-webkit-scrollbar-thumb,
.station-rail::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:99px;
}

.workday-rail-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:4px 4px 12px;
}
.workday-rail-head span{ color:var(--workday-muted); font-size:12px; text-transform:uppercase; letter-spacing:.12em; }
.workday-rail-head b{ font-size:11px; color:var(--workday-green); font-weight:700; }

.workday-phase-card{
  width:100%;
  border:1px solid transparent;
  background:rgba(255,255,255,.045);
  color:var(--workday-text);
  border-radius:18px;
  padding:12px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  text-align:left;
  margin-bottom:9px;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.workday-phase-card:hover{ transform:translateY(-1px); background:rgba(255,255,255,.075); }
.workday-phase-card.is-active{ border-color:rgba(130,174,255,.55); background:linear-gradient(135deg, rgba(75,126,255,.22), rgba(255,255,255,.055)); }
.workday-phase-card.is-done{ border-color:rgba(91,221,156,.22); }
.workday-phase-card .phase-index{
  width:34px;height:34px;border-radius:12px;display:grid;place-items:center;
  background:rgba(255,255,255,.09);font-weight:800;font-size:12px;
}
.workday-phase-card strong{ display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.workday-phase-card small{ display:block; color:var(--workday-dim); margin-top:2px; font-size:11px; }
.workday-phase-card em{ font-style:normal; font-size:11px; color:var(--workday-dim); }
.workday-phase-card.is-done em{ color:var(--workday-green); }

.workday-dev-actions{
  display:grid;
  gap:8px;
  padding-top:8px;
}
.workday-dev-actions button{ width:100%; justify-content:center; }

.workday-stage{ padding:18px; min-height:650px; }
.workday-phase-panel{ display:flex; flex-direction:column; gap:16px; }
.workday-panel-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:16px;
  border:1px solid var(--workday-line);
  border-radius:24px;
  background:rgba(5,9,18,.45);
}
.workday-panel-head h3{ margin:3px 0 6px; font-size:clamp(22px,2.6vw,34px); letter-spacing:-.045em; }
.workday-panel-head span{ color:var(--workday-muted); line-height:1.5; }
.workday-panel-head b{
  white-space:nowrap;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(93,154,255,.12);
  border:1px solid rgba(93,154,255,.25);
  color:rgba(207,224,255,.94);
}

.orientation-board{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.orientation-tile{
  border:1px solid var(--workday-line);
  background:rgba(255,255,255,.045);
  border-radius:22px;
  padding:15px;
  min-height:180px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.orientation-tile.is-done{ border-color:rgba(91,221,156,.25); background:linear-gradient(135deg, rgba(91,221,156,.08), rgba(255,255,255,.04)); }
.tile-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tile-top span{ color:var(--workday-dim); font-weight:800; }
.tile-top button,
.folder-strip button,
.flow-head button,
.artifact-stack button,
.binder-toolbar button,
.tag-chip-grid button,
.choice-chip-row button{
  border:1px solid var(--workday-line);
  background:rgba(255,255,255,.065);
  color:var(--workday-text);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.tile-top button:hover,
.folder-strip button:hover,
.flow-head button:hover,
.artifact-stack button:hover,
.binder-toolbar button:hover,
.tag-chip-grid button:hover,
.choice-chip-row button:hover{ background:rgba(255,255,255,.105); }
.orientation-tile h4{ margin:0; font-size:16px; letter-spacing:-.025em; }
.orientation-tile p{ margin:0; color:var(--workday-muted); line-height:1.55; font-size:13px; }
.workday-guidance{
  display:flex; gap:12px; align-items:center; padding:14px 16px;
  border:1px solid rgba(255,198,91,.2); border-radius:20px; background:rgba(255,198,91,.065);
}
.workday-guidance span{ color:var(--workday-muted); }

.client-file-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.client-folder-card{
  border:1px solid var(--workday-line);
  border-radius:22px;
  background:rgba(255,255,255,.045);
  padding:15px;
  min-height:230px;
}
.client-folder-card.is-reviewed{ border-color:rgba(91,221,156,.24); }
.folder-strip{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.folder-strip span{ color:var(--workday-dim); text-transform:uppercase; letter-spacing:.13em; font-size:11px; }
.client-folder-card h4{ margin:0 0 4px; font-size:17px; }
.client-folder-card small{ color:var(--workday-muted); display:block; min-height:34px; }
.client-folder-card ul{ margin:12px 0 0; padding-left:17px; color:var(--workday-muted); line-height:1.45; font-size:13px; }
.client-folder-card li{ margin:6px 0; }

.process-builder-grid{ display:grid; gap:12px; }
.process-flow-card{
  border:1px solid var(--workday-line);
  border-radius:22px;
  background:rgba(255,255,255,.045);
  padding:15px;
}
.process-flow-card.is-built{ border-color:rgba(91,221,156,.24); }
.flow-head{ display:flex; justify-content:space-between; gap:12px; align-items:center; }
.flow-head h4{ margin:0; }
.flow-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0;
}
.flow-steps span{
  display:flex; align-items:center; gap:7px;
  padding:9px 10px;
  border:1px solid var(--workday-line);
  border-radius:14px;
  background:rgba(8,12,22,.52);
  color:var(--workday-muted);
  font-size:12px;
}
.flow-steps b{
  width:20px;height:20px;border-radius:8px;display:grid;place-items:center;
  background:rgba(93,154,255,.16);color:rgba(207,224,255,.95);
}
.process-flow-card p{ margin:0; color:var(--workday-muted); line-height:1.5; }

.binder-toolbar{
  display:flex; gap:8px; overflow:auto; padding-bottom:4px;
}
.binder-toolbar button{ white-space:nowrap; color:var(--workday-muted); }
.binder-toolbar button.is-active{ color:white; border-color:rgba(93,154,255,.42); background:rgba(93,154,255,.16); }
.evidence-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.evidence-tag-card{
  border:1px solid var(--workday-line);
  border-radius:22px;
  background:rgba(255,255,255,.045);
  padding:14px;
  min-height:225px;
}
.evidence-tag-card.is-tagged{ border-color:rgba(93,154,255,.28); }
.evidence-card-top{ display:flex; justify-content:space-between; color:var(--workday-dim); font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.evidence-tag-card p{ color:var(--workday-muted); line-height:1.5; min-height:64px; margin:12px 0; }
.tag-chip-grid{ display:flex; flex-wrap:wrap; gap:7px; }
.tag-chip-grid button{ color:var(--workday-muted); padding:7px 9px; }
.tag-chip-grid button.is-selected{ color:white; border-color:rgba(91,221,156,.35); background:rgba(91,221,156,.13); }

.rotation-workbench{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:14px;
}
.station-rail{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:650px;
  overflow:auto;
  padding-right:4px;
}
.station-rail button{
  border:1px solid transparent;
  background:rgba(255,255,255,.045);
  color:var(--workday-text);
  border-radius:16px;
  padding:12px;
  text-align:left;
  cursor:pointer;
}
.station-rail button.is-active{ border-color:rgba(93,154,255,.45); background:rgba(93,154,255,.13); }
.station-rail button.is-done{ border-color:rgba(91,221,156,.22); }
.station-rail strong{ display:block; font-size:13px; }
.station-rail small{ color:var(--workday-dim); font-size:11px; }
.station-desk{
  border:1px solid var(--workday-line);
  border-radius:24px;
  background:rgba(8,12,22,.42);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.station-head{ display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.station-head h3{ margin:3px 0 5px; font-size:26px; letter-spacing:-.04em; }
.station-head span{ color:var(--workday-muted); }
.station-head b{ font-size:26px; color:var(--workday-green); }
.artifact-stack,
.station-choice-block{
  border:1px solid var(--workday-line);
  border-radius:20px;
  background:rgba(255,255,255,.04);
  padding:14px;
}
.artifact-stack strong,
.station-choice-block strong{ display:block; margin-bottom:10px; }
.artifact-stack div{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.artifact-stack span{
  padding:9px 10px; border:1px solid var(--workday-line); border-radius:14px; color:var(--workday-muted); background:rgba(255,255,255,.035); font-size:12px;
}
.choice-chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.choice-chip-row button{ color:var(--workday-muted); text-align:left; }
.choice-chip-row button.is-selected{ color:white; border-color:rgba(91,221,156,.38); background:rgba(91,221,156,.13); }
.choice-chip-row.small button{ min-width:92px; text-align:center; }

.fit-report-hero{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.fit-report-hero div,
.manager-fit-note{
  border:1px solid var(--workday-line);
  background:rgba(255,255,255,.045);
  border-radius:22px;
  padding:15px;
}
.fit-report-hero span{ display:block; color:var(--workday-dim); font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.fit-report-hero strong{ display:block; margin:8px 0 2px; font-size:26px; letter-spacing:-.045em; }
.fit-report-hero small{ color:var(--workday-muted); }
.field-score-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.field-score-grid article{
  position:relative;
  overflow:hidden;
  min-height:78px;
  border:1px solid var(--workday-line);
  background:rgba(255,255,255,.04);
  border-radius:18px;
  padding:12px 70px 12px 12px;
}
.field-score-grid article strong{ display:block; }
.field-score-grid article span{ color:var(--workday-dim); font-size:11px; display:block; margin-top:3px; }
.field-score-grid article b{ position:absolute; right:12px; top:12px; font-size:18px; }
.field-score-grid article i{ position:absolute; left:0; bottom:0; height:3px; width:var(--w); background:linear-gradient(90deg, rgba(93,154,255,.8), rgba(91,221,156,.8)); }
.manager-fit-note{ display:flex; flex-direction:column; gap:10px; }
.manager-fit-note span{ color:var(--workday-muted); line-height:1.55; }
.manager-fit-note button{ align-self:flex-start; }

@media (max-width: 1100px){
  .workday-layout{ grid-template-columns:1fr; }
  .workday-rail{ position:relative; top:auto; max-height:none; }
  .workday-rail{ display:block; }
  .workday-hero-card{ grid-template-columns:1fr; }
  .workday-hero-stats{ min-width:0; }
  .rotation-workbench{ grid-template-columns:1fr; }
  .station-rail{ max-height:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px){
  #modulesSection .section-card{ padding:10px; }
  .workday-stage{ padding:10px; min-height:unset; }
  .workday-hero-card{ padding:14px; border-radius:22px; }
  .workday-hero-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workday-hero-stats div{ padding:10px; border-radius:16px; }
  .workday-hero-stats strong{ font-size:17px; }
  .workday-rail,.workday-stage{ border-radius:22px; }
  .workday-phase-card{ grid-template-columns:32px minmax(0,1fr) auto; padding:10px; }
  .workday-panel-head{ flex-direction:column; padding:12px; border-radius:20px; }
  .orientation-board,
  .client-file-grid,
  .evidence-card-grid,
  .field-score-grid,
  .fit-report-hero{ grid-template-columns:1fr; }
  .orientation-tile,
  .client-folder-card,
  .evidence-tag-card{ min-height:auto; }
  .artifact-stack div{ grid-template-columns:1fr; }
  .station-rail{ grid-template-columns:1fr; }
  .station-head{ flex-direction:column; }
  .flow-steps{ flex-direction:column; }
  .choice-chip-row button,
  .tag-chip-grid button{ width:auto; max-width:100%; }
  .binder-toolbar{ margin-left:-2px; margin-right:-2px; }
}
