:root {
  --bg: #f5f5f7;
  --bg-alt: #e9eaee;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(29, 29, 31, 0.08);
  --brand: #072744;
  --brand-strong: #041b30;
  --brand-soft: rgba(7, 39, 68, 0.04);
  --accent: #0a84ff;
  --violet: #bf5af2;
  --mint: #30d158;
  --peach: #ff9f0a;
  --danger: #a73a3a;
  --system-accent-rgb: 100, 210, 255;
  --system-secondary-rgb: 94, 92, 230;
  --system-border-rgb: 126, 198, 255;
  --system-glow-rgb: 56, 189, 248;
  --shadow-lg: 0 32px 80px rgba(17, 17, 17, 0.12);
  --shadow-md: 0 18px 42px rgba(17, 17, 17, 0.08);
  --shadow-sm: 0 10px 24px rgba(17, 17, 17, 0.05);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-slow: 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(90, 200, 250, 0.16), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(191, 90, 242, 0.16), transparent 22%),
    radial-gradient(circle at 50% 80%, rgba(48, 209, 88, 0.1), transparent 24%),
    linear-gradient(180deg, #202a3a 0%, #121a27 44%, #0a1018 100%);
}

body[data-theme="dark"] {
  --bg: #141518;
  --bg-alt: #1c1d22;
  --surface: rgba(34, 35, 40, 0.76);
  --surface-strong: rgba(43, 45, 52, 0.9);
  --surface-solid: #23252b;
  --ink: #f5f5f7;
  --ink-soft: #b6bbc6;
  --line: rgba(255, 255, 255, 0.08);
  --brand-soft: rgba(10, 132, 255, 0.08);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .hero-card {
  background:
    radial-gradient(circle at top right, rgba(191, 90, 242, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(34, 38, 48, 0.96), rgba(18, 20, 26, 0.98));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 82%);
}

.hidden {
  display: none !important;
}

.login-screen,
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(120, 170, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.38), rgba(8, 12, 18, 0.58));
  backdrop-filter: none;
  transition: none;
}

.login-panel,
.modal-card {
  width: min(100%, 500px);
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
  padding: 30px;
  transform: none;
  transition: none;
}

.login-panel,
.login-panel .field span,
.login-panel h1,
.login-panel .login-copy {
  color: #f5f7fb;
}

.login-panel .field input,
.login-panel .field select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f7fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-panel #loginPasskey {
  background: #ffffff;
  color: #111111;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-panel .field select {
  background: #ffffff;
  color: #111111;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-panel .field input::placeholder {
  color: rgba(245, 247, 251, 0.56);
}

.login-panel #loginPasskey::placeholder {
  color: rgba(17, 17, 17, 0.42);
}

.modal.hidden,
.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal.hidden .modal-card,
.login-screen.hidden .login-panel {
  transform: none;
}

.admin-modal-card {
  width: min(1320px, 100%);
  height: min(92vh, 940px);
  max-height: 92vh;
  overflow: hidden;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.admin-page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
}

.admin-sidebar {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 0;
  align-content: start;
}

.admin-nav-button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  color: #f5f7fb;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(38, 45, 59, 0.92), rgba(21, 27, 37, 0.96)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.14), rgba(var(--system-secondary-rgb), 0.1));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.admin-nav-button:hover {
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
}

.admin-nav-button.is-active {
  background:
    linear-gradient(180deg, rgba(46, 58, 76, 0.96), rgba(25, 31, 43, 0.98)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.22), rgba(var(--system-secondary-rgb), 0.14));
  border-color: rgba(var(--system-border-rgb), 0.36);
  color: #ffffff;
}

.admin-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-gutter: stable;
  clip-path: inset(0 round 22px);
}

.admin-view-panel {
  display: none;
  min-height: 100%;
}

.admin-view-panel.admin-grid {
  display: none;
  min-height: 100%;
}

.admin-view-panel.is-active {
  display: block;
}

.admin-view-panel.admin-grid.is-active {
  display: grid;
}

.login-logo {
  width: 118px;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 24px rgba(7, 39, 68, 0.08));
}

.login-copy,
.helper-text,
.topbar-note,
.hero-text,
.dashboard-card p,
.item-card p,
.admin-card p,
.narrative,
.empty-state {
  color: rgba(245, 247, 251, 0.72);
  line-height: 1.6;
}

.error-text {
  color: var(--danger);
  font-weight: 700;
  margin: 14px 0 0;
}

.app-shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px 20px 40px;
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease;
}

.app-shell.dashboard-mode {
  max-width: none;
  width: 100%;
  padding: 0;
}

.app-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  filter: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(90, 200, 250, 0.16), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(191, 90, 242, 0.16), transparent 20%),
    radial-gradient(circle at 50% 88%, rgba(52, 199, 89, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(29, 41, 58, 0.94) 0%, rgba(14, 22, 33, 0.98) 48%, rgba(8, 12, 18, 1) 100%);
}

.app-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.app-shell.entering {
  opacity: 0;
  transform: none;
}

.menu-bar,
.menu-panel,
.hero,
.panel,
.dashboard-card,
.welcome-panel,
.admin-section {
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.22), rgba(var(--system-secondary-rgb), 0.16));
  border: 1px solid rgba(var(--system-border-rgb), 0.28);
  border-radius: var(--radius-xl);
  color: #f5f7fb;
  backdrop-filter: none;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--system-border-rgb), 0.05),
    0 0 54px rgba(var(--system-glow-rgb), 0.14);
  transition: box-shadow var(--ease), border-color var(--ease), background var(--ease);
}

.menu-bar:hover,
.menu-panel:hover,
.hero:hover,
.panel:hover,
.dashboard-card:hover,
.welcome-panel:hover,
.admin-section:hover {
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--system-border-rgb), 0.05),
    0 0 54px rgba(var(--system-glow-rgb), 0.14);
}

.panel,
.menu-panel,
.dashboard-card,
.welcome-panel,
.admin-section,
.hero,
.modal-card,
.calendar-day,
.item-card,
.admin-card,
.reference-box,
.summary-box,
.narrative,
.empty-state {
  color: #f5f7fb;
}

.panel .hero-text,
.menu-panel .hero-text,
.dashboard-card .hero-text,
.welcome-panel .hero-text,
.admin-section .hero-text,
.panel .helper-text,
.menu-panel .helper-text,
.dashboard-card .helper-text,
.welcome-panel .helper-text,
.admin-section .helper-text,
.panel p,
.menu-panel p,
.dashboard-card p,
.welcome-panel p,
.admin-section p,
.item-card p,
.admin-card p,
.reference-box,
.summary-box,
.narrative,
.empty-state {
  color: rgba(245, 247, 251, 0.74);
}

#saveJobStatus {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

#saveJobStatus.is-success,
#saveJobStatus.is-error {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

#saveJobStatus.is-success {
  color: #effff4;
  background: rgba(52, 199, 89, 0.16);
  border-color: rgba(52, 199, 89, 0.34);
}

#saveJobStatus.is-error {
  color: #fff3f2;
  background: rgba(255, 69, 58, 0.16);
  border-color: rgba(255, 69, 58, 0.34);
}

.required-label {
  margin-left: 6px;
  color: rgba(255, 159, 10, 0.92);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
}

.is-soft-disabled {
  opacity: 0.72;
}

.required-pulse {
  animation: requiredPulse 760ms ease-in-out 3;
}

@keyframes requiredPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 69, 58, 0);
    border-color: rgba(255, 255, 255, 0.16);
  }
  35% {
    box-shadow: 0 0 0 5px rgba(255, 69, 58, 0.22);
    border-color: rgba(255, 69, 58, 0.86);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 69, 58, 0);
  }
}

.panel .field span,
.menu-panel .field span,
.dashboard-card .field span,
.welcome-panel .field span,
.admin-section .field span,
.panel .section-kicker,
.menu-panel .section-kicker,
.dashboard-card .section-kicker,
.welcome-panel .section-kicker,
.admin-section .section-kicker {
  color: rgba(245, 247, 251, 0.84);
}

.panel h3,
.panel h4,
.menu-panel h3,
.menu-panel h4,
.dashboard-card h3,
.dashboard-card h4,
.welcome-panel h3,
.welcome-panel h4,
.admin-section h3,
.admin-section h4,
.item-card h4,
.admin-card h4,
.calendar-day-top strong {
  color: #f5f7fb;
}

.menu-shell {
  margin-bottom: 18px;
  position: sticky;
  top: 16px;
  z-index: 10;
  opacity: 1;
  transform: none;
  transition: none;
}

.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  transition: box-shadow var(--ease), background var(--ease);
}

.menu-shell.is-faded {
  opacity: 0.72;
  transform: none;
}

.brand-lockup,
.button-row,
.view-header,
.item-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup {
  gap: 16px;
}

.topbar-logo {
  width: 74px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(7, 39, 68, 0.08));
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 180px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 244, 249, 0.84)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(48, 209, 88, 0.08));
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: box-shadow var(--ease), background var(--ease);
}

.menu-toggle:hover {
  box-shadow: var(--shadow-md);
}

.menu-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateX(-1px);
  opacity: 0.9;
}

.menu-toggle-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle-user::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(135deg, #0a84ff, #64d2ff 48%, #30d158);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.menu-toggle-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.menu-panel {
  margin-top: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.menu-item {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 251, 0.84)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(191, 90, 242, 0.08));
  transition: box-shadow var(--ease), background var(--ease);
}

.menu-item:hover {
  box-shadow: var(--shadow-sm);
}

.danger-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 241, 241, 0.88)),
    linear-gradient(135deg, rgba(255, 59, 48, 0.16), rgba(255, 159, 10, 0.1));
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(245, 247, 251, 0.78);
}

.menu-bar h1,
.login-panel h1,
.view-header h2,
.welcome-panel h2,
.dashboard-card h3,
.panel h3,
.modal-card h3 {
  margin: 0;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.hero-copy h2 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(191, 90, 242, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(31, 38, 51, 0.92), rgba(17, 19, 24, 0.96));
  color: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card h2,
.hero-card p {
  margin: 0;
}

.hero-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.hero-card p:last-child {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.tabs {
  display: none;
}

.app-content {
  position: relative;
  min-height: calc(100vh - 120px);
  perspective: 1200px;
  z-index: 1;
}


.view {
  opacity: 0;
  transform: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: none;
}

.view.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

#dashboardView {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: 28px 28px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-gradient,
.dashboard-shimmer {
  position: absolute;
  inset: -18%;
  will-change: auto;
  transform: none;
  backface-visibility: visible;
}

.dashboard-gradient,
.dashboard-shimmer {
  display: none;
}

.dashboard-gradient {
  filter: none;
  opacity: 0.18;
}

.gradient-base {
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 94, 98, 0.32), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(90, 200, 250, 0.3), transparent 26%),
    radial-gradient(circle at 76% 78%, rgba(191, 90, 242, 0.24), transparent 24%),
    radial-gradient(circle at 22% 76%, rgba(48, 209, 88, 0.24), transparent 23%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(241, 244, 250, 0.36));
  background-size: 130% 130%, 140% 140%, 135% 135%, 125% 125%, 100% 100%;
  animation: none;
}

.gradient-flow-one {
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(255, 159, 10, 0.26), rgba(255, 94, 98, 0.08), rgba(90, 200, 250, 0.24), rgba(48, 209, 88, 0.08), rgba(255, 159, 10, 0.26));
  background-size: 140% 140%;
  animation: none;
}

.gradient-flow-two {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10, 132, 255, 0.2), transparent 42%),
    radial-gradient(ellipse at 42% 68%, rgba(191, 90, 242, 0.18), transparent 40%),
    radial-gradient(ellipse at 60% 56%, rgba(255, 214, 10, 0.14), transparent 36%);
  background-size: 155% 155%, 145% 145%, 135% 135%;
  animation: none;
}

.gradient-flow-three {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(300deg, rgba(0, 122, 255, 0.08) 8%, rgba(175, 82, 222, 0.16) 34%, rgba(255, 45, 85, 0.08) 62%, rgba(52, 199, 89, 0.1) 92%);
  background-size: 220% 220%, 185% 185%;
  animation: none;
  opacity: 0.18;
}

.dashboard-shimmer {
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 52%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.18) 32%, rgba(255, 255, 255, 0) 48%);
  opacity: 0.08;
  animation: none;
}

@keyframes dashboardGradientBase {
  from {
    background-position: 0% 40%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
  }
  to {
    background-position: 14% 54%, 88% 12%, 86% 92%, 12% 88%, 50% 50%;
  }
}

@keyframes dashboardGradientFlowOne {
  from {
    background-position: 22% 28%;
  }
  to {
    background-position: 78% 72%;
  }
}

@keyframes dashboardGradientFlowTwo {
  from {
    background-position: 12% 18%, 68% 72%, 82% 36%;
  }
  to {
    background-position: 84% 26%, 28% 84%, 36% 72%;
  }
}

@keyframes dashboardGradientFlowThree {
  from {
    background-position: 0% 50%, 0% 50%;
  }
  to {
    background-position: 100% 50%, 100% 50%;
  }
}

@keyframes dashboardShimmer {
  from {
    background-position: -30% 50%, 0% 0%;
  }
  to {
    background-position: 130% 50%, 0% 0%;
  }
}

.view.launching-out {
  opacity: 1;
  transform: none;
  filter: none;
}

.view.launching-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.workspace-grid,
.quote-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  max-width: none;
  width: 100%;
  margin: 0;
}

#newJobView .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#newJobView .field-grid,
#newJobView .short-grid {
  margin-top: 0;
}

.launcher-hero,
.panel,
.admin-section {
  padding: 20px;
}

.panel,
.launcher-hero,
.admin-section {
  overflow: hidden;
}

.admin-section {
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

#adminPanel .view-header {
  align-items: flex-start;
}

.launcher-hero {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 8px 8px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.launcher-hero h2,
.launcher-hero .hero-text {
  color: #f5f7fb;
}

.launcher-logo {
  width: 116px;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.38));
}

.launcher-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 30px 28px;
  justify-items: center;
  align-items: start;
  max-width: 980px;
  margin: 28px auto 0;
}

.launcher-app {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: center;
  font: inherit;
  opacity: 0;
  transform: translateY(24px) scale(0.88);
  animation: launcherBubbleIn 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: filter var(--ease), opacity var(--ease);
}

.launcher-app:hover {
  filter: brightness(1.02);
}

.launcher-app:hover .app-icon {
  transform: scale(1.045);
}

.launcher-app h3 {
  margin: 12px 0 0;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f7fb;
}

.launcher-app:nth-child(1) { animation-delay: 30ms; }
.launcher-app:nth-child(2) { animation-delay: 110ms; }
.launcher-app:nth-child(3) { animation-delay: 190ms; }
.launcher-app:nth-child(4) { animation-delay: 270ms; }
.launcher-app:nth-child(5) { animation-delay: 350ms; }
.launcher-app:nth-child(6) { animation-delay: 130ms; }
.launcher-app:nth-child(7) { animation-delay: 240ms; }
.launcher-app:nth-child(8) { animation-delay: 320ms; }
.launcher-app:nth-child(9) { animation-delay: 400ms; }

.app-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -14px 20px rgba(0, 0, 0, 0.12);
  transition: box-shadow var(--ease), filter var(--ease), transform 180ms ease;
}

.app-icon::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02));
}

@keyframes launcherBubbleIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.88);
    filter: blur(8px);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.launcher-app:hover .app-icon {
  box-shadow:
    0 26px 44px rgba(31, 36, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -14px 20px rgba(0, 0, 0, 0.1);
  filter: brightness(1.04);
}

.app-icon i,
.app-icon ion-icon {
  position: relative;
  z-index: 1;
  font-size: 1.95rem;
  color: white;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-icon ion-icon {
  font-size: 2.1rem;
}

.app-icon-job {
  background:
    linear-gradient(180deg, #70d7ff 0%, #3ca8ff 42%, #007aff 100%);
}

.app-icon-current {
  background:
    linear-gradient(180deg, #6ee7a0 0%, #34c759 48%, #249b44 100%);
}

.app-icon-find {
  background:
    linear-gradient(180deg, #ffd76c 0%, #ffb340 46%, #ff9500 100%);
}

.app-icon-quote {
  background:
    linear-gradient(180deg, #d98cff 0%, #bf5af2 44%, #8f4bff 100%);
}

.app-icon-settings {
  background:
    linear-gradient(180deg, #c8ccd3 0%, #8e97a4 46%, #6b7280 100%);
}

.app-icon-calendar {
  background:
    linear-gradient(180deg, #ff7b72 0%, #ff5f57 44%, #ff375f 100%);
}

.app-icon-invoices {
  background:
    linear-gradient(180deg, #7de3d6 0%, #3bc9b5 46%, #16a085 100%);
}

.app-icon-certification {
  background:
    linear-gradient(180deg, #ffd98b 0%, #ffb84d 46%, #ff8c1a 100%);
}

.app-icon-notes {
  background:
    linear-gradient(180deg, #fff6a3 0%, #ffd95a 44%, #ffbf1f 100%);
}

.settings-panel {
  max-width: none;
  width: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 10, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(10, 132, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.settings-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.settings-avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6 52%, #bf5af2);
  box-shadow: 0 18px 30px rgba(94, 92, 230, 0.24);
}

.settings-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.calendar-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.55fr);
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  align-items: stretch;
}

.notes-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  align-items: stretch;
}

.notes-sidebar,
.notes-editor-panel {
  min-height: 0;
  height: 100%;
}

.notes-sidebar {
  padding-right: 8px;
}

.notes-editor-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notes-sidebar-shell,
.notes-editor-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.notes-sidebar-shell {
  gap: 12px;
}

.notes-editor-shell {
  flex: 1 1 auto;
  gap: 12px;
}

.notes-sidebar-top,
.notes-editor-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notes-sidebar-top .section-kicker,
.notes-editor-top .section-kicker {
  margin-bottom: 4px;
}

.notes-sidebar-top h3,
.notes-editor-top h3 {
  margin: 0;
}

.notes-sidebar .field,
.notes-editor-shell .field,
.notes-editor-field {
  margin-top: 0;
}

.notes-sidebar .field input,
.notes-editor-shell .field input {
  min-height: 46px;
}

.notes-list {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.notes-list-item {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-align: left;
  color: #f5f7fb;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(38, 45, 59, 0.78), rgba(21, 27, 37, 0.88)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.08), rgba(var(--system-secondary-rgb), 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    background var(--ease),
    transform var(--ease);
}

.notes-list-item.is-active {
  border-color: rgba(var(--system-border-rgb), 0.46);
  box-shadow:
    0 0 0 1px rgba(var(--system-border-rgb), 0.18),
    0 18px 34px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(46, 58, 76, 0.94), rgba(25, 31, 43, 0.98)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.16), rgba(var(--system-secondary-rgb), 0.12));
  transform: translateY(-1px);
}

.notes-list-item h4,
.notes-list-item p {
  margin: 0;
}

.notes-list-item p {
  margin-top: 8px;
  color: rgba(245, 247, 251, 0.72);
  line-height: 1.45;
}

.notes-timestamp {
  margin-top: 10px;
  display: block;
  color: rgba(245, 247, 251, 0.52);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.notes-meta {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.notes-editor-field {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.notes-editor {
  flex: 1 1 auto;
  min-height: 420px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(26, 33, 45, 0.84), rgba(15, 23, 33, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(var(--system-accent-rgb), 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f7fb;
  line-height: 1.6;
  outline: none;
  overflow: auto;
  scrollbar-gutter: stable;
  clip-path: inset(0 round 22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.notes-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(245, 247, 251, 0.48);
}

.notes-editor:focus {
  border-color: rgba(var(--system-border-rgb), 0.42);
  box-shadow:
    0 0 0 3px rgba(var(--system-accent-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.notes-editor ul,
.notes-editor ol {
  margin: 0;
  padding-left: 24px;
}

.notes-editor div + ul,
.notes-editor div + ol,
.notes-editor ul + div,
.notes-editor ol + div {
  margin-top: 8px;
}

.notes-editor li + li {
  margin-top: 8px;
}

.notes-editor .notes-live-checklist {
  list-style: none;
  padding-left: 0;
}

.notes-editor .notes-live-checklist li {
  position: relative;
  padding-left: 34px;
  min-height: 24px;
}

.notes-editor .notes-live-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(245, 247, 251, 0.44);
  background: rgba(255, 255, 255, 0.06);
}

.notes-editor .notes-live-checklist li + li {
  margin-top: 10px;
}

.calendar-main,
.calendar-side {
  min-height: 0;
  height: 100%;
}

.calendar-main {
  display: flex;
  flex-direction: column;
}

.calendar-toolbar,
.calendar-heading,
.calendar-weekdays,
.calendar-day-top {
  display: flex;
  align-items: center;
}

#certificationView .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#certificationView .subsection {
  margin-top: 18px;
}

.calendar-toolbar {
  justify-content: space-between;
  gap: 16px;
}

.calendar-heading {
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.calendar-heading h3 {
  font-size: 1.35rem;
}

.calendar-status {
  margin-top: 16px;
}

.calendar-weekdays {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 6px;
  color: rgba(245, 247, 251, 0.64);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.1em;
}

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

.card-close-button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.14);
  color: #fff5f5;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calendar-weekdays span,
.calendar-day {
  min-width: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.calendar-day {
  min-height: 0;
  padding: 12px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.calendar-day.is-muted {
  opacity: 0.45;
}

.calendar-day.is-today {
  border-color: rgba(10, 132, 255, 0.24);
  box-shadow:
    0 0 0 2px rgba(10, 132, 255, 0.08),
    var(--shadow-sm);
}

.calendar-day.is-selected {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    var(--shadow-sm);
}

.calendar-day-top {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-day-top strong {
  font-size: 1rem;
}

.calendar-day-top span {
  color: rgba(245, 247, 251, 0.68);
  font-size: 0.74rem;
}

.calendar-day-events {
  display: grid;
  gap: 6px;
}

.calendar-chip {
  padding: 7px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(100, 210, 255, 0.16));
  color: #0b5cad;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-header-actions {
  width: calc(100% - 28px);
  margin: 10px 14px 0;
  justify-content: flex-end;
  gap: 10px;
}

.calendar-header-actions .calendar-view-toggle {
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-header-actions .ghost-button {
  min-height: 34px;
  padding: 8px 13px;
}

.calendar-view-toggle .ghost-button.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.calendar-day-timeline {
  margin-top: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.calendar-timeline-shell {
  position: relative;
  min-height: 960px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.calendar-time-mark {
  position: relative;
  height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-time-mark:first-child {
  border-top: 0;
}

.calendar-time-mark span {
  position: absolute;
  left: 14px;
  top: 8px;
  color: rgba(245, 247, 251, 0.58);
  font-size: 0.76rem;
}

.calendar-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff6b6b;
  z-index: 3;
}

.calendar-now-line span {
  position: absolute;
  right: 12px;
  top: -11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ff6b6b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.calendar-timeline-event {
  position: absolute;
  left: 82px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(101, 163, 255, 0.24), rgba(71, 125, 214, 0.18));
  color: #ffffff;
  text-align: left;
}

.calendar-timeline-event.is-live {
  background: linear-gradient(180deg, rgba(52, 199, 89, 0.26), rgba(36, 166, 72, 0.18));
  border-color: rgba(80, 227, 135, 0.34);
}

.calendar-maps-actions,
.calendar-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.calendar-event-actions {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  white-space: nowrap;
}

.calendar-map-button ion-icon {
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.view-header {
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 18px;
  z-index: 3;
  background: transparent;
  border-bottom: 0;
}

.view-header > div:first-child {
  display: none;
}


#settingsView,
#newJobView,
#currentJobsView,
#findJobView,
#invoicesView,
#certificationView,
#notesView,
#quoteView {
  padding-top: 22px;
}

#currentJobsView > .panel,
#findJobView > .panel,
#invoicesView > .panel {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#notesView input {
  resize: vertical;
}

.field-grid,
.short-grid,
.add-row,
.item-controls,
.admin-field-grid,
.admin-add-grid,
.admin-catalogue-grid,
.admin-grid {
  display: grid;
  gap: 14px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

.fixed-cost-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  column-gap: 22px;
}

.visits-cost-grid {
  grid-template-columns: max-content max-content;
  align-items: start;
  column-gap: 12px;
  max-width: 280px;
}

.visits-stack-field {
  align-items: flex-start;
  gap: 10px;
  align-self: start;
}

.visits-stack-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  min-width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 79, 84, 0.96), rgba(58, 58, 60, 0.98));
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(12, 16, 24, 0.18);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.visits-stack-field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  box-shadow: 0 3px 8px rgba(17, 20, 26, 0.2);
  transition: transform var(--ease);
}

.visits-stack-field input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #34c759, #30d158 58%, #30d158);
}

.visits-stack-field input[type="checkbox"]:checked::after {
  transform: translateX(22px);
}

.visits-qty-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  justify-self: start;
  align-self: start;
}

.visits-qty-inline span {
  white-space: nowrap;
  line-height: 1.2;
  padding-top: 0;
}

.visits-qty-inline input[type="number"] {
  width: 72px;
  min-width: 72px;
  height: 30px;
  padding: 4px 8px;
  text-align: center;
}

.toggle-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  min-height: 30px;
}

.toggle-field span {
  white-space: nowrap;
}

.toggle-field input[type="checkbox"] {
  align-self: flex-start;
  margin-top: 0;
}


.add-row {
  grid-template-columns: minmax(0, 1.6fr) 160px 180px;
  align-items: end;
  margin-top: 16px;
}

#quoteView .add-row {
  grid-template-columns: minmax(0, 1.2fr) 130px 150px 100px auto;
  align-items: end;
}

#quoteView .add-row .primary-button {
  width: auto;
  min-width: 128px;
  justify-self: start;
  white-space: nowrap;
}

#quoteView {
  --quote-card-bg:
    linear-gradient(180deg, rgba(28, 34, 46, 0.94), rgba(14, 19, 29, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.18), rgba(var(--system-secondary-rgb), 0.11));
}

#quoteView .quote-workspace {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
  gap: 16px;
}

#quoteView .quote-planner-panel,
#quoteView .quote-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(13, 18, 28, 0.78), rgba(8, 12, 20, 0.82)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.12), rgba(var(--system-secondary-rgb), 0.08));
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

#quoteView .quote-section,
#quoteView .quote-control-card,
#quoteView .quote-items-panel,
#quoteView .quote-side-card,
#quoteView .quote-total-card {
  background: var(--quote-card-bg);
  border: 1px solid rgba(var(--system-border-rgb), 0.26);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

#quoteView .quote-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1.1fr 0.8fr 0.52fr;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

#quoteView .quote-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}

#quoteView .quote-add-section,
#quoteView .quote-controls-section {
  min-height: 0;
}

#quoteView .quote-add-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(110px, 0.54fr) minmax(130px, 0.66fr) 68px auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

#quoteView .quote-add-button {
  width: auto;
  min-width: 104px;
  padding-inline: 14px;
  justify-self: start;
}

#quoteView .quote-manual-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.1fr) 70px 120px auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

#quoteView .quote-manual-card .helper-text {
  margin: 2px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

#quoteView .quote-manual-button {
  width: auto;
  white-space: nowrap;
  justify-self: start;
}

#quoteView .quote-manual-status {
  grid-column: 1 / -1;
  min-height: 14px;
}

#quoteView .item-card.is-manual-item {
  background:
    linear-gradient(135deg, rgba(52, 199, 89, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
}

#quoteView .quote-cable-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

#quoteView .quote-mini-label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(245, 247, 251, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#quoteView .quote-items-panel {
  margin-top: 12px;
  min-height: 0;
}

#quoteView .quote-tight-header {
  margin-bottom: 10px;
}

#quoteView .quote-controls-section {
  display: grid;
  align-content: start;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

#quoteView .quote-labour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#quoteView .quote-toggle-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

#quoteView .quote-toggle-row,
#quoteView .quote-visit-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#quoteView .quote-toggle-row {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#quoteView .quote-toggle-row span {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
}

#quoteView .quote-toggle-row small {
  display: block;
  margin-top: 2px;
  color: rgba(245, 247, 251, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
}

#quoteView .quote-toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3a3a3c, #2c2c2e);
  cursor: pointer;
  transition: background var(--ease);
}

#quoteView .quote-toggle-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(17, 20, 26, 0.2);
  transition: transform var(--ease);
}

#quoteView .quote-toggle-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #34c759, #30d158 58%, #30d158);
}

#quoteView .quote-toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

#quoteView .quote-visit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: center;
}

#quoteView .quote-visit-qty {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 5px;
  justify-items: start;
}

#quoteView .quote-visit-qty span {
  font-size: 0.72rem;
}

#quoteView .quote-visit-qty input {
  width: 62px;
  min-width: 62px;
  height: 30px;
  padding: 4px 8px;
  text-align: center;
}

#quoteView .quote-summary-panel {
  gap: 10px;
}

#quoteView .quote-total-card h3 {
  margin: 4px 0 2px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.07em;
  color: #ffffff;
}

#quoteView .quote-total-card .hero-text {
  margin: 0;
  font-size: 0.88rem;
}

#quoteView .quote-model-card,
#quoteView .quote-breakdown-card,
#quoteView .quote-recommendation,
#quoteView .quote-side-card .narrative {
  background: var(--quote-card-bg);
  border-color: rgba(var(--system-border-rgb), 0.26);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

#quoteView .quote-side-card {
  padding: 13px;
}

#quoteView .quote-side-card .narrative {
  padding: 12px;
}

#quoteView .quote-email-card {
  display: grid;
  gap: 10px;
}

#quoteView .quote-email-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#quoteView .quote-email-actions .primary-button,
#quoteView .quote-email-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

#quoteView #quoteEmailStatus {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

#quoteView .summary-row {
  border-color: rgba(255, 255, 255, 0.09);
  padding: 8px 0;
}

#quoteView .summary-row span {
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.82rem;
}

#quoteView .summary-row strong {
  color: #ffffff;
}

#quoteView .grand-total {
  font-size: 1rem;
}

#quoteView .breakdown-list {
  margin-top: 8px;
  padding-left: 17px;
  font-size: 0.82rem;
}

#quoteView .item-stack {
  gap: 10px;
}

#quoteView .item-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

#quoteView .item-card-top h4 {
  margin: 0;
  font-size: 0.92rem;
}

#quoteView .item-card-top p {
  margin: 4px 0 0;
  font-size: 0.76rem;
}

#quoteView .item-controls {
  grid-template-columns: minmax(100px, 0.8fr) minmax(116px, 0.9fr) 64px minmax(88px, 0.8fr) minmax(90px, 0.8fr) auto;
  gap: 8px;
  margin-top: 10px;
}

#quoteView .item-controls .ghost-button {
  width: auto;
  padding: 9px 11px;
}

#quoteView #cableReference {
  max-width: 100%;
  min-width: 300px;
  margin-top: 0;
}

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

.admin-add-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) 180px;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-grid-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid-secondary {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.admin-catalogue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field span {
  font-size: 0.86rem;
  font-weight: 700;
}

.inline-field {
  min-width: 140px;
}

.field input,
.field select,
.field textarea,
.primary-button,
.ghost-button,
.dashboard-card,
.tab-button {
  font: inherit;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(16, 37, 58, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 251, 0.88)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.04), rgba(191, 90, 242, 0.04));
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 252, 0.96));
  color: #111111;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding-right: 38px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 252, 0.96)),
    linear-gradient(45deg, transparent 50%, #111111 50%),
    linear-gradient(135deg, #111111 50%, transparent 50%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 8px 8px, 8px 8px;
  background-position: 0 0, calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
}

.field select option {
  background: #ffffff;
  color: #111111;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(47, 110, 160, 0.22);
  box-shadow:
    0 0 0 4px rgba(10, 132, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.96);
}

.field textarea {
  resize: vertical;
}

.checkbox-field {
  justify-content: end;
}

.checkbox-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  min-width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.9), rgba(176, 183, 194, 0.96));
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(12, 16, 24, 0.12);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.checkbox-field input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  box-shadow: 0 3px 8px rgba(17, 20, 26, 0.2);
  transition: transform var(--ease);
}

.checkbox-field input:checked {
  background: linear-gradient(135deg, #34c759, #30d158 58%, #30d158);
}

.checkbox-field input:checked::after {
  transform: translateX(22px);
}

.primary-button,
.ghost-button,
.wide-button {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: box-shadow var(--ease), background var(--ease), border-color var(--ease), opacity var(--ease);
}

.primary-button,
.wide-button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #34c759 0%, #30d158 52%, #28b44a 100%);
  color: white;
  box-shadow: none;
}

.primary-button:hover,
.wide-button:hover {
  box-shadow: none;
}

.ghost-button {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 251, 0.78)),
    linear-gradient(135deg, rgba(48, 209, 88, 0.05), rgba(10, 132, 255, 0.05));
  color: var(--ink);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sync-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #34c759 0%, #30d158 52%, #28b44a 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(52, 199, 89, 0.24);
}

.sync-button i {
  transition: transform var(--ease), opacity var(--ease);
}

.sync-button:hover {
  background: linear-gradient(135deg, #3bd163 0%, #35da61 52%, #2dbc4f 100%);
  box-shadow: 0 16px 30px rgba(52, 199, 89, 0.3);
}

.sync-button.is-syncing i {
  animation: spin-sync 900ms linear infinite;
}

@keyframes spin-sync {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wide-button {
  width: 100%;
  margin-top: 18px;
}

.subsection,
.notes-block,
.top-gap {
  margin-top: 24px;
}

.subsection.compact {
  margin-top: 22px;
}

.questionnaire-step {
  margin-top: 18px;
}

.questionnaire-step:first-child {
  margin-top: 0;
}

.job-planner-panel {
  display: flex;
  flex-direction: column;
}

#newJobView .subsection {
  padding: 16px;
}

#newJobView .field input,
#newJobView .field select,
#newJobView .field textarea {
  padding: 10px 12px;
  min-height: 42px;
}

#newJobView textarea {
  min-height: 92px;
}

#newJobView .field-grid,
#newJobView .short-grid {
  gap: 12px;
}

.subsection-header,
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cert-accordion {
  padding: 0;
  overflow: hidden;
}

.cert-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.cert-accordion-summary::-webkit-details-marker {
  display: none;
}

.cert-accordion-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid rgba(255, 255, 255, 0.78);
  transform: rotate(45deg);
  transition: transform var(--ease);
}

.cert-accordion[open] .cert-accordion-chevron {
  transform: rotate(225deg);
}

.cert-accordion-body {
  padding: 0 18px 18px;
}

.cert-accordion .subsection.compact {
  padding: 14px;
}

.certificate-circuit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.certificate-reading-input {
  font-family: "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-transform: none;
}

.field.required-pulse span {
  color: #ff8e8e;
}

.field.required-pulse input,
.field.required-pulse select,
.field.required-pulse textarea {
  border-color: rgba(255, 107, 107, 0.9);
  animation: fieldPulse 1s ease 0s 3;
  box-shadow:
    0 0 0 0 rgba(255, 107, 107, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@keyframes fieldPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 107, 107, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  45% {
    box-shadow:
      0 0 0 7px rgba(255, 107, 107, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.panel > .reference-box,
.panel > .summary-box,
.panel > .narrative,
.panel > .empty-state,
.admin-section > .reference-box,
.admin-section > .summary-box,
.admin-section > .narrative,
.admin-section > .empty-state,
.subsection > .reference-box,
.subsection > .summary-box,
.subsection > .narrative,
.subsection > .empty-state {
  margin-top: 10px;
}

.field + .reference-box,
.field + .summary-box,
.field + .narrative,
.field + .empty-state,
.field-grid + .reference-box,
.field-grid + .summary-box,
.field-grid + .narrative,
.field-grid + .empty-state,
.add-row + .reference-box,
.add-row + .summary-box,
.add-row + .narrative,
.add-row + .empty-state,
.button-row + .reference-box,
.button-row + .summary-box,
.button-row + .narrative,
.button-row + .empty-state {
  margin-top: 12px;
}

.subsection-header + .chip-row,
.subsection-header + .add-row,
.subsection-header + .item-stack,
.add-row + .item-stack {
  margin-top: 12px;
}

.reference-box,
.summary-box,
.narrative,
.empty-state {
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.2), rgba(var(--system-secondary-rgb), 0.14));
  border: 1px solid rgba(var(--system-border-rgb), 0.28);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: none;
}

#cableReference {
  max-width: 360px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(245, 247, 251, 0.66);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.cable-source-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cable-source-segmented {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 79, 84, 0.96), rgba(58, 58, 60, 0.98));
  box-shadow: inset 0 2px 6px rgba(12, 16, 24, 0.18);
  gap: 4px;
}

.cable-source-option {
  border: 0;
  background: transparent;
  color: rgba(245, 247, 251, 0.78);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.cable-source-option.is-active {
  background: linear-gradient(135deg, #34c759, #30d158 58%, #30d158);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(52, 199, 89, 0.22);
}

.info-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
}

.cable-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 8px;
}

.cable-source-grid p {
  margin: 0;
  white-space: nowrap;
}

#cableReference strong {
  color: rgba(245, 247, 251, 0.84);
}

#cableReference a {
  color: rgba(180, 224, 255, 0.9);
}

.reference-box a {
  color: rgb(var(--system-accent-rgb));
}

.item-stack,
.admin-list {
  display: grid;
  gap: 12px;
}

#jobTaskList {
  gap: 10px;
}

.job-planner-panel .subsection-header h3 {
  letter-spacing: -0.025em;
}

.job-save-block {
  margin-top: 0;
}

.job-save-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.job-save-actions .helper-text {
  flex: 1 1 auto;
}

#newJobView .section-kicker {
  letter-spacing: 0.08em;
}

.job-stage-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.job-type-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-type-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(247, 249, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

.job-type-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-type-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.job-type-choice.hidden {
  display: none;
}

.job-type-choice.is-selected {
  background: rgba(var(--system-accent-rgb), 0.2);
  border-color: rgba(var(--system-border-rgb), 0.42);
}

.job-type-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.job-type-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.job-type-choice.is-selected .job-type-check-dot {
  background: #30d158;
}

.job-lock-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-selection-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.job-selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--system-border-rgb), 0.42);
  background: rgba(var(--system-accent-rgb), 0.2);
  color: #f7f9ff;
  font: inherit;
  font-weight: 600;
}

.job-selection-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-address-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1fr) 120px;
  gap: 10px;
}

.job-line-input {
  width: 100%;
  padding: 8px 2px !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f7f9ff !important;
}

.job-line-input::placeholder {
  color: rgba(247, 249, 255, 0.46);
}

.job-line-input:focus {
  border-bottom-color: rgba(var(--system-border-rgb), 0.72) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.job-line-input.required-pulse {
  animation-name: requiredLinePulse;
}

@keyframes requiredLinePulse {
  0% {
    border-bottom-color: rgba(255, 255, 255, 0.26);
    box-shadow: none;
  }
  35% {
    border-bottom-color: rgba(255, 69, 58, 0.95);
    box-shadow: 0 6px 12px -10px rgba(255, 69, 58, 0.9);
  }
  100% {
    border-bottom-color: rgba(255, 255, 255, 0.26);
    box-shadow: none;
  }
}

.job-stage-column {
  border-radius: 20px;
  padding: 12px;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#jobCompletedSection {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#newJobView .workspace-grid,
#newJobView .job-planner-panel {
  height: 100%;
}

.stage-started {
  background: linear-gradient(180deg, rgba(110, 16, 16, 0.34), rgba(53, 15, 19, 0.38));
}

.stage-todo {
  background: linear-gradient(180deg, rgba(120, 72, 7, 0.34), rgba(64, 38, 8, 0.38));
}

.stage-completed {
  background: linear-gradient(180deg, rgba(16, 94, 44, 0.32), rgba(12, 54, 29, 0.36));
}

.job-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.job-stage-heading h4 {
  margin: 0;
}

.job-stage-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.job-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.stage-started .job-stage-dot {
  background: #ff453a;
}

.stage-todo .job-stage-dot {
  background: #ff9f0a;
}

.stage-completed .job-stage-dot {
  background: #30d158;
}

.job-stage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-stage-add-button {
  padding: 8px 12px;
  min-width: 0;
  white-space: nowrap;
}

.job-stage-composer {
  display: grid;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.job-stage-composer .field {
  margin: 0;
}

.job-stage-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-stage-qty-field input {
  max-width: 90px;
}

.job-stage-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 30px;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 22, 0.28);
}

.planner-list-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.planner-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.32);
  color: #f7f9ff;
}

.planner-record-main {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.planner-record-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planner-record-check span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
}

.planner-record-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.planner-record-copy strong,
.planner-record-copy span,
.planner-record-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-record-copy strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.planner-record-copy span {
  color: rgba(247, 249, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 600;
}

.planner-record-copy small {
  color: rgba(247, 249, 255, 0.62);
  font-size: 0.76rem;
}

.planner-record-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.planner-record-meta span,
.planner-record-lines span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
}

.planner-record-lines {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.planner-record-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.planner-record-actions .primary-button,
.planner-record-actions .ghost-button {
  padding: 8px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.is-readonly-job .job-type-choice,
.is-readonly-job .job-selection-pill,
.is-readonly-job .job-line-input,
.is-readonly-job .job-stage-add-button,
.is-readonly-job .job-stage-composer,
.is-readonly-job .job-stage-item input,
.is-readonly-job .job-task-remove,
.is-readonly-job .icon-button {
  pointer-events: none;
}

.is-readonly-job .job-stage-add-button,
.is-readonly-job .job-task-remove,
.is-readonly-job .icon-button,
.is-readonly-job .job-stage-composer {
  display: none !important;
}

.is-readonly-job .job-stage-item {
  opacity: 0.86;
}

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

.job-readonly-heading,
.job-readonly-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.3);
}

.job-readonly-heading {
  grid-template-columns: auto minmax(0, 1fr);
}

.job-readonly-heading h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
}

.job-readonly-heading p {
  margin: 3px 0 0;
  color: rgba(247, 249, 255, 0.62);
  font-size: 0.78rem;
}

.job-readonly-check,
.job-readonly-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14);
}

.job-readonly-dot {
  width: 12px;
  height: 12px;
}

.job-readonly-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.job-readonly-copy strong,
.job-readonly-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-readonly-copy strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.job-readonly-copy span {
  color: rgba(247, 249, 255, 0.62);
  font-size: 0.76rem;
}

.job-readonly-qty {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
}

.job-stage-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.job-stage-meta {
  font-size: 0.76rem;
  color: rgba(245, 247, 251, 0.62);
}

.job-stage-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.compact-empty {
  min-height: 0;
  padding: 10px 12px;
  font-size: 0.84rem;
}

.job-task-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(var(--system-border-rgb), 0.22);
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.88), rgba(17, 25, 36, 0.92)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.14), rgba(var(--system-secondary-rgb), 0.1));
}

.job-task-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  cursor: pointer;
}

.job-task-check:checked {
  background: linear-gradient(135deg, #34c759, #30d158);
  border-color: transparent;
}

.job-task-check:checked::after {
  content: "";
  position: absolute;
  inset: 4px 3px 3px 4px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.job-task-name {
  min-width: 0;
  color: #f5f7fb;
  font-weight: 700;
  line-height: 1.35;
}

.job-task-row.is-done .job-task-name {
  color: rgba(245, 247, 251, 0.58);
  text-decoration: line-through;
}

.job-task-qty-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 247, 251, 0.7);
  font-size: 0.84rem;
  font-weight: 700;
}

.job-task-qty-group input {
  width: 68px;
  min-width: 68px;
  height: 34px;
  padding: 6px 8px;
  border-radius: 12px;
  text-align: center;
}

.job-task-remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.14);
  color: #fff2f1;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.item-card,
.admin-card {
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.2), rgba(var(--system-secondary-rgb), 0.14));
  border: 1px solid rgba(var(--system-border-rgb), 0.28);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.18),
    0 0 42px rgba(var(--system-glow-rgb), 0.14);
  transition: box-shadow var(--ease), background var(--ease);
}

.item-card:hover,
.admin-card:hover {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.18),
    0 0 42px rgba(var(--system-glow-rgb), 0.14);
}

.item-card-top,
.view-header,
.button-row {
  justify-content: space-between;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(144, 211, 255, 0.18));
  color: #f5f7fb;
  font-size: 0.78rem;
  font-weight: 800;
}

.item-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-top: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(16, 37, 58, 0.08);
}

.summary-row:last-child {
  border-bottom: none;
}

.grand-total {
  font-size: 1.15rem;
  padding-top: 14px;
}

.breakdown-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(245, 247, 251, 0.72);
  line-height: 1.6;
}

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

.toggle-pill input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  min-width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.9), rgba(176, 183, 194, 0.96));
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(12, 16, 24, 0.12);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.toggle-pill input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  box-shadow: 0 3px 8px rgba(17, 20, 26, 0.2);
  transition: transform var(--ease);
}

.toggle-pill input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #34c759, #30d158 58%, #30d158);
}

.toggle-pill input[type="checkbox"]:checked::after {
  transform: translateX(22px);
}

.admin-disclosure {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  padding: 14px 16px;
  color: #f5f7fb;
}

.admin-section-calendar {
  height: auto;
  min-height: 0;
}

.admin-disclosure summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.admin-disclosure summary::-webkit-details-marker {
  display: none;
}

.admin-disclosure summary::after {
  content: "+";
  float: right;
  color: rgba(245, 247, 251, 0.68);
}

.admin-disclosure[open] summary::after {
  content: "-";
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-button,
.info-pill {
  border-radius: 999px;
  padding: 10px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.84)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(48, 209, 88, 0.08));
  border: 1px solid rgba(29, 29, 31, 0.06);
  box-shadow: var(--shadow-sm);
}

.chip-button {
  cursor: pointer;
  color: var(--ink);
  transition: box-shadow var(--ease), background var(--ease);
}

.chip-button:hover {
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(48, 209, 88, 0.12));
}

.info-field {
  justify-content: end;
}

.info-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 800;
  color: #0066cc;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.88)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(100, 210, 255, 0.16));
}

.client-pricing-grid {
  grid-template-columns: 1.2fr 1.4fr 180px 220px 180px;
}

.admin-content {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.admin-view-panel.admin-grid,
.admin-view-panel.admin-grid.is-active {
  display: block;
}

.admin-stack {
  display: none;
  gap: 18px;
}

.admin-stack.is-active {
  display: grid;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

.admin-section-heading > div {
  min-width: 0;
}

.admin-section-heading h3 {
  margin: 4px 0 0;
}

.admin-section-heading .helper-text {
  margin: 0;
  max-width: 340px;
  text-align: right;
}

.admin-section-heading-actions {
  align-items: center;
}

.admin-section-heading-actions .button-row {
  justify-content: flex-end;
}

.admin-add-grid-catalogue {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-results-list {
  display: grid;
  gap: 14px;
}

.admin-clients-shell {
  display: grid;
  gap: 14px;
}

.admin-card,
.admin-section,
.admin-disclosure {
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.18), rgba(var(--system-secondary-rgb), 0.12));
}

.admin-nav-button:hover {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.admin-content {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.admin-view-panel.admin-grid,
.admin-view-panel.admin-grid.is-active {
  display: block;
}

.admin-stack {
  display: none;
  gap: 18px;
}

.admin-stack.is-active {
  display: grid;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

.admin-section-heading > div {
  min-width: 0;
}

.admin-section-heading h3 {
  margin: 4px 0 0;
}

.admin-section-heading .helper-text {
  margin: 0;
  max-width: 340px;
  text-align: right;
}

.admin-section-heading-actions {
  align-items: center;
}

.admin-section-heading-actions .button-row {
  justify-content: flex-end;
}

.admin-add-grid-catalogue {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-results-list {
  display: grid;
  gap: 14px;
}

.admin-clients-shell {
  display: grid;
  gap: 14px;
}

.admin-card,
.admin-section,
.admin-disclosure {
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.18), rgba(var(--system-secondary-rgb), 0.12));
}

.admin-nav-button:hover {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.reveal-section {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height var(--ease-slow), opacity var(--ease-slow), transform var(--ease-slow), margin-top var(--ease);
}

.reveal-section.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  margin-top: 0;
  pointer-events: none;
  border-top: none;
  padding-top: 0;
}

.signoff-field {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

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

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .workspace-grid,
  .quote-layout,
  .calendar-layout,
  .notes-layout,
  .admin-page-shell,
  .hero,
  .admin-grid,
  .admin-grid-primary,
  .admin-grid-secondary,
  .admin-catalogue-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .launcher-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  #quoteView .quote-setup-grid,
  #quoteView .quote-content-grid,
  #quoteView .quote-add-card,
  #quoteView .quote-manual-card {
    grid-template-columns: 1fr 1fr;
  }

  #quoteView .quote-add-button,
  #quoteView .quote-manual-button,
  #quoteView .quote-manual-card > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding: 18px 14px 28px;
  }

  .menu-bar,
  .menu-panel,
  .hero,
  .panel,
  .dashboard-card,
  .welcome-panel,
  .admin-section,
  .login-panel,
  .modal-card {
    padding: 20px;
    border-radius: 24px;
  }

  .menu-bar,
  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    width: 100%;
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .short-grid,
  .add-row,
  .item-controls,
  .admin-add-grid,
  .admin-add-grid-catalogue,
  .admin-field-grid,
  .client-pricing-grid,
  .admin-catalogue-grid {
    grid-template-columns: 1fr;
  }

  .job-address-grid {
    grid-template-columns: 1fr;
  }

  #quoteView .quote-setup-grid,
  #quoteView .quote-content-grid,
  #quoteView .quote-add-card,
  #quoteView .quote-manual-card,
  #quoteView .quote-labour-grid,
  #quoteView .item-controls {
    grid-template-columns: 1fr;
  }

  #quoteView .quote-cable-row {
    flex-direction: column;
  }

  #quoteView #cableReference {
    min-width: 0;
    width: 100%;
  }

  .admin-section-heading {
    flex-direction: column;
  }

  .admin-section-heading .helper-text {
    max-width: none;
    text-align: left;
  }

  .launcher-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 24px 18px;
  }

  .launcher-app {
    animation-duration: 620ms;
  }

  .notes-sidebar,
  .notes-editor-panel {
    min-height: auto;
  }

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

  .calendar-weekdays {
    display: none;
  }

  #dashboardView {
    padding: 22px 18px 30px;
    justify-content: flex-start;
  }

  .launcher-hero {
    padding-top: 40px;
  }
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(90, 200, 250, 0.2), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(191, 90, 242, 0.18), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(52, 199, 89, 0.12), transparent 22%),
    linear-gradient(180deg, #111722 0%, #0b1018 48%, #070b11 100%);
}

:root {
  --desktop-wallpaper: url("./assets/wallpapers/aurora.svg");
}

.login-screen {
  background:
    radial-gradient(circle at 24% 20%, rgba(90, 200, 250, 0.26), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(191, 90, 242, 0.24), transparent 28%),
    radial-gradient(circle at 56% 80%, rgba(52, 199, 89, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.86), rgba(4, 8, 14, 0.94));
}

.login-panel {
  width: min(100%, 420px);
  padding: 34px 32px 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(34, 43, 58, 0.6), rgba(18, 25, 35, 0.74)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, #78c6ff, #5e5ce6 58%, #bf5af2);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}

.login-title-block h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.app-shell {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.desktop-menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(37, 44, 58, 0.72), rgba(20, 25, 33, 0.78)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: none;
}

.desktop-menu-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  max-width: 38vw;
}

.desktop-app-title {
  display: block;
  color: rgba(248, 250, 255, 0.96);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.desktop-menu-left,
.desktop-menu-right {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.menu-item,
.menu-status-button {
  border: 0;
  background: transparent;
  color: rgba(248, 250, 255, 0.92);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.menu-brand {
  font-size: 0.96rem;
  padding-left: 8px;
  white-space: nowrap;
  font-weight: 800;
}

.menu-status-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0 2px;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.menu-status-button::after {
  content: none;
}

.menu-item:hover,
.menu-status-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-status-button.is-active {
  background: transparent;
  color: rgb(var(--system-accent-rgb));
  text-shadow: 0 0 14px rgba(var(--system-glow-rgb), 0.45);
}

#desktopFullscreen {
  font-size: 0.95rem;
}

.system-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 94px;
  width: 320px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(var(--system-border-rgb), 0.24);
  background:
    linear-gradient(180deg, rgba(28, 35, 47, 0.94), rgba(16, 22, 31, 0.96)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.22), rgba(var(--system-secondary-rgb), 0.18));
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.32),
    0 0 44px rgba(var(--system-glow-rgb), 0.08);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  z-index: 120;
}

.system-popover-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.system-popover-header p {
  margin: 6px 0 0;
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.86rem;
}

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff453a;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.96);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 132px;
  width: 360px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(29, 39, 54, 0.96), rgba(17, 25, 36, 0.96)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.18), rgba(var(--system-secondary-rgb), 0.1));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 120;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}

.notification-item,
.notification-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-empty {
  display: block;
  color: rgba(245, 247, 251, 0.68);
  font-size: 0.86rem;
}

.notification-item.is-unread {
  background: rgba(var(--system-accent-rgb), 0.18);
}

.notification-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #30d158;
}

.notification-item strong {
  display: block;
  color: #ffffff;
  font-size: 0.86rem;
}

.notification-item p {
  margin: 3px 0 0;
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.78rem;
  line-height: 1.4;
}

.notification-item small {
  display: block;
  margin-top: 5px;
  color: rgba(245, 247, 251, 0.48);
  font-size: 0.7rem;
}

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

.system-colour-choice {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.system-colour-choice.is-active {
  border-color: rgba(var(--system-border-rgb), 0.42);
  background:
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.3), rgba(var(--system-secondary-rgb), 0.2)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(var(--system-border-rgb), 0.12),
    0 0 24px rgba(var(--system-glow-rgb), 0.18);
}

.system-colour-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}

.swatch-blue { background: linear-gradient(135deg, #64d2ff, #5e5ce6); }
.swatch-graphite { background: linear-gradient(135deg, #bac2cf, #717a8b); }
.swatch-green { background: linear-gradient(135deg, #34c759, #30d158); }
.swatch-purple { background: linear-gradient(135deg, #bf5af2, #7d7aff); }
.swatch-orange { background: linear-gradient(135deg, #ff9f0a, #ff6961); }
.swatch-rose { background: linear-gradient(135deg, #ff375f, #ff6482); }
.swatch-gold { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }

.menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.menu-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.menu-status-text {
  padding: 0 4px;
  color: rgba(248, 250, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 44px);
  height: calc(100vh - 44px);
  margin-top: 44px;
  padding: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
}

.app-atmosphere {
  background:
    radial-gradient(circle at 18% 16%, rgba(var(--system-accent-rgb), 0.18), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(var(--system-secondary-rgb), 0.16), transparent 24%),
    linear-gradient(180deg, rgba(9, 13, 22, 0.2), rgba(5, 8, 14, 0.48)),
    var(--desktop-wallpaper) center center / cover no-repeat;
}

.app-atmosphere::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px 42px;
  background:
    linear-gradient(180deg, rgba(31, 37, 49, 0.94), rgba(19, 24, 33, 0.96)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.1), rgba(var(--system-secondary-rgb), 0.08));
  border: 0;
  border-right: 1px solid rgba(var(--system-border-rgb), 0.16);
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.workspace-main-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.workspace-nav-app {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(247, 249, 255, 0.94);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.app-shell.workspace-unlocking .workspace-nav-app,
.app-shell.workspace-unlocking .workspace-utility-button {
  opacity: 0.28;
  filter: grayscale(1);
  pointer-events: none;
}

.app-shell.workspace-unlocking .workspace-nav-app.is-unlocked,
.app-shell.workspace-unlocking .workspace-utility-button.is-unlocked {
  opacity: 1;
  filter: grayscale(0);
  transition: opacity 420ms ease, filter 420ms ease;
}

.workspace-nav-app:hover {
  background: rgba(255, 255, 255, 0.08);
}

.workspace-nav-app.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.16), rgba(var(--system-secondary-rgb), 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.workspace-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 249, 255, 0.92);
}

.workspace-nav-icon ion-icon {
  font-size: 1.1rem;
}

.workspace-nav-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: inherit;
}

.workspace-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 18px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  flex-shrink: 0;
  transform: translateY(-10px);
}

.workspace-utility-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 249, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease;
}

.workspace-utility-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.workspace-utility-button ion-icon {
  font-size: 1.15rem;
}

.tutorial-modal-card {
  width: min(100%, 460px);
  background: #161d28;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 320ms ease, transform 320ms ease;
}

.tutorial-modal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tutorial-modal-card.is-step-out {
  opacity: 0;
  transform: translateY(6px) scale(0.992);
  transition: opacity 120ms ease, transform 120ms ease;
}

.tutorial-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tutorial-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.view {
  width: 100%;
  height: 100%;
  margin: 0;
}

.view.is-fading-out {
  opacity: 0;
  transition: opacity 150ms ease;
}

.view.is-fading-in {
  opacity: 0;
  animation: workspaceViewFadeIn 220ms ease forwards;
}

#dashboardView {
  min-height: 100%;
  height: 100%;
}

#dashboardView.active {
  display: block;
}

.desktop-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 26px 34px;
}

.desktop-welcome {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.launcher-logo,
.desktop-welcome h2,
.dashboard-boot-sequence,
.desktop-welcome .hero-text {
  opacity: 0;
}

.launcher-logo {
  width: 132px;
}

.desktop-welcome h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.desktop-welcome .hero-text {
  margin-top: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.84);
  min-height: 28px;
}

.dashboard-status-slot {
  position: relative;
  width: min(380px, 82vw);
  min-height: 82px;
  margin-top: 22px;
}

.launcher-logo,
.desktop-welcome h2,
.desktop-welcome .hero-text {
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease, width 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.launcher-logo.is-boot-large {
  width: 230px;
  transform: translateY(0) scale(1.02);
}

.launcher-logo.is-visible,
.desktop-welcome h2.is-visible,
.desktop-welcome .hero-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-boot-sequence {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 82px;
  transition: opacity 320ms ease;
}

.dashboard-boot-sequence.is-visible {
  opacity: 1;
}

.dashboard-loading-line {
  position: relative;
  height: 24px;
  overflow: hidden;
}

.dashboard-loading-text {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(64px);
  opacity: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 480ms ease, transform 480ms ease;
}

.dashboard-loading-text.is-visible {
  opacity: 1;
  transform: translateX(-50%);
}

.dashboard-loading-text.is-leaving {
  opacity: 0;
  transform: translateX(calc(-50% - 64px));
}

.dashboard-loading-bar {
  width: 100%;
  height: 7px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-loading-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--system-accent-rgb), 0.95), rgba(var(--system-secondary-rgb), 0.95));
  box-shadow: 0 0 18px rgba(var(--system-glow-rgb), 0.22);
}

.desktop-glass-cluster {
  display: none;
}

.desktop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.86;
}

.orb-blue {
  width: 220px;
  height: 220px;
  top: 14%;
  left: 12%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.36), rgba(90,200,250,0.2) 38%, rgba(90,200,250,0.02) 72%);
}

.orb-violet {
  width: 260px;
  height: 260px;
  top: 10%;
  right: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.32), rgba(191,90,242,0.22) 40%, rgba(191,90,242,0.02) 74%);
}

.orb-mint {
  width: 180px;
  height: 180px;
  bottom: 18%;
  left: 26%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.28), rgba(52,199,89,0.18) 40%, rgba(52,199,89,0.02) 74%);
}

.orb-gold {
  width: 190px;
  height: 190px;
  bottom: 14%;
  right: 22%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.28), rgba(255,159,10,0.18) 40%, rgba(255,159,10,0.02) 74%);
}

.view.active:not(#dashboardView) {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: none;
}

.window-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-gutter: stable;
  clip-path: inset(0);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes workspaceViewFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#calendarView .window-body {
  overflow: hidden;
}

#quoteView .quote-layout,
#calendarView .calendar-layout,
#certificationView .workspace-grid,
#notesView .notes-layout,
#adminView .admin-layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

#quoteView .quote-main,
#quoteView .quote-side,
#calendarView .calendar-main,
#calendarView .calendar-side,
#notesView .notes-sidebar,
#notesView .notes-editor-panel,
#certificationView .panel,
#certificationView aside.panel,
#settingsView .panel,
#accountView .panel,
#currentJobsView .panel,
#findJobView .panel,
#invoicesView .panel,
#adminView .admin-content {
  min-height: 0;
  height: 100%;
}

#quoteView .quote-main,
#quoteView .quote-side,
#calendarView .calendar-main,
#calendarView .calendar-side,
#certificationView .panel,
#certificationView aside.panel,
#settingsView .panel,
#accountView .panel,
#currentJobsView .panel,
#findJobView .panel,
#invoicesView .panel {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding-right: 10px;
  clip-path: inset(0 round 24px);
}

#calendarView .calendar-main {
  overflow: hidden;
}

#calendarView .calendar-side {
  overflow: auto;
}

#notesView .notes-sidebar,
#notesView .notes-editor-panel,
#adminView .admin-content {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding-right: 10px;
  clip-path: inset(0 round 24px);
}

#currentJobResults,
#jobResults,
#invoiceResults,
#certificateArchiveResults {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

#currentJobResults > *,
#jobResults > *,
#invoiceResults > *,
#certificateArchiveResults > * {
  min-width: 0;
}

.window-body::-webkit-scrollbar,
.admin-content::-webkit-scrollbar,
.quote-main::-webkit-scrollbar,
.quote-side::-webkit-scrollbar,
.settings-panel::-webkit-scrollbar,
#accountView .panel::-webkit-scrollbar,
#currentJobsView .panel::-webkit-scrollbar,
#findJobView .panel::-webkit-scrollbar,
#invoicesView .panel::-webkit-scrollbar,
.notes-sidebar::-webkit-scrollbar,
.notes-editor-panel::-webkit-scrollbar,
#certificationView .panel::-webkit-scrollbar,
#certificationView aside.panel::-webkit-scrollbar,
.notes-editor::-webkit-scrollbar,
textarea::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.window-body::-webkit-scrollbar-track,
.admin-content::-webkit-scrollbar-track,
.quote-main::-webkit-scrollbar-track,
.quote-side::-webkit-scrollbar-track,
.settings-panel::-webkit-scrollbar-track,
#accountView .panel::-webkit-scrollbar-track,
#currentJobsView .panel::-webkit-scrollbar-track,
#findJobView .panel::-webkit-scrollbar-track,
#invoicesView .panel::-webkit-scrollbar-track,
.notes-sidebar::-webkit-scrollbar-track,
.notes-editor-panel::-webkit-scrollbar-track,
#certificationView .panel::-webkit-scrollbar-track,
#certificationView aside.panel::-webkit-scrollbar-track,
.notes-editor::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.window-body::-webkit-scrollbar-thumb,
.admin-content::-webkit-scrollbar-thumb,
.quote-main::-webkit-scrollbar-thumb,
.quote-side::-webkit-scrollbar-thumb,
.settings-panel::-webkit-scrollbar-thumb,
#accountView .panel::-webkit-scrollbar-thumb,
#currentJobsView .panel::-webkit-scrollbar-thumb,
#findJobView .panel::-webkit-scrollbar-thumb,
#invoicesView .panel::-webkit-scrollbar-thumb,
.notes-sidebar::-webkit-scrollbar-thumb,
.notes-editor-panel::-webkit-scrollbar-thumb,
#certificationView .panel::-webkit-scrollbar-thumb,
#certificationView aside.panel::-webkit-scrollbar-thumb,
.notes-editor::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(var(--system-border-rgb), 0.14),
    0 0 12px rgba(var(--system-glow-rgb), 0.08);
}

.window-body::-webkit-scrollbar-corner,
.admin-content::-webkit-scrollbar-corner,
.quote-main::-webkit-scrollbar-corner,
.quote-side::-webkit-scrollbar-corner,
.settings-panel::-webkit-scrollbar-corner,
#accountView .panel::-webkit-scrollbar-corner,
#currentJobsView .panel::-webkit-scrollbar-corner,
#findJobView .panel::-webkit-scrollbar-corner,
#invoicesView .panel::-webkit-scrollbar-corner,
.notes-sidebar::-webkit-scrollbar-corner,
.notes-editor-panel::-webkit-scrollbar-corner,
#certificationView .panel::-webkit-scrollbar-corner,
#certificationView aside.panel::-webkit-scrollbar-corner,
.notes-editor::-webkit-scrollbar-corner,
textarea::-webkit-scrollbar-corner {
  background: transparent;
}

.view.launching-in.opening-from-dock {
  animation: macWindowLaunch 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.view.minimizing-to-dock {
  animation: macWindowMinimize 320ms cubic-bezier(0.5, 0, 0.8, 0.2) both;
}

.view.closing-window {
  animation: macWindowClose 260ms cubic-bezier(0.4, 0, 1, 1) both;
}

.window-controls {
  position: absolute;
  top: 6px;
  right: 6px;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.window-control {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.window-control-close {
  background: #ff453a;
}

.view-header [data-back-dashboard],
.view-header #closeAdminButton,
.view-header .section-kicker {
  display: none !important;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.wallpaper-choice {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(34, 41, 55, 0.74), rgba(18, 23, 31, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border-radius: 22px;
  padding: 12px;
  color: #f7f9ff;
  font: inherit;
  font-weight: 700;
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.wallpaper-choice.is-active {
  border-color: rgba(var(--system-border-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--system-border-rgb), 0.16), 0 24px 48px rgba(0, 0, 0, 0.2);
}

.wallpaper-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wallpaper-blue { background-image: url("./BLUE.jpg"); }
.wallpaper-purple { background-image: url("./PURPLE.jpg"); }
.wallpaper-pink { background-image: url("./PINK.jpg"); }
.wallpaper-orange { background-image: url("./ORANGE.jpg"); }
.wallpaper-red { background-image: url("./RED.jpg"); }
.wallpaper-turbine1 { background-image: url("./TURBINE1.jpg"); }
.wallpaper-turbine2 { background-image: url("./TURBINE2.jpg"); }
.wallpaper-pylon1 { background-image: url("./PYLON1.jpg"); }
.wallpaper-pylon2 { background-image: url("./PYLON2.jpg"); }
.wallpaper-solar { background-image: url("./SOLAR.jpg"); }

#adminPanel.admin-page-shell {
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding-top: 0;
  min-height: 0;
}

#adminView {
  height: 100%;
  min-height: 0;
  padding-top: 0;
}

#adminView .view-header {
  min-height: 0;
  display: none;
}

#adminView .window-body {
  overflow: hidden;
}

#adminView .admin-layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-top: 0;
}

#adminView .admin-sidebar {
  position: sticky;
  top: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(22, 28, 40, 0.74), rgba(10, 14, 22, 0.82)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.12), rgba(var(--system-secondary-rgb), 0.08));
}

#adminView .admin-nav-button {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 16px;
  padding: 10px 12px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.88rem;
}

#adminView .admin-nav-button:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

#adminView .admin-nav-button.is-active {
  background:
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.26), rgba(var(--system-secondary-rgb), 0.16)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--system-border-rgb), 0.24);
  color: #ffffff;
}

#adminView .admin-content {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 0;
  overflow: auto;
  padding-right: 8px;
  clip-path: inset(0 round 24px);
}

#adminView .admin-stack.is-active {
  display: grid;
  gap: 14px;
  align-content: start;
}

#adminView .admin-section {
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(var(--system-accent-rgb), 0.11), transparent 36%),
    linear-gradient(180deg, rgba(29, 39, 54, 0.92), rgba(17, 25, 36, 0.94)),
    linear-gradient(135deg, rgba(var(--system-accent-rgb), 0.16), rgba(var(--system-secondary-rgb), 0.1));
  box-shadow: none;
}

#adminView .admin-section:hover {
  box-shadow: none;
}

#adminView .admin-section-heading {
  align-items: center;
  margin-bottom: 14px;
}

#adminView .admin-section-heading .helper-text {
  text-align: right;
  max-width: 420px;
}

#adminView .admin-add-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

#adminView .admin-add-grid-catalogue {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#adminView .admin-signature-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#adminView .admin-signature-actions > span {
  grid-column: 1 / -1;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#adminView .admin-upload-button,
#adminView .admin-signature-actions .ghost-button,
#adminView .admin-section-heading-actions .button-row .primary-button,
#adminView .admin-section-heading-actions .button-row .ghost-button,
#adminView #addAdminItemButton,
#adminView #addClientPriceButton {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  text-align: center;
}

#adminView .admin-signature-preview-field {
  grid-column: span 2;
}

#adminView .admin-signature-preview {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

#adminView .admin-signature-preview img {
  display: block;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

#adminView .admin-signature-status {
  grid-column: 1 / -1;
  margin: 0;
}

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

  #adminView .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #adminView .admin-add-grid,
  #adminView .admin-add-grid-catalogue {
    grid-template-columns: 1fr 1fr;
  }

  #adminView .admin-section-heading {
    align-items: flex-start;
  }

  #adminView .admin-section-heading .helper-text {
    text-align: left;
    max-width: none;
  }
}

@keyframes macWindowLaunch {
  0% {
    opacity: 0;
    transform: translateY(120px) scale(0.84);
    filter: blur(10px);
  }
  55% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes macWindowClose {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.94);
    filter: blur(6px);
  }
}

@keyframes macWindowMinimize {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(130px) scale(0.86);
    filter: blur(10px);
  }
}

@media (max-width: 980px) {
  .desktop-menu-left .menu-item:not(.menu-brand) {
    display: none;
  }

  .workspace-app-grid {
    width: min(900px, 100%);
    gap: 18px 14px;
  }

  .workspace-app-icon {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 780px) {
  .desktop-menu-bar {
    left: 0;
    right: 0;
    top: 0;
    padding: 0 10px;
  }

  .desktop-menu-center {
    max-width: 44vw;
  }

  .desktop-menu-right {
    gap: 4px;
  }

  .system-popover {
    right: 0;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 24px));
  }

  .notification-popover {
    right: 0;
    top: calc(100% + 10px);
    width: min(340px, calc(100vw - 24px));
  }

  .menu-status-text {
    font-size: 0.78rem;
  }

  .app-content {
    margin-top: 44px;
    padding: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .workspace-sidebar {
    border-radius: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--system-border-rgb), 0.16);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }

  .workspace-main-shell {
    border-radius: 0;
  }

  .window-body {
    padding-top: 12px;
    clip-path: inset(0);
  }

  .workspace-nav-app {
    width: calc(50% - 6px);
  }

  .workspace-sidebar-footer {
    width: 100%;
    justify-content: flex-end;
  }

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