:root {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1c1c1f;
  --surface-2: #222226;
  --surface-3: #29292e;
  --ink: #f3f3f4;
  --muted: #b7b7bd;
  --quiet: #8c8c94;
  --line: #323238;
  --line-strong: #484850;
  --blue: #6694ff;
  --blue-light: #b9caff;
  --blue-soft: rgba(102, 148, 255, .14);
  --green: #22a68b;
  --red: #e35b5b;
  --shadow: 0 20px 55px rgba(0, 0, 0, .3);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(102, 148, 255, .14), transparent 32rem),
    radial-gradient(circle at 88% 2%, rgba(34, 166, 139, .07), transparent 24rem),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { min-width: 0; max-width: 100%; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shared header and hamburger menu */
.site-header, main, footer {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}
.staff-header, .staff-main {
  width: min(1680px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header, .staff-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.logo-link { display: inline-flex; min-width: 0; align-items: center; text-decoration: none; }
.logo-link img { display: block; width: auto; height: 58px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.plain-link { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.menu { position: relative; flex: 0 0 auto; }
.menu summary {
  list-style: none;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu summary:focus-visible { border-color: var(--blue); outline: none; }
.burger { position: relative; display: block; width: 21px; height: 15px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 99px; background: var(--ink); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu-panel {
  position: absolute;
  top: 58px;
  right: 0;
  z-index: 100;
  width: min(270px, calc(100vw - 32px));
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(30,30,34,.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.menu-panel a, .menu-panel button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  padding: 11px 13px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: rgba(102,148,255,.1); }
.menu-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.menu-panel form button { color: #f2abab; }
.menu-facility { display: block; padding: 8px 13px 10px; overflow: hidden; color: var(--quiet); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.menu-link-with-badge { justify-content: space-between; gap: 12px; }
.menu-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(30,30,34,.98);
}
.menu-badge-red { background: var(--red); }
.menu-badge-blue { background: var(--blue); }

/* Type and controls */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin-bottom: 14px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.03; letter-spacing: -.035em; }
h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 2.5vw, 1.65rem); line-height: 1.16; letter-spacing: -.02em; }
h3 { margin-bottom: 9px; font-size: 1.05rem; }
p { color: var(--muted); line-height: 1.58; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-with-help { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-with-help .help-trigger { width: 24px; height: 24px; font-size: .78rem; letter-spacing: 0; transform: translateY(-1px); }
.lead, .account-lead { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.58; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(102,148,255,.55);
  border-radius: 8px;
  color: #e3ebff;
  background: var(--blue-soft);
  text-align: center;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.2;
  cursor: pointer;
}
.button:hover, .button:focus-visible { border-color: var(--blue); background: rgba(102,148,255,.22); outline: none; }
.button-secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface-3); }
.button-small { min-height: 40px; padding: 8px 13px; font-size: .86rem; }
.danger-button { border-color: rgba(227,91,91,.55); color: #ffc3c3; background: rgba(227,91,91,.1); }
.plain-button { min-height: 44px; padding: 8px; border: 0; color: var(--blue-light); background: none; font-weight: 700; cursor: pointer; }
.field-help { margin: 0; color: var(--quiet); font-size: .8rem; line-height: 1.45; }

/* Public pages */
.hero { padding: clamp(62px, 9vw, 108px) 0 clamp(58px, 8vw, 92px); }
.hero-compact { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: 24px; align-items: center; padding: 58px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-panel, .feature-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014)), var(--surface);
}
.hero-panel { padding: 22px; }
.panel-label { margin: 0 0 10px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; color: var(--muted); list-style: none; }
.check-list li { position: relative; padding-left: 18px; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; top: .55em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.secure-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.feature-section { padding: 42px 0 70px; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.product-feature-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.product-feature-grid .feature-card { min-height: 185px; }
.feature-card { position: relative; min-height: 210px; padding: 19px; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--blue); }
.feature-card.accent-green::before { background: var(--green); }
.feature-card.accent-red::before { background: var(--red); }
.feature-grid-simple .feature-card { min-height: 160px; }
.card-number { margin: 0 0 34px; color: var(--quiet); font: 700 .72rem ui-monospace,monospace; }
.feature-card p:last-child { margin-bottom: 0; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .84rem; }

/* Public product story */
.public-nav { display: flex; align-items: center; gap: 20px; }
.public-nav > a:not(.button) { color: var(--muted); font-size: .84rem; font-weight: 720; text-decoration: none; }
.public-nav > a:hover { color: var(--ink); }
.landing-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: clamp(28px,6vw,76px); align-items: center; padding: clamp(52px,8vw,96px) 0; }
.hero-brand-logo { display: block; width: min(100%,620px); max-height: 440px; object-fit: contain; object-position: left center; margin: -17px 0 -15px; }
.hero-tagline { max-width: 620px; margin: 0; color: var(--ink); font-size: clamp(1.18rem,2.2vw,1.55rem); font-weight: 780; line-height: 1.25; letter-spacing: -.02em; }
.landing-hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.landing-hero-art::before { content: ""; position: absolute; inset: 12% 4%; z-index: -1; border-radius: 50%; background: rgba(102,148,255,.11); filter: blur(38px); }
.landing-hero-art img { display: block; width: min(100%,560px); }
.landing-hero-art > div { width: min(94%,440px); margin-top: -38px; padding: 15px 17px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(28,28,31,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.landing-hero-art strong, .landing-hero-art span { display: block; }
.landing-hero-art span { margin-top: 4px; color: var(--quiet); font-size: .76rem; line-height: 1.45; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 25px 0 0; padding: 0; color: var(--quiet); font-size: .75rem; list-style: none; }
.hero-proof li { position: relative; padding-left: 14px; }
.hero-proof li::before { content: ""; position: absolute; top: .48em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.audience-section, .operations-story, .facility-interest { padding: clamp(62px,8vw,92px) 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.landing-section-heading { max-width: 790px; margin-bottom: 32px; }
.landing-section-heading > p:last-child { margin-bottom: 0; }
.journey-grid { display: grid; gap: 13px; }
.journey-grid-six { grid-template-columns: repeat(3,minmax(0,1fr)); }
.journey-step { position: relative; min-width: 0; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(160deg,rgba(255,255,255,.035),transparent 58%),var(--surface); }
.journey-step img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; margin: 3px 0 8px; }
.journey-step h3 { margin-bottom: 6px; }
.journey-step p { margin: 0; color: var(--quiet); font-size: .8rem; line-height: 1.5; }
.journey-number { position: absolute; top: 13px; left: 14px; z-index: 1; color: var(--blue-light); font: 800 .68rem ui-monospace,monospace; letter-spacing: .07em; }
.onboarding-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.onboarding-strip article { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg,rgba(102,148,255,.08),rgba(34,166,139,.035)); }
.onboarding-strip span { display: block; margin-bottom: 5px; color: var(--ink); font-size: .78rem; font-weight: 820; }
.onboarding-strip p { margin: 0; color: var(--quiet); font-size: .76rem; line-height: 1.45; }
.audience-section-customer { position: relative; }
.audience-section-customer::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: rgba(255,255,255,.012); }
.customer-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.customer-flow article { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.customer-flow img { display: block; width: 100%; aspect-ratio: 1.18; object-fit: contain; background: radial-gradient(circle,rgba(102,148,255,.08),transparent 66%); }
.customer-flow article > div { position: relative; padding: 16px; border-top: 1px solid var(--line); }
.customer-flow article span { position: absolute; top: 17px; right: 16px; color: var(--blue); font: 800 .7rem ui-monospace,monospace; }
.customer-flow h3 { padding-right: 25px; margin-bottom: 6px; }
.customer-flow p { margin: 0; color: var(--quiet); font-size: .78rem; line-height: 1.5; }
.customer-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.operations-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.operations-grid article { min-width: 0; padding: 16px; border-left: 2px solid var(--line-strong); }
.operations-grid img { width: 100%; aspect-ratio: 1.35; object-fit: contain; }
.operations-grid p { margin: 0; color: var(--quiet); font-size: .78rem; line-height: 1.5; }
.facility-interest { padding-bottom: clamp(70px,9vw,110px); }
.interest-layout { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(480px,1.25fr); gap: clamp(26px,6vw,72px); align-items: start; }
.interest-copy { position: sticky; top: 24px; }
.interest-copy > img { display: block; width: min(100%,360px); margin: 4px auto 2px; }
.interest-assurance { padding: 13px 15px; border-left: 2px solid var(--green); background: rgba(34,166,139,.06); font-size: .8rem; }
.interest-form-card { min-width: 0; padding: clamp(20px,4vw,30px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.facility-interest-form { display: grid; gap: 19px; }
.interest-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.interest-form-grid > div { min-width: 0; }
.facility-interest-form label, .interest-checkboxes legend { display: block; margin-bottom: 7px; color: #d8d8dc; font-size: .8rem; font-weight: 740; }
.facility-interest-form input:not([type="checkbox"]), .facility-interest-form select, .facility-interest-form textarea { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: var(--ink); background: var(--surface-2); font-size: 16px; }
.facility-interest-form textarea { min-height: 104px; resize: vertical; }
.facility-interest-form input:focus, .facility-interest-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.interest-checkboxes { min-width: 0; margin: 0; padding: 0; border: 0; }
.interest-checkboxes ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.interest-checkboxes label { display: flex; min-height: 39px; align-items: center; gap: 8px; margin: 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.interest-checkboxes input { width: 17px; height: 17px; accent-color: var(--blue); }
.facility-interest-form .errorlist { margin: 0 0 6px; padding: 0; color: #ffadad; font-size: .76rem; list-style: none; }
.facility-interest-form .button { justify-self: start; }
.form-privacy { margin: -7px 0 0; color: var(--quiet); font-size: .7rem; }
.platform-interest-list { border-top: 1px solid var(--line); }
.platform-interest-row { display: grid; grid-template-columns: minmax(190px,1.1fr) minmax(210px,1fr) minmax(110px,.45fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .76rem; }
.platform-interest-row:first-child { border-top: 0; }
.platform-interest-row > div { display: grid; min-width: 0; gap: 4px; }
.platform-interest-row span { color: var(--quiet); overflow-wrap: anywhere; }
.platform-interest-row a { color: var(--blue-light); text-decoration: none; }

/* Account and customer portal */
.account-shell { display: grid; place-items: start center; padding: 40px 0 70px; }
.account-card {
  width: min(100%, 590px);
  padding: clamp(22px,4vw,34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.01)),var(--surface);
  box-shadow: var(--shadow);
}
.account-shell.wide .account-card { width: min(100%, 1080px); }
.account-title, .portal-title { max-width: 800px; margin: 0; font-size: clamp(1.65rem,4vw,2.45rem); line-height: 1.08; letter-spacing: -.03em; }
.account-card > .portal-heading + .summary-strip { margin-top: 24px; }
.account-card > .summary-strip + .dashboard-grid { margin-top: 18px; }
.account-form { display: grid; gap: 8px; margin-top: 24px; }
.account-form > div { min-width: 0; }
.account-form > div:not(.checkbox-field) { display: grid; gap: 6px; margin-top: 8px; }
.account-form > div:not(.checkbox-field) > label { margin: 0; }
.account-form label, .decision-form label { margin-top: 8px; color: #d8d8dc; font-size: .84rem; font-weight: 720; }
.account-form input, .account-form select, .account-form textarea, .decision-form textarea, .search-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 16px;
}
.account-form textarea, .decision-form textarea { min-height: 120px; resize: vertical; }
.account-form input[type="datetime-local"], .account-form input[type="date"] { display: block; width: 100%; max-width: 100%; min-width: 0; min-inline-size: 0; -webkit-appearance: none; appearance: none; line-height: 1.2; color-scheme: dark; }
.account-form input[type="datetime-local"]::-webkit-date-and-time-value, .account-form input[type="date"]::-webkit-date-and-time-value { min-width: 0; min-height: 1.2em; text-align: left; }
.account-form input[type="datetime-local"]::-webkit-calendar-picker-indicator, .account-form input[type="date"]::-webkit-calendar-picker-indicator { flex: 0 0 auto; max-width: 22px; margin-left: 6px; opacity: .72; filter: invert(.78); }
.account-form input:focus, .account-form select:focus, .account-form textarea:focus, .decision-form textarea:focus, .search-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(102,148,255,.13); }
.account-form .checkbox-field { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: center; padding: 7px 0; }
.account-form .checkbox-field label { grid-column: 2; grid-row: 1; margin: 0; }
.account-form .checkbox-field input[type="checkbox"] { grid-column: 1; grid-row: 1; width: 20px; min-height: 20px; accent-color: var(--blue); }
.account-form .checkbox-field .field-help { grid-column: 1 / -1; margin-left: 32px; }
.account-submit { width: 100%; margin-top: 14px; }
.account-links { display: grid; gap: 10px; margin-top: 22px; color: var(--quiet); font-size: .86rem; }
.account-links a, .panel-heading a, .row-actions a { color: var(--blue-light); font-weight: 700; text-decoration: none; }
.errorlist { margin: 0; padding: 0; color: #ffaaa9; font-size: .82rem; list-style: none; }
.form-alert { padding: 12px 14px; border: 1px solid rgba(227,91,91,.42); border-radius: 9px; color: #ffc2c2; background: rgba(227,91,91,.1); }
.cf-turnstile { max-width: 100%; margin: 8px 0; overflow: hidden; }

/* Staff and portal structure */
.staff-main { padding: 34px 0 76px; }
.staff-main:has(.lot-canvas-panel) {
  width: min(1840px, calc(100% - 28px));
}
.staff-main > * + * { margin-top: 22px; }
.portal-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-heading > div:first-child { min-width: 0; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.metric-grid, .summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.summary-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-grid > div, .metric-grid > a, .summary-strip > div {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg,rgba(102,148,255,.065),transparent 72%),var(--surface);
}
.metric-card { padding: 0 !important; overflow: hidden; }
.metric-card > a { display: grid; gap: 6px; min-height: 100%; padding: 17px 48px 17px 17px; color: inherit; text-decoration: none; }
.metric-grid > a { color: inherit; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, translate .15s ease; }
.metric-grid > a:hover, .metric-grid > a:focus-visible, .metric-card:hover, .metric-card:has(a:focus-visible) { border-color: var(--blue); background-color: var(--surface-2); outline: none; translate: 0 -1px; }
.metric-grid strong, .summary-strip strong { font-size: 1.65rem; line-height: 1; }
.metric-grid span, .summary-strip span { color: var(--quiet); font-size: .78rem; line-height: 1.35; }
.staff-grid, .dashboard-grid { display: grid; gap: 16px; }
.staff-grid, .dashboard-grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.span-two { grid-column: 1 / -1; }
.dashboard-panel, .info-panel, .decision-form {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008)),var(--surface);
}
.dashboard-panel h2, .info-panel h2 { margin-bottom: 12px; font-size: 1.08rem; letter-spacing: -.01em; }
.dashboard-panel > p:last-child, .info-panel > p:last-child { margin-bottom: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.panel-heading > h2 { min-width: 0; }
.panel-heading h2 { margin: 0; }
.help-trigger {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(102,148,255,.5);
  border-radius: 999px;
  color: var(--blue-light);
  background: rgba(102,148,255,.11);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.help-trigger:hover, .help-trigger:focus-visible { border-color: var(--blue); color: var(--ink); background: rgba(102,148,255,.22); outline: none; }
.help-trigger-large { width: 44px; height: 44px; }
.metric-help { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; }
.help-modal[hidden] { display: none; }
.help-modal { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 18px; }
.help-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(7px); }
.help-sheet {
  position: relative;
  z-index: 1;
  width: min(620px,100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(20px,4vw,30px);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--blue);
  border-radius: 16px;
  background: linear-gradient(180deg,rgba(255,255,255,.04),transparent 55%),rgba(20,20,22,.985);
  box-shadow: 0 28px 70px rgba(0,0,0,.72),0 0 34px rgba(102,148,255,.14);
}
.help-sheet h2 { margin-bottom: 10px; font-size: clamp(1.45rem,4vw,2.05rem); }
.help-sheet p { margin-bottom: 15px; }
.help-sheet ul { display: grid; gap: 9px; margin: 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.5; }
.help-sheet li::marker { color: var(--blue); }
.help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.help-close:hover, .help-close:focus-visible { border-color: var(--blue); outline: none; }
.help-modal-open { overflow: hidden; }
.request-row, .storage-card, .invitation-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.payment-history-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.payment-history-row > div:first-child { display: grid; min-width: 0; gap: 5px; }
.payment-history-row span { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.payment-history-result { display: grid; flex: 0 0 auto; justify-items: end; gap: 7px; }
.status-paid { border-color: rgba(34,166,139,.45); color: #8fd8c8 !important; background: rgba(34,166,139,.1); }
.status-refunded { border-color: rgba(242,194,125,.46); color: #f2c27d !important; background: rgba(242,194,125,.09); }
.status-failed { border-color: rgba(227,91,91,.45); color: #f5a0a0 !important; background: rgba(227,91,91,.1); }
.request-row > div:first-child, .storage-card > div:first-child, .invitation-row > div:first-child { display: grid; min-width: 0; gap: 5px; }
.request-row span, .storage-card span, .invitation-row span { color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.linked-row { color: inherit; text-decoration: none; }
.linked-row:hover strong { color: var(--blue-light); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.row-actions .danger-link { color: #f09a9a; }
.cancellation-note { color: #f2c27d !important; font-weight: 720; }
.status-badge { display: inline-flex; width: fit-content; flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.025); font-size: .7rem !important; white-space: nowrap; }
.status-approved, .status-completed { border-color: rgba(34,166,139,.45); color: #8fd8c8 !important; background: rgba(34,166,139,.1); }
.status-submitted, .status-reviewing { border-color: rgba(102,148,255,.42); color: #abc1ff !important; background: rgba(102,148,255,.1); }
.status-acknowledged { border-color: rgba(242,194,125,.46); color: #f2c27d !important; background: rgba(242,194,125,.09); }
.status-declined { border-color: rgba(227,91,91,.45); color: #f5a0a0 !important; background: rgba(227,91,91,.1); }
.empty-state { margin-bottom: 0; color: var(--quiet); }
.quick-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quick-link-grid > a { display: grid; grid-template-columns: 34px minmax(0,1fr); column-gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.012); text-decoration: none; }
.quick-link-grid > a:hover { border-color: var(--line-strong); background: rgba(102,148,255,.05); }
.quick-link-grid > a strong, .quick-link-grid > a span:last-child { grid-column: 2; }
.quick-link-grid > a span:last-child { color: var(--quiet); font-size: .82rem; line-height: 1.45; }
.quick-icon { grid-row: 1 / span 2; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: var(--blue-light); background: var(--blue-soft); }
.contact-list { display: grid; margin: 6px 0 0; }
.contact-list > div { display: grid; grid-template-columns: minmax(90px,120px) minmax(0,1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--quiet); font-size: .78rem; }
.contact-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.detail-link { color: var(--blue-light); font-weight: 720; text-decoration: none; }
.detail-link:hover { text-decoration: underline; }
.customer-items { margin-top: 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.decision-form { display: grid; gap: 10px; }
.decision-checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.decision-checkbox input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--blue); }
.decision-checkbox span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.search-form { display: flex; width: min(100%,430px); gap: 10px; }
.search-form input { flex: 1 1 auto; }
.table-panel { overflow: hidden; padding: 8px 16px; }
.data-table { min-width: 0; }
.table-row { display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(120px,.8fr) minmax(140px,1fr) minmax(90px,.6fr); gap: 16px; align-items: center; padding: 14px 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.table-header { border-top: 0; color: var(--quiet); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.table-row strong { color: var(--ink); }
.customer-directory { overflow: hidden; margin-top: 22px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.directory-tabs { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 16px; }
.directory-tabs a {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 1px 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 780;
  transition: color .15s ease, transform .15s ease;
}
.directory-tabs a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: transparent;
  transform: scaleX(.25);
  transform-origin: left center;
  transition: background-color .15s ease, transform .15s ease;
}
.directory-tabs a:hover, .directory-tabs a:focus-visible { color: var(--ink); outline: none; transform: translateY(-1px); }
.directory-tabs a:hover::after, .directory-tabs a:focus-visible::after { background: var(--line-strong); transform: scaleX(1); }
.directory-tabs a.active { color: var(--ink); }
.directory-tabs a.active::after { background: var(--blue); transform: scaleX(1); }
.directory-tabs span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
}
.directory-tabs span.tab-count-muted {
  color: var(--muted);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.customer-directory-header, .customer-directory-row { display: grid; grid-template-columns: minmax(150px,1.2fr) minmax(160px,1fr) minmax(110px,.7fr); gap: 16px; align-items: center; }
.customer-directory-header { padding: 9px 8px; color: var(--quiet); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-directory-group { border-top: 1px solid var(--line); }
.customer-directory-group:first-of-type { border-top-color: var(--line-strong); }
.customer-directory-row { min-height: 42px; padding: 8px; color: var(--muted); font-size: .83rem; }
.customer-directory-row + .customer-directory-row { padding-top: 4px; }
.customer-directory-row a { min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
.directory-customer { color: var(--ink); font-weight: 760; }
.directory-item { color: var(--blue-light); }
.directory-phone { color: #9edfd1; font-weight: 720; white-space: nowrap; }
.directory-customer:hover, .directory-item:hover, .directory-phone:hover { text-decoration: underline; }
.directory-empty { color: var(--quiet); }
.staff-access-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 18px; margin-top: 24px; align-items: start; }
.staff-invite-panel > p { color: var(--muted); line-height: 1.55; }
.staff-invite-panel .account-form { margin-top: 16px; }
.staff-member-directory { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.staff-member-header, .staff-member-row { display: grid; grid-template-columns: minmax(150px,1.15fr) minmax(155px,1fr) minmax(105px,.7fr); gap: 12px; align-items: center; padding: 12px 14px; }
.staff-member-header { color: var(--quiet); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.staff-member-row { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.staff-member-row.is-inactive { opacity: .68; }
.staff-member-row > div { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-member-row > div:first-child { display: grid; gap: 3px; }
.staff-member-row strong { color: var(--ink); overflow-wrap: anywhere; }
.staff-member-row span { overflow-wrap: anywhere; }
.staff-role-form { display: flex; min-width: 0; align-items: center; gap: 7px; }
.staff-role-form select { min-width: 0; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-2); font-size: .78rem; }
.staff-notify-form { margin-top: 4px; }
.staff-notify-form label { display: inline-flex; align-items: center; gap: 6px; color: var(--quiet); font-size: .72rem; font-weight: 700; line-height: 1.35; cursor: pointer; }
.staff-notify-form input { width: 15px; height: 15px; accent-color: var(--blue); }
.role-matrix { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.role-matrix h3 { margin: 0 0 2px; font-size: .82rem; color: var(--ink); }
.role-matrix div { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.role-matrix strong { color: var(--blue-light); font-size: .78rem; }
.role-matrix span { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.settings-stack { display: grid; gap: 22px; width: 100%; margin-top: 24px; }
.settings-stack + .settings-stack { margin-top: 22px; }
.settings-stack .dashboard-panel { width: 100%; padding: clamp(20px,3vw,28px); }
.settings-stack .account-form > div { min-width: 0; }
.settings-stack .account-form { gap: 13px; margin-top: 18px; }
.settings-stack .account-form > div:not(.checkbox-field) { gap: 8px; margin-top: 0; }
.settings-stack .account-form label { margin-top: 0; line-height: 1.35; }
.settings-stack .field-help { overflow-wrap: normal; word-break: normal; }
.settings-stack .checkbox-field { align-items: start; }
.settings-stack .checkbox-field label { padding-top: 1px; line-height: 1.45; }
.settings-stack .contact-list > div { grid-template-columns: minmax(120px,170px) minmax(0,1fr); }
.settings-stack .contact-list dd,
.settings-stack .contact-list dt { overflow-wrap: normal; word-break: normal; }
.settings-disclosure summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 18px; align-items: center; min-height: 72px; color: var(--ink); cursor: pointer; list-style-position: outside; }
.settings-summary-main { display: grid; gap: 5px; min-width: 0; padding-left: 2px; }
.settings-summary-main strong { font-size: 1.08rem; font-weight: 850; letter-spacing: -.01em; }
.settings-summary-main small { max-width: 980px; color: var(--quiet); font-size: .82rem; line-height: 1.45; font-weight: 650; }
.settings-summary-meta { justify-self: end; max-width: 360px; color: var(--blue-light); font-size: .72rem; line-height: 1.35; font-weight: 850; letter-spacing: .055em; text-align: right; text-transform: uppercase; }
.settings-disclosure[open] summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.settings-zone-space-group { display: grid; gap: 10px; margin-top: 16px; }
.settings-zone-space-group + .settings-zone-space-group { padding-top: 16px; border-top: 1px solid var(--line); }
.settings-space-summary-list { margin-bottom: 8px; }
.lot-space-summary a { color: inherit; text-decoration: none; }
.lot-space-summary a:hover { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
.mini-record-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.mini-record-list article { display: grid; min-width: 0; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-record-list strong { color: var(--ink); }
.mini-record-list span { color: var(--quiet); font-size: .8rem; line-height: 1.45; overflow-wrap: normal; word-break: normal; }
.request-table-row, .message-table-row { grid-template-columns: minmax(180px,1.1fr) minmax(140px,.85fr) minmax(150px,1fr) minmax(110px,.6fr); }
.request-table-row .status-badge, .message-table-row .status-badge { justify-self: start; }
.table-status-text { color: var(--blue-light); font-size: .78rem; font-weight: 800; }
.report-guidance { margin-top: 18px; }
.platform-heading { margin-bottom: 22px; }
.platform-guide { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg,var(--surface),var(--surface-2)); }
.platform-guide > .panel-heading { display: flex; justify-content: space-between; gap: 24px; padding: 17px 18px; }
.platform-guide > .panel-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.platform-guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); }
.platform-guide-grid article { display: flex; gap: 11px; min-width: 0; padding: 16px; border-left: 1px solid var(--line); }
.platform-guide-grid article:first-child { border-left: 0; }
.platform-guide-grid article > span { display: grid; flex: 0 0 25px; height: 25px; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue-light); font-size: .72rem; font-weight: 850; }
.platform-guide-grid h3 { margin: 2px 0 6px; color: var(--ink); font-size: .82rem; }
.platform-guide-grid p { margin: 0; color: var(--quiet); font-size: .71rem; line-height: 1.5; }
.platform-guide-note { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; line-height: 1.5; }
.platform-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.platform-metrics > div { display: grid; gap: 3px; min-width: 0; padding: 16px; border-left: 1px solid var(--line); }
.platform-metrics > div:first-child { border-left: 0; }
.platform-metrics strong { color: var(--ink); font-size: 1.55rem; line-height: 1; }
.platform-metrics span { color: var(--muted); font-size: .76rem; }
.platform-metrics small { color: var(--quiet); font-size: .66rem; line-height: 1.35; }
.staff-main:has(.platform-heading) { width: min(1360px, calc(100% - 32px)); }
.platform-actions-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.platform-email-panel { grid-row: auto; }
.platform-email-panel .account-form { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
.platform-email-panel .account-form > div:has(textarea),
.platform-email-panel .account-form > div:has(.field-help),
.platform-email-panel .account-form > button { grid-column: 1 / -1; }
.platform-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.45fr); gap: 18px; margin-top: 18px; align-items: start; }
.platform-section { overflow: hidden; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.platform-layout .platform-section { margin-top: 0; }
.platform-section > .panel-heading { padding: 15px 16px; }
.platform-section .panel-heading p, .platform-side .dashboard-panel > p { margin: 4px 0 0; color: var(--quiet); font-size: .76rem; line-height: 1.4; }
.platform-facility-header, .platform-facility-row { display: grid; grid-template-columns: minmax(180px,1.35fr) minmax(105px,.7fr) minmax(85px,.55fr) minmax(125px,.8fr) auto; gap: 12px; align-items: center; padding: 11px 16px; }
.platform-facility-header { border-top: 1px solid var(--line); color: var(--quiet); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.platform-facility-row { border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.platform-facility-row > div { display: grid; min-width: 0; gap: 3px; }
.platform-facility-row strong { color: var(--ink); overflow-wrap: anywhere; }
.platform-facility-row span { color: var(--quiet); font-size: .69rem; overflow-wrap: anywhere; }
.platform-row-actions { display: flex !important; gap: 8px !important; }
.platform-row-actions a { color: var(--blue-light); font-weight: 750; text-decoration: none; }
.platform-side { position: sticky; top: 14px; }
.platform-side { display: grid; gap: 14px; }
.platform-email-panel { min-width: 0; overflow: hidden; border-color: rgba(58,141,255,.35); }
.platform-manual-code summary { cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.3; }
.platform-manual-code summary::marker { color: var(--blue-light); }
.platform-manual-code[open] summary { margin-bottom: 14px; }
.platform-side .account-form { margin-top: 16px; }
.platform-actions-grid .account-form { margin-top: 20px; }
.platform-actions-grid > .dashboard-panel,
.platform-actions-grid > details.dashboard-panel { margin: 0; }
.platform-actions-grid .button { margin-top: 6px; }
.platform-code-list { border-top: 1px solid var(--line); }
.platform-code-row { display: grid; grid-template-columns: 120px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .78rem; }
.platform-code-row:first-child { border-top: 0; }
.platform-code-row code { color: var(--blue-light); font-size: .9rem; font-weight: 800; letter-spacing: .08em; }
.platform-code-row > div { display: grid; gap: 3px; }
.platform-code-row span { color: var(--quiet); font-size: .69rem; }
.platform-redemption-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(200px,1.3fr) minmax(150px,1fr) auto; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.platform-email-health { border-top: 1px solid var(--line); }
.platform-email-health article { display: grid; grid-template-columns: minmax(180px,.9fr) minmax(0,1.5fr) auto; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.platform-email-health article:first-child { border-top: 0; }
.platform-email-health article > div { display: grid; gap: 3px; min-width: 0; }
.platform-email-health strong { color: var(--ink); }
.platform-email-health span, .platform-email-health time { color: var(--quiet); font-size: .7rem; }
.platform-email-health p { min-width: 0; margin: 0; color: #ffc2c2; overflow-wrap: anywhere; line-height: 1.45; }
.lot-map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.lot-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lot-dimension-editor { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 6px 10px; border: 1px solid rgba(102,148,255,.24); border-radius: 999px; color: var(--muted); background: rgba(102,148,255,.075); }
.lot-dimension-editor[hidden] { display: none; }
.lot-dimension-editor > span { max-width: 150px; overflow: hidden; color: var(--blue-light); text-overflow: ellipsis; white-space: nowrap; }
.lot-dimension-editor label { display: inline-flex; align-items: center; gap: 4px; color: var(--quiet); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.lot-dimension-editor label[hidden], .lot-dimension-editor .path-length-readout[hidden] { display: none; }
.path-length-readout { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(185,202,255,.24); border-radius: 999px; color: var(--blue-light); background: rgba(8,9,11,.42); font: 850 .7rem ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.lot-dimension-editor input, .lot-dimension-editor select { width: 108px; min-height: 30px; padding: 3px 6px 3px 7px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: rgba(10,11,13,.88); font-size: 16px; }
.lot-dimension-editor input[type="text"] { width: 150px; }
.lot-dimension-editor input[type="color"] { width: 42px; min-height: 30px; padding: 2px; cursor: pointer; }
.lot-dimension-editor select { width: 94px; cursor: pointer; }
.lot-status-dot { width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; }
.lot-available, .lot-status-dot.lot-available { background: rgba(34,166,139,.11); border-color: rgba(34,166,139,.42) !important; }
.lot-status-dot.lot-available { color: rgba(34,166,139,.58); background: rgba(34,166,139,.24); }
.lot-occupied, .lot-status-dot.lot-occupied { background: rgba(102,148,255,.12); border-color: rgba(102,148,255,.45) !important; }
.lot-status-dot.lot-occupied { color: rgba(102,148,255,.62); background: rgba(102,148,255,.25); }
.lot-reserved, .lot-status-dot.lot-reserved { background: rgba(238,190,85,.11); border-color: rgba(238,190,85,.46) !important; }
.lot-status-dot.lot-reserved { color: rgba(238,190,85,.64); background: rgba(238,190,85,.24); }
.lot-unavailable, .lot-status-dot.lot-unavailable { background: rgba(227,91,91,.1); border-color: rgba(227,91,91,.42) !important; }
.lot-status-dot.lot-unavailable { color: rgba(227,91,91,.62); background: rgba(227,91,91,.23); }
.lot-status-dot.lot-perimeter { border-radius: 3px; color: rgba(243,243,244,.78); background: transparent; border-color: rgba(243,243,244,.78) !important; }
.lot-canvas-panel { margin: 18px 0; overflow: hidden; padding: clamp(16px,1.4vw,22px); }
.lot-canvas-panel > .panel-heading { align-items: flex-start; gap: 14px; }
.lot-canvas-panel .panel-heading p { margin-bottom: 0; }
.lot-canvas-heading { padding-bottom: 10px; }
.lot-canvas-heading h2 { margin-bottom: 3px; }
.lot-canvas-heading p { max-width: none; color: var(--quiet); font-size: .76rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-editor-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px 11px; }
.lot-zoom-control { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid rgba(102,148,255,.2); border-radius: 999px; color: var(--quiet); background: rgba(102,148,255,.055); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.lot-zoom-control button { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0 !important; border: 1px solid rgba(102,148,255,.32) !important; border-radius: 999px; color: var(--ink) !important; background: rgba(102,148,255,.13) !important; font-size: 1.1rem !important; line-height: 1; text-decoration: none !important; }
.lot-zoom-control button:hover { border-color: var(--blue) !important; background: rgba(102,148,255,.22) !important; }
.lot-zoom-control input[type="range"] { width: 90px; accent-color: var(--blue); }
.lot-zoom-control label { display: inline-flex; align-items: center; gap: 2px; }
.lot-zoom-control input[type="number"] { width: 58px; min-height: 30px; padding: 3px 4px 3px 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: rgba(10,11,13,.88); font-size: 16px; font-weight: 800; text-align: right; }
.lot-zoom-control span:not(.sr-only) { min-width: auto; color: var(--muted); }
.lot-editor-actions button { padding: 0; border: 0; color: var(--blue-light); background: transparent; font-size: .74rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.lot-editor-actions button:hover:not(:disabled) { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lot-editor-actions button:disabled { color: var(--quiet); cursor: default; opacity: .55; }
.lot-editor-actions .danger-link { color: #ff9c9c; }
.map-tool-menu { position: relative; }
.map-tool-menu summary { color: var(--blue-light); font-size: .74rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; }
.map-tool-menu summary::-webkit-details-marker { display: none; }
.map-tool-menu summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.map-tool-menu > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; min-width: 160px; gap: 8px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(12,13,16,.98); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.map-tool-menu > div button { text-align: left; white-space: nowrap; }
.lot-scale-frame { position: relative; padding: 36px 0 0 42px; }
.lot-canvas-scroll { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 18px 18px,rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(135deg,rgba(102,148,255,.06),rgba(34,166,139,.035)),#0d0e10; background-size: 36px 36px,auto,auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); -webkit-overflow-scrolling: touch; }
.lot-canvas-scroll.is-zoomed { width: 100%; aspect-ratio: 1 / 1; height: auto; }
.lot-canvas-scroll.is-zoomed .lot-canvas { width: max(var(--scaled-canvas-width),100%); min-width: 100%; height: max(var(--scaled-canvas-height),100%); min-height: 100%; transform: none; }
.lot-canvas { position: relative; width: 1200px; min-width: 100%; height: 1200px; touch-action: auto; }
.lot-canvas::before { content: ""; position: absolute; inset: 0; z-index: 0; display: none; pointer-events: none; background-image: linear-gradient(rgba(102,148,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(102,148,255,.18) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px); background-size: calc(100px * var(--canvas-scale,1)) calc(100px * var(--canvas-scale,1)),calc(100px * var(--canvas-scale,1)) calc(100px * var(--canvas-scale,1)),calc(20px * var(--canvas-scale,1)) calc(20px * var(--canvas-scale,1)),calc(20px * var(--canvas-scale,1)) calc(20px * var(--canvas-scale,1)); background-position: 0 0; }
.lot-canvas.is-editing::before { display: block; }
.lot-ruler-corner { position: absolute; left: 0; top: 0; z-index: 25; display: grid; width: 42px; height: 36px; place-items: center; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(8,9,11,.6); }
.lot-ruler { position: absolute; z-index: 20; overflow: hidden; pointer-events: none; color: var(--quiet); background: rgba(8,9,11,.74); backdrop-filter: blur(2px); }
.lot-ruler-top { left: 42px; top: 0; height: 36px; min-width: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.lot-ruler-left { left: 0; top: 36px; width: 42px; border-right: 1px solid rgba(255,255,255,.12); }
.lot-ruler-tick { position: absolute; display: block; }
.lot-ruler-top .lot-ruler-tick { top: 0; height: 36px; }
.lot-ruler-left .lot-ruler-tick { left: 0; width: 42px; }
.lot-ruler-tick i { position: absolute; display: block; background: rgba(243,243,244,.3); }
.lot-ruler-top .lot-ruler-tick i { left: 0; bottom: 0; width: 1px; height: 9px; }
.lot-ruler-left .lot-ruler-tick i { right: 0; top: 0; width: 9px; height: 1px; }
.lot-ruler-tick.is-major i { background: rgba(243,243,244,.58); }
.lot-ruler-top .lot-ruler-tick.is-major i { height: 16px; }
.lot-ruler-left .lot-ruler-tick.is-major i { width: 16px; }
.lot-ruler-tick b { position: absolute; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .02em; white-space: nowrap; }
.lot-ruler-top .lot-ruler-tick b { left: 3px; top: 5px; }
.lot-ruler-left .lot-ruler-tick b { right: 18px; top: -5px; transform: rotate(-90deg); transform-origin: right center; }
.lot-map-element { position: absolute; left: calc(var(--x) * var(--canvas-scale,1)); top: calc(var(--y) * var(--canvas-scale,1)); z-index: var(--layer); display: grid; width: calc(var(--w) * var(--canvas-scale,1)); height: calc(var(--h) * var(--canvas-scale,1)); min-width: calc(40px * var(--canvas-scale,1)); min-height: calc(28px * var(--canvas-scale,1)); align-content: center; gap: 3px; overflow: visible; padding: 8px; border: 1px solid color-mix(in srgb,var(--zone-color) 58%,rgba(255,255,255,.22)); border-radius: 10px; color: var(--muted); background: linear-gradient(145deg,color-mix(in srgb,var(--zone-color) 18%,transparent),rgba(255,255,255,.026)),rgba(17,18,21,.9); box-shadow: 0 12px 28px rgba(0,0,0,.24); text-decoration: none; transform: rotate(var(--rot)); transform-origin: center; user-select: none; transition: border-color .14s ease,box-shadow .14s ease; }
a.lot-map-element:hover { border-color: var(--blue-light); box-shadow: 0 15px 32px rgba(0,0,0,.32),0 0 0 1px rgba(102,148,255,.18); }
.map-label-content { display: grid; align-content: center; gap: 3px; min-width: 0; overflow: hidden; transform: rotate(var(--unrot)); }
.lot-map-element strong { color: var(--ink); font-size: .8rem; line-height: 1.05; overflow-wrap: anywhere; }
.lot-map-element span { color: var(--muted); font-size: .72rem; line-height: 1.18; overflow-wrap: anywhere; }
.lot-map-element small { color: var(--quiet); font-size: .65rem; line-height: 1.18; overflow-wrap: anywhere; }
.map-space { padding: 5px; place-items: center; text-align: center; border-radius: 8px; }
.map-space.lot-available { background: rgba(34,166,139,.2); border-color: rgba(34,166,139,.68) !important; }
.map-space.lot-occupied { background: rgba(102,148,255,.22); border-color: rgba(102,148,255,.72) !important; }
.map-space.lot-reserved { background: rgba(238,190,85,.22); border-color: rgba(238,190,85,.72) !important; }
.map-space.lot-unavailable { background: rgba(227,91,91,.2); border-color: rgba(227,91,91,.68) !important; }
.map-space strong { font-size: .72rem; letter-spacing: .02em; }
.map-space .map-label-content > span, .map-space .map-label-content > small { display: none; }
a.map-space { place-items: center; align-content: center; padding: 5px; text-align: center; }
a.map-space strong { font-size: .72rem; }
.map-zone { border-color: color-mix(in srgb,var(--zone-color) 62%,rgba(255,255,255,.18)); border-style: solid; background: linear-gradient(145deg,color-mix(in srgb,var(--zone-color) 12%,transparent),rgba(255,255,255,.018)),rgba(14,15,18,.32); }
.map-zone::before, .map-open_area::before, .map-aisle::before, .map-perimeter::before { content: attr(data-label); position: absolute; left: 2px; bottom: calc(100% + 6px); max-width: min(320px,100%); padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,.75); transform: rotate(var(--unrot)); transform-origin: left bottom; }
.map-zone > .map-label-content, .map-open_area > .map-label-content, .map-aisle > .map-label-content, .map-perimeter > .map-label-content { opacity: 0; pointer-events: none; }
.map-open_area { border-color: rgba(34,166,139,.72); border-style: dashed; background: linear-gradient(145deg,rgba(34,166,139,.22),rgba(34,166,139,.06)),rgba(14,15,18,.76); }
.map-aisle { border-color: rgba(255,255,255,.42); border-style: dashed; background: repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0 9px,rgba(255,255,255,.026) 9px 18px),rgba(9,10,12,.74); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.map-perimeter { border-color: color-mix(in srgb,var(--zone-color) 72%,rgba(255,255,255,.42)); border-style: solid; border-width: 2px; background: transparent; box-shadow: none; }
.map-perimeter { pointer-events: none; }
.map-perimeter .perimeter-hit-edge, .map-perimeter .resize-handle { pointer-events: auto; }
.perimeter-hit-edge { position: absolute; z-index: 2; display: block; }
.perimeter-hit-edge.edge-top { left: -6px; right: -6px; top: -8px; height: 16px; cursor: grab; }
.perimeter-hit-edge.edge-right { top: -6px; right: -8px; bottom: -6px; width: 16px; cursor: grab; }
.perimeter-hit-edge.edge-bottom { left: -6px; right: -6px; bottom: -8px; height: 16px; cursor: grab; }
.perimeter-hit-edge.edge-left { top: -6px; left: -8px; bottom: -6px; width: 16px; cursor: grab; }
.map-label { border-style: dotted; background: rgba(255,255,255,.045); box-shadow: none; }
.map-label strong { color: var(--blue-light); }
.map-path { padding: 0; border-color: transparent !important; color: var(--zone-color); background: transparent; box-shadow: none; }
.map-path::before { content: attr(data-label); position: absolute; left: 2px; bottom: calc(100% + 6px); max-width: min(320px,100%); color: var(--ink); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,.75); transform: rotate(var(--unrot)); transform-origin: left bottom; }
.map-path > .map-label-content { opacity: 0; pointer-events: none; }
.map-path-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); pointer-events: none; }
.lot-canvas.is-penning { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25'%3E%3Cpath d='M12.5 1v8.5M12.5 15.5V24M1 12.5h8.5M15.5 12.5H24' stroke='%23b9caff' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='12.5' cy='12.5' r='1.2' fill='%23b9caff'/%3E%3C/svg%3E") 12 12, crosshair; }
.map-pen-draft { position: absolute; left: 0; top: 0; z-index: 240; color: #8b5a2b; pointer-events: none; filter: drop-shadow(0 0 8px rgba(139,90,43,.55)); }
.map-pen-draft polyline { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 6; }
.map-pen-draft circle { fill: #f3f3f4; stroke: currentColor; stroke-width: 2; }
.map-pen-measure { position: absolute; z-index: 260; min-width: 188px; padding: 6px 9px; border: 1px solid rgba(185,202,255,.42); border-radius: 8px; color: var(--ink); background: rgba(8,9,11,.92); box-shadow: 0 8px 24px rgba(0,0,0,.4); font: 850 13px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .01em; white-space: nowrap; pointer-events: none; }
.lot-canvas.is-editing .lot-map-element { cursor: grab; outline: 1px dashed rgba(243,243,244,.26); touch-action: none; }
.lot-canvas.is-editing a.lot-map-element { pointer-events: auto; }
.lot-canvas.is-editing .lot-map-element:active { cursor: grabbing; }
.lot-canvas.is-editing .lot-map-element:hover { border-color: rgba(243,243,244,.62); }
.lot-canvas.is-editing .lot-map-element.is-selected { outline: 2px solid var(--blue-light); box-shadow: 0 0 0 4px rgba(102,148,255,.18),0 15px 34px rgba(0,0,0,.34); }
.lot-map-element.is-reference-pulse { animation: mapReferencePulse 1.25s ease-out; }
@keyframes mapReferencePulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,.24); }
  35% { box-shadow: 0 0 0 5px rgba(102,148,255,.3),0 0 34px rgba(102,148,255,.38),0 15px 34px rgba(0,0,0,.34); }
}
.map-marquee-select { position: fixed; z-index: 500; border: 1px solid rgba(185,202,255,.9); background: rgba(102,148,255,.18); box-shadow: 0 0 0 1px rgba(102,148,255,.16), inset 0 0 18px rgba(102,148,255,.16); pointer-events: none; }
.resize-handle { position: absolute; right: 5px; bottom: 5px; display: none; width: 16px; height: 16px; border-right: 2px solid var(--blue-light); border-bottom: 2px solid var(--blue-light); cursor: nwse-resize; opacity: .88; }
.lot-canvas.is-editing .resize-handle { display: block; }
.lot-canvas.is-editing .map-path .resize-handle { display: none; }
.lot-canvas-empty { position: absolute; inset: 24px; display: grid; place-items: center; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--quiet); text-align: center; background: rgba(255,255,255,.025); }
.fullscreen-map-body { min-height: 100dvh; margin: 0; overflow: hidden; background: #090a0c; color: var(--ink); }
.fullscreen-map-toolbar { position: fixed; inset: 0 0 auto 0; z-index: 80; display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px clamp(10px,2vw,20px); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(9,10,12,.82); box-shadow: 0 12px 34px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
.fullscreen-map-toolbar div { display: grid; gap: 2px; min-width: 0; text-align: center; }
.fullscreen-map-toolbar strong { color: var(--ink); font-size: clamp(.88rem,2.6vw,1.06rem); line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-map-toolbar span { color: var(--quiet); font-size: clamp(.62rem,1.7vw,.75rem); font-weight: 750; letter-spacing: .02em; }
.fullscreen-map-toolbar a, .fullscreen-map-toolbar button { min-height: 36px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.055); font-size: .72rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.fullscreen-map-toolbar a:hover, .fullscreen-map-toolbar button:hover { border-color: var(--blue-light); background: rgba(102,148,255,.16); }
.fullscreen-map-shell { position: fixed; inset: 58px 0 0; display: block; padding: 0; background: radial-gradient(circle at 50% 0,rgba(102,148,255,.12),transparent 40%),#090a0c; }
.fullscreen-map-stage.lot-canvas-scroll { position: fixed; inset: 58px 0 0 0; display: grid; width: 100vw !important; max-width: none; height: calc(100dvh - 58px) !important; max-height: none; aspect-ratio: auto !important; place-items: start; align-content: start; justify-content: start; border-right: 0; border-left: 0; border-radius: 0; overscroll-behavior: contain; touch-action: none; cursor: grab; }
.fullscreen-map-stage.is-panning { cursor: grabbing; }
.fullscreen-lot-canvas { flex: none; min-width: 0; overflow: visible; border-radius: 14px; }
.fullscreen-lot-canvas .lot-map-element { cursor: default; }
.fullscreen-lot-canvas a.lot-map-element { cursor: pointer; }
.fullscreen-lot-canvas .map-perimeter { pointer-events: none; }
@media (max-width: 620px) {
  .fullscreen-map-toolbar { gap: 8px; min-height: 54px; padding: 8px; }
  .fullscreen-map-toolbar span { display: none; }
  .fullscreen-map-toolbar a, .fullscreen-map-toolbar button { min-height: 34px; padding: 7px 9px; font-size: .66rem; }
  .fullscreen-map-shell { inset: 54px 0 0; padding: 0; }
  .fullscreen-map-stage.lot-canvas-scroll { inset: 54px 0 0 0; height: calc(100dvh - 54px) !important; }
}
.lot-space-menu[hidden] { display: none; }
.lot-space-menu { position: fixed; z-index: 260; display: grid; width: min(300px,calc(100vw - 20px)); gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-top: 2px solid var(--blue); border-radius: 12px; background: rgba(16,17,20,.98); box-shadow: 0 24px 60px rgba(0,0,0,.62),0 0 26px rgba(102,148,255,.13); }
.lot-space-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lot-space-menu-heading strong { color: var(--ink); }
.lot-space-menu-heading button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; }
.lot-space-menu-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.lot-space-menu button[type="submit"] { min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-2); font-size: .72rem; font-weight: 800; }
.lot-space-menu button[type="submit"]:hover { border-color: var(--blue); background: var(--blue-soft); }
.lot-space-menu label { display: grid; gap: 5px; color: var(--quiet); font-size: .68rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.lot-space-menu select, .lot-space-menu input { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-2); font-size: 16px; text-transform: none; letter-spacing: 0; }
.lot-build-modal[hidden] { display: none; }
.lot-build-modal { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 16px; }
.lot-build-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.lot-build-sheet { position: relative; z-index: 1; display: grid; width: min(760px,100%); max-height: calc(100dvh - 32px); gap: 12px; overflow: auto; padding: clamp(16px,3vw,22px); border: 1px solid var(--line-strong); border-top: 2px solid var(--blue); border-radius: 15px; background: linear-gradient(180deg,rgba(255,255,255,.035),transparent),rgba(18,19,22,.98); box-shadow: 0 28px 70px rgba(0,0,0,.68); }
.lot-build-sheet h2 { margin: 0 0 2px; }
.lot-build-sheet details { border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.lot-build-sheet summary { padding: 12px 14px; color: var(--ink); font-weight: 850; cursor: pointer; }
.lot-build-sheet details > p, .lot-build-sheet details > form { margin: 0; padding: 0 14px 14px; }
.lot-map-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; align-items: start; width: 100%; }
.lot-map-board, .lot-map-tools { display: grid; gap: 18px; min-width: 0; }
.lot-map-tools { position: sticky; top: 14px; }
.lot-zone { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--zone-color) 42%, var(--line)); border-radius: 15px; background: linear-gradient(135deg,color-mix(in srgb,var(--zone-color) 13%, transparent),transparent 45%),var(--surface); box-shadow: var(--shadow); }
.lot-zone-heading { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.lot-zone-heading h2 { margin: 7px 0 4px; }
.lot-zone-heading p { margin: 0; color: var(--quiet); font-size: .78rem; line-height: 1.45; }
.zone-chip { display: inline-flex; width: fit-content; padding: 4px 8px; border: 1px solid color-mix(in srgb,var(--zone-color) 70%, var(--line)); border-radius: 999px; color: var(--blue-light); background: color-mix(in srgb,var(--zone-color) 16%, transparent); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lot-zone-heading dl { display: flex; gap: 8px; margin: 0; }
.lot-zone-heading dl div { min-width: 58px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-align: center; background: rgba(255,255,255,.025); }
.lot-zone-heading dt { color: var(--quiet); font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lot-zone-heading dd { margin: 2px 0 0; color: var(--ink); font-weight: 850; }
.lot-zone-snapshot { display: grid; gap: 12px; padding: 14px 16px 16px; }
.lot-zone-summary-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.lot-zone-summary-strip span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font-size: .72rem; font-weight: 760; }
.lot-space-summary-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 8px; }
.lot-space-summary { display: grid; min-width: 0; gap: 3px; padding: 10px 11px; border: 1px solid var(--line); border-left: 3px solid var(--zone-color); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.02); text-decoration: none; cursor: pointer; }
.lot-space-summary.lot-available { border-left-color: var(--green); }
.lot-space-summary.lot-occupied { border-left-color: var(--blue); }
.lot-space-summary.lot-reserved { border-left-color: #eebe55; }
.lot-space-summary.lot-unavailable { border-left-color: var(--red); }
.lot-space-summary:hover { border-color: rgba(102,148,255,.38); background: rgba(102,148,255,.075); transform: translateY(-1px); }
.lot-space-summary strong { color: var(--ink); font-size: .86rem; overflow-wrap: anywhere; }
.lot-space-summary span { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.lot-space-summary small { color: var(--quiet); font-size: .68rem; line-height: 1.35; overflow-wrap: anywhere; }
.lot-zone-map { display: grid; gap: 12px; padding: 16px; }
.lot-space-row { display: grid; gap: 8px; }
.lot-row-label { color: var(--quiet); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.lot-space-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(104px,1fr)); gap: 8px; }
.lot-layout-grid .lot-space-grid { grid-template-columns: repeat(auto-fit,minmax(92px,1fr)); }
.lot-space { display: grid; min-height: 82px; align-content: center; gap: 4px; min-width: 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
a.lot-space:hover { transform: translateY(-1px); border-color: var(--blue-light) !important; }
.lot-space strong { color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.lot-space span { color: var(--muted); font-size: .73rem; line-height: 1.25; overflow-wrap: anywhere; }
.lot-space small { color: var(--quiet); font-size: .66rem; line-height: 1.25; overflow-wrap: anywhere; }
.lot-aisle { display: grid; min-height: 34px; place-items: center; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--quiet); background: rgba(255,255,255,.025); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lot-open-zone { display: grid; gap: 4px; margin: 16px; padding: 18px; border: 1px dashed color-mix(in srgb,var(--zone-color) 60%, var(--line)); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.02); }
.lot-open-zone strong { color: var(--ink); }
.lot-open-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lot-open-list a { display: grid; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.lot-open-list a:hover { background: rgba(102,148,255,.08); }
.lot-open-list strong { color: var(--ink); }
.lot-open-list span { color: var(--quiet); font-size: .76rem; line-height: 1.4; }
.facility-list, .report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.report-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.facility-card { display: grid; gap: 7px; min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-decoration: none; }
.facility-card span { color: var(--muted); line-height: 1.45; }
.report-export-card { border-color: rgba(86,196,168,.38); background: linear-gradient(145deg,rgba(86,196,168,.08),rgba(255,255,255,.01)),var(--surface); }
.facility-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.facility-switcher a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); text-decoration: none; font-size: .82rem; }
.facility-switcher a.active { border-color: var(--blue); color: var(--ink); background: var(--blue-soft); }
.facility-connections, .invitation-panel, .form-panel { margin-top: 22px; }
.facility-payment-setup { margin-top: 22px; }
.facility-payment-setup > p { max-width: 860px; }
.stripe-preflight, .stripe-guide-card { margin: 18px 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.stripe-onboarding-guide { display: grid; gap: 12px; margin: 18px 0; }
.stripe-onboarding-guide .stripe-guide-card { margin: 0; }
.stripe-preflight h3, .stripe-guide-card h3 { margin-bottom: 8px; font-size: .9rem; }
.stripe-preflight ul, .stripe-guide-card ul, .stripe-guide-card ol { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.success-alert { border-color: rgba(86,196,168,.38); color: #b8eadf; background: rgba(86,196,168,.08); }
.info-alert { border-color: rgba(102,148,255,.42); color: var(--blue-light); background: var(--blue-soft); }
.billing-portal-action { margin-top: 16px; }
.billing-portal-wrap { display: grid; gap: 9px; margin-top: 16px; }
.billing-portal-wrap .billing-portal-action { margin-top: 0; }
.billing-portal-help { margin: 0; color: var(--quiet); font-size: .79rem; line-height: 1.5; }
.narrow-panel { width: min(100%,720px); margin-inline: auto; }
.facility-connection { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.message-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.message-copy, .message-response { color: var(--muted); line-height: 1.6; }
.message-response b { color: var(--blue-light); }
.unread-row { border-color: rgba(102,148,255,.45) !important; background: rgba(102,148,255,.06); }
.inline-new-badge { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--red); font-size: .62rem; font-weight: 850; vertical-align: middle; }

/* Item intake and photo details */
.compact-page-heading { max-width: 720px; }
.intake-form { display: grid; gap: 18px; margin-top: 24px; }
.form-section { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 5px 14px; }
.form-section > .form-grid, .form-section > .photo-input-wrap { grid-column: 2; }
.form-section > div:nth-child(2) p { margin: 0 0 15px; }
.section-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(102,148,255,.45); border-radius: 9px; color: var(--blue-light); background: var(--blue-soft); font-size: .8rem; font-weight: 800; }
.form-grid { display: grid; gap: 15px; }
.form-grid > div { min-width: 0; }
.form-grid.two-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.three-col { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-grid .field-wide { grid-column: 1 / -1; }
.form-grid label, .photo-input-list label { display: block; margin-bottom: 6px; color: #d8d8dc; font-size: .83rem; font-weight: 720; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: var(--ink); background: var(--surface-2); font-size: 16px; }
.form-grid input[type="date"] { display: block; width: 100%; max-width: 100%; min-width: 0; min-inline-size: 0; -webkit-appearance: none; appearance: none; line-height: 1.2; color-scheme: dark; }
.form-grid input[type="date"]::-webkit-date-and-time-value { min-height: 1.2em; text-align: left; }
.form-grid input[type="date"]::-webkit-calendar-picker-indicator { flex: 0 0 auto; max-width: 22px; margin-left: 6px; opacity: .72; filter: invert(.78); }
.form-grid textarea { min-height: 96px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(102,148,255,.13); }
.photo-input-wrap { display: grid; gap: 14px; }
.photo-input-wrap input[type="file"] { display: block; width: 100%; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: var(--ink); background: rgba(0,0,0,.22); font-size: 16px; }
.photo-input-wrap input[type="file"]::file-selector-button { margin-right: 10px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-3); font-weight: 750; }
.primary-photo-field > label { display: block; margin-bottom: 6px; color: #d8d8dc; font-size: .83rem; font-weight: 720; }
input[data-camera-photos="true"] { position: absolute; width: 1px; height: 1px; padding: 0; opacity: .01; pointer-events: none; }
.multi-photo-capture { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8,9,11,.34); }
.capture-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.capture-summary > div { display: grid; gap: 3px; }
.capture-summary strong { color: var(--ink); }
.capture-summary small { color: var(--quiet); line-height: 1.4; }
.capture-preview-strip { display: grid; grid-auto-columns: 132px; grid-auto-flow: column; gap: 9px; overflow-x: auto; padding: 2px 1px 7px; scroll-snap-type: x proximity; }
.capture-preview-strip[hidden] { display: none; }
.capture-preview-item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); border-radius: 9px; background: #09090a; scroll-snap-align: start; }
.capture-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.capture-preview-item span { position: absolute; right: 5px; bottom: 5px; left: 5px; padding: 3px 6px; border-radius: 5px; color: #fff; background: rgba(0,0,0,.7); font-size: .64rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.capture-preview-item button { position: absolute; top: 5px; right: 5px; display: grid; width: 27px; height: 27px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(0,0,0,.72); font-size: 1.1rem; line-height: 1; }
.camera-open { overflow: hidden; }
.camera-modal[hidden] { display: none; }
.camera-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.camera-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.camera-sheet { position: relative; z-index: 1; display: grid; width: min(820px,100%); max-height: calc(100dvh - 36px); gap: 14px; overflow: auto; padding: clamp(16px,3vw,24px); border: 1px solid var(--line-strong); border-top: 2px solid var(--blue); border-radius: 16px; background: linear-gradient(180deg,rgba(255,255,255,.035),transparent),rgba(20,20,22,.98); box-shadow: 0 28px 70px rgba(0,0,0,.72),0 0 34px rgba(102,148,255,.15); }
.camera-copy h2 { margin: 3px 0 6px; font-size: clamp(1.45rem,4vw,2.25rem); }
.camera-copy p:last-child, .camera-tip { margin: 0; color: var(--muted); }
.camera-stage { position: relative; display: grid; width: min(680px,100%); aspect-ratio: 4 / 3; justify-self: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #050607; }
.camera-video { width: 100%; height: 100%; object-fit: cover; }
.camera-frame { position: absolute; inset: 6%; border: 2px solid rgba(243,243,244,.94); box-shadow: 0 0 0 999px rgba(0,0,0,.2),inset 0 0 0 1px rgba(102,148,255,.75),0 0 24px rgba(102,148,255,.25); pointer-events: none; }
.camera-frame::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(243,243,244,.42); }
.camera-frame-label { position: absolute; left: 50%; translate: -50% 0; padding: 4px 8px; color: var(--ink); background: rgba(8,9,11,.82); font-size: .66rem; font-weight: 850; letter-spacing: .04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.camera-frame-label-top { top: -13px; }
.camera-frame-label-bottom { bottom: -13px; }
.camera-tip { padding: 10px 12px; border-left: 2px solid var(--blue); background: var(--blue-soft); }
.camera-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.photo-input-list { display: grid; gap: 14px; }
.photo-input-list > div { min-width: 0; }
.photo-preview, .asset-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.photo-preview:empty { display: none; }
.photo-preview > div { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #09090a; }
.photo-preview img, .asset-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview span { position: absolute; right: 5px; bottom: 5px; left: 5px; padding: 4px 6px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.72); font-size: .68rem; text-align: center; }
.intake-submit { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.asset-command-card { display: grid; grid-template-columns: minmax(180px,.55fr) minmax(0,1fr) auto; gap: 14px; align-items: center; margin: 18px 0; padding: clamp(14px,2.5vw,20px); border: 1px solid rgba(102,148,255,.28); border-radius: 16px; background: linear-gradient(135deg,rgba(102,148,255,.12),rgba(34,166,139,.055)),var(--surface); box-shadow: var(--shadow); }
.asset-command-code { display: grid; gap: 5px; min-width: 0; }
.asset-command-code span { color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.asset-command-code strong { color: var(--ink); font: 850 clamp(1.9rem,5.5vw,3.05rem)/.95 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .12em; }
.asset-command-code small { color: var(--quiet); font-size: .76rem; line-height: 1.35; }
.asset-command-facts { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.status-pill { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(102,148,255,.34); border-radius: 999px; color: var(--blue-light); background: rgba(102,148,255,.1); font-size: .72rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.status-stored, .status-location { border-color: rgba(86,196,168,.38); color: #b8eadf; background: rgba(86,196,168,.1); }
.status-pending, .status-hold { border-color: rgba(238,190,85,.42); color: #ffe1a0; background: rgba(238,190,85,.1); }
.status-moved_out, .status-muted { border-color: var(--line); color: var(--quiet); background: rgba(255,255,255,.035); }
.asset-command-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.asset-command-actions a { min-height: 36px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.045); font-size: .74rem; font-weight: 850; text-decoration: none; }
.asset-command-actions a:hover { border-color: var(--blue-light); background: rgba(102,148,255,.12); }
.asset-identity { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(240px,.85fr); gap: 16px; }
.asset-scan-panel { display: grid; align-content: center; gap: 14px; min-width: 0; padding: clamp(16px,3vw,24px); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,rgba(102,148,255,.08),transparent 72%),var(--surface); }
.asset-scan-panel h2 { margin: 0; }
.asset-scan-panel ol { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.asset-print-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.asset-photo-stage { overflow: hidden; min-height: 280px; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; background: #09090a; }
.asset-photo-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asset-photo-empty { display: grid; height: 100%; min-height: 280px; place-items: center; color: var(--quiet); }
.asset-carousel { display: grid; min-width: 0; gap: 10px; }
.asset-carousel-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 12px; background: #09090a; touch-action: pan-y; }
.asset-carousel-slide { display: none; width: 100%; height: 100%; }
.asset-carousel-slide.is-active { display: block; }
.asset-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-arrow { position: absolute; top: 50%; display: grid; width: 42px; height: 42px; translate: 0 -50%; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #fff; background: rgba(0,0,0,.62); font-size: 2rem; line-height: 1; backdrop-filter: blur(4px); }
.carousel-previous { left: 10px; }
.carousel-next { right: 10px; }
.carousel-count { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.68); font-size: .72rem; font-weight: 800; }
.carousel-thumbnails { display: grid; grid-auto-columns: 78px; grid-auto-flow: column; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.carousel-thumbnail { overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; opacity: .58; background: #09090a; scroll-snap-align: center; }
.carousel-thumbnail.is-active { border-color: var(--blue); opacity: 1; }
.carousel-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.asset-code-card { display: grid; align-content: center; justify-items: center; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,rgba(102,148,255,.1),transparent 72%),var(--surface); text-align: center; }
.asset-code-card span { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.asset-code-card strong { margin: 14px 0 10px; font: 800 clamp(2rem,7vw,3.7rem)/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .12em; }
.asset-code-card small { max-width: 240px; color: var(--quiet); line-height: 1.45; }
.asset-photo-grid a { display: block; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #09090a; }
.expiry-note { color: #ffe1a0; font-size: .78rem; font-weight: 760; }

/* Focused scanner */
.compact-heading { width: min(100%,660px); margin-inline: auto; text-align: center; }
.compact-heading .account-lead { margin-inline: auto; }
.scan-layout { display: grid; width: min(100%,660px); gap: 18px; margin: 24px auto 0; }
.scanner-panel { padding: clamp(16px,3vw,24px); }
.scanner-frame { position: relative; display: grid; width: min(100%,460px); aspect-ratio: 1 / 1; place-items: stretch; overflow: hidden; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: #080809; }
.html-scanner { display: none; width: 100%; height: 100%; overflow: hidden; background: #080809; }
.html-scanner.is-active { display: block; }
.html-scanner video, .html-scanner canvas, .html-scanner img { width: 100% !important; height: 100% !important; object-fit: cover; }
.html-scanner > div, .html-scanner [id$="__scan_region"] { width: 100% !important; height: 100% !important; }
.scanner-placeholder { display: grid; height: 100%; place-content: center; justify-items: center; gap: 9px; padding: 24px; color: var(--muted); text-align: center; }
.scanner-placeholder[hidden] { display: none; }
.scanner-placeholder strong { color: var(--ink); font-size: 1.05rem; }
.scanner-placeholder span:last-child { max-width: 250px; font-size: .82rem; line-height: 1.45; }
.scan-mark { display: grid; width: 60px; height: 60px; place-items: center; margin-bottom: 7px; border: 1px solid rgba(102,148,255,.42); border-radius: 16px; color: var(--blue-light); background: var(--blue-soft); font-size: 1.8rem; }
.scanner-actions { display: flex; justify-content: center; gap: 10px; width: min(100%,460px); margin: 16px auto 0; }
.scanner-actions .button { min-width: 140px; }
.scan-status { width: min(100%,460px); min-height: 22px; margin: 11px auto 0; color: var(--quiet); font-size: .8rem; line-height: 1.45; text-align: center; }
.manual-lookup { width: min(100%,460px); margin-inline: auto; }
.panel-kicker { display: block; margin-bottom: 8px; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.manual-lookup > p { margin-bottom: 0; }
.manual-lookup input { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }

/* Liability release */
.action-required-panel,
.release-on-file-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  border-color: rgba(102,148,255,.32);
  background: linear-gradient(135deg,rgba(102,148,255,.12),rgba(46,204,113,.05) 62%),var(--surface);
}
.action-required-panel { border-color: rgba(255,197,92,.42); background: linear-gradient(135deg,rgba(255,197,92,.13),rgba(102,148,255,.06) 62%),var(--surface); }
.release-document { display: grid; gap: 18px; }
.release-parties { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.release-parties > div { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.release-parties span { color: var(--quiet); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.release-parties small { color: var(--muted); line-height: 1.35; }
.release-copy { max-width: 850px; color: var(--muted); line-height: 1.62; }
.release-copy p:first-child { color: var(--ink); font-weight: 850; }
.preview-banner { display: flex; align-items: center; gap: 10px 14px; margin: 18px 0; border-color: rgba(102,148,255,.38); background: linear-gradient(135deg,rgba(102,148,255,.12),rgba(255,255,255,.025)); }
.preview-banner strong { color: var(--blue-light); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.preview-banner span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.release-sign-form { display: grid; gap: 12px; }
.release-sign-form label:not(.checkbox-row) { margin: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.4; }
.checkbox-row input { width: auto; margin-top: 3px; }
.signature-ready { padding: 11px 13px; border: 1px solid rgba(46,204,113,.35); border-radius: 10px; color: #b9ffd0; background: rgba(46,204,113,.1); font-size: .83rem; font-weight: 800; }
.signature-modal[hidden] { display: none; }
.signature-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.signature-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.signature-sheet { position: relative; display: grid; width: min(100%,900px); max-height: calc(100dvh - 32px); gap: 13px; overflow: auto; padding: clamp(16px,3vw,26px); border: 1px solid var(--line-strong); border-radius: 18px; background: #111217; box-shadow: 0 26px 80px rgba(0,0,0,.52); }
.signature-sheet canvas { display: block; width: 100%; aspect-ratio: 8 / 3; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; touch-action: none; }
.stacked-form { display: grid; gap: 12px; }
.stacked-form label { margin: 0; }
.release-template-form { width: 100%; max-width: 100%; margin-top: 18px; }
.release-template-field { display: grid; min-width: 0; max-width: 100%; gap: 7px; }
.release-template-form input:not([type="checkbox"]),
.release-template-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 16px;
  line-height: 1.42;
}
.release-template-form textarea { min-height: 430px; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.release-template-form input:focus,
.release-template-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(102,148,255,.13); }
.release-template-form .checkbox-field { display: flex; align-items: center; gap: 9px; }
.release-template-form .checkbox-field input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); }
.release-template-form .checkbox-field label { order: 2; }
.release-placeholder-help { overflow-wrap: anywhere !important; word-break: normal; }
.release-template-actions { display: grid; gap: 10px; }
.release-template-actions .button { width: 100%; text-align: center; }
.release-template-reset-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.release-template-reset-form .button { flex: 0 0 auto; }
.release-template-reset-form .field-help { flex: 1 1 260px; margin: 0; }

@media (max-width: 1120px) {
  .product-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .public-nav > a:not(.button) { display: none; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero-copy { max-width: 690px; }
  .landing-hero-art { width: min(100%,570px); margin-inline: auto; }
  .journey-grid-six, .operations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .onboarding-strip { grid-template-columns: 1fr; }
  .customer-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .interest-layout { grid-template-columns: 1fr; }
  .interest-copy { position: static; }
  .interest-copy > img { width: min(70%,340px); }
  .platform-interest-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
  .platform-interest-row > a { grid-column: 3; grid-row: 2; }
  .hero-compact, .feature-grid, .staff-grid, .dashboard-grid-two, .detail-grid, .asset-identity, .staff-access-layout { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .portal-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .portal-actions { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-link-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .platform-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .platform-metrics > div:nth-child(4) { border-left: 0; }
  .platform-metrics > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .platform-layout, .platform-actions-grid { grid-template-columns: 1fr; }
  .lot-map-layout { grid-template-columns: 1fr; }
  .lot-map-tools { position: static; }
  .platform-email-panel { grid-row: auto; }
  .platform-email-panel .account-form { grid-template-columns: 1fr; }
  .platform-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-guide-grid article:nth-child(3) { border-left: 0; }
  .platform-guide-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .platform-side { position: static; }
  .platform-facility-header { display: none; }
  .platform-facility-row { grid-template-columns: minmax(0,1.2fr) minmax(80px,.65fr) minmax(80px,.65fr); }
  .platform-facility-row > div:nth-child(4) { grid-column: 1 / 3; }
  .platform-row-actions { grid-column: 3; grid-row: 2; }
  .form-grid.three-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-disclosure summary { grid-template-columns: 1fr; min-height: 0; }
  .settings-summary-meta { justify-self: start; max-width: none; text-align: left; }
}

@media (max-width: 600px) {
  .site-header, .staff-header, main, .staff-main, footer { width: min(calc(100% - 28px),1160px); }
  .staff-main:has(.lot-canvas-panel) { width: min(calc(100% - 20px),1160px); }
  .site-header, .staff-header { min-height: 66px; }
  .logo-link img { height: 52px; }
  .public-header .logo-link img { height: 48px; }
  .landing-hero { gap: 25px; padding: 42px 0 56px; }
  .hero-brand-logo { width: min(100%,500px); margin: -10px 0 -9px; }
  .hero-tagline { font-size: 1.15rem; }
  .landing-hero-art > div { margin-top: -25px; }
  .journey-grid-six, .customer-flow, .operations-grid { grid-template-columns: 1fr; }
  .journey-step { display: grid; grid-template-columns: 108px minmax(0,1fr); column-gap: 13px; align-items: center; }
  .journey-step img { grid-row: 1 / 4; width: 108px; margin: 0; }
  .journey-step .journey-number { display: none; }
  .journey-step h3 { grid-column: 2; margin: 0 0 5px; }
  .journey-step p { grid-column: 2; }
  .customer-flow article { display: grid; grid-template-columns: 116px minmax(0,1fr); align-items: center; }
  .customer-flow img { height: 100%; min-height: 142px; aspect-ratio: auto; }
  .customer-flow article > div { height: 100%; border-top: 0; border-left: 1px solid var(--line); }
  .customer-actions { align-items: flex-start; flex-direction: column; }
  .operations-grid article { display: grid; grid-template-columns: 105px minmax(0,1fr); column-gap: 12px; align-items: center; padding: 10px 12px; }
  .operations-grid img { grid-row: 1 / 3; width: 105px; }
  .operations-grid h3, .operations-grid p { grid-column: 2; }
  .operations-grid h3 { margin-bottom: 5px; }
  .interest-form-grid { grid-template-columns: 1fr; }
  .interest-form-card { padding: 19px 15px; }
  .facility-interest-form .button { width: 100%; }
  .platform-interest-row { grid-template-columns: 1fr auto; }
  .platform-interest-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .platform-interest-row > div:nth-child(3) { grid-column: 1; grid-row: 3; }
  .platform-interest-row > a { grid-column: 2; grid-row: 3; }
  .plain-link { display: none; }
  h1 { font-size: 2rem; }
  .account-title, .portal-title { font-size: 1.7rem; }
  .hero { padding: 50px 0 58px; }
  .feature-section { padding-bottom: 52px; }
  .account-shell { width: 100%; padding: 22px 14px 52px; }
  .account-card, .account-shell.wide .account-card { width: 100%; padding: 19px 16px; border-radius: 12px; }
  .staff-main { padding: 28px 0 58px; }
  .staff-main > * + * { margin-top: 18px; }
  .portal-actions { display: grid; grid-template-columns: 1fr; }
  .portal-actions .button, .portal-actions form, .portal-actions form .button { width: 100%; }
  .action-required-panel, .release-on-file-panel, .release-parties { grid-template-columns: 1fr; }
  .action-required-panel, .release-on-file-panel { display: grid; }
  .preview-banner { display: grid; }
  .signature-modal { align-items: stretch; padding: 10px; }
  .signature-sheet { max-height: calc(100dvh - 20px); border-radius: 14px; }
  .signature-sheet canvas { min-height: 240px; }
  .metric-grid, .summary-strip { gap: 9px; }
  .metric-grid > div, .metric-grid > a, .summary-strip > div { padding: 14px; }
  .metric-card { padding: 0 !important; }
  .metric-card > a { padding: 14px 46px 14px 14px; }
  .metric-grid strong, .summary-strip strong { font-size: 1.4rem; }
  .dashboard-panel, .info-panel, .decision-form { padding: 17px; }
  .release-template-form textarea { min-height: 340px; }
  .release-template-reset-form { display: grid; }
  .release-template-reset-form .button { width: 100%; }
  .request-row, .storage-card, .invitation-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .payment-history-row { align-items: flex-start; }
  .payment-history-result { justify-items: start; }
  .row-actions { justify-content: flex-start; }
  .asset-command-card { grid-template-columns: 1fr; align-items: stretch; }
  .asset-command-actions { justify-content: flex-start; }
  .asset-command-actions a { flex: 1 1 92px; justify-content: center; text-align: center; }
  .asset-identity { grid-template-columns: 1fr; }
  .asset-scan-panel { padding: 17px; }
  .search-form { flex-direction: column; width: 100%; }
  .search-form .button { width: 100%; }
  .table-panel { overflow: visible; padding: 0; border: 0; background: transparent; }
  .table-header { display: none; }
  .table-row { grid-template-columns: 1fr; gap: 9px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .table-row > * { display: grid; gap: 3px; overflow-wrap: anywhere; }
  .table-row > *::before { content: attr(data-label); color: var(--quiet); font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .customer-directory-header, .customer-directory-row { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(92px,.78fr); gap: 8px; }
  .customer-directory-header { padding-inline: 3px; }
  .customer-directory-row { min-height: 38px; padding: 7px 3px; font-size: .76rem; }
  .directory-phone { font-size: .74rem; }
  .staff-member-header { display: none; }
  .staff-member-row { grid-template-columns: 1fr; gap: 10px; }
  .platform-code-row { grid-template-columns: 105px minmax(0,1fr) auto; }
  .platform-guide > .panel-heading { display: grid; gap: 8px; }
  .platform-guide-grid { grid-template-columns: 1fr; }
  .platform-guide-grid article { border-top: 1px solid var(--line); border-left: 0; }
  .platform-guide-grid article:first-child { border-top: 0; }
  .platform-code-row { grid-template-columns: 1fr auto; }
  .platform-code-row > div { grid-column: 1 / -1; grid-row: 2; }
  .platform-code-row > .status-badge { grid-column: 1; grid-row: 3; justify-self: start; }
  .platform-code-row form { grid-column: 2; grid-row: 3; }
  .platform-redemption-row { grid-template-columns: 1fr; gap: 4px; }
  .platform-email-health article { grid-template-columns: 1fr; gap: 5px; }
  .lot-zone-heading { display: grid; }
  .lot-canvas-panel [data-map-edit-toggle], .lot-canvas-panel [data-map-save] { display: none; }
  .lot-canvas-panel { padding: 13px; }
  .lot-canvas-heading { display: grid; gap: 5px; }
  .lot-canvas-heading p { white-space: normal; font-size: .7rem; }
  .lot-editor-actions { justify-content: flex-start; }
  .lot-zoom-control { display: none; }
  .lot-editor-actions button:not([data-map-edit-toggle]):not([data-map-save]) { display: none; }
  .lot-canvas-scroll.is-zoomed { aspect-ratio: 1 / 1; height: auto; overflow: auto; }
  .lot-map-element { padding: 8px; border-radius: 10px; }
  .lot-map-element strong { font-size: .78rem; }
  .lot-map-element span { font-size: .66rem; }
  .lot-zone-heading dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lot-space-grid { grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); }
  .lot-space { min-height: 76px; padding: 9px; }
  .facility-list { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 78px minmax(0,1fr); gap: 10px; }
  .facility-connection { flex-direction: column; gap: 5px; }
  .scanner-actions { display: grid; }
  .scanner-actions .button { width: 100%; }
  .form-section { grid-template-columns: 1fr; }
  .form-section > .form-grid, .form-section > .photo-input-wrap { grid-column: 1; }
  .form-grid.two-col, .form-grid.three-col { grid-template-columns: 1fr; }
  .photo-preview, .asset-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intake-submit { display: grid; }
  .intake-submit .button { width: 100%; }
  .capture-summary { align-items: stretch; flex-direction: column; }
  .capture-summary .button { width: 100%; }
  .camera-modal { align-items: stretch; padding: 10px; }
  .camera-sheet { align-content: start; max-height: calc(100dvh - 20px); }
  .camera-modal-actions { display: grid; }
  .camera-modal-actions .button { width: 100%; }
  .help-modal { align-items: center; padding: 12px; }
  .help-sheet { max-height: calc(100dvh - 24px); padding: 22px 18px; }
  .asset-photo-stage { min-height: 220px; }
  footer { flex-direction: column; }
}

@media (max-width: 390px) {
  .metric-grid, .summary-strip { grid-template-columns: 1fr; }
  .account-card { padding-inline: 14px; }
  .dashboard-panel { padding: 15px; }
}
