:root {
  --color-brand: #14b8a6;
  --color-brand-strong: #2dd4bf;
  --color-brand-deep: #0f766e;
  --color-brand-soft: rgb(20 184 166 / 14%);
  --color-page: #09111b;
  --color-page-raised: #0d1722;
  --color-surface: #111c29;
  --color-surface-raised: #162332;
  --color-surface-hover: #1b2b3b;
  --color-border: #263647;
  --color-border-strong: #34495d;
  --color-text: #f2f7fb;
  --color-text-muted: #9eafbf;
  --color-success: #4ade80;
  --color-success-soft: rgb(34 197 94 / 14%);
  --color-warning: #fbbf24;
  --color-warning-soft: rgb(245 158 11 / 14%);
  --color-danger: #fb7185;
  --color-danger-soft: rgb(244 63 94 / 14%);
  --color-info: #60a5fa;
  --color-info-soft: rgb(59 130 246 / 14%);
  --color-neutral-soft: rgb(148 163 184 / 12%);
  --radius-card: 16px;
  --radius-control: 11px;
  --shadow-card: 0 16px 40px rgb(0 0 0 / 18%);
  --shadow-header: 0 12px 34px rgb(0 0 0 / 24%);
  --header-height: 72px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-page);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(145deg, #0c1722 0%, var(--color-page) 42%, #071018 100%);
}

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

a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 3px solid var(--color-brand-strong);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: #042f2e;
  background: var(--color-brand-strong);
  border-radius: var(--radius-control);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-heading p {
  max-width: 52rem;
  margin: 0.45rem 0 0;
  color: var(--color-text-muted);
}

.plate-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  color: #0b1620;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f8fafc;
  border: 2px solid #0b1620;
  border-top: 6px solid #2563eb;
  border-radius: 7px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 24%);
}

.plate-badge-lg {
  padding: 0.5rem 1rem;
  font-size: 1.75rem;
}

.app-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding: max(0.7rem, env(safe-area-inset-top, 0px)) 1rem 0.7rem;
  background: rgb(7 15 24 / 74%);
  border-bottom: 1px solid rgb(71 96 119 / 38%);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-header.is-scrolled {
  background: rgb(7 15 24 / 88%);
  border-bottom-color: rgb(71 96 119 / 62%);
  box-shadow: var(--shadow-header);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  min-height: 48px;
  margin: 0 auto;
  gap: 0.75rem;
}

.brand-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-text);
}

.brand-identity:hover {
  text-decoration: none;
}

.brand-mark,
.feature-icon,
.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--color-brand-strong);
  background: var(--color-brand-soft);
  border: 1px solid rgb(45 212 191 / 28%);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  max-width: min(42vw, 420px);
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy > span {
  margin-top: 0.18rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.conn-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  color: var(--color-success);
  font-size: 0.78rem;
  font-weight: 650;
  background: var(--color-success-soft);
  border: 1px solid rgb(74 222 128 / 22%);
  border-radius: 999px;
}

.connection-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(74 222 128 / 10%);
}

.conn-pill.offline {
  color: var(--color-danger);
  background: var(--color-danger-soft);
  border-color: rgb(251 113 133 / 24%);
}

.user-chip {
  display: none;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.user-avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #042f2e;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--color-brand-strong);
  border-radius: 50%;
}

.user-copy {
  display: flex;
  max-width: 150px;
  flex-direction: column;
  line-height: 1.15;
}

.user-copy strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy small {
  margin-top: 0.15rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
}

.header-logout {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
}

.header-logout:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.header-logout span {
  display: none;
}

.shell-layout {
  display: flex;
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  flex-direction: column;
}

.side-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  overflow-x: auto;
  background: rgb(13 23 34 / 82%);
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: thin;
}

.nav-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
}

.nav-link:hover {
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface-hover);
}

.nav-link.active {
  color: var(--color-brand-strong);
  background: var(--color-brand-soft);
  border-color: rgb(45 212 191 / 18%);
}

.main-content {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 1rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

.card {
  padding: 1rem;
  background: linear-gradient(145deg, rgb(22 35 50 / 96%), rgb(15 27 39 / 96%));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.75rem;
}

.kpi-grid .card {
  position: relative;
  overflow: hidden;
}

.kpi-grid .card::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  content: "";
  background: var(--color-brand);
  opacity: 0.65;
}

.kpi-value {
  margin-top: 0.25rem;
  font-size: 1.625rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.help-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  color: var(--color-text);
  background: #0a1520;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 20%);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #66798b;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #466077;
}

input:focus,
select:focus,
textarea:focus {
  background: #0c1925;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 14%);
  outline: none;
}

select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.plate-input-field {
  min-height: 58px !important;
  font-size: 1.45rem !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.input-with-icon {
  position: relative;
}

.input-with-icon > span {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  z-index: 1;
  display: inline-flex;
  color: var(--color-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.input-with-icon input {
  padding-left: 3rem;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.05rem;
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: transform 120ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  min-height: 54px;
  padding: 0.82rem 1.2rem;
  font-size: 1rem;
}

.btn-xl {
  min-height: 62px;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #022c2a;
  background: var(--color-brand-strong);
  border-color: #5eead4;
  box-shadow: 0 10px 24px rgb(20 184 166 / 18%);
}

.btn-primary:hover {
  color: #022c2a;
  background: #5eead4;
  box-shadow: 0 12px 30px rgb(20 184 166 / 26%);
}

.btn-secondary {
  color: var(--color-text);
  background: rgb(255 255 255 / 4%);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: #4a6379;
}

.btn-danger {
  color: #fff1f2;
  background: #be123c;
  border-color: #e11d48;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 999px;
}

.badge-success { color: var(--color-success); background: var(--color-success-soft); border-color: rgb(74 222 128 / 20%); }
.badge-warning { color: var(--color-warning); background: var(--color-warning-soft); border-color: rgb(251 191 36 / 20%); }
.badge-danger { color: var(--color-danger); background: var(--color-danger-soft); border-color: rgb(251 113 133 / 20%); }
.badge-info { color: var(--color-info); background: var(--color-info-soft); border-color: rgb(96 165 250 / 20%); }
.badge-brand { color: var(--color-brand-strong); background: var(--color-brand-soft); border-color: rgb(45 212 191 / 20%); }
.badge-neutral { color: #c2ced9; background: var(--color-neutral-soft); border-color: rgb(148 163 184 / 18%); }

.alert {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
}

.alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.alert-info { color: #bfdbfe; background: var(--color-info-soft); border-color: rgb(96 165 250 / 30%); }
.alert-success { color: #bbf7d0; background: var(--color-success-soft); border-color: rgb(74 222 128 / 30%); }
.alert-warning { color: #fde68a; background: var(--color-warning-soft); border-color: rgb(251 191 36 / 30%); }
.alert-danger { color: #fecdd3; background: var(--color-danger-soft); border-color: rgb(251 113 133 / 30%); }

.capture-app {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  gap: 0.75rem;
}

.capture-heading {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.capture-heading h1 {
  font-size: 1.25rem;
}

.capture-heading .btn {
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.shell-layout:has(.capture-app.is-camera-open) {
  height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px));
  min-height: 0;
  overflow: hidden;
}

.shell-layout:has(.capture-app.is-camera-open) .main-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 0.55rem;
  padding-bottom: 0.45rem;
}

.capture-app.is-camera-open {
  flex: 1;
  min-height: 0;
  gap: 0.4rem;
  overflow: hidden;
}

.capture-app.is-camera-open .capture-heading h1 {
  font-size: 1.1rem;
}

.capture-live {
  flex: 1;
  min-height: 0;
  gap: 0.45rem;
  padding: 0.6rem;
  overflow: hidden;
}

.capture-live .camera-stage {
  flex: 1 1 auto;
  min-height: 96px;
}

.capture-live .camera-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
}

.camera-plate-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.camera-plate-form .btn {
  min-height: 44px;
  padding-inline: 0.75rem;
}

.plate-input-compact {
  min-height: 44px !important;
  font-size: 1.2rem !important;
}

.camera-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.4rem;
}

.camera-actions .btn {
  min-height: 44px;
  padding: 0.4rem 0.45rem;
  font-size: 0.9rem;
}

.capture-command {
  padding: clamp(1rem, 4vw, 1.5rem);
  border-color: #30465a;
}

.capture-command-title {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-icon,
.upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.capture-command-title h2 {
  margin: 0;
  font-size: 1.1rem;
}

.capture-command-title p {
  margin: 0.3rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.capture-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.capture-separator::before,
.capture-separator::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--color-border);
}

.quick-plate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.upload-action {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  color: var(--color-text);
  background: rgb(255 255 255 / 3%);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.upload-action:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-brand);
}

.upload-action > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.upload-action strong {
  font-size: 0.92rem;
}

.upload-action small {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.camera-stage {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #02070c;
  border: 1px solid #31475a;
  border-radius: 14px;
}

.camera-stage video,
.camera-stage img {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: cover;
}

.camera-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 70px rgb(0 0 0 / 38%);
}

.camera-guide {
  position: absolute;
  inset: 27% 8%;
  z-index: 2;
  border: 2px solid rgb(94 234 212 / 88%);
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgb(0 0 0 / 16%), 0 0 24px rgb(45 212 191 / 22%);
  pointer-events: none;
}

.capture-hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  left: 0.5rem;
  z-index: 3;
  margin: 0;
  color: #f8fafc;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 80%);
  pointer-events: none;
}

.table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  background: #0c1722;
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: rgb(255 255 255 / 2.5%);
}

.mobile-only { display: block; }
.desktop-only { display: none; }

.exit-panel {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  gap: 0.75rem;
}

.exit-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.pay-amount {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.exit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.exit-title,
.exit-subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.pay-choices {
  display: grid;
  gap: 0.5rem;
}

.btn.is-selected {
  border-color: var(--color-brand);
}

.pix-qr,
.pay-qr {
  width: min(100%, 220px);
  height: auto;
  align-self: center;
  background: #fff;
  border-radius: 8px;
}

.pix-copy {
  min-height: 4.5rem;
  resize: none;
}

.exit-photo {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
}

details.card > summary {
  cursor: pointer;
  font-weight: 650;
}

.public-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.25rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 479px) {
  .brand-copy > span,
  .header-logout span {
    display: none;
  }

  .conn-pill {
    padding-inline: 0.5rem;
  }

  .conn-label {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-content {
    padding-inline: 0.75rem;
  }
}

@media (min-width: 640px) {
  .page-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

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

  .quick-plate-form .help-text {
    min-height: 1.3rem;
  }

  .quick-plate-form .btn {
    min-height: 58px;
  }

  .user-chip {
    display: inline-flex;
  }

  .header-logout span {
    display: inline;
  }
}

@media (min-width: 768px) {
  .main-content {
    padding: 1.4rem;
  }

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

  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

@media (min-width: 1024px) {
  .shell-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .side-nav {
    position: sticky;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    width: 244px;
    height: calc(100vh - var(--header-height) - env(safe-area-inset-top, 0px));
    flex: 0 0 244px;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
    background: rgb(10 19 29 / 72%);
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }

  .nav-link {
    width: 100%;
  }

  .main-content {
    padding: 1.75rem 2rem 2.5rem;
  }

  .capture-app {
    margin-top: 0.25rem;
  }
}

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