@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:root {
  --bg: #eef2f4;
  --bg-deep: #e4eaee;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --ink: #14232b;
  --ink-soft: #2c3f49;
  --muted: #667882;
  --line: #d3dde3;
  --brand: #0a6b68;
  --brand-dark: #075350;
  --brand-soft: rgba(10, 107, 104, 0.09);
  --brand-ring: rgba(10, 107, 104, 0.22);
  --accent: #b85a28;
  --ok: #1a6b45;
  --ok-bg: #e8f5ee;
  --warn: #8a6200;
  --warn-bg: #fff6e0;
  --danger: #a61f18;
  --danger-bg: #fdeceb;
  --info: #1a5f84;
  --info-bg: #e8f3f9;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 35, 43, 0.04), 0 8px 24px rgba(20, 35, 43, 0.04);
  --shadow-sm: 0 1px 2px rgba(20, 35, 43, 0.05);
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --sidebar: 268px;
  --topbar-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 0% -10%, rgba(10, 107, 104, 0.07), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(184, 90, 40, 0.05), transparent 50%),
    linear-gradient(180deg, #f4f7f8 0%, var(--bg) 280px);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

/* Auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    linear-gradient(135deg, rgba(10, 107, 104, 0.08) 0%, transparent 42%),
    linear-gradient(320deg, rgba(184, 90, 40, 0.06) 0%, transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(20, 35, 43, 0.02) 24px),
    var(--bg);
}
.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid rgba(211, 221, 227, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2rem 1.85rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #1a8f8a 55%, var(--accent));
}
.brand-mark {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin: 0 0 .2rem;
}
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* Shell */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 32, 0.48);
  z-index: 40;
  opacity: 0;
  transition: opacity .2s ease;
  backdrop-filter: blur(2px);
}
body.nav-open .sidebar-overlay {
  display: block;
  opacity: 1;
}

.sidebar {
  background:
    linear-gradient(180deg, #12363a 0%, #0d2a2e 55%, #0b2428 100%);
  color: #e8f2f3;
  padding: 1.15rem .85rem 1.35rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar.sidebar-platform {
  background: linear-gradient(180deg, #182433 0%, #121c28 100%);
}
.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin: 0 .35rem 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.sidebar .brand-sub {
  margin: .28rem 0 0;
  font-size: .76rem;
  color: rgba(232, 242, 243, 0.62);
  letter-spacing: 0.01em;
  line-height: 1.35;
  max-width: 200px;
}
.sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-close:hover { background: rgba(255,255,255,.12); }

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(232, 242, 243, 0.82);
  padding: .55rem .7rem;
  border-radius: 8px;
  margin-bottom: .14rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sidebar nav a.active {
  background: rgba(43, 181, 175, 0.16);
  color: #fff;
  border-color: rgba(43, 181, 175, 0.22);
  box-shadow: inset 3px 0 0 #2bb5af;
}
.sidebar .section-label {
  margin: 1.05rem .7rem .35rem;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: rgba(143, 176, 180, 0.85);
}
.sidebar .section-label--first { margin-top: .35rem; }
.sidebar .nav-footer {
  margin-top: 1.35rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .nav-footer a { color: rgba(232, 242, 243, 0.7); }

.nav-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .88;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.nav-ico-dashboard { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E"); }
.nav-ico-users { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.nav-ico-building { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18'/%3E%3Cpath d='M6 12h12'/%3E%3Cpath d='M6 16h12'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M2 22h20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18'/%3E%3Cpath d='M6 12h12'/%3E%3Cpath d='M6 16h12'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M2 22h20'/%3E%3C/svg%3E"); }
.nav-ico-chat { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.nav-ico-drill { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.nav-ico-invoice { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E"); }
.nav-ico-cart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
.nav-ico-ledger { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }
.nav-ico-chart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20V10'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M6 20v-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20V10'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M6 20v-6'/%3E%3C/svg%3E"); }
.nav-ico-box { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E"); }
.nav-ico-truck { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M20 17h2v-3.34a4 4 0 0 0-1.17-2.83L19 9h-5v8h1'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M20 17h2v-3.34a4 4 0 0 0-1.17-2.83L19 9h-5v8h1'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); }
.nav-ico-fuel { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22h12'/%3E%3Cpath d='M4 9h10'/%3E%3Cpath d='M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18'/%3E%3Cpath d='M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2h0a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22h12'/%3E%3Cpath d='M4 9h10'/%3E%3Cpath d='M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18'/%3E%3Cpath d='M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2h0a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5'/%3E%3C/svg%3E"); }
.nav-ico-calendar { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.nav-ico-wrench { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.nav-ico-settings { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); }
.nav-ico-card { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.nav-ico-help { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.nav-ico-logout { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }
.nav-ico-globe { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.nav-ico-shield { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.nav-ico-tag { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E"); }
.nav-ico-tenants { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(211, 221, 227, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 60;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  height: 100%;
}
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.topbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  height: 100%;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .65rem .3rem .35rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 220px;
}
.user-chip .user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0a6b68, #147f7b);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.topbar-meta a.logout-link {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  padding: .4rem .65rem;
  border-radius: 7px;
  border: 1px solid transparent;
}
.topbar-meta a.logout-link:hover {
  background: var(--danger-bg);
  border-color: #f3c7c3;
  color: var(--danger);
}

.content {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 1.35rem 1.5rem 2.25rem;
  box-sizing: border-box;
}
.page-title {
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(211, 221, 227, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}
.card-flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-flush .card-head-wrap {
  padding: 1rem 1.15rem .35rem;
  flex-shrink: 0;
}
.card-flush .table-wrap {
  margin: 0;
  flex: 1;
  min-height: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0;
  min-height: 1.5rem;
}
.card-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.card-head .card-link {
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  width: 100%;
}
.grid > .card { margin-bottom: 0; height: 100%; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 280px;
}
.dashboard-panels > .card {
  min-height: 280px;
}

.stat {
  padding: 1.05rem 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fff 0%, #f8fbfb 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.stat:hover {
  border-color: #c5d5db;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), #1a8f8a);
}
.stat .label {
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: .45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  word-break: break-word;
}
.stat-accent-accent::before { background: linear-gradient(180deg, var(--accent), #d4783a); }
.stat-accent-info::before { background: linear-gradient(180deg, var(--info), #2a7eaa); }
.stat-accent-ok::before { background: linear-gradient(180deg, var(--ok), #2a8f5c); }

label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.form-row {
  margin-bottom: 1rem;
  width: 100%;
}
.form-row.inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  width: 100%;
}
.form-row.inline > div {
  min-width: 0;
  width: 100%;
}

/* Bare <input> (no type attr) must be included â€” type=text alone does not match it */
input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .62rem .75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  max-width: none;
  padding: 0;
  border: none;
  box-shadow: none;
  accent-color: var(--brand);
}
input:hover, select:hover, textarea:hover { border-color: #b9c8d0; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: none;
}
textarea { min-height: 90px; resize: vertical; }
.help-error { color: var(--danger); font-size: .8rem; margin-top: .25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .58rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  box-shadow: 0 1px 1px rgba(7, 83, 80, 0.15);
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--line);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-sm { padding: .38rem .7rem; font-size: .82rem; }
.btn-block { width: 100%; }

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 var(--radius) var(--radius);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 0;
}
.table-wrap > table.data { min-width: 100%; }
table.data th,
table.data td {
  padding: .78rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.data td.empty-cell {
  text-align: center;
  color: var(--muted);
  white-space: normal;
  padding: 2.5rem 1rem;
  border-bottom: none;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover td { background: #f4faf9; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td a { font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  background: #e8eef1;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe8d9; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0e0a8; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: #f3c7c3; }
.badge-info { background: var(--info-bg); color: var(--info); border-color: #c5dff0; }
.badge-status-drilling,
.badge-status-in_progress { background: var(--info-bg); color: var(--info); border-color: #c5dff0; }
.badge-status-completed,
.badge-status-active { background: var(--ok-bg); color: var(--ok); border-color: #cfe8d9; }
.badge-status-pending,
.badge-status-quoted,
.badge-status-scheduled { background: var(--warn-bg); color: var(--warn); border-color: #f0e0a8; }
.badge-status-draft { background: #F1F5F9; color: #475569; border-color: #E2E8F0; }
.badge-status-cancelled,
.badge-status-failed { background: var(--danger-bg); color: var(--danger); border-color: #f3c7c3; }
.detail-list { margin: 0; display: grid; gap: .65rem; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid var(--border, #e5e7eb); font-size: .95rem; }
.detail-list dt { margin: 0; color: var(--muted, #6b7280); }
.detail-list dd { margin: 0; font-weight: 600; text-align: right; }
.page-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  font-size: .9rem;
}
.alert-success { background: var(--ok-bg); border-color: #cfe8d9; color: var(--ok); }
.alert-error { background: var(--danger-bg); border-color: #f3c7c3; color: var(--danger); }
.alert-warning { background: var(--warn-bg); border-color: #f0e0a8; color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: #c5dff0; color: var(--info); }

.toolbar {
  display: flex;
  gap: .65rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-bottom: 1rem;
  align-items: center;
}
.toolbar > input,
.toolbar > select,
.toolbar > label,
.toolbar > .typeahead {
  width: auto;
  max-width: none;
  flex: 0 1 auto;
  margin: 0;
}
.toolbar > input[type="date"] {
  width: auto;
  min-width: 9.75rem;
  flex: 0 0 auto;
}
.toolbar > select {
  min-width: 8.5rem;
  max-width: 14rem;
}
.toolbar > .btn,
.toolbar > a.btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.toolbar > .typeahead {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 28rem;
}
.toolbar-search {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex: 1;
  min-width: min(100%, 240px);
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .2rem .2rem .2rem .85rem;
  box-shadow: var(--shadow-sm);
}
.toolbar-search input {
  border: none !important;
  box-shadow: none !important;
  padding: .5rem .35rem !important;
  background: transparent !important;
}
.toolbar-search input:focus { outline: none; }
.toolbar-search .btn { flex-shrink: 0; }

.pager { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.breadcrumbs { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.empty {
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--muted);
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.choice-pill:hover { border-color: #b9c8d0; }
.choice-pill:has(input:checked) {
  background: var(--brand-soft);
  border-color: rgba(10, 107, 104, 0.35);
  color: var(--brand-dark);
}
.choice-pill input { margin: 0; accent-color: var(--brand); }
.choice-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.choice-check input { margin-top: .15rem; accent-color: var(--brand); }

.page-block { margin-bottom: 1rem; }
.panel-title {
  margin: 0 0 .85rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.panel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  padding: 1.1rem 1.15rem 1.15rem;
}
.panel-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.panel-fields { flex: 1 1 auto; }
.panel-actions {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-start;
}
.form-row.compact { margin-bottom: .75rem; }
.form-row.compact:last-child { margin-bottom: 0; }
.field-hint {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}
.textarea-sm {
  min-height: 72px !important;
  resize: vertical;
}
.grid.crm-forms,
.grid.crm-lists {
  align-items: stretch;
  margin-bottom: 0;
}
.list-card { margin-bottom: 0; min-height: 0; }
.list-card .table-wrap { max-height: 420px; }
.row-actions {
  display: inline-flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
}
.row-actions form { display: inline; margin: 0; }
table.data th.col-actions,
table.data td.col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}
.crm-lists table.data { min-width: 640px; }
table.data td.empty-cell.compact {
  padding: 1.25rem 1rem;
}

.grid.crm-lists {
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 1100px) {
  .grid.crm-lists {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 960px) {
  .grid.crm-forms { grid-template-columns: 1fr; }
  .list-card .table-wrap { max-height: none; }
}

.crew-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .85rem 0 .55rem;
}
.crew-head strong {
  font-size: .92rem;
  letter-spacing: -0.01em;
}
.crew-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: .75rem;
}
.crew-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .85fr) auto;
  gap: .55rem;
  align-items: end;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.crew-row-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: .7rem;
  text-align: center;
}
.crew-row .crew-remove {
  margin-bottom: 1px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .crew-row {
    grid-template-columns: 28px 1fr auto;
  }
  .crew-row > div:nth-child(2),
  .crew-row > div:nth-child(3),
  .crew-row > div:nth-child(4) {
    grid-column: 2;
  }
  .crew-row .crew-remove {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin-top: 1.4rem;
  }
}

[hidden] { display: none !important; }

.job-bill-preview {
  margin: .35rem 0 .85rem;
  padding: .75rem .85rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.bill-gst-box {
  margin: .35rem 0 .85rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.bill-gst-box .form-row:last-child { margin-bottom: 0; }

.sales-bill-page { display: flex; flex-direction: column; gap: 1.15rem; }
.sales-bill-card { max-width: none; }
.sales-bill-card > .panel-form { gap: 0; }
.bill-top-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr);
  gap: .75rem 1rem;
  margin-bottom: .75rem;
  align-items: end;
}
.bill-party-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(150px, .75fr) minmax(140px, .7fr);
  gap: .75rem 1rem;
  margin: 0 0 .75rem;
  align-items: end;
}
.bill-party-grid-2 {
  grid-template-columns: minmax(0, 2fr) minmax(120px, .9fr) minmax(120px, .9fr) minmax(100px, .7fr);
}
.bill-party-name { min-width: 0; }
.bill-top-grid > .form-row,
.bill-party-grid > .form-row {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.bill-top-grid > .form-row > label,
.bill-party-grid > .form-row > label {
  margin: 0;
  line-height: 1.2;
  min-height: 1.05rem;
}
.bill-top-grid > .form-row > input,
.bill-top-grid > .form-row > select,
.bill-party-grid > .form-row > input,
.bill-party-grid > .form-row > select {
  width: 100%;
  min-width: 0;
}
.sales-bill-card [data-bill-update-master] {
  margin: 0 0 .85rem;
}

.bill-table-wrap { margin: .25rem 0 1rem; }
.bill-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.bill-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;
  table-layout: fixed;
}
.bill-items-table thead th {
  padding: .6rem .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}
.bill-items-table thead th.col-num,
.bill-items-table thead th.col-total { text-align: right; }
.bill-items-table thead th.col-hsn,
.bill-items-table thead th.col-mode,
.bill-items-table thead th.col-act { text-align: center; }
.bill-items-table tbody td {
  padding: .4rem .45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  box-sizing: border-box;
}
.bill-items-table tbody tr:last-child td { border-bottom: none; }
.bill-items-table tbody tr:hover td { background: rgba(10, 107, 104, 0.03); }
.bill-items-table input,
.bill-items-table select {
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 .5rem;
  font-size: .845rem;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
  color: var(--ink, #0f172a);
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}
.bill-items-table select {
  padding-right: 1.45rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .45rem center;
  background-size: 10px;
  cursor: pointer;
}
.bill-items-table input:focus,
.bill-items-table select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.bill-items-table .col-desc { width: 28%; }
.bill-items-table .col-hsn { width: 9%; }
.bill-items-table .col-num { width: 9%; }
.bill-items-table .col-mode { width: 11%; }
.bill-items-table .col-total { width: 11%; }
.bill-items-table .col-act {
  width: 48px;
  text-align: center;
  padding-left: .25rem;
  padding-right: .35rem;
}
.bill-items-table .col-num input,
.bill-items-table .col-total input {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  padding-right: .45rem;
}
.bill-items-table .col-hsn input {
  text-align: center;
  letter-spacing: .02em;
}
.bill-items-table .col-mode select { font-size: .8rem; text-align: center; }
.bill-items-table .bill-line-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 36px;
  margin: 0;
  padding: 0 .55rem;
  font-weight: 700;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink, #0f172a);
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-sizing: border-box;
  white-space: nowrap;
}
.bill-items-table .col-total input {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink);
}
.bill-items-table-purchase { min-width: 1180px; }
.bill-items-table-purchase .col-item { width: 13%; }
.bill-items-table-purchase .col-desc { width: 17%; }
.bill-items-table-purchase .col-hsn { width: 7%; }
.bill-items-table-purchase .col-wh { width: 12%; }
.bill-items-table-purchase .col-num { width: 7.5%; }
.bill-items-table-purchase .col-mode { width: 9%; }
.bill-items-table-purchase .col-total { width: 9%; }
.bill-items-table-purchase .col-act { width: 48px; }
.bill-row-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  vertical-align: middle;
}
.bill-row-del:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.bill-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
  flex-wrap: wrap;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2, #f8fafc);
}
.bill-summary-row .btn[data-bill-item-add] {
  height: 36px;
  align-self: flex-end;
  white-space: nowrap;
  flex: 0 0 auto;
}
.bill-summary-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 152px));
  gap: .55rem .7rem;
  margin-left: auto;
  align-items: end;
}
.bill-summary-fields > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bill-summary-fields label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .3rem;
  line-height: 1.2;
  min-height: 1.05rem;
}
.bill-summary-fields input {
  width: 100%;
  height: 36px;
  padding: 0 .55rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  box-sizing: border-box;
}
.bill-summary-fields [data-sum-total] {
  font-weight: 700;
  background: #fff;
  border-color: rgba(10, 107, 104, 0.35);
  color: var(--brand-dark, #075350);
}
.sales-bill-card > .panel-form > .panel-actions {
  margin-top: .25rem;
  justify-content: flex-end;
  gap: .65rem;
  border-top: none;
  padding-top: 0;
}
@media (max-width: 960px) {
  .bill-top-grid,
  .bill-party-grid,
  .bill-party-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .bill-summary-fields {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: min(100%, 360px);
  }
}
@media (max-width: 640px) {
  .bill-top-grid,
  .bill-party-grid,
  .bill-party-grid-2 {
    grid-template-columns: 1fr;
  }
  .bill-summary-row { justify-content: stretch; }
  .bill-summary-fields { width: 100%; grid-template-columns: 1fr 1fr; margin-left: 0; }
  .sales-bill-card > .panel-form > .panel-actions {
    justify-content: stretch;
  }
  .sales-bill-card > .panel-form > .panel-actions .btn {
    flex: 1;
  }
}

.sales-list-card { width: 100%; flex: 0 0 auto; }
.sales-list-card.card-flush .table-wrap {
  flex: 0 0 auto;
  min-height: auto;
  max-height: none;
}
.sales-invoice-table { min-width: 720px; }
.sales-invoice-table td.col-actions { text-align: right; }
.sales-head-tools {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
}
.sales-bill-card .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.sales-bill-card.is-editing {
  border-color: rgba(10, 107, 104, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 107, 104, 0.08);
}
.sales-invoice-table tr.is-editing-row td { background: rgba(10, 107, 104, 0.06); }
.sales-bill-secondary { align-items: stretch; }
.sales-bill-secondary > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}
.sales-bill-secondary > .card > h3 {
  margin: 0 0 .75rem;
}
.sales-bill-secondary > .card > form {
  flex: 1 1 auto;
}
.sales-bill-tip {
  justify-content: flex-start;
}
.sales-bill-tip p {
  margin: 0;
  line-height: 1.55;
}
.sales-bill-card .form-row.compact {
  margin-bottom: .75rem;
}
.sales-bill-card .choice-row {
  flex-wrap: wrap;
  gap: .45rem;
}
.sales-bill-secondary .form-row.inline.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin-bottom: .85rem;
}
.sales-bill-secondary .form-row.inline.compact > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.sales-bill-secondary .form-row.inline.compact label {
  margin: 0;
}
.sales-bill-secondary .btn[type="submit"] {
  align-self: flex-start;
  margin-top: .15rem;
}

.choice-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
}
.choice-check input { margin-top: .2rem; accent-color: var(--brand); }

.typeahead {
  position: relative;
}
.typeahead-native {
  display: none !important;
}
.typeahead-input {
  width: 100%;
}
.typeahead-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: .35rem 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 28, 32, 0.12);
}
.typeahead-option,
.typeahead-empty {
  padding: .5rem .75rem;
  font-size: .9rem;
  cursor: pointer;
}
.typeahead-empty {
  color: var(--muted);
  cursor: default;
}
.typeahead-option:hover,
.typeahead-option.is-active,
.typeahead-option.is-highlight {
  background: var(--surface-2);
  color: var(--ink);
}
.toolbar-ledger .typeahead {
  min-width: 14rem;
  flex: 1 1 16rem;
  max-width: 32rem;
}
.job-bill-preview-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .55rem;
}
.job-bill-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .75rem;
  margin: 0;
}
.job-bill-meta div { min-width: 0; }
.job-bill-meta .job-bill-span { grid-column: 1 / -1; }
.job-bill-meta dt {
  margin: 0;
  font-size: .72rem;
  color: var(--muted);
}
.job-bill-meta dd {
  margin: .1rem 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-wrap;
}
@media (max-width: 560px) {
  .job-bill-meta { grid-template-columns: 1fr; }
}

/* â€”â€”â€” Responsive â€”â€”â€” */
@media (max-width: 1280px) {
  .content { padding: 1.25rem 1.25rem 2rem; }
  .dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .grid-4,
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .value { font-size: 1.4rem; }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(var(--sidebar), 88vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    border-right: none;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .grid-2,
  .grid-3,
  .dashboard-panels { grid-template-columns: 1fr; }
  .dashboard-panels,
  .dashboard-panels > .card { min-height: 0; }
  .form-row.inline { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .user-chip .user-name { display: none; }
  .user-chip { padding: .28rem; }
}

@media (max-width: 720px) {
  .auth-card { padding: 1.5rem 1.2rem 1.35rem; }
  .page-title { font-size: 1.2rem; }
  .toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .toolbar > input,
  .toolbar > select,
  .toolbar > .typeahead {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  .toolbar > input[type="date"] {
    flex: 1 1 calc(50% - .4rem);
    min-width: 0;
    width: auto;
  }
  .toolbar > .btn,
  .toolbar > a.btn {
    flex: 1 1 auto;
  }
  .toolbar-search { max-width: none; }
  .btn { min-height: 40px; }
  .topbar-meta a.logout-link { padding: .4rem .5rem; font-size: .8rem; }
  table.data { font-size: .84rem; }
  table.data th, table.data td { padding: .65rem .75rem; }
  .table-wrap { overflow-x: auto; }
  .table-wrap > table.data { min-width: 480px; }
}

@media (max-width: 480px) {
  .grid-4,
  .dashboard-stats { grid-template-columns: 1fr; }
  .stat { min-height: 96px; }
  .stat .value { font-size: 1.35rem; }
  .content { padding: .85rem .75rem 1.75rem; }
  .card { padding: 1rem; }
  .topbar-title { font-size: .95rem; }
  .sidebar { width: min(300px, 92vw); }
}

@media (min-width: 961px) {
  body.nav-open .sidebar-overlay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .sidebar, .sidebar-overlay, .nav-toggle, .topbar-meta, .nav-footer { display: none !important; }
  .app-shell { display: block; }
  .topbar { position: static; border: none; }
  .content { padding: 0; width: 100%; }
  .card, .stat { box-shadow: none; break-inside: avoid; }
}

/* —— Interactive dashboard —— */
.dash { display: flex; flex-direction: column; gap: 1.1rem; animation: dashIn .45s ease both; }
@keyframes dashIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 180px at 0% 0%, rgba(10,107,104,.12), transparent 55%),
    radial-gradient(700px 160px at 100% 0%, rgba(184,90,40,.08), transparent 50%),
    linear-gradient(165deg, #fff 0%, #f4f8f8 100%);
  box-shadow: var(--shadow-sm);
}
.dash-kicker {
  margin: 0 0 .2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}
.dash-hello {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.dash-lead { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; max-width: 42rem; }
.dash-quick { display: flex; flex-wrap: wrap; gap: .45rem; }

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.dash-kpi {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.05rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fff 0%, #f8fbfb 100%);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 104px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dash-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), #1a8f8a);
}
.dash-kpi:hover {
  transform: translateY(-2px);
  border-color: #c5d5db;
  box-shadow: var(--shadow);
  color: inherit;
}
.dash-kpi-accent::before { background: linear-gradient(180deg, var(--accent), #d4783a); }
.dash-kpi-ok::before { background: linear-gradient(180deg, var(--ok), #2a8f5c); }
.dash-kpi-info::before { background: linear-gradient(180deg, var(--info), #2a7eaa); }
.dash-kpi-label {
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dash-kpi-value {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.2;
}
.dash-kpi-meta { font-size: .78rem; color: var(--muted); margin-top: auto; }

.dash-main-grid,
.dash-mid-grid,
.dash-bottom-grid {
  display: grid;
  gap: .85rem;
}
.dash-main-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr) minmax(0, .95fr);
}
.dash-mid-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dash-bottom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-panel { margin-bottom: 0; min-width: 0; }
.dash-panel-chart { min-height: 320px; }
.dash-chart-wrap { height: 260px; padding: .25rem 1rem 1rem; position: relative; }
.dash-chart-donut { height: 240px; }

.dash-alerts {
  list-style: none;
  margin: 0;
  padding: .25rem .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-height: 280px;
  overflow: auto;
}
.dash-alert a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.dash-alert a:hover { border-color: #c5d5db; background: #fff; }
.dash-alert a strong { font-size: .9rem; color: var(--ink); }
.dash-alert a span { font-size: .8rem; color: var(--muted); }
.dash-alert-danger a { border-left: 3px solid var(--danger); background: var(--danger-bg); }
.dash-alert-warn a { border-left: 3px solid var(--warn); background: var(--warn-bg); }
.dash-alert-info a { border-left: 3px solid var(--info); background: var(--info-bg); }
.dash-alert-ok a { border-left: 3px solid var(--ok); background: var(--ok-bg); }

.dash-bars { padding: .25rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .85rem; }
.dash-bar-meta { display: flex; justify-content: space-between; gap: .75rem; font-size: .86rem; margin-bottom: .35rem; }
.dash-bar-meta strong { color: var(--ink); }
.dash-bar-meta span { color: var(--muted); white-space: nowrap; }
.dash-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eef1;
  overflow: hidden;
}
.dash-bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #1a8f8a);
  transition: width .6s ease;
}

.dash-gst {
  display: grid;
  gap: .85rem;
  padding: .25rem 1.1rem 1rem;
}
.dash-gst strong { display: block; font-size: 1.15rem; margin-top: .15rem; }
.dash-gst-net {
  padding-top: .65rem;
  border-top: 1px dashed var(--line);
}
.dash-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding: 0 1.1rem 1.1rem;
}
.dash-mini-stats > div {
  padding: .65rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dash-mini-stats span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.dash-mini-stats strong { font-size: .95rem; }

.dash-mini-progress {
  margin-top: .35rem;
  height: 4px;
  border-radius: 999px;
  background: #e7eef1;
  overflow: hidden;
  max-width: 110px;
}
.dash-mini-progress > span {
  display: block;
  height: 100%;
  background: var(--brand);
}

@media (max-width: 1200px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-main-grid,
  .dash-mid-grid,
  .dash-bottom-grid { grid-template-columns: 1fr 1fr; }
  .dash-panel-chart { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .dash-kpi-grid,
  .dash-main-grid,
  .dash-mid-grid,
  .dash-bottom-grid { grid-template-columns: 1fr; }
  .dash-hero { padding: 1rem; }
  .dash-chart-wrap { height: 220px; }
}

/* —— Job card page —— */
.job-card-page { display: flex; flex-direction: column; gap: 1rem; }
.job-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem 1rem;
}
.job-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.job-card-no {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.job-card-title {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.job-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.job-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.job-sum-card {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fff, #f7fbfb);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.job-sum-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.job-sum-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.job-sum-value a { color: inherit; }
.job-sum-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .65rem;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--muted);
}
.job-sum-loc {
  margin-top: .35rem;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.job-sum-link {
  display: inline-block;
  margin-top: .45rem;
  font-size: .82rem;
  font-weight: 600;
}
.job-progress {
  margin-top: .55rem;
  height: 6px;
  border-radius: 999px;
  background: #e5eef1;
  overflow: hidden;
}
.job-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #1a8f8a);
}
.job-ref-list { display: flex; flex-direction: column; gap: .4rem; }
.job-ref-list > div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .84rem;
}
.job-ref-list span { color: var(--muted); }
.job-ref-list strong { font-weight: 650; text-align: right; }

.job-work-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: .85rem;
  align-items: start;
}
.job-section {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
}
.job-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.job-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.job-section-foot {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.job-inline-form { margin-bottom: .75rem; }
.job-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .65rem;
  align-items: end;
}
.job-inline-fields > div {
  flex: 0 1 140px;
  min-width: 110px;
}
.job-inline-fields > .job-grow { flex: 1 1 180px; min-width: 140px; }
.job-inline-fields label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .25rem;
}
.job-inline-btn { flex: 0 0 auto; }

.job-table { margin-top: .15rem; }
.job-table table.data { font-size: .86rem; }
.job-table th, .job-table td { padding: .5rem .65rem; }

.job-alloc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.job-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(10,107,104,.2);
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.job-chip em {
  font-style: normal;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .75;
}
.job-chip small {
  font-weight: 500;
  opacity: .8;
}

.crew-block { margin-top: .15rem; }
.crew-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: .65rem 0 .45rem;
}
.crew-head strong { font-size: .9rem; }
.crew-grid-head,
.crew-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) 36px;
  gap: .4rem;
  align-items: center;
}
.crew-grid-head {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  padding: 0 .15rem .25rem;
}
.crew-list { display: flex; flex-direction: column; gap: .4rem; }
.crew-row-num {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}
.crew-row select,
.crew-row input { width: 100%; margin: 0; }
.crew-remove {
  padding: .25rem .4rem !important;
  min-width: 34px;
  line-height: 1;
}

.job-cost-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: .85rem;
}
.job-cost-kpis > div {
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.job-cost-kpis span {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.job-cost-kpis strong { font-size: .95rem; }
.job-cost-tabs { margin-bottom: .75rem; }
.job-cost-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}

.job-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.job-activity-list li {
  display: grid;
  grid-template-columns: 88px 90px minmax(0, 1fr);
  gap: .55rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.job-activity-list time { color: var(--muted); }
.job-activity-list strong { text-transform: capitalize; }

@media (max-width: 1100px) {
  .job-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-work-grid,
  .job-cost-tables { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .job-summary-grid,
  .job-cost-kpis { grid-template-columns: 1fr 1fr; }
  .crew-grid-head { display: none; }
  .crew-row {
    grid-template-columns: 24px 1fr 36px;
    grid-template-areas:
      "num emp rem"
      "num name rem"
      "num role rem";
  }
  .crew-row-num { grid-area: num; }
  .crew-row select[name*="[id]"] { grid-area: emp; }
  .crew-row input[name*="[name]"] { grid-area: name; }
  .crew-row select[name*="[role]"] { grid-area: role; }
  .crew-remove { grid-area: rem; }
  .job-activity-list li { grid-template-columns: 1fr; gap: .15rem; }
}

.sidebar .nav-sub {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: 0 .55rem .4rem 2.15rem;
  margin: -.15rem 0 .25rem;
}
.sidebar .nav-sub-link {
  display: block;
  color: rgba(232, 242, 243, 0.62) !important;
  font-size: .8rem;
  padding: .28rem .55rem !important;
  border-radius: 6px;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.sidebar .nav-sub-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
}
.sidebar .nav-sub-link.is-active {
  color: #fff !important;
  background: rgba(43, 181, 175, 0.18) !important;
  font-weight: 650;
}

.inv-hub { display: flex; flex-direction: column; gap: 1rem; }
.inv-masters { gap: .85rem; }
.inv-master-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7fbf8 0%, #eef6f1 100%);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.inv-master-card:hover {
  border-color: var(--brand, #1f6b4a);
  box-shadow: 0 6px 18px rgba(31, 107, 74, .08);
  transform: translateY(-1px);
}
.inv-master-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.inv-master-count {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand, #1f6b4a);
}
.inv-master-hint {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.35;
}
.inv-master-action {
  margin-top: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand, #1f6b4a);
}
.inv-setup-hint a { font-weight: 600; }
.inv-adjust-form .grid { margin-bottom: .25rem; }
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}
.card-head h3 { margin: 0; }

@media (max-width: 900px) {
  .inv-masters.grid-3 { grid-template-columns: 1fr; }
}

/* Profit Analysis report */
.pa-report {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .85rem 1.25rem;
  padding: .95rem 1.1rem;
  margin: 0;
}
.pa-period {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .65rem;
}
.pa-period label {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.pa-period input[type="date"] {
  min-width: 10.5rem;
}
.pa-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .85rem;
}
.pa-period-label {
  font-weight: 600;
  font-size: .9rem;
}
.pa-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}
.pa-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
}
.pa-kpi-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pa-kpi-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.pa-kpi-meta {
  font-size: .75rem;
  color: var(--muted);
}
.pa-kpi-cost { border-top-color: #8aa0ad; }
.pa-kpi-gain {
  border-top-color: var(--ok);
  background: linear-gradient(180deg, var(--ok-bg) 0%, var(--surface) 55%);
}
.pa-kpi-gain .pa-kpi-value { color: var(--ok); }
.pa-kpi-loss {
  border-top-color: var(--danger);
  background: linear-gradient(180deg, var(--danger-bg) 0%, var(--surface) 55%);
}
.pa-kpi-loss .pa-kpi-value { color: var(--danger); }
.pa-kpi-flat { border-top-color: var(--line); }

.pa-table-card { padding: 0; overflow: hidden; }
.pa-table-head {
  padding: .95rem 1.1rem .65rem;
  border-bottom: 1px solid var(--line);
}
.pa-table-head h3 {
  margin: 0;
  font-size: 1rem;
}
.pa-table-head p { margin: .2rem 0 0; }
.pa-table { font-size: .9rem; }
.pa-table thead th {
  background: #f3f6f7;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}
.pa-table tbody td { padding: .65rem .75rem; }
.pa-job-link { white-space: nowrap; }
.pa-customer {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pa-cost { color: var(--ink-soft); }
.pa-table tbody tr.is-gain .pa-profit,
.pa-table tbody tr.is-gain .pa-margin-pill {
  color: var(--ok);
  font-weight: 700;
}
.pa-table tbody tr.is-loss .pa-profit,
.pa-table tbody tr.is-loss .pa-margin-pill {
  color: var(--danger);
  font-weight: 700;
}
.pa-table tbody tr.is-loss {
  background: rgba(220, 80, 70, 0.035);
}
.pa-table tbody tr.is-gain:hover,
.pa-table tbody tr.is-loss:hover,
.pa-table tbody tr.is-flat:hover {
  background: rgba(10, 107, 104, 0.04);
}
.pa-margin-pill {
  display: inline-block;
  min-width: 3.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.pa-table tfoot th {
  background: #e8eef0;
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  border-top: 2px solid #c5d0d6;
  padding: .75rem;
  white-space: nowrap;
}
.pa-table tfoot tr.is-gain .pa-profit,
.pa-table tfoot tr.is-gain .pa-margin-pill { color: var(--ok); }
.pa-table tfoot tr.is-loss .pa-profit,
.pa-table tfoot tr.is-loss .pa-margin-pill { color: var(--danger); }

@media (max-width: 1200px) {
  .pa-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-toolbar { align-items: stretch; }
  .pa-toolbar-meta { width: 100%; justify-content: space-between; }
}


/* ========== Marketing landing ========== */
.landing-body {
  margin: 0;
  font-family: "Figtree", var(--font), system-ui, sans-serif;
  color: #102423;
  background: #f2f6f5;
}
.lp {
  --lp-ink: #0c2423;
  --lp-muted: #5a7371;
  --lp-teal: #0a6b68;
  --lp-teal-deep: #053e3c;
  --lp-sand: #d8c4a8;
  --lp-clay: #c46b3a;
  overflow-x: hidden;
}
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.25rem);
  background: #fff;
  border-bottom: 1px solid rgba(10, 107, 104, 0.1);
  box-shadow: none;
  transition: box-shadow .2s ease;
}
.lp-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(12, 36, 35, 0.08);
}
.lp-nav-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--lp-teal-deep);
  text-decoration: none;
}
.lp-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .9rem;
  font-size: .9rem;
}
.lp-nav-links a { color: var(--lp-muted); text-decoration: none; font-weight: 600; }
.lp-nav-links a:hover { color: var(--lp-teal); }
.lp-nav-login { color: var(--lp-teal-deep) !important; }
.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--lp-teal);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.lp-nav-cta:hover {
  background: var(--lp-teal-deep);
  transform: translateY(-1px);
  color: #fff !important;
}

.lp-hero {
  position: relative;
  color: #f4faf9;
  overflow: hidden;
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 88% 18%, rgba(216, 196, 168, 0.28), transparent 55%),
    radial-gradient(560px 320px at 12% 85%, rgba(10, 107, 104, 0.35), transparent 50%),
    linear-gradient(120deg, #042f2e 0%, #0a6b68 48%, #1a8f8a 100%);
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem clamp(1rem, 4vw, 2rem) 2rem;
  min-height: 0;
}
.lp-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  animation: lp-rise .65s ease both;
}
.lp-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 .65rem;
  color: #fff;
}
.lp-headline {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin: 0 0 .55rem;
  color: rgba(255,255,255,.96);
  max-width: 22ch;
  transition: opacity .15s ease, transform .15s ease;
}
.lp-lead {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(244, 250, 249, 0.84);
  max-width: 36ch;
  min-height: 3.1em;
  transition: opacity .15s ease, transform .15s ease;
}
.lp-lead.is-swap,
.lp-headline.is-swap {
  opacity: 0;
  transform: translateY(6px);
}
.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.lp-btn-primary {
  background: #fff !important;
  color: var(--lp-teal-deep) !important;
  border: none !important;
  font-weight: 700;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn-primary:hover {
  background: #e8f4f3 !important;
  color: var(--lp-teal-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.lp-btn-ghost {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  color: #fff !important;
  font-weight: 700;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}
.lp-btn-ghost:hover {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.lp-hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lp-rise .7s ease both;
  animation-delay: .08s;
}
.lp-preview {
  width: min(100%, 360px);
  background: rgba(255,255,255,.96);
  color: var(--lp-ink);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 20, 18, 0.28);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lp-preview:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 20, 18, 0.32);
}
.lp-preview-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .85rem;
  background: #0a5552;
  color: #fff;
  font-size: .78rem;
}
.lp-preview-bar strong { margin-left: .35rem; letter-spacing: .02em; }
.lp-preview-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.lp-preview-dot:nth-child(1) { background: #ff6b6b; }
.lp-preview-dot:nth-child(2) { background: #ffd166; }
.lp-preview-dot:nth-child(3) { background: #06d6a0; }
.lp-preview-body { padding: .95rem 1rem 1.05rem; }
.lp-preview-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .86rem;
  margin-bottom: .45rem;
}
.lp-preview-row span { color: var(--lp-muted); }
.lp-preview-meter {
  height: .55rem;
  border-radius: 999px;
  background: rgba(10, 107, 104, 0.12);
  overflow: hidden;
  margin: .35rem 0 .85rem;
}
.lp-preview-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-teal), #1a8f8a);
  transition: width .12s linear;
}
.lp-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
}
.lp-preview-kpis div {
  background: #f3f8f7;
  border-radius: 10px;
  padding: .45rem .5rem;
  text-align: center;
}
.lp-preview-kpis em {
  display: block;
  font-style: normal;
  font-size: .68rem;
  color: var(--lp-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.lp-preview-kpis b {
  font-family: "Syne", sans-serif;
  font-size: .95rem;
  color: var(--lp-ink);
}
.lp-preview-kpis b.ok { color: #1f8a5b; }

.lp-orbit {
  position: absolute;
  right: 0;
  bottom: .25rem;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  padding: 0 .5rem;
}
.lp-orbit-chip {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(4, 47, 46, 0.45);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.lp-orbit-chip:hover { transform: translateY(-2px); border-color: #fff; }
.lp-orbit-chip.is-on {
  background: #fff;
  color: var(--lp-teal-deep);
  border-color: #fff;
}

.lp-section {
  padding: clamp(2.2rem, 5vh, 3.4rem) clamp(1rem, 4vw, 2rem);
  max-width: 1180px;
  margin: 0 auto;
}
.lp-section-head {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}
.lp-section-head h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 .4rem;
  color: var(--lp-ink);
}
.lp-section-head p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.lp-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.lp-module {
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.1);
  box-shadow: 0 6px 18px rgba(12, 36, 35, 0.03);
  animation: lp-rise .55s ease both;
  animation-delay: var(--d, 0ms);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: default;
}
.lp-module:hover,
.lp-module:focus {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(10, 107, 104, 0.28);
  box-shadow: 0 14px 28px rgba(12, 36, 35, 0.08);
}
.lp-module-ico {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: .65rem;
  border-radius: 8px;
  background: rgba(10, 107, 104, 0.1);
  position: relative;
}
.lp-module-ico::before,
.lp-module-ico::after {
  content: "";
  position: absolute;
  background: var(--lp-teal);
}
.lp-module-ico-drill::before {
  left: 50%; top: 18%; width: 3px; height: 55%;
  transform: translateX(-50%); border-radius: 2px;
}
.lp-module-ico-drill::after {
  left: 28%; bottom: 22%; width: 44%; height: 8px; border-radius: 2px;
}
.lp-module-ico-gst::before {
  inset: 28% 22%;
  border: 2px solid var(--lp-teal);
  background: transparent;
  border-radius: 3px;
}
.lp-module-ico-fuel::before {
  left: 35%; top: 22%; width: 30%; height: 48%;
  border-radius: 3px 3px 6px 6px;
}
.lp-module-ico-ledger::before {
  left: 24%; top: 24%; width: 52%; height: 8px; border-radius: 2px;
  box-shadow: 0 10px 0 var(--lp-teal), 0 20px 0 var(--lp-teal);
}
.lp-module h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.02rem;
  margin: 0 0 .35rem;
  color: var(--lp-teal-deep);
}
.lp-hero-note {
  margin: .85rem 0 0;
  font-size: .82rem;
  color: rgba(244, 250, 249, 0.72);
}

.lp-access {
  background: #fff;
  border-bottom: 1px solid rgba(10, 107, 104, 0.1);
  padding: clamp(1.75rem, 4vh, 2.75rem) clamp(1rem, 4vw, 2rem);
  scroll-margin-top: 4.5rem;
}
.lp-access-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.lp-access-intro h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 .45rem;
  color: var(--lp-ink);
}
.lp-access-intro p {
  margin: 0 0 1rem;
  color: var(--lp-muted);
  line-height: 1.5;
}
.lp-access-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.lp-access-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .92rem;
  color: var(--lp-ink);
}
.lp-access-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--lp-teal);
}
.lp-access-card {
  background: #f7fbfa;
  border: 1px solid rgba(10, 107, 104, 0.14);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 12px 32px rgba(12, 36, 35, 0.06);
}
.lp-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin-bottom: .85rem;
  background: #fff;
  padding: .3rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 107, 104, 0.1);
}
.lp-auth-tab {
  border: none;
  background: transparent;
  padding: .65rem .5rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: .84rem;
  color: var(--lp-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lp-auth-tab:hover { color: var(--lp-teal-deep); }
.lp-auth-tab.is-active {
  background: var(--lp-teal);
  color: #fff;
  transform: translateY(-1px);
}
.lp-auth-panel { display: none; animation: lp-rise .28s ease both; }
.lp-auth-panel.is-active { display: block; }
.lp-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .75rem;
}
.lp-auth-form .form-row { margin: 0 0 .65rem; }
.lp-auth-form label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--lp-muted);
  margin-bottom: .28rem;
}
.lp-auth-form input {
  width: 100%;
  border: 1px solid rgba(10, 107, 104, 0.18);
  border-radius: 9px;
  padding: .55rem .7rem;
  background: #fff;
  font: inherit;
}
.lp-auth-form input:focus {
  outline: none;
  border-color: var(--lp-teal);
  box-shadow: 0 0 0 3px rgba(10, 107, 104, 0.15);
}
.lp-auth-more {
  margin: .25rem 0 .85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed rgba(10, 107, 104, 0.25);
  padding: .45rem .7rem;
}
.lp-auth-more summary {
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
  color: var(--lp-teal-deep);
}
.lp-remember {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  color: var(--lp-muted);
  margin: 0 0 .85rem;
  cursor: pointer;
}
.lp-auth-submit {
  width: 100%;
  font-weight: 700;
  padding: .75rem 1rem;
}
.lp-auth-hint {
  margin: .65rem 0 0;
  font-size: .8rem;
  color: var(--lp-muted);
  line-height: 1.4;
}
.lp-auth-hint a { font-weight: 700; }

.lp-band {
  background: linear-gradient(180deg, #eaf3f2, #f2f6f5 70%);
  padding: clamp(1.75rem, 4vh, 2.75rem) clamp(1rem, 4vw, 2rem);
}
.lp-band-inner { max-width: 1180px; margin: 0 auto; }
.lp-journey {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.12);
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
}
.lp-journey-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  padding: .9rem;
  background: #f7fbfa;
}
.lp-journey-step {
  text-align: left;
  border: 1px solid rgba(10, 107, 104, 0.12);
  background: #fff;
  border-radius: 12px;
  padding: .7rem .75rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--lp-ink);
  font-size: .9rem;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.lp-journey-step span {
  display: block;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--lp-muted);
  margin-bottom: .2rem;
}
.lp-journey-step:hover { transform: translateY(-2px); border-color: var(--lp-teal); }
.lp-journey-step.is-active {
  background: var(--lp-teal);
  border-color: var(--lp-teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 107, 104, 0.2);
}
.lp-journey-step.is-active span { color: rgba(255,255,255,.75); }
.lp-journey-stage { padding: 1.25rem 1.35rem; display: flex; align-items: center; }
.lp-journey-panel { display: none; animation: lp-rise .3s ease both; }
.lp-journey-panel.is-active { display: block; }
.lp-journey-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-teal);
}
.lp-journey-panel h3 {
  font-family: "Syne", sans-serif;
  margin: 0 0 .45rem;
  font-size: 1.45rem;
  color: var(--lp-ink);
}
.lp-journey-panel p { margin: 0; color: var(--lp-muted); line-height: 1.5; font-size: 1rem; }

.lp-feature-explorer {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}
.lp-feature-nav {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.lp-feature-btn {
  text-align: left;
  border: 1px solid rgba(10, 107, 104, 0.12);
  background: #fff;
  border-radius: 12px;
  padding: .85rem .95rem;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.lp-feature-btn strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: .98rem;
  color: var(--lp-ink);
  margin-bottom: .2rem;
}
.lp-feature-btn span {
  display: block;
  font-size: .82rem;
  color: var(--lp-muted);
  line-height: 1.35;
}
.lp-feature-btn:hover { transform: translateX(3px); border-color: var(--lp-teal); }
.lp-feature-btn.is-active {
  background: linear-gradient(135deg, rgba(10, 107, 104, 0.1), #fff 60%);
  border-color: var(--lp-teal);
  box-shadow: inset 3px 0 0 var(--lp-teal);
}
.lp-feature-detail {
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.12);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  min-height: 260px;
}
.lp-feature-panel { display: none; animation: lp-rise .3s ease both; }
.lp-feature-panel.is-active { display: block; }
.lp-feature-panel h3 {
  font-family: "Syne", sans-serif;
  margin: 0 0 .35rem;
  font-size: 1.25rem;
  color: var(--lp-teal-deep);
}
.lp-feature-blurb { margin: 0 0 .85rem; color: var(--lp-muted); }
.lp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.lp-feature-list li {
  position: relative;
  padding: .65rem .75rem .65rem 1.85rem;
  background: #f7fbfa;
  border-radius: 10px;
  font-size: .92rem;
  color: var(--lp-ink);
  line-height: 1.4;
  transition: transform .15s ease, background .15s ease;
}
.lp-feature-list li:hover { transform: translateX(4px); background: rgba(10, 107, 104, 0.08); }
.lp-feature-list li::before {
  content: "";
  position: absolute;
  left: .7rem;
  top: .95rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--lp-teal);
}

.lp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  background: var(--lp-teal-deep);
  color: #fff !important;
  font-weight: 700;
  font-size: .88rem;
  padding: .7rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(5, 62, 60, 0.35);
  transition: transform .15s ease, background .15s ease;
}
.lp-fab:hover { transform: translateY(-2px); background: var(--lp-teal); color: #fff !important; }

@media (max-width: 900px) {
  .lp-access-inner,
  .lp-journey,
  .lp-feature-explorer { grid-template-columns: 1fr; }
  .lp-auth-grid { grid-template-columns: 1fr; }
  .lp-journey-steps { grid-template-columns: 1fr 1fr; }
}

.lp-pricing {
  max-width: none;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(10, 107, 104, 0.07), transparent 55%),
    #eef4f3;
  padding: clamp(2rem, 4vh, 3rem) clamp(1rem, 3vw, 2rem);
}
.lp-pricing-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.lp-pricing-head {
  text-align: left;
  max-width: none;
  margin-bottom: 1.1rem;
}
.lp-plan-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 0;
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(12, 36, 35, 0.07);
  min-height: 0;
}
.lp-plan-board-main {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  border-right: 1px solid rgba(10, 107, 104, 0.1);
}
.lp-plan-board-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.lp-plan-kicker {
  margin: 0 0 .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-teal);
}
.lp-plan-board h3 {
  font-family: "Syne", sans-serif;
  margin: 0;
  font-size: 1.45rem;
  color: var(--lp-ink);
  letter-spacing: -0.03em;
}
.lp-plan-board .lp-plan-desc {
  margin: .35rem 0 0;
  color: var(--lp-muted);
  font-size: .9rem;
  line-height: 1.4;
  max-width: 34ch;
  min-height: 0;
}
.lp-plan-price-block { text-align: right; }
.lp-plan-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lp-plan-price strong {
  font-family: "Syne", sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--lp-teal-deep);
}
.lp-plan-price span { color: var(--lp-muted); font-size: .85rem; }
.lp-plan-meta { margin: .2rem 0 0; font-size: .8rem; color: var(--lp-muted); }

.lp-estimate {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: .75rem;
  padding: .85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10, 107, 104, 0.07), rgba(10, 107, 104, 0.02));
  border: 1px solid rgba(10, 107, 104, 0.1);
}
.lp-estimate-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
  align-items: flex-end;
}
.lp-control-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: .35rem;
}
.lp-stepper {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.18);
  border-radius: 999px;
  padding: .2rem;
}
.lp-stepper button {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: var(--lp-teal);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: transform .15s ease, background .15s ease;
}
.lp-stepper button:hover { background: var(--lp-teal-deep); transform: scale(1.06); }
.lp-stepper strong {
  min-width: 1.6rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink);
}
.lp-month-pills {
  display: inline-flex;
  gap: .3rem;
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.18);
  border-radius: 999px;
  padding: .2rem;
}
.lp-month {
  border: none;
  background: transparent;
  min-width: 2.2rem;
  height: 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--lp-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lp-month:hover { color: var(--lp-teal-deep); background: rgba(10, 107, 104, 0.08); }
.lp-month.is-active {
  background: var(--lp-teal);
  color: #fff;
  transform: scale(1.04);
}
.lp-estimate-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: .1rem;
}
.lp-estimate-total > span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.lp-estimate-total strong {
  font-family: "Syne", sans-serif;
  font-size: 1.45rem;
  color: var(--lp-teal-deep);
  letter-spacing: -0.02em;
  transition: transform .2s ease;
}
.lp-estimate-total strong.is-updating { transform: scale(1.06); }
.lp-estimate-total small { color: var(--lp-muted); font-size: .75rem; }

.lp-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.lp-plan-list-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .85rem;
}
.lp-plan-list li {
  position: relative;
  padding-left: 1rem;
  font-size: .86rem;
  color: var(--lp-ink);
  line-height: 1.35;
}
.lp-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--lp-teal);
}
.lp-plan-cta {
  margin-top: .15rem;
  align-self: flex-start;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-plan-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 107, 104, 0.25);
}

.lp-plan-board-mods {
  padding: 1.15rem 1.25rem 1.25rem;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(10, 107, 104, 0.08), transparent 60%),
    #f7fbfa;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lp-included-title {
  margin: 0 0 .65rem;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-teal-deep);
  letter-spacing: -0.02em;
}
.lp-mod-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .75rem;
}
.lp-mod-tab {
  border: 1px solid rgba(10, 107, 104, 0.16);
  background: #fff;
  color: var(--lp-muted);
  font-size: .8rem;
  font-weight: 700;
  padding: .4rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.lp-mod-tab:hover {
  color: var(--lp-teal-deep);
  border-color: var(--lp-teal);
}
.lp-mod-tab.is-active {
  background: var(--lp-teal);
  border-color: var(--lp-teal);
  color: #fff;
  transform: translateY(-1px);
}
.lp-mod-panel {
  display: none;
  animation: lp-rise .3s ease both;
}
.lp-mod-panel.is-active { display: block; }
.lp-mod-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.lp-mod-chips li {
  padding: .45rem .7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(10, 107, 104, 0.12);
  font-size: .84rem;
  color: var(--lp-ink);
  cursor: default;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lp-mod-chips li:hover,
.lp-mod-chips li:focus {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--lp-teal);
  background: rgba(10, 107, 104, 0.06);
  box-shadow: 0 6px 14px rgba(10, 107, 104, 0.1);
}

@media (max-width: 900px) {
  .lp-plan-board { grid-template-columns: 1fr; }
  .lp-plan-board-main { border-right: none; border-bottom: 1px solid rgba(10, 107, 104, 0.1); }
  .lp-estimate { grid-template-columns: 1fr; }
  .lp-estimate-total { align-items: flex-start; text-align: left; }
  .lp-plan-list-inline { grid-template-columns: 1fr; }
  .lp-plan-board-top { flex-direction: column; }
  .lp-plan-price-block { text-align: left; }
  .lp-plan-price { justify-content: flex-start; }
}

.lp-billing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.lp-billing-steps h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  margin: .55rem 0 .35rem;
  color: var(--lp-ink);
}
.lp-billing-steps p {
  margin: 0;
  color: var(--lp-muted);
  font-size: .92rem;
  line-height: 1.45;
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lp-teal);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.lp-promo {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--lp-clay);
  background: rgba(196, 107, 58, 0.08);
}
.lp-promo strong {
  display: block;
  font-family: "Syne", sans-serif;
  margin-bottom: .25rem;
  color: var(--lp-ink);
}
.lp-promo p { margin: 0; color: var(--lp-muted); font-size: .92rem; }

.lp-cta-band {
  margin: 0 clamp(1rem, 4vw, 2rem) 2rem;
  padding: clamp(2.2rem, 5vh, 3.2rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lp-teal-deep), var(--lp-teal) 60%, #1a8f8a);
  color: #fff;
  text-align: center;
}
.lp-cta-band .lp-brand { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.lp-cta-band h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin: 0 0 .5rem;
  letter-spacing: -0.03em;
}
.lp-cta-band > p { margin: 0 auto 1.25rem; max-width: 34rem; color: rgba(255,255,255,.85); }
.lp-cta-band .lp-hero-cta { justify-content: center; }

.lp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 3.5rem) 2rem;
  color: var(--lp-muted);
  font-size: .88rem;
  border-top: 1px solid rgba(10, 107, 104, 0.1);
}
.lp-footer nav { display: flex; gap: 1rem; }
.lp-footer a { color: var(--lp-teal-deep); font-weight: 600; }

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes lp-wave {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 36px 0; }
}
@keyframes lp-drip {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(8px); opacity: .35; }
}

@media (max-width: 980px) {
  .lp-hero-inner { grid-template-columns: 1fr; padding-bottom: 3.5rem; }
  .lp-hero-visual { min-height: 300px; order: -1; }
  .lp-module-grid { grid-template-columns: 1fr 1fr; }
  .lp-billing-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-nav-links a:not(.lp-nav-login):not(.lp-nav-cta) { display: none; }
  .lp-module-grid { grid-template-columns: 1fr; }
  .lp-headline { max-width: none; }
  .lp-preview { transform: none; }
}

/* ===== Maintenance workspace ===== */
.mnt-page { width: 100%; max-width: none; }
.mnt-page--form { max-width: 920px; padding-bottom: 5.5rem; }
.mnt-page--screen {
  width: 100%;
  max-width: none;
  margin: -.25rem 0 0;
}
.mnt-screen { display: flex; flex-direction: column; gap: .65rem; }
.mnt-screen__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem .85rem;
  padding: .15rem 0 .35rem;
}
.mnt-screen__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem .85rem;
  min-width: 0;
}
.mnt-screen__title .mnt-back { margin: 0; }
.mnt-screen__title .page-title {
  margin: 0;
  font-size: 1.2rem;
}
.mnt-screen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.mnt-screen__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .95fr);
  gap: .7rem;
  align-items: stretch;
}
.mnt-panel--tight { margin-bottom: 0; }
.mnt-panel--tight .mnt-panel__head {
  padding: .55rem .85rem;
}
.mnt-panel__head--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.mnt-panel__head--inline h2 {
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #3d5551;
}
.mnt-panel--tight .mnt-panel__body {
  padding: .75rem .85rem .85rem;
}
.mnt-panel--tight .form-row {
  margin-bottom: .55rem;
}
.mnt-panel--tight .form-row:last-child { margin-bottom: 0; }
.mnt-panel--tight label {
  font-size: .78rem;
  margin-bottom: .2rem;
}
.mnt-panel--tight .mnt-grid { gap: .55rem .65rem; }
.mnt-panel--tight select,
.mnt-panel--tight input[type="text"],
.mnt-panel--tight input[type="number"],
.mnt-panel--tight input[type="date"] {
  min-height: 2.15rem;
  padding: .35rem .55rem;
  font-size: .9rem;
}
.mnt-cost-row--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .55rem;
}
.mnt-cost-row--compact .mnt-total {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: .55rem .75rem;
  min-width: 0;
}
.mnt-cost-row--compact .mnt-total span { display: inline; margin-right: .5rem; }
.mnt-more--flat {
  margin: 0;
}
.mnt-more--flat > summary {
  padding: .7rem .9rem;
  flex-direction: row;
  align-items: baseline;
  gap: .65rem;
}
.mnt-more--flat > summary em { margin: 0; }

@media (max-width: 1280px) {
  .mnt-screen__grid {
    grid-template-columns: 1fr 1fr;
  }
  .mnt-panel--cost { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .mnt-screen__grid { grid-template-columns: 1fr; }
  .mnt-panel--cost { grid-column: auto; }
  .mnt-screen__bar { align-items: stretch; }
  .mnt-screen__actions { width: 100%; }
  .mnt-screen__actions .btn { flex: 1; }
}
.mnt-kicker {
  margin: 0 0 .2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand, #0f4f4a);
}
.mnt-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}
.mnt-hero .page-title { margin-bottom: .15rem; }
.mnt-hero--compact { margin-bottom: 1rem; }
.mnt-hero__sub { margin: .3rem 0 0; color: var(--muted, #64748b); font-size: .95rem; max-width: 36rem; }
.mnt-hero__actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.mnt-btn-ico { opacity: .85; margin-right: .15rem; }
.mnt-screen__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  color: var(--muted, #64748b);
}
.mnt-screen__bar--tools { margin-bottom: .15rem; }
.mnt-parts-inline { margin: 0; }
.mnt-parts-list--row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .35rem .85rem;
}
.mnt-parts-list--row li {
  border: 1px solid var(--border, #eef2f3);
  border-radius: 8px;
  padding: .45rem .65rem;
  border-bottom: 1px solid var(--border, #eef2f3);
}
.mnt-parts-list--row li em { font-style: normal; margin-left: .25rem; }
.mnt-vendor-row {
  margin-top: .15rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--border, #e2e8e9);
}
.mnt-vendor-row[hidden] { display: none !important; }
.mnt-inline-warn {
  margin: 0;
  padding: .7rem .85rem;
  background: #FFF8EB;
  border: 1px solid #F0D9A8;
  border-radius: 8px;
  font-size: .9rem;
  color: #7A5A00;
}
.mnt-inline-warn a { font-weight: 650; color: #0f4f4a; }

.mnt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.15rem;
}
.mnt-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .95rem 1.05rem;
  background: #fff;
  border: 1px solid var(--border, #e2e8e9);
  border-radius: 12px;
  min-height: 96px;
}
.mnt-stat--link {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.mnt-stat--link:hover {
  border-color: #9fc4bf;
  box-shadow: 0 6px 16px rgba(15, 79, 74, .06);
}
.mnt-stat--warn {
  background: #FFF8EB;
  border-color: #F0D9A8;
}
.mnt-stat__label {
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mnt-stat__value {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #12201e;
}
.mnt-stat__hint {
  font-size: .8rem;
  color: var(--muted, #64748b);
}

.mnt-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-bottom: .5rem;
}
.mnt-setup__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--border, #e2e8e9);
  border-radius: 14px;
}
.mnt-setup__card--primary {
  border-color: #9fc4bf;
  background: linear-gradient(180deg, #f4faf8 0%, #fff 55%);
}
.mnt-setup__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0f4f4a;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.mnt-setup__card h2 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.mnt-setup__card p {
  margin: 0 0 .9rem;
  color: var(--muted, #64748b);
  font-size: .92rem;
  line-height: 1.45;
}

.mnt-back {
  display: inline-block;
  margin-bottom: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand, #0f4f4a);
  text-decoration: none;
}
.mnt-back:hover { text-decoration: underline; }

.mnt-due {
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  background: #FFF8EB;
  border: 1px solid #F0D9A8;
  border-radius: 12px;
}
.mnt-due__head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
  font-size: .92rem;
}
.mnt-due__rail {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  -webkit-overflow-scrolling: touch;
}
.mnt-due__chip {
  flex: 0 0 auto;
  min-width: 148px;
  padding: .7rem .85rem;
  background: #fff;
  border: 1px solid #E8D4A8;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: .15rem;
}
.mnt-due__chip:hover { border-color: var(--brand, #0f4f4a); }
.mnt-due__reg { font-weight: 700; font-size: .9rem; }
.mnt-due__meta { font-size: .78rem; color: var(--muted, #64748b); }
.mnt-due__date { font-size: .8rem; font-weight: 600; color: #9A6700; }

.mnt-board { margin-top: 0; }
.mnt-board__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #f8fbfa;
}
.mnt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.mnt-filter {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #1f2937);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
}
.mnt-filter em {
  font-style: normal;
  font-size: .72rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: #eef2f3;
  color: #526066;
}
.mnt-filter.is-active {
  background: var(--brand, #0f4f4a);
  border-color: var(--brand, #0f4f4a);
  color: #fff;
}
.mnt-filter.is-active em { background: rgba(255,255,255,.2); color: #fff; }
.mnt-search {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.mnt-search input[type="search"] {
  min-width: 220px;
  height: 2.4rem;
  border-radius: 8px;
}
.mnt-table thead th {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  background: #fbfcfc;
}
.mnt-table tbody td {
  vertical-align: middle;
  line-height: 1.35;
}
.mnt-table tbody tr.mnt-row { cursor: pointer; }
.mnt-table tbody tr.mnt-row:hover { background: #f3f8f7; }
.mnt-table td strong { font-weight: 650; }
.mnt-cell-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .12rem;
  line-height: 1.25;
}
.mnt-cell-stack .muted { line-height: 1.2; }
.mnt-kind {
  display: inline-block;
  font-size: .88rem;
  line-height: 1.2;
}
.mnt-col-actions { width: 1%; text-align: right; }
.mnt-row-actions {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  justify-content: flex-end;
  white-space: nowrap;
  vertical-align: middle;
}
.mnt-row-actions form { display: inline; }
.mnt-empty {
  text-align: center !important;
  padding: 2.75rem 1rem !important;
}
.mnt-empty p { margin: 0 0 .95rem; color: var(--muted, #64748b); }
.mnt-empty .btn { margin: 0 .25rem; }

.mnt-pri {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  background: #eef2f3;
  color: #526066;
}
.mnt-pri--normal { background: #E8F3F1; color: #0f4f4a; }
.mnt-pri--high, .mnt-pri--critical { background: #FEECEC; color: #B42318; }
.mnt-pri--low { background: #F3F4F6; color: #6B7280; }

.mnt-cat {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  background: #E8F3F1;
  color: #0f4f4a;
}
.mnt-cat--preventive { background: #E8F3F1; color: #0f4f4a; }
.mnt-cat--corrective, .mnt-cat--breakdown { background: #FEECEC; color: #B42318; }
.mnt-cat--inspection { background: #EAF2FB; color: #175CD3; }
.mnt-cat--overhaul { background: #F4EBFF; color: #6941C6; }

@media (max-width: 1100px) {
  .mnt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .mnt-setup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mnt-stats { grid-template-columns: 1fr; }
}

.mnt-form { display: grid; gap: 1rem; }
.mnt-panel { margin: 0; overflow: hidden; }
.mnt-panel__head {
  padding: .9rem 1.15rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #f7faf9;
}
.mnt-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.mnt-panel__head p {
  margin: .2rem 0 0;
  font-size: .82rem;
  color: var(--muted, #64748b);
}
.mnt-panel__body { padding: 1.1rem 1.15rem 1.2rem; }
.mnt-grid {
  display: grid;
  gap: .85rem 1rem;
}
.mnt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mnt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mnt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mnt-panel .form-row { margin-bottom: .85rem; }
.mnt-panel .form-row:last-child { margin-bottom: 0; }
.req { color: #B42318; }

.mnt-seg {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.mnt-seg__item {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.mnt-seg__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mnt-seg__item span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: .35rem .8rem;
  border: 1px solid var(--border, #d7e0e3);
  border-radius: 8px;
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: #334155;
  transition: border-color .15s, background .15s, color .15s;
}
.mnt-seg__item:hover span { border-color: #b9c8d0; }
.mnt-seg__item input:checked + span {
  background: #E8F3F1;
  border-color: var(--brand, #0f4f4a);
  color: var(--brand, #0f4f4a);
}
.mnt-seg__item input:focus-visible + span {
  outline: 2px solid var(--brand, #0f4f4a);
  outline-offset: 2px;
}
.mnt-seg--sm .mnt-seg__item span {
  min-height: 2.1rem;
  padding: .25rem .65rem;
  font-size: .82rem;
}

.mnt-cost-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .85rem 1rem;
  align-items: end;
  margin-bottom: .85rem;
}
.mnt-total {
  min-width: 7.5rem;
  padding: .65rem .85rem;
  background: #0f4f4a;
  color: #fff;
  border-radius: 10px;
  text-align: right;
}
.mnt-total span {
  display: block;
  font-size: .72rem;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mnt-total strong { font-size: 1.1rem; }

.mnt-more {
  padding: 0;
  overflow: hidden;
}
.mnt-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-weight: 700;
}
.mnt-more > summary::-webkit-details-marker { display: none; }
.mnt-more > summary em {
  font-style: normal;
  font-weight: 500;
  font-size: .82rem;
  color: var(--muted, #64748b);
}
.mnt-more[open] > summary { border-bottom: 1px solid var(--border, #e5e7eb); background: #f7faf9; }
.mnt-more__body { padding: 1.1rem 1.15rem 1.25rem; }

.mnt-parts-block { margin-top: .5rem; }
.mnt-parts-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
}
.mnt-part-row {
  display: grid;
  grid-template-columns: 1fr 5.5rem 6.5rem;
  gap: .5rem;
  margin-bottom: .45rem;
}

.mnt-sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding: .85rem 0;
  margin-top: .25rem;
  background: linear-gradient(180deg, transparent, var(--bg, #f4f6f7) 28%);
}

.mnt-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}
.mnt-show-main { min-width: 0; }
.mnt-summary { padding: 1rem 1.1rem; }
.mnt-summary h3 { margin: 0 0 .75rem; font-size: .95rem; }
.mnt-parts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mnt-parts-list li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border, #eef2f3);
  font-size: .9rem;
}

@media (max-width: 960px) {
  .mnt-show-grid { grid-template-columns: 1fr; }
  .mnt-grid--3, .mnt-grid--4 { grid-template-columns: 1fr 1fr; }
  .mnt-cost-row { grid-template-columns: 1fr 1fr; }
  .mnt-total { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 640px) {
  .mnt-grid--2, .mnt-grid--3, .mnt-grid--4 { grid-template-columns: 1fr; }
  .mnt-cost-row { grid-template-columns: 1fr; }
  .mnt-part-row { grid-template-columns: 1fr; }
  .mnt-search { width: 100%; }
  .mnt-search input[type="search"] { flex: 1; min-width: 0; }
  .mnt-board__toolbar { flex-direction: column; align-items: stretch; }
  .mnt-sticky { justify-content: stretch; }
  .mnt-sticky .btn { flex: 1; }
}

/* Shared resource create/edit form */
.res-page {
  width: 100%;
  max-width: none;
  margin: 0;
}
.res-page--narrow {
  max-width: 760px;
}
.res-screen.card,
.res-screen {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.res-screen__bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem .85rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
}
.res-screen__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  min-width: 0;
}
.res-screen__title .mnt-back {
  margin: 0;
  font-size: .82rem;
}
.res-screen__title .page-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}
.res-screen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-left: auto;
}
form.res-screen .res-screen__grid,
.res-screen__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .85rem 1.15rem;
  padding: 1.2rem 1.25rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
}
form.res-screen .res-screen__grid--3,
.res-screen__grid--3,
.res-screen__grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.res-page--narrow .res-screen__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.res-screen__wide { grid-column: 1 / -1; }
.res-screen__third { grid-column: span 1; }
.res-screen__grid .form-row {
  margin-bottom: 0 !important;
  min-width: 0;
}
.res-screen__grid .form-row label {
  display: block;
  margin-bottom: .25rem;
  font-size: .82rem;
  font-weight: 650;
}
.res-screen__grid .form-row input,
.res-screen__grid .form-row select,
.res-screen__grid .form-row textarea {
  width: 100%;
  box-sizing: border-box;
}
.res-screen__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  margin: 0;
  padding: .95rem 1.25rem 1.15rem;
  border-top: 1px solid var(--border, #e5e7eb);
  background: rgba(248, 250, 251, 0.9);
}
@media (max-width: 900px) {
  form.res-screen .res-screen__grid,
  form.res-screen .res-screen__grid--3,
  .res-screen__grid,
  .res-screen__grid--3,
  .res-screen__grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  form.res-screen .res-screen__grid,
  form.res-screen .res-screen__grid--3,
  .res-screen__grid,
  .res-screen__grid--3,
  .res-screen__grid--compact {
    grid-template-columns: 1fr !important;
  }
  .res-screen__actions { width: 100%; margin-left: 0; }
  .res-screen__actions .btn,
  .res-screen__footer .btn { flex: 1; }
}

/* Keep job form bar aligned with resource screen */
.res-form-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: .85rem;
}
.res-form-bar .page-title { margin: .15rem 0 0; }
.res-form-bar .mnt-back { display: inline-block; margin-bottom: .1rem; }
.res-form-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

/* Job create / edit form */
.job-form-page {
  width: 100%;
  max-width: 920px;
}
.job-form {
  margin: 0;
  padding: 1.1rem 1.2rem 1.15rem;
}
.job-form__section { margin-bottom: .85rem; }
.job-form__label {
  margin: 0 0 .4rem;
  font-size: .82rem;
  font-weight: 650;
}
.job-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1rem;
  margin-bottom: .85rem;
}
.job-form__grid .form-row { margin-bottom: 0; }
.job-form .form-row { margin-bottom: .75rem; }
.job-form__hint { margin: .35rem 0 .85rem; }
.job-form .crew-block {
  margin: .25rem 0 .5rem;
  padding: .85rem .9rem;
  background: #f7faf9;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
}
.job-form .crew-grid-head,
.job-form .crew-row {
  grid-template-columns: 28px minmax(120px, 1.2fr) minmax(100px, 1fr) minmax(110px, .95fr) 36px;
}
@media (max-width: 720px) {
  .job-form__grid { grid-template-columns: 1fr; }
}

/* Transaction delete confirmation modal */
body.txn-del-open { overflow: hidden; }
.txn-del-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.txn-del-modal[hidden] { display: none !important; }
.txn-del-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 35, 43, 0.45);
}
.txn-del-panel {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.txn-del-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 1rem 1.15rem .65rem;
  border-bottom: 1px solid var(--line);
}
.txn-del-head h2 { margin: 0; font-size: 1.1rem; }
.txn-del-x {
  border: 0; background: transparent; font-size: 1.4rem;
  line-height: 1; cursor: pointer; color: var(--muted); padding: .15rem .4rem;
}
.txn-del-body { padding: .85rem 1.15rem 1rem; }
.txn-del-lead { margin: 0 0 .75rem; font-weight: 600; }
.txn-del-sub { margin: .5rem 0 .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.txn-del-table { font-size: .9rem; }
.txn-del-modes {
  margin: .85rem 0 0; padding: .75rem .85rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2);
}
.txn-del-modes legend { padding: 0 .25rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.txn-del-choice {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: .55rem 0; cursor: pointer;
}
.txn-del-choice input { margin-top: .25rem; }
.txn-del-choice strong { display: block; font-size: .95rem; }
.txn-del-choice em { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.txn-del-reason { display: block; margin-top: .75rem; }
.txn-del-reason span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .25rem; }
.txn-del-reason input { width: 100%; }
.txn-del-actions {
  display: flex; justify-content: flex-end; gap: .5rem;
  padding: .75rem 1.15rem 1rem;
  border-top: 1px solid var(--line);
}

/* Language switcher (header) */
.lang-switch {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .45rem .2rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.lang-switch__ico {
  width: .9rem; height: .9rem; border: 1.5px solid var(--ink-soft); border-radius: 50%;
  position: relative; opacity: .8; flex-shrink: 0;
}
.lang-switch__ico::before {
  content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 1.5px;
  background: currentColor; transform: translateX(-50%); color: var(--ink-soft);
}
.lang-switch__ico::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 1.5px;
  background: var(--ink-soft); transform: translateY(-50%);
}
.lang-switch__select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a6b72' d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right .15rem center / 10px;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .28rem 1.15rem .28rem .15rem;
  margin: 0;
  max-width: 11rem;
  cursor: pointer;
  min-height: 1.7rem;
}
.lang-switch__select:focus {
  outline: none;
}
.lang-switch:focus-within {
  border-color: rgba(10,107,104,.45);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.guest-lang-bar {
  position: fixed; top: .75rem; right: .75rem; z-index: 50;
}
.mk-header__actions .lang-switch {
  margin-right: .15rem;
  background: rgba(255,255,255,.95);
}
@media (max-width: 720px) {
  .lang-switch__select { max-width: 7.5rem; font-size: .78rem; }
}
