/* Fallback styles for the student home page when a stale Next CSS asset is still served. */
.student-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 18px 96px;
}
.student-footer {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 18px 102px;
  color: #7a847f;
  font-size: 12px;
  text-align: center;
}
.home-primary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: 24px;
  border: 1px solid #dbe7df;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfffc 62%, #f3faf5 100%);
  box-shadow: 0 18px 42px rgba(29, 55, 43, 0.08);
}
.home-primary-copy {
  min-width: 0;
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  color: #087258;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.home-day-theme-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin: 14px 0;
}
.home-day-theme-row > strong,
.home-day-theme-row h1 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.05em;
  font-size: 36px;
  white-space: nowrap;
}
.home-day-theme-row > strong {
  color: #0b6f56;
}
.home-day-theme-row h1 {
  min-width: 0;
  color: #17231d;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-training-metrics {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #66736c;
  font-size: 13px;
  line-height: 1.5;
}
.home-training-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #e2e9e4;
  border-radius: 999px;
  background: #ffffff;
}
.home-training-metrics svg,
.home-classroom-advice svg {
  color: #087258;
  flex: none;
}
.home-training-metrics b {
  color: #087258;
  font-size: 14px;
}
.home-training-metrics p {
  min-width: 0;
  margin: 0;
  color: #6b5a22;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-classroom-advice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  max-width: 720px;
  padding: 12px 13px;
  border: 1px solid #ecdfb3;
  border-radius: 15px;
  background: #fffaf0;
}
.home-classroom-advice p {
  margin: 0;
  color: #6b5a22;
  font-size: 13px;
  line-height: 1.55;
}
.home-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #087258;
  color: #ffffff;
  font-weight: 900;
}
.home-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.student-home > .pwa-install.compact {
  margin: 12px 0 0;
  box-shadow: none;
}
.home-bottom-install {
  margin-top: 16px;
}
.home-bottom-install .pwa-install.compact {
  margin: 0;
  box-shadow: none;
}
.home-compact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(29, 55, 43, 0.045);
}
.home-compact-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eaf6ef;
  color: #087258;
}
.home-compact-card strong {
  display: block;
  color: #17231d;
  font-size: 15px;
  line-height: 1.25;
}
.home-compact-card small {
  display: block;
  margin-top: 4px;
  color: #66736c;
  font-size: 12px;
  line-height: 1.35;
}
.home-quota-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #e2e9e4;
  border-radius: 18px;
  background: #ffffff;
}
.home-quota-row div {
  min-width: 0;
  padding: 10px 6px;
  border-radius: 13px;
  background: #f7faf8;
  text-align: center;
}
.home-quota-row strong {
  display: block;
  color: #087258;
  font-size: 23px;
  line-height: 1;
  margin-bottom: 5px;
}
.home-quota-row span {
  display: block;
  color: #66736c;
  font-size: 11px;
  white-space: nowrap;
}
.student-guidance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: #ffffff;
}
.student-guidance-card span {
  color: #087258;
  font-size: 12px;
  font-weight: 900;
}
.student-guidance-card h2 {
  margin: 6px 0 8px;
  color: #17231d;
  font-size: 21px;
}
.student-guidance-card p {
  margin: 0;
  color: #647169;
  line-height: 1.55;
  font-size: 13px;
}
.student-guidance-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.student-guidance-actions > div {
  min-width: 112px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 12px;
  border: 1px solid #e1e9e4;
  border-radius: 15px;
  background: #f8fbf9;
}
.student-section-heading {
  margin: 27px 2px 12px;
}
.student-section-heading h2 {
  margin: 0;
  font-size: 24px;
}
.student-info-strip,
.student-limit-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #dfe7e2;
  border-radius: 15px;
  background: #ffffff;
  color: #47514c;
}
.student-limit-strip {
  margin: 0 0 14px;
  background: #fff8e7;
  border-color: #f1d58b;
  color: #865b00;
}
.home-create-header {
  margin: 24px 0 14px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: #fffaf0;
  border-color: #ecdcae;
}
.home-create-header h2 {
  margin: 0;
  color: #17231d;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.home-create-header svg {
  color: #9a6d00;
}
.home-create-header span {
  min-width: 0;
  color: #8a6100;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-home.student-page {
  padding-bottom: 74px;
}
.student-home .student-footer {
  margin-top: 30px;
  padding-bottom: 16px;
}
.student-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.student-mode-button {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid #dfe7e2;
  border-radius: 20px;
  background: #ffffff;
  font-weight: 900;
}
.student-mode-button strong {
  font-size: 21px;
}
.student-mode-button.teal {
  background: #e4f5f1;
  color: #0b6c61;
  border-color: #c7e6df;
}
.student-mode-button.rose {
  background: #fff0f2;
  color: #a33c54;
  border-color: #f2ccd4;
}
.student-mode-button.green {
  background: #e3f3e8;
  color: #126449;
  border-color: #c8e5d1;
}
.student-mode-button.orange {
  background: #fff0e3;
  color: #a64a1e;
  border-color: #f3d8c2;
}
.student-mode-button.blue {
  background: #e8f1ff;
  color: #285d9f;
  border-color: #ccdef7;
}
.student-mode-button.purple {
  background: #f1eafd;
  color: #68459c;
  border-color: #dfd0f3;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #087258;
  font-weight: 900;
}
.button {
  border: 0;
  border-radius: 14px;
  padding: 13px 17px;
  background: #087258;
  color: white;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button.secondary {
  background: #edf2ed;
  color: #17201c;
}
.button.compact-button {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.success {
  padding: 11px 13px;
  background: #edf8ef;
  color: #087258;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 13px;
}
.error {
  padding: 11px 13px;
  background: #feeceb;
  color: #c2413a;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 13px;
}
.submit-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  padding: 13px 15px;
  background: #fff8e7;
  border: 1px solid #f1d58b;
  color: #865b00;
  font-size: 13px;
}
.text-chat-page {
  max-width: 920px;
}
.text-chat-hero {
  border: 1px solid #dce7e1;
  background: linear-gradient(135deg, #ffffff, #f3faf6);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(23, 55, 42, 0.055);
}
.text-chat-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
}
.text-chat-hero-main > span {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #e8f6ee;
  color: #087258;
  display: grid;
  place-items: center;
  flex: none;
}
.text-chat-hero-main small {
  color: #087258;
  font-size: 12px;
  font-weight: 1000;
}
.text-chat-hero-main h1 {
  margin: 0 0 5px;
  color: #111a16;
  font-size: 31px;
  letter-spacing: -0.055em;
}
.text-chat-hero-main p {
  margin: 0;
  color: #66736c;
  line-height: 1.6;
  font-size: 13px;
}
.text-chat-shell {
  display: grid;
  gap: 14px;
  border: 1px solid #dce7e1;
  background: #ffffff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(23, 55, 42, 0.055);
}
.text-chat-provider-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.text-chat-provider-tabs button {
  border: 1px solid #dfe7e2;
  background: #ffffff;
  border-radius: 15px;
  padding: 14px;
  text-align: left;
  color: #17231d;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 9px;
  align-items: center;
  box-shadow: 0 8px 22px rgba(23, 55, 42, 0.04);
}
.text-chat-provider-tabs button.active {
  border-color: #087258;
  background: #ecf8f1;
}
.text-chat-provider-tabs strong {
  font-size: 17px;
}
.text-chat-provider-tabs small {
  grid-column: 2;
  color: #647169;
  font-size: 12px;
}
.text-chat-window {
  min-height: 390px;
  max-height: 58vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #dde5e0;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(23, 55, 42, 0.05);
}
.text-chat-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #087258;
  align-content: center;
  gap: 9px;
}
.text-chat-empty strong {
  color: #17231d;
  font-size: 20px;
}
.text-chat-empty p {
  max-width: 480px;
  margin: 0;
  color: #68736d;
  line-height: 1.6;
  font-size: 13px;
}
.text-chat-message {
  display: grid;
  gap: 6px;
  max-width: 78%;
}
.text-chat-message span {
  color: #087258;
  font-size: 12px;
  font-weight: 1000;
}
.text-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  border: 1px solid #e1e9e4;
  border-radius: 15px;
  padding: 12px 14px;
  background: #f8fbf9;
}
.text-chat-message.user {
  justify-self: end;
}
.text-chat-message.user span {
  text-align: right;
  color: #8a6100;
}
.text-chat-message.user p {
  background: #fff6df;
  border-color: #ead99f;
}
.text-chat-copy {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: #edf5ef;
  color: #087258;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.text-chat-compose {
  background: #ffffff;
  border: 1px solid #dde5e0;
  border-radius: 18px;
  padding: 13px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(23, 55, 42, 0.05);
}
.text-chat-compose textarea {
  width: 100%;
  min-height: 120px;
  border: 0;
  outline: 0;
  resize: vertical;
  line-height: 1.7;
  color: #27322d;
  background: transparent;
}
.text-chat-compose div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.text-chat-compose .text-chat-compose-actions {
  justify-content: flex-end;
}
.text-chat-compose small {
  color: #6d7771;
  font-size: 12px;
}
.history-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.history-filters button {
  border: 1px solid #dfe4e1;
  background: #ffffff;
  color: #68716c;
  border-radius: 13px;
  padding: 12px 8px;
  font-weight: 700;
  white-space: nowrap;
}
.history-filters button.active {
  background: #eaf6ef;
  color: #087258;
  border-color: #d8eee2;
}
.history-list {
  display: grid;
  gap: 18px;
}
.history-card {
  border: 1px solid #dce7e1;
  background: #ffffff;
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 12px 32px rgba(23, 55, 42, 0.055);
}
.history-preview {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #111a16;
  color: #087258;
  display: grid;
  place-items: center;
}
.history-preview video,
.history-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  background: #111a16;
}
.history-preview > svg:last-child {
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.history-card-body {
  min-width: 0;
  padding: 0 2px 2px;
}
.history-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.history-mode,
.history-status {
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}
.history-mode {
  background: #e9f7ef;
  color: #087258;
}
.history-card.mode-image-to-video .history-mode,
.history-card.mode-image-to-image .history-mode {
  background: #fff0e6;
  color: #d75a0a;
}
.history-card.mode-text-to-image .history-mode {
  background: #eaf6ef;
  color: #087258;
}
.history-card.mode-keyframes .history-mode {
  background: #eaf2ff;
  color: #2168bb;
}
.history-card.mode-multi-reference .history-mode {
  background: #f1e9ff;
  color: #8050c7;
}
.history-status.success {
  color: #087258;
}
.history-status.active {
  color: #8050c7;
}
.history-status.failed {
  color: #d93434;
}
.history-prompt {
  margin: 14px 0;
  color: #17201c;
  line-height: 1.62;
  font-weight: 750;
  font-size: 16px;
  max-height: 105px;
  overflow: auto;
  padding-right: 8px;
}
.history-prompt::-webkit-scrollbar {
  width: 6px;
}
.history-prompt::-webkit-scrollbar-thumb {
  background: #cfdad3;
  border-radius: 999px;
}
.history-card-body small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #747d78;
}
.history-error {
  color: #8f6868;
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0;
}
.history-manage-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.history-manage-actions button,
.history-inline-action {
  border: 1px solid #d9e3de;
  border-radius: 13px;
  background: #f5faf7;
  color: #087258;
  padding: 11px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
  min-height: 42px;
}
.history-inline-action.primary {
  background: #087258;
  color: #ffffff;
}
.history-inline-action.retry {
  border-color: #e44b4b;
  color: #d22f2f;
  background: #ffffff;
}
.history-manage-actions button.danger {
  background: #fff0ef;
  border-color: #efc2bf;
  color: #bf302a;
}
.history-manage-actions button:disabled {
  opacity: 0.55;
}
.history-load-more {
  justify-self: center;
  border: 1px solid #d9e3de;
  background: #ffffff;
  color: #087258;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(23, 55, 42, 0.05);
}
.history-load-more:disabled {
  opacity: 0.6;
}
.account-device-card {
  border: 1px solid #dfe7e2;
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(23, 55, 42, 0.055);
  display: grid;
  gap: 12px;
}
.account-profile-card {
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
}
.account-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0f4e9, #c3e8d6);
  color: #087257;
}
.account-profile-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.account-profile-card h1 {
  margin: 0;
  color: #111a16;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}
.account-profile-card p {
  color: #747c78;
  margin: 0;
}
.account-profile-card strong {
  color: #087258;
}
.account-device-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #5d6762;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 2px;
}
.account-device-note svg {
  flex: none;
  color: #087258;
  margin-top: 1px;
}
.settings-info-card {
  border: 1px solid #dde3e0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 55, 42, 0.06);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
}
.settings-info-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 18px;
  color: #17201c;
}
.settings-info-card h2 svg {
  color: #087258;
}
.settings-quota {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.settings-quota span {
  min-width: 0;
  min-height: 104px;
  padding: 13px 8px;
  border: 1px solid #d8e9df;
  border-radius: 14px;
  background: #f5faf7;
  text-align: center;
  color: #66716b;
  display: grid;
  align-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.settings-quota strong {
  display: block;
  color: #087258;
  font-size: 34px;
  line-height: 1;
  margin: 2px 0;
}
.settings-quota small {
  color: #8a948f;
  font-size: 11px;
  font-weight: 700;
}
.quota-help {
  margin-top: 12px !important;
  font-size: 12px;
  line-height: 1.65;
  color: #5d6762;
}
.training-route-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.training-route-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 2px 0;
}
.training-route-heading > span {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #e9f6ef;
  color: #087258;
  display: grid;
  place-items: center;
  flex: none;
}
.training-route-heading h1 {
  margin: 0;
  color: #111a16;
  font-size: 31px;
  letter-spacing: -0.055em;
}
.training-route-heading p {
  margin: 5px 0 0;
  color: #66736c;
  font-size: 13px;
}
.training-route-card {
  border: 1px solid #dce8e1;
  background: linear-gradient(135deg, #ffffff, #f7fbf8);
  border-radius: 22px;
  padding: 17px;
  box-shadow: 0 12px 32px rgba(23, 55, 42, 0.06);
  display: grid;
  gap: 13px;
}
.training-route-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.training-route-title span {
  color: #087258;
  font-size: 12px;
  font-weight: 1000;
}
.training-route-title strong {
  color: #17231d;
  font-size: 14px;
}
.training-route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  padding: 6px 0 2px;
}
.training-route-line:before {
  content: "";
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  top: 17px;
  height: 3px;
  border-radius: 999px;
  background: #e4ebe6;
}
.training-route-line span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #9aa49f;
  font-size: 10px;
  font-weight: 1000;
  min-width: 0;
}
.training-route-line i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #e4ebe6;
  background: #fff;
  box-shadow: 0 0 0 3px #fff;
}
.training-route-line .current {
  color: #087258;
}
.training-route-line .current i {
  background: #087258;
  border-color: #087258;
}
.training-route-line .finished {
  color: #24728a;
}
.training-route-line .finished i {
  background: #dff3f8;
  border-color: #53a9bd;
}
.training-route-line .open {
  color: #41916f;
}
.training-route-line .open i {
  background: #e8f6ee;
  border-color: #8fd3ac;
}
.training-current-panel {
  border: 1px solid #e3ebe6;
  background: #fbfdfb;
  border-radius: 16px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.training-current-panel span,
.training-current-panel small {
  display: block;
  color: #087258;
  font-size: 12px;
  font-weight: 1000;
}
.training-current-panel strong {
  display: block;
  margin-top: 5px;
  color: #17231d;
  font-size: 18px;
  line-height: 1.25;
}
.training-current-panel b {
  display: block;
  color: #087258;
  font-size: 24px;
  line-height: 1;
  margin-top: 5px;
  white-space: nowrap;
}
.training-route-note {
  margin: 0;
  color: #6b5a22;
  background: #fffaf0;
  border: 1px solid #ecdcae;
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}
.training-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.training-day-card {
  position: relative;
  min-height: 152px;
  background: white;
  border: 1px solid #dfe6e1;
  border-radius: 18px;
  padding: 15px 15px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(23, 55, 42, 0.05);
  overflow: hidden;
}
.training-day-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #d7dfda;
}
.training-day-card.current {
  border-color: #acdcbc;
  background: linear-gradient(135deg, #eefbf4, #ffffff);
  box-shadow: 0 14px 34px rgba(8, 114, 88, 0.12);
}
.training-day-card.current:before {
  background: #087258;
}
.training-day-card.finished {
  border-color: #c8e6ef;
  background: linear-gradient(135deg, #f0faff, #ffffff);
}
.training-day-card.finished:before {
  background: #49a7bd;
}
.training-day-card.open {
  border-color: #cfe8d9;
  background: linear-gradient(135deg, #f7fcf9, #ffffff);
}
.training-day-card.open:before {
  background: #7fc79b;
}
.training-day-card.locked {
  background: #f8faf8;
  color: #7a847e;
  box-shadow: none;
}
.training-day-card.locked.next {
  border-color: #eadfb9;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
}
.training-day-card.locked.next:before {
  background: #d8a52d;
}
.training-day-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.training-day-card-head span {
  color: #087258;
  font-weight: 1000;
  font-size: 13px;
}
.training-day-card-head em {
  font-style: normal;
  border-radius: 999px;
  background: #f0f4f2;
  color: #68736d;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 1000;
  white-space: nowrap;
}
.training-day-card.current .training-day-card-head em {
  background: #087258;
  color: white;
}
.training-day-card.finished .training-day-card-head span,
.training-day-card.finished .training-day-corner {
  color: #24728a;
}
.training-day-card.finished .training-day-card-head em {
  background: #e4f5fa;
  color: #24728a;
}
.training-day-card.open .training-day-card-head em {
  background: #e8f6ee;
  color: #087258;
}
.training-day-card.locked.next .training-day-card-head em {
  background: #fff0c7;
  color: #9a6d00;
}
.training-day-card.locked .training-day-card-head span,
.training-day-card.locked h2,
.training-day-card.locked .training-day-meta strong {
  color: #68736d;
}
.training-day-card h2 {
  margin: 0;
  color: #17231d;
  font-size: 17px;
  line-height: 1.25;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.training-day-meta {
  display: grid;
  gap: 4px;
  color: #63706a;
}
.training-day-meta span {
  color: #5d6862;
  font-size: 12px;
}
.training-day-meta strong {
  color: #17231d;
  font-size: 22px;
  line-height: 1;
}
.training-day-meta small {
  color: #7a847f;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.training-progress {
  height: 7px;
  border-radius: 999px;
  background: #edf2ef;
  overflow: hidden;
}
.training-progress i {
  display: block;
  height: 100%;
  background: #087258;
  border-radius: inherit;
}
.training-day-card.finished .training-progress i {
  background: #49a7bd;
}
.training-day-card.open .training-progress i {
  background: #7fc79b;
}
.training-day-card.locked .training-progress i {
  background: #b8c2bc;
}
.training-day-corner {
  position: absolute;
  right: 13px;
  bottom: 13px;
  color: #98a39d;
}
@media (max-width: 640px) {
  .student-page {
    padding: 18px 14px 100px;
  }
  .home-primary-card {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 18px;
    gap: 14px;
  }
  .home-day-theme-row {
    gap: 10px;
    margin: 10px 0 12px;
  }
  .home-day-theme-row > strong,
  .home-day-theme-row h1 {
    font-size: 30px;
  }
  .home-training-metrics {
    gap: 6px;
    font-size: 12px;
  }
  .home-training-metrics span {
    padding: 6px 8px;
  }
  .home-classroom-advice {
    padding: 10px 11px;
    border-radius: 13px;
  }
  .home-classroom-advice p {
    font-size: 12px;
  }
  .home-training-metrics p {
    font-size: 11px;
  }
  .home-primary-button {
    width: 100%;
    min-height: 44px;
  }
  .home-compact-grid {
    gap: 8px;
    margin-top: 10px;
  }
  .home-compact-card {
    min-height: 78px;
    border-radius: 15px;
    padding: 11px;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .home-compact-card > svg {
    display: none;
  }
  .home-compact-card > span {
    width: 34px;
    height: 34px;
  }
  .home-compact-card strong {
    font-size: 13px;
  }
  .home-compact-card small {
    font-size: 10px;
  }
  .home-quota-row {
    gap: 6px;
    margin-top: 10px;
    padding: 6px;
    border-radius: 15px;
  }
  .home-quota-row div {
    padding: 9px 3px;
  }
  .home-quota-row strong {
    font-size: 19px;
  }
  .home-quota-row span {
    font-size: 9px;
  }
  .home-guidance-card {
    display: none;
  }
  .student-footer {
    margin-top: 34px;
  }
  .student-home.student-page {
    padding-bottom: 74px;
  }
  .student-home .student-footer {
    margin-top: 30px;
    padding-bottom: 14px;
  }
  .home-bottom-install {
    margin-top: 14px;
  }
  .student-modes {
    gap: 10px;
  }
  .home-create-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 7px;
    margin: 22px 0 12px;
    padding: 11px 12px;
  }
  .home-create-header h2 {
    font-size: 21px;
  }
  .home-create-header span {
    font-size: 11px;
  }
  .student-mode-button {
    min-height: 125px;
    padding: 15px;
    border-radius: 16px;
  }
  .student-mode-button strong {
    font-size: 17px;
  }
  .text-chat-hero {
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 12px;
  }
  .text-chat-hero-main {
    align-items: flex-start;
    gap: 11px;
  }
  .text-chat-hero-main > span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .text-chat-hero-main h1 {
    font-size: 25px;
  }
  .text-chat-hero-main p {
    font-size: 12px;
  }
  .text-chat-shell {
    padding: 10px;
    border-radius: 18px;
  }
  .text-chat-window {
    min-height: 300px;
    max-height: 52vh;
    padding: 12px;
    border-radius: 16px;
  }
  .text-chat-message {
    max-width: 92%;
  }
  .text-chat-message p {
    font-size: 13px;
    padding: 11px;
  }
  .text-chat-compose {
    border-radius: 16px;
  }
  .text-chat-compose textarea {
    min-height: 118px;
    font-size: 13px;
  }
  .text-chat-compose div {
    display: grid;
    gap: 8px;
  }
  .text-chat-compose .button {
    width: 100%;
  }
  .history-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0 0 4px;
    overflow-x: auto;
  }
  .history-filters button {
    flex: 0 0 auto;
    min-width: 74px;
    padding: 10px 9px;
    font-size: 11px;
  }
  .history-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }
  .history-preview {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    width: 100%;
  }
  .history-card-topline {
    display: grid;
    gap: 7px;
    justify-content: start;
  }
  .history-mode,
  .history-status {
    font-size: 10px;
    padding: 5px 6px;
  }
  .history-prompt {
    font-size: 12px;
    margin: 12px 0;
    line-height: 1.55;
    max-height: 86px;
    overflow: auto;
    display: block;
  }
  .history-card-body small,
  .history-error {
    font-size: 10px;
  }
  .history-manage-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .history-manage-actions button,
  .history-inline-action {
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .account-device-card {
    padding: 12px;
    border-radius: 18px;
  }
  .account-profile-card {
    padding: 14px;
    border-radius: 15px;
    gap: 12px;
    align-items: flex-start;
  }
  .account-avatar {
    width: 72px;
    height: 72px;
  }
  .account-avatar svg {
    width: 36px;
    height: 36px;
  }
  .account-profile-card h1 {
    font-size: 22px;
  }
  .account-profile-card p,
  .account-device-note {
    font-size: 11px;
  }
  .settings-info-card {
    padding: 18px;
    border-radius: 17px;
  }
  .settings-quota {
    gap: 8px;
  }
  .settings-quota span {
    min-height: 92px;
    padding: 11px 6px;
    font-size: 12px;
    border-radius: 13px;
  }
  .settings-quota strong {
    font-size: 30px;
  }
  .settings-quota small {
    font-size: 10px;
  }
  .quota-help {
    font-size: 11px;
  }
  .training-route-hero {
    gap: 10px;
    margin-bottom: 14px;
  }
  .training-route-heading {
    gap: 11px;
  }
  .training-route-heading > span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .training-route-heading h1 {
    font-size: 27px;
  }
  .training-route-heading p {
    font-size: 12px;
  }
  .training-route-card {
    padding: 14px;
    border-radius: 18px;
    gap: 11px;
  }
  .training-route-line {
    overflow: visible;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    padding-bottom: 2px;
  }
  .training-route-line:before {
    left: 5.5%;
    right: 5.5%;
    width: auto;
  }
  .training-route-line span {
    font-size: 8px;
    letter-spacing: -0.03em;
  }
  .training-route-line i {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }
  .training-current-panel {
    padding: 12px;
    border-radius: 14px;
  }
  .training-current-panel strong {
    font-size: 16px;
  }
  .training-current-panel b {
    font-size: 21px;
  }
  .training-day-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .training-day-card {
    min-height: 146px;
    padding: 13px;
    border-radius: 16px;
  }
  .training-day-card:nth-child(9) {
    grid-column: 1 / -1;
  }
  .training-day-card h2 {
    font-size: 15px;
    min-height: 38px;
  }
  .training-day-card-head span {
    font-size: 12px;
  }
  .training-day-card-head em {
    font-size: 9px;
    padding: 4px 6px;
  }
  .training-day-meta strong {
    font-size: 20px;
  }
  .training-day-meta small {
    font-size: 10px;
  }
}
