:root {
  --app-bg: #eceee9;
  --app-surface: #fbfcf8;
  --app-ink: #111310;
  --app-muted: #62665e;
  --app-line: #bfc4ba;
  --app-green: #c9f34a;
  --app-green-dark: #111310;
  --app-green-soft: #ecffc0;
  --app-burgundy: #f07c68;
  --app-gold: #f4c44d;
  --app-shadow: 4px 4px 0 rgba(17, 19, 16, 0.9);
}

.student-app {
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.student-app button,
.student-app a,
.student-app textarea,
.student-app select {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px;
  background: var(--app-green-dark);
  color: #ffffff;
}

.app-brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.app-brand img,
.mobile-brand img {
  flex: 0 0 auto;
  border: 1px solid #111310;
  border-radius: 8px;
}

.app-brand strong,
.app-brand small,
.mobile-brand strong,
.mobile-brand small {
  display: block;
}

.app-brand strong {
  font-size: 20px;
  font-weight: 900;
}

.app-brand small,
.mobile-brand small {
  margin-top: 2px;
  color: #bfc3ba;
  font-size: 12px;
}

.sidebar-intro {
  margin: 28px 2px 22px;
  padding-left: 12px;
  border-left: 4px solid var(--app-green);
}

.sidebar-intro p {
  color: #f2f4ed;
  font-size: 14px;
  line-height: 1.45;
}

.quick-questions {
  display: grid;
  gap: 8px;
}

.quick-questions h2 {
  margin: 0 0 3px 2px;
  color: #9fa49b;
  font-size: 12px;
  text-transform: uppercase;
}

.student-app .prompt {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid #363a34;
  border-radius: 7px;
  padding: 10px 11px;
  background: #1d201c;
  color: #f8faef;
  text-align: left;
  line-height: 1.35;
}

.student-app .prompt:hover,
.student-app .prompt:focus-visible {
  border-color: var(--app-green);
  background: var(--app-green);
  color: var(--app-ink);
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #343730;
}

.sidebar-footer a {
  color: #f0f3ea;
  font-size: 13px;
  text-decoration: none;
}

.sidebar-footer a:first-child {
  width: fit-content;
  border: 1px solid var(--app-green);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--app-green);
  color: var(--app-ink);
  font-weight: 800;
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb3a9;
  font-size: 12px;
}

.connection-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-green);
  box-shadow: 0 0 0 4px rgba(201, 243, 74, 0.12);
}

.connection-state i.is-offline {
  background: #acb4b2;
  box-shadow: none;
}

.connection-state i.is-warning {
  background: var(--app-gold);
}

.app-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--app-bg);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--app-ink);
  background: #fbfcf8;
  z-index: 10;
}

.mobile-brand {
  display: none;
  margin-right: auto;
  color: var(--app-ink);
}

.mobile-brand strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.mobile-brand small {
  color: var(--app-muted);
}

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

.action-button,
.pilot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.action-button {
  border: 1px solid var(--app-ink);
  background: #ffffff;
  color: var(--app-ink);
}

.action-button:hover,
.action-button:focus-visible {
  background: var(--app-green-soft);
}

.install-button {
  border-color: var(--app-ink);
  background: var(--app-green);
  color: var(--app-ink);
}

.source-toggle span {
  min-width: 21px;
  margin-left: 7px;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--app-ink);
  color: #ffffff;
  font-size: 11px;
}

.source-toggle.has-sources span {
  background: var(--app-green);
  color: var(--app-ink);
}

.pilot-badge {
  border: 1px solid var(--app-ink);
  background: var(--app-gold);
  color: var(--app-ink);
}

.pilot-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--app-ink);
  background: #fff1b8;
  color: var(--app-ink);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-notice span {
  flex: 1;
}

.pilot-notice a {
  color: var(--app-ink);
  font-weight: 800;
}

.app-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px;
}

.chat-surface,
.sources-drawer {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.chat-surface {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.student-app .messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px clamp(18px, 4vw, 52px) 18px;
}

.welcome-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 18px;
  max-width: 860px;
  min-height: 252px;
  margin: 14px auto 24px;
  overflow: hidden;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--app-green);
  box-shadow: 5px 5px 0 var(--app-ink);
}

.welcome-copy {
  position: relative;
  z-index: 1;
}

.welcome-illustration {
  display: block;
  width: 230px;
  height: 230px;
  object-fit: contain;
}

.welcome-label {
  width: fit-content;
  border: 1px solid var(--app-ink);
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffffff;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.welcome-block h1 {
  margin: 12px 0 9px;
  color: var(--app-ink);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.welcome-block h1 span {
  display: inline-block;
  margin-top: 4px;
  border-radius: 5px;
  padding: 3px 7px 4px;
  background: var(--app-ink);
  color: var(--app-green);
}

.welcome-block p:last-child {
  max-width: 520px;
  color: #252820;
  font-size: 14px;
  line-height: 1.45;
}

.mobile-prompts {
  display: none;
}

.student-app .message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: min(780px, 100%);
  margin: 0 auto 16px;
}

.student-app .message.user {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.student-app .avatar {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--app-ink);
  background: var(--app-green);
  color: var(--app-ink);
  font-weight: 900;
  font-size: 13px;
}

.student-app .message.user .avatar {
  background: var(--app-burgundy);
  color: var(--app-ink);
}

.student-app .bubble {
  max-width: 100%;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8f9f4;
  color: var(--app-ink);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.student-app .message.user .bubble {
  border-color: var(--app-ink);
  background: var(--app-ink);
  color: #ffffff;
}

.student-app .message.meta .bubble {
  border-color: var(--app-ink);
  background: #fff1b8;
  color: var(--app-ink);
}

.student-app .composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid var(--app-ink);
  background: var(--app-green);
}

.student-app .composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 132px;
  resize: none;
  overflow-y: auto;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--app-ink);
  line-height: 1.35;
}

.student-app .composer textarea:focus {
  outline: 3px solid rgba(17, 19, 16, 0.15);
  border-color: var(--app-ink);
}

.student-app .composer button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  border: 1px solid var(--app-ink);
  background: var(--app-ink);
  color: var(--app-green);
  font-weight: 900;
}

.student-app .composer button:hover,
.student-app .composer button:focus-visible {
  background: #2c3029;
}

.sources-drawer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 15px;
  border-bottom: 1px solid var(--app-ink);
  background: var(--app-ink);
}

.drawer-header p {
  color: var(--app-green);
  font-size: 11px;
  text-transform: uppercase;
}

.drawer-header h2 {
  margin-top: 3px;
  color: #ffffff;
  font-size: 16px;
}

.drawer-header > span {
  min-width: 26px;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--app-green);
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.drawer-close {
  display: none;
  min-height: 38px;
  border: 1px solid #ffffff;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: #ffffff;
}

.student-app .sources-list,
.student-app .sources-empty {
  overflow-y: auto;
  padding: 14px;
}

.student-app .sources-empty {
  color: var(--app-muted);
  font-size: 13px;
}

.student-app .source-card {
  margin-bottom: 10px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--app-ink);
}

.student-app .source-card h3 {
  font-size: 14px;
}

.student-app .source-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.student-app .source-card a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 9px;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 760;
}

.student-app .source-meta span {
  border-radius: 5px;
  border: 1px solid var(--app-line);
  background: var(--app-green-soft);
  font-size: 11px;
}

.student-app .feedback-panel {
  margin: auto 14px 14px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 13px;
  background: var(--app-green-soft);
}

.feedback-heading h2 {
  color: var(--app-ink);
  font-size: 14px;
}

.feedback-heading p {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
}

.student-app .feedback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 11px 0;
}

.student-app .feedback {
  min-height: 38px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  background: #ffffff;
}

.student-app .feedback.helpful {
  background: var(--app-green);
  color: var(--app-ink);
}

.student-app .feedback:hover:not(:disabled),
.student-app .feedback:focus-visible:not(:disabled) {
  background: var(--app-ink);
  color: #ffffff;
}

.student-app .feedback-reason,
.student-app .feedback-comment {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 720;
}

.student-app .feedback-reason select,
.student-app .feedback-comment textarea {
  width: 100%;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  background: #ffffff;
  color: var(--app-ink);
}

.student-app .feedback-reason select {
  min-height: 38px;
  padding: 0 9px;
}

.student-app .feedback-comment textarea {
  min-height: 68px;
  padding: 9px;
  resize: vertical;
}

.student-app .feedback-state {
  color: var(--app-muted);
  font-size: 11px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  border: 0;
  background: rgba(17, 30, 28, 0.46);
}

.install-dialog {
  width: min(420px, calc(100% - 28px));
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  color: var(--app-ink);
  box-shadow: 6px 6px 0 var(--app-ink);
}

.install-dialog::backdrop {
  background: rgba(17, 30, 28, 0.5);
}

.install-dialog-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-dialog-heading img {
  border-radius: 8px;
}

.install-dialog-heading p {
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.install-dialog-heading h2 {
  margin-top: 3px;
  color: var(--app-ink);
  font-size: 18px;
}

.install-dialog ol {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 20px;
  color: var(--app-ink);
  font-size: 14px;
  line-height: 1.45;
}

.install-dialog > p {
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.45;
}

.install-dialog > button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 7px;
  border: 1px solid var(--app-ink);
  background: var(--app-green);
  color: var(--app-ink);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .app-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .student-app.drawer-open {
    overflow: hidden;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-bar {
    justify-content: space-between;
    min-height: 62px;
    padding: 9px 12px;
    background: var(--app-green);
  }

  .mobile-brand {
    display: flex;
  }

  .clear-button,
  .pilot-badge {
    display: none;
  }

  .action-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .pilot-notice {
    padding: 8px 12px;
  }

  .pilot-notice span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-content {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .chat-surface {
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .student-app .messages {
    padding: 18px 14px 12px;
  }

  .welcome-block {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    min-height: 230px;
    margin: 6px 0 20px;
    padding: 17px;
  }

  .welcome-illustration {
    width: 132px;
    height: 190px;
  }

  .welcome-block h1 {
    font-size: 29px;
  }

  .welcome-block p:last-child {
    font-size: 13px;
  }

  .mobile-prompts {
    display: flex;
    gap: 7px;
    margin: 0 -14px 18px;
    padding: 0 14px 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-prompts::-webkit-scrollbar {
    display: none;
  }

  .student-app .mobile-prompts .prompt {
    width: auto;
    min-width: 210px;
    border-color: var(--app-ink);
    background: #ffffff;
    color: var(--app-ink);
  }

  .student-app .mobile-prompts .prompt:first-child {
    background: var(--app-ink);
    color: var(--app-green);
  }

  .student-app .composer {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .sources-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 94vw);
    height: 100dvh;
    z-index: 40;
    border-width: 0 0 0 1px;
    border-radius: 0;
    transform: translateX(102%);
    transition: transform 180ms ease;
  }

  .sources-drawer.is-open {
    transform: translateX(0);
  }

  .drawer-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .drawer-close {
    display: inline-flex;
    align-items: center;
  }

  .student-app .feedback-panel {
    margin-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .mobile-brand small {
    display: none;
  }

  .mobile-brand img {
    width: 36px;
    height: 36px;
  }

  .welcome-block {
    grid-template-columns: minmax(0, 1fr) 108px;
    min-height: 220px;
  }

  .welcome-illustration {
    width: 108px;
    height: 176px;
  }

  .welcome-block h1 {
    font-size: 26px;
  }

  .welcome-block p:last-child {
    font-size: 12px;
  }

  .install-button {
    padding: 0 9px;
  }

  .source-toggle {
    font-size: 0;
  }

  .source-toggle::before {
    content: "Источники";
    font-size: 12px;
  }

  .student-app .message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .student-app .message.user {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .student-app .avatar {
    width: 30px;
    height: 30px;
  }

  .student-app .bubble {
    padding: 11px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sources-drawer {
    transition: none;
  }
}

/* Product shell */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.student-app svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.product-brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #3b3f37;
  border-radius: 8px;
  background: #1b1e1a;
}

.product-brand-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.product-brand strong,
.product-brand small {
  display: block;
}

.product-brand strong {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.product-brand small {
  margin-top: 5px;
  color: #aeb3a9;
  font-size: 12px;
}

.product-nav {
  display: grid;
  gap: 6px;
  margin-top: 38px;
}

.view-tab {
  border: 0;
  color: inherit;
  font: inherit;
}

.product-nav .view-tab {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: #c8cdc3;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.product-nav .view-tab svg {
  width: 21px;
  height: 21px;
}

.product-nav .view-tab:hover,
.product-nav .view-tab:focus-visible {
  border-color: #464a42;
  background: #1d201c;
  color: #ffffff;
}

.product-nav .view-tab.is-active {
  border-color: var(--app-green);
  background: var(--app-green);
  color: var(--app-ink);
}

.desktop-context {
  margin-right: auto;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 750;
}

.app-viewport {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.app-view {
  display: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.app-view.is-active {
  display: block;
}

.assistant-view.is-active {
  display: block;
}

.view-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px clamp(18px, 3vw, 40px) 42px;
}

.student-app:not([data-active-view="assistant"]) .source-toggle,
.student-app:not([data-active-view="assistant"]) .clear-button {
  display: none;
}

.mobile-nav {
  display: none;
}

.section-kicker,
.section-heading p,
.home-feature-band p,
.partner-band p,
.profile-form header p,
.install-panel p,
.pilot-profile-panel > p {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-hero,
.product-section,
.home-feature-band,
.view-heading,
.partner-band,
.profile-layout {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: center;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 34px clamp(26px, 4vw, 52px);
  background: var(--app-green);
  box-shadow: 5px 5px 0 var(--app-ink);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero .section-kicker {
  color: #34372f;
}

.home-hero h1,
.view-heading h1 {
  margin: 10px 0 12px;
  color: var(--app-ink);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.home-hero-copy > p:last-of-type {
  max-width: 560px;
  color: #30332d;
  font-size: 18px;
  line-height: 1.45;
}

.home-owl {
  display: block;
  width: 340px;
  height: 310px;
  object-fit: contain;
}

.hero-actions,
.install-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.dark-command,
.light-command,
.lime-command,
.install-trigger,
.profile-form > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 0 15px;
  font-weight: 850;
}

.dark-command {
  background: var(--app-ink);
  color: var(--app-green);
}

.light-command {
  background: #ffffff;
  color: var(--app-ink);
}

.lime-command,
.install-trigger,
.profile-form > button {
  background: var(--app-green);
  color: var(--app-ink);
}

.dark-command svg,
.light-command svg {
  width: 18px;
  height: 18px;
}

.product-section {
  margin-top: 34px;
}

.icon-command {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  background: #ffffff;
  color: var(--app-ink);
}

.icon-command:hover,
.icon-command:focus-visible {
  background: var(--app-green);
}

.icon-command svg {
  width: 18px;
  height: 18px;
}

.icon-command.is-loading svg {
  animation: feed-spin 0.8s linear infinite;
}

.my-day-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 11px;
}

.my-day-context,
.my-day-schedule {
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 19px;
}

.my-day-context {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  background: var(--app-ink);
  color: #ffffff;
}

.my-day-context > p,
.my-day-schedule p {
  color: var(--app-green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.my-day-context h3,
.my-day-schedule h3 {
  margin-top: 7px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
}

.my-day-context > span,
.my-day-schedule span {
  display: block;
  margin-top: 8px;
  color: #c3c8bd;
  font-size: 12px;
  line-height: 1.45;
}

.my-day-context button {
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid var(--app-green);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--app-green);
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 850;
}

.my-day-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.my-day-profile-meta span {
  margin: 0;
  border: 1px solid #555b52;
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.my-day-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 210px;
  background: #ffffff;
}

.my-day-schedule p {
  color: #235c85;
}

.my-day-schedule > div > span {
  color: var(--app-muted);
}

.my-day-schedule > a {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 0 11px;
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.my-day-schedule > a svg {
  width: 16px;
  height: 16px;
}

.my-day-lessons {
  display: grid;
  grid-column: 1 / -1;
  align-self: end;
  border-top: 1px solid var(--app-ink);
}

.my-day-lesson {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #cbd0c7;
  padding: 10px 2px;
}

.my-day-lesson:last-child {
  border-bottom: 0;
}

.my-day-lesson time {
  font-size: 12px;
  font-weight: 900;
}

.my-day-lesson strong,
.my-day-lesson small {
  display: block;
}

.my-day-lesson strong {
  font-size: 13px;
}

.my-day-lesson small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 10px;
  line-height: 1.35;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feed-controls > span,
.feed-state {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 750;
}

.feed-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  background: #ffffff;
  color: var(--app-ink);
}

.feed-controls button:hover,
.feed-controls button:focus-visible {
  background: var(--app-green);
}

.feed-controls svg {
  width: 18px;
  height: 18px;
}

.feed-controls button.is-loading svg {
  animation: feed-spin 0.8s linear infinite;
}

@keyframes feed-spin {
  to { transform: rotate(360deg); }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2,
.home-feature-band h2,
.partner-band h2,
.profile-form h2,
.install-panel h2,
.pilot-profile-panel h2 {
  margin-top: 4px;
  color: var(--app-ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.action-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.live-feed,
.opportunity-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.live-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 168px;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
  color: var(--app-ink);
  text-decoration: none;
}

.live-card:hover,
.live-card:focus-visible {
  box-shadow: 3px 3px 0 var(--app-ink);
  transform: translate(-1px, -1px);
}

.live-card-meta,
.live-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-card-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #dff2e5;
  color: #164e2d;
  font-size: 10px;
  font-weight: 850;
}

.live-card.is-international .live-card-tag {
  background: #dfe9ff;
  color: #244b91;
}

.live-card.is-career .live-card-tag {
  background: #ffe0d9;
  color: #743529;
}

.live-card.is-development .live-card-tag {
  background: #fff1b8;
  color: #5d4a00;
}

.live-card time,
.live-card-footer {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 750;
}

.live-card strong {
  align-self: center;
  margin: 15px 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.24;
}

.live-card-footer svg {
  width: 17px;
  height: 17px;
}

.feed-skeleton {
  min-height: 168px;
  border: 1px solid #cbd0c7;
  border-radius: 8px;
  background: #e8ebe5;
  animation: feed-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes feed-pulse {
  to { opacity: 0.48; }
}

.feed-empty {
  grid-column: 1 / -1;
  border-top: 1px solid var(--app-ink);
  border-bottom: 1px solid var(--app-ink);
  padding: 18px 4px;
  color: var(--app-muted);
  font-size: 13px;
}

.student-app .action-tile,
.student-app .topic-item,
.student-app .opportunity-item {
  position: relative;
  width: 100%;
  margin: 0;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--app-ink);
  text-align: left;
}

.student-app .action-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 142px;
}

.action-tile .tile-index {
  grid-column: 1 / -1;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 850;
}

.action-tile strong {
  align-self: end;
  font-size: 18px;
  font-weight: 900;
}

.action-tile small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
}

.action-tile svg {
  align-self: end;
  width: 19px;
  height: 19px;
}

.student-app .action-tile:hover,
.student-app .action-tile:focus-visible,
.student-app .topic-item:hover,
.student-app .topic-item:focus-visible,
.student-app .opportunity-item:hover,
.student-app .opportunity-item:focus-visible {
  background: var(--app-green-soft);
  box-shadow: 3px 3px 0 var(--app-ink);
}

.home-feature-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  border-radius: 8px;
  padding: 24px;
  background: var(--app-ink);
}

.home-feature-band p {
  color: var(--app-green);
}

.home-feature-band h2 {
  max-width: 720px;
  color: #ffffff;
}

.view-heading {
  border-bottom: 2px solid var(--app-ink);
  padding: 24px 0 26px;
}

.view-heading > p:last-child {
  max-width: 720px;
  color: var(--app-muted);
  font-size: 16px;
  line-height: 1.5;
}

.schedule-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 28px;
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 20px;
  background: #e4f3ff;
}

.schedule-copy p {
  color: #235c85;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.schedule-copy h2 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
}

.schedule-copy span,
.schedule-state {
  color: var(--app-muted);
  font-size: 12px;
}

.schedule-copy span {
  display: block;
  margin-top: 5px;
}

.schedule-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.schedule-form input,
.profile-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 0 11px;
  background: #ffffff;
  color: var(--app-ink);
}

.schedule-form button {
  min-height: 44px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 0 15px;
  background: var(--app-ink);
  color: #ffffff;
  font-weight: 850;
}

.schedule-state {
  grid-column: 2;
  align-self: start;
}

.schedule-results {
  display: grid;
  grid-column: 2 / -1;
  gap: 6px;
}

.schedule-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-top: 1px solid var(--app-ink);
  padding: 8px 2px;
  color: var(--app-ink);
  text-decoration: none;
}

.schedule-result:last-child {
  border-bottom: 1px solid var(--app-ink);
}

.schedule-result strong,
.schedule-result small {
  display: block;
}

.schedule-result strong {
  font-size: 13px;
}

.schedule-result small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 10px;
}

.schedule-result svg,
.schedule-direct svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.schedule-direct {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.student-app .topic-item {
  display: grid;
  gap: 7px;
  min-height: 112px;
}

.topic-item strong {
  font-size: 16px;
  font-weight: 900;
}

.topic-item span {
  align-self: end;
  color: var(--app-muted);
  font-size: 12px;
}

.service-links {
  border-top: 1px solid var(--app-ink);
}

.service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  border-bottom: 1px solid var(--app-ink);
  padding: 11px 4px;
  color: var(--app-ink);
  text-decoration: none;
}

.service-links strong,
.service-links small {
  display: block;
}

.service-links strong {
  font-size: 15px;
}

.service-links small {
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 12px;
}

.service-links svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.opportunities-heading {
  border-color: #e36f5b;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.student-app .opportunity-item {
  display: grid;
  min-height: 190px;
}

.opportunity-item > span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #ffe0d9;
  color: #743529;
  font-size: 11px;
  font-weight: 850;
}

.opportunity-item strong {
  align-self: end;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.opportunity-item small {
  margin-top: 7px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.4;
}

.partner-band {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  border-radius: 8px;
  padding: 22px 26px;
  background: var(--app-ink);
  color: #ffffff;
}

.partner-band img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.partner-band p {
  color: var(--app-green);
}

.partner-band h2 {
  color: #ffffff;
}

.partner-band span {
  display: block;
  margin-top: 7px;
  color: #c3c8bd;
  font-size: 13px;
  line-height: 1.45;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
  margin-top: 28px;
}

.profile-form,
.install-panel,
.pilot-profile-panel {
  border: 1px solid var(--app-ink);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.profile-form {
  display: grid;
  grid-row: span 2;
  gap: 15px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 0 11px;
  background: #ffffff;
  color: var(--app-ink);
}

.profile-form > button {
  width: fit-content;
}

#profileState {
  color: var(--app-muted);
  font-size: 12px;
}

.install-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 13px;
}

.install-panel img {
  border: 1px solid var(--app-ink);
  border-radius: 8px;
}

.install-panel span,
.pilot-profile-panel span {
  display: block;
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.45;
}

.install-panel-actions {
  grid-column: 1 / -1;
}

.install-panel-actions a,
.pilot-profile-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--app-ink);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pilot-profile-panel {
  background: #fff1b8;
}

.pilot-profile-panel a {
  min-height: 38px;
  margin-top: 13px;
  background: #ffffff;
}

.assistant-view .app-content {
  height: 100%;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .home-owl {
    width: 270px;
    height: 270px;
  }

  .home-hero h1,
  .view-heading h1 {
    font-size: 44px;
  }

  .action-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .student-app {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .app-shell {
    height: calc(100dvh - 66px - env(safe-area-inset-bottom));
  }

  .desktop-context {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(66px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--app-ink);
    padding: 5px 4px env(safe-area-inset-bottom);
    background: #fbfcf8;
  }

  .mobile-nav .view-tab {
    display: grid;
    grid-template-rows: 25px 15px;
    place-items: center;
    min-width: 0;
    border-radius: 7px;
    padding: 3px 1px;
    background: transparent;
    color: #656960;
    font-size: 10px;
    font-weight: 750;
  }

  .mobile-nav .view-tab svg {
    width: 21px;
    height: 21px;
  }

  .mobile-nav .view-tab.is-active {
    background: var(--app-ink);
    color: var(--app-green);
  }

  .app-bar {
    min-height: 58px;
  }

  .view-scroll {
    padding: 14px 14px 28px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px;
    min-height: 260px;
    padding: 20px 18px;
  }

  .home-hero h1,
  .view-heading h1 {
    font-size: 34px;
  }

  .home-hero-copy > p:last-of-type {
    font-size: 14px;
  }

  .home-owl {
    width: 128px;
    height: 170px;
  }

  .hero-actions {
    display: grid;
    margin-top: 17px;
  }

  .dark-command,
  .light-command {
    width: 100%;
  }

  .product-section,
  .home-feature-band,
  .partner-band {
    margin-top: 26px;
  }

  .action-tile-grid,
  .topic-grid,
  .live-feed,
  .opportunity-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-day-layout {
    grid-template-columns: 1fr;
  }

  .schedule-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-state,
  .schedule-results {
    grid-column: 1;
  }

  .student-app .action-tile {
    min-height: 126px;
  }

  .home-feature-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-heading {
    padding: 12px 0 20px;
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .student-app .opportunity-item {
    min-height: 150px;
  }

  .partner-band {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .partner-band img {
    width: 92px;
    height: 92px;
  }

  .partner-band .lime-command {
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-form {
    grid-row: auto;
  }

  .assistant-view .app-content {
    height: 100%;
  }
}

@media (max-width: 520px) {
  .app-actions {
    gap: 6px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 102px;
    min-height: 248px;
  }

  .home-hero h1 {
    font-size: 31px;
  }

  .home-owl {
    width: 102px;
    height: 150px;
  }

  .section-heading h2,
  .home-feature-band h2,
  .partner-band h2,
  .profile-form h2,
  .install-panel h2,
  .pilot-profile-panel h2 {
    font-size: 20px;
  }

  .action-tile-grid,
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .live-feed,
  .opportunity-feed {
    grid-template-columns: 1fr;
  }

  .live-card,
  .feed-skeleton {
    min-height: 154px;
  }

  .live-card strong {
    font-size: 15px;
  }

  .live-feed .live-card:nth-child(n + 3) {
    display: none;
  }

  .schedule-form {
    grid-template-columns: 1fr;
  }

  .my-day-context,
  .my-day-schedule {
    min-height: 188px;
    padding: 16px;
  }

  .my-day-schedule {
    grid-template-columns: 1fr;
  }

  .my-day-schedule > a {
    width: fit-content;
  }

  .my-day-lesson {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .student-app .action-tile,
  .student-app .topic-item {
    min-height: 118px;
    padding: 13px;
  }

  .mobile-nav .view-tab {
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  .action-tile strong {
    font-size: 15px;
  }
}
