:root {
  --navy-950: #031023;
  --navy-900: #071a35;
  --navy-850: #0a2141;
  --navy-800: #0c294d;
  --blue: #09a7f5;
  --blue-2: #28c1ff;
  --cyan: #4ae1e8;
  --lime: #9bea45;
  --gold: #f8c748;
  --ink: #dff5ff;
  --muted: #8aa8c3;
  --panel: rgba(8, 30, 57, .86);
  --line: rgba(92, 177, 227, .18);
  --shadow: 0 28px 80px rgba(0, 7, 18, .44);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy-950); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 130, 255, .15), transparent 27rem),
    radial-gradient(circle at 89% 76%, rgba(0, 213, 255, .09), transparent 31rem),
    linear-gradient(145deg, #06162d 0%, #031022 56%, #05162d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 140, 198, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 140, 198, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(2px); opacity: .7; }
.ambient-one { width: 380px; height: 380px; left: -230px; top: 28%; border: 1px solid rgba(33, 183, 255, .1); box-shadow: 0 0 110px rgba(0, 151, 255, .08) inset; }
.ambient-two { width: 520px; height: 520px; right: -360px; top: 10%; border: 1px solid rgba(74, 225, 232, .08); }

.site-header {
  position: relative;
  z-index: 20;
  width: min(1360px, calc(100% - 44px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(121, 195, 239, .12);
}
.brand { color: white; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #0db5fa, #0875dc); box-shadow: 0 10px 28px rgba(5, 141, 234, .28), inset 0 1px rgba(255,255,255,.35); font: 800 16px/1 ui-monospace, monospace; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 20px; letter-spacing: 1px; }
.brand-copy small { margin-top: 5px; color: var(--blue-2); font-weight: 800; font-size: 9px; letter-spacing: 2.1px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.secure-chip { color: #9cb5ca; font-size: 12px; font-weight: 650; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(155, 234, 69, .75); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(13, 42, 76, .55); cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: rgba(51, 188, 255, .55); transform: translateY(-1px); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { position: relative; z-index: 2; width: min(1280px, calc(100% - 44px)); margin: 0 auto; }
.screen { display: none; min-height: calc(100vh - 88px); padding: 58px 0 72px; animation: screenIn .45s ease both; }
.screen.is-active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.welcome-screen { padding-top: clamp(50px, 9vh, 110px); }
.welcome-grid { display: grid; grid-template-columns: 1.1fr .75fr; align-items: center; gap: clamp(48px, 8vw, 120px); max-width: 1140px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-2); font-size: 11px; line-height: 1; letter-spacing: .17em; text-transform: uppercase; font-weight: 800; }
.eyebrow-icon { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(40,193,255,.35); border-radius: 6px; }
.welcome-copy h1 { max-width: 700px; margin: 22px 0 24px; color: #f4fbff; font-size: clamp(54px, 6.2vw, 86px); line-height: .98; letter-spacing: -.06em; font-weight: 770; }
.welcome-copy h1 span { color: var(--blue); }
.lead { max-width: 620px; margin: 0; color: #9bb6cc; font-size: 17px; line-height: 1.75; }
.feature-row { display: flex; align-items: center; gap: 0; margin-top: 42px; }
.feature-row div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: baseline; padding: 0 28px; border-left: 1px solid rgba(110, 181, 221, .17); }
.feature-row div:first-child { padding-left: 0; border: 0; }
.feature-row strong { color: white; font-size: 28px; line-height: 1; }
.feature-row span { color: #7595af; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.entry-card { position: relative; border: 1px solid rgba(73, 174, 230, .25); border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, rgba(12, 43, 78, .92), rgba(5, 22, 45, .96)); box-shadow: var(--shadow); }
.entry-card::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; right: -110px; bottom: -130px; background: rgba(0, 167, 255, .13); filter: blur(12px); pointer-events: none; }
.entry-card-top { height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(89, 176, 225, .12); color: #7899b3; font: 650 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
.terminal-mini, .window-dots { display: flex; gap: 6px; }
.terminal-mini i, .window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #fa6961; }
.terminal-mini i:nth-child(2), .window-dots i:nth-child(2) { background: #f4bd4f; }
.terminal-mini i:nth-child(3), .window-dots i:nth-child(3) { background: #52cf63; }
.entry-card-body { position: relative; z-index: 1; padding: 35px 34px 28px; }
.challenge-emblem { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid rgba(31, 187, 255, .35); border-radius: 17px; background: linear-gradient(145deg, rgba(0, 171, 255, .18), rgba(8, 49, 87, .25)); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.challenge-emblem svg { width: 32px; fill: none; stroke: var(--blue-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.entry-card h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.025em; }
.entry-card-body > p { color: #8eaac1; margin: 0 0 26px; font-size: 13px; line-height: 1.6; }
.entry-card label { display: block; margin-bottom: 9px; color: #a7bed0; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 15px; top: 50%; width: 17px; transform: translateY(-50%); fill: none; stroke: #6e91ad; stroke-width: 1.8; stroke-linecap: round; }
.input-wrap input { width: 100%; height: 51px; border: 1px solid rgba(91, 164, 207, .22); border-radius: 11px; outline: none; padding: 0 16px 0 43px; background: rgba(2, 14, 31, .52); color: white; caret-color: var(--blue-2); transition: .2s; }
.input-wrap input::placeholder { color: #52718b; }
.input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 167, 245, .1); }
.input-wrap input[aria-invalid="true"] { border-color: #ff6c6c; }
.field-error { min-height: 19px; margin: 6px 0 5px !important; color: #ff8b8b !important; font-size: 11px !important; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 11px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; font-size: 13px; font-weight: 780; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.primary-button { width: 100%; color: #001429; background: linear-gradient(135deg, #34ccff, #079cf0); box-shadow: 0 12px 28px rgba(0, 157, 239, .22); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(0, 157, 239, .3); }
.primary-button:active { transform: translateY(1px); }
.primary-button svg, .secondary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0 !important; color: #5f819b !important; font-size: 10px !important; }
.privacy-note svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.lab-screen { padding-top: 38px; }
.lab-topline { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.lab-topline h1 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; }
.session-metrics { display: flex; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 27, 52, .64); overflow: hidden; }
.session-metrics > div { min-width: 112px; padding: 11px 18px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.session-metrics > div:first-child { border: 0; }
.session-metrics span { color: #62839e; font-size: 8px; letter-spacing: .14em; font-weight: 800; }
.session-metrics strong { color: #e8f8ff; font: 750 16px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.session-metrics b { color: var(--lime); font-weight: inherit; }
.lab-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 640px; border: 1px solid rgba(77, 159, 207, .2); border-radius: 20px; overflow: hidden; background: rgba(4, 19, 39, .7); box-shadow: var(--shadow); }
.brief-panel { padding: 30px 27px; background: linear-gradient(180deg, rgba(10, 38, 72, .95), rgba(6, 27, 52, .9)); border-right: 1px solid rgba(77, 159, 207, .17); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-kicker { display: block; color: var(--blue-2); font-size: 9px; line-height: 1; text-transform: uppercase; letter-spacing: .16em; font-weight: 850; }
.panel-heading h2 { margin: 8px 0 0; font-size: 21px; letter-spacing: -.02em; }
.difficulty { flex: 0 0 auto; border: 1px solid rgba(155, 234, 69, .27); color: var(--lime); background: rgba(155, 234, 69, .06); padding: 6px 8px; border-radius: 6px; font-size: 8px; letter-spacing: .12em; font-weight: 850; }
.brief-copy { margin: 23px 0 26px; color: #89a5bc; font-size: 12px; line-height: 1.65; }
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.task-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 16px 14px; border: 1px solid rgba(83, 157, 199, .16); border-radius: 11px; background: rgba(2, 16, 34, .32); transition: .3s; }
.task-state { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(114, 174, 208, .28); border-radius: 50%; color: #7998af; font-size: 10px; font-weight: 800; }
.task-state svg { display: none; width: 14px; fill: none; stroke: #082111; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.task-list strong { display: block; margin: 1px 0 5px; color: #d7e9f4; font-size: 12px; }
.task-list p { margin: 0; color: #718fa7; font-size: 10px; line-height: 1.5; }
.task-list code, .result-header code { color: var(--cyan); font: 700 1em/1 ui-monospace, monospace; }
.task-list em { color: #5e809b; font: 700 9px/1.3 ui-monospace, monospace; font-style: normal; white-space: nowrap; }
.task-list li.is-complete { border-color: rgba(155, 234, 69, .25); background: rgba(75, 140, 43, .08); }
.task-list li.is-complete .task-state { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 18px rgba(155, 234, 69, .2); }
.task-list li.is-complete .task-state span { display: none; }
.task-list li.is-complete .task-state svg { display: block; }
.task-list li.is-complete em { color: var(--lime); }
.progress-block { margin-top: 27px; }
.progress-block > div:first-child { display: flex; justify-content: space-between; color: #7797af; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.progress-block strong { color: #9cb7cb; font-size: 9px; }
.progress-track { height: 5px; margin-top: 9px; border-radius: 99px; background: rgba(105, 159, 190, .16); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--lime)); box-shadow: 0 0 12px rgba(38, 192, 255, .4); transition: width .45s ease; }
.hint-box { margin-top: 24px; border-top: 1px solid rgba(84, 158, 201, .13); border-bottom: 1px solid rgba(84, 158, 201, .13); }
.hint-box summary { padding: 15px 2px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hint-box summary::-webkit-details-marker { display: none; }
.hint-box summary span { color: #a3bdd0; font-size: 11px; font-weight: 700; }
.hint-box summary small { color: #587891; font-size: 9px; }
.hint-box > div { padding: 0 2px 13px; color: #7997ae; font-size: 10px; line-height: 1.5; }
.hint-box p { margin: 5px 0; }
.hint-box code { color: var(--cyan); background: rgba(0,0,0,.2); padding: 2px 5px; border-radius: 4px; }
.text-button { border: 0; background: transparent; color: #6e8da5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; margin-top: 18px; cursor: pointer; font-size: 10px; font-weight: 700; }
.text-button:hover { color: var(--blue-2); }
.text-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.terminal-card { min-width: 0; display: flex; flex-direction: column; background: #020b17; }
.terminal-bar { flex: 0 0 48px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #0a1d34; border-bottom: 1px solid rgba(88, 160, 201, .14); }
.window-dots i { width: 9px; height: 9px; }
.terminal-title { color: #66849c; font: 600 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-status { justify-self: end; color: #53718a; display: flex; align-items: center; gap: 7px; font: 750 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.terminal-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(155, 234, 69, .65); }
.terminal-body { flex: 1 1 auto; min-height: 520px; max-height: 610px; padding: 28px 30px 20px; overflow-y: auto; color: #bbd5e8; font: 13px/1.72 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; scrollbar-width: thin; scrollbar-color: #1f4968 #06111e; }
.terminal-welcome { margin-bottom: 22px; color: #66879e; }
.terminal-welcome pre { margin: 0 0 6px; color: var(--blue); font-weight: 800; font-size: 10px; line-height: 1.15; }
.terminal-welcome p { margin: 0; color: #a8c8da; font-weight: 700; }
.terminal-welcome small { color: #56758d; }
.terminal-welcome b { color: var(--cyan); }
.output-entry { white-space: pre-wrap; overflow-wrap: anywhere; }
.output-command { margin-top: 9px; color: #dcecf5; }
.output-command .prompt-user, .terminal-input-line .prompt-user { color: var(--lime); }
.output-command .prompt-path, .terminal-input-line .prompt-path { color: var(--blue-2); }
.output-text { color: #7898b0; }
.output-text.success { color: var(--lime); }
.output-text.error { color: #ff8585; }
.output-text.info { color: var(--cyan); }
.terminal-input-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.terminal-input-line label { flex: 0 0 auto; }
.terminal-input-line input { min-width: 0; flex: 1 1 auto; padding: 0; border: 0; outline: 0; background: transparent; color: #effaff; caret-color: var(--lime); font: inherit; }
.terminal-footer { min-height: 48px; padding: 0 24px; display: flex; align-items: center; gap: 24px; border-top: 1px solid rgba(91, 162, 202, .12); color: #496982; font-size: 9px; }
kbd { min-width: 20px; margin-right: 4px; padding: 3px 5px; display: inline-block; color: #7695ab; text-align: center; border: 1px solid #1e405a; border-radius: 4px; background: #0a1a2b; box-shadow: inset 0 -1px rgba(255,255,255,.04); font: 700 8px/1 ui-monospace, monospace; }
.footer-safe { margin-left: auto; color: #50708a; display: flex; align-items: center; gap: 6px; }
.footer-safe svg { width: 14px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.result-screen { padding-top: 46px; }
.result-header { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.success-orbit { width: 72px; height: 72px; margin: 0 auto 21px; display: grid; place-items: center; border: 1px solid rgba(155, 234, 69, .18); border-radius: 50%; box-shadow: 0 0 0 9px rgba(155,234,69,.035), 0 0 45px rgba(155,234,69,.1); }
.success-orbit span { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #b5f565, #79cb2a); }
.success-orbit svg { width: 27px; fill: none; stroke: #0a2a15; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result-header h1 { margin: 14px 0 11px; font-size: clamp(32px, 4.3vw, 51px); letter-spacing: -.045em; }
.result-header h1 span { color: var(--blue-2); }
.result-header p { margin: 0 auto; max-width: 620px; color: #8da9c0; line-height: 1.65; font-size: 14px; }
.result-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: stretch; max-width: 1100px; margin: 0 auto; }
.score-card, .certificate-card { border: 1px solid rgba(77, 159, 207, .2); border-radius: 18px; background: linear-gradient(160deg, rgba(10, 39, 73, .88), rgba(5, 21, 43, .93)); box-shadow: var(--shadow); }
.score-card { padding: 27px 25px; text-align: center; }
.score-card > .panel-kicker { text-align: left; }
.score-ring { width: 156px; height: 156px; margin: 29px auto 19px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) calc(var(--score) * 1%), rgba(124, 176, 205, .13) 0); position: relative; box-shadow: 0 0 32px rgba(155, 234, 69, .08); }
.score-ring::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: #0a2241; box-shadow: inset 0 0 25px rgba(0,0,0,.35); }
.score-ring > div { position: relative; z-index: 1; display: grid; }
.score-ring strong { font-size: 48px; line-height: .9; letter-spacing: -.05em; color: white; }
.score-ring span { color: #6689a4; margin-top: 7px; font-size: 11px; }
.score-verdict > span { color: var(--lime); font-size: 9px; letter-spacing: .14em; font-weight: 850; }
.score-verdict p { margin: 6px 0 23px; color: #7795ac; font-size: 11px; }
.score-card dl { margin: 0; padding-top: 16px; border-top: 1px solid rgba(84, 157, 199, .13); }
.score-card dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 10px; }
.score-card dt { color: #6989a2; }
.score-card dd { margin: 0; color: #c7dce9; font-weight: 750; font-family: ui-monospace, monospace; }
.certificate-card { padding: 25px; }
.certificate-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.certificate-card-head h2 { margin: 7px 0 0; font-size: 20px; }
.pdf-chip { color: #ff8b8b; background: rgba(255, 91, 91, .09); border: 1px solid rgba(255, 91, 91, .22); border-radius: 6px; padding: 6px 8px; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.certificate-preview-wrap { position: relative; width: 100%; aspect-ratio: 1.414 / 1; overflow: hidden; border-radius: 9px; border: 1px solid rgba(123, 185, 218, .18); background: #f2eee3; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.certificate-preview-wrap canvas { width: 100%; height: 100%; display: block; }
.certificate-actions { display: grid; grid-template-columns: 1fr auto; gap: 11px; margin-top: 17px; }
.certificate-actions .primary-button { width: auto; }
.secondary-button { border: 1px solid rgba(81, 164, 212, .23); background: rgba(10, 44, 80, .7); color: #a9c5d7; }
.secondary-button:hover { border-color: rgba(40,193,255,.5); transform: translateY(-1px); }
.certificate-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: #587a94; font-size: 9px; margin: 15px 0 0; }
.certificate-note svg { width: 14px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.replay-button { display: flex; margin: 27px auto 0; font-size: 11px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 25px); min-width: 260px; max-width: calc(100% - 32px); padding: 13px 18px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(155, 234, 69, .24); border-radius: 11px; background: rgba(5, 29, 49, .96); box-shadow: 0 18px 55px rgba(0,0,0,.38); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 11px rgba(155,234,69,.6); }
.toast p { margin: 0; color: #bad2df; font-size: 11px; }

@media (max-width: 980px) {
  .welcome-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 45px; }
  .welcome-copy h1 { font-size: 56px; }
  .lab-layout { grid-template-columns: 290px minmax(0,1fr); }
  .brief-panel { padding: 25px 21px; }
}
@media (max-width: 780px) {
  .site-header, main { width: min(100% - 28px, 680px); }
  .site-header { height: 72px; }
  .secure-chip { display: none; }
  .screen { min-height: calc(100vh - 72px); padding-top: 36px; }
  .welcome-grid, .result-grid { grid-template-columns: 1fr; }
  .welcome-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .feature-row { justify-content: center; margin-top: 30px; }
  .entry-card { width: min(100%, 440px); margin: 0 auto; }
  .lab-topline { align-items: flex-start; gap: 18px; }
  .lab-layout { grid-template-columns: 1fr; }
  .brief-panel { border-right: 0; border-bottom: 1px solid rgba(77, 159, 207, .17); }
  .task-list { grid-template-columns: 1fr 1fr; }
  .terminal-body { min-height: 480px; max-height: 58vh; }
  .result-grid { max-width: 690px; }
  .score-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
  .score-card > .panel-kicker { grid-column: 1/-1; }
  .score-ring { margin: 24px auto 15px; }
  .score-verdict { text-align: center; }
  .score-card dl { grid-column: 1/-1; }
}
@media (max-width: 520px) {
  .brand-mark { width: 39px; height: 39px; border-radius: 10px; }
  .brand-copy strong { font-size: 18px; }
  .welcome-copy h1 { font-size: 47px; }
  .lead { font-size: 14px; }
  .feature-row div { padding: 0 14px; display: block; }
  .feature-row strong, .feature-row span { display: block; }
  .feature-row strong { font-size: 24px; }
  .feature-row span { margin-top: 5px; font-size: 8px; }
  .entry-card-body { padding: 29px 23px 23px; }
  .lab-topline { display: block; }
  .session-metrics { margin-top: 18px; width: 100%; }
  .session-metrics > div { min-width: 0; flex: 1; }
  .task-list { grid-template-columns: 1fr; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .terminal-title { display: none; }
  .terminal-body { padding: 22px 18px 17px; font-size: 12px; }
  .terminal-footer { gap: 13px; padding: 0 16px; }
  .terminal-footer span:nth-child(2) { display: none; }
  .score-card { display: block; text-align: center; }
  .score-card > .panel-kicker { text-align: left; }
  .certificate-card { padding: 16px; }
  .certificate-actions { grid-template-columns: 1fr; }
  .certificate-actions .primary-button { width: 100%; }
  .secondary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Challenge 02: denser investigation brief and extended terminal. */
.rca-layout { min-height: 790px; }
.rca-layout .brief-panel { padding-block: 27px; }
.rca-layout .task-list { gap: 9px; }
.rca-layout .task-list li { padding: 12px; }
.rca-layout .brief-copy { margin: 18px 0 20px; }
.rca-layout .progress-block { margin-top: 20px; }
.rca-layout .hint-box { margin-top: 18px; }
.rca-layout .terminal-body { min-height: 670px; max-height: 760px; }
.incident-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 7px 10px; border: 1px solid rgba(248, 199, 72, .25); border-radius: 7px; color: var(--gold); background: rgba(248, 199, 72, .06); font: 750 9px/1 ui-monospace, monospace; letter-spacing: .08em; }
.incident-chip::before { content: "!"; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: #281b00; background: var(--gold); font-weight: 900; }
.output-text.warning { color: var(--gold); }

@media (max-width: 780px) {
  .rca-layout .terminal-body { min-height: 520px; max-height: 66vh; }
}

/* AWS Cloud Challenge accent system */
:root {
  --blue: #ff9900;
  --blue-2: #ffb84d;
  --cyan: #7dd3fc;
  --gold: #ffb84d;
}
.brand-mark { background: linear-gradient(145deg, #ffb84d, #e87900); box-shadow: 0 10px 28px rgba(255, 153, 0, .25), inset 0 1px rgba(255,255,255,.35); }
.primary-button { color: #211000; background: linear-gradient(135deg, #ffc261, #ff9900); box-shadow: 0 12px 28px rgba(255, 153, 0, .2); }
.primary-button:hover { box-shadow: 0 16px 32px rgba(255, 153, 0, .3); }
.entry-card::after { background: rgba(255, 153, 0, .11); }
.challenge-emblem { border-color: rgba(255, 184, 77, .35); background: linear-gradient(145deg, rgba(255, 153, 0, .16), rgba(8, 49, 87, .25)); }
.input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 153, 0, .1); }

/* Console-inspired GUI — neutral cloud branding, no vendor logos. */
.lab-screen { padding-top: 28px; }
.lab-screen .lab-topline { margin-bottom: 20px; }
.cloud-console {
  overflow: hidden;
  color: #182230;
  border: 1px solid rgba(119, 166, 201, .3);
  border-radius: 15px;
  background: #f2f4f6;
  box-shadow: 0 30px 80px rgba(0, 5, 15, .5);
}
.console-toolbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 0;
  color: #f7f9fb;
  background: #111a27;
  border-bottom: 3px solid #ff9900;
}
.console-product { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-right: 1px solid #344152; white-space: nowrap; }
.console-product strong { font-size: 14px; letter-spacing: -.01em; }
.console-cloud-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #596779; border-radius: 6px; color: #ffb84d; background: #202c3b; }
.console-cloud-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.services-menu { height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 17px; border: 0; border-right: 1px solid #344152; background: transparent; color: #f3f6f8; font-size: 12px; font-weight: 750; cursor: pointer; }
.services-menu:hover { background: #243142; }
.services-menu span { color: #ffb84d; font-size: 18px; }
.console-search { height: 34px; max-width: 570px; margin: 0 24px; padding: 0 11px; display: flex; align-items: center; gap: 9px; border: 1px solid #627083; border-radius: 3px; background: #fff; color: #697586; font-size: 11px; }
.console-search svg { width: 16px; flex: 0 0 auto; fill: none; stroke: #405269; stroke-width: 2; }
.console-search span { flex: 1; }
.console-search kbd { margin: 0; color: #556476; background: #eef1f4; border-color: #d2d8df; }
.console-context { height: 58px; display: flex; align-items: center; }
.console-context span { height: 58px; display: flex; align-items: center; padding: 0 15px; border-left: 1px solid #344152; font-size: 10px; font-weight: 700; white-space: nowrap; }
.console-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 735px; }
.console-sidebar { display: flex; flex-direction: column; border-right: 1px solid #d5d9df; background: #fff; }
.case-summary { padding: 19px 17px 17px; display: grid; border-bottom: 1px solid #e2e5e9; }
.case-summary .panel-kicker { color: #687789; }
.case-summary > strong { margin-top: 7px; color: #182230; font: 800 15px/1.2 ui-monospace, monospace; }
.case-summary > small { margin-top: 5px; color: #718094; font-size: 9px; }
.case-status { margin-top: 12px; display: flex; align-items: center; gap: 7px; color: #8b5b00; font-size: 9px; font-weight: 750; }
.case-status i { width: 7px; height: 7px; border-radius: 50%; background: #ff9900; box-shadow: 0 0 0 3px rgba(255,153,0,.13); }
.console-nav { padding: 9px 0; border-bottom: 1px solid #e2e5e9; }
.console-nav button { position: relative; width: 100%; min-height: 50px; padding: 8px 12px 8px 14px; display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; border: 0; border-left: 3px solid transparent; background: transparent; color: #364558; text-align: left; cursor: pointer; }
.console-nav button:hover { background: #f2f4f6; }
.console-nav button.is-active { border-left-color: #ff9900; background: #eef1f3; color: #161e29; }
.console-nav button.is-active::after { content: ""; position: absolute; right: 11px; width: 6px; height: 6px; border-top: 1.5px solid #637184; border-right: 1.5px solid #637184; transform: rotate(45deg); }
.console-nav button > span:nth-child(2) { min-width: 0; display: grid; }
.console-nav button strong { font-size: 10px; line-height: 1.2; }
.console-nav button small { margin-top: 3px; color: #8490a0; font-size: 8px; }
.service-icon { width: 29px; height: 29px; display: grid !important; place-items: center; border-radius: 5px; color: #fff; font: 850 9px/1 ui-monospace, monospace; box-shadow: inset 0 1px rgba(255,255,255,.22); }
.trail-icon { background: #5a3fa3; }
.sns-icon { background: #b23a83; }
.logs-icon { background: #477f2e; }
.alarm-icon { background: #ba5523; }
.mail-icon { background: #2e708e; }
.finding-icon { background: #4e6074; }
.mail-count { min-width: 18px; height: 18px; padding: 0 5px; display: none; place-items: center; border-radius: 99px; color: #fff; background: #c83232; font-size: 8px; }
.mail-count.has-mail { display: grid; }
.objective-compact { margin-top: auto; padding: 16px 14px 18px; background: #fafbfc; }
.objective-heading { display: flex; justify-content: space-between; color: #607083; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.objective-heading strong { color: #344357; font-size: 8px; }
.objective-compact .progress-track { margin-top: 8px; background: #dce2e7; }
.objective-compact .progress-track span { background: linear-gradient(90deg, #ff9900, #4f9f35); box-shadow: none; }
.objective-compact .task-list { margin-top: 12px; gap: 5px; }
.objective-compact .task-list li { min-height: 34px; grid-template-columns: 22px 1fr; gap: 8px; padding: 5px 3px; border: 0; background: transparent; }
.objective-compact .task-state { width: 21px; height: 21px; color: #718093; border-color: #bbc4cd; font-size: 8px; }
.objective-compact .task-list strong { margin: 0; color: #38475a; font-size: 9px; }
.objective-compact .task-list p { margin-top: 2px; color: #8793a1; font-size: 8px; }
.objective-compact .task-list li.is-complete { background: transparent; }
.objective-compact .task-list li.is-complete .task-state { background: #5b9d38; border-color: #5b9d38; box-shadow: none; }
.console-workspace { min-width: 0; padding: 24px 27px 32px; background: #f4f5f6; }
.console-page { display: none; animation: consolePageIn .18s ease both; }
.console-page.is-active { display: block; }
@keyframes consolePageIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.service-breadcrumb { margin-bottom: 13px; color: #596b80; font-size: 10px; }
.service-breadcrumb span { margin: 0 6px; color: #9aa4af; }
.service-title-row { min-height: 54px; margin-bottom: 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.service-title-row h2 { margin: 0 0 5px; color: #172132; font-size: 25px; letter-spacing: -.035em; }
.service-title-row p { margin: 0; color: #667588; font-size: 11px; }
.simulation-badge { padding: 6px 8px; border: 1px solid #c9d1d9; border-radius: 3px; color: #68778a; background: #fff; font: 800 8px/1 ui-monospace, monospace; letter-spacing: .08em; }
.info-callout { margin-bottom: 15px; padding: 13px 15px; border: 1px solid #aabfd2; border-left: 4px solid #3079a6; background: #f2f8fc; }
.info-callout strong { color: #27384c; font-size: 11px; }
.info-callout p { margin: 5px 0 0; color: #56687c; font-size: 10px; line-height: 1.55; }
.info-callout code { color: #355d76; font: 700 1em ui-monospace, monospace; }
.console-card { margin-bottom: 16px; border: 1px solid #d5d9df; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(28, 43, 58, .06); }
.filter-card { padding: 16px; }
.card-heading { min-height: 39px; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.card-heading h3, .form-section h3 { margin: 0 0 4px; color: #273547; font-size: 13px; }
.card-heading p, .form-section p { margin: 0; color: #7b8795; font-size: 9px; }
.form-grid { display: grid; gap: 15px; }
.trail-filter-grid { margin-top: 14px; grid-template-columns: 1fr 1.4fr auto; align-items: end; }
.two-column-form { grid-template-columns: 1fr 1fr; }
.three-column-form { grid-template-columns: 1fr 1fr .55fr; }
.test-grid { grid-template-columns: 1fr .55fr auto; align-items: end; }
.form-grid label { min-width: 0; display: grid; gap: 6px; color: #344357; font-size: 9px; font-weight: 750; }
.form-grid label > span { display: flex; align-items: center; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 35px; border: 1px solid #929eaa; border-radius: 3px; outline: none; padding: 7px 9px; color: #172231; background: #fff; font: inherit; font-size: 11px; font-weight: 500; line-height: 1.4; }
.form-grid textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #31769f; box-shadow: 0 0 0 2px rgba(49,118,159,.13); }
.form-grid input:disabled, .form-grid select:disabled { color: #7a8795; background: #eef1f3; }
.form-grid label small { color: #7a8796; font-weight: 500; font-size: 8px; }
.full-field { grid-column: 1 / -1; }
.console-primary, .console-secondary, .console-danger { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding: 0 14px; font-size: 10px; font-weight: 800; cursor: pointer; transition: .15s; }
.console-primary { color: #1c1b18; border: 1px solid #cb7c00; background: linear-gradient(#ffb84d, #ff9900); box-shadow: inset 0 1px rgba(255,255,255,.45); }
.console-primary:hover { background: #f59a0a; box-shadow: 0 1px 4px rgba(94,57,0,.22); }
.console-primary:disabled, .console-danger:disabled { opacity: .45; cursor: not-allowed; }
.console-secondary { color: #26384b; border: 1px solid #8d99a5; background: linear-gradient(#fff,#edf0f2); }
.console-danger { color: #fff; border: 1px solid #9d2e2e; background: linear-gradient(#d64a4a,#b93333); }
.console-danger:hover { background: #ad2e2e; }
.form-actions { margin-top: 17px; padding-top: 13px; display: flex; justify-content: flex-end; border-top: 1px solid #e4e7ea; }
.event-card { overflow: hidden; }
.event-card .card-heading { padding: 14px 16px 10px; }
.result-pill { align-self: center; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 800; }
.result-pill.danger { color: #a32727; background: #fceaea; border: 1px solid #e6b6b6; }
.table-scroll { overflow-x: auto; }
.console-table { width: 100%; border-collapse: collapse; color: #344357; font-size: 9px; }
.console-table th { padding: 9px 12px; color: #596a7d; background: #f2f3f5; border-top: 1px solid #dfe3e7; border-bottom: 1px solid #d5d9de; text-align: left; font-weight: 800; white-space: nowrap; }
.console-table td { padding: 9px 12px; border-bottom: 1px solid #e7e9ec; white-space: nowrap; }
.console-table tr:hover td { background: #f7f9fb; }
.console-table .success-row td { background: #fff9ec; }
.table-link { border: 0; padding: 0; color: #236d9b; background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.status-label { display: inline-flex; padding: 3px 6px; border-radius: 2px; font-size: 8px; font-weight: 800; }
.status-label.failed { color: #a42d2d; background: #fceaea; }
.status-label.success { color: #2d6a28; background: #e9f5e8; }
.finding-callout { padding: 12px 15px; display: grid; grid-template-columns: 27px 1fr auto; gap: 11px; align-items: center; color: #5e4200; background: #fff7df; border-top: 1px solid #efd493; }
.finding-callout > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d78700; font-weight: 900; }
.finding-callout strong { font-size: 10px; }
.finding-callout p { margin: 3px 0 0; font-size: 9px; }
.console-card > .step-heading, .console-card > .form-grid, .console-card > .form-section, .console-card > .condition-preview, .console-card > .form-actions { margin-left: 17px; margin-right: 17px; }
.console-card > .step-heading { padding-top: 16px; }
.console-card > .form-grid { margin-top: 16px; }
.console-card > .form-actions { margin-bottom: 15px; }
.step-heading { display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; align-items: center; }
.step-heading > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4e6074; font-size: 10px; font-weight: 850; }
.step-heading h3 { margin: 0; color: #263547; font-size: 12px; }
.step-heading p { margin: 4px 0 0; color: #798696; font-size: 9px; }
.step-heading > b { color: #8a96a3; font-size: 8px; text-transform: uppercase; }
.step-heading > b.ready { color: #34732f; }
.gated-card.is-gated { opacity: .58; }
.form-section { padding-top: 17px; }
.form-section.divided { margin-top: 18px; padding-top: 15px; border-top: 1px solid #e4e7ea; }
.condition-preview { margin-top: 17px; padding: 11px 12px; color: #526277; background: #f4f6f7; border: 1px solid #dce1e5; font-size: 9px; }
.alarm-state { padding: 7px 9px; border-radius: 3px; font: 800 8px/1 ui-monospace, monospace; }
.alarm-state.insufficient { color: #687586; background: #eceff1; border: 1px solid #cfd5da; }
.alarm-state.ok { color: #2d6b2b; background: #e9f5e7; border: 1px solid #b9dab5; }
.alarm-state.alarm { color: #fff; background: #bd3232; border: 1px solid #9e2222; box-shadow: 0 0 0 3px rgba(189,50,50,.12); }
.test-card { padding-bottom: 16px; }
.test-card .test-grid { margin-top: 15px; }
.page-notice { margin-top: 15px; padding: 11px 13px; border: 1px solid #a7bdcf; border-left: 4px solid #327aa4; color: #344c60; background: #f1f8fc; font-size: 10px; line-height: 1.5; }
.page-notice.success { border-color: #a9cba5; border-left-color: #4e8f41; color: #2e5c2a; background: #f0f8ef; }
.page-notice.error { border-color: #deb0b0; border-left-color: #c53b3b; color: #812929; background: #fdf0f0; }
.empty-state { min-height: 350px; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; border: 1px dashed #bdc6ce; border-radius: 4px; color: #708093; background: #fff; }
.empty-mail-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; color: #5f7185; background: #edf1f4; font-size: 25px; }
.empty-state h3 { margin: 0; color: #344356; font-size: 15px; }
.empty-state p { margin: 7px 0 17px; font-size: 10px; }
.mail-message { overflow: hidden; margin-bottom: 15px; border: 1px solid #d4d9de; border-radius: 4px; background: #fff; box-shadow: 0 2px 5px rgba(32,47,62,.06); }
.mail-message > header { min-height: 55px; padding: 10px 14px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid #e0e4e8; }
.sender-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #b23a83; font-weight: 850; }
.sender-mark.danger { background: #bd3636; }
.mail-message header div { display: grid; }
.mail-message header strong { color: #2e3c4d; font-size: 10px; }
.mail-message header small, .mail-message header time { color: #83909e; font-size: 8px; }
.mail-subject { min-height: 44px; padding: 0 17px; display: flex; align-items: center; gap: 9px; background: #f7f8f9; }
.mail-subject h3 { margin: 0; color: #263547; font-size: 13px; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: #297aa8; }
.unread-dot.danger { background: #c83838; }
.mail-content { padding: 18px; color: #506174; font-size: 10px; line-height: 1.6; }
.mail-content p { margin: 0 0 13px; }
.mail-content code { display: block; margin-bottom: 14px; padding: 9px; overflow-wrap: anywhere; color: #334d63; background: #f0f3f5; border: 1px solid #d8dde2; font-size: 9px; }
.mail-content .console-primary { margin-right: 10px; }
.mail-content > small { color: #8a96a3; font-size: 8px; }
.email-alarm-banner { margin: -18px -18px 16px; padding: 11px 18px; color: #812626; background: #fbeaea; border-bottom: 1px solid #e3b6b6; }
.email-details { margin: 0 0 15px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #dce1e5; }
.email-details div { padding: 9px 11px; border-bottom: 1px solid #e4e7ea; }
.email-details div:nth-child(odd) { border-right: 1px solid #e4e7ea; }
.email-details dt { color: #7a8795; font-size: 8px; text-transform: uppercase; }
.email-details dd { margin: 3px 0 0; color: #2f3f51; font-weight: 750; }
.submission-readiness { margin: 18px 17px 0; padding: 13px 15px; color: #5f6e80; background: #f5f6f7; border: 1px solid #dce1e5; }
.submission-readiness strong { color: #354559; font-size: 10px; }
.submission-readiness ul { margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; list-style: none; font-size: 9px; }
.submission-readiness li::before { content: "○"; margin-right: 7px; color: #909ba7; }
.submission-readiness li.is-ready { color: #34702f; }
.submission-readiness li.is-ready::before { content: "✓"; color: #4d903f; font-weight: 900; }
.console-footer { min-height: 39px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: #617084; background: #e7eaed; border-top: 1px solid #cdd3d9; font-size: 8px; }
.console-footer span { display: flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.console-footer i { width: 7px; height: 7px; border-radius: 50%; background: #4f993f; }
.console-link { padding: 7px; border: 0; color: #4c6076; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.console-link:hover { color: #9c5900; }
.cli-drawer { margin-top: 18px; border: 1px solid rgba(85, 154, 198, .25); border-radius: 11px; overflow: hidden; background: rgba(6,24,46,.8); box-shadow: 0 18px 45px rgba(0,5,15,.25); }
.cli-drawer > summary { min-height: 49px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.cli-drawer > summary::-webkit-details-marker { display: none; }
.cli-drawer > summary span { color: #bdd2df; font-size: 11px; font-weight: 750; }
.cli-drawer > summary b { margin-right: 9px; color: #ffb84d; font: 800 12px ui-monospace, monospace; }
.cli-drawer > summary small { color: #67869d; font-size: 9px; }
.cli-drawer .terminal-card { border-top: 1px solid rgba(85,154,198,.2); }
.cli-drawer .terminal-body { min-height: 320px; max-height: 480px; }
[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .console-toolbar { grid-template-columns: auto auto 1fr; }
  .console-context { display: none; }
  .console-body { grid-template-columns: 210px minmax(0,1fr); }
  .console-workspace { padding: 21px; }
}
@media (max-width: 780px) {
  .lab-screen .lab-topline { display: flex; }
  .console-toolbar { grid-template-columns: auto 1fr; }
  .services-menu { display: none; }
  .console-search { margin: 0 12px; }
  .console-body { display: block; min-height: 0; }
  .console-sidebar { border-right: 0; }
  .case-summary { display: none; }
  .console-nav { overflow-x: auto; padding: 0; display: flex; border-bottom: 1px solid #d5d9df; scrollbar-width: thin; }
  .console-nav button { flex: 0 0 132px; min-height: 63px; padding: 8px 9px; grid-template-columns: 28px 1fr; border-left: 0; border-bottom: 3px solid transparent; }
  .console-nav button.is-active { border-left-color: transparent; border-bottom-color: #ff9900; }
  .console-nav button.is-active::after, .console-nav button small, .mail-count { display: none !important; }
  .service-icon { width: 27px; height: 27px; }
  .objective-compact { padding: 10px 13px; }
  .objective-compact .task-list { display: none; }
  .objective-compact .progress-track { margin-bottom: 1px; }
  .console-workspace { padding: 18px 15px 23px; }
  .console-body { min-height: 640px; }
  .three-column-form { grid-template-columns: 1fr 1fr; }
  .three-column-form label:last-child { grid-column: 1/-1; }
}
@media (max-width: 560px) {
  .lab-screen .lab-topline { display: block; }
  .console-product { padding: 0 12px; }
  .console-product strong { display: none; }
  .console-search { max-width: none; }
  .console-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .console-search kbd { display: none; }
  .console-workspace { padding: 16px 11px 21px; }
  .service-title-row { display: block; }
  .simulation-badge, .alarm-state { display: inline-flex; margin-top: 10px; }
  .trail-filter-grid, .two-column-form, .three-column-form, .test-grid { grid-template-columns: 1fr; }
  .three-column-form label:last-child, .full-field { grid-column: auto; }
  .trail-filter-grid .console-primary, .test-grid .console-danger { width: 100%; }
  .finding-callout { grid-template-columns: 26px 1fr; }
  .finding-callout .console-primary { grid-column: 1/-1; width: 100%; }
  .email-details, .submission-readiness ul { grid-template-columns: 1fr; }
  .email-details div:nth-child(odd) { border-right: 0; }
  .cli-drawer > summary small { display: none; }
}

/* ===== Horizontal-overflow safety (site update 2026-08) ===== */
html, body { max-width: 100%; overflow-x: hidden; }
.welcome-grid > * { min-width: 0; }
.welcome-copy h1 { overflow-wrap: anywhere; }
.welcome-copy p, .lead, .feature-row, .entry-card h2, .entry-card-body p { overflow-wrap: anywhere; }
@media (min-width: 781px) and (max-width: 980px) {
  .welcome-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(24px, 5vw, 45px); }
}
