:root {
  --ink: #24282c;
  --muted: #697078;
  --paper: #f6f7f2;
  --panel: #ffffff;
  --line: #d8ded8;
  --line-strong: #bcc7c1;
  --green: #9af08a;
  --green-soft: #ecffe9;
  --blue: #385f82;
  --blue-soft: #e7eef5;
  --coral: #b76050;
  --coral-soft: #fae8e3;
  --gold: #ba8d35;
  --shadow: 0 20px 48px rgba(36, 40, 44, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(54, 95, 79, 0.1), transparent 32%),
    linear-gradient(42deg, rgba(183, 96, 80, 0.12), transparent 35%),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-lockup,
.job-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: #b8063e;
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.powered-by {
  align-self: center;
  max-width: 150px;
  padding: 6px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(56, 95, 130, 0.24);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 3px;
  color: var(--coral);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  line-height: 1.05;
}

.job-status {
  min-width: 236px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(36, 40, 44, 0.08);
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(186, 141, 53, 0.16);
}

.status-dot.signed {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(54, 95, 79, 0.16);
}

.status-dot.verifying {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(56, 95, 130, 0.16);
}

.status-label,
.status-sub {
  display: block;
}

.status-label {
  color: var(--ink);
  font-weight: 760;
}

.status-sub {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 780;
  text-decoration: none;
}

button.secondary-link {
  appearance: none;
}

.landing-body,
.login-body {
  min-height: 100vh;
  background: #f6f7f2;
}

.landing-announcement {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(24px, 5vw, 70px);
  color: #132223;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(24, 56, 54, 0.16);
  backdrop-filter: blur(16px);
}

.landing-logo {
  color: #132223;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav a {
  min-height: 38px;
  padding: 9px 12px;
  color: #264b4b;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
}

.landing-nav a:hover {
  background: #e8f1ed;
}

.landing-page {
  color: #172426;
  background: #f6f7f2;
}

.launch-hero {
  position: relative;
  min-height: calc(100vh - 150px);
  padding: 50px clamp(24px, 6vw, 82px) 78px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.launch-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 16, 19, 0.86), rgba(4, 16, 19, 0.48) 54%, rgba(4, 16, 19, 0.26)),
    linear-gradient(180deg, rgba(4, 16, 19, 0.1), rgba(4, 16, 19, 0.68)),
    url("assets/businessforce-hero.png") center / cover;
  content: "";
}

.launch-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 18%;
  background: linear-gradient(180deg, transparent, #f6f7f2);
  content: "";
}

.launch-brand {
  width: fit-content;
  margin-bottom: 76px;
  padding: 9px 12px;
  color: #d5fffb;
  border: 1px solid rgba(213, 255, 251, 0.38);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 820;
  letter-spacing: 0.16em;
}

.launch-copy {
  max-width: 880px;
}

.launch-kicker {
  margin: 0 0 16px;
  color: #9be9d5;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launch-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 4.8rem;
  font-weight: 860;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.48);
}

.launch-statement {
  max-width: 750px;
  margin: 22px 0 0;
  color: #f4f8f7;
  font-size: 1.55rem;
  font-weight: 760;
  line-height: 1.35;
}

.launch-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.72;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.launch-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 12px 16px;
  color: #092321;
  background: #a8f2df;
  border: 1px solid #a8f2df;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.launch-actions a + a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.landing-section {
  padding: 82px clamp(24px, 6vw, 82px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column,
.operations-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 54px;
  align-items: start;
}

.landing-section h2,
.launch-contact h2 {
  margin: 0;
  color: #162527;
  font-size: 2.55rem;
  font-weight: 840;
  line-height: 1.08;
  letter-spacing: 0;
}

.landing-section p {
  margin: 0;
  color: #536366;
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.mission-band {
  background: #f6f7f2;
}

.mission-band p {
  font-size: 1.16rem;
}

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

.trade-grid span {
  min-height: 50px;
  padding: 13px 14px;
  color: #193333;
  background: #fff;
  border: 1px solid #d5ded9;
  border-radius: 6px;
  font-weight: 780;
}

.operations-band {
  color: #f5fbfa;
  background: #102b2c;
}

.operations-band h2,
.operations-band p,
.ai-band h2,
.ai-band p,
.values-band h2,
.values-band p {
  color: inherit;
}

.operations-band .section-kicker,
.ai-band .section-kicker,
.values-band .section-kicker {
  color: #9be9d5;
}

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

.challenge-list div {
  padding: 16px 18px;
  color: #f7fbf9;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-weight: 760;
}

.ai-band {
  color: #f8fbf7;
  background: #223a33;
}

.ai-list,
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-list div,
.values-grid div {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.ai-list strong,
.values-grid strong {
  color: #fff;
  font-size: 1.08rem;
}

.ai-list span,
.values-grid span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.people-first {
  margin-top: 28px;
  padding-left: 18px;
  color: #fff;
  border-left: 4px solid #9be9d5;
  font-weight: 820;
}

.values-band {
  color: #f9fbf7;
  background: #2e3535;
}

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

.ecosystem-band {
  background: #fff;
}

.ecosystem-band p + p {
  margin-top: 18px;
}

.launch-contact {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 76px 24px 92px;
  color: #fff;
  background: #0f1718;
  text-align: center;
}

.launch-contact h2 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #fff;
}

.launch-contact h2::after {
  display: block;
  width: 74px;
  height: 2px;
  margin: 22px auto 0;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.launch-contact a {
  color: #a8f2df;
  font-weight: 760;
  text-decoration: none;
}

.cookie-card {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 5;
  width: min(430px, calc(100vw - 48px));
  padding: 26px 28px 30px;
  color: #fff;
  background: rgba(123, 123, 123, 0.9);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.cookie-card h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  font-weight: 560;
}

.cookie-card p {
  margin-bottom: 22px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.42;
}

.cookie-card button {
  width: 100%;
  min-height: 48px;
  color: #111;
  background: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px 18px;
  background:
    linear-gradient(135deg, rgba(10, 105, 170, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(10, 163, 155, 0.16), transparent 34%),
    #f6f8fb;
}

.login-panel {
  width: min(420px, 100%);
  padding: 30px 30px 28px;
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(24, 38, 56, 0.14);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.login-brand span,
.login-brand strong {
  display: block;
}

.login-brand span {
  color: #54698d;
  font-size: 0.86rem;
  font-weight: 760;
}

.login-brand strong {
  margin-top: 2px;
  color: #16325c;
  font-size: 1.05rem;
}

.login-panel h1 {
  margin-bottom: 22px;
  color: #16325c;
  font-size: 1.65rem;
}

.login-form label:not(.login-check) {
  display: block;
  margin: 16px 0 8px;
  color: #3e4d63;
  font-size: 0.9rem;
  font-weight: 740;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #152238;
  background: #fff;
  border: 1px solid #c9d3e2;
  border-radius: 4px;
}

.login-form input:focus {
  border-color: #0176d3;
  outline: 3px solid rgba(1, 118, 211, 0.16);
}

.login-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0;
  color: #3e4d63;
  font-size: 0.9rem;
}

.login-form button {
  width: 100%;
  min-height: 46px;
  color: #fff;
  background: #0176d3;
  border: 0;
  border-radius: 4px;
  font-weight: 780;
}

.login-form button:disabled {
  background: #8abce9;
}

.login-error {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ba0517;
  font-size: 0.9rem;
  font-weight: 700;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.9rem;
}

.login-links a {
  color: #0176d3;
  font-weight: 700;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(520px, 1.45fr);
  gap: 18px;
  align-items: start;
}

.job-panel,
.workflow-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.job-panel {
  overflow: hidden;
}

.image-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 210px;
  background: #dde5df;
  overflow: hidden;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.property-gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
}

.property-gallery-thumb.active {
  border-color: var(--green);
}

.property-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-summary {
  padding: 22px 22px 18px;
}

.job-summary h2,
.screen-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.summary-copy {
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.55;
}

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

.facts-grid div,
.release-grid div,
.email-scope div {
  min-height: 78px;
  padding: 12px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt,
.release-grid span,
.email-scope span,
.signing-toolbar span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 730;
  line-height: 1.25;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 0 22px 22px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  min-height: 40px;
  color: var(--muted);
}

.timeline-row span {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.timeline-row span::after {
  position: absolute;
  top: 12px;
  left: 4px;
  width: 2px;
  height: 36px;
  background: var(--line);
  content: "";
}

.timeline-row:last-child span::after {
  display: none;
}

.timeline-row p {
  margin: 0;
  font-weight: 690;
}

.timeline-row.is-current {
  color: var(--blue);
}

.timeline-row.is-done {
  color: var(--green);
}

.timeline-row.is-current span {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.timeline-row.is-done span {
  background: var(--green);
  border-color: var(--green);
}

.workflow-panel {
  min-height: 720px;
  padding: 18px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.stepper button {
  min-height: 58px;
  padding: 10px 12px;
  color: var(--muted);
  background: #f9faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  text-align: left;
}

.stepper button span {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 820;
}

.stepper button.active {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: rgba(56, 95, 130, 0.45);
}

.stepper button.done {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(54, 95, 79, 0.35);
}

.stepper button:disabled {
  opacity: 0.54;
}

.notice {
  margin-bottom: 12px;
  padding: 11px 12px;
  color: #6e332b;
  background: var(--coral-soft);
  border: 1px solid rgba(183, 96, 80, 0.32);
  border-radius: 8px;
  font-weight: 680;
}

.send-confirmation {
  margin-top: 14px;
  padding: 13px 14px;
  color: #1d4f33;
  background: #e9fbe5;
  border: 1px solid rgba(74, 186, 92, 0.46);
  border-radius: 8px;
  font-weight: 720;
}

.hidden {
  display: none !important;
}

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

.screen {
  display: none;
  min-height: 610px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screen.active {
  display: block;
}

.screen-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.email-preview,
.terms-document,
.signing-shell,
.verification-panel,
.release-package,
.audit-log {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-preview {
  padding: 20px;
  background: linear-gradient(180deg, #fff, #fafbf8);
}

.email-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.email-preview h3,
.term-block h3,
.verification-panel h3,
.audit-log h3,
.address-release h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.email-preview p,
.term-block p,
.signature-box p,
.verification-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.email-scope,
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.email-scope {
  margin-bottom: 10px;
}

.system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.system-strip span {
  padding: 8px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(56, 95, 130, 0.22);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 710;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 780;
}

.primary-action {
  color: #14371d;
  background: var(--green);
  border: 1px solid var(--green);
}

.primary-action:hover:not(:disabled) {
  background: #86e977;
}

#openWorkOrder {
  margin-top: 2px;
}

.primary-action:disabled {
  background: #95aaa0;
  border-color: #95aaa0;
}

.secondary-action {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.danger-action {
  color: #85372d;
  border-color: rgba(183, 96, 80, 0.45);
}

.terms-document {
  background: #fff;
  overflow: hidden;
}

.document-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.document-header > div {
  padding: 14px;
  background: #f9faf6;
}

.document-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.term-block {
  padding: 18px;
}

.term-block + .term-block {
  border-top: 1px solid var(--line);
}

.term-block.emphasis {
  background: linear-gradient(90deg, var(--coral-soft), #fff 72%);
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row + .check-row {
  margin-top: 8px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.confidentiality-warning {
  color: #b3261e;
  font-weight: 780;
}

.check-row.compact {
  margin-top: 14px;
  border-color: transparent;
  background: var(--green-soft);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.signing-shell {
  overflow: hidden;
}

.signing-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.signing-toolbar > div {
  padding: 14px;
  background: #f9faf6;
}

.signature-box {
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(56, 95, 130, 0.08), transparent),
    #fff;
}

.signature-box label:not(.check-row) {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-weight: 750;
}

.signature-box input[type="text"],
.signature-box input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

#signatureEmail {
  width: min(100%, 520px);
}

.verification-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--blue-soft);
  border-color: rgba(56, 95, 130, 0.28);
}

.loader {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 4px solid rgba(56, 95, 130, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.release-package {
  padding: 18px;
}

.address-release {
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
}

.address-release p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.address-release h3 {
  margin-bottom: 4px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.address-release span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 710;
}

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

.map-strip {
  position: relative;
  height: 132px;
  margin-top: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49%, rgba(56, 95, 130, 0.16) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(54, 95, 79, 0.16) 49% 51%, transparent 51%),
    #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-line {
  position: absolute;
  inset: 34px 58px 42px 58px;
  border-right: 4px solid var(--coral);
  border-bottom: 4px solid var(--coral);
  border-radius: 0 0 24px 0;
}

.pin {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--coral);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(36, 40, 44, 0.24);
}

.pin.one {
  top: 27px;
  left: 54px;
  background: var(--blue);
}

.pin.two {
  right: 50px;
  bottom: 34px;
}

.pin.three {
  top: 64px;
  left: 50%;
  background: var(--green);
}

.audit-log {
  margin-top: 16px;
  padding: 16px;
  background: #fbfcf8;
}

.audit-log ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.audit-log li::marker {
  color: var(--green);
}

.admin-shell {
  width: min(1540px, calc(100% - 40px));
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.2fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.admin-editor,
.admin-preview {
  min-width: 0;
}

.admin-section {
  margin-bottom: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(36, 40, 44, 0.08);
}

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

.admin-section-heading h2 {
  margin-bottom: 0;
  font-size: 1.24rem;
  line-height: 1.2;
}

.instance-manager {
  border-color: rgba(56, 95, 130, 0.28);
}

.instance-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(56, 95, 130, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 760;
}

.instance-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
}

.instance-select {
  min-width: 0;
}

.work-order-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.work-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.work-order-row:hover,
.work-order-row:focus-visible {
  border-color: rgba(56, 95, 130, 0.44);
  box-shadow: 0 0 0 4px rgba(56, 95, 130, 0.1);
}

.work-order-row.is-active {
  background: var(--blue-soft);
  border-color: rgba(56, 95, 130, 0.44);
}

.work-order-row-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.work-order-row-copy strong,
.work-order-row-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-order-row-copy strong {
  font-size: 0.94rem;
}

.work-order-row-copy span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 640;
}

.work-order-edit-label {
  padding: 7px 10px;
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(56, 95, 130, 0.24);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.work-order-row.is-active .work-order-edit-label {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field.wide {
  grid-column: 1 / -1;
}

.field span,
.link-box label,
.preview-label {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.link-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
}

.field textarea {
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.link-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(56, 95, 130, 0.12);
}

.photo-field {
  gap: 8px;
}

.photo-dropzone {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 132px;
  padding: 12px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(56, 95, 130, 0.06), transparent 58%),
    #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.photo-dropzone:hover,
.photo-dropzone:focus-within,
.photo-dropzone.is-dragging {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(56, 95, 130, 0.1);
}

.photo-dropzone.is-dragging {
  background: var(--blue-soft);
}

.photo-preview {
  display: grid;
  width: 112px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #eef2ee;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.photo-preview::before {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  content: "No photo";
}

.photo-preview.has-image::before {
  display: none;
}

.photo-preview img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview.has-image img {
  display: block;
}

.photo-drop-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photo-drop-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-drop-copy small {
  color: var(--muted);
  font-weight: 680;
}

.photo-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-gallery-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.photo-thumb {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  background: #eef2ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.photo-thumb button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-height: 30px;
  padding: 5px 8px;
  color: #85372d;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 96, 80, 0.42);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(246, 247, 242, 0), var(--paper) 28%);
}

.sticky-preview {
  position: sticky;
  top: 16px;
}

.preview-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px;
  color: #244536;
  background: var(--green-soft);
  border: 1px solid rgba(54, 95, 79, 0.22);
  border-radius: 8px;
}

.preview-alert span {
  color: var(--muted);
  line-height: 1.45;
}

.preview-card {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-card h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.preview-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.address-locked-card {
  background: linear-gradient(135deg, var(--coral-soft), #fff);
  border-color: rgba(183, 96, 80, 0.3);
}

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

.preview-facts div {
  min-height: 74px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-facts dd {
  overflow-wrap: anywhere;
}

.link-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.link-box label {
  grid-column: 1 / -1;
}

.admin-strip {
  margin-top: 12px;
}

.agreement-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.7fr) minmax(560px, 1.1fr);
  gap: 18px;
  align-items: start;
}

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

.agreement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.agreement-row:hover,
.agreement-row:focus-visible {
  border-color: rgba(54, 95, 79, 0.42);
  box-shadow: 0 0 0 4px rgba(54, 95, 79, 0.1);
}

.agreement-row.is-active {
  background: var(--green-soft);
  border-color: rgba(54, 95, 79, 0.42);
}

.agreement-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.agreement-row-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 660;
}

.agreement-row-status,
.agreement-badge {
  padding: 7px 10px;
  color: #244536;
  background: var(--green-soft);
  border: 1px solid rgba(54, 95, 79, 0.24);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.agreement-row.is-active .agreement-row-status {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.agreement-title {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.agreement-summary {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.agreement-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 16px;
}

.agreement-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.agreement-facts div {
  min-height: 78px;
  padding: 12px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agreement-facts dd {
  overflow-wrap: anywhere;
}

.agreement-audit {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agreement-audit li {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agreement-audit strong {
  color: var(--green);
}

.agreement-audit span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #fafbf8;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-weight: 700;
}

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

  .two-column,
  .operations-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trade-grid,
  .ai-list,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-panel {
    min-height: auto;
  }

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

  .agreement-layout {
    grid-template-columns: 1fr;
  }

  .sticky-preview {
    position: static;
  }

  .instance-controls {
    grid-template-columns: minmax(260px, 1fr) repeat(3, auto);
  }
}

@media (max-width: 680px) {
  .landing-announcement {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .landing-nav {
    justify-content: flex-start;
  }

  .landing-nav a {
    padding: 8px 10px;
  }

  .launch-hero {
    min-height: auto;
    padding: 36px 20px 70px;
  }

  .launch-brand {
    margin-bottom: 56px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .launch-hero h1 {
    font-size: 3.2rem;
  }

  .launch-statement {
    font-size: 1.28rem;
  }

  .launch-intro {
    font-size: 1rem;
  }

  .launch-actions {
    flex-direction: column;
  }

  .launch-actions a {
    justify-content: center;
  }

  .landing-section {
    padding: 58px 20px;
  }

  .landing-section h2,
  .launch-contact h2 {
    font-size: 2.15rem;
  }

  .trade-grid,
  .ai-list,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .ai-list div,
  .values-grid div {
    min-height: auto;
  }

  .launch-contact h2 {
    font-size: 2.2rem;
  }

  .cookie-card {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 32px);
    padding: 18px 18px 20px;
  }

  .cookie-card h2 {
    margin-bottom: 8px;
    font-size: 1.2rem;
  }

  .cookie-card p {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }

  .cookie-card button {
    min-height: 44px;
  }

  .login-panel {
    padding: 24px 20px;
  }

  .login-links {
    flex-direction: column;
  }

  .app-shell {
    width: min(100% - 24px, 1420px);
    padding-top: 14px;
  }

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

  .brand-lockup {
    flex-wrap: wrap;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .job-status {
    width: 100%;
  }

  .facts-grid,
  .document-header,
  .signing-toolbar,
  .email-scope,
  .release-grid,
  .editor-grid.two,
  .preview-facts,
  .agreement-facts,
  .link-box,
  .property-gallery,
  .photo-dropzone,
  .instance-controls {
    grid-template-columns: 1fr;
  }

  .agreement-row,
  .agreement-audit li {
    grid-template-columns: 1fr;
  }

  .agreement-actions {
    justify-content: stretch;
  }

  .admin-section-heading {
    display: block;
  }

  .instance-count {
    display: inline-flex;
    margin-top: 8px;
  }

  .screen {
    padding: 16px;
  }

  .screen-heading {
    display: block;
  }

  .action-row {
    justify-content: stretch;
  }

  .primary-action,
  .secondary-action,
  .secondary-link {
    width: 100%;
    justify-content: center;
  }
}
