:root { --ink: #20343a; --muted: #63767b; --teal: #155c62; --teal-dark: #0f464b; --line: #ccdcd8; --soft: #e7f1ed; --paper: #f7f6f2; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; }
button, select { font: inherit; }
button, select, summary { touch-action: manipulation; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #d5a145; outline-offset: 3px; }
[hidden] { display: none !important; }
.workshop { max-width: 1220px; padding: 28px; }
.intro { margin-bottom: 26px; }
.intro-icon { flex: 0 0 48px; width: 48px; height: 56px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.intro-icon svg { width: 28px; height: 28px; color: var(--teal); }
.eyebrow { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin: 0 0 7px; }
h1 { font-size: clamp(22px, 3.5vw, 31px); line-height: 1.22; letter-spacing: -.035em; font-weight: 750; margin: 0 0 11px; }
.intro-copy { max-width: 800px; font-size: 14px; color: var(--muted); margin: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 25px; min-width: 0; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; }
.section-title h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 750; letter-spacing: -.025em; }
.step-number { color: var(--teal); font-size: 11px; font-weight: 750; background: var(--soft); border-radius: 7px; min-width: 27px; height: 27px; display: grid; place-items: center; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.form-select { font-size: 14px; color: var(--ink); min-height: 46px; border-color: var(--line); border-radius: 9px; }
.form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #155c621a; }
.field-help { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 23px 0; }
.btn { min-height: 46px; font-size: 13px; font-weight: 650; border-radius: 9px; padding: 10px 15px; display: inline-flex; gap: 9px; justify-content: center; align-items: center; line-height: 1.4; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-color: #fff; --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-dark); --bs-btn-hover-border-color: var(--teal-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: #0c3b40; --bs-btn-active-border-color: #0c3b40; --bs-btn-disabled-bg: #668f92; --bs-btn-disabled-border-color: #668f92; }
.btn-outline-secondary { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--soft); --bs-btn-hover-color: var(--teal); --bs-btn-hover-border-color: var(--teal); --bs-btn-active-bg: var(--soft); --bs-btn-active-color: var(--teal); --bs-btn-disabled-color: var(--muted); --bs-btn-disabled-border-color: var(--line); }
.settling-note { font-size: 12px; color: #826023; background: #fff8e8; border-radius: 7px; padding: 9px 11px; }
.control-feedback { font-size: 12px; line-height: 1.65; color: var(--muted); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin: -8px 0 15px; background: #f7f9f6; }
.control-feedback[data-state="active"] { background: #edf7f0; color: #256344; border-color: #b4d9c4; }
.control-feedback[data-state="error"] { background: #fff4ee; color: #925336; border-color: #e7c6b4; }
.control-feedback[data-state="pending"] { background: #fff9eb; color: #826023; border-color: #e8d7ae; }
.capabilities { margin: 21px 0 18px; border-top: 1px solid var(--line); padding-top: 13px; font-size: 12px; }
.capabilities > div { display: flex; justify-content: space-between; gap: 14px; margin: 7px 0; }
dt { font-weight: 500; color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.capabilities dd { text-align: right; }
.notice { background: #f2f6f3; border-left: 3px solid #8bbdb3; padding: 12px 14px; font-size: 12px; line-height: 1.75; color: #4f666a; border-radius: 0 8px 8px 0; }
.notice strong { color: var(--ink); }
.status-box { display: flex; gap: 12px; border-radius: 11px; padding: 15px; border: 1px solid var(--line); background: #f4f6f4; margin-bottom: 16px; }
.status-box strong { font-size: 14px; font-weight: 750; }
.status-box p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; color: #526a6f; }
.status-dot { flex: 0 0 9px; height: 9px; border-radius: 50%; margin-top: 7px; background: #8d9c9b; }
.status-box[data-state="active"] { background: #edf7f0; border-color: #b4d9c4; }
.status-box[data-state="active"] .status-dot { background: #268052; }
.status-box[data-state="pending"] { background: #fff9eb; border-color: #e8d7ae; }
.status-box[data-state="pending"] .status-dot { background: #ad812c; }
.status-box[data-state="error"] { background: #fff4ee; border-color: #e7c6b4; }
.status-box[data-state="error"] .status-dot { background: #b66441; }
.runtime-stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; padding: 0 0 18px; margin: 0 0 17px; border-bottom: 1px solid var(--line); }
.runtime-stats dt { font-size: 10px; margin-bottom: 4px; }
.runtime-stats dd { font-size: 12px; line-height: 1.5; }
.time-value, .large-time { font-variant-numeric: tabular-nums; }
.scenario-label { font-size: 12px; font-weight: 650; margin: 0 0 9px; }
.scenario-switch { display: flex; gap: 6px; margin-bottom: 12px; }
.scenario-switch button { min-height: 44px; border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 7px; padding: 8px 13px; font-size: 12px; font-weight: 600; }
.scenario-switch button[aria-pressed="true"] { background: var(--soft); border-color: var(--teal); color: var(--teal); }
.scenario-switch button:hover { background: #f2f7f5; color: var(--teal); }
.screen-preview { background: #18393e; color: #f3f5f1; border: 1px solid #244b50; border-radius: 12px; padding: 20px; min-height: 225px; }
.screen-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; color: #c3d4ce; letter-spacing: .02em; margin-bottom: 19px; }
.screen-pill { border: 1px solid #5a7c79; border-radius: 20px; padding: 2px 9px; font-size: 9px; white-space: nowrap; }
.screen-preview h3 { font-size: 19px; font-weight: 650; line-height: 1.3; margin: 0 0 10px; }
.screen-preview p { color: #bcd1cc; font-size: 12px; line-height: 1.75; margin: 0; }
.instruction-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; color: #f3cf86; }
.instruction-bottom > span { letter-spacing: 5px; font-size: 10px; }
.instruction-bottom button { background: #2c565b; border: 1px solid #52797a; color: #fff; font-size: 11px; min-height: 44px; border-radius: 7px; padding: 6px 10px; }
.instruction-bottom button:hover { background: #39686d; }
.timer-preview .large-time { font-size: 42px; line-height: 1.3; font-weight: 650; letter-spacing: -.04em; color: #f2d69f; margin: 0 0 14px; }
.panel-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.panel-metrics > div { border: 1px solid #446864; padding: 8px 12px; border-radius: 7px; }
.panel-metrics strong { display: block; font-size: 25px; color: #f0d59e; }
.panel-metrics span { display: block; font-size: 10px; color: #bcd1cc; }
.log-section { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 12px; font-weight: 700; padding: 11px 0; min-height: 44px; }
.log-section summary span { display: inline-block; background: var(--soft); border-radius: 10px; margin-left: 5px; min-width: 20px; text-align: center; font-size: 10px; }
#event-log { list-style: none; padding: 0; margin: 8px 0 0; }
#event-log li { border-top: 1px solid #edf1ed; padding: 8px 0; font-size: 11px; line-height: 1.65; color: var(--muted); }
#event-log time { color: var(--teal); margin-right: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-section { margin-top: 20px; }
.check-section .section-title { margin-bottom: 17px; }
.check-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.check-steps strong { font-size: 12px; }
.check-steps p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 6px 0 0; }
.battery-note { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; }
.battery-note svg { width: 21px; height: 21px; color: var(--teal); }
.code-section { margin-top: 20px; padding-top: 13px; padding-bottom: 13px; }
.code-section > summary { font-size: 13px; }
.code-section > p { font-size: 12px; color: var(--muted); margin: 12px 0; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-size: 11px; color: var(--muted); }
.code-heading button { border: 1px solid var(--line); border-radius: 7px; min-height: 44px; padding: 6px 10px; color: var(--teal); background: #fff; font-size: 11px; font-weight: 650; }
.code-heading button:hover { background: var(--soft); }
pre { background: #163238; color: #d5e8df; border-radius: 10px; padding: 17px; font-size: 11px; line-height: 1.7; overflow-x: auto; margin: 0; max-width: 100%; }
@media (max-width: 760px) {
  .workshop { padding: 20px; }
  .workspace { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 20px; border-radius: 13px; }
  .check-steps { grid-template-columns: 1fr; gap: 14px; }
  .check-section, .code-section { margin-top: 16px; }
}
@media (max-width: 400px) {
  .workshop { padding: 15px; }
  .intro { gap: 10px !important; }
  .intro-icon { flex-basis: 36px; width: 36px; height: 45px; border-radius: 10px; }
  .intro-icon svg { width: 23px; height: 23px; }
  .eyebrow { font-size: 9px; letter-spacing: .06em; }
  .panel { padding: 16px; }
  .section-title h2 { font-size: 16px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .runtime-stats { grid-template-columns: 1fr 1fr; }
  .runtime-stats > div:first-child { grid-column: 1 / -1; }
  .scenario-switch { gap: 4px; }
  .scenario-switch button { flex: 1 1 0; padding: 7px; font-size: 11px; }
  .screen-preview { padding: 16px; }
  .screen-preview h3 { font-size: 17px; }
  .instruction-bottom { gap: 6px; }
  .instruction-bottom > span { letter-spacing: 3px; }
  .code-heading { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
