@font-face {
  font-family: "Vazirmatn";
  src: url("/production/assets/fonts/Vazirmatn.woff2?v=33.197") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage-main: #9cb39e;
  --sage-hover: #b5ccb7;
  --sage-bg: rgba(156, 179, 158, 0.15);
  --sky-bg: radial-gradient(circle at 50% 35%, #111c19 0%, #060908 66%, #040606 100%);
  --star-color: 255, 255, 255;
  --star-opacity: 0.16;
  --cursor-glow-color: rgba(156, 179, 158, 0.16);
  --text-dark: #f3f5f2;
  --text-muted: #a8b0aa;
  --bg-page: #070b10;
  --bg-card: rgba(255, 255, 255, 0.055);
  --nav-bg: rgba(15, 20, 28, 0.72);
  --border-color: rgba(255, 255, 255, 0.09);
  --card-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
  --btn-text: #07100d;
  --ui-bg: rgba(255, 255, 255, 0.045);
  --danger: #ff8f8f;
  --warning: #f2d27c;
  --warm-accent: #f4a261;
  --success: #9ee0ae;
  --radius: 20px;
  --mouse-x: 0.5;
  --mouse-y: 0.5;
}

[data-theme="light"] {
  --sage-main: #6f9776;
  --sage-hover: #527b5a;
  --sage-bg: rgba(107, 142, 112, 0.13);
  --sky-bg: radial-gradient(circle at 50% 35%, #f8faf7 0%, #eef5f0 60%, #e8f0ec 100%);
  --star-color: 107, 142, 112;
  --star-opacity: 0.34;
  --cursor-glow-color: rgba(107, 142, 112, 0.13);
  --text-dark: #26302a;
  --text-muted: #68736c;
  --bg-page: #f7f8f6;
  --bg-card: rgba(255, 255, 255, 0.82);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --border-color: rgba(47, 71, 55, 0.12);
  --card-shadow: 0 12px 30px rgba(34, 54, 40, 0.08);
  --btn-text: #ffffff;
  --ui-bg: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  background: var(--bg-page);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn";
  color: var(--text-dark);
  background: var(--bg-page);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease, color 0.45s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle, rgba(var(--star-color), var(--star-opacity)) 1px, transparent 1px),
    radial-gradient(circle, rgba(var(--star-color), calc(var(--star-opacity) * 0.65)) 1px, transparent 1px),
    var(--sky-bg);
  background-size: 108px 108px, 188px 188px, cover;
  background-position:
    calc((var(--mouse-x) - 0.5) * 24px) calc((var(--mouse-y) - 0.5) * 24px),
    calc(48px + (var(--mouse-x) - 0.5) * -18px) calc(70px + (var(--mouse-y) - 0.5) * -18px),
    center;
  transition: background 0.55s ease, background-position 0.12s ease-out;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle 340px at calc(var(--mouse-x) * 100vw) calc(var(--mouse-y) * 100vh), var(--cursor-glow-color), transparent 100%),
    radial-gradient(circle at 12% 18%, rgba(156, 179, 158, 0.12), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(242, 210, 124, 0.08), transparent 24%);
  transition: background 0.45s ease;
}

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

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

.app-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 16px 18px 56px;
}

.sidebar {
  position: sticky;
  top: 14px;
  z-index: 50;
  min-height: 0;
  margin: 0 auto 26px;
  padding: 0;
  color: var(--text-dark);
}

.brand,
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--sage-hover);
}

.brand::before,
.navbar-brand::before {
  content: "✦";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--btn-text);
  background: var(--sage-main);
  box-shadow: 0 0 22px rgba(156, 179, 158, 0.32);
}

.brand strong,
.navbar-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.brand span,
.navbar-brand span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.nav {
  max-width: 960px;
  min-height: 62px;
  margin: 0 auto;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--nav-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.nav a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-dark);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.86;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a::before {
  content: "•";
  color: var(--sage-main);
}

.nav a.active,
.nav a:hover {
  opacity: 1;
  color: var(--text-dark);
  background: var(--sage-bg);
  border-color: var(--sage-main);
  transform: translateY(-1px);
}

.shell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 30px;
  flex: 0 0 auto;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

[data-theme="light"] .slider {
  background: rgba(0, 0, 0, 0.06);
}

.slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 2px;
  bottom: 2px;
  border: 2px solid var(--sage-main);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(156, 179, 158, 0.4);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-switch input:checked + .slider::before {
  transform: translateX(28px);
}

.theme-icon {
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

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

.topbar {
  position: relative;
  min-height: 220px;
  margin: 0 auto 18px;
  padding: 34px 18px 28px;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 1px;
  max-width: 58px;
  margin: 0 auto;
  background: var(--sage-main);
  border-radius: 999px;
}

.page-title {
  display: grid;
  gap: 9px;
  justify-items: center;
  max-width: 620px;
}

.page-title strong {
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-title span {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn,
.icon-btn {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn {
  padding: 9px 16px;
  color: var(--btn-text);
  background: var(--sage-main);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.btn.secondary,
.btn.ghost {
  color: var(--text-dark);
  background: var(--ui-bg);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.icon-btn {
  width: 40px;
  color: var(--text-dark);
  background: var(--ui-bg);
  border: 1px solid var(--border-color);
}

.content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  min-width: 0;
}

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

.card,
.panel,
.login-card,
.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card,
.panel {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}

.card {
  display: grid;
  gap: 9px;
  min-height: 132px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 179, 158, 0.22), transparent 68%);
}

.card:hover,
.list-item:hover {
  transform: translateY(-4px);
  border-color: rgba(156, 179, 158, 0.52);
}

.metric-label,
.muted {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.9;
}

.metric-label {
  font-weight: 900;
  text-transform: uppercase;
}

.metric-value {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
  color: var(--text-dark);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2,
.panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 950;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
  font-size: 13px;
}

th {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ui-bg);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 900;
}

.status.present,
.status.active,
.status.published {
  background: rgba(158, 224, 174, 0.14);
  border-color: rgba(158, 224, 174, 0.45);
  color: var(--success);
}

.status.absent,
.status.blocked,
.status.suspended {
  background: rgba(255, 143, 143, 0.13);
  border-color: rgba(255, 143, 143, 0.42);
  color: var(--danger);
}

.status.late,
.status.inactive {
  background: rgba(244, 162, 97, 0.14);
  border-color: rgba(244, 162, 97, 0.42);
  color: var(--warm-accent);
}

.status.early_leave,
.status.medical_leave,
.status.excused_absence,
.status.not_recorded,
.status.open,
.status.next,
.status.done,
.status.graded {
  color: var(--text-dark);
}

.chip-row,
.top-actions.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-panel,
.accent-card {
  border-color: rgba(244, 162, 97, 0.24);
}

.accent-card::after {
  background: radial-gradient(circle, rgba(244, 162, 97, 0.24), transparent 68%);
}

.progress-line {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-main), var(--warm-accent));
}

.chart-bars.mini {
  height: 150px;
  margin-bottom: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--btn-text);
  background: var(--warm-accent);
  font-weight: 950;
}

.radio-card audio {
  width: 100%;
}

.form {
  display: grid;
  gap: 12px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--ui-bg);
  padding: 11px 12px;
  color: var(--text-dark);
  outline: none;
  box-shadow: none;
}

select option {
  color: #101820;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage-main);
  box-shadow: 0 0 0 4px rgba(156, 179, 158, 0.12);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
}

.login-card {
  width: min(100%, 480px);
  padding: 22px;
}

.login-theme {
  position: fixed;
  top: 16px;
  inset-inline: 16px;
  z-index: 50;
  max-width: 460px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--sage-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-theme strong {
  font-size: 18px;
  font-weight: 950;
}

.login-card .section-title {
  display: block;
  text-align: center;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 950;
}

.chart-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.chart-bar {
  flex: 1;
  min-width: 34px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, var(--sage-hover), var(--sage-main));
  position: relative;
  box-shadow: 0 0 22px rgba(156, 179, 158, 0.2);
}

.chart-bar span {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% + 7px);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.message-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 13px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.list-item.clickable {
  cursor: pointer;
}

.messages {
  min-height: 380px;
  max-height: 540px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 12px;
}

.bubble {
  max-width: 76%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  font-size: 13px;
}

.bubble.me {
  margin-right: auto;
  background: var(--sage-main);
  color: var(--btn-text);
}

.bubble.me .muted {
  color: rgba(7, 16, 13, 0.68);
}

.alert {
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(156, 179, 158, 0.13);
  color: var(--text-dark);
  border: 1px solid rgba(156, 179, 158, 0.26);
}

.error {
  background: rgba(255, 143, 143, 0.13);
  border-color: rgba(255, 143, 143, 0.4);
  color: var(--danger);
}

.is-revealed {
  animation: card-rise 0.45s ease both;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: 100%;
    padding: 88px 10px 36px;
  }

  .sidebar {
    position: fixed;
    inset: 10px 10px auto 10px;
    z-index: 60;
    margin: 0;
  }

  .brand {
    display: none;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    max-width: none;
    min-height: 58px;
    padding: 8px;
  }

  .nav a {
    flex: 0 0 auto;
    min-width: 78px;
    padding-inline: 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .shell-actions {
    position: static;
    flex: 0 0 auto;
    margin-inline-start: 8px;
    z-index: auto;
  }

  .theme-switch {
    width: 52px;
    height: 28px;
  }

  .slider::before {
    width: 22px;
    height: 22px;
  }

  .theme-switch input:checked + .slider::before {
    transform: translateX(24px);
  }

  .topbar {
    min-height: 170px;
    padding-top: 28px;
  }

  .grid.two,
  .message-layout,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .login-page {
    padding: 12px;
  }

  .card,
  .panel,
  .login-card {
    padding: 15px;
  }

  .page-title strong {
    font-size: 32px;
  }

  .page-title span {
    font-size: 13px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .btn {
    flex: 1;
  }

  table {
    min-width: 660px;
  }
}

/* End premium UI polish - 2026-07-07 */

/* Feature navigation capacity - 2026-07-14 */
@media (min-width: 901px) {
  .nav {
    max-width: 1180px;
    justify-content: flex-start;
  }
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 560px) {
  .feature-actions {
    width: 100%;
    justify-content: stretch;
  }

  .feature-actions > * {
    flex: 1 1 130px;
  }
}

/* Login page final overrides - 2026-07-11 */
.login-page {
  place-items: start center;
  padding-top: calc(118px + env(safe-area-inset-top));
}

#loginError:empty {
  display: none;
}

#loginError:not(:empty) {
  display: block;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .login-page {
    padding-top: calc(104px + env(safe-area-inset-top));
  }
}

/* Stable shell, theme preference and brand treatment - 2026-07-14 */
:root:not([data-theme="dark"]) {
  --sage-main: #6f9776;
  --sage-hover: #527b5a;
  --sage-bg: rgba(107, 142, 112, 0.13);
  --sky-bg: radial-gradient(circle at 50% 35%, #f8faf7 0%, #eef5f0 60%, #e8f0ec 100%);
  --star-color: 107, 142, 112;
  --star-opacity: 0.34;
  --cursor-glow-color: rgba(107, 142, 112, 0.13);
  --text-dark: #26302a;
  --text-muted: #68736c;
  --bg-page: #f7f8f6;
  --bg-card: rgba(255, 255, 255, 0.82);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --border-color: rgba(47, 71, 55, 0.12);
  --card-shadow: 0 12px 30px rgba(34, 54, 40, 0.08);
  --btn-text: #ffffff;
  --ui-bg: rgba(255, 255, 255, 0.76);
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

.nav {
  max-width: 1240px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: stretch;
  overflow: visible;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  padding-inline: 2px 5px;
}

.brand::before {
  display: none;
}

.brand-logo,
.login-logo {
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(29, 37, 32, 0.08);
  border-radius: 8px;
}

.brand-logo {
  width: 112px;
  height: 38px;
  padding: 3px 5px;
  flex: 0 0 auto;
}

.brand-user {
  min-width: 0;
  max-width: 126px;
}

.brand-user strong,
.brand-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

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

.shell-actions {
  min-width: 54px;
  margin-inline-start: 2px;
  justify-content: flex-end;
}

.theme-switch {
  position: relative;
  width: 54px;
  height: 32px;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 999px;
  contain: layout paint;
  isolation: isolate;
}

.theme-switch > input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.theme-switch .slider {
  direction: ltr;
  overflow: hidden;
  padding: 0 6px;
  background: rgba(17, 26, 21, 0.07);
}

:root[data-theme="dark"] .theme-switch .slider {
  background: rgba(255, 255, 255, 0.07);
}

.theme-switch .slider::before {
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  bottom: auto;
  border-width: 1.5px;
  background: color-mix(in srgb, var(--nav-bg) 94%, var(--sage-main) 6%);
  transform: translate3d(0, 0, 0);
}

.theme-switch > input:checked + .slider::before {
  transform: translate3d(24px, 0, 0);
}

.theme-switch > input:focus-visible + .slider {
  outline: 2px solid var(--sage-main);
  outline-offset: 2px;
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-theme {
  overflow: hidden;
}

.login-logo {
  width: 122px;
  height: 42px;
  padding: 3px 6px;
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 94px minmax(0, 1fr) 54px;
    gap: 6px;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .brand {
    display: flex;
    padding: 0;
  }

  .brand-logo {
    width: 92px;
    height: 36px;
    padding-inline: 4px;
  }

  .brand-user {
    display: none;
  }

  .nav-links {
    gap: 7px;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }

  .shell-actions {
    position: relative;
    z-index: 2;
    margin: 0;
    background: var(--nav-bg);
  }
}

@media (max-width: 560px) {
  .nav {
    grid-template-columns: 80px minmax(0, 1fr) 50px;
    min-height: 60px;
    padding: 6px;
    gap: 5px;
  }

  .brand-logo {
    width: 78px;
    height: 34px;
  }

  .theme-switch {
    width: 50px;
    height: 30px;
    flex-basis: 50px;
  }

  .shell-actions {
    min-width: 50px;
  }

  .theme-switch .slider::before {
    width: 22px;
    height: 22px;
    top: 3px;
  }

  .theme-switch > input:checked + .slider::before {
    transform: translate3d(22px, 0, 0);
  }

  .login-theme {
    top: calc(10px + env(safe-area-inset-top));
    inset-inline: 12px;
    padding: 8px 10px;
  }

  .login-logo {
    width: 106px;
    height: 38px;
  }
}

/* Learning spaces and roadmap - 2026-07-14 */
.feature-intro {
  min-height: 230px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block: 1px solid var(--border-color);
  background: linear-gradient(90deg, rgba(156, 179, 158, .08), transparent 58%, rgba(244, 162, 97, .07));
}

.feature-intro > div:first-child {
  max-width: 760px;
}

.feature-kicker {
  color: var(--warm-accent);
  font-size: 11px;
  font-weight: 900;
}

.feature-intro h1 {
  margin: 8px 0 5px;
  font-size: 36px;
  line-height: 1.45;
  font-weight: 950;
}

.feature-intro p {
  margin: 0;
  color: var(--text-muted);
  line-height: 2;
}

.assistant-today,
.circle-highlight,
.growth-score {
  min-width: 240px;
  padding: 17px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(244, 162, 97, .28);
  border-radius: 8px;
  background: rgba(244, 162, 97, .07);
}

.assistant-today span,
.circle-highlight span,
.growth-score span {
  color: var(--warm-accent);
  font-size: 10px;
  font-weight: 850;
}

.assistant-today strong,
.circle-highlight strong,
.growth-score strong {
  font-size: 24px;
}

.assistant-today small,
.circle-highlight small,
.growth-score small {
  color: var(--text-muted);
  font-size: 10px;
}

.assistant-console {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 16px;
}

.assistant-thread-panel,
.assistant-plan {
  display: grid;
  gap: 12px;
}

.assistant-thread-panel {
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
}

.assistant-thread {
  min-height: 360px;
  max-height: 560px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--ui-bg);
}

.assistant-message {
  max-width: 84%;
  padding: 11px 13px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}

.assistant-message.me {
  margin-right: auto;
  color: var(--btn-text);
  background: var(--sage-main);
}

.assistant-message strong {
  color: var(--warm-accent);
  font-size: 10px;
}

.assistant-message.me strong {
  color: inherit;
}

.assistant-message p {
  margin: 0;
  font-size: 12px;
  line-height: 2;
}

.assistant-prompts,
.forum-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.assistant-prompts::-webkit-scrollbar,
.forum-tabs::-webkit-scrollbar {
  display: none;
}

.assistant-prompts button,
.forum-tabs button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  color: var(--text-dark);
  background: var(--ui-bg);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.forum-tabs button.active,
.assistant-prompts button:hover {
  color: var(--warm-accent);
  border-color: rgba(244, 162, 97, .38);
  background: rgba(244, 162, 97, .08);
}

.forum-tabs button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-right: 4px;
  border-radius: 6px;
  background: var(--ui-bg);
  font-size: 9px;
}

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

.study-plan {
  display: grid;
  gap: 8px;
}

.study-plan label {
  min-height: 65px;
  padding: 10px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-dark);
  background: var(--ui-bg);
}

.study-plan label:has(input:checked) {
  opacity: .58;
}

.study-plan label:has(input:checked) strong {
  text-decoration: line-through;
}

.study-plan input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--warm-accent);
}

.study-plan span {
  min-width: 0;
  display: grid;
}

.study-plan strong {
  font-size: 11px;
}

.study-plan small,
.study-plan time {
  color: var(--text-muted);
  font-size: 9px;
}

.compact-plan label:nth-child(even) {
  display: none;
}

.energy-note,
.circle-project {
  padding: 13px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(244, 162, 97, .24);
  border-radius: 8px;
  background: rgba(244, 162, 97, .06);
}

.energy-note span,
.circle-project span {
  color: var(--warm-accent);
  font-size: 9px;
  font-weight: 850;
}

.energy-note strong,
.circle-project strong {
  font-size: 11px;
}

.energy-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.9;
}

.flashcard-preview {
  min-height: 200px;
  padding: 22px;
  display: grid;
  place-content: center;
  gap: 9px;
  border: 1px solid rgba(244, 162, 97, .26);
  border-radius: 8px;
  text-align: center;
  background: rgba(244, 162, 97, .045);
  cursor: pointer;
}

.flashcard-preview span,
.flashcard-preview small {
  color: var(--warm-accent);
  font-size: 10px;
}

.flashcard-preview p {
  margin: 0;
  color: var(--success);
  line-height: 2;
}

.science-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
}

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

.science-feed,
.science-side {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.science-post {
  min-width: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.vote-column {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
}

.vote-column button {
  width: 34px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--ui-bg);
  cursor: pointer;
}

.vote-column button.active,
.vote-column button:hover {
  color: var(--warm-accent);
  border-color: rgba(244, 162, 97, .38);
}

.science-post-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.science-post-body header,
.science-post-body footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.science-post-body h2 {
  margin: 0;
  font-size: 17px;
}

.science-post-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 2;
}

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

.circle-card {
  min-width: 0;
  min-height: 330px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.circle-card header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.circle-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 162, 97, .28);
  border-radius: 8px;
  color: var(--warm-accent);
  background: rgba(244, 162, 97, .08);
  font-size: 16px;
  font-weight: 950;
}

.circle-card h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.circle-card > p {
  margin: 0;
  color: var(--text-muted);
  line-height: 2;
}

.circle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.circle-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--ui-bg);
  font-size: 9px;
}

.circle-card > .btn {
  align-self: end;
  margin-top: auto;
}

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

.circle-steps span {
  min-height: 86px;
  padding: 10px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  background: var(--ui-bg);
  font-size: 10px;
}

.circle-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #171006;
  background: var(--warm-accent);
}

.growth-score strong {
  color: var(--warm-accent);
  font-size: 48px;
}

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

.growth-rings > div {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 10px solid rgba(156, 179, 158, .1);
  border-top-color: var(--warm-accent);
  border-right-color: var(--sage-main);
  border-radius: 50%;
  text-align: center;
}

.growth-rings strong {
  font-size: 18px;
}

.growth-rings span {
  color: var(--text-muted);
  font-size: 9px;
}

.preview-seal {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 162, 97, .38);
  border-radius: 50%;
  color: var(--warm-accent);
  text-align: center;
  font-size: 14px;
  font-weight: 950;
}

.preview-notice {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(244, 162, 97, .28);
  border-radius: 8px;
  background: rgba(244, 162, 97, .06);
}

.preview-notice strong {
  color: var(--warm-accent);
}

.preview-notice p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.preview-groups {
  display: grid;
  gap: 20px;
}

.preview-group {
  display: grid;
  gap: 12px;
}

.preview-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.preview-group h2 {
  margin: 3px 0 0;
  font-size: 19px;
}

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

.preview-grid article {
  min-height: 190px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.preview-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--warm-accent);
  background: rgba(244, 162, 97, .09);
}

.preview-grid p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.preview-grid small {
  margin-top: auto;
  color: var(--warm-accent);
  font-size: 9px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .feature-intro {
    min-height: 0;
    padding: 22px 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .assistant-today,
  .circle-highlight,
  .growth-score {
    min-width: 0;
  }

  .assistant-console,
  .science-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 640px) {
  .feature-intro h1 {
    font-size: 27px;
  }

  .assistant-console,
  .circle-grid,
  .science-side,
  .preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .science-post {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
  }

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

  .assistant-message {
    max-width: 94%;
  }

  .circle-steps,
  .growth-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .preview-seal {
    width: 92px;
    height: 92px;
  }
}

/* Mobile layout stability fixes - 2026-07-11 */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .app-shell {
    overflow-x: clip;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .sidebar {
    max-width: calc(100vw - 20px);
  }

  .nav {
    align-items: center;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
  }

  .nav a {
    max-width: 134px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shell-actions {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin-inline-start: 0;
    padding-inline-start: 6px;
    background: linear-gradient(90deg, transparent, var(--nav-bg) 34%);
  }

  .content,
  .content > *,
  .grid,
  .grid.two,
  .message-layout,
  .form-row,
  .panel,
  .card,
  .list-item,
  .table-wrap,
  .messages {
    min-width: 0;
  }

  .top-actions,
  .top-actions.inline,
  .hero-actions,
  .section-title > div {
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-actions .btn,
  .hero-actions .btn,
  .section-title .btn {
    min-width: min(100%, 120px);
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 660px;
  }

  .messages {
    max-height: none;
  }

  .bubble {
    max-width: 92%;
    overflow-wrap: anywhere;
  }

  .chart-bars {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@supports not (overflow: clip) {
  @media (max-width: 900px) {
    .app-shell {
      overflow-x: hidden;
    }
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .nav a {
    max-width: 112px;
  }

  .theme-switch {
    flex-basis: 50px;
    width: 50px;
  }

  .top-actions .btn,
  .hero-actions .btn,
  .section-title .btn {
    flex: 1 1 100%;
  }

  .btn,
  .icon-btn {
    white-space: normal;
    text-align: center;
  }

  .bubble {
    max-width: 96%;
  }
}

/* Login page fixes - 2026-07-11 */
.login-page {
  place-items: start center;
  padding-top: calc(118px + env(safe-area-inset-top));
}

.login-card {
  margin-top: 0;
}

#loginError:empty {
  display: none;
}

#loginError:not(:empty) {
  display: block;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .login-page {
    padding-top: calc(104px + env(safe-area-inset-top));
  }
}

/* Login page final overrides - 2026-07-11 */
.login-page {
  place-items: start center;
  padding-top: calc(118px + env(safe-area-inset-top));
}

#loginError:empty {
  display: none;
}

#loginError:not(:empty) {
  display: block;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .login-page {
    padding-top: calc(104px + env(safe-area-inset-top));
  }
}
/* Premium UI polish - 2026-07-07 */
:root {
  --ease-premium: cubic-bezier(0.2, 0.8, 0.2, 1);
  --touch-ring: 0 0 0 4px rgba(156, 179, 158, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--btn-text);
  background: var(--warm-accent);
}

.nav,
.table-wrap,
.messages {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.nav {
  scroll-snap-type: x proximity;
  transition: border-color 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium), background 0.25s ease;
}

.nav a {
  position: relative;
  scroll-snap-align: center;
  user-select: none;
}

.nav a.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 24px rgba(156, 179, 158, 0.12);
}

.btn,
.icon-btn,
.nav a,
.list-item,
.card,
.tool,
.student-tile {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.btn,
.icon-btn,
.nav a,
.tool {
  touch-action: manipulation;
}

.btn:active,
.icon-btn:active,
.nav a:active,
.tool:active,
.list-item.clickable:active {
  transform: translateY(1px) scale(0.985);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.nav a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tool:focus-visible {
  outline: none;
  box-shadow: var(--touch-ring);
  border-color: var(--sage-main);
}

.panel {
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%, rgba(244, 162, 97, 0.035));
  opacity: 0.74;
}

.panel > *,
.card > *,
.list-item > * {
  position: relative;
  z-index: 1;
}

.card,
.panel,
.list-item {
  transition:
    transform 0.28s var(--ease-premium),
    border-color 0.28s var(--ease-premium),
    background 0.28s ease,
    box-shadow 0.28s var(--ease-premium);
}

.status {
  transition: transform 0.22s var(--ease-premium), border-color 0.22s ease, background 0.22s ease;
}

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

.metric-value,
.card strong,
.page-title strong {
  text-wrap: balance;
}

.muted,
.page-title span {
  text-wrap: pretty;
}

.form input,
.form select,
.form textarea,
input,
select,
textarea {
  min-height: 44px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.table-wrap {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.messages {
  scroll-behavior: smooth;
}

.bubble {
  animation: bubble-in 0.24s var(--ease-premium) both;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .icon-btn:hover,
  .nav a:hover,
  .tool:hover {
    transform: translateY(-2px);
  }

  .card:hover,
  .list-item:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding-top: calc(88px + env(safe-area-inset-top));
    padding-inline: 10px;
  }

  .sidebar {
    top: calc(10px + env(safe-area-inset-top));
    inset-inline: 10px;
  }

  .nav {
    gap: 7px;
    padding: 7px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }

  .nav a {
    min-width: 76px;
    min-height: 42px;
  }

  .shell-actions {
    margin-inline-start: 4px;
  }

  .topbar {
    min-height: 150px;
    margin-bottom: 12px;
  }

  .content {
    gap: 14px;
  }

  .grid {
    gap: 13px;
  }

  .card,
  .panel,
  .login-card,
  .list-item {
    border-radius: 18px;
  }

  .card,
  .panel {
    padding: 14px;
  }

  .btn,
  .icon-btn {
    min-height: 44px;
  }

  .section-title {
    margin-bottom: 11px;
  }

  .table-wrap {
    border-radius: 16px;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-top: calc(82px + env(safe-area-inset-top));
  }

  .nav {
    min-height: 56px;
  }

  .nav a {
    min-width: 72px;
    padding-inline: 10px;
  }

  .page-title strong {
    font-size: 30px;
  }

  .top-actions .btn {
    flex-basis: calc(50% - 5px);
  }

  .metric-value {
    font-size: 30px;
  }

  .messages {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* End premium UI polish - 2026-07-07 */

/* Login page final overrides - 2026-07-11 */
.login-page {
  place-items: start center;
  padding-top: calc(118px + env(safe-area-inset-top));
}

#loginError:empty {
  display: none;
}

#loginError:not(:empty) {
  display: block;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .login-page {
    padding-top: calc(104px + env(safe-area-inset-top));
  }
}

/* Final mobile shell guards - must remain last. */
.theme-switch > input {
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 54px;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .brand {
    display: flex;
  }

  .shell-actions {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    grid-template-columns: 80px minmax(0, 1fr) 50px;
    min-height: 60px;
  }
}
