:root {
  --bg: #020817;
  --panel: rgba(5, 14, 35, .94);
  --panel-2: rgba(8, 20, 46, .92);
  --line: rgba(76, 195, 255, .22);
  --line-soft: rgba(255, 255, 255, .075);
  --cyan: #4cc3ff;
  --cyan-soft: #8de1ff;
  --purple: #d023e8;
  --green: #46e6a8;
  --gold: #ffd166;
  --red: #fb7185;
  --text: #f5f8ff;
  --muted: #95a4bd;
  --shadow: 0 22px 58px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(2, 8, 23, .93), rgba(2, 8, 23, .98)),
    url("/aigency-dev-lab/tool-background-1.png") center top / cover fixed,
    var(--bg);
  font-family: Inter, Arial, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(76,195,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,195,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.repair-shell {
  width: min(1580px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 0;
}
.lab-hero, .session-bar, .welcome-strip, .studio-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.lab-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(76, 195, 255, .22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(5, 15, 39, .97), rgba(13, 7, 32, .94)),
    url("/aigency-dev-lab/hero.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.lab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 12, 33, .98), rgba(5, 12, 31, .88) 58%, rgba(22, 7, 42, .78)),
    radial-gradient(circle at 88% 22%, rgba(208, 35, 232, .2), transparent 34%);
}
.lab-hero::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -165px;
  z-index: -1;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(76, 195, 255, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(76, 195, 255, .025),
    0 0 0 96px rgba(208, 35, 232, .018);
}
.course-topbar {
  min-height: 76px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(76,195,255,.18);
  background: rgba(2,8,23,.9);
  box-shadow: 0 8px 28px rgba(0,0,0,.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.course-brand { min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.course-logo { width: 200px; height: auto; display: block; object-fit: contain; object-position: left center; }
.course-brand-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.course-brand-text span { font-size: 16px; font-weight: 800; letter-spacing: .03em; }
.course-brand-text small { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; }
.lab-header-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.model-badge {
  min-height: 36px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(70,230,168,.32);
  border-radius: 9px;
  color: #d8e5f5;
  background: linear-gradient(135deg, rgba(70,230,168,.08), rgba(76,195,255,.07));
  box-shadow: 0 7px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}
.return-lab-button {
  min-height: 38px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(76,195,255,.38);
  border-radius: 9px;
  color: #dff6ff;
  background: rgba(76,195,255,.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.return-lab-button:hover { transform: translateY(-1px); border-color: var(--cyan); background: rgba(76,195,255,.14); }
.return-lab-icon { color: var(--cyan); font-size: 14px; line-height: 1; }
.model-badge-dot, .save-dot {
  width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%;
  background: #64748b; box-shadow: 0 0 0 4px rgba(100,116,139,.11);
}
.model-badge.connected, .model-badge.is-connected { color: #eafff7; border-color: rgba(70,230,168,.48); }
.model-badge.connected .model-badge-dot, .model-badge.is-connected .model-badge-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(70,230,168,.1), 0 0 11px rgba(70,230,168,.7);
}
.model-badge.error,
.model-badge.is-error { color: #fecdd3; border-color: rgba(251,113,133,.38); }
.model-badge.error .model-badge-dot,
.model-badge.is-error .model-badge-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(251,113,139,.1); }
.hero-main {
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}
.hero-eyebrow {
  margin: 0 0 9px;
  color: #8de1ff;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-main h1 {
  margin: 0;
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.gradient-word {
  color: transparent;
  background: linear-gradient(92deg, #8de1ff, var(--cyan) 42%, #ec8bff);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy { max-width: 790px; margin: 12px 0 0; color: #bdc8df; font-size: clamp(.94rem, 1.25vw, 1.05rem); line-height: 1.62; }
.hero-workflow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(126px,1fr)); gap: 9px; list-style: none; }
.hero-workflow li {
  min-height: 48px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  color: #dfe7f8; background: rgba(4,9,24,.66);
  font-size: .76rem; font-weight: 800; white-space: nowrap;
  backdrop-filter: blur(10px);
}
.workflow-number {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border: 1px solid rgba(76,195,255,.38); border-radius: 8px;
  color: #8de1ff; background: rgba(76,195,255,.08);
  font-size: .65rem; font-weight: 900;
}
.session-bar {
  min-height: 66px;
  margin-top: 14px;
  padding: 11px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  background: rgba(4,12,30,.93);
}
.session-status, .session-actions { display: flex; align-items: center; gap: 9px; }
.session-status > div { display: flex; flex-direction: column; gap: 3px; }
.session-status strong { font-size: 12px; }
.session-status span:not(.save-dot) { color: #7f8da7; font-size: 10px; }
.save-dot.is-saving { background: var(--gold); }
.welcome-strip {
  margin-top: 14px;
  padding: 15px 18px;
  display: flex; align-items: center; gap: 13px;
  border-color: rgba(70,230,168,.23);
  background: rgba(70,230,168,.045);
}
.welcome-mark {
  width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid rgba(70,230,168,.28); border-radius: 11px;
  color: var(--green); background: rgba(70,230,168,.06);
}
.welcome-strip strong { font-size: 12px; }
.welcome-strip p { margin: 3px 0 0; color: #98b7ab; font-size: 11px; line-height: 1.45; }
.workspace-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(285px,.78fr) minmax(370px,1.1fr) minmax(340px,.95fr);
  gap: 14px;
  align-items: stretch;
}
.studio-panel {
  min-width: 0;
  height: 790px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}
.panel-header {
  min-height: 69px;
  padding: 13px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,26,52,.84), rgba(6,13,31,.75));
}
.panel-title { min-width: 0; display: flex; align-items: center; gap: 11px; }
.panel-number {
  width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid rgba(76,195,255,.3); border-radius: 10px;
  color: var(--cyan-soft); background: rgba(76,195,255,.07);
  font-size: 10px; font-weight: 900;
}
.panel-number.purple { color: #eda2fa; border-color: rgba(208,35,232,.3); background: rgba(208,35,232,.07); }
.panel-number.green { color: #9aebc8; border-color: rgba(70,230,168,.3); background: rgba(70,230,168,.07); }
.panel-title h2 { margin: 0; font-family: Montserrat,Inter,sans-serif; font-size: 13px; }
.panel-title p { margin: 3px 0 0; color: #7f8da7; font-size: 10px; }
.count-badge, .connection-label, .audit-state {
  padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 7px;
  color: #8997ae; background: rgba(255,255,255,.02);
  font-size: 9px; font-weight: 900; text-transform: uppercase; white-space: nowrap;
}
.panel-body { min-height: 0; padding: 16px; overflow-y: auto; }
.evidence-body { scrollbar-width: thin; scrollbar-color: var(--cyan) rgba(255,255,255,.04); }
.field-label { margin: 15px 0 7px; display: block; color: #cbd5e7; font-size: 10px; font-weight: 900; }
.field-label:first-child { margin-top: 0; }
.field-label span { color: #6f7d94; font-weight: 600; }
.lab-input, .lab-select, .lab-textarea, .composer textarea, .prompt-output {
  width: 100%; border: 1px solid rgba(76,195,255,.21); border-radius: 10px; outline: 0;
  color: #eef5ff; background: rgba(2,7,19,.82);
  font-size: 12px; line-height: 1.55;
}
.lab-input { min-height: 42px; padding: 10px 12px; }
.lab-select { min-height: 42px; padding: 0 11px; color-scheme: dark; }
.lab-textarea, .composer textarea { padding: 11px 12px; resize: vertical; }
.lab-input:focus, .lab-select:focus, .lab-textarea:focus, .composer textarea:focus { border-color: rgba(76,195,255,.6); box-shadow: 0 0 0 3px rgba(76,195,255,.06); }
::placeholder { color: #63718a; }
.drop-zone {
  min-height: 132px; margin-top: 15px; padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed rgba(76,195,255,.35); border-radius: 13px;
  text-align: center; background: rgba(76,195,255,.025); cursor: pointer;
  transition: .18s ease;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--cyan); background: rgba(76,195,255,.07); }
.drop-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan-soft); background: rgba(76,195,255,.09); font-size: 20px; }
.drop-zone strong { font-size: 12px; }
.drop-zone small { max-width: 270px; color: #7d8ba3; font-size: 10px; line-height: 1.4; }
.evidence-warning { margin-top: 10px; padding: 9px 10px; display: flex; gap: 8px; border: 1px solid rgba(255,209,102,.14); border-radius: 9px; color: #baa96f; background: rgba(255,209,102,.03); }
.evidence-warning > span { font-weight: 900; }
.evidence-warning p { margin: 0; font-size: 9px; line-height: 1.45; }
.file-list { margin-top: 10px; display: grid; gap: 6px; }
.file-item {
  min-width: 0; padding: 8px 9px;
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px;
  border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.018);
}
.file-type { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--cyan-soft); background: rgba(76,195,255,.07); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.file-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-copy strong { overflow: hidden; color: #dce6f6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { color: #6f7d94; font-size: 8px; }
.file-remove { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 7px; color: #a67d88; background: rgba(251,113,133,.05); cursor: pointer; }
.paste-file { margin-top: 10px; border: 1px solid var(--line-soft); border-radius: 10px; }
.paste-file summary { padding: 10px 12px; color: #96a4bb; font-size: 10px; font-weight: 800; cursor: pointer; }
.paste-fields { padding: 0 10px 10px; display: grid; gap: 8px; }
.choice-group {
  margin: 15px 0 0;
  padding: 11px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(142,124,255,.2);
  border-radius: 10px;
  background: rgba(28,20,64,.16);
}
.choice-group legend {
  padding: 0 5px;
  color: #dce5f5;
  font-size: 10px;
  font-weight: 900;
}
.choice-group legend span { color: #6f7d94; font-weight: 600; }
.choice-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #aebbd0;
  font-size: 10px;
  line-height: 1.4;
}
.choice-group input { margin: 2px 0 0; accent-color: var(--cyan); }
.code-input { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.lab-button {
  min-height: 38px; padding: 8px 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(76,195,255,.3); border-radius: 9px;
  color: #dff6ff; background: rgba(76,195,255,.07);
  cursor: pointer; font-size: 10px; font-weight: 900; transition: .18s ease;
}
.lab-button:hover { transform: translateY(-1px); border-color: var(--cyan); }
.lab-button.subtle { color: #9aa8bd; border-color: var(--line-soft); background: rgba(255,255,255,.025); }
.lab-button.primary { color: #fff; border: 0; background: linear-gradient(100deg,#b925d5,#d332e6 45%,#3faee8 125%); box-shadow: 0 11px 26px rgba(208,35,232,.18); }
.lab-button.danger { color: #fecdd3; border-color: rgba(251,113,133,.25); background: rgba(127,29,29,.14); }
.lab-button.compact { min-height: 34px; justify-self: end; }
.lab-button.full { width: 100%; }
.lab-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.conversation {
  min-height: 0; padding: 17px; flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 11px;
  scrollbar-width: thin; scrollbar-color: var(--purple) rgba(255,255,255,.04);
}
.message { max-width: 91%; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; color: #c7d2e5; background: rgba(139,92,246,.055); border-color: rgba(139,92,246,.15); border-bottom-left-radius: 4px; }
.message.user { align-self: flex-end; color: #dff7ff; background: rgba(76,195,255,.07); border-color: rgba(76,195,255,.2); border-bottom-right-radius: 4px; }
.message-label { display: block; margin-bottom: 5px; color: #74829a; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.message.loading { opacity: .72; }
.prompt-chips { padding: 10px 14px 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line-soft); }
.prompt-chips button { min-height: 28px; padding: 5px 8px; border: 1px solid rgba(139,92,246,.19); border-radius: 999px; color: #aeb9cc; background: rgba(139,92,246,.045); cursor: pointer; font-size: 9px; font-weight: 700; }
.composer { padding: 11px 14px 14px; }
.composer textarea { min-height: 92px; max-height: 190px; }
.composer-footer { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-footer > span { color: #69778e; font-size: 9px; }
.button-spinner { width: 13px; height: 13px; display: none; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.is-loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.readiness-card { margin: 15px; padding: 13px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(70,230,168,.14); border-radius: 12px; background: rgba(70,230,168,.025); }
.confidence-ring {
  --confidence: 0;
  width: 61px; height: 61px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,#071126 74%,transparent 76%), conic-gradient(var(--green) calc(var(--confidence)*1%), rgba(255,255,255,.07) 0);
}
.confidence-ring strong { font-size: 14px; }
.readiness-card > div:last-child > strong { font-size: 11px; }
.readiness-card p { margin: 4px 0 0; color: #839389; font-size: 9px; line-height: 1.45; }
.severity-counts { margin: 0 15px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.severity-counts span { min-width: 0; padding: 7px 4px; border: 1px solid var(--line-soft); border-radius: 8px; color: #74829a; text-align: center; font-size: 8px; }
.severity-counts strong { display: block; margin-bottom: 2px; color: #dfe8f8; font-size: 12px; }
.report-tabs { margin: 13px 15px 0; padding: 4px; display: flex; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(2,7,19,.5); }
.report-tabs button { min-height: 30px; flex: 1; border: 0; border-radius: 7px; color: #718099; background: transparent; cursor: pointer; font-size: 9px; font-weight: 900; }
.report-tabs button.active { color: #dcf7e9; background: rgba(70,230,168,.08); }
.report-content { min-height: 0; padding: 12px 15px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--green) rgba(255,255,255,.04); }
.report-summary { padding: 11px; border: 1px solid var(--line-soft); border-radius: 10px; color: #a8b5c9; background: rgba(255,255,255,.018); font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.empty-copy { color: #6e7c93; }
.issue-list { margin-top: 9px; display: grid; gap: 8px; }
.issue-card { padding: 11px; border: 1px solid var(--line-soft); border-left: 3px solid var(--severity-color,#74829a); border-radius: 10px; background: rgba(255,255,255,.015); }
.issue-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.issue-top strong { color: #e3eaf7; font-size: 10px; line-height: 1.4; }
.severity-label { padding: 4px 6px; border-radius: 6px; color: var(--severity-color); background: color-mix(in srgb,var(--severity-color) 8%,transparent); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.issue-card[data-severity="critical"] { --severity-color: var(--red); }
.issue-card[data-severity="high"] { --severity-color: #ff9c68; }
.issue-card[data-severity="medium"] { --severity-color: var(--gold); }
.issue-card[data-severity="low"] { --severity-color: var(--cyan); }
.section-caption {
  margin: 14px 0 7px;
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.protected-list { display: grid; gap: 7px; }
.protected-card {
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.protected-card strong { display: block; color: #dfe8f8; font-size: 10px; }
.protected-card p { margin: 4px 0 0; color: #8fa0b8; font-size: 9px; line-height: 1.48; white-space: pre-wrap; }
.issue-file { margin-top: 6px; color: #7ed9ff; font-family: monospace; font-size: 8px; }
.issue-section { margin-top: 8px; }
.issue-section b { display: block; margin-bottom: 3px; color: #77869e; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.issue-section p { margin: 0; color: #9caac0; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.test-checklist { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; counter-reset: tests; }
.test-checklist li { padding: 10px 10px 10px 36px; position: relative; border: 1px solid var(--line-soft); border-radius: 9px; color: #aebacc; font-size: 9px; line-height: 1.5; counter-increment: tests; }
.test-checklist li::before { content: counter(tests); position: absolute; left: 9px; top: 9px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid rgba(70,230,168,.25); border-radius: 6px; color: var(--green); font-size: 8px; font-weight: 900; }
.prompt-output { min-height: 365px; padding: 12px; resize: none; font-family: "SFMono-Regular",Consolas,monospace; font-size: 9px; }
.prompt-output.compact-output { min-height: 150px; resize: vertical; }
.output-gap { margin-top: 14px; }
.output-actions { margin-top: 7px; display: flex; gap: 7px; }
.output-actions .lab-button { flex: 1; }
.report-footer { padding: 12px 15px 14px; border-top: 1px solid var(--line-soft); }
.report-footer p { margin: 8px 3px 0; color: #67758b; font-size: 8px; line-height: 1.4; text-align: center; }
.course-footer {
  margin-top: 30px;
  padding: 35px 20px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(76,195,255,.14);
  color: var(--muted);
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: center;
}
.course-footer img { width: 170px; height: auto; object-fit: contain; }
.course-footer p {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-footer span { font-size: 11px; line-height: 1.5; }
.course-footer .footer-copyright {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.confirm-dialog { width: min(430px,calc(100vw - 30px)); padding: 0; border: 1px solid rgba(251,113,133,.28); border-radius: 16px; color: var(--text); background: #080e20; box-shadow: 0 28px 80px rgba(0,0,0,.7); }
.confirm-dialog::backdrop { background: rgba(1,5,15,.8); backdrop-filter: blur(6px); }
.confirm-content { padding: 23px; }
.confirm-content h2 { margin: 0 0 8px; font-family: Montserrat,Inter,sans-serif; font-size: 16px; }
.confirm-content p { margin: 0; color: #a8b4ca; font-size: 11px; line-height: 1.55; }
.confirm-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: grid; gap: 8px; }
.toast { max-width: 350px; padding: 11px 13px; border: 1px solid rgba(76,195,255,.28); border-radius: 10px; color: #dff6ff; background: #071126; box-shadow: 0 16px 45px rgba(0,0,0,.48); font-size: 10px; }
.toast.error { border-color: rgba(251,113,133,.3); color: #fecdd3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1250px) {
  .workspace-grid { grid-template-columns: minmax(300px,.8fr) minmax(430px,1.2fr); }
  .report-panel { grid-column: 1 / -1; height: 720px; }
  .report-content { min-height: 300px; }
}
@media (max-width: 980px) {
  .hero-main { grid-template-columns: minmax(0,1fr); }
  .hero-workflow { max-width: 590px; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero-workflow li { justify-content: center; }
}
@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .studio-panel, .report-panel { grid-column: auto; height: 720px; }
  .session-bar { align-items: stretch; flex-direction: column; }
  .session-actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .repair-shell { width: min(100% - 20px,1580px); padding-top: 10px; }
  .lab-hero { border-radius: 17px; }
  .course-topbar { min-height: 68px; padding: 9px 13px; }
  .course-brand-text { display: none; }
  .course-logo { width: 135px; height: 44px; }
  .model-badge { min-height: 34px; padding: 8px 10px; }
  .lab-header-actions { gap: 7px; }
  .return-lab-button { width: 38px; padding: 8px; }
  .return-lab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .model-name { display: none; }
  .hero-main { padding: 20px 18px 22px; }
  .hero-workflow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-workflow li { min-width: 0; justify-content: flex-start; }
  .session-actions .lab-button { flex: 1; }
  .welcome-strip { align-items: flex-start; }
  .studio-panel, .report-panel { height: 690px; }
  .severity-counts { grid-template-columns: repeat(2,1fr); }
  .course-footer { padding-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
