/* Lithomatic — additions for the Laravel app: form errors, the enquiry
   page, and the staff dashboard. Everything else comes from site.css. */

/* --- Form errors ------------------------------------------------------ */
.field__error {
  margin-top: 7px; font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .06em;
  color: var(--red);
}
.field__error + .field__error { margin-top: 3px; }
.field:has(> .field__error) .input,
.field:has(> .field__error) .select,
.field:has(> .field__error) .textarea { border-color: var(--red); }
.reveal[hidden] { display: none; }
.stamp-lines + .field__error { margin-top: 10px; }
.alert--ok { background: var(--navy); border-left-color: var(--navy-d); }

/* --- Order form: the configurator card ---------------------------------
   One card, sections numbered down the side, every option a select — on
   each product page and on /order. */
.configurator {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -48px rgba(14, 23, 41, .45);
}
.cfg-head { padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.cfg-head h2 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.cfg-head p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.cfg-alert {
  margin: 18px 28px 0; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(220, 62, 55, .08); border: 1px solid rgba(220, 62, 55, .35);
  font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
.cfg-alert b { color: var(--red); }
.cfg-steps {
  display: none; list-style: none; margin: 0; padding: 18px 28px 0; gap: 8px;
}
.is-stepped .cfg-steps { display: flex; }
.cfg-steps li {
  flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 9px 12px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--cream); font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background-color .15s ease, border-color .15s ease;
}
.cfg-steps li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-steps li .cfg-n { background: var(--line-3); color: var(--ink); }
.cfg-steps li.is-current { background: var(--white); border-color: var(--navy); color: var(--ink); }
.cfg-steps li.is-current .cfg-n { background: var(--navy); color: var(--cream); }
.cfg-steps li.is-done { color: var(--ink); cursor: pointer; }
.cfg-steps li.is-done .cfg-n { background: var(--navy); color: var(--cream); }
.cfg-steps li.is-done:hover { border-color: var(--line-4); }
.cfg-step[hidden] { display: none; }
.cfg-nav { display: none; margin-top: -1px; padding: 22px 28px 26px; gap: 10px; justify-content: space-between; align-items: center; background: var(--cream); border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.is-stepped .cfg-nav { display: flex; }
.cfg-foot [data-back] { display: none; }
.is-stepped .cfg-foot [data-back] { display: inline-flex; }
.cfg-line[hidden], .cfg-field[hidden] { display: none; }
.cfg-section { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.cfg-section[hidden] { display: none; }
.cfg-h {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.cfg-n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--navy); color: var(--cream);
  font-family: var(--sans); font-size: 12px; font-weight: 700; line-height: 26px; text-align: center;
}
.cfg-h__meta { margin-left: auto; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--faint); }
.cfg-sub { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cfg-sub:first-child { margin-top: 0; }
.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cfg-grid .cfg-field--wide, .cfg-grid .field--wide { grid-column: 1 / -1; }
.cfg-grid .field { margin: 0; }
.cfg-other { margin-top: 8px; }
.cfg-other[hidden] { display: none; }
.cfg-foot { padding: 22px 28px 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--cream); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.cfg-foot .btn--accent { flex: 1 1 200px; }
.cfg-foot p a { border-bottom: 1px solid var(--line-3); }
.cfg-foot p { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--body); }
.configurator .stamp-lines { margin-top: 4px; }
.configurator .check--lg { font-size: 14px; }
.configurator .field__note { margin-top: 8px; }
.configurator .drop { padding: 22px 20px; }
.configurator .drop__t { font-size: 14px; }
.configurator .drop__d { font-size: 12.5px; }
@media (max-width: 640px) {
  .cfg-head, .cfg-section, .cfg-foot, .cfg-nav, .cfg-steps { padding-left: 18px; padding-right: 18px; }
  /* Three labelled tabs do not fit a phone: the current step keeps its
     label, the others shrink to their number. */
  .cfg-steps li { padding: 8px 8px; font-size: 12px; gap: 7px; flex: none; }
  .cfg-steps li > span:last-child { display: none; }
  .cfg-steps li.is-current { flex: 1; }
  .cfg-steps li.is-current > span:last-child { display: inline; }
  .cfg-nav .btn { padding-left: 18px; padding-right: 18px; }
  .cfg-alert { margin-left: 18px; margin-right: 18px; }
  .cfg-grid { grid-template-columns: 1fr; }
}

/* The product page: product on the left, the card on the right. */
.pdp--order { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(28px, 4vw, 56px); }
.pdp__info { position: sticky; top: 96px; }
.pdp--order .pdp__lede { margin-top: 24px; }
.pdp__how { margin: 26px 0 0; padding: 6px 0 0; list-style: none; display: flex; flex-direction: column; gap: 0; counter-reset: how; }
.pdp__how li {
  position: relative; padding: 16px 0 16px 42px; border-top: 1px solid var(--line);
  counter-increment: how;
}
.pdp__how li::before {
  content: counter(how); position: absolute; left: 0; top: 16px;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-4);
  font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; color: var(--navy);
}
.pdp__how b { display: block; font-size: 14.5px; font-weight: 600; }
.pdp__how span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.pdp__how a { border-bottom: 1px solid var(--line-3); }
@media (max-width: 1020px) {
  .pdp--order { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
}

/* /order/sent: a receipt */
.sent { max-width: 720px; margin: 36px auto 72px; }
.sent__head { text-align: center; }
.sent__head h1 { margin-top: 14px; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.sent__head .lede { margin: 14px auto 0; font-size: 15px; }
.sent__mark {
  display: flex; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--navy); color: var(--cream); align-items: center; justify-content: center;
}
.sent__mark svg { width: 26px; height: 26px; }
.sent__ref {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 22px; padding: 14px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line-2);
}
.sent__ref span { font-size: 12px; font-weight: 500; color: var(--muted); }
.sent__ref b { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: .01em; color: var(--red); line-height: 1.1; }
.sent__card { margin-top: 28px; text-align: left; }
.sent__card .spec-table th { width: 30%; }
.sent__card .cfg-foot .btn--primary { flex: 1 1 200px; }
.sent__card .cfg-foot p a { border-bottom: 1px solid var(--line-3); }

/* /order: the card on its own */
.flow-card { margin: 30px auto 60px; max-width: 760px; }
.flow-head { max-width: 62ch; margin: 0 auto; text-align: center; }
.flow-head .eyebrow { justify-content: center; }
.flow-head .lede { margin-left: auto; margin-right: auto; }

/* Helper text under fields reads as a sentence, not a label */
.field__note, .drop__d, .jobno__note, .panel__meta, .flow-actions__note {
  font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12.5px; line-height: 1.5;
}
.field__note { color: var(--muted); }

/* --- Contact page: sent state ----------------------------------------- */
.sent-note {
  border: 1px solid var(--line-2); background: var(--white); border-left: 4px solid var(--red);
  padding: 22px 24px; margin-top: 32px;
}
.sent-note__t { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.sent-note p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }
.sent-note b { font-family: var(--mono); font-weight: 500; color: var(--red); }

/* --- Staff: the shell ------------------------------------------------
   A navy sidebar with the sections; the page in the rest, on the cream
   ground, with a slim top bar for the title, search and the main action. */
:root { --shell-side: 248px; }
.shell { display: flex; min-height: 100vh; }
.shell__side {
  position: sticky; top: 0; align-self: flex-start; flex: none;
  width: var(--shell-side); height: 100vh; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 22px;
  background: var(--navy-d); color: rgba(247, 245, 240, .78);
}
.shell__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
.shell__brand img { width: 128px; }
.shell__brand .staff-tag { font-family: var(--sans); font-size: 10px; letter-spacing: .08em; font-weight: 700; padding: 4px 7px; background: var(--red); border-radius: 4px; }
.shell__nav { display: flex; flex-direction: column; gap: 4px; }
.shell__nav a, .shell__link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: rgba(247, 245, 240, .78);
  transition: background-color .15s ease, color .15s ease;
}
.shell__nav a svg, .shell__link svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.shell__nav a:hover, .shell__link:hover { background: rgba(247, 245, 240, .07); color: var(--cream); }
.shell__nav a[aria-current="page"] { background: rgba(247, 245, 240, .12); color: var(--white); font-weight: 600; }
.shell__nav a[aria-current="page"] svg { opacity: 1; }
.shell__count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 11px; background: var(--red); color: var(--white); font-size: 11.5px; font-weight: 700; text-align: center; }
.shell__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.shell__user { display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 1px solid rgba(247, 245, 240, .12); margin: 0; }
.shell__avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--red); color: var(--white); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.shell__who { display: flex; flex-direction: column; min-width: 0; }
.shell__who b { font-size: 13.5px; font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell__who button { align-self: flex-start; margin-top: 2px; padding: 0; background: none; border: 0; font: inherit; font-size: 12px; color: rgba(247, 245, 240, .6); cursor: pointer; }
.shell__who button:hover { color: var(--red-lt); }

.shell__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell__top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 28px; background: rgba(247, 245, 240, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.shell__burger { display: none; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line-3); border-radius: var(--radius); background: var(--white); color: var(--ink); cursor: pointer; }
.shell__burger svg { width: 100%; height: 100%; }
.shell__title { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.shell__search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.shell__search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.shell__search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-3); border-radius: var(--radius);
  background: var(--white); font: inherit; font-size: 13.5px; color: var(--ink);
}
.shell__search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 36, 60, .12); }
.shell__cta { flex: none; }
.shell__body { padding: 26px 28px 64px; }

@media (max-width: 1020px) {
  .shell__side { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 0 100vw rgba(14, 23, 41, 0); }
  .shell__side.is-open { transform: none; box-shadow: 0 0 0 100vw rgba(14, 23, 41, .35); }
  .shell__burger { display: block; }
  .shell__search { max-width: none; }
  .shell__cta { display: none; }
  .shell__top { padding: 0 16px; }
  .shell__body { padding: 20px 16px 56px; }
}
@media (max-width: 640px) {
  .shell__title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shell__side { transition: none; } }

/* --- Staff: pages ------------------------------------------------------ */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.admin-head h1 { margin-top: 12px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.admin-head .lede { margin-top: 10px; font-size: 14.5px; max-width: 60ch; }

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dash-head p { margin-top: 6px; font-size: 14px; color: var(--body); }

.flash {
  margin-bottom: 22px; padding: 12px 16px; border: 1px solid var(--line-2); background: var(--white);
  border-left: 4px solid var(--navy); border-radius: var(--radius); font-size: 13.5px; font-weight: 500;
}

/* KPI tiles */
.tiles { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-stat {
  position: relative; display: block; padding: 20px 20px 18px; color: inherit;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tile-stat:hover { border-color: var(--line-4); box-shadow: 0 14px 30px -24px rgba(14, 23, 41, .5); transform: translateY(-1px); color: inherit; }
.tile-stat__icon { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 10px; background: var(--cream); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.tile-stat__icon svg { width: 18px; height: 18px; }
.tile-stat__k { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tile-stat__v { display: block; margin-top: 12px; font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.tile-stat__d { display: block; margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.tile-stat--alert .tile-stat__v { color: var(--red); }
.tile-stat--alert .tile-stat__icon { background: rgba(220, 62, 55, .1); color: var(--red); }
.delta { font-weight: 700; color: var(--muted); }
.delta--up { color: #1F7A4D; }
.delta--down { color: var(--red); }

.dash-grid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dash-grid__main, .dash-grid__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1240px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Needs a reply */
.panel--attention { border-color: rgba(220, 62, 55, .4); }
.panel--attention .panel__head { color: var(--red); }
.attention { display: flex; flex-direction: column; }
.attention li + li { border-top: 1px solid var(--line); }
.attention a {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 22px; font-size: 13.5px; color: var(--ink);
}
.attention a:hover { background: var(--cream); }
.attention__ref { font-weight: 600; color: var(--navy); }
.attention__who { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention__what { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention__when { font-size: 12.5px; color: var(--red); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .attention a { grid-template-columns: 1fr auto; } .attention__what { display: none; } }

/* Orders a day: thin bars from a baseline */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; border-bottom: 1px solid var(--line-3); }
.bars__col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bars__bar { width: 100%; max-width: 28px; background: var(--navy); border-radius: 4px 4px 0 0; transition: background-color .15s ease; }
.bars__col:hover .bars__bar { background: var(--red); }
.bars__n { position: absolute; top: -18px; font-size: 11.5px; font-weight: 600; color: var(--body); }
.bars__col:not(:hover) .bars__n { opacity: 0; }
.bars__d { position: absolute; top: 100%; margin-top: 6px; font-size: 11px; color: var(--faint); white-space: nowrap; }
.panel__body:has(.bars) { padding-bottom: 40px; }

/* By status */
.status-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.status-bar__seg { display: block; height: 100%; }
.status-list { margin-top: 14px; display: flex; flex-direction: column; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.status-list li:last-child { border-bottom: 0; }
.status-list a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.status-list a:hover { color: var(--red); }
.status-list b { font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-dot--new, .status-bar__seg--new { background: var(--red); }
.status-dot--in_progress, .status-bar__seg--in_progress { background: var(--navy); }
.status-dot--invoiced, .status-bar__seg--invoiced { background: #5B6B8C; }
.status-dot--paid, .status-bar__seg--paid { background: #1F7A4D; }
.status-dot--closed, .status-bar__seg--closed { background: var(--line-4); }
.empty-note { font-size: 13px; color: var(--faint); }

.filter-tabs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-tabs a {
  border: 1px solid var(--line-3); padding: 9px 14px; font-size: 13px; font-weight: 600;
  font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--body); white-space: nowrap;
}
.filter-tabs a:hover { border-color: var(--navy); color: var(--navy); }
.filter-tabs a.is-on { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.filter-tabs a b { font-weight: 400; opacity: .7; margin-left: 6px; }
.filter-form { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-form .field { flex: 1; min-width: 200px; }
.filter-form .input, .filter-form .select { margin-top: 0; padding: 10px 12px; font-size: 13.5px; }
.filter-form .btn { padding: 11px 16px; }

.dtable .ref { font-family: var(--mono); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dtable .ref a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.dtable .who { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.dtable .who small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--body); }
.dtable tr.is-unread td { background: rgba(220, 62, 55, .035); }
.dtable tr.is-unread .ref::before {
  content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); margin-right: 8px; vertical-align: middle;
}
.dtable .muted { color: var(--faint); font-size: 12.5px; }
.pager { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.pager nav { display: flex; gap: 6px; }
.pager a, .pager span.cur {
  display: inline-block; min-width: 34px; text-align: center; padding: 7px 10px; border: 1px solid var(--line-3);
  font-family: var(--mono); font-weight: 600; font-size: 12px;
}
.pager span.cur { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.pager a:hover { border-color: var(--navy); }

.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl__dot { width: 9px; height: 9px; margin-top: 5px; background: var(--line-4); justify-self: center; }
.tl--reply .tl__dot { background: var(--navy); }
.tl--status .tl__dot { background: var(--red); }
.tl__meta { font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl__body { margin-top: 6px; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.tl--status .tl__body { font-size: 13px; color: var(--body); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th {
  text-align: left; width: 34%; padding: 11px 0; padding-right: 16px; vertical-align: top;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.spec-table td { padding: 11px 0; font-size: 14px; line-height: 1.55; border-bottom: 1px solid var(--line); white-space: pre-line; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.attach { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.attach:last-child { border-bottom: 0; }
.attach a { font-weight: 600; border-bottom: 1px solid var(--line-3); }
.attach span { font-family: var(--mono); font-weight: 600; font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.bar__track { grid-column: 1 / -1; height: 6px; background: var(--line); }
.bar__fill { height: 100%; background: var(--navy); }
.bar__n { font-family: var(--mono); font-weight: 600; font-size: 12px; }

.admin-form .field + .field { margin-top: 16px; }
.admin-form .btn { margin-top: 16px; }
.login-error { margin-top: 12px; }

@media (max-width: 560px) {
  .tl { grid-template-columns: 16px 1fr; }
}

/* The invoice on an order's page: a line-item table with live totals */
.inv-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 18px 24px; background: var(--cream); border-bottom: 1px solid var(--line); }
.inv-actions form { margin: 0; }
.inv-lines { width: 100%; border-collapse: collapse; margin-top: 4px; }
/* Side-by-side fields inside the invoice form sit on one line */
.admin-form .field-row .field + .field { margin-top: 0; }
.inv-lines th { text-align: left; padding: 0 8px 8px 0; font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.inv-lines td { padding: 0 8px 10px 0; vertical-align: top; }
.inv-lines td:last-child, .inv-lines th:last-child { padding-right: 0; width: 28px; }
.inv-lines .input { margin-top: 0; }
.inv-lines__n { width: 96px; }
.inv-lines__num { text-align: right; }
.inv-lines__amt { padding-top: 13px !important; text-align: right; white-space: nowrap; font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ink); width: 110px; }
.inv-lines__x { width: 28px; height: 28px; margin-top: 8px; border: 1px solid var(--line-3); border-radius: 50%; background: transparent; color: var(--faint); font-size: 16px; line-height: 1; cursor: pointer; }
.inv-lines__x:hover { border-color: var(--red); color: var(--red); }
.inv-totals { margin-top: 20px; margin-left: auto; max-width: 320px; }
.inv-totals div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; font-size: 13.5px; color: var(--body); border-bottom: 1px solid var(--line); }
.inv-totals b { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ink); }
.inv-totals__grand { border-bottom: 0 !important; border-top: 2px solid var(--navy); margin-top: 4px; padding-top: 10px !important; font-weight: 600; color: var(--ink) !important; }
.inv-totals__grand b { font-size: 16px; }
.tl--invoice .tl__dot { background: var(--red); }
@media (max-width: 760px) { .inv-lines__n { width: 70px; } .inv-lines__amt { display: none; } }

/* The Invoices section: list, invoice page, business settings. */
.inv-new { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inv-tiles .tile-stat__v { font-size: 30px; }
@media (max-width: 1240px) { .inv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .inv-tiles { grid-template-columns: minmax(0, 1fr); } }
.dtable .num { text-align: right; white-space: nowrap; font-family: var(--mono); font-weight: 600; font-size: 13px; }
.inv-pick { display: flex; align-items: center; gap: 8px; margin-left: auto; text-transform: none; letter-spacing: 0; }
.inv-pick .select { margin-top: 0; padding: 6px 30px 6px 10px; font-size: 13px; max-width: 260px; }
.inv-rail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.linkish { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-3); cursor: pointer; }
.linkish:hover { color: var(--red); border-color: var(--red); }
.linkish--danger { color: var(--red); }
.kv__v form { margin: 0; }
.admin-form .field-row + .field-row, .admin-form .field-row + .field, .admin-form .field + .field-row { margin-top: 18px; }
@media (max-width: 760px) { .inv-pick { margin-left: 0; width: 100%; } .inv-pick .select { max-width: none; flex: 1; } }

/* ==========================================================================
   Customer accounts — log in, the account card, new order, status.
   Laid out after the client's hand-drawn cards.
   ========================================================================== */
.auth__title { margin-top: 14px; font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.auth__lede { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--body); }
.auth__link { font-size: 13.5px; color: var(--body); border-bottom: 1px solid var(--line-3); }
.auth__register { margin-top: 30px; text-align: center; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.auth__register a { border-bottom: 2px solid var(--red); }
.auth__small { margin-top: 26px; font-size: 13px; line-height: 1.6; color: var(--faint); }
.auth__small a { color: var(--body); border-bottom: 1px solid var(--line-3); }

/* Email and password in one box, the arrow beside them */
.login-box { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; border: 1.5px solid var(--navy); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.login-box__fields { padding: 20px 22px; display: grid; gap: 14px; }
.login-box__fields .field + .field { margin-top: 0; }
.login-box__go { display: grid; place-items: center; border: 0; border-left: 1.5px solid var(--navy); background: var(--red); color: var(--white); cursor: pointer; transition: background .15s; }
.login-box__go:hover { background: var(--navy); }
.login-box__go:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.login-box__go svg { width: 28px; height: 28px; }
@media (max-width: 420px) {
  .login-box { grid-template-columns: minmax(0, 1fr); }
  .login-box__go { border-left: 0; border-top: 1.5px solid var(--navy); height: 54px; }
}

.acct { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); background: var(--cream); min-height: 60vh; }
.acct .flash { margin-bottom: 20px; }
.acct .crumbs { margin-bottom: 14px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }

/* The account card: who on the left, the account number boxed on the right */
.acct-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.acct-card__who { display: grid; gap: 24px; }
.acct-field__k { font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.acct-field__v { margin-top: 6px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line-3); font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.acct-card__no { align-self: start; padding: 18px 22px; border: 1.5px solid var(--navy); border-radius: var(--radius); text-align: right; min-width: 200px; }
.acct-card__num { margin-top: 6px; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: .04em; color: var(--red); }
.acct-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-top: 12px; }
.acct-out { margin-top: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.acct-out button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-3); cursor: pointer; }
@media (max-width: 640px) {
  .acct-card { grid-template-columns: minmax(0, 1fr); }
  .acct-card__no { text-align: left; min-width: 0; }
  .acct-card__actions .btn { flex: 1 1 100%; }
}

.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; }

/* New order: the site's order form, full width of the account column */
.acct-order { max-width: 860px; }

/* View Status */
.acct-table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acct-table th { text-align: left; padding: 14px 18px; font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2); background: var(--cream); }
.acct-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-ref { font-family: var(--display); font-weight: 700; letter-spacing: .03em; color: var(--red); white-space: nowrap; }
.acct-empty { padding: 28px; font-size: 15px; color: var(--body); }
@media (max-width: 640px) {
  .acct-table thead { display: none; }
  .acct-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .acct-table td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; }
  .acct-table td::before { content: attr(data-k); font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
}

/* Pads and stamps fields */
.field__opt { margin-left: 6px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.drop--sm { padding: 16px 18px !important; }
.textarea--lines { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.7; min-height: calc(6 * 1.7em + 24px); }

/* Start an Order: log in / register / guest */
.door { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: start; margin-top: 30px; }
.door__card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.door__card--main { border-color: var(--navy); box-shadow: 0 24px 48px -34px rgba(14, 23, 41, .55); }
.door__card h2 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.door__card > p:not(.door__n) { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.door__card .btn { margin-top: auto; }
.door__n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--cream); font-size: 13px; font-weight: 700; }
.door__login { display: grid; gap: 14px; margin-top: 6px; }
.door__login .btn { margin-top: 4px; }
.door__small { justify-self: center; font-size: 13px; color: var(--body); border-bottom: 1px solid var(--line-3); }
@media (max-width: 900px) { .door { grid-template-columns: minmax(0, 1fr); } }

/* Product page: the order panel — facts, what you choose, Start an Order */
.pdp-cta { position: sticky; top: 100px; padding: 0; }
.pdp-cta__head { padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 30px) 0; }
.pdp-cta__head h2 { margin-top: 10px; font-family: var(--display); font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.pdp-cta__facts { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius); }
.pdp-cta__facts div { padding: 12px 14px; }
.pdp-cta__facts div + div { border-left: 1px solid var(--line-2); }
.pdp-cta__facts dt { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pdp-cta__facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.pdp-cta__body { padding: 22px clamp(22px, 3vw, 30px) 6px; }
.pdp-cta__k { font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pdp-opts { margin-top: 10px; }
.pdp-opts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pdp-opts__label { padding-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pdp-opts__vals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pdp-opts__chip { padding: 4px 10px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 13px; color: var(--ink); background: var(--cream); white-space: nowrap; }
.pdp-opts__free { font-size: 13px; color: var(--muted); font-style: italic; }
.pdp-opts__hint { grid-column: 2; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pdp-cta__also { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.pdp-cta__foot { margin-top: 16px; padding: 20px clamp(22px, 3vw, 30px) 24px; background: var(--cream); border-top: 1px solid var(--line-2); }
.pdp-cta__foot p { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; }
.pdp-cta__foot a:not(.btn) { color: var(--body); border-bottom: 1px solid var(--line-3); }
@media (max-width: 1180px) { .pdp-cta { position: static; } }
@media (max-width: 420px) {
  .pdp-opts li { grid-template-columns: minmax(0, 1fr); }
  .pdp-opts__hint { grid-column: 1; }
  .pdp-cta__facts { grid-template-columns: minmax(0, 1fr); }
  .pdp-cta__facts div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* Required fields: a red star on the label; a step that is not finished
   marks each missing field in red with a line saying what is needed. */
.field__label.is-req::after { content: " *"; color: var(--red); }
