/* Colours and type follow the design canvas. */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/nunito-sans-latin.woff2') format('woff2');
}

:root {
  --page: #f4f6f9;
  --surface: #ffffff;
  --sunken: #eceff3;
  --navy: #275173;
  --blue: #2171b9;
  --blue-soft: #e8f1f9;
  --text: #16283a;
  --muted: #55606e;
  --line: #e3e6ec;
  --warn: #8a3d00;
  --warn-line: #b85c00;
  --warn-soft: #fdebd8;
  --ok: #1d6b45;
  --ok-soft: #e2f3ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; }
code { background: var(--sunken); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side {
  flex: 1 1 220px; max-width: 100%;
  background: var(--navy); color: #ffffff;
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.logo { padding: 4px 8px 20px; display: block; }
.logo img { max-width: 100%; height: auto; display: block; }
.nav-link { padding: 10px 12px; border-radius: 8px; color: #e8ecf2; text-decoration: none; font-weight: 700; }
.nav-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.nav-link[aria-current='page'] { background: var(--blue); color: #ffffff; font-weight: 800; }
.who { margin-top: auto; padding: 16px 12px 4px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.who-name { font-weight: 800; }
.who-role { color: #d5e2ee; }
.who form { align-items: flex-start; }
.link-button { background: none; border: none; padding: 6px 0; color: #ffffff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 20px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.back { font-size: 13px; font-weight: 800; text-decoration: none; }

.flash { border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border: 1.5px solid var(--ok); }
.flash-error { background: var(--warn-soft); color: var(--warn); border: 1.5px solid var(--warn-line); }

/* ---------- buttons, pills, fields ---------- */
.button {
  min-height: 40px; padding: 0 16px; border: none; border-radius: 8px;
  background: var(--blue); color: #ffffff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.button:hover { background: var(--navy); }
.button-big { min-height: 52px; width: 100%; font-size: 17px; border-radius: 12px; }
.button-warn { background: var(--surface); color: var(--warn); border: 2px solid var(--warn-line); }
.button-warn:hover { background: var(--warn-soft); }
.button-quiet { background: var(--blue-soft); color: var(--navy); }
.button-quiet:hover { background: #d5e2ee; }

.pill { display: inline-block; font-size: 12px; font-weight: 800; color: #ffffff; background: var(--blue); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill-quiet { background: var(--sunken); color: var(--navy); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-done { background: var(--ok-soft); color: var(--ok); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--text);
  border: 1px solid #b9c0cb; border-radius: 8px; padding: 9px 10px; background: var(--surface); width: 100%;
}
form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.send-back { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- what's due ---------- */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 16px; align-items: start; }
.column { display: flex; flex-direction: column; gap: 10px; }
.column-head { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.column-head.accent { color: var(--navy); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-due { border: 2px solid var(--blue); }
.card-billed { background: var(--sunken); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title { font-weight: 800; }
.card-amount { font-size: 16px; font-weight: 800; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-line { font-size: 13px; }
.card-link { font-size: 13px; font-weight: 800; text-decoration: none; }
.warn { color: var(--warn); font-weight: 800; }
.strong { color: var(--navy); font-weight: 800; }

/* ---------- lists and tables ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; }
.panel .list { border: none; border-radius: 0; margin: 0 -14px -12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.list > .row:first-child { border-top: none; }
.panel .list > .row:first-child { border-top: 1px solid var(--line); }
a.row:hover { background: var(--blue-soft); color: inherit; }
.row-main { flex: 1 1 14rem; display: flex; flex-direction: column; }
.row-side { flex: 0 0 13rem; display: flex; flex-direction: column; font-size: 14px; }
.row > .pill { min-width: 7.5rem; text-align: center; }
.row-title { font-weight: 800; }
.row-sub { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel .table-wrap { border: none; border-radius: 0; margin: 0 -14px -12px; }
.table { width: 100%; border-collapse: collapse; min-width: 40rem; }
.table-plain { min-width: 30rem; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-title { display: block; font-weight: 800; text-decoration: none; }
.cell-sub { display: block; font-size: 13px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--blue); color: inherit; }
.tile-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile-value { font-size: 26px; font-weight: 800; color: var(--navy); }
.tile-sub { font-size: 13px; color: var(--muted); }

/* ---------- task and project ---------- */
.task-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.panel-accent { border: 2px solid var(--blue); }
.panel-warn { border: 2px solid var(--warn-line); }
.panel-head { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel-strong { font-size: 18px; font-weight: 800; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 8px; }
.photo {
  height: 104px; border-radius: 10px; background: #c6c9d4; padding: 6px 8px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  font-size: 12px; font-weight: 700;
}
.photo { position: relative; overflow: hidden; color: inherit; text-decoration: none; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo > span { position: relative; }
.photo img ~ span:last-child:not(:empty) { background: rgba(255, 255, 255, 0.85); padding: 1px 6px; border-radius: 6px; }
.photo-flagged, .photo-problem { border: 3px solid var(--warn-line); }
.photo-tag { background: var(--warn-soft); color: var(--warn); font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.notice { background: var(--warn-soft); color: var(--warn); border: 1.5px solid var(--warn-line); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.activity li { display: flex; flex-direction: column; }
.activity-text { font-size: 14px; }

/* ---------- sign-in ---------- */
.plain { display: flex; justify-content: center; padding: 48px 16px; }
.sign-in { width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: 16px; }
.sign-in img { max-width: 100%; height: auto; }
.people { gap: 8px; }
.people h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.person {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.person:hover { border-color: var(--blue); background: var(--blue-soft); }
.person-name { font-weight: 800; }
.person-role { font-size: 13px; color: var(--muted); }

/* ---------- lists: extras ---------- */
.list-warn { border: 2px solid var(--warn-line); }
.column-head.warn { color: var(--warn); }
.row-quote { font-size: 14px; margin-top: 4px; }
.row > form { flex: 0 0 auto; }
.as-link { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
a.button:hover { color: #ffffff; }
a.button-quiet:hover, a.button-warn:hover { color: inherit; }
.button[disabled] { background: #b9c0cb; cursor: not-allowed; }

/* ---------- the sub's pages: phone first ---------- */
.sub { background: var(--page); }
.sub-page { max-width: 30rem; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.sub-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.sub-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sub-title h1 { font-size: 20px; line-height: 1.15; }
.sub-title span { font-size: 13px; color: var(--muted); }
.sub-back { width: 44px; height: 44px; margin-left: -10px; display: flex; align-items: center; justify-content: center; color: var(--navy); flex: 0 0 auto; }
.lang { flex-direction: row; gap: 0; flex: 0 0 auto; }
.lang button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.lang button:first-of-type { border-radius: 8px 0 0 8px; }
.lang button:last-of-type { border-radius: 0 8px 8px 0; border-left: none; }
.lang button[aria-pressed='true'] { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.sub-main { flex: 1 1 auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sub-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.sub-foot form, .sub-foot .field { text-align: left; }
.sub-note { font-size: 13px; color: var(--muted); text-align: center; }
.sub-section { display: flex; flex-direction: column; gap: 8px; }
.sub-section h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; min-height: 44px; }
.job:hover { border-color: var(--blue); color: inherit; }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-name { font-size: 16px; font-weight: 800; }
.job-sub { font-size: 13px; color: var(--muted); }
.ask { background: var(--surface); border: 2px solid var(--blue); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ask-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.ask-job { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ask-other { font-size: 14px; font-weight: 800; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.foot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 10px; }
.foot-row .button { min-height: 48px; width: 100%; }
.notice-from { font-weight: 400; font-size: 12px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shot { position: relative; border-radius: 10px; overflow: hidden; background: #c6c9d4; aspect-ratio: 4 / 3; }
.shot img, .shot-blank { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .photo-tag { position: absolute; top: 6px; left: 6px; font-size: 12px; }
.shot form { position: absolute; right: 6px; bottom: 6px; }
.shot-remove { min-height: 36px; padding: 0 12px; border: none; border-radius: 8px; background: rgba(22, 40, 58, 0.85); color: #ffffff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.upload input[type='file'] { padding: 8px; }
.choices { border: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--blue); background: var(--blue-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }

@media (max-width: 760px) {
  .main { padding: 20px 16px 32px; }
  .task-grid { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .logo { padding: 4px 8px; flex: 1 0 100%; }
  .who { margin: 0 0 0 auto; padding: 0 8px; flex-direction: row; align-items: center; gap: 10px; }
  .who-role { display: none; }
}

/* ---------- the customer's pages ---------- */
.cust { font-size: 16px; line-height: 1.5; background: #f7f8fa; min-height: 100vh; display: flex; flex-direction: column; }
.cust h2 { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.cust h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }
.c-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.c-head-in { max-width: 60rem; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.c-logo { margin-right: auto; display: flex; }
.c-logo img { height: 40px; width: auto; display: block; }
.c-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 700; }
.c-nav a { color: #3d4652; text-decoration: none; padding: 12px 0; border-bottom: 3px solid transparent; min-height: 44px; }
.c-nav a[aria-current='page'] { color: var(--navy); border-bottom-color: var(--blue); font-weight: 800; }
.c-where { font-size: 15px; font-weight: 700; color: #3d4652; }
.c-main { flex: 1 0 auto; width: 100%; max-width: 60rem; margin: 0 auto; padding: 36px 24px 56px; display: flex; flex-direction: column; gap: 32px; }
.c-narrow { max-width: 46rem; gap: 24px; }
.c-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 16px 24px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: 14px; color: var(--muted); }
.c-foot form { flex-direction: row; align-items: center; gap: 8px; }
.c-link { background: none; border: none; padding: 0; min-height: 44px; color: var(--blue); font: inherit; font-weight: 800; cursor: pointer; }
.c-intro { display: flex; flex-direction: column; gap: 8px; }
.c-intro h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; }
.c-eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); }
.c-lead { font-size: 18px; line-height: 1.55; color: #3d4652; max-width: 44rem; }
.c-lead strong { color: var(--text); }
.c-backlink { font-size: 15px; font-weight: 800; text-decoration: none; }
.c-tag { font-size: 13px; font-weight: 800; color: var(--warn); }
.c-tag-quiet { color: var(--muted); }
.c-section { display: flex; flex-direction: column; gap: 14px; }
.c-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 800; }
.c-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.c-card-ask { border: 2px solid var(--warn-line); }
.c-card-ask p { flex-grow: 1; color: #3d4652; }
.c-card-sign { border: 2px solid var(--blue); }
.c-card-done { border: 2px solid var(--ok); }
.c-card-link { color: inherit; text-decoration: none; }
.c-card-link:hover { border-color: var(--blue); color: inherit; }
.c-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.c-numbered { margin: 0; padding: 0; list-style: none; counter-reset: item; display: flex; flex-direction: column; }
.c-numbered li { counter-increment: item; padding: 12px 0; border-top: 1px solid var(--line); }
.c-numbered li::before { content: counter(item) '. '; font-weight: 800; }
.c-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 12px 8px; }
.c-step { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.c-step-bar { height: 8px; border-radius: 4px; background: #dfe3ea; margin-bottom: 4px; }
.c-step-done .c-step-bar { background: var(--navy); }
.c-step-now .c-step-bar { background: var(--blue); outline: 3px solid #c9dff2; }
.c-step-name { font-weight: 700; color: #3d4652; }
.c-step-when { font-weight: 600; color: var(--muted); }
.c-step-now .c-step-name { font-weight: 800; color: var(--navy); }
.c-step-now .c-step-when { font-weight: 800; color: var(--blue); }
.c-ticks, .c-updates { list-style: none; padding: 6px 22px; gap: 0; }
.c-ticks li, .c-updates li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.c-ticks li:first-child, .c-updates li:first-child { border-top: none; }
.c-tick-done > span:first-child { color: var(--muted); }
.c-when { font-size: 14px; color: var(--muted); white-space: nowrap; }
.c-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 16px; }
.c-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.c-photo img, .c-photo-blank { width: 100%; height: 12rem; object-fit: cover; border-radius: 14px; background: #dfe3ea; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #3d4652; }
.c-band { background: var(--navy); color: #ffffff; border-radius: 16px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.c-band > div { flex: 1 1 18rem; display: flex; flex-direction: column; gap: 8px; }
.c-band h2 { color: #ffffff; }
.c-band p { color: #e8ecf2; max-width: 46rem; }
.c-band-button { flex: 0 1 16rem; background: #ffffff; color: var(--navy); padding: 0 20px; }
a.c-band-button:hover { background: var(--blue-soft); color: var(--navy); }
.c-total, .c-fact { gap: 4px; font-size: 14px; color: #3d4652; }
.c-fact { background: var(--page); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.c-fact-now { background: var(--blue-soft); }
.c-total-next { border: 2px solid var(--blue); }
.c-total-label { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.c-total-value { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.c-rows { padding: 0; gap: 0; overflow: hidden; }
.c-rows > h2 { padding: 20px 22px 12px; }
.c-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 22px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.c-rows > .c-row:first-child { border-top: none; }
a.c-row:hover { background: var(--blue-soft); color: inherit; }
.c-row-main { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #3d4652; }
.c-row-title { font-size: 16px; font-weight: 800; color: var(--text); }
.c-row-past .c-row-title, .c-row-past .c-row-amount { color: #3d4652; }
.c-row-amount { flex: 0 0 6.5rem; text-align: right; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-field { font-size: 14px; font-weight: 800; color: #3d4652; }
.c-field input, .c-field textarea { min-height: 48px; font-size: 16px; border: 1.5px solid #9aa3b2; border-radius: 10px; padding: 10px 14px; font-weight: 400; }
.c-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.c-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.cust .button { min-height: 48px; font-size: 16px; border-radius: 10px; }
.cust .button-big { min-height: 56px; font-size: 18px; border-radius: 12px; }
.c-card form { gap: 14px; }
.sign-draw { display: flex; flex-direction: column; gap: 6px; }
.sign-draw[hidden], .sign-missing[hidden] { display: none; }
.sign-draw-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 800; color: #3d4652; }
.sign-pad { width: 100%; height: auto; aspect-ratio: 600 / 180; border: 1.5px dashed #9aa3b2; border-radius: 12px; touch-action: none; cursor: crosshair;
  background: linear-gradient(#9aa3b2, #9aa3b2) no-repeat 20px 78% / calc(100% - 40px) 1.5px, #f7f8fa; }
.sign-missing { color: var(--warn); font-weight: 800; font-size: 14px; }
.sign-shown { width: 100%; max-width: 30rem; height: auto; border-bottom: 1.5px solid #9aa3b2; }
.sign-typed { font-size: 28px; font-style: italic; font-weight: 600; border-bottom: 1.5px solid #9aa3b2; padding-bottom: 4px; max-width: 30rem; }
.c-terms { margin: 0; display: flex; flex-direction: column; }
.c-terms > div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.c-terms dt { flex: 0 0 13rem; font-size: 14px; font-weight: 800; color: var(--muted); }
.c-terms dd { margin: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
.record { max-width: 46rem; display: flex; flex-direction: column; gap: 16px; }

/* ---------- staff: customers, sharing, sign-off ---------- */
.photo-cell { display: flex; flex-direction: column; gap: 4px; }
.photo-cell form { gap: 0; }
.share { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--navy); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.share[aria-pressed='true'] { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.contacts { display: flex; flex-direction: column; }

@media (max-width: 640px) {
  .c-head-in { padding: 10px 16px; }
  .c-main { padding: 24px 16px 40px; gap: 24px; }
  .c-card { padding: 18px; }
  .c-row, .c-rows > h2 { padding-left: 18px; padding-right: 18px; }
  .c-row-amount { flex: 1 0 auto; }
}
@media print {
  .c-head, .c-foot, .c-backlink, .side, .back { display: none; }
  body, .cust { background: #ffffff; }
}

/* ---------- staff forms: change orders and the punch list ---------- */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 10px; align-items: end; }
.choices { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.choices legend { padding: 0; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.choice { display: flex; align-items: center; gap: 8px; }
.choice input { width: 18px; height: 18px; margin: 0; }
.prose { white-space: pre-line; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.panel .list:not(:last-child) { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.more > summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--blue); padding: 4px 0; }
.more[open] > summary { margin-bottom: 10px; }
a.row-title { text-decoration: none; }
.narrow { max-width: 30rem; }
