:root {
  --orange: #f37021;
  --orange-deep: #d95a12;
  --orange-soft: #fff0e6;
  --orange-line: #f4c7af;
  --ink: #171717;
  --ink-soft: #2a2927;
  --muted: #6f6a63;
  --line: #e6e0d8;
  --line-strong: #cfc6ba;
  --paper: #f7f5f1;
  --white: #ffffff;
  --green: #2f7d5a;
  --green-soft: #eef7f1;
  --red: #b5432f;
  --red-soft: #fdf0ed;
  --radius: 18px;
  --font-body: "Manrope", "Noto Sans HK", sans-serif;
  --font-label: "Oswald", "Noto Sans HK", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark.brand-logo-mark {
  width: 32px;
  height: 64px;
  overflow: hidden;
  border-radius: 5px;
  background: transparent;
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: contain;
}

.brand-mark-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-mark-small.brand-logo-mark {
  width: 24px;
  height: 48px;
  border-radius: 4px;
}

.brand-mark-small svg {
  width: 21px;
  height: 21px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-sub {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.portal-nav a {
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.portal-nav a:hover {
  color: var(--ink);
}

.portal-nav a.active {
  background: var(--ink);
  color: var(--white);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease;
}

.icon-button:hover {
  border-color: var(--ink);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange-line);
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.avatar-staff {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.profile-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-name small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.reset-button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.reset-button:hover {
  color: var(--orange-deep);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.student-hero {
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: 80px;
  align-items: center;
}

.hero-copy {
  animation: fade-up 600ms both;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 24px;
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-copy h1 span {
  color: var(--orange);
}

.hero-lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.icon-button:focus-visible,
.filter-chip:focus-visible,
.staff-tab:focus-visible,
.text-button:focus-visible,
.portal-nav a:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 11px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  transform: none;
  opacity: 0.48;
  cursor: not-allowed;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.proof-avatars {
  display: flex;
  padding-left: 8px;
}

.proof-avatars span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
}

.proof-avatars span:nth-child(2) {
  background: var(--orange);
}

.proof-avatars span:nth-child(3) {
  background: #7d776e;
}

.hero-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.hero-proof strong {
  color: var(--ink);
  font-size: 11px;
}

.hero-search-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 22px;
  background: var(--white);
  animation: fade-up 600ms 80ms both;
}

.panel-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fbfaf8;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.status-pill-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.status-pill-dark i {
  background: var(--orange);
}

.hero-search {
  margin: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 7px 7px 7px 14px;
}

.search-box > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #99928a;
}

.search-box button {
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  background: var(--orange-deep);
}

.search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.search-suggestions span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--white);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.search-suggestions button:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.search-summary {
  display: flex;
  align-items: stretch;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.search-summary > div:not(.summary-divider) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-summary strong {
  font-family: var(--font-label);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.search-summary span {
  max-width: 120px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.summary-divider {
  width: 1px;
  margin: 0 18px;
  background: var(--line);
}

.returned-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--orange-line);
  border-radius: 14px;
  background: var(--orange-soft);
}

.returned-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  flex-shrink: 0;
}

.returned-check svg {
  width: 16px;
  height: 16px;
}

.returned-note p {
  margin: 0;
  color: #7d4e37;
  font-size: 10px;
  line-height: 1.45;
}

.returned-note strong {
  color: var(--ink);
  font-size: 11px;
}

.impact-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-item {
  padding: 26px 26px 28px;
  border-right: 1px solid var(--line);
}

.impact-item:first-child {
  padding-left: 0;
}

.impact-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.impact-item strong {
  display: block;
  font-family: var(--font-label);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.impact-item span {
  display: block;
  max-width: 210px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.impact-item-accent strong {
  color: var(--orange);
}

.inventory-section {
  padding: 72px 0 52px;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--white);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.sort-control select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 28px 8px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
  cursor: pointer;
}

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

.item-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  animation: fade-up 500ms both;
  transition: border-color 180ms ease, transform 180ms ease;
}

.item-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.item-card:nth-child(2) {
  animation-delay: 45ms;
}

.item-card:nth-child(3) {
  animation-delay: 90ms;
}

.item-card:nth-child(4) {
  animation-delay: 135ms;
}

.item-card:nth-child(5) {
  animation-delay: 180ms;
}

.item-card:nth-child(6) {
  animation-delay: 225ms;
}

.item-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeeae4;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.item-card:hover .item-image img {
  transform: scale(1.025);
}

.image-badge,
.image-confidence {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.image-badge {
  top: 12px;
  left: 12px;
}

.image-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.image-confidence {
  right: 12px;
  bottom: 12px;
  background: var(--ink);
  color: var(--white);
  letter-spacing: 0.02em;
  text-transform: none;
}

.item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-category {
  color: var(--orange-deep);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.item-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.item-status.pending {
  color: #a86b00;
}

.item-status.claimed {
  color: var(--muted);
}

.item-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.item-description {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 2px;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.meta-line svg {
  width: 13px;
  height: 13px;
  color: var(--ink);
  flex-shrink: 0;
}

.item-action {
  margin-top: 4px;
}

.btn-card {
  width: 100%;
  min-height: 40px;
  padding: 9px 14px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
}

.btn-card:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-card:disabled {
  background: #f2eee8;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 16px;
}

.empty-state p {
  max-width: 440px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.activity-section {
  padding: 20px 0 76px;
}

.owner-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--orange-line);
  border-radius: var(--radius);
  background: var(--orange-soft);
}

.owner-alert-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--orange-deep);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.owner-alert .eyebrow {
  margin-bottom: 4px;
  color: #8b5b43;
}

.owner-alert strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.owner-alert p:not(.eyebrow) {
  max-width: 720px;
  margin: 5px 0 0;
  color: #7d4e37;
  font-size: 10px;
  line-height: 1.55;
}

.text-button {
  border: 0;
  padding: 5px 0;
  background: transparent;
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.text-button-light {
  color: var(--white);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.activity-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.activity-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.activity-card-header h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.activity-card-header span {
  color: var(--muted);
  font-size: 10px;
}

.activity-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 100px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fbfaf8;
}

.activity-empty-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  flex-shrink: 0;
}

.activity-empty-icon svg {
  width: 17px;
  height: 17px;
}

.activity-empty strong {
  display: block;
  margin-top: 1px;
  font-size: 11px;
}

.activity-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.activity-item-main {
  min-width: 0;
}

.activity-item-main strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item-main span,
.activity-item-main p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.activity-item-main p {
  max-width: 340px;
}

.activity-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.pending {
  background: #fff5dc;
  color: #966000;
}

.status-badge.declined {
  background: var(--red-soft);
  color: var(--red);
}

.status-badge.neutral {
  background: #efebe5;
  color: var(--muted);
}

.how-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.step-card {
  padding: 28px 30px 0;
  border-right: 1px solid var(--line);
}

.step-card:first-child {
  padding-left: 0;
}

.step-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.step-number {
  color: var(--orange);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin: 30px 0 9px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.step-card p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.safety-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 72px;
  margin-bottom: 72px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.safety-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.safety-icon svg {
  width: 24px;
  height: 24px;
}

.safety-callout .eyebrow {
  margin-bottom: 5px;
}

.safety-callout h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.safety-callout p:not(.eyebrow) {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.safety-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer {
  padding: 30px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.footer-brand span:not(.brand-mark) {
  color: #aaa39b;
  font-size: 9px;
}

.site-footer p {
  margin: 0;
  color: #aaa39b;
  font-size: 10px;
  text-align: center;
}

.site-footer a {
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--orange);
}

/* Teacher dashboard */
.teacher-dashboard {
  padding: 24px 0 64px;
}

.teacher-dashboard-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.teacher-sidebar {
  position: sticky;
  top: 106px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.teacher-sidebar-heading {
  padding-bottom: 14px;
  border-bottom: 0;
}

.teacher-sidebar-heading span {
  display: block;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.teacher-sidebar-heading strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.teacher-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 0;
  border-bottom: 0;
}

.teacher-sidebar .teacher-nav-item {
  width: 100%;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 10px;
}

.teacher-sidebar .teacher-nav-item:hover {
  background: #f5f2ed;
  color: var(--ink);
}

.teacher-sidebar .teacher-nav-item.active {
  border-bottom-color: transparent;
  background: var(--ink);
  color: var(--white);
}

.teacher-sidebar .teacher-nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.teacher-sidebar .teacher-nav-item .tab-count {
  margin-left: auto;
}

.teacher-sidebar .teacher-nav-item.active .tab-count {
  background: var(--orange);
  color: var(--white);
}

.teacher-mini-stats {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.teacher-mini-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #fbfaf8;
}

.teacher-mini-stats span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.teacher-mini-stats strong {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.teacher-demo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 8px;
}

.teacher-demo-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.teacher-dashboard-main {
  min-width: 0;
}

.teacher-page-header {
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.teacher-page-header h1 {
  margin: 7px 0 5px;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.teacher-page-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1050px) {
  .teacher-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .teacher-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
  }

  .teacher-sidebar-heading {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .teacher-sidebar-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border: 0;
  }

  .teacher-mini-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-demo-status {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .teacher-sidebar {
    grid-template-columns: 1fr;
  }

  .teacher-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-nav-item {
    min-height: 42px;
  }

  .teacher-demo-status {
    display: none;
  }

  .teacher-page-header h1 {
    font-size: 36px;
  }
}

/* Staff workspace */
.staff-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
}

.staff-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: end;
  gap: 64px;
}

.staff-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.staff-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
}

.teacher-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.teacher-flow li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.teacher-flow li > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
}

.teacher-flow strong,
.teacher-flow small {
  display: block;
}

.teacher-flow strong {
  font-size: 10px;
  line-height: 1.35;
}

.teacher-flow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.staff-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.staff-stat {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.staff-stat:last-child {
  border-right: 0;
}

.staff-stat span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.staff-stat strong {
  display: block;
  margin: 10px 0 4px;
  font-family: var(--font-label);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.staff-stat small {
  color: var(--muted);
  font-size: 9px;
}

.staff-workspace {
  padding-bottom: 76px;
}

.staff-tabs {
  display: flex;
  gap: 28px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.staff-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 18px 0 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.staff-tab:hover {
  color: var(--ink);
}

.staff-tab.active {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.tab-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  padding: 0 5px;
  background: #eee9e4;
  color: var(--ink);
  font-size: 9px;
}

.tab-count-alert {
  background: var(--orange);
  color: var(--white);
}

.staff-panel {
  display: none;
}

.staff-panel.active {
  display: block;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: start;
  gap: 22px;
}

.form-panel,
.ai-panel,
.workspace-panel,
.recent-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.form-panel {
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading .eyebrow {
  margin-bottom: 7px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.045em;
}

.teacher-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: -4px 0 18px;
  border: 1px solid var(--orange-line);
  border-radius: 12px;
  padding: 11px 13px;
  background: var(--orange-soft);
}

.teacher-tip > span {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teacher-tip p {
  margin: 1px 0 0;
  color: #6c4b39;
  font-size: 9px;
  line-height: 1.55;
}

.required-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.upload-zone {
  overflow: hidden;
  min-height: 250px;
  margin-bottom: 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: #fbfaf8;
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-zone.dragover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.upload-empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.upload-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.upload-icon svg {
  width: 26px;
  height: 26px;
}

.upload-empty strong {
  font-size: 13px;
}

.upload-empty > span:not(.upload-icon) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.upload-preview-bar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(23, 23, 23, 0.9);
  color: var(--white);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-span-2 {
  grid-column: span 2;
}

.field > span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: 0;
  background: #fbfaf8;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  transition: border-color 160ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa39b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ai-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--white);
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ai-title div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-title strong {
  font-size: 12px;
}

.ai-title span {
  color: #bdb8b0;
  font-size: 9px;
}

.demo-badge {
  border: 1px solid #4a4742;
  border-radius: 999px;
  padding: 5px 8px;
  color: #d7d2ca;
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.ai-empty {
  min-height: 472px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.ai-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.ai-empty-icon svg {
  width: 24px;
  height: 24px;
}

.ai-empty strong {
  font-size: 13px;
}

.ai-empty p {
  max-width: 280px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.ai-empty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.ai-empty-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 8px;
}

.ai-result {
  padding: 18px;
}

.ai-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.confidence-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ai-time {
  color: var(--muted);
  font-size: 9px;
}

.ai-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #eeeae4;
}

.ai-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-scan-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.detected-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.detected-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px;
  background: var(--white);
}

.detected-grid span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detected-grid strong {
  font-size: 10px;
  line-height: 1.4;
}

.ai-description-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
}

.ai-description-block > span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ai-description-block p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.owner-card {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--orange-line);
  border-radius: 12px;
  background: var(--orange-soft);
}

.owner-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ocr-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  color: var(--orange-deep);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.owner-card-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-card-head strong {
  font-size: 10px;
}

.owner-card-head span {
  color: #8b5b43;
  font-size: 9px;
}

.owner-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.owner-name-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-name-row strong {
  font-size: 13px;
}

.owner-name-row span {
  color: #8b5b43;
  font-size: 9px;
}

.match-pill {
  border: 1px solid var(--orange-line);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--white);
  color: var(--orange-deep);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.owner-warning {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--orange-line);
  color: #7d4e37;
  font-size: 9px;
  line-height: 1.5;
}

.owner-notify-button {
  width: 100%;
  margin-top: 10px;
  border-color: var(--orange-line);
  background: var(--white);
  color: var(--orange-deep);
}

.owner-notify-button:hover {
  border-color: var(--orange);
}

.owner-notify-button:disabled {
  background: #f5e5da;
  color: #9b6a50;
}

.recent-panel {
  margin-top: 22px;
  padding: 24px;
}

.section-heading-compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-heading-compact h2 {
  font-size: 24px;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(120px, 0.55fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.recent-item:first-child {
  border-top: 0;
}

.recent-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.recent-main {
  min-width: 0;
}

.recent-main strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-main span,
.recent-location {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.recent-location {
  display: block;
}

.workspace-panel {
  padding: 28px;
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.workspace-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.workspace-heading h2 {
  margin: 7px 0 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.workspace-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.workspace-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fbfaf8;
}

.workspace-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.workspace-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.inventory-table {
  display: flex;
  flex-direction: column;
}

.inventory-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 0.9fr) 112px 96px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.inventory-row:first-child {
  border-top: 0;
}

.inventory-thumb {
  width: 64px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.inventory-main {
  min-width: 0;
}

.inventory-main strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-main span,
.inventory-location,
.inventory-storage {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.inventory-code {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.claims-list,
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.claim-card,
.report-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
}

.claim-card-header,
.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.claim-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.claim-person .avatar {
  width: 34px;
  height: 34px;
  background: var(--white);
}

.claim-person strong {
  display: block;
  font-size: 11px;
}

.claim-person span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.claim-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.claim-detail-grid > div {
  padding: 9px 10px;
  background: var(--white);
}

.claim-detail-grid span {
  display: block;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.claim-detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.4;
}

.claim-actions,
.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.claim-actions .btn,
.report-actions .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 9px;
}

.decline-button {
  border-color: #e9c6bd;
  color: var(--red);
}

.decline-button:hover {
  border-color: var(--red);
}

.report-card h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.report-card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.report-description {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.match-list-label {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.match-row img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
}

.match-row div {
  min-width: 0;
  flex: 1;
}

.match-row strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.match-score {
  color: var(--green) !important;
  font-weight: 800;
  white-space: nowrap;
}

/* Dialogs */
.modal {
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(23, 23, 23, 0.48);
}

.modal-shell {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 22px;
  background: var(--white);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--ink);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-heading {
  max-width: 620px;
  padding: 34px 34px 0;
}

.modal-heading h2 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.modal-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.report-modal {
  width: min(700px, calc(100% - 32px));
}

.report-form {
  padding: 24px 34px 34px;
}

.private-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.private-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.item-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.item-dialog-media {
  position: relative;
  min-height: 600px;
  background: #eeeae4;
}

.item-dialog-media img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.media-stamp {
  position: absolute;
  top: 18px;
  left: 18px;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-dialog-content {
  padding: 34px;
}

.item-dialog-title {
  margin: 9px 0 10px;
  font-size: 34px;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.item-dialog-desc {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);
  font-size: 9px;
}

.detail-row strong {
  max-width: 68%;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.claim-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
}

.claim-kicker {
  margin: 0;
  color: var(--orange-deep);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.claim-panel h3 {
  margin: 7px 0 6px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.claim-panel > p:not(.claim-kicker, .claim-error) {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.claim-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.claim-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.claim-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-input span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.claim-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
}

.claim-input input:focus {
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.claim-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.claim-option:hover {
  border-color: var(--orange-line);
}

.claim-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.claim-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--orange);
}

.claim-error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
}

.claim-panel .btn {
  margin-top: 14px;
}

.claim-status-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
}

.claim-status-panel strong {
  display: block;
  font-size: 14px;
}

.claim-status-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.claim-success {
  padding: 54px 34px;
  text-align: center;
}

.success-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
}

.claim-success h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.055em;
}

.claim-success > p {
  max-width: 500px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.claim-success .detail-list {
  max-width: 420px;
  margin: 24px auto 0;
  text-align: left;
}

.claim-success .btn {
  min-width: 150px;
  margin-top: 24px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 12px);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 44px;
  }

  .staff-hero-grid {
    gap: 36px;
  }

  .inventory-row {
    grid-template-columns: 58px minmax(0, 1.15fr) minmax(0, 0.8fr) 100px;
  }

  .inventory-storage {
    display: none;
  }
}

@media (max-width: 900px) {
  .student-hero {
    padding-top: 56px;
  }

  .hero-grid,
  .staff-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-search-card {
    max-width: 620px;
  }

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

  .impact-item:nth-child(2) {
    border-right: 0;
  }

  .impact-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .impact-item:nth-child(3) {
    padding-left: 0;
  }

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

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

  .ai-panel {
    position: static;
  }

  .ai-empty {
    min-height: 300px;
  }

  .item-dialog-media,
  .item-dialog-media img {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
  }

  .portal-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .portal-nav a {
    flex: 1;
    text-align: center;
  }

  .header-tools {
    margin-left: auto;
  }

  .student-hero {
    padding: 48px 0 40px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 12vw, 72px);
  }

  .section-heading,
  .filter-row,
  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    gap: 12px;
  }

  .sort-control {
    align-self: flex-end;
  }

  .activity-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-card:first-child {
    padding-top: 24px;
  }

  .step-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .step-card h3 {
    margin-top: 16px;
  }

  .safety-callout {
    grid-template-columns: auto 1fr;
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .safety-tag {
    grid-column: 2;
    justify-self: start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }

  .staff-hero {
    padding-top: 48px;
  }

  .teacher-flow {
    grid-template-columns: 1fr;
  }

  .teacher-flow li {
    align-items: center;
  }

  .form-panel,
  .workspace-panel,
  .recent-panel {
    padding: 20px;
  }

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

  .field-span-2 {
    grid-column: span 1;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .recent-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .recent-thumb {
    width: 48px;
    height: 48px;
  }

  .recent-location {
    display: none;
  }

  .workspace-search {
    width: 100%;
  }

  .inventory-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .inventory-thumb {
    width: 54px;
    height: 48px;
  }

  .inventory-location,
  .inventory-code {
    display: none;
  }

  .claim-detail-grid {
    grid-template-columns: 1fr;
  }

  .owner-alert {
    grid-template-columns: auto 1fr;
  }

  .owner-alert .btn {
    grid-column: 2;
    justify-self: start;
  }

  .claim-card-header,
  .report-card-header {
    flex-direction: column;
  }

  .item-dialog-grid {
    grid-template-columns: 1fr;
  }

  .item-dialog-media,
  .item-dialog-media img {
    min-height: 280px;
    max-height: 340px;
  }

  .item-dialog-content {
    padding: 24px;
  }

  .item-dialog-title {
    font-size: 28px;
  }

  .modal-heading {
    padding: 28px 24px 0;
  }

  .report-form {
    padding: 22px 24px 28px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand-sub,
  .profile-name {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .reset-button {
    padding-inline: 4px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-lede {
    font-size: 13px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .impact-item,
  .impact-item:first-child,
  .impact-item:nth-child(3),
  .impact-item:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .impact-item:last-child {
    border-bottom: 0;
  }

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

  .section-heading h2 {
    font-size: 32px;
  }

  .search-summary {
    gap: 12px;
  }

  .summary-divider {
    margin: 0 4px;
  }

  .safety-callout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .safety-tag {
    grid-column: auto;
  }

  .claim-context-grid {
    grid-template-columns: 1fr;
  }

  .staff-hero h1 {
    font-size: 46px;
  }

  .staff-stats {
    grid-template-columns: 1fr;
  }

  .staff-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .staff-stat:last-child {
    border-bottom: 0;
  }

  .owner-alert {
    grid-template-columns: 1fr;
  }

  .owner-alert .btn {
    grid-column: auto;
  }

  .staff-tabs {
    gap: 20px;
  }

  .staff-tab {
    font-size: 11px;
  }

  .upload-preview img {
    height: 230px;
  }

  .upload-actions {
    flex-direction: column;
  }

  .claim-actions,
  .report-actions {
    flex-direction: column-reverse;
  }

  .claim-actions .btn,
  .report-actions .btn {
    width: 100%;
  }

  .modal {
    width: calc(100% - 20px);
  }

  .modal-shell {
    max-height: calc(100vh - 20px);
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .detail-row strong {
    max-width: 100%;
    text-align: left;
  }

  .claim-success {
    padding: 48px 24px 30px;
  }
}

/* Student dashboard */
.student-dashboard {
  padding: 32px 0 76px;
}

.dashboard-layout {
  display: block;
}

.dashboard-sidebar {
  position: sticky;
  top: 106px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.sidebar-profile div {
  min-width: 0;
}

.sidebar-profile strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile span:not(.avatar) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-nav a:hover {
  background: #f5f2ed;
  color: var(--ink);
}

.sidebar-nav a.active {
  background: var(--ink);
  color: var(--white);
}

.sidebar-nav svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar-report {
  width: 100%;
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 10px;
  font-size: 10px;
}

.sidebar-note {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.sidebar-note-label {
  color: var(--orange-deep);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.dashboard-title {
  min-width: 0;
}

.dashboard-title h1 {
  margin: 8px 0 8px;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.dashboard-title > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.dashboard-tools {
  width: min(100%, 500px);
  flex-shrink: 0;
}

.dashboard-search-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.dashboard-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.dashboard-search > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}

.dashboard-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.dashboard-search input::placeholder {
  color: #9c958d;
}

.dashboard-search button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-search button:hover {
  background: var(--orange-deep);
}

.dashboard-report-button {
  flex-shrink: 0;
  min-height: 46px;
  border-radius: 12px;
  padding-inline: 17px;
  font-size: 9px;
  white-space: nowrap;
}

.dashboard-suggestions {
  margin-top: 8px;
  justify-content: flex-end;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.dashboard-stat {
  padding: 17px 19px;
  border-right: 1px solid var(--line);
}

.dashboard-stat:last-child {
  border-right: 0;
}

.dashboard-stat span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-stat strong {
  display: block;
  margin: 7px 0 2px;
  font-family: var(--font-label);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.dashboard-stat small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-stat-accent strong {
  color: var(--orange);
}

.filter-tabs-card {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.filter-tabs-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
}

.filter-tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex-shrink: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 17px 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.filter-tab.active {
  border-bottom-color: var(--orange);
  background: transparent;
  color: var(--ink);
}

.filter-tabs-top .sort-control {
  padding-bottom: 12px;
}

.filter-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: #fbfaf8;
  color: var(--muted);
  font-size: 9px;
}

.filter-results-bar span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.student-dashboard .item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.student-dashboard .item-body {
  gap: 10px;
  padding: 14px;
}

.student-dashboard .item-title {
  font-size: 16px;
}

.student-dashboard .item-description {
  min-height: 34px;
  font-size: 10px;
}

.student-dashboard .item-meta {
  gap: 6px;
}

.student-dashboard .meta-line {
  font-size: 9px;
}

.student-dashboard .btn-card {
  min-height: 36px;
  font-size: 10px;
}

.dashboard-activity {
  padding-top: 46px;
}

.dashboard-how {
  margin-top: 48px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.dashboard-how .steps-grid {
  margin-top: 24px;
}

.dashboard-safety {
  margin-top: 22px;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    padding: 16px;
  }

  .sidebar-profile {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sidebar-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav a {
    flex-shrink: 0;
    padding: 9px 11px;
  }

  .sidebar-report {
    width: auto;
    min-width: 150px;
  }

  .sidebar-note {
    display: none;
  }

  .student-dashboard .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-tools {
    width: 100%;
  }

  .dashboard-suggestions {
    justify-content: flex-start;
  }

  .student-dashboard .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat:nth-child(2) {
    border-right: 0;
  }

  .dashboard-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .filter-tabs-top {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs-top .sort-control {
    align-self: flex-end;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .dashboard-how {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .student-dashboard {
    padding-top: 20px;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-report {
    width: 100%;
  }

  .dashboard-search-row {
    flex-direction: column;
  }

  .dashboard-report-button {
    width: 100%;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stat {
    padding: 14px;
  }

  .student-dashboard .item-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-safety {
    margin-top: 16px;
  }
}

/* Teacher glass workspace */
body[data-page="teacher"] {
  --teacher-bg: #eef0f2;
  --teacher-ink: #17191c;
  --teacher-muted: #62666b;
  --teacher-line: rgba(23, 25, 28, 0.11);
  --teacher-glass: rgba(255, 255, 255, 0.58);
  --teacher-glass-strong: rgba(255, 255, 255, 0.76);
  --teacher-action: #c94e0c;
  --teacher-action-hover: #b34408;
  --teacher-orange-text: #b34408;
  background-color: var(--teacher-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%2317191c' fill-opacity='.055'/%3E%3C/svg%3E");
  color: var(--teacher-ink);
  overflow-x: clip;
}

body[data-page="teacher"] .container {
  width: min(1240px, calc(100% - 48px));
}

body[data-page="teacher"] .site-header {
  background: rgba(247, 249, 250, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 1px 0 rgba(23, 25, 28, 0.055);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
}

body[data-page="teacher"] .header-inner {
  min-height: 74px;
}

body[data-page="teacher"] .brand-name {
  color: var(--teacher-ink);
}

body[data-page="teacher"] .brand-sub {
  color: var(--teacher-muted);
  font-size: 10px;
}

body[data-page="teacher"] .header-tools {
  gap: 10px;
}

body[data-page="teacher"] .reset-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--teacher-muted);
  font-size: 11px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body[data-page="teacher"] .reset-button:hover {
  border-color: rgba(23, 25, 28, 0.16);
  color: var(--teacher-ink);
}

body[data-page="teacher"] .profile-name {
  color: var(--teacher-ink);
  font-size: 12px;
}

body[data-page="teacher"] .profile-name small {
  color: var(--teacher-muted);
  font-size: 10px;
}

body[data-page="teacher"] .teacher-dashboard {
  position: relative;
  isolation: isolate;
  padding: 20px 0 56px;
}

body[data-page="teacher"] .teacher-dashboard::before {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 72px 0 0 72px;
  background: rgba(243, 112, 33, 0.075);
  content: "";
  pointer-events: none;
}

body[data-page="teacher"] .teacher-dashboard-layout {
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 26px;
}

body[data-page="teacher"] .teacher-sidebar {
  top: 94px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  background: var(--teacher-glass);
  box-shadow:
    0 16px 40px rgba(23, 25, 28, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  backdrop-filter: blur(28px) saturate(1.35);
}

body[data-page="teacher"] .teacher-sidebar-heading {
  padding: 3px 6px 13px;
  border-bottom: 0;
}

body[data-page="teacher"] .teacher-sidebar-heading strong {
  margin: 0;
  color: var(--teacher-ink);
  font-size: 14px;
  letter-spacing: -0.025em;
}

body[data-page="teacher"] .teacher-sidebar-nav {
  gap: 5px;
  margin: 11px 0;
  padding: 11px 0;
  border-color: transparent;
}

body[data-page="teacher"] .teacher-sidebar .teacher-nav-item {
  min-height: 42px;
  gap: 10px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--teacher-muted);
  font-size: 12px;
}

body[data-page="teacher"] .teacher-sidebar .teacher-nav-item:hover {
  background: rgba(255, 255, 255, 0.56);
  color: var(--teacher-ink);
}

body[data-page="teacher"] .teacher-sidebar .teacher-nav-item.active {
  background: rgba(23, 25, 28, 0.94);
  color: #fff;
}

body[data-page="teacher"] .teacher-sidebar .teacher-nav-item .tab-count {
  min-width: 22px;
  height: 22px;
  background: rgba(23, 25, 28, 0.075);
  font-size: 10px;
}

body[data-page="teacher"] .teacher-sidebar .teacher-nav-item.active .tab-count,
body[data-page="teacher"] .teacher-sidebar .teacher-nav-item .tab-count-alert {
  background: var(--teacher-action);
  color: #fff;
}

body[data-page="teacher"] .teacher-mini-stats {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.34);
}

body[data-page="teacher"] .teacher-mini-stats div {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.4);
}

body[data-page="teacher"] .teacher-mini-stats span {
  color: var(--teacher-muted);
  font-size: 10px;
}

body[data-page="teacher"] .teacher-mini-stats strong {
  color: var(--teacher-ink);
  font-size: 19px;
}

body[data-page="teacher"] .teacher-demo-status {
  margin-top: 12px;
  padding-inline: 4px;
  color: var(--teacher-muted);
  font-size: 10px;
}

body[data-page="teacher"] .teacher-page-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  backdrop-filter: blur(22px) saturate(1.28);
}

body[data-page="teacher"] .teacher-page-header h1 {
  margin: 0;
  color: var(--teacher-ink);
  font-size: clamp(31px, 3.2vw, 40px);
  letter-spacing: -0.055em;
  line-height: 1;
}

body[data-page="teacher"] .intake-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

body[data-page="teacher"] .form-panel,
body[data-page="teacher"] .recent-panel,
body[data-page="teacher"] .workspace-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.79);
  box-shadow:
    0 14px 34px rgba(23, 25, 28, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body[data-page="teacher"] .form-panel {
  padding: 22px;
}

body[data-page="teacher"] .panel-heading {
  margin-bottom: 16px;
}

body[data-page="teacher"] .panel-heading h2 {
  font-size: 23px;
}

body[data-page="teacher"] .upload-zone {
  min-height: 166px;
  margin-bottom: 18px;
  border: 1px dashed rgba(23, 25, 28, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.47);
}

body[data-page="teacher"] .upload-empty {
  min-height: 166px;
  padding: 20px;
}

body[data-page="teacher"] .upload-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 13px;
}

body[data-page="teacher"] .upload-actions {
  margin-top: 0;
}

body[data-page="teacher"] .form-grid {
  gap: 14px;
}

body[data-page="teacher"] .field {
  gap: 6px;
}

body[data-page="teacher"] .field > span {
  color: var(--teacher-ink);
  font-size: 12px;
}

body[data-page="teacher"] .field input,
body[data-page="teacher"] .field select,
body[data-page="teacher"] .field textarea {
  min-height: 42px;
  border-color: var(--teacher-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teacher-ink);
  font-size: 13px;
}

body[data-page="teacher"] .field input::placeholder,
body[data-page="teacher"] .field textarea::placeholder {
  color: #6d7277;
}

body[data-page="teacher"] .field input:focus,
body[data-page="teacher"] .field select:focus,
body[data-page="teacher"] .field textarea:focus {
  border-color: var(--teacher-action);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(201, 78, 12, 0.16);
}

body[data-page="teacher"] .more-details {
  margin-top: 16px;
  border-top: 1px solid var(--teacher-line);
}

body[data-page="teacher"] .more-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teacher-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

body[data-page="teacher"] .more-details summary:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--teacher-ink);
  outline-offset: 3px;
}

body[data-page="teacher"] .more-details summary::-webkit-details-marker {
  display: none;
}

body[data-page="teacher"] .more-details summary::before {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teacher-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  content: "+";
  font-size: 14px;
  line-height: 1;
}

body[data-page="teacher"] .more-details[open] summary::before {
  content: "−";
}

body[data-page="teacher"] .more-details summary span {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(23, 25, 28, 0.055);
  color: var(--teacher-muted);
  font-size: 10px;
  font-weight: 700;
}

body[data-page="teacher"] .more-details .form-grid {
  padding: 2px 0 4px 28px;
}

body[data-page="teacher"] .btn {
  min-height: 40px;
  gap: 8px;
  padding: 0 16px;
  font-size: 12px;
}

body[data-page="teacher"] .btn-small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 11px;
}

body[data-page="teacher"] .btn-primary {
  background: var(--teacher-action);
  color: #fff;
}

body[data-page="teacher"] .btn-primary:hover {
  background: var(--teacher-action-hover);
}

body[data-page="teacher"] .btn-secondary {
  border-color: rgba(23, 25, 28, 0.15);
  background: rgba(255, 255, 255, 0.7);
}

body[data-page="teacher"] .text-button {
  min-height: 32px;
  padding: 0 4px;
  color: var(--teacher-orange-text);
  font-size: 12px;
}

body[data-page="teacher"] .form-actions {
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top-color: var(--teacher-line);
}

body[data-page="teacher"] .form-actions .btn-secondary {
  min-height: 38px;
  padding-inline: 14px;
}

body[data-page="teacher"] .form-actions .btn-primary {
  min-width: 170px;
  min-height: 46px;
  padding-inline: 22px;
  font-size: 13px;
}

body[data-page="teacher"] .ai-panel {
  top: 94px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 18px 44px rgba(23, 25, 28, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  backdrop-filter: blur(30px) saturate(1.35);
}

body[data-page="teacher"] .ai-panel-head {
  padding: 15px 17px;
  background: rgba(22, 23, 25, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-page="teacher"] .ai-title strong {
  font-size: 13px;
}

body[data-page="teacher"] .ai-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

body[data-page="teacher"] .demo-badge {
  font-size: 9px;
}

body[data-page="teacher"] .ai-empty {
  min-height: 226px;
  padding: 26px 20px;
}

body[data-page="teacher"] .ai-empty strong {
  font-size: 13px;
}

body[data-page="teacher"] .ai-result {
  padding: 16px;
}

body[data-page="teacher"] .detected-grid span,
body[data-page="teacher"] .ai-description-block > span {
  font-size: 9px;
}

body[data-page="teacher"] .detected-grid strong,
body[data-page="teacher"] .ai-description-block p,
body[data-page="teacher"] .owner-warning {
  font-size: 11px;
}

body[data-page="teacher"] .owner-card-head strong {
  font-size: 11px;
}

body[data-page="teacher"] .owner-card-head span,
body[data-page="teacher"] .owner-name-row span {
  font-size: 10px;
}

body[data-page="teacher"] .owner-notify-button {
  color: var(--teacher-orange-text);
}

body[data-page="teacher"] .match-pill,
body[data-page="teacher"] .claim-kicker {
  color: var(--teacher-orange-text);
}

body[data-page="teacher"] .recent-panel {
  margin-top: 18px;
  padding: 20px;
}

body[data-page="teacher"] .section-heading-compact {
  margin-bottom: 12px;
}

body[data-page="teacher"] .section-heading-compact h2 {
  font-size: 21px;
}

body[data-page="teacher"] .recent-item {
  grid-template-columns: 50px minmax(0, 1fr) minmax(110px, 0.45fr) auto;
  gap: 12px;
  padding: 11px 0;
  border-top-color: var(--teacher-line);
}

body[data-page="teacher"] .recent-thumb {
  width: 50px;
  height: 50px;
}

body[data-page="teacher"] .recent-main strong {
  font-size: 12px;
}

body[data-page="teacher"] .recent-main span,
body[data-page="teacher"] .recent-location {
  font-size: 10px;
}

body[data-page="teacher"] .workspace-panel {
  padding: 22px;
}

body[data-page="teacher"] .workspace-search {
  min-width: 260px;
  min-height: 42px;
  border-color: var(--teacher-line);
  background: rgba(255, 255, 255, 0.66);
}

body[data-page="teacher"] .workspace-search input {
  font-size: 12px;
}

body[data-page="teacher"] .inventory-row {
  border-top-color: var(--teacher-line);
}

body[data-page="teacher"] .inventory-main strong,
body[data-page="teacher"] .claim-person strong,
body[data-page="teacher"] .report-card h3 {
  font-size: 12px;
}

body[data-page="teacher"] .inventory-main span,
body[data-page="teacher"] .inventory-location,
body[data-page="teacher"] .inventory-storage,
body[data-page="teacher"] .inventory-code,
body[data-page="teacher"] .claim-person span,
body[data-page="teacher"] .report-card-header p,
body[data-page="teacher"] .report-description {
  font-size: 10px;
}

body[data-page="teacher"] .claim-card,
body[data-page="teacher"] .report-card {
  border-color: var(--teacher-line);
  background: rgba(255, 255, 255, 0.6);
}

body[data-page="teacher"] .claim-detail-grid span,
body[data-page="teacher"] .match-list-label {
  font-size: 9px;
}

body[data-page="teacher"] .claim-detail-grid strong,
body[data-page="teacher"] .match-row strong {
  font-size: 10px;
}

body[data-page="teacher"] .claim-actions .btn,
body[data-page="teacher"] .report-actions .btn {
  min-height: 34px;
  font-size: 10px;
}

body[data-page="teacher"] .toast {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(23, 25, 28, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

@media (max-width: 1100px) {
  body[data-page="teacher"] .teacher-dashboard-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="teacher"] .teacher-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
  }

  body[data-page="teacher"] .teacher-sidebar-heading {
    padding: 0 4px;
    border-bottom: 0;
  }

  body[data-page="teacher"] .teacher-sidebar-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    border-top: 0;
  }

  body[data-page="teacher"] .teacher-mini-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="teacher"] .teacher-demo-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  body[data-page="teacher"] .intake-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="teacher"] .ai-panel {
    position: static;
  }

  body[data-page="teacher"] .ai-empty {
    min-height: 190px;
  }
}

@media (max-width: 760px) {
  body[data-page="teacher"] .container {
    width: calc(100% - 32px);
  }

  body[data-page="teacher"] .header-inner {
    min-height: 68px;
    padding: 10px 0;
  }

  body[data-page="teacher"] .teacher-page-header {
    min-height: 60px;
    padding: 12px 15px;
  }

  body[data-page="teacher"] .teacher-page-header h1 {
    font-size: 30px;
  }

  body[data-page="teacher"] .form-panel,
  body[data-page="teacher"] .workspace-panel,
  body[data-page="teacher"] .recent-panel {
    padding: 17px;
  }

  body[data-page="teacher"] .form-actions {
    flex-direction: column;
  }

  body[data-page="teacher"] .form-actions .btn {
    width: 100%;
  }

  body[data-page="teacher"] .form-actions .btn-primary {
    min-height: 46px;
  }

  body[data-page="teacher"] .workspace-search {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 680px) {
  body[data-page="teacher"] .teacher-sidebar {
    grid-template-columns: 1fr;
  }

  body[data-page="teacher"] .teacher-demo-status {
    display: none;
  }

  body[data-page="teacher"] .teacher-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="teacher"] .teacher-sidebar .teacher-nav-item {
    min-height: 44px;
  }

  body[data-page="teacher"] .more-details .form-grid {
    padding-left: 0;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body[data-page="teacher"] .site-header,
  body[data-page="teacher"] .teacher-sidebar,
  body[data-page="teacher"] .teacher-page-header,
  body[data-page="teacher"] .ai-panel,
  body[data-page="teacher"] .toast {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body[data-page="teacher"] .teacher-page-header,
  body[data-page="teacher"] .teacher-sidebar,
  body[data-page="teacher"] .ai-panel {
    border-color: rgba(23, 25, 28, 0.2);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body[data-page="teacher"] .site-header,
  body[data-page="teacher"] .teacher-sidebar,
  body[data-page="teacher"] .teacher-page-header,
  body[data-page="teacher"] .ai-panel,
  body[data-page="teacher"] .toast {
    background: rgba(255, 255, 255, 0.96);
  }

  body[data-page="teacher"] .ai-panel-head {
    background: #161719;
  }
}

/* Student glass catalogue */
body[data-page="student"] {
  --student-bg: #eef0f2;
  --student-ink: #17191c;
  --student-muted: #62666b;
  --student-line: rgba(23, 25, 28, 0.11);
  --student-glass: rgba(255, 255, 255, 0.56);
  --student-action: #c94e0c;
  --student-action-hover: #b34408;
  --student-orange-text: #b34408;
  background-color: var(--student-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%2317191c' fill-opacity='.055'/%3E%3C/svg%3E");
  color: var(--student-ink);
  overflow-x: clip;
}

body[data-page="student"] .container {
  width: min(1240px, calc(100% - 48px));
}

body[data-page="student"] .site-header {
  background: rgba(247, 249, 250, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 1px 0 rgba(23, 25, 28, 0.055);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
}

body[data-page="student"] .header-inner {
  min-height: 74px;
}

body[data-page="student"] .brand-name {
  color: var(--student-ink);
}

body[data-page="student"] .brand-sub {
  color: var(--student-muted);
  font-size: 10px;
}

body[data-page="student"] .profile-name {
  color: var(--student-ink);
  font-size: 12px;
}

body[data-page="student"] .profile-name small {
  color: var(--student-muted);
  font-size: 10px;
}

body[data-page="student"] .student-dashboard {
  position: relative;
  isolation: isolate;
  padding: 20px 0 64px;
}

body[data-page="student"] .student-dashboard::before {
  position: absolute;
  top: 24px;
  right: 0;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 68px 0 0 68px;
  background: rgba(243, 112, 33, 0.065);
  content: "";
  pointer-events: none;
}

body[data-page="student"] .dashboard-heading {
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 18px;
}

body[data-page="student"] .dashboard-title h1 {
  margin: 0;
  color: var(--student-ink);
  font-size: clamp(39px, 4.6vw, 54px);
}

body[data-page="student"] .dashboard-tools {
  width: min(100%, 560px);
}

body[data-page="student"] .dashboard-search-row {
  gap: 10px;
}

body[data-page="student"] .dashboard-search {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 14px;
  padding: 5px 5px 5px 14px;
  background: var(--student-glass);
  box-shadow:
    0 10px 26px rgba(23, 25, 28, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
}

body[data-page="student"] .dashboard-search input {
  color: var(--student-ink);
  font-size: 13px;
}

body[data-page="student"] .dashboard-search input::placeholder {
  color: #6d7277;
}

body[data-page="student"] .dashboard-search button {
  min-height: 36px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 11px;
}

body[data-page="student"] .dashboard-report-button {
  min-height: 46px;
  border-radius: 14px;
  padding-inline: 18px;
  background: var(--student-action);
  color: #fff;
  font-size: 12px;
}

body[data-page="student"] .dashboard-report-button:hover {
  background: var(--student-action-hover);
}

body[data-page="student"] .dashboard-suggestions {
  gap: 7px;
  margin-top: 9px;
}

body[data-page="student"] .dashboard-suggestions > span {
  color: var(--student-muted);
  font-size: 10px;
}

body[data-page="student"] .dashboard-suggestions button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--student-muted);
  font-size: 11px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body[data-page="student"] .dashboard-suggestions button:hover {
  border-color: rgba(23, 25, 28, 0.16);
  color: var(--student-ink);
}

body[data-page="student"] .filter-tabs-card {
  overflow: visible;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 14px 34px rgba(23, 25, 28, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(26px) saturate(1.32);
  backdrop-filter: blur(26px) saturate(1.32);
}

body[data-page="student"] .filter-tabs-top {
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

body[data-page="student"] .filter-tabs {
  gap: 6px;
}

body[data-page="student"] .filter-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 13px;
  color: var(--student-muted);
  font-size: 11px;
}

body[data-page="student"] .filter-tab:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.56);
  color: var(--student-ink);
}

body[data-page="student"] .filter-tab.active {
  border-color: rgba(23, 25, 28, 0.94);
  background: rgba(23, 25, 28, 0.94);
  color: #fff;
}

body[data-page="student"] .sort-dropdown {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
}

body[data-page="student"] .sort-dropdown-trigger {
  display: inline-flex;
  min-width: 158px;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 11px;
  padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 6px 16px rgba(23, 25, 28, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--student-muted);
  font-size: 10px;
  text-align: left;
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

body[data-page="student"] .sort-dropdown-trigger:hover {
  border-color: rgba(23, 25, 28, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

body[data-page="student"] .sort-dropdown-trigger strong {
  color: var(--student-ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="student"] .sort-dropdown-trigger svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  transition: transform 160ms ease;
}

body[data-page="student"] .sort-dropdown-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

body[data-page="student"] .sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 6px;
  background: rgba(247, 249, 250, 0.72);
  box-shadow:
    0 18px 46px rgba(23, 25, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
}

body[data-page="student"] .sort-dropdown-menu[hidden] {
  display: none;
}

body[data-page="student"] .sort-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 11px;
  background: transparent;
  color: var(--student-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

body[data-page="student"] .sort-option:hover,
body[data-page="student"] .sort-option:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--student-ink);
  outline: 0;
}

body[data-page="student"] .sort-option.active {
  background: rgba(23, 25, 28, 0.94);
  color: #fff;
}

body[data-page="student"] .filter-tabs-top .sort-control {
  padding-bottom: 0;
  color: var(--student-muted);
  font-size: 11px;
}

body[data-page="student"] .filter-tabs-top .sort-control select {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

body[data-page="student"] .filter-results-bar {
  overflow: hidden;
  border-top-color: var(--student-line);
  border-radius: 0 0 18px 18px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--student-muted);
  font-size: 11px;
}

body[data-page="student"] .filter-results-bar span:first-child {
  color: var(--student-ink);
}

body[data-page="student"] .item-grid {
  gap: 16px;
}

body[data-page="student"] .item-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow:
    0 12px 30px rgba(23, 25, 28, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body[data-page="student"] .item-card:hover {
  border-color: rgba(23, 25, 28, 0.16);
}

body[data-page="student"] .item-image {
  margin: 10px 10px 0;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 17px;
  background: #e9e7e3;
  box-shadow:
    0 5px 16px rgba(23, 25, 28, 0.08),
    0 0 0 1px rgba(23, 25, 28, 0.055);
}

body[data-page="student"] .item-image img {
  border-radius: 12px;
}

body[data-page="student"] .item-body {
  gap: 10px;
  padding: 14px 16px 16px;
}

body[data-page="student"] .item-category,
body[data-page="student"] .item-status {
  font-size: 10px;
}

body[data-page="student"] .item-title {
  margin-top: 1px;
  font-size: 17px;
  line-height: 1.25;
}

body[data-page="student"] .meta-line {
  line-height: 1.35;
  font-size: 11px;
}

body[data-page="student"] .btn-card {
  min-height: 40px;
  border-radius: 10px;
  border-color: rgba(23, 25, 28, 0.14);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

body[data-page="student"] .btn-card:hover {
  border-color: var(--student-ink);
  background: var(--student-ink);
  color: #fff;
}

body[data-page="student"] .empty-state {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(23, 25, 28, 0.045);
}

body[data-page="student"] .modal::backdrop {
  background: rgba(23, 25, 28, 0.42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

body[data-page="student"] .modal-shell {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 80px rgba(23, 25, 28, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(34px) saturate(1.28);
  backdrop-filter: blur(34px) saturate(1.28);
}

body[data-page="student"] .modal-close {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body[data-page="student"] .modal-heading {
  padding: 28px 30px 0;
}

body[data-page="student"] .modal-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(29px, 3.6vw, 36px);
}

body[data-page="student"] .modal-heading > p:not(.eyebrow) {
  font-size: 12px;
}

body[data-page="student"] .report-form {
  padding: 22px 30px 30px;
}

body[data-page="student"] .field > span {
  color: var(--student-ink);
  font-size: 12px;
}

body[data-page="student"] .field input,
body[data-page="student"] .field select,
body[data-page="student"] .field textarea {
  min-height: 42px;
  border-color: var(--student-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

body[data-page="student"] .field input::placeholder,
body[data-page="student"] .field textarea::placeholder {
  color: #6d7277;
}

body[data-page="student"] .field input:focus,
body[data-page="student"] .field select:focus,
body[data-page="student"] .field textarea:focus {
  border-color: var(--student-action);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(201, 78, 12, 0.16);
}

body[data-page="student"] .private-note {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.45);
}

body[data-page="student"] .modal-actions {
  align-items: center;
}

body[data-page="student"] .modal-actions .btn-secondary {
  min-height: 38px;
}

body[data-page="student"] .modal-actions .btn-primary {
  min-width: 160px;
  min-height: 46px;
  background: var(--student-action);
  color: #fff;
  font-size: 13px;
}

body[data-page="student"] .modal-actions .btn-primary:hover {
  background: var(--student-action-hover);
}

body[data-page="student"] .item-dialog-content {
  padding: 30px;
}

body[data-page="student"] .item-dialog-title {
  font-size: 32px;
}

body[data-page="student"] .item-dialog-desc {
  font-size: 12px;
}

body[data-page="student"] .detail-row span,
body[data-page="student"] .detail-row strong {
  font-size: 11px;
}

body[data-page="student"] .claim-kicker {
  color: var(--student-orange-text);
  font-size: 9px;
}

body[data-page="student"] .claim-panel,
body[data-page="student"] .claim-status-panel {
  background: rgba(255, 255, 255, 0.5);
}

body[data-page="student"] .claim-panel > p:not(.claim-kicker, .claim-error),
body[data-page="student"] .claim-status-panel p {
  font-size: 11px;
}

body[data-page="student"] .claim-input span,
body[data-page="student"] .claim-option {
  font-size: 11px;
}

body[data-page="student"] .claim-input input {
  min-height: 40px;
  font-size: 12px;
}

body[data-page="student"] .toast {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(23, 25, 28, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

@media (min-width: 861px) {
  body[data-page="student"] .filter-tabs-card {
    position: sticky;
    top: 84px;
    z-index: 20;
  }
}

@media (max-width: 860px) {
  body[data-page="student"] .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  body[data-page="student"] .dashboard-tools {
    width: 100%;
  }

  body[data-page="student"] .dashboard-suggestions {
    justify-content: flex-start;
  }

  body[data-page="student"] .filter-tabs-card {
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 700px) {
  body[data-page="student"] .filter-tabs-top {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  body[data-page="student"] .filter-tabs {
    width: 100%;
  }

  body[data-page="student"] .filter-tabs-top .sort-control {
    align-self: flex-end;
    padding: 0;
    border: 0;
  }

  body[data-page="student"] .sort-dropdown {
    align-self: flex-end;
  }
}

@media (max-width: 560px) {
  body[data-page="student"] .container {
    width: calc(100% - 32px);
  }

  body[data-page="student"] .header-inner {
    min-height: 68px;
    padding: 10px 0;
  }

  body[data-page="student"] .student-dashboard {
    padding-top: 16px;
  }

  body[data-page="student"] .dashboard-title h1 {
    font-size: 38px;
  }

  body[data-page="student"] .dashboard-search-row {
    flex-direction: column;
  }

  body[data-page="student"] .dashboard-report-button {
    width: 100%;
  }

  body[data-page="student"] .filter-tabs-top .sort-control {
    align-self: stretch;
    justify-content: space-between;
  }

  body[data-page="student"] .filter-tabs-top .sort-control select {
    flex: 1;
  }

  body[data-page="student"] .sort-dropdown {
    align-self: stretch;
  }

  body[data-page="student"] .sort-dropdown-trigger {
    width: 100%;
  }

  body[data-page="student"] .sort-dropdown-menu {
    width: 100%;
  }

  body[data-page="student"] .modal-heading,
  body[data-page="student"] .report-form {
    padding-right: 20px;
    padding-left: 20px;
  }

  body[data-page="student"] .modal-actions {
    flex-direction: column-reverse;
  }

  body[data-page="student"] .modal-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body[data-page="student"] .site-header,
  body[data-page="student"] .dashboard-search,
  body[data-page="student"] .dashboard-suggestions button,
  body[data-page="student"] .filter-tabs-card,
  body[data-page="student"] .sort-dropdown-trigger,
  body[data-page="student"] .sort-dropdown-menu,
  body[data-page="student"] .modal-shell,
  body[data-page="student"] .toast {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body[data-page="student"] .filter-tabs-card,
  body[data-page="student"] .sort-dropdown-trigger,
  body[data-page="student"] .sort-dropdown-menu,
  body[data-page="student"] .dashboard-search,
  body[data-page="student"] .modal-shell {
    border-color: rgba(23, 25, 28, 0.2);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body[data-page="student"] .site-header,
  body[data-page="student"] .dashboard-search,
  body[data-page="student"] .dashboard-suggestions button,
  body[data-page="student"] .filter-tabs-card,
  body[data-page="student"] .sort-dropdown-trigger,
  body[data-page="student"] .sort-dropdown-menu,
  body[data-page="student"] .modal-shell,
  body[data-page="student"] .toast {
    background: rgba(255, 255, 255, 0.96);
  }
}

/* Teacher photo-first intake */
body[data-page="teacher"] .photo-intake {
  overflow: hidden;
}

body[data-page="teacher"] .intake-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--teacher-line);
}

body[data-page="teacher"] .intake-hero h2 {
  margin: 2px 0 0;
  color: var(--teacher-ink);
  font-size: clamp(27px, 3vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

body[data-page="teacher"] .intake-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--teacher-muted);
  font-size: 13px;
  line-height: 1.55;
}

body[data-page="teacher"] .ai-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  border: 1px solid rgba(201, 78, 12, 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(201, 78, 12, 0.08);
  color: var(--teacher-orange-text);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="teacher"] .ai-mode-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teacher-action);
  box-shadow: 0 0 0 4px rgba(201, 78, 12, 0.12);
}

body[data-page="teacher"] .intake-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 14px;
}

body[data-page="teacher"] .step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(23, 25, 28, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teacher-ink);
  font-family: var(--font-label);
  font-size: 12px;
}

body[data-page="teacher"] .intake-step-heading h3 {
  margin: 2px 0 0;
  color: var(--teacher-ink);
  font-size: 16px;
  letter-spacing: -0.025em;
}

body[data-page="teacher"] .intake-step-heading p {
  margin: 3px 0 0;
  color: var(--teacher-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-page="teacher"] .photo-intake .upload-zone {
  margin-bottom: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(201, 78, 12, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.46);
}

body[data-page="teacher"] .photo-intake .upload-empty strong {
  font-size: 15px;
}

body[data-page="teacher"] .photo-intake .upload-empty > span:not(.upload-icon) {
  margin-top: 4px;
  color: var(--teacher-muted);
  font-size: 11px;
}

body[data-page="teacher"] .photo-intake .upload-actions {
  margin-top: 16px;
}

body[data-page="teacher"] .analysis-progress {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  border: 1px solid rgba(201, 78, 12, 0.18);
  border-radius: 13px;
  padding: 13px 15px;
  background: rgba(201, 78, 12, 0.065);
}

body[data-page="teacher"] .analysis-progress[hidden] {
  display: none;
}

body[data-page="teacher"] .analysis-spinner {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 2px solid rgba(201, 78, 12, 0.2);
  border-top-color: var(--teacher-action);
  border-radius: 50%;
  animation: intake-spin 720ms linear infinite;
}

body[data-page="teacher"] .analysis-progress div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-page="teacher"] .analysis-progress strong {
  color: var(--teacher-ink);
  font-size: 12px;
}

body[data-page="teacher"] .analysis-progress div span {
  color: var(--teacher-muted);
  font-size: 10px;
}

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

body[data-page="teacher"] .ai-review-card {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 28, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 243, 237, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body[data-page="teacher"] .ai-review-card[hidden] {
  display: none;
}

body[data-page="teacher"] .ai-review-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  background: rgba(23, 25, 28, 0.95);
  color: #fff;
}

body[data-page="teacher"] .ai-review-head > div {
  min-width: 0;
  flex: 1;
}

body[data-page="teacher"] .ai-review-head .eyebrow {
  margin: 0 0 2px;
  color: #c5c0b8;
}

body[data-page="teacher"] .ai-review-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

body[data-page="teacher"] .ai-review-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--teacher-action);
  font-family: var(--font-label);
  font-size: 11px;
}

body[data-page="teacher"] .ai-review-status {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  color: #d8d3cb;
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-page="teacher"] .ai-detected-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid var(--teacher-line);
  border-radius: 12px;
  background: var(--teacher-line);
}

body[data-page="teacher"] .ai-detected-summary div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.72);
}

body[data-page="teacher"] .ai-detected-summary span,
body[data-page="teacher"] .auto-details-grid span {
  color: var(--teacher-muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-page="teacher"] .ai-detected-summary strong {
  color: var(--teacher-ink);
  font-size: 13px;
}

body[data-page="teacher"] .ai-description-field {
  margin: 14px 16px 0;
}

body[data-page="teacher"] .ai-description-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="teacher"] .ai-description-field small {
  color: var(--teacher-muted);
  font-size: 10px;
  font-weight: 600;
}

body[data-page="teacher"] .owner-match-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 0;
  border: 1px solid rgba(39, 122, 83, 0.18);
  border-radius: 13px;
  padding: 13px;
  background: rgba(39, 122, 83, 0.075);
}

body[data-page="teacher"] .owner-match-card.no-match {
  border-color: rgba(23, 25, 28, 0.1);
  background: rgba(23, 25, 28, 0.035);
}

body[data-page="teacher"] .owner-match-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  color: #277a53;
  font-size: 15px;
  font-weight: 800;
}

body[data-page="teacher"] .owner-match-card.no-match .owner-match-icon {
  color: var(--teacher-muted);
}

body[data-page="teacher"] .owner-match-copy {
  min-width: 0;
  flex: 1;
}

body[data-page="teacher"] .owner-match-copy .eyebrow {
  margin: 0 0 3px;
  color: #277a53;
}

body[data-page="teacher"] .owner-match-card.no-match .owner-match-copy .eyebrow {
  color: var(--teacher-muted);
}

body[data-page="teacher"] .owner-match-copy strong {
  display: block;
  color: var(--teacher-ink);
  font-size: 13px;
}

body[data-page="teacher"] .owner-match-copy p {
  margin: 3px 0 0;
  color: var(--teacher-muted);
  font-size: 10px;
  line-height: 1.45;
}

body[data-page="teacher"] .email-status {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: #277a53;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="teacher"] .owner-match-card.no-match .email-status {
  background: rgba(23, 25, 28, 0.1);
  color: var(--teacher-muted);
}

body[data-page="teacher"] .auto-fill-note {
  margin: 13px 16px 16px;
  color: var(--teacher-muted);
  font-size: 10px;
}

body[data-page="teacher"] .intake-location-step {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--teacher-line);
}

body[data-page="teacher"] .found-location-field {
  max-width: 620px;
}

body[data-page="teacher"] .auto-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 13px;
  border: 1px solid var(--teacher-line);
  border-radius: 12px;
  background: var(--teacher-line);
}

body[data-page="teacher"] .auto-details-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.64);
}

body[data-page="teacher"] .auto-details-grid strong {
  color: var(--teacher-ink);
  font-size: 11px;
  line-height: 1.35;
}

body[data-page="teacher"] .intake-submit-row {
  justify-content: space-between;
}

body[data-page="teacher"] .intake-ready-hint {
  max-width: 520px;
  color: var(--teacher-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-page="teacher"] .intake-submit-row .btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 760px) {
  body[data-page="teacher"] .intake-hero {
    flex-direction: column;
    gap: 14px;
  }

  body[data-page="teacher"] .ai-detected-summary,
  body[data-page="teacher"] .auto-details-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="teacher"] .owner-match-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body[data-page="teacher"] .email-status {
    margin-left: 46px;
  }

  body[data-page="teacher"] .intake-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="teacher"] .intake-submit-row .btn-primary {
    width: 100%;
  }
}

/* Student availability filter */
body[data-page="student"] .filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body[data-page="student"] .filter-controls .sort-dropdown {
  align-self: center;
}

body[data-page="student"] .availability-dropdown .sort-dropdown-trigger {
  min-width: 176px;
}

@media (max-width: 700px) {
  body[data-page="student"] .filter-controls {
    align-self: flex-end;
  }
}

@media (max-width: 560px) {
  body[data-page="student"] .filter-controls {
    width: 100%;
    align-self: stretch;
  }

  body[data-page="student"] .filter-controls .sort-dropdown {
    flex: 1;
    min-width: 0;
  }

  body[data-page="student"] .filter-controls .sort-dropdown-trigger {
    width: 100%;
    min-width: 0;
  }
}

/* Student item details and one-time ownership check */
body[data-page="student"] .item-card-clickable {
  cursor: pointer;
}

body[data-page="student"] .item-card-clickable:focus-visible {
  outline: 3px solid rgba(201, 78, 12, 0.32);
  outline-offset: 3px;
}

body[data-page="student"] .item-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--student-line);
  color: var(--student-ink);
  font-size: 11px;
  font-weight: 800;
}

body[data-page="student"] .item-card-cta span {
  color: var(--student-orange-text);
  font-size: 15px;
  transition: transform 160ms ease;
}

body[data-page="student"] .item-card-clickable:hover .item-card-cta span {
  transform: translateX(3px);
}

body[data-page="student"] .claim-cta-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  border: 1px solid var(--student-line);
  border-radius: 14px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.52);
}

body[data-page="student"] .claim-cta-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(201, 78, 12, 0.1);
  color: var(--student-orange-text);
  font-size: 17px;
  font-weight: 800;
}

body[data-page="student"] .claim-cta-panel h3 {
  margin: 4px 0 3px;
  color: var(--student-ink);
  font-size: 15px;
}

body[data-page="student"] .claim-cta-panel p:not(.claim-kicker) {
  margin: 0;
  color: var(--student-muted);
  font-size: 11px;
  line-height: 1.5;
}

body[data-page="student"] .claim-cta-panel .btn {
  min-width: 126px;
  background: var(--student-action);
  color: #fff;
}

body[data-page="student"] .claim-form-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 34px;
}

body[data-page="student"] .claim-item-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid var(--student-line);
  border-radius: 13px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
}

body[data-page="student"] .claim-item-summary img {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

body[data-page="student"] .claim-item-summary div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body[data-page="student"] .claim-item-summary strong {
  color: var(--student-ink);
  font-size: 13px;
}

body[data-page="student"] .claim-item-summary span {
  color: var(--student-muted);
  font-size: 10px;
}

body[data-page="student"] .claim-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-page="student"] .claim-attempt-warning {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(201, 78, 12, 0.18);
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(201, 78, 12, 0.07);
}

body[data-page="student"] .claim-attempt-warning strong {
  color: var(--student-orange-text);
  font-size: 11px;
}

body[data-page="student"] .claim-attempt-warning span {
  color: var(--student-muted);
  font-size: 10px;
  line-height: 1.5;
}

body[data-page="student"] .claim-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--student-line);
}

body[data-page="student"] .claim-form-actions .btn-primary {
  min-width: 178px;
  background: var(--student-action);
  color: #fff;
}

body[data-page="student"] .claim-human-link {
  color: var(--student-muted);
  text-align: left;
}

body[data-page="student"] .claim-window-pill {
  display: inline-flex;
  margin-top: 11px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(201, 78, 12, 0.1);
  color: var(--student-orange-text);
  font-size: 9px;
  font-weight: 800;
}

body[data-page="student"] .claim-status-ready {
  border-color: rgba(39, 122, 83, 0.2);
  background: rgba(39, 122, 83, 0.07);
}

body[data-page="student"] .claim-help-button {
  margin-top: 12px;
}

body[data-page="student"] .claim-window-card {
  width: min(100%, 420px);
  margin: 22px auto 0;
  border: 1px solid rgba(201, 78, 12, 0.2);
  border-radius: 14px;
  padding: 15px;
  background: rgba(201, 78, 12, 0.07);
}

body[data-page="student"] .claim-window-card > span {
  color: var(--student-orange-text);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="student"] .claim-window-card strong {
  display: block;
  margin-top: 4px;
  color: var(--student-ink);
  font-size: 20px;
  letter-spacing: -0.035em;
}

body[data-page="student"] .claim-window-card p {
  margin: 4px 0 0;
  color: var(--student-muted);
  font-size: 11px;
}

body[data-page="student"] .claim-help-card {
  max-width: 460px;
  margin: 22px auto 0;
  border: 1px solid var(--student-line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.52);
}

body[data-page="student"] .claim-help-card strong {
  color: var(--student-ink);
  font-size: 14px;
}

body[data-page="student"] .claim-help-card p {
  margin: 5px 0 13px;
  color: var(--student-muted);
  font-size: 11px;
  line-height: 1.55;
}

body[data-page="student"] .failure-mark,
body[data-page="student"] .help-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(201, 78, 12, 0.12);
  color: var(--student-orange-text);
  font-size: 24px;
  font-weight: 800;
}

body[data-page="student"] .claim-failure .btn-primary,
body[data-page="student"] .claim-help-success .btn-primary {
  background: var(--student-action);
  color: #fff;
}

body[data-page="student"] .claim-failure > .text-button {
  margin-top: 16px;
}

@media (max-width: 700px) {
  body[data-page="student"] .claim-cta-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-page="student"] .claim-cta-panel .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  body[data-page="student"] .claim-form-shell {
    padding: 26px 22px;
  }

  body[data-page="student"] .claim-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body[data-page="student"] .claim-form-actions .btn-primary {
    width: 100%;
  }
}
