/* Collective entrance; reuses the owned LineTemp navy/orange form vocabulary. */
:root {
  --ink: #16303e;
  --muted: #69777d;
  --paper: #f6f4ef;
  --line: #dce2e2;
  --orange: #c65329;
  --orange-dark: #a63e1a;
  --mint: #e7f1e9;
  --green: #296647;
  --white: #fff;
  --shadow: 0 14px 45px #142d3d08;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #db8866;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 750;
}
h2 {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.6;
}
.preview-strip {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eae9e2;
  font-size: 11px;
  color: #5f696b;
  letter-spacing: 0.015em;
}
.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bb6a42;
}
.strip-divider {
  color: #b0b6b6;
  margin: 0 2px;
}
.site-header {
  max-width: 1180px;
  margin: auto;
  padding: 27px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 7px;
  font-weight: 600;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  transform: skew(-10deg);
}
.brand-mark i {
  width: 8px;
  background: var(--orange);
  border-radius: 2px;
  display: block;
}
.brand-mark i:nth-child(1) {
  height: 21px;
}
.brand-mark i:nth-child(2) {
  height: 35px;
}
.brand-mark i:nth-child(3) {
  height: 28px;
  background: var(--ink);
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-link {
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
}
.nav-link:hover {
  border-color: var(--orange);
}
.nav-role {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #ffffff7a;
  padding: 8px 11px;
  border-radius: 40px;
}
#main {
  max-width: 1180px;
  margin: 14px auto 70px;
  padding: 0 34px;
  min-height: 65vh;
}
.request-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(450px, 1.2fr);
  gap: 64px;
  align-items: start;
}
.intro {
  padding: 25px 0;
  position: sticky;
  top: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: var(--orange);
  margin-bottom: 17px;
  text-transform: uppercase;
}
.intro h1 {
  max-width: 380px;
  margin-bottom: 23px;
}
.intro .lede {
  font-size: 15px;
  max-width: 350px;
  color: #5e7179;
  line-height: 1.7;
}
.intro-rule {
  width: 44px;
  height: 3px;
  background: var(--orange);
  margin: 29px 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 340px;
}
.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  margin: 23px 0;
}
.step-number {
  color: #a7b1b5;
  font-size: 11px;
  font-weight: 700;
  padding-top: 4px;
}
.steps strong {
  font-size: 13px;
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.steps p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}
.intro-note {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
  max-width: 340px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel + .panel {
  margin-top: 20px;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.panel-heading h2,
.panel-heading p {
  margin-bottom: 5px;
}
.panel-heading .hint {
  margin: 5px 0 0;
}
.panel-heading .number {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #cfd6d7;
  font-style: italic;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.form-section {
  border: 0;
  margin: 0;
  padding: 0;
}
.form-section + .form-section {
  border-top: 1px solid #e7ebeb;
  margin-top: 24px;
  padding-top: 24px;
}
.form-section legend {
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 17px;
  letter-spacing: 0.015em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label,
.field-label {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.field-label small,
label small {
  color: var(--muted);
  font-weight: 450;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfd9dc;
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  min-height: 43px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 2px #16303e02;
}
.field textarea {
  resize: vertical;
  min-height: 86px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #98a4a9;
  font-size: 13px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #b8866f;
  outline: 2px solid #edcaba4a;
  outline-offset: 0;
}
.field .hint {
  margin: 0;
  font-size: 11px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
  font-size: 12px;
  color: #516570;
  cursor: pointer;
}
.checkbox-label input {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: none;
}
.tap-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.tap-row .checkbox-label {
  padding-top: 23px;
}
.subtle-box {
  background: #f5f7f6;
  border: 1px solid #e2e8e7;
  border-radius: 9px;
  padding: 16px;
}
.optional-terms {
  margin-top: 22px;
}
.optional-terms summary {
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.5;
}
.optional-terms[open] summary {
  margin-bottom: 17px;
}
.optional-terms p.hint {
  margin-bottom: 17px;
}
.form-foot {
  margin-top: 26px;
  padding-top: 23px;
  border-top: 1px solid #e7ebeb;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 43px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.button.primary:hover:not(:disabled) {
  background: var(--orange-dark);
}
.button.secondary {
  background: white;
  border-color: #ccd7db;
  color: var(--ink);
}
.button.secondary:hover {
  background: #f4f6f6;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  color: #5f727b;
  padding-left: 0;
  padding-right: 0;
}
.button.danger {
  background: #fff3ef;
  color: #9e3a25;
  border-color: #e2c3b9;
}
.button.full {
  width: 100%;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.button-arrow {
  font-size: 19px;
  font-weight: 400;
  line-height: 10px;
}
.fine-print {
  font-size: 10px;
  color: #829197;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.55;
}
.draft-mark {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7d898f;
  font-size: 10px;
  font-weight: 450;
}
.draft-mark:before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8eaa9a;
}
.notice {
  padding: 15px 18px;
  border-radius: 9px;
  border: 1px solid #b9d2c4;
  background: #edf5ef;
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.55;
}
.notice.error {
  border-color: #e4bca9;
  background: #fff2eb;
  color: #854025;
}
.notice.warning {
  border-color: #e5d4a7;
  background: #fff9e9;
  color: #7c672a;
}
.notice button {
  margin-left: 12px;
}
.loading-card {
  min-height: 300px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.loading-card p {
  margin: 0;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d9e0e2;
  border-top-color: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 28px;
}
.page-heading h1 {
  font-size: 31px;
  margin: 6px 0 10px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.page-heading .eyebrow {
  font-size: 10px;
  color: var(--orange);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 7px 10px;
  background: #edf0f2;
  color: #526775;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.status-pill:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.confirmed,
.status-pill.completed {
  background: #e8f2eb;
  color: #2b6947;
}
.status-pill.awaiting_customer {
  background: #fff0d9;
  color: #91621d;
}
.status-pill.cancelled,
.status-pill.declined {
  background: #f3e7e3;
  color: #99624e;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}
.status-card {
  background: #16303e;
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.status-card:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  right: -35px;
  top: -45px;
  box-shadow:
    0 0 0 25px #ffffff03,
    0 0 0 50px #ffffff03;
  pointer-events: none;
}
.status-card h2 {
  font-size: 25px;
  margin: 15px 0 9px;
}
.status-card p {
  font-size: 13px;
  color: #d0dce1;
  max-width: 530px;
  margin-bottom: 0;
  line-height: 1.65;
}
.status-card .eyebrow {
  color: #e49e78;
  margin: 0;
}
.status-card .status-pill {
  background: #ffffff16;
  color: #e8eff1;
}
.status-card .button {
  margin-top: 19px;
}
.terms-panel {
  border-top: 3px solid var(--orange);
}
.quote-total {
  font-size: 39px;
  font-weight: 750;
  letter-spacing: -2px;
  margin: 9px 0 4px;
  line-height: 1.1;
}
.quote-total small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 7px;
}
.term-lines {
  display: grid;
  gap: 17px;
  padding: 22px 0;
  border-top: 1px solid #e8ecec;
  margin-top: 20px;
}
.term-lines .term-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7c8e97;
  margin-bottom: 5px;
}
.term-lines .term-value {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.quote-accept {
  background: #f7f8f6;
  border-top: 1px solid #e4e9e7;
  padding: 17px;
  margin: 0 -8px -7px;
  border-radius: 8px;
}
.quote-accept label {
  margin-bottom: 14px;
}
.kv {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
  margin: 13px 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.compact-heading {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 16px;
}
.info-rule {
  border: 0;
  border-top: 1px solid #e5eaea;
  margin: 21px 0;
}
.request-copy {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: #4d6571;
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 1px solid #dbe2e3;
  margin-left: 3px;
  padding: 0 0 19px 18px;
  position: relative;
  font-size: 12px;
  line-height: 1.5;
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline li:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bacbd1;
  left: -4px;
  top: 4px;
}
.timeline li:last-child:before {
  background: var(--orange);
}
.timeline time {
  display: block;
  font-size: 10px;
  color: #91a0a6;
  margin-top: 3px;
}
.secondary-action {
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid #e4e9e9;
}
.secondary-action summary {
  font-size: 12px;
  font-weight: 600;
  color: #6d7f88;
  cursor: pointer;
}
.secondary-action form {
  margin-top: 14px;
}
.secondary-action .button {
  margin-top: 12px;
}
.empty-state {
  padding: 48px 25px;
  text-align: center;
  border: 1px dashed #c6d3d7;
  border-radius: 12px;
  background: #ffffff5e;
}
.empty-state h2 {
  font-size: 20px;
  margin-bottom: 11px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  max-width: 410px;
  margin: 0 auto;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stat strong {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}
.stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.orders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.order-card-top {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.reference {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #82949b;
  font-size: 10px;
}
.order-card h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.order-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.order-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid #e8ecec;
  padding-top: 15px;
}
.order-card .button {
  padding: 8px 13px;
  min-height: 36px;
  font-size: 11px;
}
.coverage-note {
  background: #fff8e9;
  border: 1px solid #e8dcbf;
  color: #8a7034;
  padding: 14px 16px;
  font-size: 12px;
  border-radius: 9px;
  margin-bottom: 19px;
  line-height: 1.6;
}
.signature-box {
  border: 1px solid #cfd9dc;
  border-radius: 8px;
  background: #fcfcf9;
  overflow: hidden;
}
.signature-box canvas {
  display: block;
  width: 100%;
  height: 145px;
  touch-action: none;
  cursor: crosshair;
}
.signature-footer {
  border-top: 1px dashed #d9e0e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  color: #8c9a9f;
  font-size: 10px;
}
.signature-footer button {
  font-size: 11px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: #6e818a;
}
.signature-box.invalid {
  border-color: #b64e31;
}
.saved-link {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #eaf2ef;
  padding: 13px 15px;
  border-radius: 8px;
  margin-top: 18px;
}
.saved-link p {
  font-size: 11px;
  margin: 0;
  color: #456b59;
}
.saved-link .button {
  font-size: 10px;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}
.company-note {
  font-size: 11px;
  line-height: 1.6;
  color: #8a989f;
  margin-top: 17px;
}
.outbox {
  margin-top: 28px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.outbox summary {
  font-size: 11px;
  cursor: pointer;
}
.message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.message-row .message-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.message-row small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.record-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(960px, 95vw);
  height: min(900px, 92vh);
  color: var(--ink);
  box-shadow: 0 20px 100px #102d3d30;
}
.record-dialog::backdrop {
  background: #102d3d80;
  backdrop-filter: blur(3px);
}
.dialog-toolbar {
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dialog-toolbar .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.dialog-toolbar h2 {
  font-size: 19px;
  margin: 0;
}
#recordFrame {
  border: 0;
  display: block;
  width: 100%;
  height: calc(100% - 94px);
  background: white;
}
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1112px;
  margin: 0 auto;
  padding: 25px 0 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  color: #8b989c;
  font-size: 10px;
}
.site-footer > span:first-child {
  font-size: 16px;
  letter-spacing: -0.7px;
  font-weight: 650;
  color: #6c7e86;
}
.site-footer p {
  margin: 0;
}
.footer-note {
  margin-left: auto;
}
.inline-empty {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.error-page {
  max-width: 560px;
  margin: 60px auto;
}
.error-page h1 {
  font-size: 30px;
}
.record-detail .kv {
  grid-template-columns: 125px 1fr;
}
.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #e8f2eb;
  color: #296647;
  border-radius: 50%;
  font-size: 21px;
  margin-bottom: 18px;
}
.alert-inline {
  margin: 16px 0 0;
  font-size: 12px;
  color: #8f492b;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .request-grid {
    gap: 35px;
    grid-template-columns: 0.72fr 1.28fr;
  }
  .site-header {
    padding: 24px;
  }
  #main {
    padding: 0 24px;
  }
  .panel {
    padding: 24px;
  }
  .intro h1 {
    font-size: 35px;
  }
  .detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
  }
  .site-footer {
    margin: 0 24px;
  }
  .intro .lede {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding: 21px 20px;
  }
  .brand {
    font-size: 23px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.15px;
  }
  .brand-mark {
    transform: scale(0.85) skew(-10deg);
    margin-right: -3px;
  }
  nav {
    gap: 12px;
  }
  .nav-role {
    display: none;
  }
  #main {
    padding: 0 20px;
    margin-top: 7px;
    margin-bottom: 45px;
  }
  .request-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .intro {
    padding: 14px 0 5px;
    position: static;
  }
  .intro h1 {
    font-size: 35px;
    max-width: 420px;
    margin-bottom: 15px;
  }
  .intro .lede {
    max-width: 480px;
    font-size: 13px;
  }
  .intro .eyebrow {
    margin-bottom: 13px;
  }
  .intro-rule,
  .steps,
  .intro-note {
    display: none;
  }
  .panel {
    padding: 23px;
    border-radius: 12px;
  }
  .panel-heading {
    margin-bottom: 23px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .page-heading {
    margin: 18px 0 22px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 8px 11px;
    min-height: 35px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .status-card {
    padding: 25px;
  }
  .status-card h2 {
    font-size: 24px;
  }
  .detail-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-sidebar .panel {
    margin: 0;
  }
  .stats-row {
    gap: 9px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 10px;
  }
  .orders-grid {
    grid-template-columns: 1fr;
  }
  .order-card {
    padding: 22px;
  }
  .site-footer {
    margin: 0 20px;
    flex-wrap: wrap;
    gap: 9px 16px;
  }
  .footer-note {
    margin-left: 0;
    width: 100%;
    font-size: 9px;
  }
  .site-footer p {
    font-size: 9px;
  }
  .dialog-toolbar {
    padding: 17px;
    align-items: flex-start;
  }
  .dialog-toolbar .button {
    font-size: 10px;
    padding: 9px 10px;
    min-height: 34px;
  }
  .dialog-toolbar .button-row {
    gap: 6px;
  }
  .dialog-toolbar h2 {
    font-size: 16px;
  }
  .record-dialog {
    width: 96vw;
    height: 94vh;
    max-width: none;
  }
  .preview-strip {
    font-size: 10px;
  }
  .outbox {
    padding: 15px 0;
  }
  .quote-total {
    font-size: 36px;
  }
}
@media (max-width: 390px) {
  #main {
    padding: 0 15px;
  }
  .site-header {
    padding: 20px 15px;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    gap: 17px 12px;
  }
  .brand small {
    display: none;
  }
  .brand {
    font-size: 23px;
  }
  .tap-row {
    grid-template-columns: 1fr;
  }
  .tap-row .checkbox-label {
    padding-top: 0;
    margin-top: -6px;
  }
  .intro h1 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Collective integration surfaces. */
.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  z-index: 20;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  gap: 28px;
}
.brand {
  font-size: 23px;
  letter-spacing: -0.7px;
  max-width: 580px;
}
.brand > span:last-child {
  min-width: 0;
}
.brand-light {
  white-space: nowrap;
}
.brand small {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12px;
  font-weight: 450;
  color: var(--muted);
  margin-top: 8px;
}
.brand-mark {
  flex: 0 0 35px;
}
nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px 16px;
  max-width: 340px;
}
.preview-strip {
  min-height: 31px;
  height: auto;
  padding: 7px 16px;
  text-align: center;
}
.intro h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.4rem);
}
.request-panel .eyebrow {
  margin-bottom: 9px;
}
.request-panel .form-foot > .button {
  margin-top: 20px;
}
.tap-check {
  justify-content: center;
  padding-top: 23px;
}
.field input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  padding: 0;
  flex: 0 0 16px;
}
.field input[type="file"] {
  font-size: 12px;
  padding: 10px;
  background: #fbfcfb;
}
input::file-selector-button {
  border: 0;
  border-radius: 4px;
  padding: 7px 9px;
  margin-right: 8px;
  color: var(--ink);
  background: #e9eeec;
  font: inherit;
  cursor: pointer;
}
.field input:read-only {
  background: #f4f6f5;
}
.field input:disabled,
.field select:disabled {
  background: #f3f5f4;
  color: #79868a;
}
.status-card {
  margin-bottom: 20px;
}
.status-card + .panel {
  margin-top: 20px;
}
.page-heading {
  align-items: center;
}
.page-heading .button-row {
  justify-content: flex-end;
  flex-shrink: 0;
}
.page-heading h1 {
  overflow-wrap: anywhere;
}
.status-pill {
  white-space: normal;
  text-align: center;
}
.status-pill.awaiting_release,
.status-pill.awaiting_venue,
.status-pill.needs_review,
.status-pill.partial,
.status-pill.no_work {
  background: #f7ead9;
  color: #886225;
}
.status-pill.disputed,
.status-pill.rejected,
.status-pill.cancelled {
  background: #f9e8e4;
  color: #9b4c35;
}
.status-pill.released {
  background: #e6edf4;
  color: #42647f;
}
.status-pill.offered,
.status-pill.quoted,
.status-pill.invited {
  background: #e9f0ed;
  color: #32654c;
}
.hold-label {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #ffffff3b;
  background: #ffffff0c;
  color: #f2d6ba;
}
.venue-title {
  font-size: 21px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.company-name {
  font-weight: 700;
  margin-bottom: 8px;
}
.kv {
  row-gap: 10px;
}
.kv dd {
  overflow-wrap: anywhere;
}
.request-copy,
.term-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-lines {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}
.term-lines .term-value {
  font-size: 14px;
  line-height: 1.6;
}
.quote-total {
  margin-bottom: 12px;
}
.reference {
  overflow-wrap: anywhere;
}
.gate-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.gate-list li {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  color: #68797f;
  line-height: 1.4;
}
.gate-list li > span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #f1f3f2;
  border: 1px solid #dde4e1;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.gate-list li.done {
  color: var(--green);
}
.gate-list li.done > span {
  background: #e7f2e9;
  border-color: #cde2d2;
}
.fixed-terms {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  background: #f8f8f5;
  border: 1px solid #e4e7e2;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 18px;
  margin: 18px 0 22px;
  overflow-wrap: anywhere;
}
.accepted-note {
  color: var(--green);
  background: #eef5ee;
  border: 1px solid #dfeade;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 17px;
}
.review-note {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  margin: 16px 0 8px;
  color: var(--green);
  background: #eaf3eb;
  border-radius: 6px;
}
.review-note.warning {
  background: #f8edda;
  color: #8b602a;
}
.subtle-box h3 {
  margin-bottom: 10px;
}
.subtle-box .fine-print {
  margin: 15px 0;
}
.subtle-box form {
  margin-top: 18px;
}
form > .button {
  margin-top: 18px;
}
.danger-text {
  color: #9c4732 !important;
}
.section-gap {
  margin-top: 28px;
  margin-bottom: 20px;
}
.retry-card {
  border: 1px solid #e9cda2;
  background: #fff5e4;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 22px;
  color: #75542e;
}
.retry-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.retry-card p {
  font-size: 12px;
  margin: 7px 0 12px;
}
.retry-card .button-row {
  flex-wrap: wrap;
}
.retry-card .button {
  font-size: 11px;
}
.receipt-panel {
  max-width: 670px;
  margin: 45px auto 80px;
  padding: 44px;
}
.receipt-panel .success-check {
  margin-bottom: 25px;
}
.receipt-panel h1 {
  font-size: 36px;
}
.receipt-panel .lede {
  color: #596e78;
  font-size: 16px;
}
.receipt-reference {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  margin: 25px 0;
  display: grid;
  gap: 8px;
}
.receipt-reference small {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.receipt-reference strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.visit-entry {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 25px;
}
.visit-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 15px;
}
.visit-heading h3 {
  margin: 0 0 5px;
  line-height: 1.5;
}
.visit-heading p {
  margin-bottom: 0;
}
.visit-number {
  background: #eff2ef;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.response-label {
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8edda;
  font-size: 12px;
  color: #8a662e;
  margin-bottom: 18px;
  line-height: 1.5;
}
.response-label.confirmed {
  background: #eaf3eb;
  color: var(--green);
}
.response-label.disputed {
  background: #f8e9e5;
  color: #994f3a;
}
.attachment-row {
  margin: 18px 0;
  flex-wrap: wrap;
}
.signature-box canvas {
  height: 190px;
  width: 100%;
  display: block;
  touch-action: none;
}
.signature-footer {
  align-items: center;
}
.signature-footer > span {
  font-size: 11px;
}
.record-detail .panel-heading {
  flex-wrap: wrap;
}
.record-access .button {
  margin-top: 4px;
}
.record-dialog {
  border: 0;
}
.file-dialog {
  width: min(90vw, 850px);
  max-height: 92vh;
  border: 0;
  border-radius: 13px;
  padding: 0;
  background: white;
  color: var(--ink);
}
.file-dialog::backdrop {
  background: #0c2539b5;
}
.file-dialog .dialog-toolbar {
  border-bottom: 1px solid var(--line);
}
.file-dialog h2 {
  font-size: 18px;
  margin: 0;
}
.file-dialog img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  padding: 18px;
  background: #f5f5f1;
}
.orders-grid {
  margin-bottom: 28px;
}
.order-card p {
  overflow-wrap: anywhere;
}
.order-card-top {
  align-items: flex-start;
}
.local-inbox {
  margin-top: 30px !important;
}
.inbox-count {
  border-radius: 50%;
  background: #f1f3f0;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.inbox-message {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.inbox-message:last-child {
  padding-bottom: 0;
}
.inbox-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.inbox-top strong {
  font-size: 13px;
  text-transform: capitalize;
}
.inbox-top p {
  margin: 6px 0 15px;
  overflow-wrap: anywhere;
}
.delivery-status {
  padding: 6px 9px;
  border-radius: 5px;
  background: #eff2ef;
  color: #64736e;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.delivery-status.failed {
  background: #fae8e1;
  color: #9c4f33;
}
.delivery-status.local_available {
  background: #e9f2e9;
  color: #36644a;
}
.access-details {
  margin: 14px 0;
}
.access-details summary {
  cursor: pointer;
  font-size: 11px;
  color: #6e7f84;
}
.access-details code {
  display: block;
  background: #f4f5f1;
  border-radius: 5px;
  padding: 12px;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.delivery-actions .button {
  padding: 5px 0;
  min-height: 30px;
}
.button:disabled {
  cursor: not-allowed;
}
.site-footer {
  flex-wrap: wrap;
}
.site-footer > span:first-child {
  font-size: 13px;
}
.site-footer .footer-note {
  white-space: normal;
}
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }
  .brand {
    font-size: 22px;
    max-width: 430px;
  }
  .brand-light {
    display: block;
  }
  .brand small {
    max-width: 310px;
  }
  nav {
    max-width: 210px;
  }
  .request-grid {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button-row {
    max-width: 240px;
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding: 22px 20px 16px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .brand {
    font-size: 22px;
    max-width: 100%;
  }
  .brand-light {
    display: inline;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0;
    max-width: 360px;
    display: block;
  }
  nav {
    max-width: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 18px;
    padding: 10px 0 0;
    border-top: 1px solid #e3e5df;
  }
  .nav-role {
    display: inline-block;
    margin-left: auto;
    padding: 6px 9px;
    font-size: 10px;
  }
  .request-grid {
    grid-template-columns: 1fr;
  }
  .intro h1 {
    font-size: 38px;
  }
  .intro .lede {
    font-size: 14px;
    line-height: 1.7;
  }
  .intro-note {
    display: block;
    max-width: 100%;
    margin-top: 18px;
    padding-top: 13px;
    font-size: 11px;
  }
  .request-panel .panel-heading {
    margin-bottom: 24px;
  }
  .page-heading {
    flex-direction: column;
    gap: 14px;
  }
  .page-heading .button-row {
    max-width: none;
    justify-content: flex-start;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .panel {
    padding: 23px;
  }
  .receipt-panel {
    margin: 25px auto 55px;
    padding: 28px;
  }
  .receipt-panel h1 {
    font-size: 30px;
  }
  .receipt-panel .lede {
    font-size: 14px;
  }
  .fixed-terms {
    padding: 15px;
  }
  .inbox-top {
    gap: 12px;
  }
  .inbox-top strong {
    font-size: 12px;
  }
  .inbox-top p {
    font-size: 11px;
  }
  .dialog-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .file-dialog {
    width: 96vw;
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .field.full {
    grid-column: auto;
  }
  .tap-check {
    padding-top: 0;
    margin-top: -7px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .field input[type="file"] {
    font-size: 12px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-light {
    display: block;
  }
  .brand-mark {
    align-self: center;
  }
  .brand small {
    max-width: 260px;
    font-size: 9px;
  }
  .preview-strip {
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 9px;
  }
  .page-heading .status-pill {
    max-width: 220px;
  }
  .kv {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .term-lines {
    gap: 20px;
  }
  .term-lines .term-value {
    font-size: 13px;
  }
  .quote-total {
    font-size: 35px;
  }
  .quote-total small {
    font-size: 11px;
  }
  .signature-box canvas {
    height: 160px;
  }
  .button-row {
    flex-wrap: wrap;
  }
  .inbox-top {
    flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
  }
  .inbox-top p {
    margin-bottom: 8px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat span {
    line-height: 1.5;
  }
  .record-detail .button {
    font-size: 11px;
  }
  .site-footer {
    gap: 12px;
  }
  .footer-note {
    font-size: 10px;
  }
}
@media print {
  .site-header,
  .site-footer,
  .preview-strip,
  .skip-link,
  #notice {
    display: none;
  }
}

#deliveryDialog { max-width: 660px; width: calc(100% - 32px); padding: 24px; border: 1px solid var(--line, #d7e0e4); border-radius: 16px; }
.delivery-content { overflow-wrap: anywhere; }
.delivery-content h3 { margin-top: 24px; }
.delivery-content p { margin: 12px 0; }
