:root {
  color-scheme: dark;
  --bg: #020408;
  --ink: #f5fbff;
  --muted: #8ea3b7;
  --panel: rgba(10, 17, 26, 0.76);
  --panel-strong: rgba(13, 23, 36, 0.92);
  --line: rgba(168, 215, 255, 0.16);
  --cyan: #23d7ff;
  --blue: #1767ff;
  --red: #ff2525;
  --green: #33f0a1;
  --amber: #ffc947;
  --silver: #dce8f2;
  --shadow-blue: 0 0 26px rgba(35, 215, 255, 0.28);
  --shadow-red: 0 0 28px rgba(255, 37, 37, 0.24);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

button {
  color: inherit;
}

.scene-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(10, 20, 38, 0.96), rgba(2, 4, 8, 0.98) 46%, rgba(18, 4, 7, 0.94)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
}

.scene-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 215, 255, 0.12), transparent 14%, transparent 86%, rgba(255, 37, 37, 0.12)),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(255, 255, 255, 0.018) 10px 11px);
  opacity: 0.7;
}

.prototype-shell {
  min-height: 100vh;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(280px, 360px);
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 28px 0;
}

.phone-frame {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 390 / 820;
  padding: 12px;
  border-radius: 34px;
  background:
    linear-gradient(140deg, rgba(35, 215, 255, 0.9), rgba(8, 20, 35, 0.2) 24%, rgba(255, 37, 37, 0.92) 58%, rgba(8, 16, 28, 0.85)),
    #05080f;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(35, 215, 255, 0.16),
    0 0 36px rgba(255, 37, 37, 0.12);
}

.phone-metal {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  pointer-events: none;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #03060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 8;
  width: 104px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 10px 22px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.status-icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.status-icons svg {
  width: 13px;
  height: 13px;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 22, 36, 0.98), #03060a 36%, #020408),
    #03060a;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
  mix-blend-mode: screen;
}

.app-view {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 42px;
}

.app-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 96px;
  scrollbar-width: none;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

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

.brand-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mini img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-blue);
}

.brand-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-title strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
}

.icon-btn svg,
.chip-btn svg,
.action-btn svg,
.tab-btn svg,
.role-button svg,
.screen-pill svg,
.method svg,
.social-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  min-height: 34px;
  gap: 7px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 800;
}

.chip-btn.blue {
  color: #d9fbff;
  border-color: rgba(35, 215, 255, 0.36);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chip-btn.red {
  color: #ffe4e4;
  border-color: rgba(255, 37, 37, 0.42);
  box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screen-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 7vw, 31px);
  line-height: 1.02;
  letter-spacing: 0;
}

.screen-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-card,
.glass-panel,
.metric-card,
.timeline-card,
.quote-row,
.media-tile,
.message,
.order-card,
.method,
.appointment-slot,
.inventory-row,
.notification-row,
.ai-row,
.admin-row,
.client-row,
.history-row,
.vehicle-row,
.check-row {
  border: 1px solid var(--line);
  background: rgba(9, 17, 28, 0.72);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 16px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(35, 215, 255, 0.14), transparent 38%),
    linear-gradient(330deg, rgba(255, 37, 37, 0.13), transparent 52%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.garage-backdrop {
  background-image:
    linear-gradient(180deg, rgba(2, 4, 8, 0.34), rgba(2, 4, 8, 0.9)),
    url("assets/garage-cdmx.png");
  background-size: cover;
  background-position: center;
}

.vehicle-photo-card {
  min-height: 184px;
  background-size: cover;
  background-position: center;
}

.vehicle-photo-card.detail-photo {
  min-height: 250px;
  display: grid;
  align-items: end;
}

.logo-glow {
  filter: drop-shadow(0 0 18px rgba(35, 215, 255, 0.45)) drop-shadow(0 0 18px rgba(255, 37, 37, 0.35));
}

.app-tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(168, 215, 255, 0.16);
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(20px);
}

.tab-btn {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-btn.is-active {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(35, 215, 255, 0.22), rgba(255, 37, 37, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(35, 215, 255, 0.12);
}

.progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--red));
  box-shadow: var(--shadow-blue);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.metric-card {
  min-height: 94px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.metric-card .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.neon-blue {
  color: var(--cyan);
}

.neon-red {
  color: var(--red);
}

.ok {
  color: var(--green);
}

.warn {
  color: var(--amber);
}

.danger {
  color: var(--red);
}

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

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.action-btn.primary {
  border-color: rgba(35, 215, 255, 0.55);
  background: linear-gradient(135deg, rgba(35, 215, 255, 0.2), rgba(23, 103, 255, 0.22));
  box-shadow: var(--shadow-blue);
}

.action-btn.reject {
  border-color: rgba(255, 37, 37, 0.55);
  background: linear-gradient(135deg, rgba(255, 37, 37, 0.21), rgba(90, 10, 18, 0.22));
  box-shadow: var(--shadow-red);
}

.splash-view {
  height: 100%;
  padding: 54px 24px 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.42), rgba(3, 6, 10, 0.96)),
    url("assets/garage-cdmx.png");
  background-size: cover;
  background-position: center;
}

.splash-logo {
  width: min(100%, 292px);
  margin: 16px auto 0;
  animation: glowBeat 2.4s ease-in-out infinite;
}

@keyframes glowBeat {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(35, 215, 255, 0.35)) drop-shadow(0 0 12px rgba(255, 37, 37, 0.24));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(35, 215, 255, 0.72)) drop-shadow(0 0 24px rgba(255, 37, 37, 0.55));
  }
}

.splash-copy {
  margin: 18px auto 0;
  max-width: 300px;
  color: var(--silver);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.splash-actions {
  display: grid;
  gap: 10px;
}

.login-view {
  min-height: 100%;
  padding: 58px 18px 24px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(2, 4, 8, 0.2), rgba(2, 4, 8, 0.96) 54%),
    url("assets/garage-cdmx.png");
  background-size: cover;
  background-position: center;
}

.login-panel {
  padding: 16px;
  border: 1px solid rgba(168, 215, 255, 0.22);
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(22px);
  border-radius: 8px;
}

.login-panel img {
  width: 210px;
  display: block;
  margin: 0 auto 14px;
}

.input-stack {
  display: grid;
  gap: 10px;
}

.field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(35, 215, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.field svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

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

.field input::placeholder {
  color: rgba(220, 232, 242, 0.52);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: var(--silver);
  font-size: 11px;
  font-weight: 900;
}

.login-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.vehicle-main {
  display: grid;
  gap: 10px;
}

.vehicle-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-card-title h2 {
  margin: 3px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(51, 240, 161, 0.34);
  color: var(--green);
  background: rgba(51, 240, 161, 0.08);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.warn {
  color: var(--amber);
  border-color: rgba(255, 201, 71, 0.34);
  background: rgba(255, 201, 71, 0.08);
}

.status-pill.red {
  color: #ffc7c7;
  border-color: rgba(255, 37, 37, 0.36);
  background: rgba(255, 37, 37, 0.09);
}

.mini-data {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 9px;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 10px;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
}

.timeline-card.done .step-dot {
  color: #02110a;
  background: var(--green);
  border-color: rgba(51, 240, 161, 0.8);
  box-shadow: 0 0 16px rgba(51, 240, 161, 0.32);
}

.timeline-card.current {
  border-color: rgba(255, 201, 71, 0.46);
}

.timeline-card.current .step-dot {
  color: #120c00;
  background: var(--amber);
  border-color: rgba(255, 201, 71, 0.8);
  box-shadow: 0 0 16px rgba(255, 201, 71, 0.26);
}

.timeline-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.media-strip {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-size: cover;
  background-position: center;
}

.vehicle-info {
  display: grid;
  gap: 8px;
}

.vehicle-row,
.history-row,
.inventory-row,
.notification-row,
.ai-row,
.admin-row,
.client-row,
.check-row,
.quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
}

.vehicle-row span,
.history-row span,
.inventory-row span,
.notification-row span,
.ai-row span,
.admin-row span,
.client-row span,
.check-row span,
.quote-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.vehicle-row strong,
.history-row strong,
.inventory-row strong,
.notification-row strong,
.ai-row strong,
.admin-row strong,
.client-row strong,
.check-row strong,
.quote-row strong {
  font-size: 14px;
}

.admin-row,
.client-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-row + .admin-row,
.client-row + .client-row {
  margin-top: 8px;
}

.admin-row svg,
.client-row svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex: 0 0 auto;
}

.client-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
}

.client-row small {
  display: block;
  margin-top: 3px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.quote-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.quote-total strong {
  font-size: 30px;
  line-height: 1;
}

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

.media-tile {
  min-height: 142px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.media-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 8, 0.88));
}

.media-tile > * {
  position: relative;
  z-index: 1;
}

.media-tile strong {
  font-size: 13px;
}

.compare-tile {
  grid-column: span 2;
  min-height: 156px;
}

.compare-photo {
  background: rgba(3, 6, 10, 0.9);
}

.compare-photo::before {
  display: none;
}

.compare-half {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.before-photo {
  clip-path: inset(0 48% 0 0);
}

.after-photo {
  clip-path: inset(0 0 0 52%);
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: var(--cyan);
  box-shadow: var(--shadow-blue);
  z-index: 1;
}

.compare-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(35, 215, 255, 0.6);
  background: rgba(3, 6, 10, 0.76);
}

.methods {
  display: grid;
  gap: 8px;
}

.method {
  min-height: 58px;
  padding: 10px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
}

.method strong {
  display: block;
  font-size: 14px;
}

.method span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.appointment-slot {
  min-height: 58px;
  padding: 9px;
  text-align: center;
}

.appointment-slot strong {
  display: block;
  font-size: 15px;
}

.appointment-slot span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.appointment-slot.active {
  border-color: rgba(35, 215, 255, 0.52);
  box-shadow: var(--shadow-blue);
}

.message-stack {
  display: grid;
  gap: 9px;
}

.message {
  width: 82%;
  padding: 10px;
}

.message.me {
  margin-left: auto;
  border-color: rgba(35, 215, 255, 0.35);
  background: rgba(35, 215, 255, 0.11);
}

.message strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.message p {
  margin: 0;
  color: var(--silver);
  font-size: 12px;
  line-height: 1.4;
}

.chat-input {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.chat-field {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 215, 255, 0.36);
  background: linear-gradient(135deg, rgba(35, 215, 255, 0.22), rgba(255, 37, 37, 0.18));
  box-shadow: var(--shadow-blue);
  font-size: 24px;
  font-weight: 900;
}

.avatar.small {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

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

.kanban-column h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.order-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  margin-bottom: 8px;
}

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-top strong {
  font-size: 14px;
}

.order-top p {
  margin: 4px 0 0;
}

.priority {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #140305;
  background: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.priority.medium {
  color: #150f00;
  background: var(--amber);
}

.timer-face {
  height: 194px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(35, 215, 255, 0.28);
  background:
    repeating-conic-gradient(from 0deg, rgba(35, 215, 255, 0.18) 0deg 6deg, transparent 6deg 14deg),
    radial-gradient(circle, rgba(3, 6, 10, 1) 0 58%, rgba(35, 215, 255, 0.15) 59% 61%, transparent 62%);
  box-shadow: var(--shadow-blue);
}

.timer-face strong {
  font-size: 42px;
  letter-spacing: 0;
}

.scanner-frame {
  position: relative;
  height: 258px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(35, 215, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(35, 215, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 215, 255, 0.04) 1px, transparent 1px),
    rgba(3, 6, 10, 0.72);
  background-size: 24px 24px;
}

.scanner-box {
  width: 190px;
  height: 190px;
  border: 2px solid rgba(35, 215, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow-blue), inset 0 0 22px rgba(35, 215, 255, 0.08);
}

.scanner-beam {
  position: absolute;
  left: 46px;
  right: 46px;
  top: 54px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: var(--shadow-red);
  animation: scannerBeam 2.4s linear infinite;
}

@keyframes scannerBeam {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(150px);
  }
  100% {
    transform: translateY(0);
  }
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(35, 215, 255, 0.32);
  background: rgba(35, 215, 255, 0.16);
  padding: 3px;
}

.toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: auto;
  background: var(--cyan);
  box-shadow: var(--shadow-blue);
}

.check-row {
  min-height: 48px;
}

.check-row .check-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(51, 240, 161, 0.16);
  color: var(--green);
  border: 1px solid rgba(51, 240, 161, 0.34);
}

.prototype-panel {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.62);
  backdrop-filter: blur(18px);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.panel-logo {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(35, 215, 255, 0.24));
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.role-button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.role-button.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(35, 215, 255, 0.2), rgba(255, 37, 37, 0.12));
  box-shadow: var(--shadow-blue);
}

.screen-list {
  display: grid;
  gap: 7px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  margin: 14px 0;
  padding-right: 4px;
  scrollbar-color: rgba(35, 215, 255, 0.35) transparent;
}

.screen-pill {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.screen-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-pill.is-active {
  color: var(--ink);
  border-color: rgba(35, 215, 255, 0.34);
  background: rgba(35, 215, 255, 0.09);
}

.screen-pill small {
  color: var(--muted);
  font-size: 10px;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.panel-footer strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.tiny-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-pulse {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(35, 215, 255, 0.56);
  box-shadow: var(--shadow-blue), inset 0 0 18px rgba(255, 37, 37, 0.16);
  position: relative;
}

.brand-pulse::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--shadow-red);
}

@media (max-width: 860px) {
  .prototype-shell {
    width: min(100vw - 20px, 430px);
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 0 24px;
  }

  .phone-frame {
    margin: 0 auto;
    width: min(100%, 390px);
  }

  .prototype-panel {
    width: min(100%, 390px);
    margin: 0 auto;
    order: -1;
  }

  .panel-logo,
  .panel-footer {
    display: none;
  }

  .screen-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 170px;
  }
}

@media (max-width: 520px) {
  .prototype-shell {
    width: 100vw;
    padding: 0;
  }

  .phone-frame {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
    border-radius: 0;
  }

  .phone-metal {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
    border: 0;
  }

  .prototype-panel {
    position: fixed;
    left: 8px;
    right: auto;
    bottom: 8px;
    z-index: 30;
    width: calc(100vw - 16px);
    max-width: none;
    margin: 0;
    padding: 8px;
    border-radius: 12px;
  }

  .role-switch {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-button {
    gap: 0;
    font-size: 0;
  }

  .role-button::after {
    content: attr(data-short);
    margin-left: 6px;
    font-size: 11px;
  }

  .screen-list {
    display: none;
  }

  .app-scroll {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 170px;
  }
}
