@layer reset, tokens, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: light; }
  body, h1, h2, h3, p, ol, ul { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button { border: 0; }
}

@layer tokens {
  /* 시안-ref-codex-1-booking-dashboard 팔레트 */
  :root {
    --page: #e8e9ee;
    --app-bg: #f8f8fa;
    --surface: #ffffff;
    --surface-2: #efeff2;
    --ink: #16181d;
    --muted: #686e78;
    --line: #e7e7ea;
    --primary: #ffbf1f;
    --primary-ink: #16181d;
    --sky: #bfddf1;
    --sky-ink: #31576f;
    --teal: #1f766f;
    --teal-soft: #e3f4ef;
    --mint: #d9eee8;
    --mint-dot: #62c3b5;
    --coral: #f47c72;
    --rose: #d45a65;
    --pink: #fbe1e1;
    --peach: #ffe4d3;
    --cream: #fff1c8;
    --lilac: #e6e3f5;
    --danger: #e45a59;
    --success: #1f766f;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 22px;
    --shadow: 0 20px 55px rgb(39 49 67 / 12%);
    --card-shadow: 0 4px 14px rgb(39 49 67 / 8%);
    --font: "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  }
  html[data-variant="B"] {
    --app-bg: #f4f8f6; --primary: #6cc7b4; --sky: #cde8e0; --sky-ink: #23574d;
    --pink: #e9e6f5; --rose: #7a6fc0; --cream: #ddf0e9;
  }
  html[data-variant="C"] {
    --app-bg: #faf6f1; --primary: #ffab66; --sky: #f4d9c0; --sky-ink: #6d4526;
    --mint: #e9e3d8; --teal-soft: #f2ece1; --cream: #ffe6cc;
  }
}

@layer base {
  body {
    min-width: 320px;
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.45;
  }
  button, a, input, select, textarea { min-height: 44px; }
  button { color: inherit; cursor: pointer; }
  button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary), #000 25%);
    outline-offset: 2px;
  }
  h1, h2, h3 { line-height: 1.18; text-wrap: balance; letter-spacing: -.03em; }
  p { text-wrap: pretty; }
}

@layer components {
  .prototype-shell { min-height: 100vh; display: grid; place-items: center; grid-template-columns: minmax(260px, 410px) 430px; gap: 64px; padding: 40px; }
  .prototype-note { max-width: 390px; }
  .prototype-note .eyebrow { display: inline-block; margin-bottom: 20px; font-size: 12px; font-weight: 850; letter-spacing: .13em; color: var(--sky-ink); }
  .prototype-note h1 { font-size: clamp(40px, 4.5vw, 68px); margin-bottom: 24px; }
  .prototype-note > p { color: #4d525b; font-size: 17px; }
  .prototype-note ol { margin: 28px 0; padding-left: 24px; display: grid; gap: 10px; font-weight: 760; }
  .prototype-note .prototype-warning { font-size: 13px; color: var(--muted); }

  .device { width: min(100%, 430px); height: min(890px, calc(100vh - 32px)); min-height: 640px; position: relative; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: var(--app-bg); border: 9px solid #16181d; border-radius: 42px; box-shadow: var(--shadow); }
  .app-header { min-height: 80px; padding: 18px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); z-index: 2; }
  .app-header h1 { font-size: 22px; font-weight: 800; }
  .header-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .greeting h1 { font-size: 24px; font-weight: 800; }
  .greeting p { margin-top: 3px; color: var(--muted); font-size: 12px; }
  .header-action, .back-button { width: 44px; height: 44px; min-height: 44px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; font-weight: 850; }
  .avatar-button { width: 44px; height: 44px; min-height: 44px; flex: none; border-radius: 50%; background: #ffe8a8; display: grid; place-items: center; overflow: hidden; }
  .avatar-button img { width: 100%; height: 100%; object-fit: cover; }
  .avatar-button svg { width: 30px; height: 30px; }
  .header-kicker { display: block; color: var(--muted); font-size: 11px; letter-spacing: .07em; margin-bottom: 3px; font-weight: 750; }
  .app-main { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 116px; scrollbar-width: none; }
  .app-main::-webkit-scrollbar { display: none; }

  .bottom-nav { min-height: 82px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; border-top: 1px solid var(--line); background: var(--surface); z-index: 3; }
  .nav-button { min-width: 0; border-radius: 14px; background: transparent; display: grid; place-items: center; align-content: start; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 780; }
  .nav-button .nav-icon { width: 60px; height: 34px; border-radius: 999px; display: grid; place-items: center; }
  .nav-button .nav-icon svg { width: 23px; height: 23px; }
  .nav-button.active { color: var(--ink); }
  .nav-button.active .nav-icon { background: var(--primary); }

  .stack { min-width: 0; display: grid; gap: 14px; }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 10px 4px 0; }
  .section-heading h2 { font-size: 18px; font-weight: 800; }
  .text-button { min-height: 36px; padding: 4px 2px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
  .card { border: 0; border-radius: var(--radius); background: var(--surface); padding: 17px; box-shadow: var(--card-shadow); }

  /* ===== 홈 히어로: 하늘색 다음 수업 카드 ===== */
  .hero-card { position: relative; min-height: 200px; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--sky); padding: 22px 20px; }
  .hero-art { position: absolute; top: 0; right: -8%; width: 62%; height: 100%; object-fit: cover; object-position: center; opacity: .34; pointer-events: none; }
  .hero-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--sky) 34%, color-mix(in srgb, var(--sky), transparent 22%) 58%, color-mix(in srgb, var(--sky), transparent 78%) 100%); pointer-events: none; }
  .hero-card > :not(.hero-art) { position: relative; z-index: 2; }
  .hero-kicker { display: block; margin-bottom: 6px; color: var(--sky-ink); font-size: 12px; font-weight: 750; }
  .hero-card h2 { max-width: 260px; font-size: 22px; font-weight: 800; }
  .meta-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 26px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgb(255 255 255 / 78%); font-size: 12px; font-weight: 750; }
  .dot-clock { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--coral); position: relative; }
  .dot-clock::after { content: ""; position: absolute; left: 6px; top: 3px; width: 1.6px; height: 5px; background: #fff; border-radius: 1px; box-shadow: 2px 3.4px 0 -0.2px #fff; }
  .hero-sub { margin: 10px 0 14px; color: #46586a; font-size: 12px; }
  .hero-cta { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 13px; font-weight: 800; }
  .hero-cta::after { content: "›"; font-size: 16px; font-weight: 800; }

  .pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / 78%); font-size: 12px; font-weight: 800; }
  .pill.success { color: var(--success); background: var(--teal-soft); }
  .pill.warning { color: #8a5b00; background: var(--cream); }
  .pill.neutral { background: var(--surface-2); color: var(--muted); }

  .primary-button, .secondary-button { width: 100%; min-height: 50px; border-radius: 16px; padding: 12px 18px; font-weight: 800; }
  .primary-button { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary), transparent 62%); }
  .primary-button:active { transform: translateY(1px); box-shadow: none; }
  .primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
  .secondary-button { background: var(--surface); border: 1px solid var(--line); }
  .danger-button { width: 100%; min-height: 50px; padding: 12px 18px; border-radius: 16px; background: #fff1ef; color: #a83c34; border: 1px solid #f3cbc6; font-weight: 800; }
  .action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .compact-button { width: auto; min-height: 42px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }

  .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-card { min-height: 112px; padding: 15px; border-radius: 19px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); box-shadow: var(--card-shadow); }
  .quick-card strong { font-size: 15px; }
  .quick-card span { color: var(--muted); font-size: 11.5px; }
  .quick-card.has-art { min-height: 158px; overflow: hidden; padding: 0 0 13px; }
  .quick-card.has-art strong, .quick-card.has-art > span { padding-inline: 13px; }
  .quick-art { width: 100%; height: 86px; object-fit: cover; display: block; opacity: .92; filter: saturate(.88); }
  .quick-card.mint { background: var(--mint); box-shadow: none; }
  .quick-card.apricot { background: var(--peach); box-shadow: none; }
  .quick-card.lilac { background: var(--lilac); box-shadow: none; }
  .quick-card.sky { background: var(--sky); box-shadow: none; }
  .quick-mark { font-size: 26px; font-family: Georgia, serif; font-weight: 800; }

  /* ===== 수업 준비: 숙제/후기 2단 카드 ===== */
  .prep-card { min-height: 152px; padding: 16px; border-radius: 19px; text-align: left; display: flex; flex-direction: column; gap: 4px; box-shadow: none; }
  .prep-card.pink { background: var(--pink); }
  .prep-card.mint { background: var(--mint); }
  .prep-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 8px; }
  .prep-icon { width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / 72%); display: grid; place-items: center; }
  .prep-icon svg { width: 18px; height: 18px; }
  .prep-card strong { font-size: 14px; font-weight: 800; }
  .prep-card .prep-sub { color: #5c636d; font-size: 12px; }
  .prep-bar { margin-top: 10px; height: 8px; border-radius: 4px; background: #fff; overflow: hidden; }
  .prep-bar i { display: block; height: 100%; border-radius: 4px; background: var(--rose); }
  .prep-foot { margin-top: 5px; text-align: right; color: var(--muted); font-size: 10px; }
  .star-row { display: inline-flex; gap: 2px; color: var(--primary); }
  .star-row svg { width: 15px; height: 15px; }

  .home-week { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .home-day { width: 100%; min-width: 0; min-height: 62px; padding: 7px 2px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; gap: 2px; box-shadow: var(--card-shadow); }
  .home-day span { color: var(--muted); font-size: 10px; }
  .home-day strong { font-size: 15px; }
  .home-day i { width: 4px; height: 4px; border-radius: 50%; background: #c3c6cc; }
  .home-day i.on { background: var(--mint-dot); }
  .home-day.selected { background: var(--primary); box-shadow: none; }
  .home-day.selected span { color: var(--ink); }
  .home-day.selected i { background: var(--ink); }
  .home-slots { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .home-slots .slot { padding-inline: 7px; }

  .travel-feature { overflow: hidden; padding: 0 0 18px; }
  .travel-feature img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; }
  .travel-feature > div { display: grid; gap: 9px; padding: 18px 18px 12px; }
  .travel-feature > div .pill { justify-self: start; }
  .travel-feature > .primary-button { width: calc(100% - 36px); margin-inline: 18px; }

  .share-card { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; align-items: center; }
  .share-card h3 { margin-top: 9px; }
  .share-card img { width: 92px; height: 92px; padding: 6px; border-radius: 14px; background: #fff; }
  .share-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .share-actions .primary-button, .share-actions .secondary-button { min-width: 0; }

  /* ===== 담당 선생님 카드 ===== */
  .teacher-feature { position: relative; padding: 17px 17px 15px; }
  .tf-kicker { display: block; color: var(--muted); font-size: 12px; }
  .teacher-feature h3 { margin-top: 4px; font-size: 17px; font-weight: 800; }
  .tf-photo { position: absolute; top: 16px; right: 16px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--peach); }
  .tf-check { position: absolute; top: 86px; right: 24px; width: 26px; height: 26px; border-radius: 50%; background: #f3f3f5; display: grid; place-items: center; }
  .tf-check svg { width: 14px; height: 14px; }
  .tf-quote { margin: 10px 0 12px; color: var(--muted); font-size: 12px; }
  .tf-actions { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
  .tf-actions .primary-button, .tf-actions .secondary-button { width: auto; min-width: 0; min-height: 44px; border-radius: 999px; font-size: 13px; padding: 9px 10px; }
  .tag.jlpt { background: var(--cream); color: var(--ink); }
  .tag.talk { background: var(--teal-soft); color: var(--ink); }

  .teacher-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
  .photo-placeholder { width: 64px; aspect-ratio: 1; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--sky); color: var(--sky-ink); font-size: 11px; font-weight: 850; }
  .photo-placeholder.large { width: 104px; margin: auto; }
  .teacher-photo { width: 64px; aspect-ratio: 1; display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--peach); }
  .teacher-photo.large { width: 140px; margin: auto; }
  .class-art { width: calc(100% + 34px); height: 168px; margin: -17px -17px 2px; border-radius: var(--radius) var(--radius) 12px 12px; object-fit: cover; opacity: .95; filter: saturate(.9); }
  .teacher-main { min-width: 0; }
  .teacher-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
  .teacher-top h3 { font-size: 17px; font-weight: 800; }
  .teacher-copy { margin: 6px 0 10px; color: var(--muted); font-size: 12.5px; }
  .tag-row, .slot-row { display: flex; flex-wrap: wrap; gap: 7px; }
  .tag { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: #4c515a; font-size: 11px; font-weight: 780; }
  .teacher-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 3px; }
  .teacher-actions .primary-button, .teacher-actions .secondary-button { border-radius: 999px; min-height: 46px; font-size: 13px; }

  /* ===== 시간 칩: 틸 시스템 ===== */
  .slot { min-height: 38px; padding: 8px 17px; border: 0; border-radius: 999px; background: var(--teal-soft); font-size: 13px; font-weight: 750; }
  .slot.selected { background: var(--teal); color: #fff; }
  .slot.ghost { background: var(--surface-2); color: var(--muted); }

  .tab-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: var(--surface-2); border-radius: 999px; }
  .tab-switch button { border-radius: 999px; background: transparent; font-size: 13px; font-weight: 800; color: var(--muted); }
  .tab-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 3px 12px rgb(39 49 67 / 8%); }

  /* ===== 날짜: 흰 셀 + 옐로 선택 + 가용 점 ===== */
  .date-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .date-row .day-name { text-align: center; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
  .date-button { min-width: 0; min-height: 62px; padding: 8px 2px 7px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); display: grid; place-items: center; align-content: center; gap: 3px; }
  .date-button span { color: var(--muted); font-size: 10px; }
  .date-button strong { font-size: 15px; font-weight: 800; }
  .date-button .dot { width: 4px; height: 4px; border-radius: 50%; background: #b9bdc5; }
  .date-button .dot.on { background: var(--mint-dot); }
  .date-button.selected { background: var(--primary); box-shadow: none; }
  .date-button.selected span { color: var(--primary-ink); }
  .date-button.selected .dot { background: var(--primary-ink); }

  .stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
  .step { height: 5px; border-radius: 999px; background: var(--line); }
  .step.done { background: var(--primary); }
  .form-group { display: grid; gap: 7px; }
  .form-group label, .field-label { font-size: 13px; font-weight: 800; }
  .form-group input, .form-group textarea, .form-group select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 13px; color: var(--ink); }
  .form-group textarea { min-height: 92px; resize: vertical; }
  .choice-list { display: grid; gap: 9px; }
  .choice-card { min-height: 64px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
  .choice-card strong, .choice-card span { display: block; }
  .choice-card span { margin-top: 3px; color: var(--muted); font-size: 12px; }
  .choice-card.selected { border-color: var(--ink); background: var(--cream); }
  .choice-card.selected span { color: currentColor; }
  .check-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 13px; }
  .check-row input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--primary); }
  .summary-list { display: grid; gap: 10px; }
  .summary-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .summary-row span { color: var(--muted); }
  .summary-row strong { text-align: right; }

  .login-role-grid { display: grid; gap: 10px; }
  .role-card { min-height: 84px; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); text-align: left; }
  .role-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--mint); font-weight: 900; }
  .role-card:nth-child(2) .role-symbol { background: var(--sky); }
  .role-card:nth-child(3) .role-symbol { background: var(--peach); }
  .role-card p { color: var(--muted); font-size: 12px; }

  .metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 96px; border-radius: 18px; padding: 15px; background: var(--surface); box-shadow: var(--card-shadow); }
  .metric strong { display: block; margin-top: 8px; font-size: 25px; }
  .list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .list-row:last-child { border-bottom: 0; }
  .list-row p { color: var(--muted); font-size: 12px; }
  .empty-state { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: var(--muted); }
  .empty-state strong { color: var(--ink); font-size: 20px; }
  .success-mark { width: 82px; height: 82px; margin: 14px auto; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 36px; font-weight: 900; }

  .status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .status-button { min-width: 0; min-height: 44px; padding: 8px 5px; border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; }
  .status-button.active { background: var(--primary); color: var(--ink); }
  .progress-line { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
  .progress-line i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

  .ai-room { min-height: 78px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--sky); text-align: left; }
  .ai-room .ai-orb { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 18px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 900; }
  .ai-room strong, .ai-room small { display: block; }
  .ai-room small { margin-top: 3px; color: var(--sky-ink); font-size: 11px; }
  .chat-card { display: grid; gap: 14px; background: #f6f8fa; }
  .message { max-width: 86%; display: grid; gap: 6px; }
  .message p { padding: 11px 13px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 13px; box-shadow: var(--card-shadow); }
  .message button { justify-self: start; min-height: 30px; padding: 4px 8px; background: transparent; color: var(--teal); font-size: 10px; font-weight: 800; }
  .message.sent { justify-self: end; }
  .message.sent p { border-radius: 16px 16px 4px 16px; background: var(--teal-soft); }
  .message.sent button { justify-self: end; }
  .message.translated small { padding-inline: 10px; color: var(--muted); font-size: 11px; }
  .chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 6px; }
  .chat-compose input { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 12px; }
  .chat-compose button { padding: 8px 13px; border-radius: 14px; background: var(--primary); font-weight: 800; }

  .tweak-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: #16181d; color: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 850; }
  .tweak-panel { position: fixed; right: 22px; bottom: 78px; z-index: 10; width: min(300px, calc(100vw - 44px)); padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
  .tweak-panel p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
  .variant-options { display: grid; gap: 7px; }
  .variant-options button { min-height: 42px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); text-align: left; font-size: 12px; font-weight: 760; }
  .variant-options button[aria-checked="true"] { background: var(--primary); }
  .toast { position: fixed; left: 50%; bottom: 30px; z-index: 20; max-width: calc(100vw - 32px); transform: translate(-50%, 25px); padding: 11px 15px; border-radius: 999px; background: #16181d; color: #fff; opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
}

@layer utilities {
  .muted { color: var(--muted); }
  .small { font-size: 12px; }
  .center { text-align: center; }
  .spacer-8 { height: 8px; }
  .spacer-16 { height: 16px; }
  .hide { display: none !important; }
}

@media (max-width: 840px) {
  .prototype-shell { display: block; padding: 0; }
  .prototype-note { display: none; }
  .device { width: 100%; height: 100dvh; min-height: 600px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .tweak-toggle { right: 14px; bottom: 96px; }
  .tweak-panel { right: 14px; bottom: 148px; }
}

@media (max-width: 360px) {
  .app-main { padding-inline: 12px; }
  .hero-card { min-height: 190px; padding-inline: 17px; }
  .quick-grid { gap: 9px; }
  .date-row { gap: 4px; }
  .slot { padding-inline: 13px; }
  .teacher-card { grid-template-columns: 56px 1fr; }
  .photo-placeholder, .teacher-photo { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
