    :root {
      --bg: #f4f7f3;
      --surface: #ffffff;
      --surface-2: #eef6f1;
      --ink: #17302d;
      --muted: #61736f;
      --border: #dbe7e1;
      --accent: #137b72;
      --accent-2: #2f6feb;
      --sand: #d9bc86;
      --mud: #9b7450;
      --success: #18a058;
      --warn: #d89516;
      --danger: #d94b3f;
      --shadow: 0 18px 40px rgba(24, 58, 50, 0.1);
      --water-top: rgba(68, 171, 180, 0.46);
      --water-mid: rgba(33, 127, 139, 0.5);
      --water-sheen-1: rgba(255, 255, 255, 0.55);
      --water-sheen-2: rgba(255, 255, 255, 0.36);
      --water-mud-tint: rgba(91, 62, 44, 0.14);
      font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      margin: 0;
      color: var(--ink);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(244,247,243,0.96)),
        repeating-linear-gradient(135deg, rgba(19, 123, 114, 0.04) 0 12px, transparent 12px 34px);
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    .app-shell {
      width: min(1440px, 100%);
      margin: 0 auto;
      padding: 24px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .brand-mark {
      display: grid;
      width: 52px;
      height: 52px;
      place-items: center;
      border: 1px solid rgba(19, 123, 114, 0.22);
      border-radius: 8px;
      background: linear-gradient(180deg, #f9fffb 0%, #e4f1ec 100%);
      box-shadow: var(--shadow);
      font-size: 28px;
    }

    .brand h1 {
      margin: 0;
      font-size: 44px;
      line-height: 1.12;
      font-weight: 800;
      letter-spacing: 0;
    }

    .title-main,
    .title-korean {
      display: inline;
    }

    .subtitle {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.45;
    }

    .score-chip {
      min-width: 190px;
      padding: 12px 16px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      text-align: right;
      box-shadow: var(--shadow);
    }

    .score-chip span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .score-chip strong {
      display: block;
      margin-top: 2px;
      font-size: 30px;
      line-height: 1;
    }

    .workspace {
      display: grid;
      grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }

    .mobile-section-nav {
      position: sticky;
      top: 0;
      z-index: 20;
      display: none;
      margin-bottom: 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      box-shadow: var(--shadow);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .mobile-section-nav ul {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin: 0;
      padding: 0;
      list-style: none;
      width: 100%;
      min-width: 0;
    }

    .mobile-section-nav a {
      display: block;
      padding: 12px 14px;
      text-align: center;
      color: var(--ink);
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
      border-right: 1px solid var(--border);
      transition: background 140ms ease, color 140ms ease;
    }

    .mobile-section-nav li:last-child a {
      border-right: 0;
    }

    .mobile-section-nav a:active,
    .mobile-section-nav a:hover {
      background: var(--surface-2);
      color: var(--accent);
    }

    .panel {
      border: 1px solid var(--border);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: var(--shadow);
    }

    .control-panel {
      position: sticky;
      top: 18px;
      padding: 20px;
    }

    .panel-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }

    h2,
    h3,
    .panel h2,
    .modal h2 {
      margin: 0;
      font-weight: 800;
      letter-spacing: 0;
    }

    h2,
    .panel h2,
    .modal h2 {
      font-size: 22px;
      line-height: 1.25;
    }

    h3 {
      font-size: 18px;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--success);
      box-shadow: 0 0 0 6px rgba(24, 160, 88, 0.12);
    }

    .control-group {
      padding: 16px 0;
      border-top: 1px solid var(--border);
    }

    .control-group:first-of-type {
      border-top: 0;
      padding-top: 4px;
    }

    .label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .label-row label,
    .label-row span:first-child {
      font-size: 14px;
      font-weight: 800;
    }

    .value-badge {
      min-width: 62px;
      padding: 6px 8px;
      border: 1px solid rgba(19, 123, 114, 0.24);
      border-radius: 8px;
      background: var(--surface-2);
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      text-align: center;
    }

    input[type="range"] {
      width: 100%;
      height: 34px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .range-scale {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .toggle-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      width: 100%;
      align-items: center;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      text-align: left;
      cursor: pointer;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
    }

    .toggle-card + .toggle-card {
      margin-top: 10px;
    }

    .toggle-card:hover {
      transform: translateY(-1px);
      border-color: rgba(19, 123, 114, 0.35);
    }

    .toggle-card[aria-pressed="true"] {
      border-color: rgba(19, 123, 114, 0.48);
      background: #f4fbf7;
    }

    .toggle-card.danger[aria-pressed="true"] {
      border-color: rgba(217, 75, 63, 0.48);
      background: #fff7f5;
    }

    .toggle-title {
      display: block;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
    }

    .toggle-caption {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .switch {
      position: relative;
      width: 54px;
      height: 30px;
      flex: none;
      border-radius: 999px;
      background: #cdd8d3;
      transition: background 160ms ease;
    }

    .switch::after {
      position: absolute;
      top: 4px;
      left: 4px;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(23, 48, 45, 0.18);
      content: "";
      transition: transform 160ms ease;
    }

    .toggle-card[aria-pressed="true"] .switch {
      background: var(--accent);
    }

    .toggle-card.danger[aria-pressed="true"] .switch {
      background: var(--danger);
    }

    .toggle-card[aria-pressed="true"] .switch::after {
      transform: translateX(24px);
    }

    .mission {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding: 14px;
      border-radius: 8px;
      background: #f8f5ec;
      color: #604b27;
      font-size: 13px;
      line-height: 1.45;
    }

    .mission strong {
      font-weight: 900;
    }

    .mission-list {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .mission-card {
      display: grid;
      gap: 8px;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      cursor: pointer;
      color: var(--ink);
      transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
    }

    .mission-card:hover {
      transform: translateY(-1px);
      border-color: rgba(19, 123, 114, 0.28);
    }

    .mission-card[aria-selected="true"] {
      border-color: rgba(19, 123, 114, 0.7);
      background: #f3fbf8;
    }

    .mission-card.completed {
      border-color: rgba(24, 160, 88, 0.75);
      background: #effcf3;
    }

    .mission-check {
      color: var(--muted);
      opacity: 0;
      font-weight: 900;
      text-align: right;
      transition: opacity 160ms ease;
    }

    .mission-card.completed .mission-check {
      color: var(--success);
      opacity: 1;
    }

    .mission-title {
      margin: 0;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
    }

    .mission-status-text {
      margin: 0;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.35;
    }

    .mission-state-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: #b8c8c3;
      box-shadow: 0 0 0 4px rgba(184, 200, 195, 0.22);
      transition: all 160ms ease;
    }

    .mission-card[aria-selected="true"] .mission-state-dot {
      background: var(--accent);
      box-shadow: 0 0 0 4px rgba(19, 123, 114, 0.18);
    }

    .mission-card.completed .mission-state-dot {
      background: var(--success);
      box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.2);
    }

    .main-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
      gap: 18px;
      align-items: start;
    }

    .sim-panel {
      overflow: hidden;
    }

    .sim-header,
    .monitor-header,
    .activity-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 18px 0;
    }

    .message-pill {
      max-width: 360px;
      padding: 8px 10px;
      border: 1px solid rgba(19, 123, 114, 0.22);
      border-radius: 8px;
      background: #edf8f2;
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
      text-align: right;
    }

    .aquarium {
      position: relative;
      height: 452px;
      margin: 18px;
      overflow: hidden;
      border: 1px solid #cbdcd5;
      border-radius: 8px;
      background:
        linear-gradient(180deg, #dceff4 0 35%, #f3dfb1 35% 68%, #9b7450 68% 100%);
    }
