.app-shell {
  background:
    linear-gradient(180deg, rgba(8, 11, 12, 0.72), var(--page) 520px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
}

.app-main {
  padding-top: 128px;
  padding-bottom: 72px;
}

.is-hidden {
  display: none !important;
}

.session-label {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ Auth ============ */
.auth-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
  min-height: calc(100svh - 210px);
}

.auth-copy {
  max-width: 820px;
}

.auth-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5.7rem);
}

.auth-copy p {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.55;
}

.auth-panel,
.work-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(13, 18, 19, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel {
  padding: clamp(20px, 3vw, 30px);
}

.app-form {
  display: grid;
  gap: 16px;
}

.app-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.app-form textarea {
  min-height: 98px;
  padding-block: 12px;
  resize: vertical;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  border-color: rgba(56, 214, 189, 0.66);
  box-shadow: 0 0 0 3px rgba(56, 214, 189, 0.12);
}

.code-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============ App layout: sidebar + views ============ */
.app-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(13, 18, 19, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.side-links {
  display: grid;
  gap: 4px;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 140ms ease, color 140ms ease;
}

.side-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.side-link.is-active {
  color: var(--ink);
  background: rgba(255, 106, 33, 0.14);
  box-shadow: inset 2px 0 0 var(--orange);
}

.nav-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 214, 189, 0.16);
  border: 1px solid rgba(56, 214, 189, 0.4);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.side-foot {
  display: grid;
  gap: 6px;
  padding: 12px 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.side-foot strong {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.side-home {
  margin-top: 6px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
}

.side-home:hover {
  color: var(--teal);
}

.panel-kicker {
  display: block;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.view-stack {
  display: grid;
  min-width: 0;
}

.app-view {
  display: grid;
  gap: 18px;
  align-content: start;
}

.view-head {
  margin-bottom: 4px;
}

.view-head h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
}

.view-sub {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.work-panel {
  padding: clamp(18px, 2vw, 24px);
}

.work-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.split-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stack-panels {
  display: grid;
  gap: 18px;
  align-content: start;
}

.compact-form {
  gap: 14px;
}

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

/* ============ Overview ============ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(13, 18, 19, 0.84);
  box-shadow: var(--shadow);
}

.stat-card strong {
  color: var(--green);
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-card span {
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card em {
  color: var(--steel);
  font-size: 0.78rem;
  font-style: normal;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checklist {
  display: grid;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.check-item:hover {
  border-color: rgba(56, 214, 189, 0.45);
  background: rgba(56, 214, 189, 0.05);
}

.check-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--page);
  font-size: 0.8rem;
  font-weight: 900;
}

.check-item.is-done .check-dot {
  background: var(--teal);
  border-color: var(--teal);
}

.check-body {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.check-body strong {
  font-size: 0.92rem;
}

.check-item.is-done .check-body strong {
  color: var(--muted);
  text-decoration: line-through;
}

.check-body em {
  color: var(--steel);
  font-size: 0.8rem;
  font-style: normal;
}

.check-go {
  color: var(--steel);
  font-weight: 900;
}

/* ============ Pipeline ============ */
.pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pipe-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pipe-chip strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.pipe-chip.pipe-connected strong {
  color: var(--teal);
}

.pipe-chip.pipe-closed strong {
  color: var(--steel);
}

/* ============ Lists + cards ============ */
.match-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.match-item,
.admin-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.match-item header,
.admin-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.match-item h3,
.admin-item h3 {
  margin: 0;
}

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

.match-item p,
.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reason-row span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 800;
}

.form-status {
  min-height: 22px;
}

.sample-note {
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid rgba(117, 167, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(117, 167, 255, 0.08);
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.verify-status {
  margin: 0 0 14px;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 700;
}

.verify-status.is-verified {
  color: var(--teal);
}

.button-mini {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.8rem;
  justify-self: start;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
  white-space: nowrap;
}

.status-open {
  color: var(--green);
  border-color: rgba(169, 232, 92, 0.4);
}

.status-filled {
  color: var(--teal);
  border-color: rgba(56, 214, 189, 0.4);
}

.status-closed {
  color: var(--steel);
}

.status-verified {
  color: var(--teal);
  border-color: rgba(56, 214, 189, 0.4);
}

/* ============ Profile: completeness + docs ============ */
.completeness {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(56, 214, 189, 0.3);
  border-radius: var(--radius);
  background: rgba(56, 214, 189, 0.06);
}

.completeness-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.completeness-head span {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.completeness-head strong {
  color: var(--teal);
  font-size: 1.1rem;
}

.completeness-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.completeness-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 400ms ease;
}

.completeness-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.doc-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.doc-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

#docUpload input[type="file"] {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 100%;
}

.doc-link {
  padding: 6px 8px;
  border: 1px solid rgba(56, 214, 189, 0.35);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
}

/* ============ Projects: role lines + crew ============ */
.role-lines {
  display: grid;
  gap: 8px;
}

.role-line {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 86px 40px;
  gap: 8px;
  align-items: center;
}

.role-line select,
.role-line input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 10px;
}

.role-line button {
  min-height: 42px;
  padding-inline: 0;
}

.check-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--orange);
}

.crew-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(56, 214, 189, 0.35);
  border-radius: var(--radius);
  background: rgba(56, 214, 189, 0.06);
}

.crew-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.crew-card h3 {
  margin: 0;
}

.crew-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.crew-member {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 3px;
}

.crew-member span {
  color: var(--muted);
  font-size: 0.78rem;
}

.role-match-heading {
  margin: 16px 0 8px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ Account ============ */
.account-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.account-row span {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-row strong {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.share-block p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.danger-panel {
  border-color: rgba(255, 106, 33, 0.3);
}

.danger-button {
  border-color: rgba(255, 106, 33, 0.5);
  color: var(--orange);
}

.danger-button.is-armed {
  background: rgba(255, 106, 33, 0.16);
  border-color: var(--orange);
}

/* ============ Admin ============ */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

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

.admin-tab.is-active {
  color: var(--page);
  background: var(--teal);
  border-color: var(--teal);
}

.admin-pane {
  display: grid;
  gap: 18px;
}

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

.admin-stats article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.admin-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 1.7rem;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.admin-kpis article {
  padding: 12px 14px;
  border: 1px solid rgba(255, 106, 33, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 106, 33, 0.05);
  display: grid;
  gap: 2px;
}

.admin-kpis strong {
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.admin-kpis span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-kpis em {
  color: var(--steel);
  font-size: 0.72rem;
  font-style: normal;
}

.admin-funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.funnel-stage {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.funnel-stage strong {
  color: var(--green);
  font-size: 1.25rem;
}

.funnel-arrow {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-channels span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-channels .channels-label {
  border: none;
  background: none;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-chart-wrap {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.admin-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 96px;
}

.chart-col {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: end;
}

.chart-col span {
  width: 100%;
  max-width: 34px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--teal), rgba(56, 214, 189, 0.25));
}

.chart-col.is-empty span {
  background: rgba(255, 255, 255, 0.08);
}

.chart-col label {
  color: var(--steel);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-columns h3 {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-export {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Autopilot: intake chat, confirm card, queue ============ */
.chat-log {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin-bottom: 12px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-msg.is-assistant {
  justify-self: start;
  background: rgba(56, 214, 189, 0.1);
  border: 1px solid rgba(56, 214, 189, 0.25);
}

.chat-msg.is-user {
  justify-self: end;
  background: rgba(255, 106, 33, 0.12);
  border: 1px solid rgba(255, 106, 33, 0.3);
}

.intake-row {
  display: flex;
  gap: 8px;
}

.intake-row input {
  flex: 1;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.intake-row input:focus {
  border-color: rgba(56, 214, 189, 0.66);
}

.confirm-card {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(56, 214, 189, 0.4);
  border-radius: var(--radius);
  background: rgba(56, 214, 189, 0.07);
}

.confirm-card h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.draft-subject,
.draft-body {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 9px 11px;
}

.draft-body {
  resize: vertical;
  line-height: 1.45;
}

.interested-block {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(169, 232, 92, 0.3);
  border-radius: var(--radius);
  background: rgba(169, 232, 92, 0.05);
}

.interested-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  border: 1px solid rgba(56, 214, 189, 0.45);
  border-radius: 999px;
  background: rgba(13, 18, 19, 0.96);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.toast.is-error {
  border-color: rgba(255, 106, 33, 0.6);
  color: var(--orange);
}

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .split-panels,
  .overview-grid,
  .admin-columns {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .app-nav {
    display: none;
  }

  .auth-view {
    grid-template-columns: 1fr;
  }

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

  .side-nav {
    position: static;
    padding: 8px;
  }

  .side-links {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .side-links::-webkit-scrollbar {
    display: none;
  }

  .side-link {
    flex: none;
    min-height: 38px;
    white-space: nowrap;
  }

  .side-link.is-active {
    box-shadow: inset 0 -2px 0 var(--orange);
  }

  .side-foot {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-main {
    width: min(100% - 28px, var(--content-max));
    padding-top: 104px;
  }

  .app-topbar {
    width: calc(100% - 28px);
  }

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

  .stat-cards,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-label {
    display: none;
  }

  .chart-col label {
    display: none;
  }

  .role-line {
    grid-template-columns: 1fr 1fr;
  }
}
