
    :root {
      --cream: #f8f7f2;
      --paper: #fffefa;
      --ink: #193b35;
      --muted: #61766e;
      --green: #1e8066;
      --green-dark: #165b4c;
      --mint: #eaf3e8;
      --peach: #ffe8d5;
      --coral: #dd8067;
      --line: #e6e9dd;
      --shadow: 0 24px 70px rgba(25, 59, 53, .07);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--cream);
      color: var(--ink);
      font-family: 'Avenir Next', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
    .site-header {
      width: min(1370px, calc(100% - 80px));
      height: 104px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      border-bottom: 1px solid rgba(25,59,53,.08);
    }
    .brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: inherit; }
    .brand-flower { color: var(--coral); font-size: 31px; line-height: 1; transform: rotate(-17deg); }
    .brand-name { font-weight: 750; letter-spacing: -.055em; font-size: 25px; white-space: nowrap; }
    .brand-name small { font-size: 12px; letter-spacing: .13em; font-weight: 800; margin-right: 6px; color: var(--green-dark); vertical-align: 3px; }
    .header-side { display: flex; align-items: center; gap: 18px; }
    .preview-tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--green-dark); background: var(--mint); border: 1px solid #d6e8d9; padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
    .admin-link { display: inline-flex; align-items: center; justify-content: center; padding: 9px 6px; color: #aeb8ae; text-decoration: none; font-size: 12px; font-weight: 500; white-space: nowrap; }
    .admin-link:hover, .admin-link:focus-visible { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
    .footer-content { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
    .footer-note { width: auto; }
    .header-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
    .container { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
    .hero { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 540px; gap: 24px; padding: 36px 0 28px; }
    .hero-copy { position: relative; z-index: 1; padding: 20px 0 38px 20px; }
    .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
    .eyebrow::before { content: ''; display: block; width: 25px; height: 1px; background: currentColor; }
    .hero h1 { font-size: clamp(52px, 5vw, 78px); line-height: 1.045; letter-spacing: -.065em; margin: 24px 0 22px; font-weight: 760; }
    .hero h1 em { color: var(--green); font-style: normal; }
    .hero-copy > p { max-width: 465px; font-size: 18px; line-height: 1.8; color: var(--muted); margin: 0; }
    .hero-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 34px; color: var(--green-dark); font-size: 13px; font-weight: 700; }
    .hero-note .tiny-flower { color: var(--coral); font-size: 21px; }
    .hero-art { position: relative; align-self: stretch; display: grid; place-items: center; min-width: 0; overflow: hidden; }
    .hero-art::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #eef2e9; top: 5%; left: 13%; opacity: .86; }
    .hero-art::after { content: '✿'; position: absolute; right: 1%; top: 8%; color: #eec5a8; font-size: 44px; transform: rotate(-18deg); }
    .hero-art img { position: relative; z-index: 1; display: block; width: min(100%, 540px); max-height: 510px; height: auto; object-fit: contain; }
    .selection-section { padding: 34px 0 76px; }
    .section-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
    .section-intro h2 { font-size: clamp(32px, 3vw, 45px); letter-spacing: -.055em; line-height: 1.23; margin: 14px 0 0; }
    .section-intro p { max-width: 330px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
    .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
    .step-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: 31px; box-shadow: var(--shadow); min-width: 0; }
    .step-top { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
    .step-panel .step-top h3 { margin: 0; }
    .step-number { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border-radius: 50%; background: var(--peach); color: var(--green-dark); font-size: 13px; font-weight: 800; }
    .step-label { color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
    .step-panel h3 { font-size: clamp(23px, 2.1vw, 29px); line-height: 1.35; letter-spacing: -.047em; margin: 22px 0 8px; }
    .step-help { min-height: 47px; color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 21px; }
    .mini-label { display: block; margin-bottom: 11px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
    .language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .lang-card { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 19px; background: #fff; color: var(--ink); text-align: left; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
    .lang-card:hover { border-color: #a8cbbb; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,59,53,.06); }
    .lang-card.is-selected { border: 2px solid var(--green); background: #f1f8f2; padding: 11.5px 13.5px; box-shadow: 0 0 0 3px rgba(30,128,102,.08); }
    .lang-flower { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 12px; background: var(--peach); color: var(--coral); font-size: 22px; line-height: 1; }
    .lang-card:nth-child(2n) .lang-flower { background: var(--mint); color: var(--green); }
    .lang-flag { font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-size: 23px; }
    .lang-text { display: block; min-width: 0; padding-right: 13px; }
    .lang-text strong { display: block; font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lang-text small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lang-card.has-ko-vietnamese-guide .lang-text small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
    .checkmark { display: none; position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 900; }
    .lang-card.is-selected .checkmark { display: grid; }
    .search-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 15px; padding: 13px 3px 3px; border: 0; background: transparent; color: var(--green-dark); font-size: 14px; font-weight: 800; }
    .search-toggle span:last-child { color: var(--coral); font-size: 21px; line-height: 1; }
    .search-box { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 17px; }
    .search-box[hidden] { display: none; }
    .search-field { display: flex; align-items: center; gap: 8px; border: 1.5px solid #cddcd0; border-radius: 14px; padding: 0 13px; background: #fff; }
    .search-icon { color: var(--green); font-size: 19px; }
    .search-field input { border: 0; outline: 0; background: transparent; min-height: 45px; width: 100%; font-size: 14px; color: var(--ink); }
    .search-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 258px; overflow-y: auto; gap: 9px; margin-top: 11px; padding: 3px 2px 3px 0; }
    .search-results .lang-card { min-height: 64px; border-radius: 15px; }
    .search-results .lang-flower { width: 31px; height: 31px; flex-basis: 31px; font-size: 19px; }
    .empty-results { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 13px; }
    .outcome { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin-top: 22px; padding: 25px 29px; border: 1px solid #d8e7d8; border-radius: 27px; background: var(--mint); }
    .outcome::after { content: '✿'; position: absolute; right: 24%; bottom: -23px; color: #d4e8cf; font-size: 86px; opacity: .7; pointer-events: none; }
    .outcome > * { position: relative; z-index: 1; }
    .outcome h3 { margin: 5px 0 6px; font-size: 23px; letter-spacing: -.04em; }
    .outcome p { margin: 0; max-width: 700px; color: var(--muted); font-size: 13px; line-height: 1.65; }
    .status-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); font-size: 12px; font-weight: 800; }
    .status-pill::before { content: ''; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }
    .outcome-button { border: 1px solid #c9d9cd; border-radius: 999px; padding: 12px 18px; color: #80958b; background: rgba(255,255,255,.6); font-size: 13px; font-weight: 800; cursor: not-allowed; white-space: nowrap; }
    .outcome-button[hidden] { display: none; }
    .outcome-button.is-ready { background: var(--green); border-color: var(--green); color: #fff; cursor: pointer; text-decoration: none; }
    .outcome-button.is-ready:hover { background: var(--green-dark); }
    .below-outcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 2px 0; font-size: 12px; color: var(--muted); }
    .reset-button { border: 0; padding: 6px 0; color: var(--green-dark); background: transparent; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
    .teacher-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 80px; padding: 25px 29px; border: 1px solid var(--line); border-radius: 27px; background: var(--paper); }
    .teacher-card h3 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.04em; }
    .teacher-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
    .teacher-card button { border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--muted); padding: 11px 17px; white-space: nowrap; font-size: 12px; font-weight: 800; cursor: not-allowed; }
    .teacher-card h3 span { font-size: 11px; color: var(--coral); border: 1px solid #f0d2c7; background: #fff5f0; padding: 5px 8px; margin-left: 9px; border-radius: 999px; vertical-align: 3px; white-space: nowrap; }
    footer { border-top: 1px solid var(--line); color: var(--muted); padding: 22px 0 36px; font-size: 12px; line-height: 1.6; }
    @media (max-width: 960px) {
      .hero { min-height: 470px; }
      .hero h1 { font-size: 53px; }
      .hero-copy { padding-left: 0; }
      .steps { gap: 14px; }
      .step-panel { padding: 23px; }
      .lang-card { padding: 10px; gap: 8px; }
      .lang-card.is-selected { padding: 9.5px; }
      .lang-flower { width: 31px; height: 31px; flex-basis: 31px; font-size: 18px; }
    }
    @media (max-width: 720px) {
      .site-header, .container { width: calc(100% - 32px); }
      .site-header { height: 74px; }
      .brand-name { font-size: 21px; }
      .brand-name small { font-size: 10px; }
      .brand-flower { font-size: 26px; }
      .header-link { display: none; }
      .preview-tag { font-size: 10px; padding: 8px 10px; }
      .hero { display: flex; flex-direction: column; gap: 0; padding: 42px 0 0; min-height: 0; }
      .hero-copy { width: 100%; padding: 0 8px; }
      .hero h1 { font-size: clamp(46px, 12vw, 63px); margin: 19px 0 14px; }
      .hero-copy > p { font-size: 15px; line-height: 1.7; }
      .hero-note { margin-top: 18px; font-size: 12px; }
      .hero-art { width: 100%; max-width: 490px; aspect-ratio: 1; margin-top: 7px; }
      .hero-art img { width: 100%; max-height: 370px; }
      .selection-section { padding: 35px 0 39px; }
      .section-intro { display: block; margin-bottom: 19px; }
      .section-intro h2 { font-size: 32px; margin-top: 11px; word-break: keep-all; }
      .section-intro p { margin-top: 9px; font-size: 13px; }
      .steps { grid-template-columns: 1fr; gap: 14px; }
      .step-panel { padding: 22px; border-radius: 24px; }
      .step-panel h3 { margin-top: 17px; font-size: 23px; }
      .step-help { min-height: 0; margin-bottom: 16px; font-size: 13px; }
      .lang-card { min-height: 70px; }
      .lang-text strong { white-space: normal; overflow: visible; text-overflow: clip; font-size: 12px; line-height: 1.25; }
      .outcome h3 { word-break: keep-all; }
      .outcome { grid-template-columns: 1fr; padding: 22px; border-radius: 23px; gap: 15px; }
      .outcome-button { width: fit-content; }
      .outcome::after { right: 1%; }
      .outcome-button[hidden] { display: none; }
    .outcome-button.is-ready { background: var(--green); border-color: var(--green); color: #fff; cursor: pointer; text-decoration: none; }
    .outcome-button.is-ready:hover { background: var(--green-dark); }
    .below-outcome { align-items: start; font-size: 11px; }
      .teacher-card { align-items: start; flex-direction: column; padding: 22px; border-radius: 23px; margin-bottom: 45px; }
    }
    @media (max-width: 370px) {
      .brand-name small { display: none; }
      .language-grid, .search-results { gap: 7px; }
      .lang-card { min-height: 67px; padding: 8px; }
      .lang-card.is-selected { padding: 7.5px; }
      .lang-flower { width: 27px; height: 27px; flex-basis: 27px; font-size: 17px; }
      .lang-text strong { font-size: 12px; }
    }
  

/* Existing page-language and install controls, adapted to the approved v7 header. */
a.teacher-sign-in { display:inline-flex; align-items:center; justify-content:center; border:1px solid #c9d9cd; border-radius:999px; background:var(--mint); color:var(--green-dark); padding:11px 17px; white-space:nowrap; font-size:12px; font-weight:800; text-decoration:none; }
a.teacher-sign-in:hover { background:#dcecdf; }
.header-side { gap:12px; }
.ui-locale-control { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; font-weight:700; white-space:nowrap; }
.ui-locale-control select, .utility-control { min-height:42px; border:1px solid #d6e2d5; border-radius:999px; padding:9px 12px; background:var(--paper); color:var(--green-dark); font:inherit; font-size:12px; font-weight:750; }
.ui-locale-control select { max-width:153px; cursor:pointer; }
.utility-control { display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
.utility-control:hover { background:var(--mint); }
.utility-control[hidden] { display:none; }
.install-short { display:none; }
.utility-dialog { width:min(480px,calc(100% - 36px)); border:1px solid var(--line); border-radius:24px; padding:27px; color:var(--ink); background:var(--paper); box-shadow:var(--shadow); }
.utility-dialog::backdrop { background:rgba(25,59,53,.28); }
.utility-dialog h2 { margin:0 0 15px; font-size:23px; letter-spacing:-.035em; }
.utility-dialog p { color:var(--muted); line-height:1.8; font-size:14px; }
.utility-dialog button { margin-top:8px; }
@media(max-width:960px) { .header-link { display:none; } }
@media(max-width:720px) { .header-side { gap:7px; } .ui-locale-control > span { display:none; } .ui-locale-control select { width:105px; max-width:105px; padding:8px; font-size:11px; } .utility-control { min-height:40px; padding:8px 10px; font-size:11px; } .install-label { display:none; } .install-short { display:inline; } }
@media(max-width:370px) { .header-side { gap:5px; } .ui-locale-control select { width:94px; max-width:94px; } .utility-control { padding:8px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .lang-card { transition:none; } }

select:focus-visible { outline:3px solid var(--coral); outline-offset:3px; }
@media(max-width:370px) { #install-trigger { width:40px; min-width:40px; padding:8px; } #install-trigger .install-short { display:none; } }
