@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Rubik";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-800-italic.woff2") format("woff2");
}

:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --ink: #0c2340;
  --muted: #5f7186;
  --brand: #003366;
  --brand-dark: #00264d;
  --brand-soft: #e6edf5;
  --accent: #95c800;
  --accent-soft: #f3fadf;
  --border: #dbe5ef;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --success: #4f7a00;
  --success-soft: #f0f8dd;
  --warning-soft: #f3fadf;
  --shadow-sm: 0 1px 2px rgba(0, 51, 102, 0.06);
  --shadow-md: 0 18px 40px rgba(0, 51, 102, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rubik", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mono {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-wordmark {
  display: block;
  width: auto;
  height: 38px;
}

.login-logo {
  display: block;
  width: min(100%, 330px);
  height: auto;
  margin-bottom: 1.6rem;
}

.empty-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 14px;
}

.auth-page {
  background: var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 100vh;
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem);
  overflow: hidden;
  color: #f5f9ff;
  background: var(--brand);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -12rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.auth-hero .eyebrow {
  color: #d7f38f;
}

.auth-hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  margin-bottom: 1.2rem;
}

.auth-hero-text {
  max-width: 30rem;
  color: rgba(245, 249, 255, 0.76);
  font-size: 1.05rem;
}

.auth-features {
  display: grid;
  gap: 0.8rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(245, 249, 255, 0.92);
}

.auth-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 166, 41, 0.16);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: min(100%, 26rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.auth-card > .muted {
  margin-bottom: 1.6rem;
}

.auth-note {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(100% - 2.5rem, 1180px);
  min-height: 72px;
  margin: 0 auto;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  flex: 1;
}

.main-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--surface-soft);
}

.main-nav a.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-details strong {
  font-size: 0.85rem;
}

.user-details small {
  color: var(--muted);
  font-size: 0.75rem;
}

.role-label {
  text-transform: capitalize;
}

.logout-form {
  margin-left: 0.3rem;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.container {
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.page-heading p:last-child {
  margin-bottom: 0;
}

.header-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.back-link::before {
  content: "\2190";
  margin-right: 0.35rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert-success {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(6, 118, 71, 0.18);
}

.alert-error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(180, 35, 24, 0.18);
}

.form-stack {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.autocomplete {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(16, 35, 61, 0.12);
}

.autocomplete-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background: var(--brand-soft);
}

.autocomplete-item span {
  font-size: 0.88rem;
  font-weight: 700;
}

.autocomplete-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

.autocomplete-empty {
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.autocomplete-hint {
  display: block;
  min-height: 1rem;
  color: var(--brand-dark);
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: #95a5b8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.08s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.btn-login {
  color: var(--brand-dark);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-login:hover {
  color: var(--brand-dark);
  background: #85b400;
  border-color: #85b400;
}

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

.btn-secondary:hover {
  color: var(--brand-dark);
  border-color: #b8cbe2;
  background: var(--surface-soft);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.btn-danger-ghost {
  color: var(--danger);
  background: transparent;
  border-color: rgba(180, 35, 24, 0.22);
}

.btn-danger-ghost:hover {
  background: var(--danger-soft);
}

.btn-success-ghost {
  color: var(--success);
  background: transparent;
  border-color: rgba(6, 118, 71, 0.22);
}

.btn-success-ghost:hover {
  background: var(--success-soft);
}

.btn-sm {
  padding: 0.45rem 0.7rem;
  font-size: 0.79rem;
}

.btn-block {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat-card small {
  color: var(--muted);
}

.stat-card-actions {
  justify-content: center;
}

.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.section-block {
  margin-top: 1.2rem;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading p {
  margin-bottom: 0;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 210px;
  padding: 1.35rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.app-card:hover {
  color: var(--ink);
  border-color: #a9c1dc;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 35, 61, 0.10);
}

.app-card-static {
  cursor: default;
}

.app-card-static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.app-logo {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-soft), #f5f9fd);
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.app-logo img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  background: #fff;
}

.app-logo-sm {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 1rem;
}

.app-logo-sm img {
  padding: 4px;
}

.app-card-body {
  flex: 1;
}

.app-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-action {
  align-self: flex-start;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-card-action::after {
  content: "\2197";
  margin-left: 0.25rem;
}

.app-card-static .app-card-action {
  color: var(--muted);
}

.app-card-static .app-card-action::after {
  content: "";
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.2rem 1.5rem;
  background: var(--surface);
  border: 1px dashed #c8d8e8;
  border-radius: var(--radius);
}

.empty-state p {
  max-width: 28rem;
}

.empty-state .btn {
  margin-top: 0.7rem;
}

.panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-narrow {
  max-width: 720px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 34rem);
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.16);
}

.search-form input[type="search"]::placeholder {
  color: #95a5b8;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.table-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.page-link.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.page-link.is-disabled {
  opacity: 0.45;
  background: var(--surface-soft);
  pointer-events: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.data-table th {
  padding: 0.7rem 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid #edf3f8;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f8fbfe;
}

.cell-actions {
  text-align: right;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 12rem;
}

.user-cell > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.user-cell small {
  color: var(--muted);
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.badge-admin {
  color: #4f6b1f;
  background: var(--warning-soft);
}

.badge-user {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.badge-protected {
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-on {
  color: var(--success);
}

.status-on::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(6, 118, 71, 0.12);
}

.status-off {
  color: var(--danger);
}

.status-off::before {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.url-cell {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
}

.assignment-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.assignment-card:hover {
  border-color: #b8cbe2;
  background: #f8fbfe;
}

.assignment-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.assignment-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.assignment-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.assignment-body strong {
  font-size: 0.9rem;
}

.assignment-body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-card .status {
  font-size: 0.7rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.switch-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  cursor: pointer;
}

.switch-field input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.switch-field span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.switch-field small {
  color: var(--muted);
}

.current-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-inline input {
  accent-color: var(--danger);
}

.error-page {
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 51, 102, 0.08), transparent 40%),
    var(--bg);
}

.error-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.error-card {
  width: min(100%, 30rem);
  padding: 2.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.error-card .brand {
  margin-bottom: 1.7rem;
}

.error-card p {
  margin-bottom: 1.7rem;
}

.error-status {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--brand);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

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

  .auth-hero {
    padding: 2.5rem 1.5rem;
  }

  .auth-hero h1 {
    font-size: 2.35rem;
  }

  .auth-features {
    display: none;
  }

  .auth-panel {
    padding: 1.5rem;
  }

  .auth-card {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.8rem 0;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
  }

  .user-menu {
    margin-left: auto;
  }

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

  .stat-card-actions {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
    padding-top: 1.5rem;
  }

  .topbar-inner {
    width: min(100% - 1.5rem, 1180px);
  }

  .user-details {
    display: none;
  }

  .page-heading,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

  .search-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-form input[type="search"] {
    flex-basis: 100%;
  }

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

  .stat-card-actions {
    grid-column: auto;
  }

  .panel {
    padding: 1rem;
  }

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

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

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

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

  .auth-card {
    padding: 1.5rem;
  }
}


