/* B15: local, inherited SQL Studio styles. Loaded only by B19 when enabled. */
.as2-shell{--as2-line:var(--line);--as2-ink:var(--ink);--as2-muted:var(--muted);--as2-surface:var(--surface);--as2-soft:var(--surface-2);--as2-accent:var(--action);max-width:980px;margin:0 auto 24px;padding:23px 26px 20px;background:var(--as2-surface);color:var(--as2-ink);border:1px solid var(--as2-line);border-radius:16px;box-shadow:var(--shadow,0 5px 24px #2222);font:inherit;min-width:0}
.as2-shell *{box-sizing:border-box}
.as2-shell [hidden]{display:none!important}
.as2-head{padding-bottom:15px;border-bottom:1px solid var(--as2-line)}
.as2-eyebrow,.as2-kicker{display:block;color:var(--as2-accent);font-size:11px;letter-spacing:.12em;font-weight:700}
.as2-headline{display:flex;align-items:baseline;gap:14px;justify-content:space-between;flex-wrap:wrap;margin-top:6px}
.as2-title{font-size:clamp(20px,2.3vw,27px);line-height:1.25;letter-spacing:-.035em;margin:0;font-weight:700}
.as2-meta,.as2-progress-text{font-size:12px;font-weight:700;color:var(--as2-muted)}
.as2-progress-text{margin:11px 0 5px;font-variant-numeric:tabular-nums}
.as2-meter{height:5px;border-radius:8px;background:var(--as2-soft);overflow:hidden}
.as2-meter>span{display:block;height:100%;width:0;background:var(--as2-accent);border-radius:inherit;transition:width .18s ease}
.as2-notice{margin:12px 0 0;padding:9px 12px;border-left:3px solid var(--as2-accent);background:var(--as2-soft);border-radius:0 8px 8px 0;color:var(--as2-ink);font-size:12.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.as2-notice-error{border-color:var(--danger-ink);color:var(--danger-ink)}
.as2-stage{padding:18px 0 4px;min-width:0}
.as2-lead,.as2-question-body{font-size:14px;line-height:1.72;color:var(--as2-ink);margin:0 0 16px;max-width:78ch;white-space:pre-wrap;overflow-wrap:anywhere}
.as2-question-title{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:7px 0 12px;color:var(--as2-ink)}
.as2-question-title:focus{outline:none}
.as2-subtitle{font-size:12.5px;font-weight:700;color:var(--as2-ink);margin:0 0 9px;padding:0}
.as2-mode-list,.as2-choices{border:0;margin:12px 0 16px;padding:0;min-width:0}
.as2-mode-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.as2-mode-list>legend{margin-bottom:8px}
.as2-mode{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--as2-line);border-radius:10px;background:var(--as2-surface);padding:13px;min-width:0;cursor:pointer}
.as2-mode:has(input:checked){border-color:var(--as2-accent);background:var(--violet-pale)}
.as2-mode:has(input:disabled){opacity:.62;cursor:not-allowed}
.as2-mode input,.as2-choice input{accent-color:var(--as2-accent);flex:none;margin:4px 0 0;width:16px;height:16px}
.as2-mode-copy{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px;line-height:1.5;color:var(--as2-muted)}
.as2-mode-copy strong{font-size:14px;color:var(--as2-ink)}
.as2-mode-copy small{margin-top:5px;font-size:11px;color:var(--as2-muted)}
.as2-caveat{margin:12px 0 6px;font-size:12.5px;line-height:1.65;color:var(--as2-muted);border-left:2px solid var(--as2-line);padding-left:12px;max-width:84ch}
.as2-small{font-size:11.5px;line-height:1.65;color:var(--as2-muted);margin:8px 0 13px}
.as2-choices{display:flex;flex-direction:column;gap:8px}
.as2-choice{display:flex;align-items:flex-start;gap:11px;cursor:pointer;padding:12px 14px;border:1px solid var(--as2-line);border-radius:9px;background:var(--as2-surface);font-size:13.5px;line-height:1.55;overflow-wrap:anywhere}
.as2-choice:hover{border-color:var(--violet2)}
.as2-choice:has(input:checked){background:var(--violet-pale);border-color:var(--as2-accent)}
.as2-sql-example{max-height:250px;overflow:auto;margin:12px 0 15px;background:var(--as2-soft);border:1px solid var(--as2-line);padding:12px 14px;border-radius:9px;white-space:pre-wrap;font:12.5px/1.7 var(--mono);color:var(--as2-ink)}
.as2-sql-slot{min-height:60px;margin:14px 0 7px;min-width:0}
.as2-warning{margin:11px 0;background:var(--as2-soft);border:1px solid var(--as2-line);padding:12px 14px;border-radius:9px;font-size:13px;color:var(--as2-muted)}
.as2-table-scroll{overflow-x:auto;margin:12px 0 18px;border:1px solid var(--as2-line);border-radius:9px}
.as2-data-table{border-collapse:collapse;width:100%;font:12px/1.5 var(--mono)}
.as2-data-table caption{text-align:left;font:700 12px/1.5 var(--font,system-ui);padding:9px 12px;background:var(--as2-soft)}
.as2-data-table th,.as2-data-table td{padding:8px 11px;border-top:1px solid var(--as2-line);border-right:1px solid var(--as2-line);text-align:left;white-space:nowrap}
.as2-data-table th{background:var(--as2-soft);font-weight:700}
.as2-case-steps{margin:8px 0 16px;padding:0 0 0 26px;color:var(--as2-muted);font-size:12.5px;line-height:1.65}
.as2-case-steps li{padding:2px 0}
.as2-case-steps [aria-current="step"]{font-weight:700;color:var(--as2-accent)}
.as2-typed input{display:block;max-width:460px;width:100%;padding:10px 12px;margin:7px 0 12px;border:1px solid var(--as2-line);border-radius:9px;background:var(--as2-surface);color:var(--as2-ink)}
.as2-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--as2-line);padding-top:14px}
.as2-button{border:1px solid var(--as2-line);padding:9px 12px;min-height:38px;border-radius:8px;font-size:12.5px;line-height:1.3;font-weight:700;background:var(--as2-surface);color:var(--as2-ink);cursor:pointer}
.as2-primary{background:var(--as2-accent);color:var(--action-text);border-color:var(--as2-accent)}
.as2-secondary{border-color:var(--violet2);color:var(--as2-accent)}
.as2-quiet{background:transparent;color:var(--as2-muted)}
.as2-button:hover:not(:disabled){filter:brightness(.96)}
.as2-button:disabled{opacity:.48;cursor:not-allowed}
.as2-shell :is(button,input):focus-visible,.as2-shell label:focus-within{outline:2px solid var(--as2-accent);outline-offset:3px}
.as2-confirm{padding:13px;margin-top:14px;border:1px solid var(--as2-line);border-radius:9px;background:var(--as2-soft)}
.as2-confirm p{margin:0 0 10px;font-size:13px}.as2-confirm .as2-button{margin-right:7px}
.as2-footnote{border-top:1px solid var(--as2-line);padding-top:12px;margin:16px 0 0;color:var(--as2-muted);font-size:11.5px;line-height:1.5}
@media(max-width:760px){.as2-shell{padding:16px}.as2-mode-list{grid-template-columns:1fr}.as2-mode{padding:11px}.as2-title{font-size:22px}.as2-headline{align-items:flex-start}.as2-actions .as2-button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.as2-meter>span{transition:none}}

/* B23: independent SQL verification feedback. CodeMirror remains review-only. */
.as2-sql-slot{min-height:160px;margin:12px 0 16px}
.as2-sql-slot .CodeMirror{height:240px;max-height:46vh;border:1px solid var(--as2-line);border-radius:9px;font:13px/1.5 var(--mono)}
.as2-sql-status{margin:10px 0;padding:10px 12px;border-left:3px solid var(--as2-accent);background:var(--as2-soft);border-radius:5px;font-size:13px}


/* C12 · desktop-first assessment workspace. Flat information hierarchy, no decorative cards. */
.as2-shell{
  max-width:1120px;
  padding:28px 34px 24px;
  border-radius:10px;
  box-shadow:none;
}
.as2-head{padding-bottom:18px}
.as2-eyebrow{color:var(--as2-muted);letter-spacing:.09em}
.as2-title{font-size:clamp(23px,2.25vw,29px);font-weight:700}
.as2-meta{font-size:12px}
.as2-progress-text{margin-top:14px}
.as2-meter{height:4px;border-radius:2px}
.as2-stage{padding-top:22px;padding-bottom:10px}
.as2-question-title{max-width:38ch;line-height:1.34}
.as2-question-body{max-width:84ch;font-size:14px}
.as2-mode-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:0;
  row-gap:0;
  border:1px solid var(--as2-line);
  border-radius:7px;
  overflow:hidden;
}
.as2-mode-list>legend{padding:0 8px 0 0}
.as2-mode{
  display:flex;
  gap:13px;
  border:0;
  border-right:1px solid var(--as2-line);
  border-radius:0;
  padding:18px 16px;
  min-height:145px;
  background:transparent;
}
.as2-mode:last-child{border-right:0}
.as2-mode:has(input:checked){
  box-shadow:inset 0 3px 0 var(--as2-accent);
  background:var(--as2-soft);
}
.as2-mode-copy strong{font-size:16px;font-weight:700}
.as2-mode-copy>span{line-height:1.55}
.as2-mode-copy small{font-size:12px}
.as2-mode-unavailable{font-size:12px;color:var(--as2-muted);font-weight:700}
.as2-task-nav{
  margin:0 0 22px;
  padding:0 0 16px;
  border-bottom:1px solid var(--as2-line);
}
.as2-task-rail{
  display:flex;
  flex-wrap:wrap;
  list-style:none;
  gap:5px;
  padding:0;
  margin:0;
}
.as2-task-rail>li{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  border:1px solid var(--as2-line);
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:var(--as2-muted);
}
.as2-task-rail>.as2-task-past{
  background:var(--as2-soft);
  color:var(--as2-ink);
}
.as2-task-rail>.as2-task-current{
  border-color:var(--as2-accent);
  background:var(--as2-accent);
  color:var(--action-text);
}
.as2-choices{gap:0;border-top:1px solid var(--as2-line)}
.as2-choices>.as2-subtitle{padding:0 0 12px}
.as2-choice{
  border:0;
  border-bottom:1px solid var(--as2-line);
  border-radius:0;
  padding:15px 13px;
}
.as2-choice:has(input:checked){border-color:var(--as2-line)}
.as2-choice:has(input:disabled){cursor:default}
.as2-answer-status{
  margin:18px 0 4px;
  padding:10px 13px;
  color:var(--as2-muted);
  background:var(--as2-soft);
  border-left:3px solid var(--as2-line);
  font-size:12.5px;
  line-height:1.55;
}
.as2-answer-status[data-answer-state="unsaved"]{border-left-color:var(--as2-accent);color:var(--as2-ink)}
.as2-answer-status[data-answer-state="submitting"],
.as2-answer-status[data-answer-state="checking"]{border-left-color:var(--as2-accent)}
.as2-answer-status[data-answer-state="checked"]{border-left-color:var(--as2-accent);font-weight:700}
.as2-actions{
  padding-top:17px;
  gap:10px;
}
.as2-button{border-radius:6px;min-height:40px;padding:10px 15px;font-size:13px}
.as2-confirm{
  background:var(--as2-surface);
  border-left:3px solid var(--as2-accent);
  border-radius:4px;
  max-width:560px;
}
.as2-shell :is(button,input,textarea,.CodeMirror):focus-visible{
  outline:2px solid var(--as2-accent);
  outline-offset:2px;
}
.as2-shell .CodeMirror{min-width:0}
.as2-sql-slot{min-width:0}
.as2-sql-slot .CodeMirror{height:300px;max-height:50vh}
.as2-sql-example{max-width:100%;white-space:pre;overflow-x:auto}
@media(max-width:760px){
  .as2-shell{padding:16px;max-width:100%}
  .as2-mode-list{grid-template-columns:1fr}
  .as2-mode{min-height:0;border-right:0;border-bottom:1px solid var(--as2-line);padding:13px}
  .as2-mode:last-child{border-bottom:0}
  .as2-mode:has(input:checked){box-shadow:inset 3px 0 0 var(--as2-accent)}
  .as2-task-rail{gap:4px}
  .as2-task-rail>li{min-width:25px;height:25px;font-size:10px}
}
@media(forced-colors:active){
  .as2-mode:has(input:checked),.as2-task-rail>.as2-task-current,.as2-answer-status{
    outline:1px solid CanvasText;
    forced-color-adjust:auto;
  }
}


/* Assessment v2 dormant surface: inherit the same v42 Studio palette and
   controls. Styling only; the G2A feature gate is intentionally untouched. */
.as2-shell{
 --as2-line:var(--line);
 --as2-ink:var(--ink);
 --as2-muted:var(--muted);
 --as2-surface:var(--surface);
 --as2-soft:var(--surface-2);
 --as2-accent:var(--action);
 max-width:1192px;padding:24px 26px;border-radius:var(--ui-radius,8px);
 border-color:var(--as2-line);box-shadow:none;color:var(--as2-ink);
}
.as2-shell .as2-head{border-color:var(--as2-line)}
.as2-shell .as2-eyebrow{color:var(--as2-accent)}
.as2-shell .as2-title{font-weight:700;font-size:clamp(24px,2.5vw,29px)}
.as2-shell .as2-mode-list{border-radius:var(--ui-radius,8px)}
.as2-shell .as2-mode:has(input:checked){background:var(--violet-pale);box-shadow:inset 0 3px 0 var(--as2-accent)}
.as2-shell .as2-choice:hover{background:var(--as2-soft)}
.as2-shell .as2-choice:has(input:checked){background:var(--violet-pale);box-shadow:inset 3px 0 0 var(--as2-accent)}
.as2-shell .as2-task-rail>.as2-task-current{background:var(--action);border-color:var(--action);color:var(--action-text)}
.as2-shell .as2-button{min-height:40px;border-radius:7px;font-weight:700}
.as2-shell .as2-button.as2-primary{background:var(--action);border-color:var(--action);color:var(--action-text)}
.as2-shell .as2-button.as2-primary:hover:not(:disabled){background:var(--action-hover);border-color:var(--action-hover)}
.as2-shell .as2-button.as2-secondary{border-color:var(--line);background:var(--surface);color:var(--ink2)}
.as2-shell .as2-button.as2-secondary:hover:not(:disabled){border-color:var(--violet2);background:var(--violet-pale)}
.as2-shell :is(input,textarea,select,button,.CodeMirror):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:760px){.as2-shell{padding:16px}.as2-shell .as2-mode:has(input:checked){box-shadow:inset 3px 0 0 var(--as2-accent)}}
