:root {
  --uach-navy: #043959;
  --uach-steel: #7794a6;
  --uach-deep: #074259;
  --uach-cyan: #0d688c;
  --uach-cloud: #f2f2f2;
  --glass-blur: 16px;
  --glass-bg: rgba(242, 242, 242, 0.11);
  --glass-line: rgba(242, 242, 242, 0.42);
  --shadow-soft: 0 16px 48px rgba(3, 24, 38, 0.3);
  --text-main: #f2f2f2;
  --text-soft: rgba(242, 242, 242, 0.8);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: radial-gradient(1200px 860px at 0% 0%, #0d688c 0%, #043959 40%, #032339 100%);
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 360px at 14% 18%, rgba(119, 148, 166, 0.34), transparent 70%),
    radial-gradient(680px 420px at 85% 10%, rgba(13, 104, 140, 0.38), transparent 72%),
    radial-gradient(660px 460px at 70% 84%, rgba(7, 66, 89, 0.45), transparent 72%);
  animation: drift 16s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', 'Nunito', sans-serif;
  font-weight: 700;
}

.page {
  width: min(1320px, 94vw);
  margin: 20px auto 36px;
  display: grid;
  gap: 16px;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: block;
  object-fit: contain;
}

.logo-main {
  width: 50px;
  height: 50px;
}

.logo-mark {
  width: 40px;
  height: 40px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.topbar h1 {
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.3);
  background: rgba(242, 242, 242, 0.08);
}

.nav-links a.active {
  background: linear-gradient(130deg, rgba(13, 104, 140, 0.72), rgba(4, 57, 89, 0.68));
}

.context {
  padding: 14px 18px;
  display: grid;
  gap: 8px;
}

.context p,
.context a {
  color: var(--text-soft);
  line-height: 1.45;
}

.context a {
  text-decoration: underline;
  text-decoration-color: rgba(242, 242, 242, 0.45);
}

.context.compact {
  padding: 0 0 10px;
}

/* Landing */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tile {
  padding: 20px;
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 242, 242, 0.8);
}

.tile .title {
  font-size: 1.2rem;
}

.tile .desc {
  color: var(--text-soft);
}

.tile .cta {
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* App */
.app-shell {
  padding: 18px;
}

.phone-frame {
  width: min(460px, 100%);
  margin: 0 auto;
  border: 2px solid rgba(242, 242, 242, 0.3);
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(4, 57, 89, 0.78), rgba(7, 66, 89, 0.48));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transition: width 0.3s ease;
}

.phone-frame.is-landscape {
  width: min(1080px, 100%);
}

.notch {
  width: 150px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #031522;
  margin: 0 auto 8px;
}

.phone-screen {
  border-radius: 30px;
  background:
    radial-gradient(380px 220px at 95% 0%, rgba(119, 148, 166, 0.3), transparent 72%),
    linear-gradient(180deg, rgba(242, 242, 242, 0.11), rgba(4, 57, 89, 0.18));
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.phone-screen.is-portrait {
  aspect-ratio: 9 / 16;
  min-height: 730px;
}

.phone-screen.is-landscape {
  aspect-ratio: 16 / 9;
  min-height: 430px;
}

.status-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 11px;
  color: var(--text-soft);
}

.status-strip span:nth-child(2) {
  text-align: center;
}

.status-strip span:nth-child(3) {
  text-align: right;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

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

.tiny {
  font-size: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.3);
  background: rgba(242, 242, 242, 0.1);
  color: var(--text-main);
  cursor: pointer;
}

.device-toolbar {
  border-radius: 14px;
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

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

.orientation-switch button {
  border: 1px solid rgba(242, 242, 242, 0.3);
  border-radius: 10px;
  background: rgba(242, 242, 242, 0.08);
  color: var(--text-main);
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
}

.orientation-switch button.active {
  border-color: rgba(13, 104, 140, 0.9);
  background: rgba(13, 104, 140, 0.55);
}

.ghost-btn {
  border: 1px solid rgba(242, 242, 242, 0.28);
  border-radius: 10px;
  background: rgba(13, 104, 140, 0.28);
  color: var(--text-main);
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.ghost-btn.mini {
  padding: 6px 10px;
  white-space: nowrap;
}

.hero-card {
  border-radius: 18px;
  padding: 12px;
}

.hero-card h4 {
  margin-top: 6px;
  line-height: 1.3;
}

.live-glass {
  background: rgba(242, 242, 242, 0.1);
  border: 1px solid rgba(242, 242, 242, 0.26);
  backdrop-filter: blur(var(--glass-blur));
}

.metric-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-pill {
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(242, 242, 242, 0.24);
  background: rgba(4, 57, 89, 0.32);
  display: grid;
  gap: 2px;
}

.metric-pill strong {
  font-size: 13px;
}

.metric-pill span {
  font-size: 11px;
  color: var(--text-soft);
}

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

.quick-actions button {
  border: 1px solid rgba(242, 242, 242, 0.25);
  background: rgba(242, 242, 242, 0.08);
  color: var(--text-main);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
}

.screen-shell {
  border: 1px solid rgba(242, 242, 242, 0.22);
  background: rgba(4, 57, 89, 0.24);
  border-radius: 18px;
  padding: 12px;
  overflow: auto;
}

.screen {
  display: none;
}

.screen.active {
  display: grid;
  gap: 10px;
}

.screen-head {
  display: grid;
  gap: 3px;
}

.module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.26);
  background: rgba(242, 242, 242, 0.06);
}

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

.info-card {
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.24);
  background: rgba(242, 242, 242, 0.05);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.info-card.is-off {
  opacity: 0.7;
}

.card-cover {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.18);
}

.info-card h6 {
  font-size: 14px;
}

.info-card p {
  color: var(--text-soft);
  font-size: 12px;
}

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

.chip {
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.28);
  background: rgba(242, 242, 242, 0.07);
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chip.active {
  background: rgba(13, 104, 140, 0.56);
}

.content-list {
  display: grid;
  gap: 8px;
}

.focus-card {
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.24);
  background: rgba(242, 242, 242, 0.06);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 8px;
}

.focus-card img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.focus-card h6 {
  margin-top: 2px;
  font-size: 14px;
}

.content-card {
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.22);
  background: rgba(242, 242, 242, 0.05);
  padding: 9px;
  display: grid;
  gap: 9px;
}

.content-card h6 {
  font-size: 14px;
}

.menu-thumb,
.event-thumb {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.2);
}

.route-thumb {
  width: 180px;
  height: 108px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.2);
}

.chip-subtle {
  margin-top: 4px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.22);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-soft);
}

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

.action-row.vertical {
  flex-direction: column;
  justify-content: center;
}

.safe-pill {
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.25);
  background: rgba(242, 242, 242, 0.07);
  padding: 7px 11px;
  display: inline-flex;
  width: max-content;
}

.safe-pill.is-on {
  background: rgba(13, 104, 140, 0.52);
  border-color: rgba(13, 104, 140, 0.82);
}

.route-card {
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 10px;
}

.progress-line {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(4, 57, 89, 0.52);
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0d688c, #7794a6);
  border-radius: 999px;
  transition: width 0.32s ease;
}

.empty-card {
  border-radius: 12px;
  border: 1px dashed rgba(242, 242, 242, 0.3);
  padding: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

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

.snap-card {
  border: 1px solid rgba(242, 242, 242, 0.2);
  background: rgba(4, 57, 89, 0.3);
  border-radius: 12px;
  padding: 8px;
}

.snap-card.off {
  opacity: 0.55;
}

.snap-name {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.snap-state {
  font-size: 11px;
  color: var(--text-soft);
}

.dock {
  border-radius: 15px;
  border: 1px solid rgba(242, 242, 242, 0.3);
  background: rgba(242, 242, 242, 0.12);
  backdrop-filter: blur(calc(var(--glass-blur) + 4px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
}

.dock-item {
  border: 0;
  border-radius: 11px;
  padding: 8px 4px;
  display: grid;
  gap: 5px;
  place-items: center;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  cursor: pointer;
}

.dock-item.active {
  color: var(--uach-cloud);
  background: rgba(13, 104, 140, 0.5);
}

.toast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 72px;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.32);
  background: rgba(3, 24, 38, 0.84);
  padding: 9px 12px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Admin */
.admin-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.admin-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-tabs button {
  border: 1px solid rgba(242, 242, 242, 0.26);
  background: rgba(242, 242, 242, 0.07);
  color: var(--text-main);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.section-tabs button.active {
  background: rgba(13, 104, 140, 0.56);
}

.section-panels {
  border: 1px solid rgba(242, 242, 242, 0.21);
  border-radius: 14px;
  background: rgba(4, 57, 89, 0.24);
  padding: 12px;
}

.section-panel {
  display: none;
  gap: 10px;
}

.section-panel.active {
  display: grid;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

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

input[type='text'],
select,
textarea {
  border: 1px solid rgba(242, 242, 242, 0.22);
  background: rgba(242, 242, 242, 0.09);
  color: var(--text-main);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

select option {
  color: #001321;
}

textarea {
  resize: vertical;
}

input[type='range'] {
  accent-color: var(--uach-cyan);
}

.orientation-switch.admin {
  margin-top: 2px;
}

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

.preset-card {
  border: 1px solid rgba(242, 242, 242, 0.22);
  background: rgba(242, 242, 242, 0.06);
  border-radius: 12px;
  color: var(--text-main);
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.preset-card span {
  color: var(--text-soft);
  font-size: 12px;
}

.preset-card.active {
  border-color: rgba(13, 104, 140, 0.82);
  background: rgba(13, 104, 140, 0.3);
}

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

.switch {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(242, 242, 242, 0.22);
  border-radius: 12px;
  background: rgba(242, 242, 242, 0.08);
  font-size: 14px;
}

.switch input {
  width: 16px;
  height: 16px;
}

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

.mini-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.2);
  background: rgba(242, 242, 242, 0.06);
}

.mini-switch input {
  width: 14px;
  height: 14px;
}

.analytics-sliders {
  display: grid;
  gap: 8px;
}

.mini-range {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(242, 242, 242, 0.2);
  border-radius: 10px;
  background: rgba(242, 242, 242, 0.05);
}

.mini-range strong {
  font-size: 12px;
  font-weight: 700;
}

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

.metric-card {
  border: 1px solid rgba(242, 242, 242, 0.24);
  background: rgba(4, 57, 89, 0.3);
  border-radius: 11px;
  padding: 8px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.metric-value {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.metric-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(242, 242, 242, 0.18);
  overflow: hidden;
}

.metric-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d688c, #7794a6);
}

.role-detail {
  border: 1px solid rgba(242, 242, 242, 0.2);
  border-radius: 12px;
  background: rgba(242, 242, 242, 0.05);
  padding: 10px;
}

.role-focus {
  display: grid;
  gap: 6px;
}

.role-focus p {
  color: var(--text-soft);
  font-size: 12px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.26);
  padding: 4px 8px;
}

.role-matrix {
  display: grid;
  gap: 7px;
}

.role-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 242, 242, 0.2);
  border-radius: 11px;
  background: rgba(242, 242, 242, 0.05);
  font-size: 12px;
}

.role-row.active {
  border-color: rgba(13, 104, 140, 0.82);
  background: rgba(13, 104, 140, 0.25);
}

.role-row .access {
  color: var(--text-soft);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #0d688c, #074259);
  color: #fff;
}

.btn-soft {
  background: rgba(242, 242, 242, 0.15);
  color: var(--uach-cloud);
  border: 1px solid rgba(242, 242, 242, 0.3);
}

.admin-preview {
  display: grid;
  align-content: start;
}

.preview-frame {
  width: 100%;
  min-height: 780px;
  border: 1px solid rgba(242, 242, 242, 0.32);
  border-radius: 16px;
  background: rgba(3, 24, 38, 0.4);
}

/* Presentation */
.deck-shell {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.deck-stage {
  border-radius: 18px;
  border: 1px solid rgba(242, 242, 242, 0.2);
  background: rgba(4, 57, 89, 0.32);
  min-height: 540px;
  padding: 16px;
}

.deck-slide {
  display: none;
  gap: 12px;
}

.deck-slide.active {
  display: grid;
}

.deck-kicker {
  color: var(--text-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}

.deck-slide h3 {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.deck-slide p,
.deck-slide li {
  color: var(--text-soft);
  line-height: 1.42;
}

.deck-slide ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.deck-grid {
  display: grid;
  gap: 10px;
}

.deck-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.deck-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deck-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deck-card {
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.24);
  background: rgba(242, 242, 242, 0.08);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.deck-card h4 {
  font-size: 1.06rem;
}

.deck-card.compact h4 {
  font-size: 0.96rem;
}

.deck-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.2);
  object-fit: cover;
  max-height: 210px;
}

.deck-card.accent {
  border-color: rgba(13, 104, 140, 0.86);
  background: rgba(13, 104, 140, 0.28);
}

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

.deck-media-grid img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.22);
}

.deck-media-grid .wide {
  grid-column: 1 / -1;
  height: 220px;
}

.deck-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deck-stat-row article {
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.24);
  background: rgba(4, 57, 89, 0.34);
  padding: 8px;
  text-align: center;
  display: grid;
  gap: 4px;
}

.deck-stat-row strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
}

.deck-stat-row span {
  font-size: 11px;
  color: var(--text-soft);
}

.deck-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.deck-meta {
  display: grid;
  gap: 4px;
}

.deck-meta strong {
  font-family: 'Sora', sans-serif;
}

.deck-meta span {
  color: var(--text-soft);
  font-size: 12px;
}

.deck-actions {
  display: flex;
  gap: 8px;
}

.deck-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Icon set */
.i {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
  position: relative;
}

.i-home::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: -5px;
  border-top: 1.8px solid currentColor;
  transform: skewY(-28deg);
}

.i-user {
  border-radius: 50%;
}

.i-user::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  top: 1px;
  left: 4px;
}

.i-user::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 4px;
  border-top: 1.8px solid currentColor;
  border-radius: 8px 8px 0 0;
}

.i-calendar::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  border-top: 1.8px solid currentColor;
}

.i-food::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 1.8px;
  height: 12px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor;
}

.i-bus::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  bottom: 5px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.i-bus::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  border-top: 1.8px solid currentColor;
}

.i-grid::before,
.i-grid::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  border-top: 1.8px solid currentColor;
}

.i-grid::before {
  top: 5px;
}

.i-grid::after {
  top: 10px;
}

@keyframes drift {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(14px);
  }
}

@media (max-width: 1180px) {
  .admin-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .preview-frame {
    min-height: 640px;
  }

  .phone-frame.is-landscape {
    width: min(920px, 100%);
  }
}

@media (max-width: 940px) {
  .phone-screen.is-portrait {
    aspect-ratio: auto;
    min-height: 700px;
  }

  .phone-screen.is-landscape {
    aspect-ratio: auto;
    min-height: 620px;
  }

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

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

  .focus-card {
    grid-template-columns: 1fr;
  }

  .focus-card img {
    height: 150px;
  }
}

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

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .snapshot-toggles,
  .analytics-board,
  .preset-cards {
    grid-template-columns: 1fr;
  }

  .route-card,
  .action-row {
    grid-template-columns: 1fr;
  }

  .route-card {
    display: grid;
  }

  .route-thumb {
    width: 100%;
    height: 144px;
  }

  .deck-grid.two-col,
  .deck-grid.three-col,
  .deck-grid.four-col {
    grid-template-columns: 1fr;
  }

  .deck-media-grid {
    grid-template-columns: 1fr;
  }

  .deck-media-grid .wide {
    height: 180px;
  }

  .deck-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
