:root {
  color-scheme: dark;
  --ink: #eff7ff;
  --muted: #8bb4cf;
  --navy-950: #03101d;
  --navy-900: #06192d;
  --navy-850: #08223d;
  --navy-800: #0d2d50;
  --panel: #07182c;
  --panel-soft: #0d2540;
  --line: #295276;
  --line-bright: #4aa3d8;
  --emerald: #38d16d;
  --emerald-soft: #164d39;
  --gold: #f4bf45;
  --cyan: #45c7ff;
  --purple: #a875ff;
  --orange: #ff9e4f;
  --rose: #ff75a7;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --pixel-border: 2px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #010713;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Consolas, monospace;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(74, 163, 216, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(74, 163, 216, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(56, 209, 109, 0.16), transparent 22rem),
    radial-gradient(circle at 80% 15%, rgba(69, 199, 255, 0.12), transparent 20rem),
    #010713;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  width: min(1720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  border-inline: 1px solid rgba(74, 163, 216, 0.2);
  background: rgba(1, 7, 19, 0.78);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 18px 16px;
  border-right: var(--pixel-border) solid #173a5c;
  background:
    linear-gradient(180deg, rgba(8, 34, 61, 0.95), rgba(3, 16, 29, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.22);
}

.brand-block {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.brand-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  color: var(--cyan);
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background: #05223c;
  box-shadow:
    inset 0 0 0 5px rgba(69, 199, 255, 0.1),
    0 0 0 2px rgba(56, 209, 109, 0.25);
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  background: var(--emerald);
  box-shadow:
    12px 0 0 var(--emerald),
    24px 0 0 var(--emerald),
    36px 0 0 var(--emerald);
}

.brand-orbit::before {
  top: -8px;
  left: 10px;
}

.brand-orbit::after {
  bottom: -8px;
  right: 10px;
}

.brand-orbit span {
  font-size: 1.15rem;
  font-weight: 900;
}

.brand-kicker,
.brand-subtitle,
.panel-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-block h1 {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.brand-block h1 span {
  color: var(--emerald);
}

.nav-menu {
  display: grid;
  gap: 10px;
}

.nav-item,
.mode-button,
.bell-button {
  border: 0;
  color: var(--ink);
  background: transparent;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: #d6efff;
}

.nav-item::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-left: 8px solid rgba(69, 199, 255, 0.72);
  opacity: 0;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  border-color: #1f6fa5;
  background: linear-gradient(90deg, rgba(30, 117, 185, 0.85), rgba(12, 50, 87, 0.52));
  outline: 0;
  box-shadow:
    inset 0 0 0 1px rgba(69, 199, 255, 0.42),
    0 8px 0 rgba(0, 0, 0, 0.18);
}

.nav-item.is-active::after {
  opacity: 1;
}

.nav-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  color: #fff6d0;
}

.icon-home::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 22px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(0 38%, 50% 0, 100% 38%, 100% 100%, 62% 100%, 62% 62%, 38% 62%, 38% 100%, 0 100%);
}

.icon-team::before,
.icon-team::after {
  content: "";
  position: absolute;
  border-radius: 50% 50% 35% 35%;
  background: currentColor;
}

.icon-team::before {
  left: 11px;
  top: 3px;
  width: 10px;
  height: 11px;
  box-shadow: -10px 7px 0 -1px currentColor, 10px 7px 0 -1px currentColor;
}

.icon-team::after {
  left: 6px;
  bottom: 3px;
  width: 20px;
  height: 13px;
  border-radius: 6px 6px 2px 2px;
}

.icon-crown::before {
  content: "";
  position: absolute;
  inset: 6px 2px 7px;
  background: currentColor;
  clip-path: polygon(0 42%, 18% 62%, 31% 10%, 50% 52%, 69% 10%, 82% 62%, 100% 42%, 90% 100%, 10% 100%);
}

.icon-board::before {
  content: "";
  position: absolute;
  inset: 4px 3px 8px;
  border: 4px solid currentColor;
}

.icon-board::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 4px;
  background: currentColor;
}

.icon-book::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 3px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.18);
}

.icon-spark::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 35%, 100% 38%, 66% 59%, 77% 100%, 50% 73%, 23% 100%, 34% 59%, 0 38%, 40% 35%);
}

.icon-gear::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 8px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -8px 0 -4px currentColor,
    0 8px 0 -4px currentColor,
    -8px 0 0 -4px currentColor,
    8px 0 0 -4px currentColor;
}

.school-status {
  margin-top: auto;
  padding: 16px;
  border: 2px solid #866c36;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23, 32, 45, 0.96), rgba(7, 20, 35, 0.96)),
    repeating-linear-gradient(90deg, rgba(244, 191, 69, 0.06) 0 2px, transparent 2px 10px);
  box-shadow:
    inset 0 0 0 1px rgba(244, 191, 69, 0.24),
    0 10px 0 rgba(0, 0, 0, 0.16);
}

.school-status strong {
  display: block;
  margin-top: 6px;
  color: #95e76f;
  font-size: 1.22rem;
}

.school-status dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.school-status dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 180, 207, 0.25);
}

.school-status dt,
.school-status dd {
  margin: 0;
}

.school-status dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.school-status dd {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
}

.dashboard {
  min-width: 0;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 2px solid #173a5c;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(6, 25, 45, 0.96), rgba(3, 16, 29, 0.94));
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
}

.title-block {
  display: grid;
  align-content: center;
  min-width: 260px;
}

.title-block h2 {
  margin: 3px 0 4px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.title-block p:last-child {
  margin: 0;
  color: var(--cyan);
}

.top-widgets {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(620px, 55%);
}

.status-pill,
.date-card,
.bell-button {
  min-height: 58px;
  border: 2px solid rgba(139, 180, 207, 0.38);
  border-radius: var(--radius);
  background: rgba(13, 37, 64, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.status-pill,
.date-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.status-pill {
  min-width: 245px;
}

.status-pill span:not(.pulse-dot),
.date-card span:not(.calendar-pixel) {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
}

.status-pill strong,
.date-card strong {
  display: block;
  margin-top: 3px;
  color: #a7e872;
  font-size: 0.82rem;
  line-height: 1.25;
}

.pulse-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(56, 209, 109, 0.16), 0 0 18px rgba(56, 209, 109, 0.82);
  animation: pulse 1.8s steps(4) infinite;
}

.calendar-pixel {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 3px solid #e7f7ff;
  border-top-width: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.36) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.36) 45% 55%, transparent 55%);
}

.bell-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  min-width: 86px;
  padding: 0;
}

.bell-button:hover,
.bell-button:focus-visible,
.mode-button:hover,
.mode-button:focus-visible {
  border-color: var(--cyan);
  outline: 0;
}

.bell-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 30px;
}

.bell-icon::before {
  content: "";
  position: absolute;
  inset: 4px 4px 6px;
  background: #fff6d8;
  clip-path: polygon(50% 0, 78% 18%, 78% 68%, 96% 84%, 4% 84%, 22% 68%, 22% 18%);
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 2px;
  width: 8px;
  height: 5px;
  background: #fff6d8;
  border-radius: 0 0 6px 6px;
}

.bell-button b {
  position: absolute;
  top: 7px;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  color: var(--white);
  background: #d93e3e;
  font-size: 0.78rem;
}

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

.main-column,
.right-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.campus-panel,
.directory-panel,
.profile-panel,
.conversation-panel,
.task-panel,
.history-panel {
  border: 2px solid #173a5c;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 24, 44, 0.96), rgba(4, 14, 27, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 0 rgba(0, 0, 0, 0.16);
}

.campus-panel {
  overflow: hidden;
}

.campus-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.campus-header {
  padding: 14px;
  border-bottom: 2px solid rgba(41, 82, 118, 0.8);
}

.campus-header h3,
.panel-heading h3 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}

.mode-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(74, 163, 216, 0.36);
  border-radius: var(--radius);
  background: rgba(3, 16, 29, 0.72);
}

.mode-button {
  min-width: 76px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
}

.mode-button.is-active {
  color: var(--white);
  border-color: rgba(69, 199, 255, 0.5);
  background: rgba(20, 89, 143, 0.72);
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  min-height: 560px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(56, 209, 109, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(255, 158, 79, 0.08), transparent 38%),
    #03101d;
}

.room {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 270px;
  overflow: hidden;
  border: 3px solid var(--zone-color);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--zone-wash), rgba(7, 24, 44, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 24px);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.28),
    0 8px 0 rgba(0, 0, 0, 0.22);
}

.room.is-dimmed {
  opacity: 0.38;
}

.room.is-focused {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 14px 0 rgba(0, 0, 0, 0.26);
}

.room-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  background: color-mix(in srgb, var(--zone-color) 26%, #06192d);
}

.room-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.zone-glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  color: #fff7d6;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.95rem;
  font-weight: 900;
}

.room h4 {
  margin: 0;
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-count {
  color: #dff7ff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.room-scene {
  position: relative;
  min-height: 224px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(135, 98, 62, 0.54) 0 36%, transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    #23374b;
  background-size: auto, 30px 30px, 30px 30px, auto;
}

.room-scene::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 58px;
  border: 4px solid rgba(14, 27, 41, 0.75);
  background:
    linear-gradient(90deg, rgba(69, 199, 255, 0.18), rgba(56, 209, 109, 0.14)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 12px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.room-scene::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 32px;
  height: 86px;
  border: 4px solid rgba(19, 33, 45, 0.9);
  background:
    linear-gradient(var(--emerald) 0 0) 7px 11px / 10px 8px no-repeat,
    linear-gradient(var(--cyan) 0 0) 7px 29px / 12px 8px no-repeat,
    linear-gradient(var(--gold) 0 0) 7px 47px / 13px 8px no-repeat,
    #172333;
}

.room-assets {
  position: absolute;
  inset: 96px 14px 16px;
  pointer-events: none;
}

.plant {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 34px;
  height: 50px;
  background:
    linear-gradient(#634427 0 0) 9px 30px / 18px 16px no-repeat,
    radial-gradient(circle at 50% 22%, #46c768 0 8px, transparent 9px),
    radial-gradient(circle at 28% 34%, #2fa75b 0 8px, transparent 9px),
    radial-gradient(circle at 70% 35%, #65dc78 0 8px, transparent 9px);
}

.shelf {
  position: absolute;
  right: 46px;
  top: 0;
  width: 72px;
  height: 48px;
  border: 4px solid #4b331f;
  background:
    linear-gradient(90deg, #f4bf45 0 9px, #45c7ff 9px 18px, #ff75a7 18px 28px, transparent 28px) 8px 8px / 42px 9px no-repeat,
    linear-gradient(90deg, #a875ff 0 10px, #38d16d 10px 19px, #f4bf45 19px 29px, transparent 29px) 8px 28px / 45px 9px no-repeat,
    #6b4428;
}

.table {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 86px;
  height: 54px;
  transform: translateX(-50%);
  border: 4px solid #3c2718;
  border-radius: 50%;
  background: #8a5a33;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
}

.room-team {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 186px;
}

.workstation {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  min-height: 174px;
  padding: 6px;
  border: 0;
  color: inherit;
  background: transparent;
}

.workstation:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 8px;
}

.workstation.is-selected .desk {
  border-color: color-mix(in srgb, var(--zone-color) 76%, white);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.26),
    0 0 0 3px color-mix(in srgb, var(--zone-color) 30%, transparent);
}

.workstation.is-selected .pixel-person {
  filter:
    drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 9px color-mix(in srgb, var(--zone-color) 62%, transparent));
}

.speech-bubble {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 4px;
  width: min(168px, calc(100% + 42px));
  min-height: 34px;
  padding: 6px 8px;
  transform: translate(-50%, -8px);
  border: 2px solid color-mix(in srgb, var(--zone-color) 68%, white);
  border-radius: 6px;
  color: #07182c;
  background: #f2fbff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.24);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid color-mix(in srgb, var(--zone-color) 68%, white);
  border-bottom: 2px solid color-mix(in srgb, var(--zone-color) 68%, white);
  background: #f2fbff;
}

.desk {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(122px, 100%);
  min-height: 92px;
  margin-top: -3px;
  padding: 48px 8px 8px;
  border: 4px solid #3b2516;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 10%, transparent 10% 20%, rgba(255, 255, 255, 0.1) 20% 28%, transparent 28%),
    #8a5a33;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.26);
}

.desk::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 36px;
  height: 24px;
  transform: translateX(-50%);
  border: 4px solid #172333;
  background:
    linear-gradient(90deg, rgba(69, 199, 255, 0.35), rgba(56, 209, 109, 0.22)),
    #07182c;
}

.desk strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.1;
}

.desk span {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  color: #89d4ff;
  font-size: 0.72rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pixel-person {
  position: relative;
  width: 60px;
  height: 74px;
  margin-bottom: -2px;
  filter: drop-shadow(0 9px 9px rgba(0, 0, 0, 0.34));
}

.pixel-person.is-talking {
  filter:
    drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 10px color-mix(in srgb, var(--zone-color) 64%, transparent));
}

.pixel-person.is-talking .pixel-face {
  box-shadow: 16px 0 0 #1d1510;
}

.pixel-person.is-talking .pixel-face::after {
  top: 11px;
  width: 11px;
  border-bottom-color: rgba(100, 52, 36, 0.95);
}

.pixel-person::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  width: 38px;
  height: 36px;
  border: 2px solid rgba(36, 21, 15, 0.85);
  border-radius: 46% 46% 44% 44%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.48) 0 5px, transparent 6px),
    linear-gradient(135deg, color-mix(in srgb, var(--skin) 78%, white), var(--skin) 58%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
  box-shadow:
    inset -5px -7px 0 rgba(70, 38, 25, 0.16),
    inset 5px 4px 0 rgba(255, 255, 255, 0.12);
}

.pixel-person::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 44px;
  height: 34px;
  border: 2px solid #1b2530;
  border-radius: 17px 17px 8px 8px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32) 0 6px, transparent 7px),
    linear-gradient(90deg, transparent 0 42%, rgba(255, 255, 255, 0.22) 42% 58%, transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--shirt) 78%, white), var(--shirt) 62%, color-mix(in srgb, var(--shirt) 72%, #101927));
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.16);
}

.pixel-person.muslim-male::before {
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.48) 0 5px, transparent 6px),
    linear-gradient(180deg, #fbf2d7 0 9px, transparent 9px),
    linear-gradient(135deg, color-mix(in srgb, var(--skin) 78%, white), var(--skin) 58%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
  box-shadow:
    inset -5px -7px 0 rgba(70, 38, 25, 0.16),
    inset 5px 4px 0 rgba(255, 255, 255, 0.12),
    0 -5px 0 2px #fbf2d7,
    0 -2px 0 3px #d8c9a5,
    -5px 5px 0 -1px var(--hair),
    5px 5px 0 -1px var(--hair);
}

.pixel-person.muslim-male::after {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.36) 0 6px, transparent 7px),
    linear-gradient(90deg, transparent 0 37%, rgba(255, 255, 255, 0.32) 37% 63%, transparent 63%),
    linear-gradient(180deg, #f7efd9 0 58%, var(--shirt) 58% 100%);
}

.pixel-person.muslim-male .pixel-face::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -16px;
  width: 32px;
  height: 8px;
  border: 1px solid #d8c9a5;
  border-radius: 999px 999px 8px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(51, 42, 26, 0.18) 0 2px, transparent 2px 5px),
    #fbf2d7;
}

.pixel-person.muslim-female::before {
  border-color: var(--hair);
  background:
    radial-gradient(circle at 38% 36%, rgba(255, 255, 255, 0.48) 0 5px, transparent 6px),
    linear-gradient(135deg, color-mix(in srgb, var(--skin) 78%, white), var(--skin) 58%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
  box-shadow:
    inset -5px -7px 0 rgba(70, 38, 25, 0.15),
    -8px 2px 0 3px var(--hair),
    8px 2px 0 3px var(--hair),
    0 -8px 0 5px var(--hair),
    0 19px 0 -1px var(--hair),
    0 27px 0 -8px var(--hair);
}

.pixel-person.muslim-female::after {
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(255, 255, 255, 0.24) 38% 62%, transparent 62%),
    linear-gradient(180deg, var(--hair) 0 23%, var(--shirt) 23% 100%);
}

.pixel-person.muslim-female .pixel-face::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 12px;
  width: 22px;
  height: 8px;
  background: var(--hair);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.pixel-face {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 25px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d1510;
  box-shadow: 16px 0 0 #1d1510;
}

.pixel-face::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid rgba(100, 52, 36, 0.75);
  border-radius: 0 0 999px 999px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(56, 209, 109, 0.8);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
  border: 3px solid var(--metric-color);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--metric-color) 14%, #07182c), rgba(7, 24, 44, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 0 rgba(0, 0, 0, 0.18);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--white);
  font-size: 2.35rem;
  line-height: 1;
}

.metric-card p {
  margin: 0;
  color: color-mix(in srgb, var(--metric-color) 82%, white);
  font-size: 0.78rem;
  line-height: 1.25;
}

.directory-panel,
.profile-panel,
.conversation-panel,
.task-panel,
.history-panel {
  padding: 14px;
}

.auth-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px solid #173a5c;
  border-radius: var(--radius);
  background: rgba(7, 24, 44, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-heading,
.auth-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-heading strong,
.auth-user span {
  display: block;
  margin-top: 3px;
  color: var(--white);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.online-state-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d93e3e;
  box-shadow: 0 0 0 4px rgba(217, 62, 62, 0.16);
}

.online-state-dot.is-online {
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(56, 209, 109, 0.16), 0 0 12px rgba(56, 209, 109, 0.7);
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  display: grid;
  gap: 5px;
}

.auth-form label span {
  color: var(--muted);
  font-size: 0.72rem;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(139, 180, 207, 0.28);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(3, 16, 29, 0.9);
  outline: 0;
}

.auth-form input:focus {
  border-color: var(--cyan);
}

.auth-button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(69, 199, 255, 0.6);
  border-radius: 5px;
  color: var(--white);
  background: rgba(31, 111, 165, 0.78);
  font-weight: 800;
}

.auth-button.secondary {
  border-color: rgba(255, 117, 167, 0.6);
  background: rgba(80, 32, 54, 0.78);
}

.auth-button:hover,
.auth-button:focus-visible {
  border-color: var(--emerald);
  outline: 0;
}

.auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.auth-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.auth-message.is-error {
  color: #ffb8b8;
}

.panel-heading span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding-inline: 8px;
  border: 1px solid rgba(69, 199, 255, 0.45);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(69, 199, 255, 0.08);
  font-weight: 800;
}

.search-field {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 12px 0;
  padding: 6px 10px;
  border: 1px solid rgba(139, 180, 207, 0.32);
  border-radius: var(--radius);
  background: rgba(3, 16, 29, 0.72);
}

.search-field:focus-within {
  border-color: var(--cyan);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.search-field input::placeholder {
  color: rgba(139, 180, 207, 0.72);
}

.assignment-form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(139, 180, 207, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 16, 29, 0.58);
}

.assignment-form label {
  display: grid;
  gap: 5px;
}

.assignment-form label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.assignment-form label b {
  color: var(--cyan);
  font-weight: 800;
}

.assignment-form input,
.assignment-form select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(139, 180, 207, 0.28);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(7, 24, 44, 0.92);
  outline: 0;
}

.task-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(139, 180, 207, 0.25);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-badge.pending {
  color: #ffe7a0;
  background: rgba(244, 191, 69, 0.12);
  border-color: rgba(244, 191, 69, 0.38);
}

.status-badge.doing {
  color: #bfeaff;
  background: rgba(69, 199, 255, 0.12);
  border-color: rgba(69, 199, 255, 0.42);
}

.status-badge.done {
  color: #dfffd8;
  background: rgba(56, 209, 109, 0.12);
  border-color: rgba(56, 209, 109, 0.42);
}

.task-status-select {
  max-width: 150px;
  min-height: 30px;
  border: 1px solid rgba(139, 180, 207, 0.28);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(3, 16, 29, 0.88);
}

.assignment-form input[type="text"],
.assignment-form input[type="url"],
.assignment-form select {
  padding: 8px;
}

.assignment-form input[type="range"] {
  accent-color: var(--cyan);
}

.assignment-form input:focus,
.assignment-form select:focus {
  border-color: var(--cyan);
}

.assignment-form input::placeholder {
  color: rgba(139, 180, 207, 0.6);
}

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

.assign-button {
  min-height: 38px;
  border: 2px solid rgba(69, 199, 255, 0.64);
  border-radius: 5px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(31, 111, 165, 0.92), rgba(8, 47, 82, 0.92));
  font-weight: 800;
}

.assign-button:hover,
.assign-button:focus-visible {
  border-color: var(--emerald);
  outline: 0;
}

.search-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border: 3px solid #bfeaff;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -4px;
  width: 10px;
  height: 4px;
  rotate: 45deg;
  background: #bfeaff;
}

.directory-list,
.task-list {
  display: grid;
  gap: 8px;
}

.directory-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.directory-item {
  display: grid;
  grid-template-columns: 28px 38px 1fr 14px;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(139, 180, 207, 0.16);
  border-radius: 6px;
  color: inherit;
  text-align: left;
  background: rgba(7, 24, 44, 0.54);
}

.directory-item:hover,
.directory-item:focus-visible,
.directory-item.is-selected {
  border-color: var(--zone-color);
  outline: 0;
  background: color-mix(in srgb, var(--zone-color) 13%, rgba(7, 24, 44, 0.72));
}

.directory-item.is-talking {
  border-color: color-mix(in srgb, var(--zone-color) 70%, white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.directory-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #e5f7ff;
  background: #1d70bc;
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-avatar {
  position: relative;
  width: 38px;
  height: 42px;
}

.mini-avatar::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(28, 20, 16, 0.8);
  border-radius: 46% 46% 44% 44%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.48) 0 3px, transparent 4px),
    linear-gradient(135deg, color-mix(in srgb, var(--skin) 78%, white), var(--skin) 62%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
  box-shadow: inset -3px -4px 0 rgba(70, 38, 25, 0.16);
}

.mini-avatar::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 26px;
  height: 20px;
  border: 2px solid #172333;
  border-radius: 10px 10px 5px 5px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.3) 0 4px, transparent 5px),
    linear-gradient(135deg, color-mix(in srgb, var(--shirt) 78%, white), var(--shirt) 62%, color-mix(in srgb, var(--shirt) 72%, #101927));
}

.mini-avatar.muslim-male::before {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.48) 0 3px, transparent 4px),
    linear-gradient(180deg, #fbf2d7 0 6px, transparent 6px),
    linear-gradient(135deg, color-mix(in srgb, var(--skin) 78%, white), var(--skin) 62%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
  box-shadow:
    inset -3px -4px 0 rgba(70, 38, 25, 0.16),
    0 -4px 0 2px #fbf2d7,
    0 -2px 0 3px #d8c9a5,
    -3px 3px 0 var(--hair),
    3px 3px 0 var(--hair);
}

.mini-avatar.muslim-male::after {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.32) 0 4px, transparent 5px),
    linear-gradient(180deg, #f7efd9 0 55%, var(--shirt) 55% 100%);
}

.mini-avatar.muslim-female::before {
  border-color: var(--hair);
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.48) 0 3px, transparent 4px),
    linear-gradient(135deg, color-mix(in srgb, var(--skin) 78%, white), var(--skin) 62%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
  box-shadow:
    inset -3px -4px 0 rgba(70, 38, 25, 0.16),
    -4px 2px 0 1px var(--hair),
    4px 2px 0 1px var(--hair),
    0 -5px 0 3px var(--hair),
    0 12px 0 -2px var(--hair);
}

.mini-avatar.muslim-female::after {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28) 0 4px, transparent 5px),
    linear-gradient(180deg, var(--hair) 0 22%, var(--shirt) 22% 100%);
}

.directory-copy {
  min-width: 0;
}

.directory-copy strong,
.directory-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-copy span {
  margin-top: 3px;
  color: #75cfff;
  font-size: 0.78rem;
}

.profile-panel {
  min-height: 168px;
}

.profile-empty,
.profile-card {
  min-height: 140px;
}

.profile-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.profile-card .pixel-person {
  width: 58px;
  height: 72px;
  margin: 0;
}

.profile-card h3 {
  margin: 0;
  font-size: 1.16rem;
}

.profile-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

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

.profile-tags span {
  padding: 5px 7px;
  border: 1px solid rgba(139, 180, 207, 0.22);
  border-radius: 4px;
  color: #d9f3ff;
  background: rgba(13, 37, 64, 0.8);
  font-size: 0.74rem;
}

.profile-actions {
  margin-top: 10px;
}

.profile-talk-button,
.talk-now-button {
  min-height: 32px;
  border: 1px solid rgba(69, 199, 255, 0.54);
  border-radius: 5px;
  color: var(--white);
  background: rgba(31, 111, 165, 0.72);
  font-weight: 800;
}

.profile-talk-button {
  padding: 6px 10px;
}

.talk-now-button {
  padding: 6px 9px;
  font-size: 0.74rem;
}

.profile-talk-button:hover,
.profile-talk-button:focus-visible,
.talk-now-button:hover,
.talk-now-button:focus-visible {
  border-color: var(--emerald);
  outline: 0;
}

.conversation-panel {
  min-height: 176px;
}

.conversation-log {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.conversation-item {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(139, 180, 207, 0.18);
  border-radius: 6px;
  background: rgba(7, 24, 44, 0.54);
}

.conversation-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.conversation-line strong,
.conversation-line span {
  overflow-wrap: anywhere;
}

.conversation-line strong {
  color: color-mix(in srgb, var(--zone-color) 76%, white);
  font-size: 0.74rem;
}

.conversation-line span {
  color: #dff7ff;
  font-size: 0.78rem;
  line-height: 1.25;
}

.task-item {
  display: grid;
  gap: 8px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(139, 180, 207, 0.18);
  border-radius: 6px;
  background: rgba(7, 24, 44, 0.54);
}

.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-top strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.task-top button {
  flex: 0 0 auto;
  width: 32px;
  height: 30px;
  border: 1px solid rgba(139, 180, 207, 0.28);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(3, 16, 29, 0.8);
}

.task-top button::before {
  content: "";
  display: block;
  width: 14px;
  height: 8px;
  margin: 5px auto 0;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  rotate: -45deg;
  opacity: 0.4;
}

.task-top button.is-done {
  color: #dfffd8;
  border-color: rgba(56, 209, 109, 0.65);
  background: rgba(56, 209, 109, 0.18);
}

.task-top button.is-done::before {
  opacity: 1;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(139, 180, 207, 0.24);
  border-radius: 999px;
  background: rgba(3, 16, 29, 0.9);
}

.progress-fill {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--zone-color), color-mix(in srgb, var(--zone-color) 55%, white));
}

.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.task-link {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(69, 199, 255, 0.46);
  border-radius: 4px;
  color: #dff7ff;
  background: rgba(31, 111, 165, 0.42);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.task-link:hover,
.task-link:focus-visible {
  border-color: var(--emerald);
  outline: 0;
}

.history-panel {
  min-height: 190px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.history-item {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(139, 180, 207, 0.18);
  border-radius: 6px;
  background: rgba(7, 24, 44, 0.54);
}

.history-item strong,
.history-item span {
  overflow-wrap: anywhere;
}

.history-item strong {
  color: var(--white);
  font-size: 0.78rem;
}

.history-item span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.empty-state {
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.82);
    opacity: 0.72;
  }
}

@keyframes avatarWalk {
  0% {
    transform: translateX(calc(var(--walk-distance) * -1)) translateY(0);
  }

  20% {
    transform: translateX(calc(var(--walk-distance) * -0.45)) translateY(-3px);
  }

  40% {
    transform: translateX(calc(var(--walk-distance) * 0.25)) translateY(0);
  }

  60% {
    transform: translateX(var(--walk-distance)) translateY(-3px);
  }

  80% {
    transform: translateX(calc(var(--walk-distance) * 0.35)) translateY(0);
  }

  100% {
    transform: translateX(calc(var(--walk-distance) * -1)) translateY(0);
  }
}

@keyframes talkingBounce {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .workstation .pixel-person {
    animation: avatarWalk var(--walk-duration, 4s) steps(6, end) infinite;
    animation-delay: var(--walk-delay, 0s);
  }

  .workstation .pixel-person.is-talking {
    animation:
      avatarWalk var(--walk-duration, 4s) steps(6, end) infinite,
      talkingBounce 0.58s steps(2, end) infinite;
    animation-delay: var(--walk-delay, 0s), 0s;
  }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 238px minmax(0, 1fr);
  }

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

  .right-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-list {
    max-height: 310px;
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 2px solid #173a5c;
  }

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

  .school-status {
    margin-top: 0;
  }

  .topbar {
    flex-direction: column;
  }

  .top-widgets {
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .status-pill,
  .date-card {
    flex: 1 1 230px;
  }

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

  .right-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .dashboard,
  .sidebar {
    padding: 12px;
  }

  .brand-block {
    grid-template-columns: 50px 1fr;
  }

  .brand-orbit {
    width: 48px;
  }

  .brand-block h1 {
    font-size: 1.55rem;
  }

  .nav-menu {
    grid-template-columns: 1fr;
  }

  .top-widgets {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bell-button {
    width: 100%;
  }

  .campus-header,
  .panel-heading,
  .task-top,
  .task-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    flex: 1;
    min-width: 0;
  }

  .room-team {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

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

/* Luxury 3D operations theme */
:root {
  --lux-bg: #07131f;
  --lux-ink: #f7fbff;
  --lux-muted: #9cc1d4;
  --lux-panel: rgba(8, 24, 39, 0.86);
  --lux-glass: rgba(255, 255, 255, 0.08);
  --lux-line: rgba(116, 215, 255, 0.34);
  --lux-cyan: #4bd8ff;
  --lux-teal: #31e3ba;
  --lux-gold: #f5c765;
  --lux-rose: #ff7bb2;
  --lux-shadow: rgba(0, 0, 0, 0.52);
}

body {
  color: var(--lux-ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(75, 216, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(245, 199, 101, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #06111e 0%, #0b1f34 38%, #100c22 70%, #081b22 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.app-shell {
  width: min(1800px, 100%);
  grid-template-columns: 292px minmax(0, 1fr);
  border-color: rgba(75, 216, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.78), rgba(7, 19, 31, 0.94)),
    rgba(3, 10, 18, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 44px rgba(49, 227, 186, 0.14);
}

.sidebar {
  gap: 20px;
  border-right: 1px solid rgba(116, 215, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(10, 32, 54, 0.94), rgba(5, 18, 32, 0.98)),
    linear-gradient(90deg, rgba(75, 216, 255, 0.08), transparent 44%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.06),
    12px 0 34px rgba(0, 0, 0, 0.28);
}

.brand-block {
  grid-template-columns: 64px 1fr;
  min-height: 84px;
}

.brand-orbit {
  width: 58px;
  border: 1px solid rgba(75, 216, 255, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(49, 227, 186, 0.18), rgba(75, 216, 255, 0.16)),
    rgba(8, 28, 47, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 14px 32px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(75, 216, 255, 0.22);
}

.brand-orbit::before,
.brand-orbit::after {
  display: none;
}

.brand-orbit span {
  color: #dffbff;
  font-size: 1.2rem;
}

.brand-block h1 {
  font-size: 1.8rem;
  letter-spacing: 0;
}

.brand-block h1 span {
  color: var(--lux-teal);
}

.brand-kicker,
.brand-subtitle,
.panel-label {
  color: var(--lux-muted);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-menu {
  gap: 8px;
}

.nav-item {
  grid-template-columns: 34px 1fr;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dff5ff;
  background: rgba(255, 255, 255, 0.02);
}

.nav-item::after {
  right: 12px;
  border-left-color: var(--lux-cyan);
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  border-color: rgba(75, 216, 255, 0.48);
  background:
    linear-gradient(90deg, rgba(75, 216, 255, 0.2), rgba(49, 227, 186, 0.08)),
    rgba(10, 38, 63, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.nav-icon {
  color: #fff4ce;
}

.dashboard {
  padding: 20px;
}

.topbar,
.campus-panel,
.directory-panel,
.profile-panel,
.conversation-panel,
.task-panel,
.history-panel,
.auth-panel,
.school-status {
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--lux-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.topbar {
  min-height: 92px;
  border-color: rgba(75, 216, 255, 0.28);
}

.title-block h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.2vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(75, 216, 255, 0.22);
}

.title-block p:last-child {
  color: var(--lux-cyan);
  font-weight: 700;
}

.status-pill,
.date-card,
.bell-button {
  border: 1px solid rgba(116, 215, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(75, 216, 255, 0.04)),
    rgba(12, 31, 52, 0.78);
}

.status-pill strong,
.date-card strong {
  color: #ddffb3;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.campus-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(75, 216, 255, 0.08), transparent 28%),
    rgba(5, 16, 29, 0.94);
}

.campus-header {
  border-bottom: 1px solid rgba(116, 215, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(75, 216, 255, 0.08), rgba(245, 199, 101, 0.05)),
    rgba(8, 24, 39, 0.78);
}

.campus-header h3,
.panel-heading h3 {
  color: #f9fdff;
  font-weight: 850;
}

.mode-switch {
  border: 1px solid rgba(116, 215, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.mode-button {
  border-radius: 6px;
  color: var(--lux-muted);
  font-weight: 700;
}

.mode-button.is-active {
  border-color: rgba(75, 216, 255, 0.52);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(75, 216, 255, 0.28), rgba(49, 227, 186, 0.12)),
    rgba(21, 82, 124, 0.72);
}

.campus-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 16px;
  min-height: 920px;
  padding: 24px 24px 134px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 216, 255, 0.1), rgba(9, 20, 36, 0.96) 48%, rgba(13, 18, 34, 0.98));
  background-size: 42px 42px, 42px 42px, auto;
}

.campus-grid::after {
  content: "IQRA ADMIN OPERATIONS";
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(540px, calc(100% - 56px));
  min-height: 76px;
  transform: translateX(-50%);
  border: 1px solid rgba(75, 216, 255, 0.58);
  border-radius: 8px;
  color: #cffaff;
  background:
    linear-gradient(180deg, rgba(75, 216, 255, 0.22), rgba(49, 227, 186, 0.08)),
    rgba(4, 18, 31, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 34px rgba(75, 216, 255, 0.24);
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.room {
  z-index: 2;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--zone-color) 72%, white);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--zone-color) 24%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(12, 26, 41, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -24px 54px rgba(0, 0, 0, 0.24),
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 24px color-mix(in srgb, var(--zone-color) 24%, transparent);
  clip-path: polygon(4% 0, 96% 0, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0 92%, 0 8%);
}

.room:nth-child(1) {
  grid-column: 1 / span 1;
}

.room:nth-child(2) {
  grid-column: 2 / span 2;
}

.room:nth-child(3) {
  grid-column: 4 / span 1;
}

.room:nth-child(4) {
  grid-column: 1 / span 2;
}

.room:nth-child(5) {
  grid-column: 3 / span 2;
}

.room:nth-child(6) {
  grid-column: 1 / span 2;
}

.room:nth-child(7) {
  grid-column: 3 / span 2;
}

.room.is-dimmed {
  opacity: 0.46;
  filter: saturate(0.72);
}

.room.is-focused {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 2px color-mix(in srgb, var(--zone-color) 36%, transparent),
    0 20px 44px rgba(0, 0, 0, 0.38),
    0 0 34px color-mix(in srgb, var(--zone-color) 34%, transparent);
}

.room-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--zone-color) 30%, #091a2c), rgba(255, 255, 255, 0.05));
}

.zone-glyph {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.room h4 {
  font-size: 1rem;
  font-weight: 850;
}

.room-count {
  font-weight: 700;
}

.room-scene {
  min-height: 216px;
  padding: 20px 18px 16px;
  background:
    linear-gradient(180deg, rgba(226, 236, 220, 0.22) 0 34%, transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    color-mix(in srgb, var(--zone-color) 15%, #243244);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.room-scene::before {
  left: 22px;
  right: 22px;
  top: 18px;
  height: 58px;
  border: 3px solid rgba(8, 18, 27, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(75, 216, 255, 0.24), rgba(49, 227, 186, 0.18)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    rgba(7, 24, 39, 0.74);
  background-size: auto, 100% 12px, auto;
}

.room-scene::after {
  right: 20px;
  bottom: 20px;
  width: 34px;
  height: 76px;
  border: 3px solid rgba(11, 21, 30, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(var(--lux-teal) 0 0) 8px 12px / 10px 7px no-repeat,
    linear-gradient(var(--lux-cyan) 0 0) 8px 29px / 12px 7px no-repeat,
    linear-gradient(var(--lux-gold) 0 0) 8px 46px / 13px 7px no-repeat,
    rgba(15, 31, 44, 0.94);
}

.room-assets::before {
  content: "";
  position: absolute;
  left: 66px;
  bottom: 4px;
  width: 26px;
  height: 34px;
  border-radius: 12px 12px 8px 8px;
  background:
    radial-gradient(circle at 50% 36%, #66e7ff 0 3px, transparent 4px),
    linear-gradient(180deg, #f5fbff 0 48%, #9ec4d4 48% 100%);
  box-shadow:
    0 0 0 3px rgba(29, 50, 66, 0.78),
    0 10px 16px rgba(0, 0, 0, 0.24);
}

.room-team {
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  min-height: 190px;
  gap: 12px;
}

.workstation {
  min-height: 178px;
}

.speech-bubble {
  border: 1px solid color-mix(in srgb, var(--zone-color) 62%, white);
  border-radius: 8px;
  color: #06111e;
  background: linear-gradient(180deg, #ffffff, #dff9ff);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 18px color-mix(in srgb, var(--zone-color) 18%, transparent);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.72rem;
}

.desk {
  width: min(128px, 100%);
  min-height: 88px;
  padding: 48px 8px 8px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #a87242, #6c421f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -12px 0 rgba(0, 0, 0, 0.16),
    0 12px 18px rgba(0, 0, 0, 0.3);
}

.desk::before {
  top: 10px;
  width: 40px;
  height: 26px;
  border: 3px solid #102333;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(75, 216, 255, 0.56), rgba(49, 227, 186, 0.28)),
    #05111d;
}

.desk strong {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.desk span {
  color: #bcecff;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.68rem;
}

.pixel-person {
  width: 62px;
  height: 78px;
  filter:
    drop-shadow(0 10px 10px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 8px color-mix(in srgb, var(--zone-color) 28%, transparent));
}

.pixel-person::before {
  left: 10px;
  top: 7px;
  width: 42px;
  height: 42px;
  border-width: 1px;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.52) 0 5px, transparent 6px),
    linear-gradient(145deg, color-mix(in srgb, var(--skin) 82%, white), var(--skin) 58%, color-mix(in srgb, var(--skin) 78%, #6b3b26));
}

.pixel-person::after {
  left: 7px;
  bottom: 0;
  width: 48px;
  height: 42px;
  border: 1px solid rgba(12, 28, 41, 0.9);
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--shirt) 82%, white), var(--shirt) 62%, color-mix(in srgb, var(--shirt) 72%, #07131f));
}

.pixel-person.muslim-male::before {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.52) 0 5px, transparent 6px),
    linear-gradient(180deg, #fff5d8 0 8px, transparent 8px),
    linear-gradient(145deg, color-mix(in srgb, var(--skin) 82%, white), var(--skin) 62%, color-mix(in srgb, var(--skin) 76%, #6b3b26));
  box-shadow:
    0 -7px 0 2px #fff4dc,
    0 -4px 0 4px #d8c59c,
    -8px 4px 0 -2px var(--hair),
    8px 4px 0 -2px var(--hair);
}

.pixel-person.muslim-male::after {
  background:
    linear-gradient(180deg, #fff3dc 0 50%, var(--shirt) 50% 100%);
}

.pixel-person.muslim-male .pixel-face::before {
  top: -17px;
  border-radius: 999px 999px 8px 8px;
}

.pixel-person.muslim-female::before {
  border-color: var(--hair);
  box-shadow:
    -9px 3px 0 3px var(--hair),
    9px 3px 0 3px var(--hair),
    0 -8px 0 5px var(--hair),
    0 22px 0 -2px var(--hair);
}

.pixel-person.muslim-female::after {
  background:
    linear-gradient(180deg, var(--hair) 0 22%, var(--shirt) 22% 100%);
}

.pixel-face {
  left: 20px;
  top: 25px;
  width: 5px;
  height: 5px;
}

.metric-row {
  grid-template-columns: repeat(6, minmax(124px, 1fr));
}

.metric-card {
  min-height: 118px;
  border: 1px solid color-mix(in srgb, var(--metric-color) 62%, white);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--metric-color) 18%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.03)),
    rgba(9, 25, 41, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.metric-card strong {
  font-size: 2rem;
}

.directory-item,
.conversation-item,
.task-item,
.history-item {
  border: 1px solid rgba(116, 215, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(8, 24, 39, 0.72);
}

.directory-item:hover,
.directory-item:focus-visible,
.directory-item.is-selected {
  border-color: color-mix(in srgb, var(--zone-color) 74%, white);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--zone-color) 18%, transparent), rgba(255, 255, 255, 0.04)),
    rgba(8, 24, 39, 0.88);
}

.profile-card {
  align-items: center;
}

.profile-tags span,
.task-link,
.status-badge {
  border-radius: 6px;
}

.auth-panel {
  border-color: rgba(75, 216, 255, 0.28);
}

.auth-form input,
.assignment-form input,
.assignment-form select,
.task-status-select,
.search-field {
  border: 1px solid rgba(116, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.74);
}

.auth-button,
.assign-button,
.profile-talk-button,
.talk-now-button {
  border: 1px solid rgba(75, 216, 255, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(75, 216, 255, 0.34), rgba(49, 227, 186, 0.12)),
    rgba(15, 78, 118, 0.82);
}

.auth-button.secondary {
  border-color: rgba(255, 123, 178, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 123, 178, 0.26), rgba(245, 199, 101, 0.08)),
    rgba(83, 33, 59, 0.82);
}

.online-state-dot {
  background: #ff6172;
  box-shadow: 0 0 0 4px rgba(255, 97, 114, 0.12), 0 0 18px rgba(255, 97, 114, 0.42);
}

.online-state-dot.is-online {
  background: var(--lux-teal);
  box-shadow: 0 0 0 4px rgba(49, 227, 186, 0.14), 0 0 18px rgba(49, 227, 186, 0.62);
}

.school-status strong {
  color: #d5ffad;
}

@media (max-width: 1440px) {
  .campus-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    min-height: 0;
  }

  .room,
  .room:nth-child(n) {
    grid-column: auto;
  }
}

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

  .right-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
  }

  .campus-grid {
    grid-template-columns: 1fr;
    padding: 14px 14px 112px;
  }

  .right-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard,
  .sidebar {
    padding: 12px;
  }

  .topbar {
    min-height: 0;
  }

  .content-grid,
  .right-column,
  .metric-row {
    gap: 12px;
  }

  .main-column,
  .campus-panel,
  .campus-grid,
  .metric-row,
  .room {
    min-width: 0;
    width: 100%;
  }

  .campus-header {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-switch {
    width: 100%;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .campus-grid::after {
    min-height: 58px;
    font-size: 1rem;
  }
}
