:root {
  color-scheme: dark;
  --bg: #0f0d18;
  --surface: #171427;
  --surface-2: #201c33;
  --surface-3: #29243e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f1ff;
  --muted: #aaa3bd;
  --primary: #a98cff;
  --primary-strong: #8a65ff;
  --pink: #ff7db7;
  --cyan: #73d8e6;
  --green: #75d6a6;
  --yellow: #f5c86d;
  --red: #ff7b88;
  --shadow: 0 22px 55px rgba(5, 3, 16, 0.34);
  font-family: "Leelawadee UI", "Noto Sans Thai", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(138, 101, 255, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 252px;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(18, 15, 31, 0.94);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 26px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), var(--pink));
  color: #150e29;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(169, 140, 255, 0.28);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: 160ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a.active {
  color: #fff;
  border-color: rgba(169, 140, 255, 0.26);
  background: linear-gradient(90deg, rgba(169, 140, 255, 0.18), rgba(255, 125, 183, 0.07));
}

.nav-icon {
  width: 23px;
  color: var(--primary);
  text-align: center;
  font-size: 17px;
}

.nav-label {
  margin: 18px 12px 5px;
  color: #716a82;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-footer {
  margin-top: auto;
  padding: 15px 12px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.sidebar-footer small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
}

.server-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.server-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(117, 214, 166, 0.1);
}

.main-column {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 13, 24, 0.78);
  backdrop-filter: blur(22px);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.topbar-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-context strong {
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.queue-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(169, 140, 255, 0.25);
  border-radius: 12px;
  background: rgba(169, 140, 255, 0.12);
  color: var(--primary);
  font-weight: 800;
}

main {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 34px 34px 70px;
}

.loading-screen {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.loader {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(169, 140, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.page-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  transition: 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(169, 140, 255, 0.4);
}

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

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-strong), var(--pink));
  color: #fff;
  box-shadow: 0 10px 28px rgba(138, 101, 255, 0.23);
}

.btn-danger {
  border-color: rgba(255, 123, 136, 0.25);
  background: rgba(255, 123, 136, 0.09);
  color: #ffabb3;
}

.btn-ghost {
  background: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card,
.panel,
.job-card,
.workflow-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(32, 28, 51, 0.88), rgba(23, 20, 39, 0.88));
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 132px;
  padding: 19px;
  border-radius: 18px;
}

.stat-card .stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 16px;
  font-size: 32px;
}

.stat-card small {
  display: block;
  margin-top: 5px;
  color: #777086;
}

.stat-card.purple strong {
  color: var(--primary);
}

.stat-card.cyan strong {
  color: var(--cyan);
}

.stat-card.yellow strong {
  color: var(--yellow);
}

.stat-card.green strong {
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.panel {
  border-radius: 18px;
  overflow: hidden;
}

.panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.panel-body {
  padding: 18px;
}

.quick-create {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 125, 183, 0.16), transparent 14rem),
    linear-gradient(145deg, rgba(42, 34, 70, 0.94), rgba(25, 20, 43, 0.94));
}

.quick-create .panel-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
}

.quick-create .kicker {
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-create h2 {
  margin: 18px 0 10px;
  font-size: 26px;
  line-height: 1.25;
}

.quick-create p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.quick-create .btn {
  margin-top: auto;
}

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

.job-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  transition: 160ms ease;
}

.job-row:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.thumb {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-3);
  color: #716a82;
}

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

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

.job-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

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

.status-running,
.status-queued {
  color: var(--cyan);
}

.status-generated {
  color: var(--yellow);
}

.status-approved {
  color: var(--green);
}

.status-rejected,
.status-failed {
  color: var(--red);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 18px;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #d8d1e8;
  font-size: 12px;
  font-weight: 700;
}

.field-hint {
  color: #777086;
  font-size: 10px;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(10, 8, 18, 0.48);
  color: var(--text);
  transition: 160ms ease;
}

input,
select {
  min-height: 44px;
  padding: 9px 12px;
}

textarea {
  min-height: 170px;
  resize: vertical;
  padding: 12px;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(169, 140, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(169, 140, 255, 0.1);
}

.workflow-summary {
  padding: 16px;
  border: 1px solid rgba(169, 140, 255, 0.18);
  border-radius: 14px;
  background: rgba(169, 140, 255, 0.06);
}

.workflow-summary strong {
  display: block;
  margin-bottom: 7px;
}

.workflow-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.policy-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.policy-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

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

.job-card {
  overflow: hidden;
  border-radius: 17px;
}

.job-card-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(169, 140, 255, 0.1), rgba(255, 125, 183, 0.07)),
    var(--surface);
  color: #777086;
}

.job-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-body {
  padding: 14px;
}

.job-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.job-card h3 {
  margin: 13px 0 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 17px;
}

.empty-state p {
  max-width: 460px;
  margin: 0;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.output-stage {
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%),
    var(--surface);
  background-size: 24px 24px;
}

.output-stage img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 24px;
}

.timeline-item::before {
  position: absolute;
  inset: 5px auto 0 6px;
  width: 1px;
  height: 100%;
  background: var(--line);
  content: "";
}

.timeline-item::after {
  position: absolute;
  inset: 4px auto auto 2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item strong {
  display: block;
  font-size: 12px;
}

.timeline-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #ddd6eb;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.inline-form select {
  min-width: 110px;
  min-height: 34px;
  padding: 5px 8px;
}

.license-allowed {
  color: var(--green);
}

.license-pending {
  color: var(--yellow);
}

.license-restricted,
.license-prohibited {
  color: var(--red);
}

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

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--pink));
}

.notice {
  padding: 13px 15px;
  border: 1px solid rgba(245, 200, 109, 0.2);
  border-radius: 13px;
  background: rgba(245, 200, 109, 0.06);
  color: #e9cf99;
  font-size: 12px;
  line-height: 1.65;
}

.auth-view .app-shell {
  display: block;
}

.auth-view .sidebar,
.auth-view .topbar {
  display: none;
}

.auth-view .main-column {
  min-height: 100vh;
}

.auth-view main {
  min-height: 100vh;
  max-width: none;
  padding: 0;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  background:
    radial-gradient(circle at 18% 18%, rgba(169, 140, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 44% 82%, rgba(255, 125, 183, 0.12), transparent 25rem),
    var(--bg);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px);
}

.auth-visual::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(169, 140, 255, 0.16);
  border-radius: 42% 58% 64% 36%;
  transform: rotate(18deg);
  box-shadow:
    0 0 0 44px rgba(169, 140, 255, 0.025),
    0 0 0 88px rgba(255, 125, 183, 0.018);
}

.auth-brand-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 34px;
  font-size: 20px;
}

.auth-visual h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.auth-visual h1 span {
  color: var(--primary);
}

.auth-visual > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.8;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.auth-points span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8d1e8;
  font-size: 12px;
}

.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 32px clamp(24px, 6vw, 88px);
  border-left: 1px solid var(--line);
  background: rgba(20, 17, 34, 0.76);
  backdrop-filter: blur(24px);
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 20px;
}

.auth-card h2 {
  margin: 8px 0 6px;
  font-size: 30px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.auth-help {
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}

.auth-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 123, 136, 0.3);
  border-radius: 12px;
  background: rgba(255, 123, 136, 0.08);
  color: #ffc0c6;
  font-size: 12px;
  line-height: 1.6;
}

.logout-button {
  min-height: 38px;
  padding-inline: 12px;
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 5, 14, 0.76);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(650px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 5px 0 0;
}

.muted-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-bottom: 14px;
}

.copy-row input {
  min-width: 0;
}

.toast-region {
  position: fixed;
  z-index: 100;
  inset: auto 20px 20px auto;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 40px));
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(30, 25, 48, 0.97);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease-out;
  font-size: 12px;
  line-height: 1.55;
}

.toast.error {
  border-color: rgba(255, 123, 136, 0.28);
  color: #ffc0c6;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

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

  .dashboard-grid,
  .form-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

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

  .auth-visual {
    min-height: 38vh;
    padding: 38px 24px;
  }

  .auth-visual h1 {
    font-size: 38px;
  }

  .auth-points {
    display: none;
  }

  .auth-card-wrap {
    min-height: 62vh;
    padding: 40px 22px 64px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .logout-button {
    width: 38px;
    overflow: hidden;
    color: transparent;
  }

  .logout-button::after {
    content: "↪";
    color: var(--text);
  }

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

  .app-shell {
    display: block;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .topbar {
    height: 68px;
    padding: 0 14px;
  }

  .queue-chip {
    display: none;
  }

  .user-chip {
    min-width: 0;
  }

  .user-chip div {
    display: none;
  }

  main {
    padding: 24px 15px 60px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .cards-grid,
  .system-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

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