    :root {
      --page: #f4f5f7;
      --card: #ffffff;
      --text: #1a1d21;
      --muted: #6b7280;
      --border: rgba(15, 23, 42, 0.08);
      --border-strong: rgba(15, 23, 42, 0.14);
      --soft: #f6f7f9;
      --brand: #378add;
      --warn: #d0870f;
      --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.10);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      background: var(--page);
      font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    button,
    input,
    select {
      font: inherit;
    }

    button {
      color: inherit;
    }

    :focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
      border-radius: 8px;
    }

    .btn[disabled],
    .chip[disabled] {
      cursor: not-allowed;
      opacity: 0.55;
      box-shadow: none;
    }

    .app {
      width: min(1140px, 100%);
      margin: 0 auto;
      padding: 30px 28px 60px;
    }

    .header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .header h1 {
      margin: 0;
      font-size: 27px;
      line-height: 1.15;
      font-weight: 800;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .subtitle {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: 14px;
    }

    .toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .select-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .select-wrap select {
      appearance: none;
      min-width: 104px;
      padding: 10px 34px 10px 14px;
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      color: var(--text);
      background: #fff;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .select-wrap i {
      position: absolute;
      right: 11px;
      color: var(--muted);
      pointer-events: none;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 22px;
      border-bottom: 1px solid var(--border);
    }

    .nav button,
    .tab-button {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 0;
      border-bottom: 2.5px solid transparent;
      background: transparent;
      cursor: pointer;
      white-space: nowrap;
    }

    .nav button {
      margin-bottom: -1px;
      padding: 12px 16px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .nav button.active {
      color: var(--text);
      border-bottom-color: var(--brand);
    }

    .intro {
      position: relative;
      margin-top: 22px;
      padding: 20px 22px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: linear-gradient(135deg, #eef4fb, #ffffff 60%);
      box-shadow: var(--shadow);
    }

    .intro-head {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      font-size: 15.5px;
      font-weight: 800;
    }

    .intro-head i {
      color: var(--brand);
      font-size: 19px;
    }

    .intro-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
      margin: 14px 0 6px;
    }

    .intro-step {
      display: flex;
      gap: 10px;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.7);
    }

    .intro-step b {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--brand);
      color: #fff;
      font-size: 12.5px;
      font-weight: 800;
    }

    .intro-step-text {
      color: var(--text);
      font-size: 13px;
      line-height: 1.5;
    }

    .intro-step-text span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }

    .legend {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 8px;
      margin-top: 12px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .legend-item {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      font-size: 12.5px;
      line-height: 1.45;
    }

    .legend-dot {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      width: 26px;
      height: 26px;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
    }

    .legend-item b {
      color: var(--text);
      font-weight: 800;
    }

    .legend-item span {
      color: var(--muted);
    }

    .intro-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 16px;
    }

    .privacy-note {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 16px;
      padding: 13px 15px;
      border: 1px solid rgba(55, 138, 221, 0.18);
      border-radius: 12px;
      color: #334155;
      background: #f5f9ff;
      font-size: 13px;
      line-height: 1.6;
    }

    .privacy-note i {
      flex: 0 0 auto;
      margin-top: 2px;
      color: var(--brand);
      font-size: 18px;
    }

    .site-footer {
      margin: 20px 0 6px;
      padding: 14px 18px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.65;
      text-align: center;
    }

    .intro-action {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 42px;
      padding: 10px 16px;
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      background: #fff;
      color: var(--text);
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: transform 0.15s ease, border-color 0.15s ease;
    }

    .intro-action.primary {
      border: 0;
      background: var(--brand);
      color: #fff;
    }

    .intro-action:hover {
      transform: translateY(-1px);
    }

    .home-block {
      margin-top: 28px;
    }

    .block-head {
      margin-bottom: 12px;
    }

    .block-head h2 {
      margin: 0;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
    }

    .block-head h2 i {
      color: var(--brand);
      font-size: 20px;
    }

    .block-desc {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .rec-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 11px;
    }

    .rec-card {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 15px 16px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      box-shadow: var(--shadow);
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .rec-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }

    .rec-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      width: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      text-align: left;
      cursor: pointer;
    }

    .rec-situation {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
    }

    .rec-situation i {
      color: var(--brand);
      font-size: 18px;
    }

    .rec-toggle {
      color: var(--muted);
      font-size: 18px;
      transition: transform 0.2s ease;
    }

    .rec-card.open .rec-toggle {
      transform: rotate(180deg);
    }

    .rec-count {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .rec-lessons {
      display: none;
      flex-wrap: wrap;
      gap: 7px;
    }

    .rec-card.open .rec-lessons {
      display: flex;
    }

    .rec-lesson {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 38px;
      padding: 8px 12px;
      border: 1px solid var(--border-strong);
      border-radius: 8px;
      background: var(--soft);
      color: var(--text);
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
    }

    .rec-lesson:hover {
      border-color: var(--brand);
      color: var(--brand);
    }

    .rec-lesson b {
      font-weight: 800;
    }

    .flow {
      display: grid;
      gap: 10px;
    }

    .flow-group {
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .flow-group > summary {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      list-style: none;
      cursor: pointer;
    }

    .flow-group > summary::-webkit-details-marker {
      display: none;
    }

    .flow-range {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border-radius: 7px;
      background: var(--bg);
      color: var(--badge-text);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .flow-gtitle {
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
    }

    .flow-chevron {
      margin-left: auto;
      color: var(--muted);
      transition: transform 0.2s ease;
    }

    .flow-group[open] .flow-chevron {
      transform: rotate(180deg);
    }

    .flow-items {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 7px;
      padding: 0 16px 14px;
    }

    .flow-item {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 40px;
      padding: 8px 11px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--soft);
      color: var(--text);
      font-size: 12.5px;
      font-weight: 700;
      text-align: left;
      cursor: pointer;
    }

    .flow-item:hover {
      border-color: var(--brand);
      color: var(--brand);
    }

    .flow-item .fno {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 22px;
      border-radius: 6px;
      background: var(--brand);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
    }

    .grade-note {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-top: 20px;
      padding: 12px 16px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--soft);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .grade-note i {
      flex: 0 0 auto;
      margin-top: 1px;
      color: var(--brand);
      font-size: 17px;
    }

    .feature-row {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 14px;
    }

    .action-note {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 12.5px;
    }

    .action-note i {
      color: var(--warn);
      font-size: 15px;
    }

    .searchbar {
      position: relative;
      display: flex;
      align-items: center;
      margin-top: 22px;
    }

    .searchbar > i {
      position: absolute;
      left: 13px;
      color: var(--muted);
      font-size: 17px;
      pointer-events: none;
    }

    .searchbar input {
      width: min(420px, 100%);
      min-height: 42px;
      padding: 10px 14px 10px 38px;
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      background: #fff;
      color: var(--text);
      font-size: 14px;
    }

    .searchbar input::placeholder {
      color: var(--muted);
      font-weight: 500;
    }

    .filterbar {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin: 12px 0 18px;
    }

    .filter-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 40px;
      padding: 9px 14px;
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      background: #fff;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .filter-btn:hover {
      transform: translateY(-1px);
    }

    .filter-btn.active.all {
      border-color: var(--text);
      background: var(--text);
      color: var(--page);
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 13px;
    }

    .grid.no-anim .lesson-card {
      opacity: 1;
      animation: none;
    }

    .lesson-card {
      position: relative;
      min-height: 176px;
      display: flex;
      flex-direction: column;
      gap: 9px;
      overflow: hidden;
      padding: 16px 16px 14px 18px;
      border: 0.5px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      box-shadow: var(--shadow);
      cursor: pointer;
      opacity: 0;
      animation: cardIn 0.34s ease forwards;
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .lesson-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }

    .lesson-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
      background: var(--main);
    }

    .card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 7px;
      background: var(--bg);
      color: var(--badge-text);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.1;
    }

    .lesson-title {
      color: var(--text);
      font-size: 16px;
      font-weight: 700;
      line-height: 1.36;
    }

    .goal {
      display: flex;
      gap: 5px;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.45;
    }

    .goal i {
      flex: 0 0 auto;
      margin-top: 1px;
      color: var(--brand);
      font-size: 14px;
    }

    .card-tags {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 3px 5px;
      color: #9ca3af;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: -0.02em;
    }

    .card-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }

    .card-tag.difficulty {
      color: #4b5563;
      font-weight: 700;
    }

    .card-tag.sensitive {
      color: #b4460f;
      font-weight: 700;
    }

    .card-tag .dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.45;
    }

    .card-assets {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 11px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: #fafafa;
    }

    .card-assets-label,
    .card-assets-count {
      color: #9ca3af;
      font-size: 11px;
      font-weight: 700;
    }

    .card-assets-icons {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-assets-icons i {
      font-size: 16px;
    }

    .card-assets-icons .on { color: #1a7a55; }
    .card-assets-icons .off { color: #d4d4d8; }
    .card-assets-count { margin-left: auto; }

    .card-actions {
      display: flex;
      gap: 8px;
      margin-top: auto;
      padding-top: 2px;
    }

    .card-cta,
    .card-sub {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 11px 14px;
      border-radius: 9px;
      font-size: 14px;
      font-weight: 800;
      white-space: nowrap;
    }

    .card-cta {
      flex: 1;
      background: var(--brand);
      color: #fff;
      text-decoration: none;
    }

    .card-cta:hover { background: #2a6fb0; }

    .card-cta[aria-disabled="true"] {
      background: #cbd5e1;
      pointer-events: none;
    }

    .card-sub {
      border: 1px solid var(--border-strong);
      background: #fff;
      color: var(--text);
      cursor: pointer;
    }

    .card-sub:hover { background: var(--soft); }

    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      min-height: 40px;
      padding: 9px 12px;
      border: 1px solid var(--border-strong);
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 700;
      white-space: nowrap;
      cursor: pointer;
      transition: color 0.15s ease, border-color 0.15s ease;
    }

    .chip:hover {
      border-color: var(--brand);
      color: var(--brand);
    }

    .chip.solid {
      border-color: var(--brand);
      background: var(--bg);
      color: var(--badge-text);
    }

    .back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin: 0 0 14px;
      padding: 6px 0;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .detail {
      margin-top: 22px;
    }

    .detail-shell {
      overflow: hidden;
      border: 0.5px solid var(--border);
      border-radius: 14px;
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .detail-head {
      position: relative;
      padding: 24px 26px;
      border-bottom: 1px solid var(--border);
    }

    .detail-head::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: var(--main);
    }

    .detail-badges {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .detail-head h2 {
      margin: 0 0 14px;
      color: var(--text);
      font-size: 20px;
      line-height: 1.25;
      font-weight: 800;
      letter-spacing: 0;
    }

    .detail-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }

    .detail-meta div {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--soft);
    }

    .detail-meta span:first-child {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .detail-meta span.standard-code {
      color: var(--text);
      font-size: 14px;
      font-weight: 800;
    }

    .standard-text {
      margin: 0;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.5;
      font-weight: 600;
    }

    .fact-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px 16px;
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 600;
    }

    .fact {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .fact i {
      color: var(--brand);
      font-size: 15px;
    }

    .fact b {
      color: var(--text);
      font-weight: 800;
    }

    .standards {
      margin-top: 16px;
    }

    .standards > summary {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: var(--soft);
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 700;
      list-style: none;
      cursor: pointer;
    }

    .standards > summary::-webkit-details-marker {
      display: none;
    }

    .standards-chevron {
      transition: transform 0.2s ease;
    }

    .standards[open] .standards-chevron {
      transform: rotate(180deg);
    }

    .standards[open] > summary {
      margin-bottom: 12px;
      color: var(--text);
    }

    .tabs {
      display: flex;
      gap: 2px;
      overflow-x: auto;
      padding: 0 18px;
      border-bottom: 1px solid var(--border);
    }

    .tab-button {
      margin-bottom: -1px;
      padding: 14px 16px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .tab-button.active {
      color: var(--brand);
      border-bottom-color: var(--brand);
    }

    .panel {
      padding: 24px 26px;
    }

    .panel-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .panel-title {
      color: var(--text);
      font-size: 16px;
      font-weight: 800;
    }

    .panel-subtitle {
      margin-top: 3px;
      max-width: 560px;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.5;
    }

    .button-row {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 40px;
      padding: 10px 15px;
      border-radius: 9px;
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
    }

    .btn.ghost {
      border: 1px solid var(--border-strong);
      background: transparent;
      color: var(--text);
    }

    .btn.primary {
      border: 0;
      background: var(--brand);
      color: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    }

    .preview {
      min-height: 320px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 24px;
      border: 1px dashed var(--border-strong);
      border-radius: 10px;
      background: repeating-linear-gradient(45deg, rgba(15, 23, 42, 0.025), rgba(15, 23, 42, 0.025) 9px, transparent 9px, transparent 18px);
      color: var(--muted);
      text-align: center;
    }

    .preview.wide {
      min-height: auto;
      aspect-ratio: 16 / 9;
    }

    .preview.pdf-preview {
      display: block;
      min-height: 660px;
      padding: 0;
      overflow: hidden;
      border-style: solid;
      background: #fff;
    }

    .pdf-preview iframe {
      display: block;
      width: 100%;
      height: 660px;
      border: 0;
    }

    .preview.webapp-preview {
      min-height: auto;
      padding: 0;
      overflow: hidden;
      border-style: solid;
      background: #fff;
    }

    .webapp-preview iframe {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .preview.asset-image-preview {
      padding: 0;
      overflow: hidden;
      border-style: solid;
      background: #fff;
    }

    .asset-image-preview img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .slide-extra-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .slide-extra-card {
      display: grid;
      grid-template-columns: minmax(130px, 42%) 1fr;
      min-height: 150px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
    }

    .slide-extra-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: #f8fafc;
    }

    .slide-extra-copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 8px;
      padding: 16px;
      text-align: left;
    }

    .slide-extra-copy strong { color: var(--text); font-size: 15px; }
    .slide-extra-copy p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
    .slide-extra-actions { display: flex; flex-wrap: wrap; gap: 7px; }

    .preview i {
      color: var(--muted);
      font-size: 34px;
    }

    .preview-code {
      color: var(--muted);
      font-family: ui-monospace, Menlo, Consolas, monospace;
      font-size: 12px;
      line-height: 1.6;
    }

    .launch-card {
      display: grid;
      grid-template-columns: minmax(280px, 1.15fr) minmax(250px, 0.85fr);
      min-height: 340px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
    }

    .launch-visual {
      position: relative;
      min-height: 340px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: #e5e7eb;
    }

    .launch-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .launch-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      color: #64748b;
      font-size: 14px;
      font-weight: 700;
    }

    .launch-placeholder i {
      color: #94a3b8;
      font-size: 44px;
    }

    .launch-copy {
      display: flex;
      flex-direction: column;
      padding: 24px;
    }

    .launch-copy h3 {
      margin: 0 0 16px;
      color: var(--text);
      font-size: 16px;
      font-weight: 800;
    }

    .launch-copy > p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .launch-flow {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .launch-flow-item {
      display: grid;
      grid-template-columns: 30px 1fr auto;
      align-items: center;
      gap: 9px;
      padding: 9px 10px;
      border-radius: 8px;
      background: var(--soft);
      color: var(--text);
      font-size: 12.5px;
      font-weight: 700;
    }

    .launch-flow-item b {
      color: var(--brand);
      font-size: 11px;
    }

    .launch-flow-item span:last-child {
      color: var(--muted);
      font-size: 11px;
    }

    .launch-note {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: auto 0 0;
      padding-top: 18px;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.5;
    }

    .launch-note i { color: var(--brand); }

    .activity-title {
      color: var(--text);
      font-size: 15px;
      font-weight: 800;
    }

    .activity-copy {
      max-width: 440px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .pending-note {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 12.5px;
    }

    .pending-note i {
      color: var(--warn);
      font-size: 15px;
    }

    .safety {
      margin-top: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--soft);
    }

    .safety > summary {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 14px 16px;
      list-style: none;
      color: var(--text);
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .safety > summary::-webkit-details-marker {
      display: none;
    }

    .safety > summary i {
      color: var(--brand);
      font-size: 18px;
    }

    .safety ul {
      margin: 0;
      padding: 0 18px 16px 42px;
    }

    .safety li {
      color: var(--text);
      font-size: 13px;
      line-height: 1.7;
    }

    .safety--care {
      border-color: #e9b9a6;
      background: #fbf1ec;
    }

    .safety--care > summary i {
      color: #d85a30;
    }

    .safety-flag {
      margin-left: auto;
      padding: 3px 9px;
      border-radius: 20px;
      background: #d85a30;
      color: #fff;
      font-size: 11px;
      font-weight: 800;
    }

    .lesson-nav {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-top: 14px;
    }

    .lesson-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      max-width: 49%;
      min-width: 0;
      min-height: 52px;
      padding: 10px 14px;
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      background: var(--card);
      cursor: pointer;
      transition: border-color 0.15s ease, color 0.15s ease;
    }

    .lesson-nav-btn:hover {
      border-color: var(--brand);
      color: var(--brand);
    }

    .lnb-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      font-size: 13px;
      font-weight: 700;
      text-align: left;
    }

    .lesson-nav-btn.next .lnb-text {
      text-align: right;
    }

    .lnb-text small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .lnb-title {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .rag-head {
      margin-top: 24px;
      margin-bottom: 22px;
    }

    .source-section {
      margin-top: 30px;
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 6px;
    }

    .section-title h2 {
      margin: 0;
      color: var(--text);
      font-size: 20px;
      font-weight: 800;
    }

    .section-title span,
    .section-desc {
      color: var(--muted);
      font-size: 13px;
    }

    .section-desc {
      margin: 0;
    }

    .rag-card {
      display: flex;
      flex-direction: column;
      gap: 11px;
      padding: 16px;
      border: 0.5px solid var(--border);
      border-style: dashed;
      border-radius: 14px;
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .rag-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .rag-label {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 20px;
      background: #f1eafe;
      color: #7c3aed;
      font-size: 11.5px;
      font-weight: 800;
    }

    .rag-card .rag-label {
      border-radius: 7px;
      padding: 4px 9px;
    }

    .source-actions.multi {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: 100%;
    }

    .source-actions.multi .chip {
      width: 100%;
      min-width: 0;
      padding-inline: 8px;
    }

    .meta {
      padding-top: 2px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      font-size: 12px;
    }

    .source-logo {
      position: relative;
      min-height: 150px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 9px;
      overflow: hidden;
      border: 1px solid rgba(15, 23, 42, 0.06);
      border-radius: 10px;
      background: linear-gradient(135deg, var(--source-soft), #ffffff);
    }

    .source-logo::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(255,255,255,.9), transparent 38%);
      pointer-events: none;
    }

    .source-mark {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 74px;
      height: 74px;
      border-radius: 19px;
      background: var(--source-main);
      color: #fff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
      font-size: 22px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .source-logo-title {
      position: relative;
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
    }

    .rag-title {
      color: var(--text);
      font-size: 15px;
      line-height: 1.35;
      font-weight: 700;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      z-index: 50;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: 11px;
      background: #1a1d21;
      color: #fff;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
      font-size: 14px;
      font-weight: 700;
      transform: translateX(-50%);
      animation: toastIn 0.25s ease-out;
    }

    .summary-preview-button {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
      padding: 0;
      overflow: hidden;
      border: 0;
      border-radius: 8px;
      background: transparent;
      cursor: zoom-in;
    }

    .summary-preview-button .summary-img {
      display: block;
    }

    .summary-preview-hint {
      position: absolute;
      right: 14px;
      bottom: 14px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 11px;
      border-radius: 8px;
      background: rgba(17, 24, 39, 0.84);
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .summary-preview-dialog {
      width: calc(100vw - 32px);
      max-width: 1800px;
      height: calc(100vh - 32px);
      max-height: 1100px;
      padding: 0;
      overflow: hidden;
      border: 0;
      border-radius: 14px;
      background: #111827;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    }

    .summary-preview-dialog::backdrop {
      background: rgba(15, 23, 42, 0.78);
    }

    .summary-dialog-shell {
      display: flex;
      height: 100%;
      flex-direction: column;
    }

    .summary-dialog-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 56px;
      padding: 10px 14px 10px 20px;
      color: #fff;
    }

    .summary-dialog-title {
      overflow: hidden;
      font-size: 15px;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .summary-dialog-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .summary-dialog-actions a,
    .summary-dialog-actions button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 36px;
      padding: 0 11px;
      border: 1px solid rgba(255, 255, 255, 0.28);
      border-radius: 8px;
      background: transparent;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
    }

    .summary-dialog-actions button {
      width: 36px;
      padding: 0;
    }

    .summary-dialog-image-wrap {
      flex: 1;
      min-height: 0;
      overflow: auto;
      background: #0b1120;
    }

    .summary-dialog-image-wrap img {
      display: block;
      width: 100%;
      min-height: 100%;
      height: auto;
      object-fit: contain;
    }

    .hidden {
      display: none !important;
    }

    @keyframes cardIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translate(-50%, 10px);
      }
      to {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
      }
    }

    @media (max-width: 720px) {
      .app {
        padding: 22px 16px 44px;
      }

      .header h1 {
        white-space: normal;
        font-size: 24px;
      }

      .toolbar {
        width: 100%;
      }

      .select-wrap {
        width: 118px;
      }

      .select-wrap select {
        width: 100%;
      }

      .grid {
        grid-template-columns: 1fr;
      }

      .card-actions {
        flex-wrap: nowrap;
      }

      .card-cta,
      .card-sub {
        min-width: 0;
        padding-inline: 12px;
      }

      .nav,
      .tabs {
        overflow-x: auto;
      }

      .detail-head,
      .panel {
        padding: 20px 18px;
      }

      .panel-top {
        align-items: flex-start;
      }

      .launch-card {
        grid-template-columns: 1fr;
      }

      .launch-visual {
        min-height: 220px;
      }

      .summary-preview-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        border-radius: 10px;
      }

      .summary-dialog-head {
        padding: 8px 10px 8px 14px;
      }

      .summary-dialog-actions a {
        width: 36px;
        padding: 0;
      }

      .summary-dialog-actions a span {
        display: none;
      }

      .preview.pdf-preview,
      .pdf-preview iframe {
        min-height: 500px;
        height: 500px;
      }
    }

    @media print {
      body {
        background: #fff;
      }

      .header,
      .nav,
      .back,
      .tabs,
      .button-row,
      .lesson-nav,
      .intro,
      .home-block,
      .feature-row,
      .toast {
        display: none !important;
      }

      .app {
        padding: 0;
      }

      .detail-shell {
        border: 0;
        box-shadow: none;
      }
    }
