/* SYUBEA coding center - WIZWING EDU app trial */

:root {
  --wze-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --wze-navy: #193559;
  --wze-blue: #1284C5;
  --wze-block-blue: #1E7FC0;
  --wze-block-navy: #0B4F7A;
  --wze-olive: #B5B448;
  --wze-gold: #E6BB36;
  --wze-rose: #9F374F;
  --wze-lavender: #D7E3F7;
  --wze-surface: #F3EDF7;
  --wze-ink: #12262E;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body.wze-play {
  font-family: var(--wze-font);
  background: #0B2B27;
  color: var(--wze-ink);
  overflow: hidden;
}

[hidden] { display: none !important; }

.wze-topbar {
  position: relative;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: #0B2B27;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.wze-topbar-left,
.wze-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wze-topbar-left { flex: 1 1 auto; }

.wze-back {
  color: #52E0C8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.wze-back:hover { color: #8FE8DA; }

.wze-brand-logo {
  display: block;
  width: auto;
  height: 30px;
  padding: 3px 6px;
  background: #fff;
  border-radius: 7px;
  object-fit: contain;
  flex: none;
}

.wze-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wze-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(82, 224, 200, .14);
  border: 1px solid rgba(82, 224, 200, .38);
  color: #52E0C8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
  flex: none;
}

.wze-member {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
}

.wze-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}

.wze-btn:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
}

.wze-btn:active { transform: translateY(1px); }

.wze-btn:focus-visible {
  outline: 2px solid #52E0C8;
  outline-offset: 2px;
}

.wze-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, .72);
}

.wze-btn-ghost:hover {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.wze-btn-login {
  border-color: rgba(82, 224, 200, .45);
  background: rgba(82, 224, 200, .12);
  color: #52E0C8;
}

.wze-btn-login:hover {
  border-color: rgba(82, 224, 200, .8);
  background: rgba(82, 224, 200, .2);
  color: #fff;
}

#wze-sim-toggle[aria-expanded="true"] {
  border-color: rgba(82, 224, 200, .55);
  background: rgba(82, 224, 200, .14);
  color: #52E0C8;
}

#wze-sim-toggle[aria-expanded="true"]:hover {
  border-color: rgba(82, 224, 200, .85);
  background: rgba(82, 224, 200, .22);
  color: #fff;
}

#wze-shell {
  position: relative;
  height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  background: var(--wze-lavender);
  overflow: hidden;
}

#wze-app {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

#wze-palette {
  flex: 0 0 280px;
  width: 280px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--wze-lavender);
  border-right: 1px solid rgba(25, 53, 89, .18);
}

.wze-tabs {
  flex: none;
  height: 48px;
  display: flex;
  background: var(--wze-surface);
  border-bottom: 1px solid rgba(25, 53, 89, .16);
}

.wze-tab {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: var(--wze-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.wze-tab.active {
  background: var(--wze-blue);
  color: #fff;
}

.wze-palette-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.wze-palette-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

#wze-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--wze-lavender);
}

#wze-function-bar {
  flex: none;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--wze-lavender);
  border-bottom: 1px solid rgba(25, 53, 89, .12);
}

.wze-fn {
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(25, 53, 89, .22);
  border-radius: 7px;
  background: var(--wze-surface);
  color: var(--wze-navy);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.wze-fn:hover { background: #fff; }

.wze-fn-danger {
  background: #B00020;
  border-color: #B00020;
  color: #fff;
}

.wze-fn-danger:hover { background: #9A001C; }

.wze-fn-run {
  margin-left: auto;
  min-width: 76px;
  background: var(--wze-blue);
  border-color: var(--wze-blue);
  color: #fff;
}

.wze-fn-run:hover { background: #0E73AE; }

#wze-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--wze-surface);
}

#wze-canvas {
  position: relative;
  width: 1000px;
  height: 1000px;
  min-width: 1000px;
  min-height: 1000px;
  background-color: var(--wze-surface);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .08) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, .14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .14) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
  overflow: visible;
}

.wze-canvas-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #5B6B76;
  font-size: 14px;
  pointer-events: none;
}

.wze-block {
  position: relative;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(0 2px 3px rgba(25, 53, 89, .16));
}

.wze-block-canvas { position: absolute; }
.wze-block-palette { position: relative; cursor: grab; }

.wze-block.dragging {
  z-index: 20;
  cursor: grabbing;
  filter: drop-shadow(0 8px 14px rgba(25, 53, 89, .3));
}

.wze-block-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.wze-block-shape path {
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.wze-block-normal .wze-block-shape path { fill: var(--wze-block-blue); stroke: var(--wze-block-navy); }
.wze-block-concurrent .wze-block-shape path { fill: var(--wze-olive); stroke: #677A31; }
.wze-block-special .wze-block-shape path { fill: var(--wze-gold); stroke: #D97E2D; }
.wze-block-repeat .wze-block-shape path { fill: var(--wze-rose); stroke: #8D1D3B; }

.wze-block-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--wze-tab, 7px) 12px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.wze-block-label { overflow: hidden; text-overflow: ellipsis; }

.wze-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.wze-value:hover { background: #F2F2F2; }

.wze-block-palette .wze-value { pointer-events: none; }

.wze-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .15s ease;
}

.wze-block:hover .wze-delete,
.wze-block:focus-within .wze-delete { opacity: 1; }

.wze-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wze-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.wze-fab-menu button {
  min-width: 110px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: var(--wze-navy);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(25, 53, 89, .28);
}

.wze-fab-menu button:hover { background: #0F2947; }

.wze-fab-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--wze-navy);
  color: #fff;
  font-family: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(25, 53, 89, .35);
}

#wze-sim-panel {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #071a22;
  color: #fff;
  transition: flex-basis .25s ease, width .25s ease;
}

#wze-sim-panel:not(.collapsed) {
  flex: 0 0 40%;
  width: 40%;
}

.wze-sim-head {
  flex: none;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: #0B2B27;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 11.5px;
  font-weight: 800;
}

.wze-sim-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(47, 155, 115, .22);
  border: 1px solid rgba(82, 224, 200, .36);
  color: #52E0C8;
  font-size: 9px;
  font-weight: 800;
}

.wze-sim-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #071a22;
}

#wze-sim-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.wze-sim-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wze-sim-hud-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
}

.wze-sim-stat {
  flex: 1 1 0;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(4, 18, 32, .66);
  color: rgba(255, 255, 255, .62);
  font-size: 8.5px;
  line-height: 1.2;
}

.wze-sim-stat strong {
  display: block;
  color: #52E0C8;
  font-size: 13px;
  font-weight: 800;
}

.wze-sim-stat small {
  margin-left: 2px;
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  font-weight: 600;
}

.wze-sim-hud-bottom {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.wze-sim-block,
.wze-sim-status {
  max-width: 70%;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(4, 18, 32, .72);
  color: rgba(255, 255, 255, .8);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wze-sim-status { color: #52E0C8; }

.wze-sim-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid rgba(82, 224, 200, .55);
  border-radius: 50%;
  pointer-events: none;
}

.wze-sim-crosshair::before,
.wze-sim-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(82, 224, 200, .55);
}

.wze-sim-crosshair::before { top: 6px; left: -5px; width: 24px; height: 1px; }
.wze-sim-crosshair::after { top: -5px; left: 6px; width: 1px; height: 24px; }

.wze-sim-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.wze-sim-flash.on { opacity: 1; }

.wze-sim-emergency {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 82, 82, .85);
  background: rgba(255, 0, 0, .08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.wze-sim-emergency.on { opacity: 1; }

.wze-sim-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  background: rgba(7, 26, 34, .55);
  pointer-events: none;
}

.wze-sim-loading.hide { display: none; }

.wze-sim-controls {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  background: #0B2B27;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.wze-sim-controls button {
  flex: 1 1 auto;
  height: 29px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.wze-sim-controls button:hover { background: rgba(255, 255, 255, .15); }
.wze-sim-controls button.primary { background: #2f9b73; border-color: #2f9b73; }
.wze-sim-controls button.primary:hover { background: #278A65; }

.wze-sim-note {
  flex: none;
  padding: 0 10px 8px;
  color: rgba(255, 255, 255, .5);
  font-size: 9px;
  line-height: 1.4;
}

.wze-result {
  position: absolute;
  inset: 0 40% 0 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  padding: 15px 25px;
  background: rgba(4, 10, 14, .96);
  color: #fff;
}

#wze-shell:not(.wze-sim-visible) .wze-result { right: 0; }

.wze-result-top {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wze-result-timer {
  color: var(--wze-lavender);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.wze-result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wze-result-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wze-result-emergency { background: #B00020; }
.wze-result-emergency:hover { background: #9A001C; }
.wze-result-stop { background: var(--wze-blue); }
.wze-result-stop:hover { background: #0E73AE; }
.wze-result-close { background: var(--wze-blue); }
.wze-result-close:hover { background: #0E73AE; }

.wze-result-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.wze-result-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wze-result-title {
  margin: 0 0 8px;
  color: var(--wze-lavender);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.wze-result-list {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 6px;
  background: #F2F7FB;
}

.wze-result-block {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #BFD5E6;
  border-radius: 8px;
  background: #fff;
  color: var(--wze-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.wze-result-block.active {
  border-color: #F3B31E;
  background: rgba(243, 179, 30, .12);
}

.wze-result-block-normal { border-left: 4px solid var(--wze-blue); }
.wze-result-block-concurrent { border-left: 4px solid var(--wze-olive); }
.wze-result-block-special { border-left: 4px solid var(--wze-gold); }
.wze-result-block-repeat { border-left: 4px solid var(--wze-rose); }

.wze-result-progress {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  min-width: 120px;
}

.wze-result-step {
  color: var(--wze-gold);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.wze-result-percent {
  color: var(--wze-gold);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.wze-result-bottom {
  flex: none;
  margin-top: 8px;
}

.wze-result-close { align-self: flex-start; }

.wze-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 18, 32, .55);
}

.wze-dialog-card {
  width: min(92vw, 420px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--wze-ink);
  box-shadow: 0 18px 44px rgba(4, 18, 32, .35);
}

.wze-dialog-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wze-lavender);
  font-size: 14px;
  font-weight: 800;
}

.wze-dialog-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wze-navy);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.wze-dialog-close:hover { background: var(--wze-surface); }

.wze-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
}

.wze-dialog-foot {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--wze-lavender);
}

.wze-dialog-foot .wze-btn,
.wze-program-row .wze-btn {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--wze-lavender);
  background: var(--wze-surface);
  color: var(--wze-navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.wze-dialog-foot .wze-btn-primary,
.wze-program-row .wze-btn-primary {
  background: var(--wze-blue);
  border-color: var(--wze-blue);
  color: #fff;
}

.wze-dialog-foot .wze-btn-primary:hover,
.wze-program-row .wze-btn-primary:hover { background: #0E73AE; }

.wze-dialog-foot .wze-btn-ghost:hover,
.wze-program-row .wze-btn-ghost:hover { background: #fff; }

.wze-dialog-foot .wze-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.wze-btn-sm { height: 28px !important; padding: 0 9px; font-size: 11px !important; }

.wze-dialog-message {
  margin: 0;
  color: var(--wze-ink);
  font-size: 13px;
  line-height: 1.65;
}

.wze-dialog-display {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 10px;
  border: 1px solid var(--wze-lavender);
  border-radius: 6px;
  background: var(--wze-surface);
  color: var(--wze-ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}

.wze-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.wze-key {
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--wze-blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wze-key:hover { background: #0E73AE; }
.wze-key-alt { background: var(--wze-navy); }
.wze-key-alt:hover { background: #0F2947; }

.wze-segmented {
  display: flex;
  gap: 4px;
}

.wze-segmented button {
  flex: 1 1 0;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #BFD5E6;
  border-radius: 6px;
  background: var(--wze-surface);
  color: var(--wze-navy);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.wze-segmented button.active {
  background: var(--wze-blue);
  border-color: var(--wze-blue);
  color: #fff;
}

.wze-direction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.wze-direction-grid button {
  height: 44px;
  border: 1px solid #BFD5E6;
  border-radius: 8px;
  background: var(--wze-surface);
  color: var(--wze-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wze-direction-grid button.active {
  background: var(--wze-blue);
  border-color: var(--wze-blue);
  color: #fff;
}

.wze-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--wze-navy);
  font-size: 11px;
  font-weight: 700;
}

.wze-field-input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #BFD5E6;
  border-radius: 6px;
  background: #fff;
  color: var(--wze-ink);
  font-family: inherit;
  font-size: 14px;
}

.wze-field-input:focus {
  outline: none;
  border-color: var(--wze-blue);
  box-shadow: 0 0 0 2px rgba(18, 132, 197, .16);
}

.wze-program-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wze-program-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #BFD5E6;
  border-radius: 8px;
  background: #fff;
}

.wze-program-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wze-program-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--wze-blue);
  font-size: 12px;
  font-weight: 800;
}

.wze-program-date {
  color: #5B6B76;
  font-size: 10px;
}

.wze-library-list {
  margin: 0;
  padding-left: 18px;
  color: var(--wze-ink);
  font-size: 12px;
  line-height: 1.8;
}

.wze-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 7000;
  max-width: min(88vw, 520px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(4, 18, 32, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .2s ease;
}

.wze-toast.show { opacity: 1; }

@media (max-width: 1024px) {
  #wze-palette { flex-basis: 250px; width: 250px; }
  .wze-palette-scroll { padding: 12px; }
  .wze-block-content { font-size: 12px; }
  #wze-sim-panel {
    position: fixed;
    top: 52px;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    flex: none;
    z-index: 80;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  #wze-sim-panel.open {
    width: min(360px, 92vw);
    flex: none;
    transform: translateX(0);
  }
  #wze-sim-panel.collapsed {
    width: min(360px, 92vw);
    flex: none;
    transform: translateX(100%);
  }
  .wze-result { padding: 12px 16px; right: 0; }
  .wze-result-main { flex-direction: column; }
  .wze-result-progress {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }
  .wze-result-list { min-height: 120px; }
}

@media (max-width: 760px) {
  .wze-topbar { padding: 0 8px; gap: 6px; }
  .wze-topbar-left { gap: 6px; }
  .wze-title { display: none; }
  .wze-brand-logo { height: 26px; }
  .wze-btn { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 10px; }
  .wze-member { display: none; }
  #wze-app { flex-direction: column; }
  #wze-palette {
    flex: 0 0 auto;
    width: 100%;
    height: 128px;
    border-right: 0;
    border-bottom: 1px solid rgba(25, 53, 89, .18);
  }
  .wze-tabs { height: 40px; }
  .wze-tab { font-size: 11px; }
  .wze-palette-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px;
  }
  .wze-palette-list {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .wze-block-content { font-size: 11px; padding: var(--wze-tab, 5px) 8px 0; }
  .wze-block-shape path { stroke-width: 2; }
  .wze-value { min-width: 20px; height: 18px; font-size: 10px; }
  .wze-block-palette { flex: 0 0 auto; }
  #wze-main { flex: 1 1 auto; min-height: 0; }
  #wze-function-bar {
    height: 42px;
    gap: 4px;
    padding: 2px 6px;
    overflow-x: auto;
  }
  .wze-fn { height: 30px; padding: 0 8px; font-size: 10px; }
  .wze-fn-run { min-width: 62px; }
  .wze-fab { right: 8px; bottom: 8px; }
  .wze-fab-btn { width: 42px; height: 42px; font-size: 22px; }
  .wze-fab-menu button { min-width: 96px; padding: 7px 11px; font-size: 11px; }
  .wze-result { padding: 8px 10px; }
  .wze-result-timer { font-size: 18px; }
  .wze-result-title { font-size: 20px; }
  .wze-result-list { padding: 10px 12px; }
  .wze-result-block { font-size: 11px; }
  .wze-result-step { font-size: 20px; }
  .wze-result-percent { font-size: 32px; }
  .wze-dialog-card { width: 100%; max-height: 92vh; }
}

@media (max-width: 420px) {
  .wze-topbar-actions .wze-btn-login { display: none; }
  #wze-palette { height: 120px; }
  .wze-result-progress { justify-content: space-between; }
}

.wze-member,
.wze-btn-login { display: none; }
