/* ============================================================
   pages.css - login / landing / sessions 공용 스타일

   recorder/viewer 페이지는 style.css 사용.
   각 페이지는 <body class="page-XXX">로 스코프 구분.
   ============================================================ */

@font-face {
  font-family: 'Pretendard';
  src: url('/static/fonts/PretendardVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

/* One icon language for every app-shell theme switch. The glyph represents the next action. */
:is(.header__theme-btn, .theme-btn, .app-login-theme, #btnTheme.header__login-btn) {
  font-size: 0 !important;
}

:is(.header__theme-btn, .theme-btn, .app-login-theme, #btnTheme.header__login-btn)::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E") center / contain no-repeat;
}

:root[data-theme="light"] :is(.header__theme-btn, .theme-btn, .app-login-theme, #btnTheme.header__login-btn)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z'/%3E%3C/svg%3E");
}

.legacy-wordmark {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin: -4px 0 8px;
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.legacy-wordmark:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 70%, transparent);
  outline-offset: 2px;
}

/* ===== 공통 토큰 ===== */
:root {
  --bg:          #101112;
  --surface:     #1a1c1f;
  --surface2:    #24272b;
  --border:      #363a41;
  --text:        #f1f3f5;
  --muted:       #a6adb7;
  --accent:      #4a9eff;
  --accent-hv:   #6bb3ff;
  --accent-bg:   rgba(74,158,255,.12);
  --action-primary-bg: #075fca;
  --action-primary-hv: #064fa8;
  --action-primary-text: #ffffff;
  --danger:      #ff4a4a;
  --danger-bg:   rgba(255,74,74,.15);
  --success:     #4aff7a;
  --radius:      8px;
  --font: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          #f4f5f7;
  --surface:     #ffffff;
  --surface2:    #f7f8fa;
  --border:      #dbe1e8;
  --text:        #18202c;
  --muted:       #5f6b7a;
  --accent:      #0071e3;
  --accent-hv:   #0077ed;
  --accent-bg:   rgba(0,113,227,.08);
  --action-primary-bg: #0064d8;
  --action-primary-hv: #0053b5;
  --action-primary-text: #ffffff;
  --danger:      #d92d20;
  --danger-bg:   rgba(255,59,48,.10);
  --success:     #34c759;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

/* ===== 공통 테마 버튼 (login/landing 공용) ===== */
.theme-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  z-index: 10;
}
.theme-btn:hover { opacity: 1; }


/* ============================================================
   LOGIN PAGE  (body.page-login)
   ============================================================ */

body.page-login {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-login .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.page-login .header {
  text-align: center;
}
body.page-login .header .icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface2);
  color: var(--accent);
}
body.page-login .header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
body.page-login .header p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

body.page-login .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.page-login .field label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
body.page-login .field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
body.page-login .field input:focus {
  border-color: var(--accent);
}

body.page-login .capslock-warning {
  display: none;
  margin-top: -0.35rem;
  margin-bottom: 0.15rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 196, 0, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 196, 0, 0.08);
  color: #f5c451;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.page-login .capslock-warning.visible {
  display: block;
}

body.page-login button[type="submit"] {
  background: var(--action-primary-bg);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  padding: 0.7rem;
  transition: background-color 0.15s, opacity 0.15s;
  width: 100%;
}
body.page-login button[type="submit"]:hover { background: var(--action-primary-hv); }
body.page-login button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

body.page-login .error {
  background: rgba(255,74,74,0.08);
  border: 1px solid rgba(255,74,74,0.3);
  border-radius: var(--radius);
  color: var(--danger);
  display: none;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  text-align: center;
}
body.page-login .error.visible { display: block; }

/* S5-04: Google OAuth 버튼 */
body.page-login .btn-google {
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  color: #3c4043;
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  gap: 0.65rem;
  justify-content: center;
  padding: 0.65rem;
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
body.page-login .btn-google:hover {
  background: #f5f5f5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
body.page-login .btn-google svg { flex-shrink: 0; }
/* hidden 속성이 display:flex보다 우선하도록 강제 */
body.page-login .btn-google[hidden],
body.page-login .divider[hidden] { display: none; }

[data-theme="light"] body.page-login .btn-google {
  border-color: #c0c0c0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

body.page-login .divider {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}
body.page-login .divider::before,
body.page-login .divider::after {
  background: var(--border);
  content: '';
  flex: 1;
  height: 1px;
}
body.page-login .divider span {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}


/* ============================================================
   LANDING PAGE  (body.page-landing)
   ============================================================ */

body.page-landing {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.page-landing .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 40;
}
body.page-landing .header__brand {
  min-width: 0;
}
body.page-landing .header__brand-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
body.page-landing .header__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

body.page-login .header .icon svg {
  display: block;
  width: 46px;
  height: 46px;
}
body.page-landing .header__theme-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  line-height: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
body.page-landing .header__theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
body.page-landing .header__login-btn {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
body.page-landing .header__login-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
body.page-landing .header__dashboard-btn {
  color: var(--text);
}

body.page-landing .main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

body.page-landing .section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 2px;
}

body.page-landing .tunnel-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--accent, #4f8cff);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 28px;
}
body.page-landing .tunnel-banner__icon { font-size: 1.3em; }
body.page-landing .tunnel-banner__text { flex: 1; font-weight: 600; font-size: .95rem; display: flex; flex-direction: column; gap: 2px; }
body.page-landing .tunnel-banner__sub { font-weight: 400; font-size: .78rem; color: var(--color-text-muted, #888); }
body.page-landing .tunnel-banner__link { white-space: nowrap; text-decoration: none; }

/* The home banner and quota summary are one information block. Keep the
   hand-off compact instead of leaving a full card-sized void between them. */
body.page-home .tunnel-banner { margin-bottom: 14px; }

body.page-landing .rooms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

body.page-landing .room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
body.page-landing .room-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(74,158,255,0.08);
  transform: translateY(-1px);
}
body.page-landing .room-card--sortable {
  padding-left: 16px;
}
body.page-landing .room-card__handle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
body.page-landing .room-card__handle:hover {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
body.page-landing .room-card__handle:active,
body.page-landing .room-card--dragging .room-card__handle {
  cursor: grabbing;
}
body.page-landing .room-card__handle-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
body.page-landing .room-card--dragging {
  opacity: 0.7;
}
body.page-landing .room-card--order-saved {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
  background: color-mix(in srgb, var(--accent-bg) 44%, var(--surface));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent),
    0 8px 22px color-mix(in srgb, var(--accent) 11%, transparent);
  animation: room-order-settle 1.6s ease-out both;
}
@keyframes room-order-settle {
  0% {
    border-color: color-mix(in srgb, var(--accent) 86%, var(--border));
    background: color-mix(in srgb, var(--accent-bg) 72%, var(--surface));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  100% {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(74, 158, 255, 0.08);
  }
}
body.page-landing .room-card--drop-before::before,
body.page-landing .room-card--drop-after::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
  pointer-events: none;
  z-index: 2;
}
body.page-landing .room-card--drop-before::before {
  top: -8px;
}
body.page-landing .room-card--drop-after::after {
  bottom: -8px;
}
body.page-landing .room-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
body.page-landing .room-card__info { flex: 1; min-width: 0; }
body.page-landing .room-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-landing .room-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
body.page-landing .room-card__policy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
  word-break: keep-all;
}
body.page-landing .room-card__participants {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 4px;
}
body.page-landing .room-card__participants-summary {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-strong);
}
body.page-landing .room-card__participants-line {
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--muted);
  word-break: keep-all;
}
body.page-landing .badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 3px;
}
body.page-landing .badge--recording {
  background: var(--danger-bg);
  color: var(--danger);
  animation: pulse-recording 2s ease-in-out infinite;
}
@keyframes pulse-recording {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
body.page-landing .badge--viewers { background: var(--accent-bg); color: var(--accent); }
body.page-landing .badge--room-type {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 12%, var(--border));
}
body.page-landing .badge--room-type-shared {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
body.page-landing .badge--room-type-classroom {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--text);
}
body.page-landing .room-card__actions,
body.page-landing .room-card__primary-actions,
body.page-landing .room-card__secondary-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

body.page-landing .btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}
body.page-landing a.btn,
body.page-landing a.btn:link,
body.page-landing a.btn:visited,
body.page-landing a.btn:hover,
body.page-landing a.btn:active {
  text-decoration: none;
}
body.page-landing .btn__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.page-landing .btn--primary {
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
  box-shadow: 0 2px 8px rgba(74,158,255,0.25);
}
body.page-landing .btn--primary:hover {
  background: var(--action-primary-hv);
  box-shadow: 0 4px 14px rgba(74,158,255,0.35);
  transform: translateY(-1px);
}
body.page-landing .btn--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
body.page-landing .btn--secondary:hover { border-color: #555; }
body.page-landing .btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.page-landing .btn--ghost:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-bg);
}
body.page-landing .btn--danger-outline {
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  color: var(--muted);
  border-color: var(--border);
  font-size: 0;
  line-height: 1;
}
body.page-landing .room-card__actions .btn {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.76rem;
}
body.page-landing .room-card__actions .btn--primary,
body.page-landing .room-card__actions .btn--secondary,
body.page-landing .room-card__actions .btn--share {
  background: transparent;
  box-shadow: none;
  color: var(--text);
}
body.page-landing .room-card__actions .btn--primary {
  border: 1px solid;
  border-color: var(--accent);
}
body.page-landing .room-card__actions .btn--secondary {
  border: 1px solid;
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}
body.page-landing .room-card__actions .btn--share {
  border: 1px solid var(--border);
  color: var(--muted);
}
body.page-landing .room-card__actions .btn--primary:hover,
body.page-landing .room-card__actions .btn--secondary:hover,
body.page-landing .room-card__actions .btn--share:hover {
  background: transparent;
  color: var(--text);
  transform: none;
}
body.page-landing .room-card__actions .btn--share:hover {
  border-color: color-mix(in srgb, var(--text) 24%, var(--border));
}
body.page-landing .room-card__actions .btn--danger-outline {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
}
body.page-landing .room-card__actions .btn__icon {
  width: 14px;
  height: 14px;
}
body.page-landing .btn-delete-room {
  width: auto;
  min-width: 56px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--danger);
  border-color: rgba(255, 74, 74, 0.28);
  background: rgba(255, 74, 74, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
}
body.page-landing .btn--danger-outline:hover {
  color: var(--danger);
  border-color: rgba(255, 74, 74, 0.45);
  background: var(--danger-bg);
}
body.page-landing .btn:disabled { opacity: .45; cursor: not-allowed; }

body.page-landing .rooms-empty {
  text-align: center;
  padding: 40px 32px;
  color: var(--muted);
  font-size: .85rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
}
body.page-landing .rooms-loading {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: .85rem;
}

body.page-landing .create-section { margin-bottom: 40px; }
body.page-landing .create-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
body.page-landing .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
body.page-landing .form-group label { font-size: 0.72rem; color: var(--muted); }
body.page-landing .form-input {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
body.page-landing .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
body.page-landing .form-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: normal;
  text-transform: none;
}
body.page-landing .create-error {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--danger);
  min-height: 1.2em;
}

body.page-landing .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
body.page-landing .modal-overlay.visible,
body.page-landing .modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}
body.page-landing .modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  width: 360px;
  max-width: 90vw;
  transform: translateY(12px);
  transition: transform .2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
body.page-landing .modal-overlay.visible .modal,
body.page-landing .modal-overlay--visible .modal { transform: translateY(0); }
body.page-landing .modal__title  { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
body.page-landing .modal__subtitle {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 18px;
}
body.page-landing .modal__input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
body.page-landing .modal__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
body.page-landing .modal__field {
  display: grid;
  gap: 7px;
  color: var(--text-strong, var(--text));
  font-size: 0.78rem;
  font-weight: 800;
}
body.page-landing .modal__field .modal__input {
  margin-bottom: 10px;
}
body.page-landing .field-label {
  display: block;
  color: var(--text-strong, var(--text));
  font-size: 0.82rem;
  font-weight: 800;
}
body.page-landing .modal__actions { display: flex; gap: 8px; margin-top: 4px; }
body.page-landing .modal__btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s, transform .2s;
}
body.page-landing .modal__btn--primary {
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
  box-shadow: 0 2px 8px rgba(74,158,255,0.25);
}
body.page-landing .modal__btn--primary:hover {
  background: var(--action-primary-hv);
  box-shadow: 0 4px 14px rgba(74,158,255,0.35);
}
body.page-landing .modal__btn--cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
body.page-landing .modal__btn--cancel:hover { color: var(--text); border-color: #555; }
body.page-landing .modal__btn:disabled { opacity: .5; cursor: not-allowed; }
body.page-landing .modal__error {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--danger);
  text-align: center;
  min-height: 1.2em;
}
body.page-landing .room-share-modal {
  position: relative;
  width: 360px;
  padding: 24px;
}
body.page-landing .room-share-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.page-landing .room-share-modal__close:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 24%, var(--border));
}
body.page-landing .room-share-modal__qr {
  width: 188px;
  height: 188px;
  margin: 4px auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-align: center;
}
body.page-landing .room-share-modal__qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
body.page-landing .room-share-modal__room-code {
  margin: -8px auto 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
body.page-landing .room-share-modal__link-row {
  display: block;
  margin-bottom: 8px;
}
body.page-landing .room-share-modal__link {
  margin-bottom: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-landing .room-share-modal__copy,
body.page-landing .room-share-modal__send {
  min-width: 0;
  min-height: 40px;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}
body.page-landing .room-share-modal__copy {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
body.page-landing .room-share-modal__copy:hover {
  border-color: color-mix(in srgb, var(--text) 24%, var(--border));
}
body.page-landing .room-share-modal__copy--success {
  background: rgba(62, 187, 114, 0.12);
  border-color: rgba(62, 187, 114, 0.62);
  color: #2f9d5f;
}
body.page-landing .room-share-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}
body.page-landing .room-share-modal__send {
  border: 1px solid color-mix(in srgb, var(--text) 16%, var(--border));
  background: color-mix(in srgb, var(--text) 92%, var(--surface));
  color: var(--surface);
}
body.page-landing .room-share-modal__send:hover {
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
  background: var(--text);
}
body.page-landing .room-share-modal__send:active {
  transform: translateY(1px);
}
body.page-landing .room-share-modal__status {
  min-height: 1.35em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
body.page-landing .modal__radio-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
body.page-landing .modal__radio-label {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: .82rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
  user-select: none;
}
body.page-landing .modal__radio-label input { display: none; }
body.page-landing .modal__radio-label.checked {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}
body.page-landing .room-type-picker {
  align-items: stretch;
}
body.page-landing .modal--create-room {
  width: 560px;
  max-width: min(94vw, 560px);
}
body.page-landing .room-type-picker__item {
  flex: 1;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}
body.page-landing .room-type-picker__option {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 74px;
  align-content: center;
  padding: 10px 8px;
}
body.page-landing .room-type-picker__title {
  font-size: 0.82rem;
  font-weight: 700;
}
body.page-landing .room-type-picker__desc {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}
body.page-landing .room-type-picker__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 32px;
  margin: 0 auto;
  padding: 4px 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}
body.page-landing .room-type-picker__action[hidden] {
  display: none;
}
body.page-landing .room-type-picker__option--locked {
  border-style: dashed;
  background: var(--surface2);
  color: var(--muted);
  cursor: not-allowed;
}
body.page-landing .room-type-picker__option--locked::after {
  content: "잠김";
  position: absolute;
  top: 7px;
  right: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
}
body.page-home .room-type-picker__option--locked::after {
  content: none;
  display: none;
}
body.page-landing .room-type-picker__option--locked .room-type-picker__title {
  padding-inline: 24px;
}
body.page-landing .classroom-manager {
  width: 480px;
}
body.page-landing .classroom-manager__label,
body.page-landing .classroom-manager__section-title {
  display: block;
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}
body.page-landing .classroom-manager__notice {
  min-height: 96px;
  resize: vertical;
}
body.page-landing .classroom-manager__full-btn {
  width: 100%;
  margin-bottom: 4px;
}
body.page-landing .classroom-manager__members {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 2px 2px 8px;
}
body.page-landing .classroom-manager__empty {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
}
body.page-landing .classroom-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
body.page-landing .classroom-member-row__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}
body.page-landing .classroom-member-row__name {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-landing .classroom-member-row__meta {
  color: var(--muted);
  font-size: 0.72rem;
}
body.page-landing .classroom-member-row__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
body.page-landing .modal__error--success {
  color: #2f9d5f;
}

/* S5-06: 초대 코드 입력 */
body.page-landing .invite-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
body.page-landing .invite-form .form-input {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  flex: 1;
}
body.page-landing .btn--icon {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-family: var(--font);
  padding: 4px 7px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.page-landing .btn--icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

@media (max-width: 560px) {
  body.page-landing .create-form { flex-direction: column; }
  body.page-landing .room-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
  }
  body.page-landing .room-card__icon { font-size: 1.3rem; }
  body.page-landing .room-card--sortable {
    padding-left: 12px;
  }
  body.page-landing .room-card__handle {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    align-self: center;
  }
  body.page-landing .room-card__content,
  body.page-landing .room-card > .room-card__info,
  body.page-landing .room-card > .room-card__actions {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.page-landing .room-card__content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body.page-landing .room-card__name {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  body.page-landing .room-card__meta {
    white-space: nowrap;
    word-break: keep-all;
  }
  body.page-landing .room-card__policy {
    font-size: 0.7rem;
  }
  body.page-landing .room-type-picker {
    flex-direction: column;
  }
  body.page-landing .classroom-member-row {
    align-items: flex-start;
    flex-direction: column;
  }
  body.page-landing .room-card__actions {
    width: 100%;
    justify-content: space-between;
  }
  body.page-landing .room-card__primary-actions {
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
  }
  body.page-landing .room-card__primary-actions .btn {
    flex: 1;
    min-width: 0;
  }
  body.page-landing .room-card__primary-actions .btn--share {
    flex: 0 0 auto;
  }

  body.page-sessions .card-header { flex-wrap: wrap; gap: 12px; }
  body.page-sessions .card-header-controls { width: 100%; justify-content: flex-end; }
  body.page-sessions .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  body.page-sessions thead th,
  body.page-sessions tbody td { padding: 8px 12px; }
  body.page-landing .tutorial-grid {
    grid-template-columns: 1fr;
  }
  body.page-landing .tutorial-hero {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  body.page-landing .room-card__meta { font-size: var(--font-xs); }
  body.page-landing .section-title { font-size: 0.68rem; }
  body.page-landing .header {
    align-items: flex-start;
    gap: 12px;
  }
  body.page-landing .header__actions {
    gap: 6px;
  }
  body.page-public-landing .header,
  body.page-pricing .header {
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
  }
  body.page-public-landing .header__brand-link {
    flex: 0 0 auto;
  }
  body.page-public-landing .header__title {
    font-size: 1rem;
    line-height: 1.1;
  }
  body.page-public-landing .header__controls,
  body.page-pricing .header__actions {
    flex-wrap: nowrap;
    gap: 5px;
    max-width: calc(100vw - 124px);
  }
  body.page-public-landing .header__login-btn[href="/feedback"] {
    display: none;
  }
  body.page-public-landing .header__login-btn,
  body.page-pricing .header__login-btn {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
    word-break: keep-all;
  }
  body.page-public-landing .header__theme-btn,
  body.page-pricing .header__theme-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
  }
  body.page-landing .user-menu__name {
    max-width: 112px;
  }
}


/* ============================================================
   SESSIONS PAGE  (body.page-sessions)
   ============================================================ */

body.page-sessions {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
}

body.page-sessions .page-header {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
body.page-sessions .page-header h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
body.page-sessions .page-header .nav-links {
  display: flex;
  gap: 12px;
}
body.page-sessions .page-header a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
body.page-sessions .page-header a:hover { color: var(--accent); }

body.page-sessions .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
}
body.page-sessions .card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.page-sessions .card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.page-sessions .card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
body.page-sessions .badge-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--muted);
}

body.page-sessions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
body.page-sessions .btn:disabled { opacity: 0.45; cursor: default; }
body.page-sessions .btn-primary { background: var(--action-primary-bg); color: var(--action-primary-text); }
body.page-sessions .btn-primary:not(:disabled):hover { background: var(--action-primary-hv); }
body.page-sessions .btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
body.page-sessions .btn-danger:not(:disabled):hover { background: rgba(224,82,82,0.1); }
body.page-sessions .btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
body.page-sessions .btn-ghost:not(:disabled):hover {
  background: var(--surface2);
  color: var(--text);
}
body.page-sessions .btn-xs { padding: 4px 10px; font-size: 12px; }

/* 세션 표 래퍼 가로 스크롤 */
body.page-sessions #tableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.page-sessions table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
body.page-sessions thead th {
  padding: 10px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
body.page-sessions tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.1s;
}
body.page-sessions tbody tr:last-child { border-bottom: none; }
body.page-sessions tbody tr:hover { background: var(--surface2); }
body.page-sessions tbody td {
  padding: 12px 20px;
  vertical-align: middle;
}
body.page-sessions .td-ip   { font-family: 'Consolas', monospace; font-size: 13px; }
body.page-sessions .td-date { color: var(--muted); font-size: 13px; }
body.page-sessions .expires-soon { color: #f0a040; }
body.page-sessions .expires-ok   { color: var(--muted); }
body.page-sessions .badge-current {
  display: inline-block;
  background: rgba(74,158,255,0.15);
  border: 1px solid rgba(74,158,255,0.35);
  color: var(--accent);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}
body.page-sessions .td-actions { text-align: right; }

body.page-sessions .empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
body.page-sessions .empty-state p {
  margin-top: 8px;
  font-size: 13px;
}

body.page-sessions #toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: 320px;
  text-align: center;
}
body.page-sessions #toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
body.page-sessions #toast.ok    { border-color: var(--success); color: var(--success); }
body.page-sessions #toast.err   { border-color: var(--danger);  color: var(--danger);  }

body.page-sessions .refresh-indicator {
  font-size: 12px;
  color: var(--muted);
}


/* ============================================================
   Phase 3: inline style 정리 후 공용 규칙 보강
   ============================================================ */

/* login: form 필드 간격과 submit 여백 */
body.page-login form .field { margin-bottom: 1rem; }
body.page-login form button[type="submit"] { margin-top: 1rem; }

/* landing: header controls 공용 정렬 */
body.page-landing .header__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* landing: nowrap 유틸리티 (버튼이 줄바꿈되지 않게) */
body.page-landing .btn--nowrap {
  white-space: nowrap;
  flex-shrink: 0;
}

/* landing: 작은 form-group 폭 제한 */
body.page-landing .form-group--sm { max-width: 160px; }

/* landing: room-id 태그 크기 */
body.page-landing .room-id-tag { font-size: var(--font-xs); }

/* sessions: card-header controls 정렬 */
body.page-sessions .card-header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================================
   Onboarding Tooltip Overlay
   ========================================================== */

.onboarding-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  animation: onb-fade-in 0.25s ease;
}

.onboarding-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--accent, #4a9eff);
  border-radius: var(--radius, 8px);
  padding: 16px 20px;
  max-width: 320px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent, #4a9eff);
  animation: onb-pop-in 0.2s ease;
}

.onboarding-tooltip__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.onboarding-tooltip__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent, #4a9eff);
}

.onboarding-tooltip__counter {
  font-size: 12px;
  color: var(--muted, #888);
}

.onboarding-tooltip__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text, #e8e8e8);
  margin-bottom: 14px;
}

.onboarding-tooltip__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.onboarding-tooltip__skip {
  background: none;
  border: none;
  color: var(--muted, #888);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s;
}

.onboarding-tooltip__skip:hover {
  color: var(--text, #e8e8e8);
}

.onboarding-tooltip__next {
  background: var(--action-primary-bg, #075fca);
  color: var(--action-primary-text, #fff);
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.onboarding-tooltip__next:hover {
  background: var(--action-primary-hv, #064fa8);
}

.onboarding-highlight {
  position: relative;
  z-index: 9999 !important;
  box-shadow: 0 0 0 4px var(--accent, #4a9eff), 0 0 20px rgba(74, 158, 255, 0.3);
  border-radius: var(--radius, 8px);
}

.chat-fab.onboarding-highlight {
  position: fixed;
}

body.is-onboarding-active .chat-fab--ai {
  right: 16px !important;
  bottom: 16px !important;
}

body.is-onboarding-active .chat-fab--live {
  right: 16px !important;
  bottom: 84px !important;
}

@keyframes onb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes onb-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.page-landing .landing-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
}

body.page-landing .quota-card {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
body.page-landing .quota-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
body.page-landing .quota-card__body > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}
body.page-landing .quota-card__label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
body.page-landing .quota-card__value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
body.page-landing .quota-card__detail,
body.page-landing .quota-card__hint {
  color: var(--muted);
  font-size: 0.8rem;
}
body.page-landing .quota-card__detail {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-height: 1.45;
}
body.page-landing .classroom-manager__quota {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted, #f6f7f9);
}
body.page-landing .classroom-manager__quota > span,
body.page-landing .classroom-manager__quota > small {
  color: var(--muted);
  font-size: 0.76rem;
}
body.page-landing .classroom-manager__quota > strong {
  color: var(--text);
  font-size: 0.94rem;
}
body.page-landing .classroom-manager__quota > a {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-landing .quota-card__ai-usage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: color-mix(in srgb, var(--muted) 86%, transparent);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
}
body.page-landing .quota-card__ai-usage[hidden] {
  display: none;
}
body.page-landing .quota-card__ai-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
}
body.page-landing .quota-card__ai-usage[data-state="low"] .quota-card__ai-dot {
  background: #b45309;
}
body.page-landing .quota-card__ai-usage[data-state="exhausted"] .quota-card__ai-dot {
  background: var(--muted);
}
body.page-landing .quota-card__hint {
  margin-top: 4px;
}
body.page-landing .quota-card__donut {
  --quota-remaining: 0%;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) var(--quota-remaining), var(--border) 0);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  position: relative;
}
body.page-landing .quota-card__donut::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--surface);
}
body.page-landing .quota-card__donut span {
  position: relative;
}
body.page-landing .quota-card__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
body.page-landing .quota-card__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s ease;
}
body.page-landing .quota-card--low .quota-card__bar span {
  background: var(--danger);
}

body.page-landing .header__subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

body.page-landing .header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.page-home .header__account-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
body.page-home .header__access-badges {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
body.page-home .header__access-badges[hidden] {
  display: none;
}
body.page-home .header__role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, var(--muted));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface2));
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
body.page-home .header__role-badge--plan.user-menu__plan-badge--pro,
body.page-home .header__role-badge--classroom {
  border-color: color-mix(in srgb, #f59e0b 60%, var(--border));
  background: color-mix(in srgb, #f59e0b 10%, var(--surface));
  color: color-mix(in srgb, #b45309 78%, var(--text));
}
body.page-home .header__role-badge--classroom {
  font-size: 0.62rem;
}
body.page-home .header__role-badge[hidden] {
  display: none;
}
@media (max-width: 520px) {
  body.page-home .header__account-control {
    gap: 5px;
  }
  body.page-home .header__access-badges {
    gap: 2px;
  }
  body.page-home .header__role-badge {
    min-height: 20px;
    padding-inline: 7px;
    font-size: 0.61rem;
  }
  body.page-home .header__role-badge--classroom {
    font-size: 0.58rem;
  }
}
@media (max-width: 370px) {
  body.page-home .header__role-badge {
    padding-inline: 6px;
  }
}
body.page-landing .user-menu {
  position: relative;
  z-index: 140;
}
body.page-landing .user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
body.page-landing .user-menu__trigger:hover,
body.page-landing .user-menu__trigger[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}
body.page-landing .user-menu__plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
body.page-landing .user-menu__plan-badge--pro {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}
body.page-landing .user-menu__name {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-landing .user-menu__caret {
  font-size: 0.72rem;
}
body.page-landing .user-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 156px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 180;
}
body.page-landing .user-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
body.page-landing .user-menu__item:hover,
body.page-landing .user-menu__item[aria-current="page"] {
  background: var(--surface2);
}
body.page-landing .user-menu__item--danger {
  color: var(--danger);
}

body.page-landing .tutorial-main {
  display: grid;
  gap: 24px;
}
body.page-landing .tutorial-hero {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
body.page-landing .tutorial-hero h1 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}
body.page-landing .tutorial-hero p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
body.page-landing .tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.page-landing .tutorial-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
body.page-landing .tutorial-card:hover:not(:disabled) {
  border-color: var(--accent);
  transform: translateY(-1px);
}
body.page-landing .tutorial-card:disabled {
  background: var(--surface2);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}
body.page-landing .tutorial-card__eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.page-landing .tutorial-card strong {
  color: var(--text-strong);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
body.page-landing .tutorial-card strong + span {
  color: var(--muted);
  line-height: 1.55;
}
body.page-landing .tutorial-card__availability {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 560px) {
  body.page-landing .tutorial-grid {
    grid-template-columns: 1fr;
  }
  body.page-landing .tutorial-hero {
    padding: 22px;
  }
  body.page-landing .tutorial-hero h1,
  body.page-public-landing .landing-hero__title,
  body.page-public-landing--live .landing-hero__title,
  body.page-pricing .pricing-hero h1,
  body.page-checkout .checkout-hero h1,
  body.page-checkout-complete .complete-card h1,
  body.page-pricing--live .pricing-hero--live h1,
  body.page-checkout--live .checkout-hero--live h1,
  body.page-credits .credits-hero h1,
  body.page-policies .policies-hero h1 {
    font-size: clamp(1.25rem, 6vw, 1.45rem);
    letter-spacing: -0.035em;
  }
}

body.page-landing .search-row {
  margin-bottom: 18px;
}

body.page-landing .search-row--labeled {
  display: grid;
  gap: 8px;
}

body.page-landing .search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  padding: 0.85rem 1rem;
  outline: none;
}

body.page-landing .search-input:focus {
  border-color: var(--accent);
}

body.page-landing .empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-landing .empty-state__title {
  font-size: 1rem;
  font-weight: 700;
}

body.page-landing .empty-state__body {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

body.page-landing .empty-state__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
body.page-landing .home-add-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.page-landing .room-add-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
body.page-landing .room-add-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
body.page-landing .room-add-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
}
body.page-landing .room-add-chip__label {
  font-size: 0.86rem;
  font-weight: 600;
}
body.page-landing .room-add-chip--admin {
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
}
body.page-landing .room-add-chip--admin:hover {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.16);
}
body.page-landing .discover-admin-row {
  margin: -4px 0 18px;
  display: flex;
  justify-content: flex-end;
}

body.page-login .auth-tabs {
  display: flex;
  gap: 8px;
}

body.page-login .auth-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-family: var(--font);
  cursor: pointer;
}

body.page-login .auth-tab--active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}


/* Launch UI polish: keep screen flow, refine component rhythm. */
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface2: #f7f8fa;
  --border: #dbe1e8;
  --border-soft: #e8ecf1;
  --text: #18202c;
  --text-strong: #111827;
  --muted: #5f6b7a;
  --accent: #0f7aea;
  --accent-hv: #0869d2;
  --accent-bg: rgba(15, 122, 234, 0.09);
  --danger: #d92d20;
  --danger-bg: rgba(239, 68, 68, 0.10);
  --radius: 14px;
}

body.page-landing {
  background: var(--bg);
}

body.page-landing .header {
  padding: 18px 28px;
  background: var(--surface);
  border-bottom-color: var(--border-soft, var(--border));
  backdrop-filter: none;
}

body.page-landing .header__title {
  color: var(--text-strong, var(--text));
  font-weight: 800;
  letter-spacing: 0;
}

body.page-landing .main {
  max-width: 880px;
  padding: 42px 24px 72px;
}

body.page-landing .section-title {
  color: var(--text-strong, var(--text));
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 18px 0 12px;
}

body.page-landing .quota-card,
body.page-landing .room-card,
body.page-landing .empty-state,
body.page-landing .invite-form,
body.page-landing .create-form {
  border-color: var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

body.page-landing .quota-card {
  padding: 22px 24px;
  margin-bottom: 22px;
}

body.page-landing .quota-card__label {
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.page-landing .quota-card__value {
  color: var(--text-strong, var(--text));
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

body.page-landing .quota-card__donut {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

body.page-landing .quota-card__bar {
  height: 10px;
  background: #e5eaf2;
}

body.page-landing .quota-card__bar span {
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

body.page-landing .room-card {
  padding: 20px;
  gap: 14px;
}

body.page-landing .room-card:hover {
  border-color: rgba(15, 122, 234, 0.35);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

body.page-landing .room-card__name {
  color: var(--text-strong, var(--text));
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.page-landing .room-card__meta {
  margin-top: 6px;
  font-size: 0.8rem;
}

body.page-landing .btn,
body.page-landing .modal__btn,
body.page-landing .room-add-chip,
body.page-landing .user-menu__trigger,
body.page-landing .header__theme-btn,
body.page-landing .header__login-btn {
  border-radius: 14px;
  font-weight: 800;
}

body.page-landing .btn {
  min-height: 40px;
  padding: 9px 16px;
}

body.page-landing .btn--primary,
body.page-landing .modal__btn--primary {
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}

body.page-landing .btn--primary:hover,
body.page-landing .modal__btn--primary:hover {
  background: var(--action-primary-hv);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

body.page-landing .btn--secondary,
body.page-landing .modal__btn--cancel,
body.page-landing .room-add-chip,
body.page-landing .user-menu__trigger,
body.page-landing .header__theme-btn,
body.page-landing .header__login-btn {
  background: var(--surface);
  border-color: #cbd5e1;
}

body.page-landing .empty-state {
  align-items: center;
  padding: 38px 32px;
  text-align: center;
}

body.page-landing .empty-state__title {
  color: var(--text-strong, var(--text));
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

body.page-landing .empty-state__body {
  max-width: 560px;
  font-size: 0.95rem;
  word-break: keep-all;
}

body.page-landing .modal-overlay {
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(3px);
}

body.page-landing .modal {
  width: 420px;
  border-color: var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 28px 86px rgba(15, 23, 42, 0.28);
}
body.page-landing .room-share-modal {
  position: relative;
  width: 360px;
  padding: 24px;
}

body.page-landing .modal__title {
  color: var(--text-strong, var(--text));
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.page-landing .modal__subtitle {
  line-height: 1.55;
  word-break: keep-all;
}

body.page-landing .modal__input,
body.page-landing .form-input,
body.page-landing .search-input {
  border-color: #cbd5e1;
  border-radius: 14px;
  background: var(--surface2);
}

body.page-landing .feedback-fab {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

body.page-public-landing .main {
  max-width: 980px;
}

body.page-public-landing .landing-hero--product {
  padding: 54px 0 30px;
}

body.page-public-landing .landing-eyebrow,
body.page-public-landing .landing-feature-card__label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-public-landing .landing-hero__title {
  max-width: 760px;
  margin-top: 12px;
  color: var(--text-strong, var(--text));
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  word-break: keep-all;
  text-wrap: balance;
}

body.page-public-landing .landing-hero__body {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  word-break: keep-all;
  text-wrap: pretty;
}

body.page-public-landing .landing-hero__actions,
body.page-public-landing .landing-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.page-public-landing .landing-hero__actions {
  margin-top: 28px;
}

body.page-public-landing .landing-hero__meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

body.page-public-landing .landing-hero__meta span,
body.page-public-landing .landing-trust-strip a {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 12px;
}

body.page-public-landing .landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 26px;
}

body.page-public-landing .landing-feature-card,
body.page-public-landing .landing-invite-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

body.page-public-landing .landing-feature-card {
  padding: 24px;
}

body.page-public-landing .landing-feature-card h2 {
  margin-top: 10px;
  color: var(--text-strong, var(--text));
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

body.page-public-landing .landing-feature-card p,
body.page-public-landing .landing-invite-panel__body {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  word-break: keep-all;
}

body.page-public-landing .landing-invite-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
}

body.page-public-landing .landing-invite-panel .section-title {
  margin-top: 0;
}

body.page-public-landing .landing-invite-panel .invite-form {
  box-shadow: none;
}

body.page-public-landing .landing-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body.page-public-landing .landing-trust-strip a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

body.page-public-landing .landing-trust-strip a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

body.page-public-landing--live .main {
  max-width: 1120px;
}

body.page-public-landing--live .landing-hero--editorial {
  padding: 70px 0 24px;
}

body.page-public-landing--live .landing-hero__copy {
  min-width: 0;
}

body.page-public-landing--live .landing-eyebrow {
  color: var(--accent);
}

body.page-public-landing--live .landing-hero__title {
  max-width: 840px;
  font-size: clamp(2.35rem, 5.2vw, 4.55rem);
  line-height: 1.04;
}

body.page-public-landing--live .landing-hero__body {
  max-width: 720px;
  font-size: 1.08rem;
}

body.page-public-landing--live .landing-hero__route-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

body.page-public-landing--live .landing-hero__route-card {
  min-width: 0;
  padding: 16px 4px 4px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-public-landing--live .landing-hero__route-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.page-public-landing--live .landing-hero__route-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong, var(--text));
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.page-public-landing--live .landing-hero__route-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: keep-all;
}

body.page-public-landing--live .landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

body.page-public-landing--live .landing-proof-grid > div {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

body.page-public-landing--live .landing-proof-grid > div:last-child {
  border-right: 0;
}

body.page-public-landing--live .landing-proof-grid strong {
  color: var(--text-strong, var(--text));
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.page-public-landing--live .landing-proof-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

body.page-public-landing--live .landing-demo-panel {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(360px, 0.58fr);
  gap: 34px;
  align-items: center;
  margin: 34px 0 28px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.page-public-landing--live .landing-demo-panel__copy .section-title {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-public-landing--live .landing-demo-panel__copy h2 {
  max-width: 560px;
  color: var(--text-strong, var(--text));
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
}

body.page-public-landing--live .landing-demo-panel__body {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: keep-all;
}

body.page-public-landing--live .landing-demo-panel__bullets {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body.page-public-landing--live .landing-demo-panel__bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  word-break: keep-all;
}

body.page-public-landing--live .landing-demo-panel__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

body.page-public-landing--live .landing-demo-panel__start {
  margin-top: 18px;
}

body.page-public-landing--live .landing-service-mobile {
  min-width: 0;
  justify-self: stretch;
}

body.page-public-landing--live .landing-service-viewer {
  width: min(100%, 430px);
  border: 1px solid color-mix(in srgb, #d8dae0 78%, white);
  border-radius: 18px;
  background: #f8f9fb;
  box-shadow: 0 24px 54px rgba(30, 50, 86, 0.14);
  overflow: hidden;
}

body.page-public-landing--live .landing-viewer-frame {
  display: block;
  width: 100%;
  height: 740px;
  min-height: 720px;
  border: 0;
  background: #f8f9fb;
}

body.page-public-landing--live .landing-story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  margin: 32px 0 26px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.page-public-landing--live .landing-story-panel .section-title {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-public-landing--live .landing-story-panel h2 {
  max-width: 540px;
  color: var(--text-strong, var(--text));
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

body.page-public-landing--live .landing-story-panel__copy p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: keep-all;
}

body.page-public-landing--live .landing-story-panel__steps {
  display: grid;
  gap: 10px;
}

body.page-public-landing--live .landing-story-panel__steps > div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
}

body.page-public-landing--live .landing-story-panel__steps span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.page-public-landing--live .landing-story-panel__steps strong {
  display: block;
  margin-top: 6px;
  color: var(--text-strong, var(--text));
  font-size: 1rem;
  font-weight: 900;
}

body.page-public-landing--live .landing-story-panel__steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: keep-all;
}

body.page-public-landing--live .landing-feature-grid--live {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body.page-public-landing--live .landing-feature-card--primary {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-bg));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

body.page-public-landing--live .landing-feature-grid--live .landing-feature-card:not(.landing-feature-card--primary) {
  padding-inline: 4px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-public-landing--live .landing-feature-card--primary .landing-feature-card__label {
  color: var(--accent);
}

body.page-public-landing--live .landing-feature-card--primary h2 {
  color: var(--text-strong, var(--text));
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}

body.page-public-landing--live .landing-feature-card--primary p {
  color: var(--muted);
  font-size: 1rem;
}

:root:not([data-theme="light"]) body.page-landing .header,
:root:not([data-theme="light"]) body.page-landing .room-card,
:root:not([data-theme="light"]) body.page-public-landing .landing-feature-card,
:root:not([data-theme="light"]) body.page-public-landing .landing-invite-panel,
:root:not([data-theme="light"]) body.page-public-landing--live .landing-proof-grid,
:root:not([data-theme="light"]) body.page-public-landing--live .landing-demo-panel,
:root:not([data-theme="light"]) body.page-public-landing--live .landing-story-panel {
  border-color: var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

:root:not([data-theme="light"]) body.page-public-landing--live .landing-hero__route-card,
:root:not([data-theme="light"]) body.page-public-landing--live .landing-feature-grid--live .landing-feature-card:not(.landing-feature-card--primary) {
  box-shadow: none;
}

body.page-public-landing--live .landing-invite-panel {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  align-items: center;
}

body.page-public-landing--live .landing-invite-panel h2 {
  margin-top: 8px;
  color: var(--text-strong, var(--text));
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

body.page-public-landing--live .landing-invite-panel__entry {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface2);
}

body.page-public-landing--live .landing-invite-panel__entry > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-public-landing--live .landing-trust-strip {
  justify-content: center;
}

body.page-landing .home-invite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

body.page-landing .home-invite-card__label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-landing .home-invite-card__title {
  margin-top: 6px;
  color: var(--text-strong, var(--text));
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.page-landing .home-invite-card__copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  body.page-public-landing .landing-feature-grid {
    grid-template-columns: 1fr;
  }
  body.page-public-landing .landing-hero--product {
    padding-top: 36px;
  }
  body.page-landing .home-invite-card {
    align-items: stretch;
    flex-direction: column;
  }
}

/* PWA install and update affordances for public/account page headers. */
.pwa-install-button[hidden],
.pwa-install-guide[hidden] {
  display: none !important;
}

.pwa-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.025),
    0 5px 14px rgba(15, 23, 42, 0.07);
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.pwa-install-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.pwa-install-button:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.pwa-install-button:active,
.pwa-install-guide__close:active {
  transform: scale(0.96);
}

.pwa-install-button:focus-visible,
.pwa-install-guide__close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.pwa-install-guide {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 0 0 1px var(--border),
    0 18px 44px rgba(15, 23, 42, 0.18);
}

.pwa-install-guide__copy {
  text-wrap: pretty;
  font-size: 0.82rem;
  line-height: 1.55;
}

.pwa-install-guide__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition-property: background-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

@media (max-width: 720px) {
  .pwa-install-button {
    width: 40px;
    padding-inline: 0;
  }

  .pwa-install-button__label {
    display: none;
  }
}

body.page-app-login {
  background: var(--bg);
}

body.page-app-login .app-login-shell {
  width: min(100%, 460px);
  padding: 28px 20px;
}

body.page-app-login .card {
  max-width: 460px;
  padding: 2.35rem 2rem;
  border-color: var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

body.page-app-login .app-login-card {
  gap: 0;
}

body.page-app-login .auth-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body.page-app-login .auth-panel[hidden] {
  display: none;
}

body.page-app-login .header .icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 1.35rem;
}

body.page-app-login .header h1,
body.page-app-login .form-head h1 {
  color: var(--text-strong, var(--text));
  font-size: 1.62rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

body.page-app-login .header p {
  max-width: 320px;
  margin: 0.48rem auto 0;
  color: var(--muted);
  line-height: 1.58;
  word-break: keep-all;
}

body.page-app-login .form-head {
  text-align: left;
}

body.page-app-login .register-step-copy {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  word-break: keep-all;
}

body.page-app-login .auth-helper,
body.page-app-login .auth-recovery-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
}

body.page-app-login .recovery-panel .auth-primary {
  margin-top: 0.1rem;
}

body.page-app-login .auth-primary,
body.page-app-login .field input,
body.page-app-login button[type="submit"] {
  min-height: 46px;
  border-radius: 14px;
}

body.page-app-login .auth-primary {
  width: 100%;
  border: 0;
  background: var(--action-primary-bg);
  color: #fff;
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

body.page-app-login .auth-primary:hover {
  background: var(--action-primary-hv);
}

body.page-app-login .social-auth {
  display: grid;
  gap: 0.62rem;
}

body.page-app-login .social-btn {
  position: relative;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(17 24 39);
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, filter 140ms ease-out;
}

body.page-app-login .social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
}

body.page-app-login .social-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.page-app-login .social-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}

body.page-app-login .social-btn--google {
  border-color: #d7dce2;
  background: #fff;
  color: #202124;
}

body.page-app-login .social-btn--kakao {
  background: #fee500;
  color: rgba(0, 0, 0, 0.85);
}

body.page-app-login .social-btn--naver {
  background: #03c75a;
  color: #fff;
}

body.page-app-login .social-btn__icon {
  position: absolute;
  left: 17px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

body.page-app-login .social-btn__icon--google {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

body.page-app-login .social-btn__icon--kakao svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

body.page-app-login .social-btn__icon--naver {
  font-family: Arial, sans-serif;
  font-size: 1.02rem;
}

body.page-app-login .social-btn__label {
  padding: 0 32px;
}

body.page-app-login .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
  text-align: center;
}

body.page-app-login .auth-divider::before,
body.page-app-login .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

body.page-app-login .auth-divider span {
  white-space: nowrap;
}

body.page-app-login .auth-switch {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

body.page-app-login .auth-switch button,
body.page-app-login .auth-back {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}

body.page-app-login .auth-back {
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.82rem;
}

body.page-app-login .auth-back:hover,
body.page-app-login .auth-switch button:hover {
  color: var(--accent-hv);
}

body.page-app-login .field label {
  color: var(--text-strong, var(--text));
  font-weight: 800;
}

body.page-app-login .field input {
  background: var(--surface2);
  border-color: #cbd5e1;
}

body.page-app-login .password-field {
  position: relative;
}

body.page-app-login .password-field input {
  padding-right: 3rem;
}

body.page-app-login .password-toggle {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

body.page-app-login .password-toggle[hidden] {
  display: none;
}

body.page-app-login .password-toggle:hover,
body.page-app-login .password-toggle[aria-pressed="true"] {
  background: var(--accent-bg);
  color: var(--accent);
}

body.page-app-login .password-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

body.page-app-login .password-match {
  min-height: 1.15rem;
  margin-top: 0.42rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

body.page-app-login .password-match:empty {
  display: none;
}

body.page-app-login .password-match--ok {
  color: #15803d;
}

body.page-app-login .password-match--error {
  color: var(--danger);
}

body.page-app-login button[type="submit"] {
  font-weight: 900;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

body.page-app-login .app-login__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

body.page-app-login .app-login__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

body.page-app-login .app-login__link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body.page-app-login .auth-policy-links {
  margin-top: -0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

body.page-app-login .auth-policy-links a {
  color: var(--muted);
  text-decoration: none;
}

body.page-app-login .auth-policy-links a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  body.page-app-login .app-login-shell {
    padding: 18px 14px;
  }

  body.page-app-login .card {
    padding: 2rem 1.35rem;
  }

  body.page-app-login .social-btn {
    min-height: 52px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  body.page-app-login .social-btn__icon {
    left: 16px;
    width: 20px;
    height: 20px;
  }

  body.page-app-login .social-btn--google .social-btn__icon {
    width: 18px;
    height: 18px;
  }

  body.page-app-login .social-btn__label {
    padding: 0 28px;
  }
}

body.page-account .account-overview {
  gap: 0;
}

body.page-account .account-overview > .account-setting:last-of-type {
  border-bottom: 0;
}

body.page-account .account-setting__current {
  display: block;
  margin-top: 4px;
  color: var(--text-strong, var(--text));
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

body.page-account .account-setting--identity .account-summary {
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
}

body.page-account .account-summary__lock {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

body.page-account .account-setting--password .account-panel__head {
  align-items: center;
}

body.page-account .account-plan-status__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-account .account-plan-status__values > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}

body.page-account .account-plan-status__values span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

body.page-account .account-plan-status__values strong {
  color: var(--text-strong, var(--text));
  font-size: 0.95rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

body.page-account .account-sessions-panel .account-setting {
  padding: 0;
  border-bottom: 0;
}

body.page-account .account-sessions-panel .sessions-list {
  margin-top: 2px;
}

@media (max-width: 520px) {
  body.page-account .account-panel {
    padding: 16px;
  }

  body.page-account .account-panel__head {
    align-items: center;
  }

  body.page-account .account-plan-status__values {
    grid-template-columns: 1fr;
  }

  body.page-account .account-sessions-panel .account-panel__head {
    align-items: stretch;
  }

  body.page-account .account-sessions-panel .account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
body.page-landing .landing-notice[hidden] { display: none; }
body.page-landing .landing-notice--error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
}
body.page-landing .modal__info {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--text);
  font-size: .8rem;
  line-height: 1.5;
}
body.page-landing .modal__info[hidden] { display: none; }

body.page-account .account-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

body.page-account .header__shell-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-sizing: border-box;
  transition-property: background-color, border-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

body.page-account .header__shell-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--surface2);
}

body.page-account .header__shell-btn:active,
body.page-account .account-provider-tile:active,
body.page-account .account-detail-back:active {
  scale: .96;
}

body.page-account .header__home-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-account .account-overview {
  gap: 0;
}

body.page-account .account-overview > .account-panel__title {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

body.page-account .account-setting {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

body.page-account .account-setting__label {
  font-size: .92rem;
  font-weight: 700;
}

body.page-account .account-setting .account-form,
body.page-account .account-setting .sessions-list {
  margin-top: 14px;
}

body.page-account .account-setting--sessions .account-panel__head {
  align-items: center;
}

body.page-account .account-logout {
  align-self: flex-start;
  margin-top: 16px;
}

body.page-account .account-provider-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

body.page-account .account-provider-tile {
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(127, 127, 127, .18), 0 2px 6px rgba(0, 0, 0, .08);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition-property: box-shadow, background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

body.page-account .account-provider-tile:hover {
  background: var(--surface2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 4px 12px rgba(0, 0, 0, .1);
}

body.page-account .account-provider-tile__icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-account .account-provider-tile__icon--onedrive {
  stroke: none;
}

body.page-account .account-provider-tile__icon--notion {
  width: 30px;
  height: 30px;
  stroke: none;
}

body.page-account .account-provider-tile__icon--google {
  stroke: none;
}

body.page-account .account-provider-tile__icon--google .gdrive-green { fill: #0f9d58; }
body.page-account .account-provider-tile__icon--google .gdrive-yellow { fill: #f4b400; }
body.page-account .account-provider-tile__icon--google .gdrive-blue { fill: #4285f4; }

body.page-account .account-detail-back {
  min-height: 40px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition-property: color, scale;
  transition-duration: 150ms;
}

body.page-account .account-panel__title {
  font-size: 1rem;
  font-weight: 700;
}

body.page-account .account-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.page-account .account-panel__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

body.page-account .account-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-account .account-summary__label {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 0 0 auto;
}

body.page-account .account-summary__value {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
  line-height: 1.5;
}

body.page-account .account-panel--editing {
  border-color: rgba(74, 158, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.08);
}

/* ============================================================
   FEEDBACK PAGES / FAB
   ============================================================ */

body.page-home .main {
  padding-bottom: 128px;
}

body.page-landing .feedback-fab {
  position: fixed;
  right: max(20px, calc(20px + env(safe-area-inset-right, 0px)));
  bottom: max(20px, calc(20px + env(safe-area-inset-bottom, 0px)));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(74, 158, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.12));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  z-index: 80;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
body.page-landing .feedback-fab {
  overflow: visible;
}
body.page-landing .feedback-fab:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(74, 158, 255, 0.28), rgba(74, 158, 255, 0.18));
}
body.page-landing .feedback-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}
body.page-landing .feedback-fab__label {
  font-size: 0.9rem;
  font-weight: 700;
}
body.page-landing .feedback-fab__badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

body.page-feedback .feedback-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page-feedback .feedback-panel__title {
  font-size: 1.02rem;
  font-weight: 700;
}

body.page-feedback .feedback-panel__subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

body.page-feedback .feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-feedback .feedback-message-field {
  display: grid;
  gap: 8px;
}

body.page-feedback .feedback-message-field > label {
  color: var(--text-strong, var(--text));
  font-size: 0.86rem;
  font-weight: 800;
}

body.page-feedback .feedback-textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.65;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.page-feedback .feedback-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

body.page-feedback .feedback-form__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.page-feedback .feedback-form__note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: right;
}

body.page-feedback .feedback-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-feedback .feedback-contact-field[hidden],
body.page-feedback .feedback-consent[hidden] {
  display: none;
}

body.page-feedback .feedback-contact-field label {
  color: var(--text-strong, var(--text));
  font-size: 0.86rem;
  font-weight: 800;
}

body.page-feedback .feedback-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

body.page-feedback .feedback-consent input {
  margin-top: 3px;
}
body.page-feedback .feedback-history {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.page-feedback .feedback-history__title {
  font-size: 0.98rem;
  font-weight: 700;
}
body.page-feedback .feedback-history__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-admin-feedback .feedback-admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

body.page-admin-feedback .feedback-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-admin-feedback .feedback-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-admin-feedback .feedback-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.page-admin-feedback .feedback-entry__identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-admin-feedback .feedback-entry__identity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

body.page-admin-feedback .feedback-entry__author {
  font-size: 1rem;
  font-weight: 700;
}

body.page-admin-feedback .feedback-entry__meta {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

body.page-admin-feedback .feedback-entry__message {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}

body.page-admin-feedback .feedback-entry__rooms-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
body.page-feedback .feedback-entry,
body.page-admin-feedback .feedback-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.page-feedback .feedback-entry__header,
body.page-admin-feedback .feedback-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
body.page-feedback .feedback-entry__author,
body.page-admin-feedback .feedback-entry__author {
  font-size: 1rem;
  font-weight: 700;
}
body.page-feedback .feedback-entry__meta,
body.page-admin-feedback .feedback-entry__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}
body.page-feedback .feedback-entry__message,
body.page-admin-feedback .feedback-entry__message {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}
body.page-feedback .feedback-entry__rooms,
body.page-admin-feedback .feedback-entry__rooms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.page-feedback .feedback-entry__rooms-label,
body.page-admin-feedback .feedback-entry__rooms-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.page-feedback .feedback-entry__rooms-list,
body.page-admin-feedback .feedback-entry__rooms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-admin-feedback .feedback-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text);
  font-size: 0.82rem;
}

body.page-admin-feedback .feedback-room-pill__code {
  color: var(--muted);
}

body.page-admin-feedback .feedback-room-pill--compact {
  min-height: 22px;
  padding: 2px 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

body.page-admin-feedback .feedback-room-pill--compact,
body.page-admin-feedback .feedback-room-pill--compact:link,
body.page-admin-feedback .feedback-room-pill--compact:visited,
body.page-admin-feedback .feedback-room-pill--compact:hover,
body.page-admin-feedback .feedback-room-pill--compact:active,
body.page-admin-feedback .feedback-room-pill--compact *,
body.page-admin-feedback .feedback-room-pill--compact *:link,
body.page-admin-feedback .feedback-room-pill--compact *:visited {
  text-decoration: none;
}

body.page-admin-feedback .feedback-room-pill--compact .feedback-room-pill__name,
body.page-admin-feedback .feedback-room-pill--compact .feedback-room-pill__code {
  font-size: 0.82rem;
  line-height: 1.35;
}
body.page-feedback .feedback-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text);
  font-size: 0.82rem;
}
body.page-feedback .feedback-room-pill__code {
  color: var(--muted);
}
body.page-feedback .feedback-reply,
body.page-admin-feedback .feedback-reply {
  border: 1px solid rgba(74, 158, 255, 0.28);
  background: rgba(74, 158, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.page-feedback .feedback-reply__label,
body.page-admin-feedback .feedback-reply__label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
body.page-feedback .feedback-reply__meta,
body.page-admin-feedback .feedback-reply__meta {
  color: var(--muted);
  font-size: 0.78rem;
}
body.page-feedback .feedback-reply__message,
body.page-admin-feedback .feedback-reply__message {
  font-size: 0.9rem;
  line-height: 1.65;
}
body.page-admin-feedback .feedback-reply-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.page-admin-feedback .feedback-reply-editor__label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
body.page-admin-feedback .feedback-reply-editor__input {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  outline: none;
}
body.page-admin-feedback .feedback-reply-editor__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
body.page-admin-feedback .feedback-reply-editor__actions {
  display: flex;
  justify-content: flex-end;
}
body.page-admin-feedback .feedback-entry__delete {
  align-self: flex-start;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 720px) {
  body.page-feedback .feedback-panel {
    padding: 20px;
  }

  body.page-feedback .feedback-textarea {
    min-height: 200px;
  }

  body.page-feedback .feedback-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-feedback .feedback-form__note {
    text-align: left;
  }
  body.page-feedback .feedback-entry,
  body.page-admin-feedback .feedback-entry {
    padding: 16px;
  }
  body.page-admin-feedback .feedback-entry__header {
    align-items: flex-start;
  }

  body.page-admin-feedback .feedback-entry__identity-row {
    gap: 8px;
  }

  body.page-admin-feedback .feedback-entry__delete {
    align-self: flex-start;
    justify-content: center;
  }

  body.page-landing .feedback-fab {
    right: max(16px, calc(16px + env(safe-area-inset-right, 0px)));
    bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0px)));
    min-height: 48px;
    padding: 0 16px;
  }
}

/* Classroom 도입 문의: 기존 문의 패널의 톤을 유지하면서 상담용 필드를 명확히 구분합니다. */
body.page-classroom-inquiry .classroom-inquiry-panel {
  gap: 22px;
}

body.page-classroom-inquiry .classroom-inquiry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.page-classroom-inquiry .classroom-inquiry-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.page-classroom-inquiry .classroom-inquiry-field--wide {
  grid-column: 1 / -1;
}

body.page-classroom-inquiry .classroom-inquiry-field > label {
  color: var(--text-strong, var(--text));
  font-size: 0.86rem;
  font-weight: 800;
}

body.page-classroom-inquiry .classroom-inquiry-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

body.page-classroom-inquiry .classroom-inquiry-textarea {
  min-height: 180px;
}

body.page-classroom-inquiry .classroom-inquiry-footer {
  align-items: center;
}

body.page-classroom-inquiry .classroom-inquiry-back {
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 560px) {
  body.page-classroom-inquiry .classroom-inquiry-fields {
    grid-template-columns: 1fr;
  }

  body.page-classroom-inquiry .classroom-inquiry-field--wide {
    grid-column: auto;
  }
}

body.page-account .account-form,
body.page-account .sessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-account .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.page-account .field label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

body.page-account .field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  padding: 0.7rem 0.85rem;
  outline: none;
}

body.page-account .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

body.page-account .account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-account .account-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

body.page-account .account-status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

body.page-account .account-status-item__label {
  font-size: 0.78rem;
  color: var(--muted);
}

body.page-admin-feedback .feedback-reply-editor__toggle {
    align-self: flex-start;
    min-height: 40px;
    margin-top: 14px;
}

body.page-admin-feedback .feedback-reply-editor[hidden] {
    display: none !important;
}

body.page-account .cloud-access-summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(74, 158, 255, 0.24);
  border-radius: 10px;
  background: rgba(74, 158, 255, 0.07);
}

body.page-account .cloud-access-summary__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(74, 158, 255, 0.16);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

body.page-account .cloud-access-summary__body {
  min-width: 0;
}

body.page-account .cloud-access-summary strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.page-account .cloud-access-summary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

body.page-account .cloud-access-summary a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-underline-offset: 2px;
}

body.page-account #oneDriveHint {
  margin: 0;
}

body.page-account .room-card--session .room-card__actions {
  min-width: 110px;
  justify-content: flex-end;
}

body.page-account #notionHint,
body.page-account #notionTemplateHint {
  margin: 0;
}

body.page-account .notion-account-pages {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

body.page-account .notion-account-pages[hidden] {
  display: none;
}

body.page-account .notion-account-pages > .field-label {
  margin-bottom: -2px;
}

body.page-account .notion-account-pages__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.page-account .notion-account-pages__search input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

body.page-account .notion-account-pages__list {
  max-height: 300px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
}

body.page-account .notion-account-page {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.page-account .notion-account-page:hover,
body.page-account .notion-account-page--selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

body.page-account .notion-account-page strong {
  min-width: 0;
  overflow: hidden;
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-account .notion-account-page small {
  color: var(--muted);
  font-size: .7rem;
}

body.page-account .notion-template-toolbar {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
}

body.page-account .notion-template-toolbar > label {
  color: var(--muted);
  font-size: .78rem;
}

body.page-account .notion-template-toolbar select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  padding: 0 10px;
}

body.page-account .notion-template-delete:not(:disabled) {
  color: #e26666;
}

body.page-account .notion-template-form {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

body.page-account .notion-template-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}

body.page-account .notion-template-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -5px 0 0;
  color: var(--muted);
  font-size: .72rem;
}

body.page-account .notion-template-placeholders code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface2);
  color: var(--text);
}

body.page-account .notion-template-options,
body.page-account .notion-template-artifacts fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

body.page-account .notion-template-options legend,
body.page-account .notion-template-artifacts legend {
  padding: 0 5px;
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}

body.page-account .notion-template-options label,
body.page-account .notion-template-artifacts fieldset > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: .78rem;
  cursor: pointer;
}

body.page-account .notion-template-options input[type="checkbox"],
body.page-account .notion-template-artifacts input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

body.page-account .notion-template-details {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

body.page-account .notion-template-details > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface2);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

body.page-account .notion-template-artifacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

body.page-account .notion-template-artifacts fieldset {
  align-content: start;
}

body.page-account .notion-template-artifacts .field {
  width: 100%;
}

body.page-account .notion-template-artifacts .field input {
  font-size: .78rem;
}

@media (max-width: 720px) {
  body.page-account .notion-template-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-account .notion-template-toolbar > label,
  body.page-account .notion-template-toolbar > select {
    grid-column: 1 / -1;
  }

  body.page-account .notion-template-toolbar .btn {
    min-height: 44px;
  }

  body.page-account .notion-account-panel .btn,
  body.page-account .notion-template-panel .btn {
    min-height: 44px;
  }

  body.page-account .notion-template-grid,
  body.page-account .notion-template-artifacts {
    grid-template-columns: 1fr;
  }

  body.page-account .notion-template-artifacts {
    padding: 10px;
  }

  body.page-account .notion-account-pages__search {
    grid-template-columns: 1fr;
  }

  body.page-account .notion-account-pages__search .btn {
    min-height: 44px;
  }
}

/* ============================================================
   PRICING / CHECKOUT FLOW
   ============================================================ */

body.page-pricing .main,
body.page-checkout .main,
body.page-checkout-complete .main,
body.page-policies .main {
  max-width: 1040px;
}

body.page-pricing .pricing-hero,
body.page-checkout .checkout-hero,
body.page-checkout-complete .complete-card {
  text-align: center;
}

body.page-pricing .pricing-eyebrow,
body.page-checkout .pricing-eyebrow,
body.page-checkout-complete .pricing-eyebrow,
body.page-credits .pricing-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-pricing .pricing-hero h1,
body.page-checkout .checkout-hero h1,
body.page-checkout-complete .complete-card h1 {
  margin-top: 12px;
  color: var(--text-strong, var(--text));
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

body.page-checkout-complete .complete-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

body.page-pricing .pricing-hero p,
body.page-checkout .checkout-hero p,
body.page-checkout-complete .complete-card p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  word-break: keep-all;
}

body.page-pricing .pricing-grid,
body.page-checkout .checkout-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

body.page-pricing .pricing-card,
body.page-checkout .checkout-panel,
body.page-checkout-complete .complete-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

body.page-pricing .pricing-card--featured {
  border-color: rgba(74, 158, 255, 0.42);
  box-shadow: 0 22px 60px rgba(74, 158, 255, 0.14);
}

body.page-pricing .pricing-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
}

body.page-pricing .pricing-card__topline,
body.page-checkout .checkout-panel__label,
body.page-credits .checkout-panel__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

body.page-pricing .pricing-card h2,
body.page-checkout .checkout-plan-name {
  margin-top: 10px;
  color: var(--text-strong, var(--text));
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.page-pricing .pricing-card__price {
  margin-top: 18px;
  color: var(--text-strong, var(--text));
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

body.page-pricing .pricing-card__desc,
body.page-checkout .checkout-panel__copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  word-break: keep-all;
}

body.page-pricing .pricing-list,
body.page-checkout .pricing-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

body.page-pricing .pricing-list li,
body.page-checkout .pricing-list li {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

body.page-pricing .pricing-list li::before,
body.page-checkout .pricing-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 900;
}

body.page-pricing .pricing-card__cta,
body.page-checkout .checkout-pay-btn,
body.page-checkout .checkout-secondary,
body.page-credits .checkout-pay-btn,
body.page-credits .checkout-secondary {
  width: 100%;
  justify-content: center;
}

body.page-pricing .pricing-card__hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

body.page-pricing--live .pricing-main,
body.page-checkout--live .checkout-main,
body.page-credits .credits-main {
  max-width: 1120px;
}

body.page-pricing--live .pricing-hero--live,
body.page-checkout--live .checkout-hero--live,
body.page-credits .credits-hero {
  padding: 30px 0 4px;
  text-align: left;
}

body.page-pricing--live .pricing-hero--live h1,
body.page-checkout--live .checkout-hero--live h1,
body.page-credits .credits-hero h1 {
  max-width: 900px;
  margin-top: 12px;
  color: var(--text-strong, var(--text));
  font-size: clamp(2.35rem, 5.7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  word-break: keep-all;
}

body.page-pricing--live .pricing-hero--live p,
body.page-checkout--live .checkout-hero--live p,
body.page-credits .credits-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  word-break: keep-all;
}

body.page-pricing--live .pricing-fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

body.page-pricing--live .pricing-fact-row div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

body.page-pricing--live .pricing-fact-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

body.page-pricing--live .pricing-fact-row strong {
  color: var(--text-strong, var(--text));
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.page-pricing--live .pricing-grid,
body.page-checkout--live .checkout-layout,
body.page-credits .credits-layout {
  gap: 20px;
  margin-top: 34px;
}

body.page-pricing--live .pricing-card,
body.page-checkout--live .checkout-panel,
body.page-credits .credits-balance-card,
body.page-credits .credits-pack,
body.page-credits .credits-summary {
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

body.page-pricing--live .pricing-card--quiet {
  background: color-mix(in srgb, var(--surface) 84%, var(--surface2));
}

body.page-pricing--live .pricing-card--pro-live {
  overflow: hidden;
  border-color: rgba(15, 122, 234, 0.46);
}

body.page-pricing--live .pricing-card--pro-live::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

body.page-pricing--live .pricing-card__price {
  font-size: 2.45rem;
}

body.page-pricing--live .pricing-card__price span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 1.1rem;
  vertical-align: 0.62em;
}

body.page-pricing--live .pricing-feature-table {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

body.page-pricing--live .pricing-feature-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface2) 82%, transparent);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: keep-all;
}

body.page-pricing--live .pricing-feature-row--muted {
  color: var(--muted);
  background: transparent;
}

body.page-pricing--live .pricing-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

body.page-pricing--live .pricing-feature-row--muted .pricing-feature-icon {
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  color: var(--muted);
}

body.page-pricing--live .pricing-shared-room-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: start;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

body.page-pricing--live .pricing-shared-room-note h2 {
  color: var(--text-strong, var(--text));
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

body.page-pricing--live .pricing-shared-room-note p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  word-break: keep-all;
}

body.page-pricing--live .pricing-section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-pricing--live .pricing-shared-room-note__facts,
body.page-pricing--live .pricing-classroom-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-pricing--live .pricing-shared-room-note__facts span,
body.page-pricing--live .pricing-classroom-feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-bg) 45%, var(--surface2));
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  word-break: keep-all;
}

body.page-pricing--live .pricing-shared-room-note__detail {
  grid-column: 1 / -1;
  margin-top: 0;
}

body.page-pricing--live .pricing-shared-room-examples {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

body.page-pricing--live .pricing-shared-room-examples figure {
  min-width: 0;
  margin: 0;
}

body.page-pricing--live .pricing-shared-room-examples img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface2);
}

body.page-pricing--live .pricing-classroom-section {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

body.page-pricing--live .pricing-classroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 26px;
  align-items: start;
}

body.page-pricing--live .pricing-classroom-copy h2 {
  margin-top: 8px;
  color: var(--text-strong, var(--text));
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.page-pricing--live .pricing-classroom-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  word-break: keep-all;
}

body.page-pricing--live .pricing-classroom-feature-list {
  margin-top: 18px;
}

body.page-pricing--live .pricing-classroom-table-wrap {
  overflow-x: auto;
}

body.page-pricing--live .pricing-classroom-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
}

body.page-pricing--live .pricing-classroom-table caption {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: left;
}

body.page-pricing--live .pricing-classroom-table th,
body.page-pricing--live .pricing-classroom-table td {
  padding: 13px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
}

body.page-pricing--live .pricing-classroom-table th:first-child,
body.page-pricing--live .pricing-classroom-table td:first-child {
  text-align: left;
}

body.page-pricing--live .pricing-classroom-table thead th {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

body.page-pricing--live .pricing-classroom-table tbody th {
  color: var(--text-strong, var(--text));
  font-weight: 900;
}

body.page-pricing--live .pricing-classroom-table tr:last-child th,
body.page-pricing--live .pricing-classroom-table tr:last-child td {
  border-bottom: 0;
}

body.page-pricing--live .pricing-classroom-table th:last-child,
body.page-pricing--live .pricing-classroom-table td:last-child {
  border-right: 0;
}

body.page-pricing--live .pricing-classroom-per-person {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
  word-break: keep-all;
}

body.page-pricing--live .pricing-bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

body.page-pricing--live .pricing-compare-panel {
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

body.page-pricing--live .pricing-compare-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.page-pricing--live .pricing-compare-panel__header h2 {
  margin-top: 8px;
  color: var(--text-strong, var(--text));
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

body.page-pricing--live .pricing-compare-panel__header > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

body.page-pricing--live .pricing-compare-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
}

body.page-pricing--live .pricing-compare-grid > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}

body.page-pricing--live .pricing-compare-grid > div:last-child {
  border-bottom: 0;
}

body.page-pricing--live .pricing-compare-grid span {
  padding: 13px 14px;
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: keep-all;
}

body.page-pricing--live .pricing-compare-grid span:last-child {
  border-right: 0;
}

body.page-pricing--live .pricing-compare-grid__head span {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body.page-pricing--live .pricing-credit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

body.page-pricing--live .pricing-credit-panel h2 {
  margin-top: 8px;
  color: var(--text-strong, var(--text));
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

body.page-pricing--live .pricing-credit-panel p {
  max-width: 690px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  word-break: keep-all;
}

body.page-checkout--live .checkout-plan-note,
body.page-checkout--live .checkout-charge-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface2);
}

body.page-checkout--live .checkout-plan-note strong,
body.page-checkout--live .checkout-charge-callout strong {
  color: var(--text-strong, var(--text));
  font-weight: 900;
}

body.page-checkout--live .checkout-plan-note span,
body.page-checkout--live .checkout-charge-callout span {
  color: var(--muted);
  font-size: 0.84rem;
}

body.page-checkout--live .checkout-charge-callout {
  margin-bottom: 14px;
  border-color: rgba(239, 68, 68, 0.28);
  background: var(--danger-bg);
}

body.page-landing .btn--sm {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
}

body.page-checkout .checkout-summary-row,
body.page-credits .checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

body.page-checkout .checkout-summary-row strong,
body.page-credits .checkout-summary-row strong {
  color: var(--text-strong, var(--text));
}

body.page-checkout .checkout-summary-row--total,
body.page-credits .checkout-summary-row--total {
  color: var(--text);
  font-weight: 800;
}

body.page-checkout .checkout-method,
body.page-credits .checkout-method {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface2);
}

body.page-checkout .checkout-method__title,
body.page-credits .checkout-method__title {
  font-weight: 900;
}

body.page-checkout .checkout-method__body,
body.page-credits .checkout-method__body {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

body.page-checkout .checkout-secondary,
body.page-credits .checkout-secondary {
  margin-top: 10px;
}

body.page-checkout .checkout-conditions {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

body.page-checkout .checkout-conditions summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

body.page-checkout .checkout-conditions p {
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  word-break: keep-all;
}

body.page-checkout .checkout-shortage-summary h2 {
  margin: 8px 0 18px;
  color: var(--text-strong, var(--text));
  font-size: 1.2rem;
  line-height: 1.45;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-break: keep-all;
}

body.page-checkout.checkout-is-shortage .checkout-layout {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

body.page-checkout .checkout-status-panel {
  max-width: 880px;
  margin: 34px auto 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

body.page-checkout .checkout-request-panel {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

body.page-checkout .checkout-request-panel__eyebrow,
body.page-checkout .checkout-confirm__eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

body.page-checkout .checkout-request-panel h2,
body.page-checkout .checkout-confirm h2 {
  margin: 10px 0 8px;
  color: var(--text-strong, var(--text));
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.24;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

/* The outer checkout hero owns application status. The request card only
   shows the submitted application facts and its available actions. */
body.page-checkout .checkout-request-panel h2,
body.page-checkout .checkout-request-panel > p {
  display: none;
}

body.page-checkout .checkout-request-panel > p,
body.page-checkout .checkout-confirm p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: keep-all;
}

body.page-checkout .checkout-request-panel__reason {
  margin-top: 16px !important;
  padding: 13px 15px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--text) !important;
}

body.page-checkout .checkout-request-panel__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border-block: 1px solid var(--border);
}

body.page-checkout .checkout-request-panel__facts > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid var(--border);
}

body.page-checkout .checkout-request-panel__facts > div:last-child {
  border-right: 0;
}

body.page-checkout .checkout-request-panel__facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

body.page-checkout .checkout-request-panel__facts dd {
  margin: 0;
  color: var(--text-strong, var(--text));
  font-size: 0.92rem;
  font-weight: 800;
}

body.page-checkout .checkout-request-panel__actions,
body.page-checkout .checkout-confirm__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

body.page-checkout .checkout-request-panel__actions .btn,
body.page-checkout .checkout-confirm__actions .btn {
  flex: 1;
  justify-content: center;
}

body.page-checkout .checkout-confirm {
  width: min(92vw, 500px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25);
}

body.page-checkout .checkout-confirm::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

body.page-checkout .checkout-confirm__card {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: inherit;
  background: var(--surface);
}

body.page-checkout .checkout-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--border);
}

body.page-checkout .checkout-status-grid[data-visible-count="1"] {
  grid-template-columns: 1fr;
}

body.page-checkout .checkout-status-grid[data-visible-count="2"],
body.page-checkout .checkout-status-grid[data-visible-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-checkout .checkout-status-grid > div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
}

body.page-checkout .checkout-status-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

body.page-checkout .checkout-status-grid strong {
  color: var(--text-strong, var(--text));
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}

body.page-checkout .checkout-status-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  word-break: keep-all;
}

body.page-checkout .checkout-status-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

body.page-checkout .checkout-status-actions .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 760px) {
  body.page-checkout .checkout-status-panel {
    padding: 20px;
    border-radius: 20px;
  }

  body.page-checkout .checkout-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-checkout .checkout-status-grid[data-visible-count="1"] {
    grid-template-columns: 1fr;
  }

  body.page-checkout .checkout-status-grid[data-visible-count="3"] .checkout-status-grid__item--last,
  body.page-checkout .checkout-status-grid[data-visible-count="5"] .checkout-status-grid__item--last {
    grid-column: 1 / -1;
  }

  body.page-checkout .checkout-status-actions {
    display: grid;
  }

  body.page-checkout .checkout-request-panel {
    padding: 22px;
    border-radius: 20px;
  }

  body.page-checkout .checkout-request-panel__facts {
    grid-template-columns: 1fr;
  }

  body.page-checkout .checkout-request-panel__facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.page-checkout .checkout-request-panel__facts > div:last-child {
    border-bottom: 0;
  }

  body.page-checkout .checkout-request-panel__actions,
  body.page-checkout .checkout-confirm__actions {
    display: grid;
  }
}

body.page-credits .credits-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(320px, 1.16fr) minmax(300px, 0.92fr);
  align-items: start;
}

body.page-credits .credits-balance-card,
body.page-credits .credits-pack,
body.page-credits .credits-summary {
  border: 1px solid var(--border);
  background: var(--surface);
}

body.page-credits .credits-balance-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

body.page-credits .credits-balance-card strong {
  color: var(--text-strong, var(--text));
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

body.page-credits .credits-balance-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: keep-all;
}

body.page-credits .credits-pack-grid {
  display: grid;
  gap: 12px;
}

body.page-credits .credits-pack {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

body.page-credits .credits-pack:not(.credits-pack--fixed):hover,
body.page-credits .credits-pack.is-selected {
  border-color: rgba(15, 122, 234, 0.52);
  box-shadow: 0 20px 54px rgba(15, 122, 234, 0.13);
}

body.page-credits .credits-pack:not(.credits-pack--fixed):hover {
  transform: translateY(-1px);
}

body.page-credits .credits-pack.is-selected {
  background: var(--accent-bg);
}

body.page-credits .credits-pack--fixed {
  cursor: default;
}

body.page-credits .credits-pack span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.page-credits .credits-pack strong {
  color: var(--text-strong, var(--text));
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

body.page-credits .credits-pack em {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 900;
}

body.page-credits .credits-summary {
  padding: 26px;
}

body.page-checkout-complete .checkout-complete-main {
  max-width: 720px;
}

body.page-checkout-complete .complete-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(74, 255, 122, 0.12);
  color: var(--success);
  font-size: 1.7rem;
  font-weight: 900;
}

body.page-checkout-complete .complete-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
}

body.page-checkout-complete .complete-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

body.page-policies .policies-main {
  max-width: 980px;
}

body.page-policies .policy-document {
  padding: 34px 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

body.page-policies .policies-hero {
  text-align: left;
}

body.page-policies .policy-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.page-policies .policies-hero h1 {
  margin-top: 10px;
  color: var(--text-strong, var(--text));
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
  word-break: keep-all;
}

body.page-policies .policy-summary {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
}

body.page-policies .policy-meta {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
}

body.page-policies .policy-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 48px;
}

body.page-policies .policy-meta div + div {
  border-top: 1px solid var(--border);
}

body.page-policies .policy-meta dt,
body.page-policies .policy-meta dd {
  margin: 0;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

body.page-policies .policy-meta dt {
  border-right: 1px solid var(--border);
  color: var(--text-strong, var(--text));
  font-weight: 900;
}

body.page-policies .policies-nav {
  position: sticky;
  top: 72px;
  z-index: 2;
  margin: 18px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

body.page-policies .policies-nav a {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

body.page-policies .policies-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

body.page-policies .policy-article {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

body.page-policies .policy-article__header {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

body.page-policies .policy-article__header p,
body.page-policies .policy-article__header h2 {
  margin: 0;
  padding: 16px 20px;
}

body.page-policies .policy-article__header p {
  border-right: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.page-policies .policy-article__header h2 {
  color: var(--text-strong, var(--text));
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

body.page-policies .policy-article__body {
  padding: 28px 32px 32px;
}

body.page-policies .policy-article__body h3 {
  margin: 26px 0 0;
  color: var(--text-strong, var(--text));
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.page-policies .policy-article__body h3:first-child {
  margin-top: 0;
}

body.page-policies .policy-article__body p,
body.page-policies .policy-article__body li,
body.page-policies .policy-definition-list dd {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
  word-break: keep-all;
}

body.page-policies .policy-article__body p,
body.page-policies .policy-article__body ul,
body.page-policies .policy-definition-list {
  margin-top: 10px;
}

body.page-policies .policy-article__body ul {
  padding-left: 1.2rem;
}

body.page-policies .policy-article__body li + li {
  margin-top: 7px;
}

body.page-policies .policy-legal-table-wrap {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
}

body.page-policies .policy-legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
}

body.page-policies .policy-legal-table caption {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

body.page-policies .policy-legal-table th,
body.page-policies .policy-legal-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

body.page-policies .policy-legal-table th {
  color: var(--text-strong, var(--text));
  font-weight: 900;
}

body.page-policies .policy-legal-table tr > *:last-child {
  border-right: 0;
}

body.page-policies .policy-legal-table tbody tr:last-child > * {
  border-bottom: 0;
}

body.page-policies .policy-definition-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
}

body.page-policies .policy-definition-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
}

body.page-policies .policy-definition-list div + div {
  border-top: 1px solid var(--border);
}

body.page-policies .policy-definition-list dt,
body.page-policies .policy-definition-list dd {
  margin: 0;
  padding: 12px 14px;
}

body.page-policies .policy-definition-list dt {
  border-right: 1px solid var(--border);
  color: var(--text-strong, var(--text));
  font-size: 0.86rem;
  font-weight: 900;
}

body.page-public-landing .site-footer,
body.page-pricing .launch-readiness-panel {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

body.page-public-landing .site-footer__title,
body.page-pricing .launch-readiness-panel h2,
body.page-checkout .checkout-disclosure__title {
  color: var(--text-strong, var(--text));
  font-size: 0.95rem;
  font-weight: 900;
}

body.page-public-landing .site-footer p,
body.page-pricing .launch-readiness-panel li,
body.page-checkout .checkout-disclosure li {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  word-break: keep-all;
}

body.page-public-landing .site-footer p,
body.page-pricing .launch-readiness-panel ul,
body.page-checkout .checkout-disclosure ul {
  margin-top: 10px;
}

body.page-pricing .launch-readiness-panel ul,
body.page-checkout .checkout-disclosure ul {
  padding-left: 1.1rem;
}

body.page-public-landing .site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.page-public-landing .site-footer__links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

body.page-public-landing .site-footer__links a:hover {
  color: var(--accent);
}

body.page-checkout .checkout-disclosure {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface2);
}

@media (max-width: 920px) {
  body.page-public-landing--live .landing-hero--editorial,
  body.page-public-landing--live .landing-demo-panel,
  body.page-public-landing--live .landing-story-panel,
  body.page-public-landing--live .landing-feature-grid--live,
  body.page-credits .credits-layout {
    grid-template-columns: 1fr;
  }

  body.page-public-landing--live .landing-feature-card--primary {
    grid-row: auto;
    min-height: 260px;
  }

  body.page-pricing--live .pricing-fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-pricing--live .pricing-classroom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.page-pricing .pricing-grid,
  body.page-checkout .checkout-layout {
    grid-template-columns: 1fr;
  }

  body.page-pricing .pricing-card,
  body.page-checkout .checkout-panel,
  body.page-checkout-complete .complete-card,
  body.page-credits .credits-balance-card,
  body.page-credits .credits-pack,
  body.page-credits .credits-summary {
    padding: 22px;
    border-radius: 20px;
  }

  body.page-public-landing--live .landing-proof-grid,
  body.page-pricing--live .pricing-fact-row {
    grid-template-columns: 1fr;
  }

  body.page-public-landing--live .landing-proof-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.page-public-landing--live .landing-proof-grid > div:last-child {
    border-bottom: 0;
  }

  body.page-public-landing--live .landing-hero__route-list {
    grid-template-columns: 1fr;
  }

  body.page-public-landing--live .landing-demo-panel {
    padding: 18px;
    border-radius: 24px;
  }

  body.page-public-landing--live .landing-viewer-frame {
    height: 700px;
    min-height: 680px;
  }

  body.page-public-landing--live .landing-demo-chat__entry {
    grid-template-columns: 1fr;
  }

  body.page-pricing--live .pricing-shared-room-note,
  body.page-pricing--live .pricing-compare-panel__header,
  body.page-public-landing--live .landing-invite-panel,
  body.page-pricing--live .pricing-credit-panel,
  body.page-checkout--live .checkout-plan-note,
  body.page-checkout--live .checkout-charge-callout {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  body.page-pricing--live .pricing-shared-room-note,
  body.page-pricing--live .pricing-classroom-section {
    padding: 20px;
    border-radius: 22px;
  }

  body.page-pricing--live .pricing-shared-room-examples {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 0 20px 6px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.page-pricing--live .pricing-shared-room-examples::-webkit-scrollbar {
    display: none;
  }

  body.page-pricing--live .pricing-shared-room-examples figure {
    flex: 0 0 min(84vw, 340px);
    scroll-snap-align: start;
  }

  body.page-pricing--live .pricing-classroom-table {
    min-width: 0;
    table-layout: fixed;
  }

  body.page-pricing--live .pricing-classroom-table th,
  body.page-pricing--live .pricing-classroom-table td {
    padding: 11px 7px;
    font-size: 0.72rem;
  }

  body.page-pricing--live .pricing-classroom-table th:nth-child(1),
  body.page-pricing--live .pricing-classroom-table td:nth-child(1) {
    width: 34%;
  }

  body.page-pricing--live .pricing-classroom-table th:nth-child(2),
  body.page-pricing--live .pricing-classroom-table td:nth-child(2) {
    width: 27%;
  }

  body.page-pricing--live .pricing-classroom-table th:nth-child(3),
  body.page-pricing--live .pricing-classroom-table td:nth-child(3) {
    width: 39%;
  }

  body.page-pricing--live .pricing-compare-panel__header > span {
    white-space: normal;
  }

  body.page-pricing--live .pricing-compare-grid {
    border-radius: 16px;
  }

  body.page-pricing--live .pricing-compare-grid > div {
    grid-template-columns: 1fr;
  }

  body.page-pricing--live .pricing-compare-grid span {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.page-pricing--live .pricing-compare-grid span:last-child {
    border-bottom: 0;
  }

  body.page-credits .credits-pack {
    grid-template-columns: 1fr;
  }

  body.page-policies .policy-document,
  body.page-policies .policy-article__body {
    padding: 22px;
  }

  body.page-policies .policy-meta div,
  body.page-policies .policy-article__header,
  body.page-policies .policy-definition-list div {
    grid-template-columns: 1fr;
  }

  body.page-policies .policy-meta dt,
  body.page-policies .policy-article__header p,
  body.page-policies .policy-definition-list dt {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.page-policies .policies-nav {
    position: static;
  }

  body.page-policies .policy-legal-table-wrap {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  body.page-account .account-panel__head {
    align-items: stretch;
  }

  body.page-account .cloud-access-summary {
    padding: 11px 12px;
  }

  body.page-account .cloud-access-summary a {
    min-height: 44px;
    margin-top: 0;
  }

  body.page-account #onedrive .btn,
  body.page-account #google-drive .btn {
    min-height: 44px;
  }

  body.page-account .account-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================================================
   APP SHELL PRODUCTION POLISH · 2026-08-02
   ============================================================ */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-landing h1,
body.page-landing h2,
body.page-sessions h1 {
  text-wrap: balance;
}

body.page-landing p,
body.page-sessions p {
  text-wrap: pretty;
}

body.page-landing .header__desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-landing .header__mobile-nav {
  position: relative;
  display: none;
}

body.page-landing .header__mobile-nav > summary {
  min-width: 52px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
  transition-property: transform, border-color, background-color;
  transition-duration: 140ms;
}

body.page-landing .header__mobile-nav > summary::-webkit-details-marker {
  display: none;
}

body.page-landing .header__mobile-nav > summary:active {
  transform: scale(0.96);
}

body.page-landing .header__mobile-nav-panel {
  position: absolute;
  z-index: 140;
  top: calc(100% + 8px);
  right: 0;
  width: min(240px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.page-landing .header__mobile-nav-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

body.page-landing .header__mobile-nav-panel a:hover,
body.page-landing .header__mobile-nav-panel a:focus-visible {
  background: var(--surface2);
  color: var(--accent);
}

body.page-landing .room-card__more {
  position: relative;
  flex: 0 0 auto;
}

body.page-landing .room-card__more > summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}

body.page-landing .room-card__more > summary::-webkit-details-marker {
  display: none;
}

body.page-landing .room-card__more-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  width: min(220px, calc(100vw - 64px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
}

body.page-landing .room-card__more-menu .btn {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
}

body.page-account .password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.page-account .account-advanced-disclosure > summary {
  cursor: pointer;
  list-style: none;
}

body.page-account .account-advanced-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.page-account .account-advanced-disclosure__action {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

body.page-account .account-advanced-disclosure[open] .account-advanced-disclosure__action::before {
  content: "닫기";
}

body.page-account .account-advanced-disclosure[open] .account-advanced-disclosure__action {
  font-size: 0;
}

body.page-account .account-advanced-disclosure[open] .account-advanced-disclosure__action::before {
  font-size: 0.8rem;
}

body.page-account .account-advanced-disclosure__body {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

body.page-account .password-visibility {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

body.page-account .field-hint {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

body.page-account .field-hint--ok { color: var(--success); }
body.page-account .field-hint--error { color: var(--danger); }

body.page-checkout-complete .complete-card h1 {
  max-width: 13em;
  margin-inline: auto;
  text-wrap: balance;
  word-break: keep-all;
}

body.page-checkout .checkout-summary-row strong,
body.page-credits .checkout-summary-row strong,
body.page-credits .credits-balance-card strong,
body.page-checkout-complete .complete-state {
  font-variant-numeric: tabular-nums;
}

body.page-sessions {
  min-height: 100vh;
  padding: 0 24px 48px;
  background: var(--bg);
  color: var(--text);
}

body.page-sessions .page-header,
body.page-sessions .sessions-main {
  width: min(100%, 900px);
  margin-inline: auto;
}

body.page-sessions .page-header {
  min-height: 76px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

body.page-sessions .page-header__brand {
  display: grid;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
}

body.page-sessions .page-header__brand strong {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

:root[data-theme="light"] body.page-sessions .page-header__brand strong {
  color: #0b1220;
}

body.page-sessions .page-header__brand span {
  color: var(--muted);
  font-size: 0.78rem;
}

body.page-sessions .page-header .nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-sessions .card {
  width: 100%;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

body.page-sessions .card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

body.page-sessions .card-header-left {
  align-self: center;
}

body.page-sessions .card-title {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.3;
}

body.page-sessions .session-security-copy {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

body.page-sessions .card-header-controls {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.page-sessions .session-card-list {
  display: grid;
  gap: 0;
}

body.page-sessions .session-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.7fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

body.page-sessions .session-card:last-child {
  border-bottom: 0;
}

body.page-sessions .session-card__head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-sessions .session-card__head strong {
  font-size: 0.94rem;
}

body.page-sessions .session-card__meta {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

body.page-sessions .session-card__meta div {
  min-width: 0;
}

body.page-sessions .session-card__meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

body.page-sessions .session-card__meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

body.page-sessions .session-card__actions {
  display: flex;
  justify-content: flex-end;
}

body.page-sessions .empty-state {
  padding: 42px 22px;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .feedback-fab,
body.modal-open .chat-fab {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 720px) {
  body.page-landing .header {
    min-width: 0;
  }

  body.page-landing .header__brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.page-landing .header__title,
  body.page-landing .header__subtitle {
    white-space: nowrap;
  }

  body.page-landing .header__desktop-nav {
    display: none;
  }

  body.page-landing .header__mobile-nav {
    display: block;
  }

  body.page-checkout .header__actions,
  body.page-credits .header__actions,
  body.page-checkout-complete .header__actions {
    gap: 6px;
  }

  body.page-checkout .checkout-hero h1,
  body.page-credits .credits-hero h1,
  body.page-checkout-complete .complete-card h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.25rem);
    line-height: 1.16;
    letter-spacing: -0.045em;
  }

  body.page-checkout-complete .complete-card h1 {
    max-width: 9em;
  }

  body.page-home .feedback-fab {
    display: none !important;
  }

  body.page-home .main {
    padding-bottom: max(48px, calc(32px + env(safe-area-inset-bottom, 0px)));
  }

  body.page-landing .room-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  body.page-landing .room-card__primary-actions {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-landing .room-card__primary-actions .btn {
    min-width: 0;
    min-height: 44px;
    padding-inline: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1.25;
  }

  body.page-landing .room-card__more-trigger {
    min-width: 66px;
    min-height: 44px;
  }

  body.page-home .user-menu__trigger--classroom .user-menu__name {
    display: none;
  }

  body.page-account .password-input-row {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  body.page-sessions {
    padding: 0 16px max(36px, calc(24px + env(safe-area-inset-bottom, 0px)));
  }

  body.page-sessions .page-header {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }

  body.page-sessions .page-header .nav-links {
    gap: 10px;
    font-size: 0.78rem;
  }

  body.page-sessions .card {
    border-radius: 18px;
  }

  body.page-sessions .card-header {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  body.page-sessions .session-security-copy,
  body.page-sessions .card-header-controls {
    grid-column: 1;
    grid-row: auto;
  }

  body.page-sessions .card-header-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.page-sessions .refresh-indicator {
    grid-column: 1 / -1;
    text-align: left;
  }

  body.page-sessions .card-header-controls .btn {
    min-height: 44px;
    white-space: normal;
    line-height: 1.25;
  }

  body.page-sessions .session-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  body.page-sessions .session-card__meta {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body.page-sessions .session-card__meta div:first-child {
    grid-column: 1 / -1;
  }

  body.page-sessions .session-card__actions,
  body.page-sessions .session-card__actions .btn {
    width: 100%;
  }

  body.page-sessions .session-card__actions .btn {
    min-height: 44px;
    justify-content: center;
  }
}

/* Home room cards use one action language. The primary links and the details
   trigger should feel like siblings, rather than two full controls beside a
   tiny utility button. Keep the contract explicit so summary's user-agent
   defaults cannot change its font metrics or optical centering. */
body.page-home .room-card__actions {
  align-items: stretch;
  gap: 8px;
}

body.page-home .room-card__primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

body.page-home .room-card__actions .room-card__primary-actions .btn,
body.page-home .room-card__actions .room-card__more .room-card__more-trigger {
  box-sizing: border-box;
  width: 100%;
  min-width: 92px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.page-home .room-card__more {
  flex: 0 0 92px;
  align-self: stretch;
}

body.page-home .room-card__more-trigger {
  justify-content: center;
}

/* A transformed card creates its own stacking context on hover. Elevate the
   open card so its menu stays above the next card on touch screens. */
body.page-home .room-card:has(.room-card__more[open]) {
  z-index: 3;
}

body.page-home .room-card__more-menu {
  z-index: 100;
}

@media (max-width: 720px) {
  body.page-home .room-card__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  body.page-home .room-card__primary-actions {
    display: contents;
  }

  body.page-home .room-card__primary-actions .btn:only-child {
    grid-column: span 2;
  }

  body.page-home .room-card__actions .room-card__primary-actions .btn,
  body.page-home .room-card__actions .room-card__more .room-card__more-trigger {
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding-inline: 6px;
    font-size: 0.74rem;
  }

  body.page-home .room-card__more {
    width: auto;
    flex-basis: auto;
  }
}

/* Room type is part of the room identity, so keep it beside the title. The
   name owns the flexible space and truncates before the badge can be pushed
   off a narrow card. */
body.page-home .room-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.page-home .room-card__name-row .room-card__name {
  flex: 0 1 auto;
  min-width: 0;
}

body.page-home .room-card__name-row .badge--room-type {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Keep the signed-in room list on the same beta wordmark as the public entry
   point without changing the compact two-line app header structure. */
body.page-home .header__title-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
}

body.page-home .header__title-row .header__title {
  line-height: 1;
}

/* Lecture-note completion notifications live in the signed-in room list so
   long-running jobs can finish after the user leaves the recorder. */
body.page-home .lecture-note-notifications {
  position: relative;
  z-index: 145;
}

body.page-home .lecture-note-notifications__trigger {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.page-home .lecture-note-notifications__trigger:hover,
body.page-home .lecture-note-notifications__trigger:focus-visible,
body.page-home .lecture-note-notifications__trigger[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

body.page-home .lecture-note-notifications__trigger:active {
  transform: scale(0.96);
}

body.page-home .lecture-note-notifications__trigger svg {
  width: 19px;
  height: 19px;
}

body.page-home .lecture-note-notifications__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.page-home .lecture-note-notifications__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18);
  color: var(--text);
}

body.page-home .lecture-note-notifications__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-soft, var(--border));
}

body.page-home .lecture-note-notifications__panel-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.page-home .lecture-note-notifications__panel-head strong {
  font-size: 0.92rem;
}

body.page-home .lecture-note-notifications__panel-head span {
  color: var(--muted);
  font-size: 0.72rem;
}

body.page-home .lecture-note-notifications__panel-head button {
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

body.page-home .lecture-note-notifications__panel-head button:hover,
body.page-home .lecture-note-notifications__panel-head button:focus-visible {
  background: var(--accent-bg);
}

body.page-home .lecture-note-notifications__panel-head button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

body.page-home .lecture-note-notifications__list {
  max-height: min(52vh, 430px);
  overflow: auto;
}

body.page-home .lecture-note-notifications__item {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border-soft, var(--border));
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
}

body.page-home .lecture-note-notifications__item:last-child {
  border-bottom: 0;
}

body.page-home .lecture-note-notifications__item:hover,
body.page-home .lecture-note-notifications__item:focus-visible {
  background: var(--surface2);
}

body.page-home .lecture-note-notifications__item--unread {
  background: color-mix(in srgb, var(--accent-bg) 64%, var(--surface));
}

body.page-home .lecture-note-notifications__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
}

body.page-home .lecture-note-notifications__item--unread .lecture-note-notifications__dot {
  background: var(--accent);
}

body.page-home .lecture-note-notifications__item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.page-home .lecture-note-notifications__item-copy strong,
body.page-home .lecture-note-notifications__item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .lecture-note-notifications__item-copy strong {
  font-size: 0.82rem;
}

body.page-home .lecture-note-notifications__item-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

body.page-home .lecture-note-notifications__item-action {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

body.page-home .lecture-note-notifications__item-main {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

body.page-home .lecture-note-notifications__download {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 24%, var(--border));
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

body.page-home .lecture-note-notifications__download svg {
  width: 19px;
  height: 19px;
}

body.page-home .lecture-note-notifications__download:hover,
body.page-home .lecture-note-notifications__download:focus-visible {
  background: var(--accent-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 48%, var(--border));
}

body.page-home .lecture-note-notifications__download:active {
  scale: 0.96;
}

body.page-home .lecture-note-notifications__empty {
  padding: 26px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

body.page-home .lecture-note-notifications__updates {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid color-mix(in srgb, var(--border) 52%, transparent);
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
}

body.page-home .lecture-note-notifications__updates > span:first-child { display: grid; gap: 2px; }
body.page-home .lecture-note-notifications__updates strong { font-size: .7rem; }
body.page-home .lecture-note-notifications__updates small { color: var(--muted); font-size: .62rem; }
body.page-home .lecture-note-notifications__updates > span:last-child { color: #60a5fa; font-size: 1.1rem; }

body.page-home .lecture-note-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 300;
  width: min(470px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.2);
  color: var(--text);
  transform: translateX(-50%);
}

body.page-home .lecture-note-toast__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 900;
}

body.page-home .lecture-note-toast__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.page-home .lecture-note-toast__copy strong,
body.page-home .lecture-note-toast__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .lecture-note-toast__copy strong {
  font-size: 0.84rem;
}

body.page-home .lecture-note-toast__copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

body.page-home .lecture-note-toast > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.page-home .lecture-note-toast > button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

body.page-home .lecture-note-toast > button:hover,
body.page-home .lecture-note-toast > button:focus-visible {
  background: var(--surface2);
  color: var(--text);
}

body.page-home .home-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding-inline: max(16px, calc((100vw - 960px) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

body.page-home .home-view-tabs__tab {
  position: relative;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

body.page-home .home-view-tabs__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

body.page-home .home-view-tabs__tab:hover,
body.page-home .home-view-tabs__tab:focus-visible,
body.page-home .home-view-tabs__tab.is-active {
  color: var(--text-strong, var(--text));
}

body.page-home .home-view-tabs__tab.is-active::after {
  background: var(--accent);
}

body.page-home .home-notes-view[hidden],
body.page-home .home-rooms-view[hidden] {
  display: none !important;
}

body.page-home .home-notes-view {
  display: grid;
  gap: 22px;
}

body.page-home .home-notes-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
}

body.page-home .home-notes-toolbar[hidden] {
  display: none !important;
}

body.page-home .home-notes-toolbar__summary {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.page-home .home-notes-toolbar__summary strong {
  color: var(--text-strong, var(--text));
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

body.page-home .home-notes-toolbar__summary span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-wrap: pretty;
}

body.page-home .home-notes-toolbar__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.page-home .home-notes-view-toggle {
  display: inline-flex;
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}

body.page-home .home-notes-view-toggle__button {
  min-width: 94px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition-property: color, background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

body.page-home .home-notes-view-toggle__button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.page-home .home-notes-view-toggle__button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.page-home .home-notes-view-toggle__button:active,
body.page-home .home-note-card__action:active,
body.page-home .home-notes-status__action:active,
body.page-home .home-notes-warning button:active {
  scale: 0.96;
}

body.page-home .home-notes-view-toggle__button:focus-visible,
body.page-home .home-note-card__action:focus-visible,
body.page-home .home-notes-status__action:focus-visible,
body.page-home .home-notes-warning button:focus-visible,
body.page-home .home-notes-sort select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 2px;
}

body.page-home .home-notes-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

body.page-home .home-notes-sort select {
  min-width: 122px;
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

body.page-home .home-notes-status {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 28px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface2) 62%, transparent);
  color: var(--muted);
  text-align: center;
}

body.page-home .home-notes-status[hidden] {
  display: none;
}

body.page-home .home-notes-status__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  border-radius: 14px;
  background: var(--surface);
  color: color-mix(in srgb, var(--accent) 76%, var(--muted));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent), 0 6px 18px rgba(15, 23, 42, 0.05);
}

body.page-home .home-notes-status[data-state="error"] .home-notes-status__icon {
  color: var(--danger);
}

body.page-home .home-notes-status__icon svg {
  width: 23px;
  height: 23px;
}

body.page-home .home-notes-status__skeleton {
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 74%, transparent);
  animation: home-note-skeleton 1.2s ease-in-out infinite alternate;
}

body.page-home .home-notes-status__skeleton--icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

body.page-home .home-notes-status__skeleton--title {
  width: min(52%, 190px);
  height: 14px;
}

body.page-home .home-notes-status__skeleton--copy {
  width: min(74%, 280px);
  height: 10px;
}

@keyframes home-note-skeleton {
  from { opacity: 0.42; }
  to { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .home-notes-status__skeleton { animation: none; }
}

/* 2026-08-16 mobile critique remediation. Keep these product surfaces on the
   shared Pretendard stack while tightening only the requested app UI. */
body.page-home .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.page-home .header-quota {
  --quota-remaining: 0;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 3px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, transform 140ms ease-out;
}

body.page-home .header-quota:hover,
body.page-home .header-quota:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: var(--surface2);
}

body.page-home .header-quota:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 26%, transparent);
  outline-offset: 2px;
}

body.page-home .header-quota:active {
  transform: scale(0.96);
}

body.page-home .header-quota__gauge,
body.page-home .header-quota__gauge svg {
  display: block;
  width: 30px;
  height: 30px;
}

body.page-home .header-quota__gauge-track,
body.page-home .header-quota__gauge-progress {
  fill: none;
  stroke-width: 3;
}

body.page-home .header-quota__gauge-track {
  stroke: color-mix(in srgb, var(--muted) 24%, transparent);
}

body.page-home .header-quota__gauge-progress {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: var(--quota-remaining) 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

body.page-home .header-quota.quota-card--low {
  color: var(--danger);
}

body.page-home.page-home--notes-active .main {
  padding-top: 12px;
}

body.page-home .home-notes-view {
  gap: 12px;
}

body.page-home .home-notes-toolbar {
  margin-top: 0;
}

body.page-home .home-note-card {
  grid-template-columns: 62px minmax(0, 1fr) auto;
}

body.page-home .home-note-card__copy {
  display: grid;
  gap: 4px;
}

body.page-home .home-note-card__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.page-home .home-note-card__copy .home-note-card__meta p {
  min-width: 0;
  margin: 0;
}

body.page-home .home-note-card__status {
  min-height: 20px;
  padding-inline: 7px;
  font-size: 0.64rem;
}

body.page-home .home-note-card__status--progress {
  display: grid;
  min-width: min(100%, 210px);
  max-width: 100%;
  gap: 5px;
  border-radius: 10px;
  line-height: 1.3;
  white-space: normal;
}

body.page-home .home-note-card__status--progress > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-note-card__progress {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

body.page-home .home-note-card__progress > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: width 220ms ease-out;
}

body.page-home .home-note-card__thumbnail-image {
  object-position: top center;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card {
  grid-template-rows: auto auto;
  gap: 6px 8px;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__copy h3 {
  min-height: 0;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__meta {
  min-height: 20px;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__action {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

body.page-home .room-type-picker__title,
body.page-home .room-add-chip,
body.page-home .room-add-chip__label {
  font-family: var(--font);
}

body.page-home .room-type-picker__title {
  white-space: nowrap;
}

body.page-home .room-card__more-menu {
  width: max-content;
  min-width: 0;
  max-width: min(220px, calc(100vw - 32px));
}

body.page-home .room-card__more-menu > button,
body.page-home .room-card__more-menu > a {
  white-space: nowrap;
}

body.page-feedback .feedback-textarea {
  font-family: var(--font);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  body.page-home .header-quota {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 3px;
  }

  body.page-home .header-quota__gauge,
  body.page-home .header-quota__gauge svg {
    width: 28px;
    height: 28px;
  }

  body.page-home .user-menu__name {
    display: block;
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-home .home-notes-toolbar {
    margin-top: 0;
  }

  body.page-home .home-note-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  body.page-home .home-note-card__thumbnail {
    grid-row: 1;
  }

  body.page-home .home-note-card__action {
    grid-column: 3;
    grid-row: 1;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card__thumbnail {
    grid-row: auto;
  }

  body.page-home .room-card__actions .room-card__primary-actions .btn,
  body.page-home .room-card__actions .room-card__more .room-card__more-trigger {
    min-height: 36px;
    height: 36px;
    font-family: var(--font);
  }
}

body.page-home .home-notes-status strong {
  color: var(--text-strong, var(--text));
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body.page-home .home-notes-status p {
  max-width: 390px;
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.55;
  text-wrap: pretty;
}

body.page-home .home-notes-status__action,
body.page-home .home-notes-warning button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 36%, var(--border));
  transition-property: color, background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

body.page-home .home-notes-status__action {
  margin-top: 6px;
}

body.page-home .home-notes-warning {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 14px;
  border-radius: 13px;
  background: color-mix(in srgb, #d97706 9%, var(--surface));
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

body.page-home .home-notes-warning[hidden] {
  display: none;
}

body.page-home .home-notes-warning__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, #d97706 16%, transparent);
  color: #b45309;
  font-weight: 900;
}

body.page-home .home-notes-warning > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
  text-wrap: pretty;
}

body.page-home .home-notes-warning strong {
  color: var(--text-strong, var(--text));
}

body.page-home .home-notes-warning button {
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

body.page-home .home-notes-sections {
  display: grid;
  gap: 30px;
}

body.page-home .home-notes-sections[hidden] {
  display: none;
}

body.page-home .home-notes-section {
  display: grid;
  gap: 14px;
}

body.page-home .home-notes-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

body.page-home .home-notes-section__head h2 {
  margin: 0;
  color: var(--text-strong, var(--text));
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.page-home .home-notes-section__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

body.page-home .home-notes-section__head > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.page-home .home-notes-section__items {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

body.page-home .home-note-card {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

body.page-home .home-note-card:last-child {
  border-bottom: 0;
}

body.page-home .home-note-card__thumbnail {
  display: none;
}

body.page-home .home-note-card__copy {
  min-width: 0;
}

body.page-home .home-note-card__copy h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-strong, var(--text));
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-home .home-note-card__copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-note-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.page-home .home-note-card[data-note-status="ready"] .home-note-card__status {
  background: color-mix(in srgb, #16a34a 12%, transparent);
  color: #15803d;
}

body.page-home .home-note-card[data-note-status="needs_review"] .home-note-card__status {
  background: color-mix(in srgb, #d97706 12%, transparent);
  color: #b45309;
}

body.page-home .home-note-card[data-note-status="failed"] .home-note-card__status {
  background: color-mix(in srgb, var(--danger) 11%, transparent);
  color: var(--danger);
}

body.page-home .home-note-card[data-note-status="queued"] .home-note-card__status,
body.page-home .home-note-card[data-note-status="running"] .home-note-card__status,
body.page-home .home-note-card[data-note-status="canceling"] .home-note-card__status {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

body.page-home .home-note-card[data-note-status="canceled"] .home-note-card__status {
  background: color-mix(in srgb, var(--muted) 9%, transparent);
  color: var(--muted);
}

body.page-home .home-note-card__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--border));
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition-property: color, background-color, border-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

body.page-home .home-note-card__actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 44px;
  align-items: stretch;
  gap: 8px;
}

body.page-home .home-note-card__actions--single {
  grid-template-columns: minmax(92px, 1fr);
}

body.page-home .home-note-card__action--download {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

body.page-home .home-note-card__action--download svg {
  width: 19px;
  height: 19px;
}

body.page-home .home-note-card__action--cancel {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--border));
  background: color-mix(in srgb, var(--danger) 5%, transparent);
  color: var(--danger);
}

body.page-home .home-note-card__action--cancel:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--danger) 70%, var(--border));
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

body.page-home .home-note-card__action:disabled {
  cursor: wait;
  opacity: 0.6;
}

body.page-home .home-notes-view[data-view="grid"] .home-notes-section__items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card {
  min-height: 0;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__thumbnail {
  grid-column: 1 / -1;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface2);
}

:root[data-theme="light"] body.page-home .home-note-card__thumbnail {
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}

:root:not([data-theme="light"]) body.page-home .home-note-card__thumbnail {
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}

body.page-home .home-note-card__thumbnail-image,
body.page-home .home-note-card__thumbnail-fallback {
  width: 100%;
  height: 100%;
}

body.page-home .home-note-card__thumbnail-image {
  display: block;
  object-fit: contain;
  background: var(--surface);
}

body.page-home .home-note-card__thumbnail-fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

body.page-home .home-note-card__thumbnail-fallback svg {
  width: 24px;
  height: 24px;
  opacity: 0.58;
}

body.page-home .home-note-card__thumbnail-fallback > span {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__copy {
  grid-column: 1 / -1;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__copy h3 {
  min-height: 2.54em;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__status {
  justify-self: start;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__action {
  min-width: 0;
  justify-self: end;
  padding-inline: 9px;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__actions {
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 3;
}

body.page-home .home-note-card__actions .home-note-card__action,
body.page-home .home-notes-view[data-view="grid"] .home-note-card__actions .home-note-card__action {
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
}

@media (max-width: 520px) {
  body.page-home .home-view-tabs {
    padding-inline: 16px;
  }

  body.page-home .home-view-tabs__tab {
    min-height: 52px;
  }

  body.page-home .home-notes-view {
    gap: 20px;
  }

  body.page-home .home-notes-toolbar {
    align-items: stretch;
    gap: 12px;
    flex-direction: column;
  }

  body.page-home .home-notes-toolbar__controls {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  body.page-home .home-notes-view-toggle__button {
    min-width: 78px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  body.page-home .home-notes-sort {
    gap: 6px;
  }

  body.page-home .home-notes-sort select {
    min-width: 0;
    width: 108px;
    padding-left: 9px;
    font-size: 0.72rem;
  }

  body.page-home .home-notes-status {
    min-height: 164px;
    padding-inline: 18px;
  }

  body.page-home .home-notes-warning {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 6px 6px 10px;
  }

  body.page-home .home-notes-warning button {
    margin-left: 0;
    padding-inline: 9px;
  }

  body.page-home .home-notes-section__head p {
    display: none;
  }

  body.page-home .home-note-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  body.page-home .home-note-card__thumbnail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.page-home .home-note-card__copy {
    grid-column: 2;
    grid-row: 1;
  }

  body.page-home .home-note-card__status {
    grid-column: 1;
    justify-self: start;
  }

  body.page-home .home-note-card__actions {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-notes-section__items {
    gap: 10px;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card {
    padding: 8px;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card__copy h3 {
    font-size: 0.82rem;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card__copy p {
    font-size: 0.68rem;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card__status,
  body.page-home .home-notes-view[data-view="grid"] .home-note-card__action {
    font-size: 0.68rem;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card__actions {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .home-view-tabs__tab,
  body.page-home .home-notes-view-toggle__button,
  body.page-home .home-note-card__action,
  body.page-home .home-notes-status__action,
  body.page-home .home-notes-warning button {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  body.page-home .header {
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
  }

  body.page-home .header__brand {
    flex: 1 1 auto;
    min-width: 72px;
  }

  body.page-home .header__actions {
    flex: 0 0 auto;
    gap: 5px;
  }

  body.page-home .user-menu__trigger--classroom {
    max-width: 150px;
    padding-inline: 8px;
  }

  body.page-home .user-menu__trigger--classroom .user-menu__plan-badge {
    max-width: 122px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-home .lecture-note-notifications__trigger,
  body.page-home .header__theme-btn {
    width: 36px;
    height: 36px;
  }

  body.page-home .lecture-note-notifications__panel {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100dvh - 92px);
  }

  body.page-home .lecture-note-toast {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    grid-template-columns: 32px minmax(0, 1fr) auto 30px;
    gap: 8px;
    padding: 10px;
  }
}

@media (max-width: 370px) {
  body.page-home .user-menu__trigger--classroom {
    max-width: 122px;
  }

  body.page-home .user-menu__trigger--classroom .user-menu__plan-badge {
    max-width: 94px;
  }
}

/* 2026-08-15 Home inventory and room-card remediation. */
body.page-home .header-quota {
  min-height: 38px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  white-space: nowrap;
  cursor: default;
  font-variant-numeric: tabular-nums;
}

body.page-home .header-quota[hidden] {
  display: none;
}

body.page-home .header-quota__label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
}

body.page-home .header-quota__value {
  color: var(--text-strong, var(--text));
  font-size: 0.75rem;
  font-weight: 900;
}

body.page-home .home-rooms-view {
  display: grid;
  gap: 14px;
}

body.page-home .rooms-list {
  margin-top: 0;
}

body.page-home .room-card {
  padding-block: 12px;
}

body.page-home .room-card__content {
  gap: 12px;
}

body.page-home .room-card__info {
  gap: 7px;
}

body.page-home .room-card__more {
  flex-basis: 44px;
}

body.page-home .room-card__actions .room-card__more .room-card__more-trigger {
  min-width: 44px;
  width: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition-property: color, border-color, background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}

body.page-home .room-card__more-trigger svg {
  width: 18px;
  height: 18px;
}

body.page-home .room-card__more-trigger:hover,
body.page-home .room-card__more-trigger:focus-visible,
body.page-home .room-card__more[open] .room-card__more-trigger {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: var(--surface2);
  color: var(--text);
}

body.page-home .room-card__more-trigger:active {
  transform: scale(0.96);
}

body.page-home .room-card__more-menu {
  min-width: 154px;
  display: grid;
  gap: 2px;
  padding: 6px;
}

body.page-home .room-card__more-menu > button,
body.page-home .room-card__more-menu > a {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition-property: color, background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}

body.page-home .room-card__more-menu > button:hover,
body.page-home .room-card__more-menu > button:focus-visible,
body.page-home .room-card__more-menu > a:hover,
body.page-home .room-card__more-menu > a:focus-visible {
  background: var(--surface2);
}

body.page-home .room-card__more-menu > button:active,
body.page-home .room-card__more-menu > a:active {
  transform: scale(0.98);
}

body.page-home .room-card__more-menu > button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

body.page-home .room-card__more-menu > .room-card__menu-danger:not(:disabled) {
  color: var(--danger);
}

body.page-home .room-card__primary-actions .btn:disabled {
  border-color: var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

body.page-home .home-invite-section {
  display: grid;
  gap: 9px;
}

body.page-home .home-invite-section[hidden] {
  display: none;
}

body.page-home .home-invite-section__title {
  margin: 0;
  color: var(--text-strong, var(--text));
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.page-home .room-card--invitation {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

body.page-home .room-card--invitation .room-card__content {
  padding-left: 16px;
}

body.page-home .home-notes-toolbar {
  justify-content: flex-end;
  margin-top: -8px;
}

body.page-home .home-notes-sections {
  gap: 26px;
}

body.page-home .home-notes-section--room .home-notes-section__head {
  align-items: center;
  padding-inline: 2px;
}

body.page-home .home-notes-section--room .home-notes-section__head h2 {
  font-size: 0.94rem;
}

body.page-home .home-note-card {
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  padding-block: 12px;
}

body.page-home .home-note-card__thumbnail {
  width: 96px;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface2);
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__thumbnail {
  width: auto;
  height: auto;
}

body.page-home .lecture-note-notifications__item {
  min-height: 60px;
  padding-block: 9px;
}

body.page-home .lecture-note-notifications__panel-head {
  padding-block: 11px 9px;
}

body.page-home .modal--create-room {
  gap: 14px;
}

body.page-home .room-type-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.page-home .room-type-picker__item {
  min-width: 0;
}

body.page-home .room-type-picker__option {
  min-height: 68px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  text-align: center;
}

body.page-home .room-type-picker__lock {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

body.page-home .room-type-picker__lock[hidden] {
  display: none;
}

body.page-home .room-type-picker__lock svg {
  width: 100%;
  height: 100%;
}

body.page-home .modal--create-room .modal__actions {
  margin-top: 2px;
}

.room-share-modal__actions .modal__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.room-share-modal__actions .modal__btn svg {
  width: 17px;
  height: 17px;
}

/* Classroom administration is a page, not a nested Home modal. */
body.page-classroom .classroom-home-link,
body.page-classroom .classroom-page__back {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

body.page-classroom .classroom-home-link:hover,
body.page-classroom .classroom-page__back:hover {
  background: var(--surface2);
}

body.page-classroom .classroom-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 max(64px, env(safe-area-inset-bottom, 0px));
}

body.page-classroom .classroom-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

body.page-classroom .classroom-page__eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

body.page-classroom .classroom-page__head h1 {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  letter-spacing: -0.04em;
}

body.page-classroom .classroom-usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

body.page-classroom .classroom-usage[hidden] {
  display: none;
}

body.page-classroom .classroom-usage > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.page-classroom .classroom-usage span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

body.page-classroom .classroom-usage strong {
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

body.page-classroom .classroom-usage a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

body.page-classroom .classroom-page__notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.78rem;
}

body.page-classroom .classroom-page__notice[hidden] {
  display: none;
}

body.page-classroom .classroom-page__notice[data-tone="error"] {
  color: var(--danger);
}

body.page-classroom .classroom-page__notice[data-tone="success"] {
  color: var(--success, #15803d);
}

body.page-classroom .classroom-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

body.page-classroom .classroom-tabs[hidden] {
  display: none;
}

body.page-classroom .classroom-tabs--single {
  grid-template-columns: minmax(0, 1fr);
}

body.page-classroom .classroom-tabs button[hidden] {
  display: none;
}

body.page-classroom .classroom-tabs button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  transition-property: color, border-color, background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}

body.page-classroom .classroom-tabs button.is-active {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: var(--accent-bg);
  color: var(--accent);
}

body.page-classroom .classroom-tabs button:active {
  transform: scale(0.96);
}

body.page-classroom .classroom-panel {
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

body.page-classroom .classroom-panel[hidden] {
  display: none;
}

body.page-classroom .classroom-panel > label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

body.page-classroom .classroom-panel textarea {
  width: 100%;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

body.page-classroom .classroom-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

body.page-classroom .classroom-panel__actions .btn {
  min-height: 44px;
}

body.page-classroom .classroom-members {
  display: grid;
}

body.page-classroom .classroom-proposals {
  display: grid;
  gap: 10px;
}

body.page-classroom .classroom-proposals__empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

body.page-classroom .classroom-proposal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}

body.page-classroom .classroom-proposal__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.page-classroom .classroom-proposal__copy span,
body.page-classroom .classroom-proposal__copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-classroom .classroom-proposal__copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-classroom .classroom-proposal__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

body.page-classroom .classroom-proposal__actions button {
  min-width: 56px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}

body.page-classroom .classroom-proposal__actions button[data-proposal-action="approve"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: var(--accent);
}

body.page-classroom .classroom-proposal__actions button:active:not(:disabled) {
  transform: scale(0.96);
}

@media (max-width: 520px) {
  body.page-classroom .classroom-proposal {
    align-items: stretch;
    flex-direction: column;
  }

  body.page-classroom .classroom-proposal__actions {
    justify-content: flex-end;
  }
}

body.page-classroom .classroom-member-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--border);
}

body.page-classroom .classroom-member-row:last-child {
  border-bottom: 0;
}

body.page-classroom .classroom-member-row__info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.page-classroom .classroom-member-row__info strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-classroom .classroom-member-row__info span,
body.page-classroom .classroom-member-row__toggle {
  color: var(--muted);
  font-size: 0.72rem;
}

body.page-classroom .classroom-member-row__toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 520px) {
  body.page-home .header-quota {
    min-width: 58px;
    min-height: 36px;
    justify-content: center;
    padding-inline: 7px;
  }

  body.page-home .header-quota__label,
  body.page-home .user-menu__name,
  body.page-home .user-menu__caret {
    display: none;
  }

  body.page-home .home-notes-toolbar {
    margin-top: -10px;
  }

  body.page-home .home-note-card {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px;
  }

  body.page-home .home-note-card__thumbnail {
    width: 80px;
    height: auto;
    aspect-ratio: 16 / 9;
    grid-row: 1 / span 2;
  }

  body.page-home .home-note-card__action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  body.page-home .home-note-card__status {
    grid-column: 2;
  }

  body.page-home .home-notes-view[data-view="grid"] .home-note-card__thumbnail {
    grid-row: auto;
  }

  body.page-home .room-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
  }

  body.page-home .room-card__actions .room-card__primary-actions .btn,
  body.page-home .room-card__actions .room-card__more .room-card__more-trigger {
    min-height: 44px;
    height: 44px;
  }

  body.page-home .room-card__more-menu > button,
  body.page-home .room-card__more-menu > a {
    min-height: 44px;
  }

  body.page-classroom .header {
    padding-inline: 16px;
  }

  body.page-classroom .classroom-page {
    padding-top: 24px;
  }

  body.page-classroom .classroom-page__back {
    display: none;
  }

  body.page-classroom .classroom-usage {
    align-items: flex-start;
    padding: 14px;
  }

  body.page-classroom .classroom-usage strong {
    font-size: 0.9rem;
  }

  body.page-classroom .classroom-panel {
    padding: 16px;
  }

  body.page-classroom .classroom-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .room-card__more-trigger,
  body.page-home .room-card__more-menu > button,
  body.page-home .room-card__more-menu > a,
  body.page-classroom .classroom-tabs button {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 520px) {
  body.page-home .user-menu__trigger {
    max-width: 118px;
    gap: 5px;
    padding-inline: 8px;
  }

  body.page-home .user-menu__name {
    display: block;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-home .user-menu__caret {
    display: none;
  }

  body.page-home .header-quota {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 3px;
  }

  body.page-home .room-card__actions .room-card__primary-actions .btn,
  body.page-home .room-card__actions .room-card__more .room-card__more-trigger {
    min-height: 36px;
    height: 36px;
  }
}

/* 2026-08-18 account and home mobile intent pass. */
body.page-account .account-setting--identity .account-summary,
body.page-account #profilePanel > .account-panel__head .account-summary {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

body.page-account .account-summary__label,
body.page-account .account-setting__current,
body.page-account .account-summary__value {
  margin: 0;
  color: var(--text-strong, var(--text));
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

body.page-account .account-setting--password:has(#passwordForm[hidden]) {
  display: none;
}

body.page-account .account-setting--password {
  padding-top: 8px;
}

body.page-account .account-actions--security {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

body.page-account .account-actions--security .btn,
body.page-account .account-logout {
  width: 100%;
  margin: 0;
}

body.page-account .account-login-methods {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.page-account .account-login-method {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

body.page-account .account-login-method__icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface2);
  color: var(--text);
}

body.page-account .account-login-method__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-account .account-login-method--kakao .account-login-method__icon svg {
  fill: currentColor;
  stroke: none;
}

body.page-account .account-login-method--google .account-login-method__icon svg {
  fill: currentColor;
  stroke: none;
}

body.page-account .account-login-method__naver {
  color: #03c75a;
  font-size: 1.2rem;
  font-weight: 900;
}

body.page-account .account-login-method__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.page-account .account-login-method__copy strong {
  color: var(--text-strong, var(--text));
  font-size: 0.84rem;
  font-weight: 750;
}

body.page-account .account-login-method__copy small,
body.page-account .account-login-methods__empty {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-account .account-plan-status__action {
  width: 100%;
  min-height: 44px;
}

body.page-account .account-export-panel {
  gap: 14px;
}

body.page-account .account-export-panel .account-provider-nav {
  margin: 0;
}

body.page-account .account-provider-tile {
  border: 1px solid var(--border);
  box-shadow: none;
}

body.page-home .header-quota {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  cursor: pointer;
}

body.page-home .header-quota:hover,
body.page-home .header-quota:focus-visible {
  border: 0;
  background: transparent;
  color: var(--text);
}

body.page-home .header-quota:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 26%, transparent);
  outline-offset: 3px;
}

body.page-home .header-quota__gauge,
body.page-home .header-quota__gauge svg {
  width: 24px;
  height: 24px;
}

body.page-home .header-quota__gauge-track,
body.page-home .header-quota__gauge-progress {
  stroke-width: 3.2;
}

body.page-home .header-quota.quota-card--low {
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

body.page-home .room-card__primary-actions .room-card__recording-action:disabled {
  border-color: #d72c36;
  background: #d72c36;
  color: #fff;
  opacity: 1;
  font-weight: 800;
}

body.page-home .room-card__recording-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  body.page-landing .room-card--order-saved {
    animation: none;
  }
}

@media (max-width: 560px) {
  body.page-home .room-card--invitation .room-card__content {
    padding-left: 28px;
  }

  body.page-home .room-card--invitation .room-card__actions {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 44px;
  }

  body.page-home .room-card--invitation .room-card__actions .btn {
    grid-column: 1 / span 2;
    min-height: 36px;
    height: 36px;
    font-family: var(--font);
    font-size: 0.74rem;
    font-weight: 700;
  }
}

/* Lecture-note cards keep reading/opening as the primary task while exposing
   a compact, separately labelled PDF download. This final normalization layer
   sits after the legacy app-shell rules above. */
body.page-home .home-note-card__actions {
  width: min(224px, 100%);
  grid-column: 3;
  grid-row: 1 / span 2;
}

body.page-home .home-notes-view[data-view="grid"] .home-note-card__actions {
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 520px) {
  body.page-home .home-notes-view:not([data-view="grid"]) .home-note-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  body.page-home .home-notes-view:not([data-view="grid"]) .home-note-card__thumbnail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.page-home .home-notes-view:not([data-view="grid"]) .home-note-card__copy {
    grid-column: 2;
    grid-row: 1;
  }

  body.page-home .home-notes-view:not([data-view="grid"]) .home-note-card__actions {
    width: 100%;
    grid-column: 2;
    grid-row: 2;
  }
}
