/* AIR student work surface. Preserve MathFilm navy/blue/orange + Outfit/Manrope.
   Checklist is the work object; chat supports it. Accent: --tutor-blue. Radius: 12px. */

.air-page #air-body.tutor-body {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.air-page .tutor-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.air-page .tutor-stage .tutor-character-host {
  z-index: 4;
}

.air-page .tutor-stage .tutor-layered-png.tutor-puppet-v2,
.air-page .tutor-stage .tutor-rive-puppet.tutor-puppet-v2,
.air-page .tutor-stage .air-character-static {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.air-page .tutor-stage .air-character-static {
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.air-page .air-quick-options {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex: 0 0 118px;
  width: 118px;
  min-width: 118px;
  gap: 10px;
  padding: 14px 10px 14px 4px;
  margin-left: -6px;
  z-index: 4;
}

.air-page .air-quick-options[hidden] {
  display: none !important;
}

.air-page .air-quick-chip {
  position: relative;
  border: 0;
  border-radius: 2px 2px 3px 3px;
  padding: 14px 8px 12px;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--tutor-ink, #0f2942);
  cursor: pointer;
  white-space: normal;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 38%),
    repeating-linear-gradient(
      180deg,
      transparent 0 21px,
      rgba(15, 41, 66, 0.05) 21px 22px
    ),
    #ffe9a8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    1px 2px 0 rgba(15, 41, 66, 0.06),
    3px 6px 10px rgba(15, 41, 66, 0.14);
  transform: rotate(-2.4deg);
  transform-origin: 50% 0;
}

.air-page .air-quick-chip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 28px;
  height: 11px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  box-shadow: 0 1px 1px rgba(15, 41, 66, 0.12);
  transform: translateX(-50%) rotate(-3deg);
}

.air-page .air-quick-chip:nth-child(1) {
  background-color: #ffe9a8;
  transform: rotate(-2.6deg);
}

.air-page .air-quick-chip:nth-child(2) {
  background-color: #ffd4b0;
  transform: rotate(2.2deg);
}

.air-page .air-quick-chip:nth-child(3) {
  background-color: #cfe6ff;
  transform: rotate(1.8deg);
}

.air-page .air-quick-chip:nth-child(4) {
  background-color: #ffd7c2;
  transform: rotate(-1.7deg);
}

.air-page .air-quick-chip:nth-child(5) {
  background-color: #d8f3e3;
  transform: rotate(2.8deg);
}

.air-page .air-quick-chip:nth-child(6) {
  background-color: #f3ddff;
  transform: rotate(-2.1deg);
}

.air-page .air-quick-chip:hover {
  z-index: 2;
  filter: brightness(1.03);
  transform: rotate(-0.4deg) translateY(-2px);
}

.air-page .air-quick-chip:active {
  transform: rotate(0deg) translateY(1px) scale(0.98);
}

.air-page .air-quick-chip.is-selected {
  color: #163a8a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 2px rgba(47, 107, 255, 0.35),
    3px 7px 12px rgba(15, 41, 66, 0.16);
}

.air-page .air-quick-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.air-page .air-quick-chip[hidden] {
  display: none !important;
}

.air-page .air-back-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: 0 0 0 -6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tutor-ink, #0f2942);
  cursor: pointer;
}

.air-page .air-back-btn[hidden] {
  display: none !important;
}

.air-page .air-back-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-page .air-back-btn:hover {
  background: var(--tutor-blue-soft, #d6e6ff);
}

.air-page .air-back-btn:active {
  transform: scale(0.96);
}

.air-page .air-chat {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.air-page .air-chat .tutor-chat-head {
  overflow-x: auto;
  overflow-y: hidden;
}

.air-page .air-chat .tutor-chat-title {
  flex: 1 1 auto;
  min-width: 0;
}

.air-page .air-chat .chat-head-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.air-page .header-action.air-text-action,
.air-page #air-checklist-btn {
  width: auto !important;
  min-width: auto;
  height: 34px !important;
  padding: 0 10px !important;
  flex: 0 0 auto;
}

.air-page .header-action.air-text-action .label,
.air-page #air-checklist-btn .label {
  display: inline !important;
}

.air-page .air-chat .tutor-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.air-page .header-action[hidden],
.air-page .air-plan-overlay[hidden],
.air-page .air-toast[hidden] {
  display: none !important;
}

.air-page .air-stop-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #b42318;
  border-color: #f0b4ae;
  background: #fff4f2;
}

.air-page .air-stop-btn[hidden] {
  display: none !important;
}

.air-page .air-stop-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.air-page .air-plan-overlay {
  position: fixed;
  top: var(--shell-topbar-h, 64px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  place-items: stretch;
  justify-items: end;
  padding: 10px 14px 14px 16px;
  background: rgba(15, 41, 66, 0.38);
}

.air-page .air-plan-overlay[hidden] {
  display: none !important;
}

.air-page .air-plan-dialog {
  width: min(420px, 100%);
  height: min(100%, calc(100dvh - var(--shell-topbar-h, 64px) - 24px));
  max-height: calc(100dvh - var(--shell-topbar-h, 64px) - 24px);
  display: flex;
  justify-content: flex-end;
}

.air-page .air-plan-panel {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  max-height: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: var(--tutor-grad-panel, linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.92) 48%, rgba(255, 244, 236, 0.88) 100%));
  box-shadow: var(--tutor-shadow-2, 0 18px 48px rgba(15, 41, 66, 0.2));
}

.air-page .air-plan-panel[hidden] {
  display: none !important;
}

.air-page .air-plan-panel.is-draft {
  background: #f7faff;
  border-color: #c5d6ef;
}

.air-page .air-plan-head {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 12px;
  margin-bottom: 12px;
}

.air-page .air-plan-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.air-page .air-plan-close,
.air-overlay-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--tutor-line, #d0dced);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: var(--tutor-ink, #0f2942);
  border-radius: 10px;
  font: inherit;
  font-size: 22px !important;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 rgba(15, 41, 66, 0.08),
    0 6px 12px rgba(15, 41, 66, 0.08);
}

.air-page .air-plan-close:active,
.air-overlay-close:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 rgba(15, 41, 66, 0.08);
}

.air-page .air-plan-title {
  font-family: var(--tutor-font-display, Outfit, Manrope, sans-serif);
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1724;
  min-width: 0;
}

.air-page .air-plan-quota {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.air-page .air-plan-quota span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: #0f1724;
  border: 1px solid var(--tutor-line, #d0dced);
  font-size: 11px !important;
  font-weight: 750;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 rgba(15, 41, 66, 0.06);
}

.air-page .air-plan-quota span.is-empty {
  background: #fff4f2;
  color: #b42318;
}

.air-page .air-plan-tasks {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 4px 8px 0;
}

.air-page .air-plan-empty {
  padding: 28px 8px;
  color: var(--tutor-muted, #5a7194);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.air-page .air-plan-task {
  margin: 0;
  padding: 12px 12px 11px;
  border: 1px solid #c9d7ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(15, 41, 66, 0.08),
    0 10px 16px rgba(15, 41, 66, 0.1);
}

.air-page .air-plan-task:last-child {
  margin-bottom: 2px;
}

.air-page .air-plan-task-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
}

.air-page .air-plan-task-copy {
  min-width: 0;
  display: block;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px !important;
  line-height: 1.35 !important;
  white-space: normal;
  cursor: pointer;
}

.air-page .air-plan-task-actions {
  flex: 0 0 auto;
  width: 7.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 6px;
  padding-top: 1px;
}

.air-page .air-plan-task-body {
  margin: 10px 0 0;
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid #d5e0ee;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(15, 41, 66, 0.05);
}

.air-page .air-plan-task-brief-label {
  font-size: 10px !important;
  line-height: 1.3 !important;
  font-weight: 750;
  color: #0f1724;
  margin-bottom: 4px;
}

.air-page .air-plan-task-brief {
  white-space: pre-wrap;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #0f1724;
}

.air-page .air-plan-task.is-clickable {
  cursor: pointer;
}

.air-page .air-plan-task.is-clickable:hover {
  border-color: #b3c4d8;
}

.air-page .air-plan-task.is-clickable:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 rgba(15, 41, 66, 0.08);
}

.air-page .air-plan-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8a5a00;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 750;
}

.air-page .air-plan-reward.is-earned {
  opacity: 0.5;
}

.air-page .air-plan-coin {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff6c8 0%, #ffd45a 38%, #e0a21a 78%, #c4840d 100%);
  border: 1px solid #c99712;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 0 rgba(166, 110, 8, 0.28),
    0 1px 0 rgba(140, 90, 0, 0.35);
}

.air-page .air-plan-task.is-starting {
  opacity: 0.78;
}

.air-page .air-plan-task-title {
  font-family: var(--tutor-font-display, Outfit, Manrope, sans-serif);
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 750;
  color: #0f1724;
}

.air-page .air-plan-task-meta {
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: #334155;
  margin: 3px 0 0;
}

.air-page .air-plan-task-reason {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #0f1724;
  margin: 4px 0 0;
}

.air-page .air-plan-task.is-completed {
  opacity: 0.92;
  background: #f7faff;
  border-color: #d0dced;
  box-shadow: inset 0 1px 0 #fff;
}

.air-page .air-plan-task.is-selected,
.air-page .air-plan-task.is-selected.is-clickable:hover,
.air-page .air-plan-task.is-selected.is-completed {
  border-color: rgba(47, 107, 255, 0.28);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(15, 41, 66, 0.08),
    0 0 0 3px rgba(47, 107, 255, 0.16),
    0 0 18px 2px rgba(47, 107, 255, 0.38);
}

.air-page .air-plan-swap {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  color: var(--tutor-muted, #5a7194);
}

.air-page .air-plan-swap[hidden] {
  display: none !important;
}

.air-page .air-plan-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--tutor-line, #d0dced);
  min-width: 0;
}

.air-page .air-plan-footer[hidden] {
  display: none !important;
}

.air-page .air-plan-done {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--tutor-success, #0b8a74);
}

.air-page .air-plan-start {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  color: #fff;
  font: inherit;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.air-page .air-plan-start.is-todo {
  background: linear-gradient(180deg, #3d7aff 0%, #2f6bff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 3px 0 #1f4fd1,
    0 8px 14px rgba(47, 107, 255, 0.22);
}

.air-page .air-plan-start.is-doing {
  background: linear-gradient(180deg, #ff9a5c 0%, #ff7a3d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #d45e24,
    0 8px 14px rgba(255, 122, 61, 0.24);
}

.air-page .air-plan-start.is-done {
  background: linear-gradient(180deg, #19b394 0%, #0b8a74 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 3px 0 #086e5c,
    0 8px 14px rgba(11, 138, 116, 0.22);
}

.air-page .air-plan-start:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 0 rgba(15, 41, 66, 0.2);
}

.air-page .air-plan-start.is-busy {
  filter: saturate(0.7);
  cursor: wait;
}

.air-page .air-horizon-row {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 13px;
  color: var(--tutor-ink, #0f2942);
  min-width: 0;
}

.air-page .air-horizon-row[hidden] {
  display: none !important;
}

.air-page .air-horizon-row label {
  font-weight: 650;
}

.air-page .air-horizon-row select {
  border: 1px solid var(--tutor-line-strong, #aebfd5);
  border-radius: 12px;
  padding: 7px 10px;
  background: #fff;
  color: var(--tutor-ink, #0f2942);
  font: inherit;
  font-weight: 650;
}

.air-page .air-agree-btn {
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #3d7aff 0%, #2f6bff 100%);
  color: #fff;
  font: inherit;
  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.2 !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 3px 0 #1f4fd1,
    0 8px 14px rgba(47, 107, 255, 0.2);
}

.air-page .air-agree-btn:hover {
  filter: brightness(1.03);
}

.air-page .air-agree-btn:active {
  transform: translateY(1px);
}

.air-page .air-agree-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.air-page #air-checklist-btn.has-items {
  border-color: var(--tutor-blue, #2f6bff);
  color: #1d4ed8;
  background: var(--tutor-blue-soft, #d6e6ff);
}

.air-page #air-checklist-btn.is-empty-quota {
  border-color: #f0b4ae;
  color: #b42318;
  background: #fff4f2;
}

.air-page #air-reset-btn,
.air-page #air-checklist-btn {
  font-size: 12px !important;
}

.air-page .air-confirm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  background: var(--tutor-blue, #2f6bff);
  color: #fff;
  font: inherit;
  font-size: 13px !important;
  font-weight: 750;
  line-height: 1.2 !important;
  white-space: nowrap;
  cursor: pointer;
}

.air-page .tutor-message-bubble .air-confirm-cta {
  display: inline-flex;
  width: auto;
}

.air-page .tutor-message-bubble .air-school-prompt-actions .air-confirm-cta {
  display: inline-flex;
  margin-top: 0;
}

.air-page .air-confirm-cta:hover {
  filter: brightness(1.04);
}

.air-page .air-confirm-cta:active {
  transform: translateY(1px);
}

.air-page .air-school-prompt {
  margin-top: 10px;
}

.air-page .air-school-prompt-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}

.air-page .tutor-thread > .tutor-message {
  flex: 0 0 auto;
  height: auto;
}

.air-page .tutor-message.assistant .tutor-message-bubble,
.air-page .tutor-message[data-role="assistant"] .tutor-message-bubble {
  display: inline-block;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 80%;
  align-self: flex-start;
}

.air-page .air-typing {
  max-width: 4.5rem;
  margin-bottom: 8px;
}

.air-page .air-typing .air-typing-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 10px 14px;
  white-space: normal;
}

.air-page .air-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8aa0bc;
  opacity: 0.45;
  animation: air-typing-bounce 1.05s ease-in-out infinite;
}

.air-page .air-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.air-page .air-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes air-typing-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  35% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .air-page .air-typing-dot {
    animation: none;
    opacity: 0.7;
  }
}

.air-page .air-flow-card {
  margin-top: 8px;
  padding: 0;
  min-height: 0;
  height: auto;
  flex: 0 0 auto;
  max-width: 80%;
  background: none;
  border: 0;
  box-shadow: none;
}

.air-page .air-school-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.air-page .air-confirm-cta-choice {
  background: #fff;
  color: #1c2333;
  border: 1px solid #c9d2e3;
  font-weight: 650;
}

.air-page .air-confirm-cta.air-confirm-cta-choice:hover {
  border-color: var(--tutor-blue, #2f6bff);
  color: var(--tutor-blue, #2f6bff);
  filter: none;
}

.air-page .air-confirm-cta-secondary {
  background: transparent;
  color: var(--tutor-blue, #2f6bff);
  border: 1px solid currentColor;
}

.air-page .air-confirm-cta.air-confirm-cta-secondary:hover {
  filter: none;
  background: color-mix(in srgb, var(--tutor-blue, #2f6bff) 8%, transparent);
}

.air-page .air-clarify-card {
  margin-top: 0.55rem;
}

.air-page .air-one-item {
  margin: 6px 0 0;
  max-width: 80%;
  padding: 10px 12px;
  border: 1px solid #d5e0ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(15, 41, 66, 0.06);
  color: var(--tutor-ink, #0f2942);
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.5 !important;
}

.air-page .tutor-message-bubble .mf-frac,
.air-page .air-one-item-stem .mf-frac,
.air-page .air-one-item-choice .mf-frac,
.air-page .air-one-item-verdict .mf-frac {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}
.air-page .tutor-message-bubble .mf-frac .mf-num,
.air-page .tutor-message-bubble .mf-frac .mf-den,
.air-page .air-one-item .mf-frac .mf-num,
.air-page .air-one-item .mf-frac .mf-den { display: block; padding: 0 .22em; }
.air-page .tutor-message-bubble .mf-frac .mf-num,
.air-page .air-one-item .mf-frac .mf-num { border-bottom: 1px solid currentColor; }
.air-page .tutor-message-bubble .mf-sqrt,
.air-page .air-one-item .mf-sqrt {
  display: inline-block;
  border-top: 1px solid currentColor;
  padding: 0 .2em 0 .05em;
  margin-left: .15em;
  white-space: normal;
}

.air-page .air-one-item-stem,
.air-page .air-one-item-choice,
.air-page .air-one-item-choice-text,
.air-page .air-one-item-verdict,
.air-page .air-one-item-input {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.air-page .air-one-item-stem {
  margin: 0 0 8px;
  color: inherit;
}

.air-page .air-one-item-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.air-page .air-one-item-body.is-tf {
  flex-direction: row;
  flex-wrap: wrap;
}

.air-page .air-one-item-body.is-tf .air-one-item-choice {
  flex: 1 1 auto;
}

.air-page .air-one-item-choice,
.air-page .air-one-item-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  box-sizing: border-box;
  border: 1px solid var(--tutor-line, #d0dced);
  border-radius: 6px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 55%, #eef3fa 100%);
  color: var(--tutor-ink, #0f2942);
  text-align: left;
  cursor: pointer;
  white-space: normal !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(47, 107, 255, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.air-page .air-one-item-choice:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #b7c9e0;
}

.air-page .air-one-item-choice:active:not(:disabled),
.air-page .air-one-item-submit:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 rgba(47, 107, 255, 0.12);
}

.air-page .air-one-item-key {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c5d4ea;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  color: var(--tutor-blue, #2f6bff);
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 rgba(15, 41, 66, 0.08);
}

.air-page .air-one-item-choice-text {
  min-width: 0;
  flex: 1 1 auto;
}

.air-page .air-one-item-choice.is-selected {
  border-color: #9fc0f0;
  color: var(--tutor-blue, #2f6bff);
  background: linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(47, 107, 255, 0.22);
}

.air-page .air-one-item-choice.is-selected .air-one-item-key {
  border-color: #2a62ef;
  background: linear-gradient(180deg, #5b8cff 0%, #2f6bff 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 0 rgba(31, 79, 209, 0.28);
}

.air-page .air-one-item-choice.is-right {
  border-color: #9ad4c2;
  color: var(--tutor-success, #0b8a74);
  background: linear-gradient(180deg, #f7fffb 0%, #e7f7f0 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(11, 138, 116, 0.2);
}

.air-page .air-one-item-choice.is-right .air-one-item-key {
  border-color: #0b8a74;
  background: linear-gradient(180deg, #2aa384 0%, #0b8a74 100%);
  color: #fff;
}

.air-page .air-one-item-choice.is-miss {
  border-color: #f0b4ae;
  color: #b42318;
  background: linear-gradient(180deg, #fff8f6 0%, #fff4f2 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 rgba(180, 35, 24, 0.14);
}

.air-page .air-one-item-choice.is-miss .air-one-item-key {
  border-color: #b42318;
  background: linear-gradient(180deg, #d14a3e 0%, #b42318 100%);
  color: #fff;
}

.air-page .air-one-item-submit {
  align-self: flex-start;
  min-height: 26px;
  margin-top: 2px;
  padding: 0 12px;
  justify-content: center;
  border-color: #2a62ef;
  background: linear-gradient(180deg, #5b8cff 0%, #2f6bff 100%);
  color: #fff;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #1f4fd1;
}

.air-page .air-one-item-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.air-page .air-one-item-input {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--tutor-line, #d0dced);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--tutor-ink, #0f2942);
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(15, 41, 66, 0.05);
}

.air-page .air-one-item-verdict {
  margin: 8px 0 0;
}

.air-page .air-one-item-verdict.is-correct {
  color: var(--tutor-success, #0b8a74);
}

.air-page .air-one-item-verdict.is-wrong {
  color: #b42318;
}

.air-page .air-one-item-choice:disabled,
.air-page .air-one-item-input:disabled {
  cursor: default;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .air-page .air-one-item-choice,
  .air-page .air-one-item-submit {
    transition: none;
  }
  .air-page .air-one-item-choice:hover:not(:disabled),
  .air-page .air-one-item-choice:active:not(:disabled),
  .air-page .air-one-item-submit:hover:not(:disabled),
  .air-page .air-one-item-submit:active:not(:disabled) {
    transform: none;
  }
}

.air-page.air-onboarding .air-chat .tutor-chat-head {
  height: auto;
  min-height: 56px;
  flex: 0 0 auto;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.air-page.air-onboarding .tutor-chat-title {
  flex: 1;
  min-width: 0;
  white-space: normal;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.air-page.air-adding-subject .tutor-stage-head,
.air-page.air-onboarding.air-adding-subject .air-chat .tutor-chat-head {
  height: 56px;
  min-height: 56px;
  flex: 0 0 56px;
  align-items: center;
  padding: 0 16px;
}

.air-page.air-onboarding.air-adding-subject .tutor-chat-title {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800;
}

.air-page.air-adding-subject .chat-head-actions,
.air-page.air-adding-subject .tutor-chat-spacer {
  display: none !important;
}

.air-page .air-toast {
  position: fixed;
  top: calc(var(--shell-topbar-h, 64px) + 10px);
  right: 14px;
  z-index: 80;
  max-width: min(340px, calc(100vw - 28px));
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f2942;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(15, 41, 66, 0.24);
}

.air-page .air-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.air-page .air-plan-swap {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.air-page .air-plan-swap[hidden] {
  display: none !important;
}

.air-page .air-refresh-btn {
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tutor-blue, #2f6bff) 35%, transparent);
}

.air-page .air-refresh-btn:hover:not(:disabled) {
  background: var(--tutor-blue-soft, #d6e6ff);
}

.air-page .air-refresh-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.air-page .air-refresh-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--tutor-muted, #5a7194);
  box-shadow: inset 0 0 0 1px var(--tutor-line, #d0dced);
  background: transparent;
}

.air-page #air-checklist-btn.is-create {
  border-color: var(--tutor-blue, #2f6bff);
  color: #1d4ed8;
  background: var(--tutor-blue-soft, #d6e6ff);
}

.air-page .air-celebrate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.air-page .air-celebrate[hidden] {
  display: none !important;
}

.air-page .air-celebrate-card {
  position: relative;
  z-index: 1;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 18px 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff7d6, #ffe08a 42%, #ffb347 100%);
  color: #7a3b00;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  box-shadow:
    0 0 0 6px rgba(255, 215, 90, 0.35),
    0 18px 40px rgba(180, 90, 0, 0.28);
}

.air-page .air-celebrate-burst {
  position: absolute;
  width: 220px;
  height: 220px;
}

.air-page .air-celebrate-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i, 0) * 36deg)) translateY(-16px);
  animation: air-burst 0.9s ease-out forwards;
  background: hsl(calc(var(--i, 0) * 36), 90%, 58%);
}

.air-page .air-celebrate-burst span:nth-child(1) { --i: 0; }
.air-page .air-celebrate-burst span:nth-child(2) { --i: 1; }
.air-page .air-celebrate-burst span:nth-child(3) { --i: 2; }
.air-page .air-celebrate-burst span:nth-child(4) { --i: 3; }
.air-page .air-celebrate-burst span:nth-child(5) { --i: 4; }
.air-page .air-celebrate-burst span:nth-child(6) { --i: 5; }
.air-page .air-celebrate-burst span:nth-child(7) { --i: 6; }
.air-page .air-celebrate-burst span:nth-child(8) { --i: 7; }
.air-page .air-celebrate-burst span:nth-child(9) { --i: 8; }
.air-page .air-celebrate-burst span:nth-child(10) { --i: 9; }

@keyframes air-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateY(0) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateY(-92px) scale(1.1); }
}

.air-page .air-celebrate.is-leaving {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.air-page.air-onboarding .air-quick-options,
.air-page.air-onboarding #air-new-btn,
.air-page.air-onboarding #air-checklist-btn,
.air-page.air-onboarding .tutor-history-wrap {
  display: none !important;
}

html[data-theme="dark"] .air-page .air-plan-overlay {
  background: rgba(4, 10, 18, 0.62);
}

html[data-theme="dark"] .air-page .air-plan-panel {
  background: #1b2d44;
  border-color: #3a5473;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .air-page .air-plan-close,
html[data-theme="dark"] .air-overlay-close {
  background: #16263a;
  border-color: #3a5473;
  color: #e8eef6;
}

html[data-theme="dark"] .air-page .air-plan-swap {
  color: #9bb0c8;
}

html[data-theme="dark"] .air-page .air-refresh-btn {
  color: #9ec1ff;
  box-shadow: inset 0 0 0 1px rgba(158, 193, 255, 0.35);
}

html[data-theme="dark"] .air-page .air-refresh-btn:hover:not(:disabled) {
  background: rgba(47, 107, 255, 0.18);
}

html[data-theme="dark"] .air-page .air-plan-footer {
  border-top-color: #3a5473;
}

html[data-theme="dark"] .air-page .air-stop-btn {
  background: #3a1d1d;
  border-color: #7a3a3a;
  color: #ffb4ab;
}

html[data-theme="dark"] .air-page .air-plan-panel.is-draft {
  background: #203552;
  border-color: #4a6a94;
}

html[data-theme="dark"] .air-page .air-plan-title,
html[data-theme="dark"] .air-page .air-horizon-row {
  color: #e8eef6;
}

html[data-theme="dark"] .air-page .air-plan-task-title,
html[data-theme="dark"] .air-page .air-plan-task-reason,
html[data-theme="dark"] .air-page .air-plan-task-brief,
html[data-theme="dark"] .air-page .air-plan-task-brief-label {
  color: #f4f9ff;
}

html[data-theme="dark"] .air-page .air-plan-task-meta,
html[data-theme="dark"] .air-page .air-plan-task-reason {
  color: #9bb0c8;
}

html[data-theme="dark"] .air-page .air-plan-task-body {
  background: #132033;
  border-color: #3a5473;
}

html[data-theme="dark"] .air-page .air-plan-task-brief,
html[data-theme="dark"] .air-page .air-plan-task-brief-label {
  color: #d5e4f7;
}

html[data-theme="dark"] .air-page .air-plan-task {
  background: linear-gradient(145deg, #203552 0%, #1b2d44 100%);
  border-color: #4a6a94;
  color: #e8eef6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .air-page .air-horizon-row select {
  background: #16263a;
  border-color: #3a5473;
  color: #e8eef6;
}

html[data-theme="dark"] .air-page .air-plan-quota span {
  background: #27406a;
  color: #d6e6ff;
}

html[data-theme="dark"] .air-page .air-plan-reward {
  color: #ffd36a;
}

html[data-theme="dark"] .air-page .air-plan-quota span.is-empty {
  background: #3a1d1d;
  color: #ffb4ab;
}

html[data-theme="dark"] .air-page .air-plan-empty {
  color: #d5e4f7;
}

html[data-theme="dark"] .air-page .air-plan-task.is-clickable:hover {
  background: #243a58;
  border-color: #5b8cff;
}

html[data-theme="dark"] .air-page .air-plan-task.is-completed {
  background: #16263a;
  border-color: #3a5473;
}

html[data-theme="dark"] .air-page .air-plan-task.is-selected,
html[data-theme="dark"] .air-page .air-plan-task.is-selected.is-clickable:hover,
html[data-theme="dark"] .air-page .air-plan-task.is-selected.is-completed {
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 0 rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(91, 140, 255, 0.22),
    0 0 18px 2px rgba(91, 140, 255, 0.42);
}

html[data-theme="dark"] .air-page .air-quick-chip {
  color: #1a3050;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    1px 2px 0 rgba(0, 0, 0, 0.18),
    3px 7px 12px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .air-page .air-quick-chip.is-selected,
html[data-theme="dark"] .air-page .air-quick-chip:hover {
  color: #163a8a;
  filter: brightness(1.04);
}

html[data-theme="dark"] .air-page .air-back-btn {
  color: #e8eef6;
}

html[data-theme="dark"] .air-page .air-back-btn:hover {
  background: #27406a;
}

html[data-theme="dark"] .air-subject-menu-btn,
html[data-theme="dark"] .air-storage-gear {
  background: #1b2d44;
  color: #e8eef6;
}

html[data-theme="dark"] .air-tutor-toggle {
  background: #2f6bff;
  color: #fff;
}

html[data-theme="dark"] .air-storage-panel {
  background: #1b2d44;
  border-color: #3a5473;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .air-chooser-gate,
html[data-theme="dark"] #air-chooser-overlay {
  background: rgba(8, 16, 28, 0.42);
}

html[data-theme="dark"] .air-chooser-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(27, 45, 68, 0.96) 0%, rgba(18, 32, 50, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .air-chooser-panel .air-storage-title {
  color: #e8eef6;
}

html[data-theme="dark"] .air-chooser-panel .air-storage-lead {
  color: #9bb0c8;
}

html[data-theme="dark"] .air-storage-title,
html[data-theme="dark"] .air-storage-filter,
html[data-theme="dark"] .air-storage-table th,
html[data-theme="dark"] .air-storage-table td {
  color: #e8eef6;
}

html[data-theme="dark"] .air-storage-lead,
html[data-theme="dark"] .air-storage-hint,
html[data-theme="dark"] .air-storage-node-empty,
html[data-theme="dark"] .air-storage-empty td {
  color: #9bb0c8;
}

html[data-theme="dark"] .air-storage-req {
  color: #f87171;
}

html[data-theme="dark"] .air-storage-req-note {
  color: #9bb0c8;
}

html[data-theme="dark"] .air-chooser-card-title {
  color: #fff;
}

html[data-theme="dark"] .air-chooser-card-copy {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .air-chooser-card--orange {
  background: linear-gradient(165deg, #ff9a5c 0%, #e56a28 58%, #c44a16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 0 rgba(143, 47, 12, 0.45),
    0 10px 22px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .air-chooser-card--blue {
  background: linear-gradient(165deg, #5b8cff 0%, #2f6bff 56%, #1a46b8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 0 rgba(16, 42, 106, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .air-storage-save {
  background: linear-gradient(165deg, #5b8cff 0%, #2f6bff 56%, #1a46b8 100%);
}

html[data-theme="dark"] .air-storage-filter select,
html[data-theme="dark"] .air-storage-table input[type="search"],
html[data-theme="dark"] .air-storage-table input[type="number"],
html[data-theme="dark"] .air-storage-table select,
html[data-theme="dark"] .air-storage-node-list {
  background: #16263a;
  border-color: #3a5473;
  color: #e8eef6;
}

html[data-theme="dark"] .air-storage-table th {
  background: #16263a;
}

html[data-theme="dark"] .air-storage-table th,
html[data-theme="dark"] .air-storage-table td {
  border-bottom-color: #3a5473;
}

html[data-theme="dark"] .air-chooser-col:hover .air-chooser-card,
html[data-theme="dark"] .air-chooser-col:focus-visible .air-chooser-card {
  filter: brightness(1.08);
}

html[data-theme="dark"] .air-storage-node-option {
  color: #e8eef6;
}

html[data-theme="dark"] .air-storage-node-option:hover,
html[data-theme="dark"] .air-storage-node-option.is-active {
  background: #27406a;
}

@media (max-width: 1100px) {
  .air-page .air-quick-options {
    flex-basis: 104px;
    width: 104px;
    min-width: 104px;
    gap: 8px;
    padding: 10px 8px 10px 2px;
  }
}

@media (max-width: 767px) {
  .air-page .air-quick-options {
    flex-basis: 86px;
    width: 86px;
    min-width: 86px;
    gap: 6px;
    padding: 8px 6px 8px 0;
    margin-left: -2px;
  }

  .air-page .air-quick-chip {
    padding: 11px 5px 9px;
    font-size: 11px !important;
  }

  .air-page.air-adding-subject .tutor-stage-head,
  .air-page.air-onboarding.air-adding-subject .air-chat .tutor-chat-head {
    height: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    padding: 0 12px;
  }

  .air-page .header-action.air-text-action {
    width: auto;
    height: auto;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  .air-page .header-action.air-text-action .label {
    display: inline;
  }

  .air-page .air-plan-overlay {
    padding: 0;
    align-items: end;
    justify-items: stretch;
  }

  .air-page .air-plan-dialog {
    width: 100%;
    height: min(82dvh, 640px);
    max-height: min(82dvh, 640px);
  }

  .air-page .air-plan-panel {
    margin: 0;
    height: 100%;
    max-height: 100%;
    border-radius: 16px 16px 0 0;
  }

  .air-page .air-plan-footer {
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }

  .air-page .air-plan-task-main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .air-page .air-plan-task-actions {
    width: auto;
    align-items: flex-start;
  }

  .air-page .air-plan-reward {
    justify-content: flex-start;
  }

  .air-page .air-plan-start {
    width: auto;
    min-width: 6.5rem;
  }

  .air-page .air-horizon-row {
    flex-wrap: nowrap;
  }

  .air-page .air-horizon-row select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .air-page .air-agree-btn {
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
    padding: 8px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .air-page .air-quick-chip,
  .air-page .air-quick-chip:nth-child(n),
  .air-page .air-quick-chip:hover,
  .air-page .air-quick-chip:active,
  .air-page .air-plan-task.is-clickable:active,
  .air-page .air-agree-btn:active,
  .air-page .air-plan-close:active {
    transform: none;
  }

  .air-page .air-toast.is-leaving,
  .air-page .air-celebrate.is-leaving,
  .air-page .air-celebrate-burst span {
    transition: none;
    animation: none;
  }
}

/* ── Shell: map canvas + chrome XOR + chat popup ── */
body.user-shell.air-page .shell-content-column.air-shell-column {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.air-map-chrome {
  position: fixed;
  top: calc(var(--shell-topbar-h, 64px) + 12px);
  left: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.air-map-chrome > * {
  pointer-events: auto;
}

.air-subject-menu-wrap {
  position: relative;
}

.air-subject-menu-btn,
.air-tutor-toggle,
.air-storage-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--tutor-ink, #0f2942);
  background: var(--tutor-panel, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(15, 41, 66, 0.12);
  cursor: pointer;
}

.air-subject-menu-btn {
  width: auto;
  padding: 0 12px;
}

.air-tutor-toggle {
  color: #fff;
  background: var(--tutor-blue, #2f6bff);
}

.air-tutor-toggle.is-open,
.air-storage-gear.is-open {
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.35);
}

.air-city25d-link {
  width: auto;
  padding: 0 12px;
  text-decoration: none;
}

.air-tutor-toggle svg,
.air-storage-gear svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-tutor-toggle:active,
.air-storage-gear:active,
.air-subject-menu-btn:active {
  transform: scale(0.98);
}

.air-subject-caret {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-subject-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 40px rgba(15, 41, 66, 0.16),
    0 2px 0 rgba(47, 107, 255, 0.08);
  z-index: 8;
}

.air-subject-menu[hidden] {
  display: none !important;
}

.air-subject-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--tutor-ink, #0f2942);
  text-align: left;
  cursor: pointer;
}

.air-subject-option:hover:not(:disabled) {
  background: rgba(47, 107, 255, 0.08);
}

.air-subject-option.is-active {
  background: rgba(47, 107, 255, 0.12);
}

.air-subject-option.is-locked,
.air-subject-option.is-addable {
  color: var(--tutor-muted, #5a7194);
}

.air-subject-option.is-locked:disabled {
  cursor: not-allowed;
}

.air-subject-option .mark {
  font-size: 12px;
  opacity: 0.8;
}

.air-map {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 640px at 18% 12%, rgba(91, 140, 255, 0.28), transparent 58%),
    radial-gradient(900px 520px at 88% 78%, rgba(255, 122, 61, 0.18), transparent 52%),
    linear-gradient(165deg, #1a3358 0%, #0f2942 42%, #16324f 100%);
}

.air-map-fog {
  position: absolute;
  inset: 0;
}

.air-map-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
}

.air-map-orb-a {
  width: 42%;
  height: 48%;
  left: 8%;
  top: 18%;
  background: rgba(214, 230, 255, 0.35);
}

.air-map-orb-b {
  width: 36%;
  height: 40%;
  right: 6%;
  bottom: 12%;
  background: rgba(255, 228, 212, 0.28);
}

.air-map-orb-c {
  width: 22%;
  height: 26%;
  left: 42%;
  top: 8%;
  background: rgba(47, 107, 255, 0.22);
}

.air-map-veil {
  position: absolute;
  inset: -8%;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.04) 0 18px,
      transparent 18px 42px
    ),
    radial-gradient(circle at 50% 58%, rgba(15, 41, 66, 0.08), rgba(15, 41, 66, 0.55));
  mix-blend-mode: soft-light;
}

.air-map-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  margin: 0;
  color: rgba(247, 251, 255, 0.86);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(15, 41, 66, 0.45);
  pointer-events: none;
}

.air-map-spine,
.air-city-board {
  position: absolute;
  inset: 6% 3% 16%;
  width: auto;
  height: auto;
  z-index: 1;
  overflow: visible;
}

.air-city-path {
  stroke: rgba(255, 214, 140, 0.72);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 196, 92, 0.45));
}

.air-city-path-support {
  stroke: rgba(168, 210, 196, 0.55);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
}

.air-city-building.is-support .air-city-plot {
  fill: rgba(24, 48, 48, 0.58);
  stroke: rgba(168, 210, 196, 0.5);
}

.air-city-plot {
  fill: rgba(20, 42, 68, 0.72);
  stroke: rgba(214, 230, 255, 0.28);
  stroke-width: 1.5;
}

.air-city-plot.is-empty {
  fill: rgba(14, 32, 52, 0.35);
  stroke: rgba(214, 230, 255, 0.12);
  stroke-dasharray: 6 7;
}

.air-city-building {
  cursor: pointer;
}

.air-city-building.is-current .air-city-plot {
  fill: rgba(42, 58, 36, 0.82);
  stroke: rgba(255, 214, 140, 0.85);
  stroke-width: 2.2;
}

.air-city-building.is-past .air-city-plot {
  fill: rgba(28, 52, 74, 0.88);
  stroke: rgba(186, 220, 255, 0.55);
}

.air-city-building.is-upcoming .air-city-plot {
  fill: rgba(16, 34, 54, 0.55);
  stroke: rgba(214, 230, 255, 0.22);
}

.air-city-building.is-upcoming .air-city-name {
  opacity: 0.72;
}

.air-city-building.is-selected .air-city-plot {
  stroke: #fff6d8;
}

.air-city-floor {
  stroke: none;
}

.air-city-floor.is-secure {
  fill: rgba(214, 196, 122, 0.95);
}

.air-city-floor.is-in_progress {
  fill: rgba(255, 176, 92, 0.88);
}

.air-city-floor.is-unknown {
  fill: rgba(120, 148, 176, 0.35);
}

.air-city-floor.is-open {
  stroke: rgba(255, 248, 220, 0.95);
  stroke-width: 1.4;
}

.air-city-lamp {
  fill: #ffe7a3;
  filter: drop-shadow(0 0 10px rgba(255, 214, 120, 0.95));
}

.air-city-name {
  fill: rgba(247, 251, 255, 0.92);
  font-size: 13px;
  font-weight: 650;
  text-anchor: middle;
}

.air-city-minimap {
  position: absolute;
  right: 18px;
  bottom: 64px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 168px;
}

.air-city-mini {
  appearance: none;
  border: 1px solid rgba(214, 230, 255, 0.22);
  background: rgba(15, 41, 66, 0.72);
  color: rgba(247, 251, 255, 0.88);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.air-city-mini.is-here,
.air-city-mini.is-active {
  border-color: rgba(255, 214, 140, 0.8);
  background: rgba(42, 58, 36, 0.75);
}

.air-city-mini.is-fog {
  opacity: 0.4;
  cursor: default;
}

.air-city-sheet .air-city-floors {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.air-city-floor-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  appearance: none;
  border: 1px solid rgba(15, 41, 66, 0.12);
  background: rgba(247, 251, 255, 0.72);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.air-city-floor-btn em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.7;
}

.air-city-floor-btn.is-secure {
  background: rgba(232, 214, 140, 0.45);
}

.air-city-floor-btn.is-in_progress,
.air-city-floor-btn.is-open {
  background: rgba(255, 196, 120, 0.5);
}

.air-city-sheet-note {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.78;
}

.air-map-path {
  stroke: rgba(247, 251, 255, 0.55);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 236, 179, 0.35));
}

.air-map-fog-end {
  fill: url(#none);
  fill: rgba(15, 41, 66, 0.42);
}

.air-map-node {
  cursor: pointer;
}

.air-map-node-core {
  fill: rgba(214, 230, 255, 0.55);
  stroke: rgba(247, 251, 255, 0.9);
  stroke-width: 2;
}

.air-map-node.is-silhouette .air-map-node-core {
  fill: rgba(15, 41, 66, 0.55);
  stroke: rgba(214, 230, 255, 0.45);
}

.air-map-node.is-explorer .air-map-node-core {
  fill: #ffe08a;
  stroke: #fff6d6;
}

.air-map-lantern {
  fill: none;
  stroke: rgba(255, 224, 138, 0.55);
  stroke-width: 2;
}

.air-map-node-label {
  fill: rgba(247, 251, 255, 0.92);
  font-size: 11px;
  font-weight: 650;
  text-anchor: middle;
  pointer-events: none;
}

.air-map-node.is-silhouette .air-map-node-label {
  fill: rgba(247, 251, 255, 0.45);
  font-size: 14px;
}

.air-map-pin {
  fill: #ffd27a;
  font-size: 14px;
  text-anchor: middle;
  pointer-events: none;
}

.air-map-sheet {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 220px;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 41, 66, 0.88);
  color: #f7fbff;
  box-shadow: 0 12px 32px rgba(8, 20, 36, 0.35);
}

.air-map-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.air-map-sheet-title {
  font-weight: 700;
}

.air-map-sheet-head .air-overlay-close {
  width: 28px;
  height: 28px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.air-map-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.air-map-sheet-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  background: #ffe08a;
  color: #1a2a12;
}

.air-page.air-popup-open .air-map {
  pointer-events: none;
  filter: blur(3px) saturate(0.72);
  opacity: 0.52;
}

.air-chat-popup {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 34px 16px 16px;
  background: rgba(15, 41, 66, 0.32);
}

.air-chat-popup[hidden] {
  display: none !important;
}

.air-chat-popup-panel {
  position: relative;
  width: min(1120px, 100%);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tutor-panel, #fff);
  box-shadow:
    0 28px 64px rgba(15, 41, 66, 0.28),
    0 2px 0 rgba(47, 107, 255, 0.1);
}

.air-chat-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 40;
}

.air-chat-popup-panel .tutor-chat-head {
  padding-right: 52px;
}

.air-chat-popup-panel #air-body.tutor-body {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.air-chrome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.air-storage-overlay {
  position: fixed;
  top: var(--shell-topbar-h, 64px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  justify-items: center;
  align-content: start;
  overflow: auto;
  padding: 12px 24px 24px;
  background: rgba(15, 41, 66, 0.38);
  pointer-events: auto;
}

.air-storage-overlay[hidden] {
  display: none !important;
}

/* Persistent activation gate — not a dismissible popup. Two 2.5D columns. */
#air-chooser-overlay,
.air-chooser-gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 72px 24px 24px;
  overflow: auto;
  background: rgba(15, 41, 66, 0.18);
  pointer-events: auto;
}

.air-chooser-gate[hidden],
#air-chooser-overlay[hidden] {
  display: none !important;
}

.air-chooser-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(720px, 100%);
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  text-align: center;
  transform: translateY(-40px);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.92) 52%, rgba(255, 244, 236, 0.9) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 44px rgba(15, 41, 66, 0.18);
}

.air-chooser-panel .air-storage-title {
  margin: 0 0 10px;
  font-size: 22px !important;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2 !important;
  text-align: center;
}

.air-chooser-panel .air-storage-lead {
  margin: 0 auto 28px;
  max-width: none;
  width: 100%;
  font-size: 15px !important;
  line-height: 1.4 !important;
  text-align: center;
  white-space: nowrap;
  color: var(--tutor-muted, #5a7194);
}

.air-chooser-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.air-chooser-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  font: inherit;
  font-size: 15px !important;
  line-height: 1.3 !important;
  color: inherit;
  cursor: pointer;
  text-align: center;
  border-radius: 16px;
}

.air-chooser-col:focus-visible {
  outline: 2px solid var(--tutor-blue, #2f6bff);
  outline-offset: 4px;
}

.air-chooser-art {
  display: block;
  width: 100%;
  max-height: min(240px, 32vh);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #eef3fa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(15, 41, 66, 0.12);
}

.air-chooser-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 14px 14px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  text-align: center;
  white-space: normal !important;
  font-family: var(--tutor-font-body, "Manrope", "Segoe UI", Tahoma, "Noto Sans", sans-serif) !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), filter 0.16s ease;
}

.air-chooser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.38), transparent 42%);
  pointer-events: none;
}

.air-chooser-card--orange {
  background: linear-gradient(180deg, #ffae74 0%, #e56a28 52%, #c44712 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 4px 0 #9a3210,
    0 10px 18px rgba(212, 81, 18, 0.28);
}

.air-chooser-card--blue {
  background: linear-gradient(180deg, #7aa4ff 0%, #2f6bff 52%, #1d4ec4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 0 #163a96,
    0 10px 18px rgba(47, 107, 255, 0.26);
}

.air-chooser-col:hover .air-chooser-card,
.air-chooser-col:focus-visible .air-chooser-card {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.air-chooser-col:active .air-chooser-card {
  filter: none;
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 0 rgba(15, 41, 66, 0.2);
}

.air-chooser-card-title {
  font-size: 15px !important;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  white-space: normal;
  color: #fff;
}

.air-chooser-card-copy {
  font-size: 12.5px !important;
  font-weight: 500;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-transparency: reduce) {
  .air-chooser-panel {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .air-chooser-gate,
  #air-chooser-overlay {
    padding: 64px 12px 16px;
    align-content: start;
  }

  .air-chooser-panel {
    padding: 20px 14px 16px;
  }

  .air-chooser-panel .air-storage-lead {
    margin-bottom: 20px;
    font-size: 13px !important;
  }

  .air-chooser-actions {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .air-chooser-art {
    max-height: 180px;
    margin-inline: auto;
  }
}

.air-storage-dialog {
  width: min(1080px, 100%);
}

.air-storage-panel {
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 20px 24px 16px;
  border: 1px solid rgba(15, 41, 66, 0.08);
  border-radius: 16px;
  background: var(--tutor-panel, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 56px rgba(15, 41, 66, 0.22);
}

.air-storage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.air-storage-panel,
.air-storage-panel button,
.air-storage-panel p,
.air-storage-panel label,
.air-storage-panel input,
.air-storage-panel select,
.air-storage-panel th,
.air-storage-panel td,
.air-storage-panel span,
.air-chooser-panel,
.air-chooser-panel button,
.air-chooser-panel p,
.air-chooser-panel span {
  font-family: var(--tutor-font-body, "Manrope", "Segoe UI", Tahoma, "Noto Sans", sans-serif) !important;
}

.air-storage-title {
  margin: 0 0 6px;
  font-family: var(--tutor-font-body, "Manrope", "Segoe UI", Tahoma, "Noto Sans", sans-serif) !important;
  font-size: 18px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
  color: var(--tutor-ink, #0f2942);
}

.air-storage-lead {
  margin: 0;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.45 !important;
  color: var(--tutor-muted, #5a7194);
}

.air-storage-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

.air-storage-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  font-size: 14px !important;
  font-weight: 650;
  color: var(--tutor-ink, #0f2942);
}

.air-storage-filter select {
  flex: 1;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--tutor-line, #d0dced);
  border-radius: 8px;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 550;
  color: var(--tutor-ink, #0f2942);
  background: #fff;
}

.air-storage-table-wrap {
  overflow: visible;
}

.air-storage-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px !important;
}

.air-storage-table col.air-storage-col-subject { width: 168px; }
.air-storage-table col.air-storage-col-lesson { width: auto; }
.air-storage-table col.air-storage-col-goal { width: 132px; }
.air-storage-table col.air-storage-col-ability { width: 156px; }

.air-storage-table th,
.air-storage-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px !important;
  font-weight: 550;
  line-height: 1.35 !important;
  color: var(--tutor-ink, #0f2942);
  border-bottom: 1px solid var(--tutor-line, #d0dced);
}

.air-storage-table th {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--tutor-panel-soft, #f7faff);
}

.air-storage-table td.air-storage-col-subject {
  font-weight: 700;
}

.air-storage-table tbody tr.is-filled td {
  color: var(--tutor-ink, #0f2942);
}

.air-storage-empty td {
  padding: 18px 10px;
  text-align: center;
  color: var(--tutor-muted, #5a7194);
}

.air-storage-table input[type="search"],
.air-storage-table input[type="number"],
.air-storage-table select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--tutor-line, #d0dced);
  border-radius: 8px;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.3 !important;
  color: var(--tutor-ink, #0f2942);
  background: #fff;
}

.air-storage-filter select:focus,
.air-storage-table input:focus,
.air-storage-table select:focus {
  outline: none;
  border-color: rgba(47, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16);
}

.air-storage-search-wrap {
  position: relative;
}

.air-storage-strand {
  display: block;
  width: 100%;
  margin-bottom: 6px;
}

.air-storage-node-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 196px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--tutor-line, #d0dced);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 41, 66, 0.14);
}

.air-storage-node-list[hidden] {
  display: none !important;
}

.air-storage-node-option,
.air-storage-node-empty {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--tutor-ink, #0f2942);
}

.air-storage-node-option {
  cursor: pointer;
}

.air-storage-node-empty {
  font-weight: 500;
  color: var(--tutor-muted, #5a7194);
}

.air-storage-node-option:hover,
.air-storage-node-option.is-active {
  background: var(--tutor-blue-soft, #d6e6ff);
}

.air-storage-req {
  color: #dc2626;
  font-weight: 800;
}

.air-storage-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.air-storage-req-note {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tutor-muted, #5a7194);
}

.air-storage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--tutor-line, #d0dced);
}

.air-storage-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tutor-muted, #5a7194);
}

.air-storage-save {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 16px;
  font-family: var(--tutor-font-body, "Manrope", "Segoe UI", Tahoma, "Noto Sans", sans-serif) !important;
  font-size: 15px !important;
  font-weight: 750;
  line-height: 1.2 !important;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(165deg, #5b8cff 0%, #2f6bff 56%, #2458d6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 2px 0 rgba(28, 72, 176, 0.2),
    0 10px 22px rgba(47, 107, 255, 0.24);
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), filter 0.16s ease;
}

.air-storage-save:hover:not(:disabled),
.air-storage-save:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.air-storage-save:active:not(:disabled) {
  transform: translateY(1px);
}

.air-storage-save:disabled {
  opacity: 0.45;
  filter: grayscale(0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 #4a63a0;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .air-chooser-card,
  .air-storage-save,
  .air-tutor-toggle,
  .air-storage-gear,
  .air-subject-menu-btn {
    transition: none;
  }

  .air-chooser-col:hover .air-chooser-card,
  .air-chooser-col:focus-visible .air-chooser-card,
  .air-chooser-col:active .air-chooser-card,
  .air-storage-save:active:not(:disabled),
  .air-tutor-toggle:active,
  .air-storage-gear:active,
  .air-subject-menu-btn:active {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .air-chat-popup-panel .tutor-stage-head {
    padding-right: 52px;
  }

  .air-chat-popup-panel .tutor-chat-head {
    padding-right: 16px;
  }
}

@media (max-width: 860px) {
  .air-chat-popup {
    padding: 26px 8px 8px;
  }

  .air-chat-popup-panel {
    border-radius: 12px;
  }

  .air-storage-dialog {
    width: 100%;
  }

  .air-storage-table {
    table-layout: auto;
  }

  .air-storage-table th {
    white-space: normal;
  }
}
