:root {
  --bg: #0a0a14;
  --panel: #14121f;
  --panel-soft: rgba(20, 18, 31, 0.7);
  --text: #f2eeff;
  --muted: #c0c0f0;
  --muted-soft: rgba(192, 192, 240, 0.62);
  --line: rgba(192, 192, 240, 0.1);
  --line-strong: rgba(192, 192, 240, 0.18);
  --pink: #f018d8;
  --violet: #7a2ff0;
  --deep: #480078;
  --green: #45e896;
  --blue: #3db8f0;
  --amber: #ffb84d;
  --purple: #a97bff;
  --danger: #f0567a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

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

button {
  color: inherit;
}

::selection {
  background: rgba(240, 24, 216, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #2a2542;
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.app-root,
.app-shell {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 50% 35%, rgba(240, 24, 216, 0.15), transparent 24rem),
    radial-gradient(circle at 52% 72%, rgba(61, 184, 240, 0.08), transparent 26rem),
    var(--bg);
}

.login-panel {
  width: min(100%, 430px);
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  padding: clamp(26px, 4vw, 42px);
  text-align: center;
  border: 1px solid rgba(192, 192, 240, 0.08);
  border-radius: 18px;
  background: rgba(10, 10, 20, 0.42);
  box-shadow: 0 0 70px rgba(240, 24, 216, 0.1);
  backdrop-filter: blur(16px);
  animation: loginPanelGlow 5.2s linear infinite;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.login-logo {
  width: 158px;
  height: auto;
  filter:
    drop-shadow(0 0 4px rgba(255, 72, 232, 0.95))
    drop-shadow(0 0 18px rgba(240, 24, 216, 0.58))
    drop-shadow(0 0 34px rgba(122, 47, 240, 0.34));
  animation: neonLogoFlicker 5.2s linear infinite;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-submit {
  min-height: 44px;
  margin-top: 4px;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid rgba(240, 86, 122, 0.4);
  border-radius: 10px;
  background: rgba(240, 86, 122, 0.08);
  color: #ffd5df;
  font-size: 13px;
}

.login-foot {
  margin-top: 12px;
  color: rgba(242, 238, 255, 0.52);
  font-size: 11.5px;
}

.app-shell {
  display: flex;
  background:
    radial-gradient(circle at top right, rgba(122, 47, 240, 0.13), transparent 32rem),
    var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  width: 224px;
  height: 100vh;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  border-right: 1px solid rgba(192, 192, 240, 0.08);
  background: rgba(10, 10, 20, 0.62);
}

.brand {
  padding: 0 8px 24px;
}

.brand-logo-img {
  display: block;
  width: 128px;
  height: auto;
  transform-origin: center;
  filter:
    drop-shadow(0 0 4px rgba(255, 72, 232, 0.95))
    drop-shadow(0 0 14px rgba(240, 24, 216, 0.62))
    drop-shadow(0 0 30px rgba(122, 47, 240, 0.38));
  animation: neonLogoFlicker 6.4s linear infinite;
}

.brand-sub {
  margin-top: 2px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 4.5px;
}

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

.nav-button {
  position: relative;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
}

.nav-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.nav-button:hover {
  color: var(--text);
}

.nav-button.is-active {
  color: var(--text);
  background: rgba(240, 24, 216, 0.1);
  border: 1px solid rgba(240, 24, 216, 0.3);
  box-shadow: 0 0 18px rgba(240, 24, 216, 0.12);
}

.sidebar-version {
  margin-top: auto;
  padding: 18px 10px 0;
  color: rgba(242, 238, 255, 0.52);
  font-size: 11.5px;
  line-height: 1.45;
}

.main {
  min-width: 0;
  height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  z-index: 40;
  height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 26px);
  border-bottom: 1px solid rgba(192, 192, 240, 0.08);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(14px);
}

.topbar-next,
.mobile-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
}

.mobile-brand {
  display: none;
}

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

.auth-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(192, 192, 240, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(20, 18, 31, 0.72);
  font-size: 12.5px;
  white-space: nowrap;
}

.mobile-brand-logo-img {
  width: 82px;
  height: auto;
  flex: none;
  filter:
    drop-shadow(0 0 4px rgba(255, 72, 232, 0.88))
    drop-shadow(0 0 16px rgba(240, 24, 216, 0.48));
  animation: neonLogoFlicker 6.4s linear infinite;
}

.mobile-brand span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.lock-button,
.primary-button,
.secondary-button,
.icon-button,
.seg-button,
.row-button,
.status-button,
.ghost-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.lock-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.lock-button:hover {
  color: var(--text);
  border-color: rgba(240, 24, 216, 0.5);
}

.lock-button.is-unlocked {
  color: var(--text);
  border-color: rgba(240, 24, 216, 0.55);
  background: rgba(240, 24, 216, 0.12);
  box-shadow: 0 0 20px rgba(240, 24, 216, 0.25);
}

.edit-strip {
  flex: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--pink) 22%, var(--violet) 48%, var(--blue) 70%, transparent 100%);
  background-size: 260% 100%;
  box-shadow: 0 0 12px rgba(240, 24, 216, 0.42);
  opacity: 0.72;
  animation: headerGradientDrift 12s linear infinite;
}

.edit-strip.is-unlocked {
  opacity: 1;
  box-shadow: 0 0 16px rgba(240, 24, 216, 0.6);
}

.scroll-pane {
  flex: 1;
  overflow-y: auto;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 30px);
  padding-bottom: 120px;
}

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

.screen-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.screen-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 24, 216, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% -30%, rgba(240, 24, 216, 0.28), transparent 55%),
    linear-gradient(125deg, rgba(72, 0, 120, 0.5), rgba(20, 18, 31, 0.92) 55%),
    var(--panel);
  box-shadow: 0 0 70px rgba(240, 24, 216, 0.1);
  padding: clamp(22px, 4vw, 36px);
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 2vw, 20px);
  margin-top: 14px;
  flex-wrap: wrap;
}

.count-cell {
  text-align: center;
}

.count-number {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(40px, 6.5vw, 66px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 30px rgba(240, 24, 216, 0.45);
}

.count-label {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.count-sep {
  color: rgba(240, 24, 216, 0.55);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-venue {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.grid {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 16px;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.advance-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 18px;
}

.shortcut-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: inherit;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.clickable:hover {
  border-color: rgba(240, 24, 216, 0.4);
  box-shadow: 0 0 24px rgba(240, 24, 216, 0.08);
}

.card-head,
.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.big-number {
  font-family: "Unbounded", sans-serif;
  font-size: 25px;
  font-weight: 600;
}

.stat-number {
  margin-top: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

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

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

.tiny {
  font-size: 11.5px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 10px 16px;
  border: 1px solid rgba(240, 24, 216, 0.55);
  border-radius: 12px;
  background: rgba(240, 24, 216, 0.14);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(240, 24, 216, 0.18);
}

.primary-button:hover {
  background: rgba(240, 24, 216, 0.25);
}

.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
}

.secondary-button:hover,
.ghost-button:hover {
  color: var(--text);
  border-color: rgba(192, 192, 240, 0.28);
}

.panel-header {
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(122, 47, 240, 0.14), transparent 70%);
}

.panel-title {
  font-family: "Unbounded", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
}

.list-row,
.show-row,
.task-row,
.route-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 0;
  border-top: 1px solid rgba(192, 192, 240, 0.07);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.show-row,
.task-row,
.route-row {
  cursor: pointer;
}

.show-row:hover,
.task-row:hover,
.route-row:hover {
  background: rgba(240, 24, 216, 0.05);
}

.route-row.is-selected {
  background: rgba(240, 24, 216, 0.11);
  box-shadow: inset 3px 0 0 var(--pink);
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
}

.row-date {
  color: var(--muted);
  font-size: 13px;
}

.pipe {
  color: rgba(192, 192, 240, 0.5);
}

.status {
  --status-color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--status-color);
  font-size: 12.5px;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 12px var(--status-color);
}

.status-button {
  border-radius: 999px;
  padding: 7px 10px;
}

.status-button:hover {
  background: rgba(240, 24, 216, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border: 1px solid rgba(240, 24, 216, 0.5);
  border-radius: 999px;
  color: var(--pink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.badge.is-amber {
  color: var(--amber);
  border-color: rgba(255, 184, 77, 0.6);
}

.badge.is-purple {
  color: var(--purple);
  border-color: rgba(169, 123, 255, 0.6);
}

.tabs,
.segments {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 4px;
}

.tabs {
  margin-bottom: 18px;
}

.seg-button {
  min-height: 34px;
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.seg-button.is-active {
  color: var(--text);
  background: rgba(240, 24, 216, 0.14);
}

.form-card {
  margin-bottom: 18px;
  border: 1px solid rgba(240, 24, 216, 0.3);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
}

.form-title {
  margin-bottom: 12px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field,
.select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  padding: 9px 11px;
  font-size: 14px;
}

.field:focus,
.select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(240, 24, 216, 0.12);
}

.field.is-compact {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
  text-align: right;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.check-box {
  width: 22px;
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(192, 192, 240, 0.3);
  border-radius: 7px;
  background: var(--bg);
}

.check-box span {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.mini-map {
  width: 84px;
  height: 58px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.route-layout {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.map-panel {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.route-map {
  width: 100%;
  min-height: 340px;
  flex: 1;
}

.route-list {
  flex: 1.2 1 320px;
  padding: 8px 0;
}

.route-index {
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid rgba(240, 24, 216, 0.5);
  border-radius: 50%;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 2px;
}

.route-metrics {
  display: flex;
  gap: 18px;
  padding-top: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--legend-color);
  box-shadow: 0 0 8px var(--legend-color);
}

.legend-dash {
  width: 16px;
  height: 0;
  border-top: 2px dashed var(--violet);
}

.budget-shell {
  overflow-x: auto;
}

.budget-table {
  min-width: 760px;
}

.budget-grid {
  display: grid;
  grid-template-columns: minmax(250px, 2.2fr) 90px 64px 90px 110px 110px;
  gap: 10px;
  align-items: center;
}

.budget-head {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.dept-row {
  padding: 12px 20px 6px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.budget-row {
  padding: 9px 20px;
}

.budget-row:hover {
  background: rgba(240, 24, 216, 0.04);
}

.budget-sub {
  padding: 8px 20px 12px;
  border-bottom: 1px solid rgba(192, 192, 240, 0.08);
}

.budget-total {
  padding: 15px 20px;
  background: rgba(122, 47, 240, 0.08);
}

.right {
  text-align: right;
}

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

.avatar {
  --avatar-color: var(--pink);
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--avatar-color) 15%, transparent);
  color: var(--avatar-color);
  font-size: 11.5px;
  font-weight: 700;
}

.avatar.is-sm {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}

.contact-card,
.mini-row {
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.5);
  padding: 10px 12px;
}

.contact-card .form-stack > div {
  flex-wrap: wrap;
}

.contact-card .field {
  width: auto;
  min-width: 0;
  flex: 1 1 150px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.row-flex {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mobile-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(8px);
}

.modal {
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(240, 24, 216, 0.35);
  border-radius: 22px;
  background: var(--panel);
  padding: 28px;
  box-shadow: 0 0 60px rgba(240, 24, 216, 0.18);
}

.modal-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(240, 24, 216, 0.5);
  border-radius: 50%;
  background: rgba(240, 24, 216, 0.12);
  box-shadow: 0 0 24px rgba(240, 24, 216, 0.25);
}

.modal-title {
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.error {
  color: var(--amber);
  font-size: 12.5px;
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.back-link:hover {
  color: var(--pink);
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: initial;
}

.nav-live-dot {
  width: 4px;
  height: 4px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

.dashboard-hero {
  padding: 22px 24px;
}

.countdown-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.countdown-compact .count-cell {
  min-width: 0;
  border: 1px solid rgba(192, 192, 240, 0.12);
  border-radius: 14px;
  background: rgba(10, 10, 20, 0.38);
  padding: 12px 10px;
}

.countdown-compact .count-number {
  font-size: 34px;
}

.countdown-compact .count-label {
  margin-top: 6px;
  font-size: 9.5px;
}

.dashboard-foot {
  margin-top: 16px;
}

.dashboard-compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 16px;
}

.compact-panel {
  overflow: hidden;
}

.compact-header {
  justify-content: space-between;
}

.compact-list {
  display: flex;
  flex-direction: column;
}

.compact-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 11px 16px;
  border-top: 1px solid rgba(192, 192, 240, 0.07);
  cursor: pointer;
}

.compact-row:hover {
  background: rgba(240, 24, 216, 0.05);
}

.date-chip {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 24, 216, 0.35);
  border-radius: 12px;
  background: rgba(240, 24, 216, 0.08);
  color: var(--text);
}

.date-chip span {
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.date-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.empty-state {
  padding: 18px 20px;
  color: var(--muted-soft);
  font-size: 13px;
}

.ghost-button.is-tight,
.secondary-button.is-tight,
.primary-button.is-tight {
  width: auto;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

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

.day-sheet-shell {
  max-width: 980px;
}

.print-sheet {
  color: #050505;
  background: #fff;
  border: 4px solid #050505;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

.sheet-header {
  display: grid;
  grid-template-columns: 1fr 180px;
  border-bottom: 4px solid #050505;
}

.sheet-header > div {
  padding: 16px 18px;
}

.sheet-header h2 {
  margin: 5px 0 0;
  font-size: 34px;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sheet-header p {
  margin: 7px 0 0;
  font-size: 13px;
}

.sheet-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sheet-status {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 4px solid #050505;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 4px solid #050505;
}

.sheet-field {
  min-height: 62px;
  padding: 8px 10px;
  border-right: 3px solid #050505;
  border-bottom: 3px solid #050505;
}

.sheet-field:nth-child(3n) {
  border-right: 0;
}

.sheet-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sheet-field strong {
  font-size: 13px;
}

.sheet-field input,
.sheet-inline-input,
.sheet-textarea {
  width: 100%;
  border: 1px solid #808080;
  background: #fff;
  color: #050505;
  padding: 4px 5px;
  font: inherit;
}

.sheet-textarea {
  min-height: 54px;
  display: block;
  margin-top: 5px;
  resize: vertical;
}

.sheet-section {
  padding: 12px;
  border-bottom: 4px solid #050505;
}

.sheet-section h3 {
  margin: -12px -12px 10px;
  padding: 7px 10px;
  border-bottom: 3px solid #050505;
  background: #d9d9d9;
  color: #050505;
  font-size: 14px;
  text-transform: uppercase;
}

.sheet-section p {
  margin: 8px 0;
  font-size: 12px;
}

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

.sheet-two-col .sheet-section:first-child {
  border-right: 4px solid #050505;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  color: #050505;
  font-size: 12px;
}

.sheet-table th,
.sheet-table td {
  border: 3px solid #050505;
  padding: 6px 7px;
  vertical-align: top;
  text-align: left;
}

.sheet-table th {
  background: #d9d9d9;
  font-weight: 900;
  text-transform: uppercase;
}

.print-sheet .ops-table {
  min-width: 0;
  color: #050505;
}

.print-sheet .ops-table th,
.print-sheet .ops-table td {
  border: 3px solid #050505;
  color: #050505;
  background: #fff;
}

.print-sheet .ops-table th {
  background: #d9d9d9;
  color: #050505;
}

.print-sheet .table-input {
  border: 1px solid #808080;
  background: #fff;
  color: #050505;
  border-radius: 0;
  box-shadow: none;
}

.print-sheet .icon-button {
  border-color: #d0d0d0;
  color: #808080;
}

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

.ops-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.ops-table th,
.ops-table td {
  border-bottom: 1px solid rgba(192, 192, 240, 0.09);
  padding: 10px 12px;
  vertical-align: middle;
  text-align: left;
}

.ops-table th {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(122, 47, 240, 0.08);
}

.table-input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(192, 192, 240, 0.16);
  border-radius: 8px;
  background: rgba(10, 10, 20, 0.75);
  color: var(--text);
  padding: 6px 8px;
  outline: none;
}

.table-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(240, 24, 216, 0.1);
}

.table-input.time {
  min-width: 90px;
}

.table-input.number {
  text-align: right;
}

.sub-input {
  margin-top: 5px;
  color: var(--muted);
}

.add-row-button {
  width: auto;
  margin: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
  border-color: rgba(192, 192, 240, 0.32);
}

.icon-button.danger:hover {
  color: var(--danger);
  border-color: rgba(240, 86, 122, 0.45);
}

.advance-layout {
  display: grid;
  gap: 16px;
}

.upload-drop {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed rgba(240, 24, 216, 0.45);
  border-radius: 14px;
  background: rgba(240, 24, 216, 0.06);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.upload-drop input {
  display: none;
}

.import-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.import-row .secondary-button {
  width: auto;
  flex: none;
}

.real-map-panel {
  min-height: 560px;
}

.accurate-route-map {
  min-height: 510px;
  border: 1px solid rgba(192, 192, 240, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 72%, rgba(240, 24, 216, 0.16), transparent 34%),
    radial-gradient(circle at 35% 28%, rgba(69, 232, 150, 0.1), transparent 28%),
    #0b1020;
}

.map-coast {
  stroke: rgba(192, 192, 240, 0.28);
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(122, 47, 240, 0.18));
}

.map-england {
  fill: url("#landGlow");
}

.map-scotland,
.map-wales {
  fill: rgba(34, 32, 62, 0.72);
}

.map-river {
  fill: none;
  stroke: rgba(61, 184, 240, 0.24);
  stroke-width: 2;
  stroke-linecap: round;
}

.map-road {
  fill: none;
  stroke: rgba(192, 192, 240, 0.12);
  stroke-width: 3;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}

.map-stack {
  display: grid;
  gap: 12px;
}

.google-map-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(192, 192, 240, 0.08);
  border-radius: 18px;
  background: #0b1020;
}

.google-map-canvas {
  position: absolute;
  inset: 0;
  min-height: 520px;
  background: #0b1020;
}

.google-map-canvas.is-failed {
  opacity: 0;
  pointer-events: none;
}

.google-map-status,
.google-map-link {
  position: absolute;
  z-index: 2;
}

.google-map-status {
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border: 1px solid rgba(192, 192, 240, 0.16);
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.84);
  color: var(--muted);
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.google-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0b1020;
}

.google-map-fallback .accurate-route-map {
  min-height: 520px;
  border: 0;
  border-radius: 0;
}

.google-map-link {
  right: 14px;
  bottom: 14px;
  width: auto;
  background: rgba(10, 10, 20, 0.78);
  backdrop-filter: blur(12px);
}

.google-map-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(192, 192, 240, 0.11);
  border-radius: 14px;
  background: rgba(10, 10, 20, 0.42);
}

.map-link {
  flex: none;
}

.google-stop-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(242, 238, 255, 0.96);
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(240, 24, 216, 0.2), 0 0 22px rgba(240, 24, 216, 0.58);
  cursor: pointer;
}

.google-stop-marker.is-base {
  background: var(--green);
  color: #05110c;
  box-shadow: 0 0 0 5px rgba(69, 232, 150, 0.18), 0 0 22px rgba(69, 232, 150, 0.52);
}

.google-stop-marker.is-hotel {
  background: var(--blue);
  color: #06111a;
  box-shadow: 0 0 0 5px rgba(61, 184, 240, 0.18), 0 0 22px rgba(61, 184, 240, 0.52);
}

.split-route-list {
  overflow: hidden;
}

.route-section-title {
  padding: 13px 20px 8px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-top: 1px solid rgba(192, 192, 240, 0.08);
}

.route-section-title:first-child {
  border-top: 0;
}

.route-detail-panel {
  padding: 16px 18px 18px;
  border-bottom: 1px solid rgba(192, 192, 240, 0.09);
  background:
    linear-gradient(135deg, rgba(240, 24, 216, 0.09), transparent 42%),
    rgba(10, 10, 20, 0.24);
}

.route-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.route-detail-title {
  margin-top: 4px;
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.route-detail-title span {
  color: var(--pink);
}

.route-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.route-detail-grid > div,
.route-stop-card {
  border: 1px solid rgba(192, 192, 240, 0.09);
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.44);
  padding: 12px;
}

.route-provider-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  margin-bottom: 14px;
}

.provider-button {
  width: auto;
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.route-stop-stack {
  display: grid;
  gap: 8px;
}

.route-stop-title {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.route-stop-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-stop-card.is-editable {
  align-items: start;
}

.route-stop-edit-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(160px, 1.4fr) 86px 86px;
  gap: 8px;
}

.route-index.is-hotel {
  border-color: rgba(61, 184, 240, 0.58);
  color: var(--blue);
}

.route-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(61, 184, 240, 0.42);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}

.empty-state.is-compact {
  padding: 10px 0 0;
}

.budget-control-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.budget-table-v2 {
  min-width: 920px;
}

.budget-table-v2 .budget-grid {
  grid-template-columns: 120px minmax(220px, 2fr) 70px 70px 110px 120px 42px;
}

.textarea-field {
  min-height: 120px;
  resize: vertical;
}

.settings-stack {
  display: grid;
  gap: 16px;
}

.settings-panel {
  overflow: hidden;
}

.settings-panel[open] {
  box-shadow: var(--shadow);
}

.settings-panel summary {
  list-style: none;
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

.settings-summary:hover {
  color: var(--text);
}

.settings-summary-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-caret {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(192, 192, 240, 0.12);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(10, 10, 20, 0.32);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.settings-caret svg {
  width: 14px;
  height: 14px;
}

.settings-panel[open] .settings-caret {
  transform: rotate(90deg);
  color: var(--text);
  border-color: rgba(240, 24, 216, 0.34);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 18px 20px 20px;
}

.settings-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

@keyframes headerGradientDrift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 260% 50%;
  }
}

@keyframes loginPanelGlow {
  0%,
  2.4%,
  4.2%,
  12.7%,
  24%,
  41.8%,
  58.5%,
  74.6%,
  86.3%,
  100% {
    border-color: rgba(240, 24, 216, 0.22);
    box-shadow:
      0 0 74px rgba(240, 24, 216, 0.15),
      0 0 124px rgba(122, 47, 240, 0.085),
      inset 0 0 28px rgba(240, 24, 216, 0.03);
  }

  1.1% {
    border-color: rgba(240, 24, 216, 0.14);
    box-shadow:
      0 0 48px rgba(240, 24, 216, 0.085),
      0 0 80px rgba(122, 47, 240, 0.045),
      inset 0 0 16px rgba(240, 24, 216, 0.018);
  }

  3.1% {
    border-color: rgba(240, 24, 216, 0.11);
    box-shadow:
      0 0 42px rgba(240, 24, 216, 0.07),
      0 0 72px rgba(122, 47, 240, 0.04),
      inset 0 0 18px rgba(240, 24, 216, 0.02);
  }

  3.6% {
    border-color: rgba(240, 24, 216, 0.18);
    box-shadow:
      0 0 62px rgba(240, 24, 216, 0.12),
      0 0 104px rgba(122, 47, 240, 0.07),
      inset 0 0 24px rgba(240, 24, 216, 0.03);
  }

  14.9% {
    border-color: rgba(240, 24, 216, 0.145);
    box-shadow:
      0 0 50px rgba(240, 24, 216, 0.088),
      0 0 82px rgba(122, 47, 240, 0.05),
      inset 0 0 20px rgba(240, 24, 216, 0.025);
  }

  37.8% {
    border-color: rgba(240, 24, 216, 0.17);
    box-shadow:
      0 0 56px rgba(240, 24, 216, 0.1),
      0 0 90px rgba(122, 47, 240, 0.055),
      inset 0 0 20px rgba(240, 24, 216, 0.024);
  }

  39.2% {
    border-color: rgba(240, 24, 216, 0.095);
    box-shadow:
      0 0 34px rgba(240, 24, 216, 0.055),
      0 0 58px rgba(122, 47, 240, 0.03),
      inset 0 0 14px rgba(240, 24, 216, 0.016);
  }

  40.6% {
    border-color: rgba(240, 24, 216, 0.21);
    box-shadow:
      0 0 70px rgba(240, 24, 216, 0.145),
      0 0 116px rgba(122, 47, 240, 0.08),
      inset 0 0 28px rgba(240, 24, 216, 0.03);
  }

  72.6% {
    border-color: rgba(240, 24, 216, 0.12);
    box-shadow:
      0 0 40px rgba(240, 24, 216, 0.068),
      0 0 66px rgba(122, 47, 240, 0.036),
      inset 0 0 16px rgba(240, 24, 216, 0.018);
  }

  73.4% {
    border-color: rgba(240, 24, 216, 0.19);
    box-shadow:
      0 0 64px rgba(240, 24, 216, 0.12),
      0 0 102px rgba(122, 47, 240, 0.065),
      inset 0 0 24px rgba(240, 24, 216, 0.026);
  }

  91.7% {
    border-color: rgba(240, 24, 216, 0.15);
    box-shadow:
      0 0 50px rgba(240, 24, 216, 0.09),
      0 0 80px rgba(122, 47, 240, 0.048),
      inset 0 0 18px rgba(240, 24, 216, 0.02);
  }
}

@keyframes neonLogoFlicker {
  0%,
  2.4%,
  4.2%,
  12.7%,
  24%,
  41.8%,
  58.5%,
  74.6%,
  86.3%,
  100% {
    opacity: 1;
    filter:
      drop-shadow(0 0 4px rgba(255, 72, 232, 0.95))
      drop-shadow(0 0 14px rgba(240, 24, 216, 0.62))
      drop-shadow(0 0 30px rgba(122, 47, 240, 0.38));
  }

  1.1% {
    opacity: 0.82;
    filter:
      drop-shadow(0 0 2px rgba(255, 72, 232, 0.6))
      drop-shadow(0 0 8px rgba(240, 24, 216, 0.34))
      drop-shadow(0 0 16px rgba(122, 47, 240, 0.18));
  }

  3.1% {
    opacity: 0.63;
    filter:
      drop-shadow(0 0 2px rgba(255, 72, 232, 0.52))
      drop-shadow(0 0 7px rgba(240, 24, 216, 0.3));
  }

  3.6% {
    opacity: 0.96;
  }

  14.9% {
    opacity: 0.86;
    filter:
      drop-shadow(0 0 3px rgba(255, 72, 232, 0.78))
      drop-shadow(0 0 12px rgba(240, 24, 216, 0.5))
      drop-shadow(0 0 24px rgba(122, 47, 240, 0.3));
  }

  37.8% {
    opacity: 0.9;
    filter:
      drop-shadow(0 0 3px rgba(255, 72, 232, 0.7))
      drop-shadow(0 0 11px rgba(240, 24, 216, 0.42))
      drop-shadow(0 0 20px rgba(122, 47, 240, 0.25));
  }

  39.2% {
    opacity: 0.58;
    filter:
      drop-shadow(0 0 1px rgba(255, 72, 232, 0.42))
      drop-shadow(0 0 5px rgba(240, 24, 216, 0.22));
  }

  40.6% {
    opacity: 0.98;
  }

  72.6% {
    opacity: 0.72;
    filter:
      drop-shadow(0 0 2px rgba(255, 72, 232, 0.58))
      drop-shadow(0 0 8px rgba(240, 24, 216, 0.32));
  }

  73.4% {
    opacity: 0.94;
    filter:
      drop-shadow(0 0 3px rgba(255, 72, 232, 0.82))
      drop-shadow(0 0 12px rgba(240, 24, 216, 0.5))
      drop-shadow(0 0 24px rgba(122, 47, 240, 0.28));
  }

  91.7% {
    opacity: 0.88;
    filter:
      drop-shadow(0 0 2px rgba(255, 72, 232, 0.66))
      drop-shadow(0 0 10px rgba(240, 24, 216, 0.38))
      drop-shadow(0 0 18px rgba(122, 47, 240, 0.2));
  }
}

.settings-table {
  overflow-x: auto;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) 42px;
  gap: 10px;
  align-items: center;
  min-width: 760px;
  padding: 10px 20px;
  border-top: 1px solid rgba(192, 192, 240, 0.07);
}

.settings-row.is-compact {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) 42px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.settings-head {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(122, 47, 240, 0.08);
}

.show-settings-row {
  grid-template-columns: 48px minmax(160px, 1.4fr) 120px 150px 110px 150px 160px 42px;
  min-width: 1040px;
}

.travel-settings-row {
  grid-template-columns: minmax(170px, 1.2fr) repeat(3, 92px) repeat(3, minmax(145px, 1fr));
  min-width: 980px;
}

.vehicle-settings-row {
  grid-template-columns: minmax(150px, 1fr) minmax(145px, 1fr) minmax(145px, 1fr) 80px minmax(190px, 1.2fr) 42px;
  min-width: 940px;
}

.budget-settings-row {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 80px 100px minmax(230px, 1.5fr);
  min-width: 820px;
}

.ghost-button.is-cell {
  width: auto;
  min-height: 32px;
  padding: 0;
  border: 0;
}

.field:disabled,
.select:disabled {
  color: var(--muted-soft);
  opacity: 1;
  cursor: not-allowed;
  background: rgba(10, 10, 20, 0.46);
}

@media (max-width: 819px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    height: 100vh;
  }

  .topbar-next {
    display: none;
  }

  .topbar-actions {
    max-width: calc(100% - 120px);
  }

  .auth-chip {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }

  .content {
    padding-bottom: 108px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: initial;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    padding: 8px 4px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(20, 18, 31, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-nav .nav-button {
    flex: 1;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 9px;
    text-align: center;
  }

  .mobile-nav .nav-button svg {
    width: 21px;
    height: 21px;
  }

  .hero {
    border-radius: 18px;
  }

  .show-row,
  .task-row,
  .list-row,
  .route-row {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .status {
    font-size: 11.5px;
  }

  .budget-table,
  .budget-grid {
    min-width: 720px;
  }

  .dashboard-compact-grid,
  .sheet-two-col {
    grid-template-columns: 1fr;
  }

  .route-detail-grid,
  .route-stop-edit-grid {
    grid-template-columns: 1fr;
  }

  .route-stop-card {
    align-items: flex-start;
  }

  .sheet-two-col .sheet-section:first-child {
    border-right: 0;
  }

  .settings-row.is-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .login-panel {
    padding: 28px 20px;
  }

  .screen-head {
    align-items: flex-start;
  }

  .hero-foot {
    align-items: flex-start;
  }

  .countdown {
    gap: 10px;
  }

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

  .count-sep {
    display: none;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .topbar-actions .lock-button {
    padding-inline: 10px;
  }

  .topbar-actions .lock-button span {
    display: none;
  }

  .screen-head .primary-button,
  .screen-head .segments,
  .screen-head .select {
    width: 100%;
  }

  .row-inline {
    display: block;
  }

  .pipe {
    display: none;
  }

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

  .sheet-field,
  .sheet-field:nth-child(3n) {
    border-right: 0;
  }

  .sheet-header {
    grid-template-columns: 1fr;
  }

  .sheet-status {
    min-height: 54px;
    border-left: 0;
    border-top: 4px solid #050505;
  }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  html,
  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden;
  }

  .print-sheet,
  .print-sheet * {
    visibility: visible;
  }

  .print-sheet {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    box-shadow: none;
    border: 4px solid #050505;
  }

  .print-actions,
  .sidebar,
  .topbar,
  .mobile-nav,
  .tabs,
  .back-link,
  .screen-head,
  .edit-strip {
    display: none !important;
  }

  .content,
  .scroll-pane,
  .main,
  .app-shell {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .sheet-field input,
  .sheet-inline-input,
  .sheet-textarea,
  .sheet-table input,
  .ops-table input {
    border: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .sheet-textarea {
    min-height: auto;
    resize: none;
  }

  .ops-table-wrap {
    overflow: visible !important;
  }

  .ops-table {
    min-width: 0;
  }

  .icon-button,
  .add-row-button {
    display: none !important;
  }
}
