/* "We buy your gold" (/sell-gold/) and the account pages: the plain pages' type (page.css), with a dark, gold-lit hero
   and the homepage's gold slider. */
.pg--full { max-width: none; padding: 0; }
.sg-page { --noir: #14110e; --noir-2: #1f1a15; --gold-1: #f1d38a; --gold-2: #c9a24e; --gold-3: #8a6420; --cream: #fffdf9; }
.sg-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.sg-page .sg-kicker { margin: 0; font: 700 12px/1.4 'DM Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-1); }
.sg-page .sg-kicker--dark { color: var(--gold-3); }

/* hero */
.sg-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 500px at 78% 40%, rgba(201, 162, 78, .22), transparent 62%),
  radial-gradient(600px 400px at 8% 100%, rgba(201, 162, 78, .12), transparent 60%),
  linear-gradient(160deg, #1d1813, var(--noir) 55%, #0d0b09); }
.sg-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.sg-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 64px; }
.sg-crumbs { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.sg-crumbs a { color: rgba(255, 255, 255, .7); }
.sg-hero h1 { font: 500 clamp(40px, 5.4vw, 70px)/1.04 'Bodoni Moda', Georgia, serif; letter-spacing: -.015em; margin: 16px 0 0; color: #fff; }
.sg-hero h1 em { display: block; font-style: italic; color: var(--gold-1); }
.sg-page .sg-lede { font-size: 18px; color: rgba(255, 255, 255, .84); max-width: 46ch; margin: 22px 0 0; }
.sg-ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.sg-ticks li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .9); font-size: 16px; }
.sg-ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 9px; border-left: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: rotate(-45deg); }

/* the calculator */
.sg-calc { position: relative; background: var(--cream); color: var(--ink); padding: 28px 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(201, 162, 78, .5); }
.sg-calc::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(138, 100, 32, .22); pointer-events: none; }
.sg-page .sg-calc__title { font: 500 24px/1.2 'Bodoni Moda', Georgia, serif; margin: 0 0 14px; }
.sg-ctrl { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.sg-ctrl__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sg-ctrl__head label { font: 700 12px/1 'DM Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sg-read { font: 500 34px/1 'Bodoni Moda', Georgia, serif; color: var(--ink); }
.sg-read b { font-weight: inherit; }
.sg-read small { font: 500 14px/1 'DM Sans', sans-serif; color: var(--muted); margin-left: 6px; }
.sg-calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 2px; background: transparent; cursor: pointer; }
.sg-calc input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-2) var(--fill, 50%), rgba(30, 26, 20, .15) var(--fill, 50%)); }
.sg-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold-2) 55%, var(--gold-3)); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.sg-calc input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(30, 26, 20, .15); }
.sg-calc input[type=range]::-moz-range-progress { height: 4px; background: var(--gold-2); }
.sg-calc input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-2); border: 2px solid #fff; }
.sg-calc input[type=range]:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.sg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sg-chips button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }
.sg-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sg-exact { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.sg-exact--wide { margin-left: 0; }
.sg-exact input { width: 92px; min-height: 36px; padding: 0 8px; border: 1px solid var(--line); background: #fff; font: 600 15px 'DM Sans', sans-serif; color: var(--ink); }
.sg-exact input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201, 162, 78, .25); }
.sg-page .sg-help { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sg-result { margin: 4px -26px 18px; padding: 18px 26px; background: linear-gradient(135deg, #1c1712, #2a2118); color: #fff; text-align: center; }
.sg-page .sg-result__label { margin: 0; font: 700 11px/1 'DM Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); }
.sg-page .sg-result__amount { margin: 8px 0 4px; font: 500 clamp(40px, 6vw, 52px)/1 'Bodoni Moda', Georgia, serif; color: #fff; background: linear-gradient(180deg, #fff6d8, var(--gold-1) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sg-page .sg-result__for { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.sg-page .sg-result__rate { margin: 6px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.sg-page .sg-result.is-error .sg-result__amount { font-size: 22px; -webkit-text-fill-color: #fff; }
.sg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border: 0; font: 700 14px/1 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.sg-btn--gold { width: 100%; color: #1a140c; background: linear-gradient(180deg, #f6dc98, var(--gold-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 24px rgba(138, 100, 32, .35); transition: transform .2s, box-shadow .2s; }
.sg-btn--gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 30px rgba(138, 100, 32, .45); }
.sg-btn--ink { background: var(--ink); color: #fff; }
.sg-btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.sg-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.sg-page .sg-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* trust band */
.sg-band { background: var(--noir-2); color: #fff; border-bottom: 1px solid rgba(201, 162, 78, .25); }
.sg-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.sg-band__grid > div { padding: 22px 20px; border-left: 1px solid rgba(255, 255, 255, .08); }
.sg-band__grid > div:first-child { border-left: 0; padding-left: 0; }
.sg-band b { display: block; font: 500 18px/1.3 'Bodoni Moda', Georgia, serif; color: var(--gold-1); }
.sg-band span { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.5; }

/* content sections */
.sg-section { padding: 72px 0; }
.sg-section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sg-section h2 { font: 500 clamp(30px, 4vw, 44px)/1.12 'Bodoni Moda', Georgia, serif; margin: 12px 0 0; letter-spacing: -.01em; }
.sg-section h3 { font: 700 17px/1.35 'DM Sans', sans-serif; margin: 26px 0 8px; }
.sg-intro { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; }
/* the journey: one numbered line from the quote to the payment (the account and the emails show the same steps) */
.sg-steps { list-style: none; padding: 0; margin: 40px 0 0; max-width: 860px; }
.sg-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding: 0 0 28px; }
.sg-steps li:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold-2), rgba(201, 162, 78, .22)); }
.sg-steps li:last-child { padding-bottom: 0; }
.sg-steps h3 { margin: 8px 0 6px; }
.sg-steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.sg-steps__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 500 20px/1 'Bodoni Moda', Georgia, serif; color: #1a140c; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold-2) 60%, var(--gold-3)); }
.sg-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sg-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.sg-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.sg-list li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-2); }
.sg-list--no li::before { background: none; border: 1.5px solid var(--muted); width: 6px; height: 6px; }
.sg-why { padding: 26px 26px 10px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-2); }
.sg-why h3 { margin-top: 0; }
.sg-why p { color: var(--ink-2); font-size: 15.5px; }
.sg-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.sg-rules > div { padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.sg-rules h3 { margin: 0 0 8px; }
.sg-rules p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.sg-more, .sg-small { margin-top: 22px; color: var(--muted); font-size: 15px; }
.sg-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; }
.sg-faq__list details { border-bottom: 1px solid var(--line); }
.sg-faq__list summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
.sg-faq__list summary::-webkit-details-marker { display: none; }
.sg-faq__list summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font: 400 24px/1 'DM Sans', sans-serif; color: var(--gold-3); }
.sg-faq__list details[open] summary::after { content: '\2212'; }
.sg-faq__list p { margin: 0 0 18px; color: var(--ink-2); }
.sg-cta { padding: 72px 0; text-align: center; color: #fff; background: radial-gradient(700px 300px at 50% 0, rgba(201, 162, 78, .25), transparent 70%), var(--noir); }
.sg-cta h2 { font: 500 clamp(30px, 4vw, 44px)/1.15 'Bodoni Moda', Georgia, serif; margin: 0; }
.sg-page .sg-cta p { color: rgba(255, 255, 255, .8); margin: 14px 0 26px; }
.sg-cta .sg-btn--gold { width: auto; }

@media (max-width: 980px) {
  .sg-hero__in { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; padding-bottom: 40px; }
  /* the sliders come straight after the heading on phones; the same three points are in the band below */
  .sg-ticks { display: none; }
  .sg-page .sg-lede { font-size: 16px; margin-top: 14px; }
  .sg-rules { grid-template-columns: 1fr 1fr; }
  .sg-band__grid { grid-template-columns: 1fr 1fr; }
  .sg-band__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .sg-two, .sg-faq { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .sg-rules, .sg-band__grid { grid-template-columns: 1fr; }
  .sg-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .sg-steps li:not(:last-child)::before { left: 16px; top: 40px; }
  .sg-steps .sg-steps__n { width: 34px; height: 34px; font-size: 17px; }
  .sg-band__grid > div { border-left: 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .sg-band__grid > div:first-child { border-top: 0; }
  .sg-calc { padding: 22px 18px 20px; }
  .sg-result { margin-left: -18px; margin-right: -18px; }
  .sg-exact { margin-left: 0; }
  .sg-section { padding: 52px 0; }
  .sg-read { font-size: 30px; }
}

/* ---------- the account area (/account/) ---------- */
/* anything marked hidden stays hidden, even where a layout rule gives it a display */
.sg-page [hidden] { display: none !important; }
.ac { max-width: 860px; margin: 0 auto; padding: 40px 16px 80px; }
.ac h1 { font: 500 clamp(34px, 6vw, 50px)/1.08 'Bodoni Moda', Georgia, serif; margin: 0 0 10px; }
.ac h2 { font: 500 26px/1.25 'Bodoni Moda', Georgia, serif; margin: 40px 0 12px; }
.ac-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.ac-top button { background: none; border: 0; color: var(--gold); font: 600 15px 'DM Sans', sans-serif; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.ac-card { background: var(--panel); border: 1px solid var(--line); padding: 24px 22px; margin: 18px 0; }
.ac-card--gold { border-top: 3px solid var(--gold-l); }
.ac-form { display: grid; gap: 16px; }
.ac-form label, .ac-label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.ac-form label small, .ac-hint { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.ac-form input:not([type=checkbox]):not([type=file]), .ac-form select, .ac-form textarea { font: 17px/1.5 'DM Sans', system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 11px 13px; width: 100%; }
.ac-form textarea { resize: vertical; min-height: 96px; }
.ac-form input:focus, .ac-form select:focus, .ac-form textarea:focus { outline: none; border-color: var(--gold-l); box-shadow: 0 0 0 3px rgba(201, 162, 78, .25); }
.ac-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.ac-code { font: 600 28px/1 'DM Sans', sans-serif !important; letter-spacing: .4em; text-align: center; }
.ac-check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; }
.ac-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: #8a6420; }
.ac-files { padding: 16px; border: 1px dashed rgba(138, 100, 32, .5); background: #fff; }
.ac-files input { font-size: 15px; }
.ac-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ac-thumbs img { width: 78px; height: 78px; object-fit: cover; border: 1px solid var(--line); }
.ac-quote { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #1c1712, #2a2118); color: #fff; }
.ac-quote b { font: 500 30px/1 'Bodoni Moda', Georgia, serif; color: #f1d38a; }
.ac-quote span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-link { background: none; border: 0; padding: 8px 0; color: var(--gold); font: 600 15px 'DM Sans', sans-serif; text-decoration: underline; cursor: pointer; }
.ac-req { background: var(--panel); border: 1px solid var(--line); margin: 16px 0; }
.ac-req__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: baseline; padding: 18px 20px 0; }
.ac-req__head h3 { margin: 0; font-size: 18px; }
.ac-req__body { padding: 8px 20px 20px; }
.ac-pill { display: inline-block; padding: 4px 10px; font: 700 12px/1.3 'DM Sans', sans-serif; letter-spacing: .06em; background: #efe6d4; color: #5a4212; }
.ac-pill--go { background: #1c1712; color: #f1d38a; }
.ac-pill--done { background: #e4efe5; color: #2f6b3a; }
.ac-pill--stop { background: #f1e7e4; color: #7a2a1d; }
.ac-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 14px 0 8px; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.ac-track li { padding-top: 10px; border-top: 3px solid rgba(30, 24, 16, .12); }
.ac-track li.is-done { border-color: var(--gold-l); color: var(--ink-2); }
.ac-track li.is-now { border-color: #8a6420; color: var(--ink); font-weight: 700; }
.ac-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; font-size: 15px; }
.ac-dl dt { color: var(--muted); }
.ac-dl dd { margin: 0; }
.ac-post { padding: 16px 18px; background: #fff; border-left: 3px solid var(--gold-l); white-space: pre-line; }
.ac-empty { color: var(--muted); }
@media (max-width: 600px) { .ac-track { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } .ac-dl { grid-template-columns: 1fr; gap: 0; } .ac-dl dd { margin-bottom: 8px; } }
.sg-page .sg-result.is-busy .sg-result__amount { opacity: .55; transition: opacity .2s; }
/* fields shrink to the card on narrow screens (a date field would otherwise force the column wider than the card) */
.ac-form { grid-template-columns: minmax(0, 1fr); }
.ac-form > *, .ac-row > *, .ac-form label > * { min-width: 0; }
.ac-row { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.ac-form input, .ac-form select, .ac-form textarea { max-width: 100%; }
@media (max-width: 600px) { .ac-req .ac-card { padding: 18px 14px; } .ac-req__body { padding: 8px 14px 18px; } .ac-req__head { padding: 16px 14px 0; } }

/* ---------- account tabs, card orders and details ---------- */
.ac--wide { max-width: 1140px; }
.ac-tabs { display: flex; gap: 2px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tabs button { flex: none; min-height: 46px; margin-bottom: -1px; padding: 0 14px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font: 600 15px 'DM Sans', sans-serif; cursor: pointer; }
.ac-tabs button:hover { color: var(--ink); }
.ac-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: #8a6420; }
.ac-tabs button:focus-visible { outline: 2px solid var(--gold-l); outline-offset: -2px; }
.ac-count:not(:empty) { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #efe6d4; color: #5a4212; font-size: 12px; line-height: 19px; text-align: center; }
.ac .ac-panel-title { margin-top: 24px; }
.ac .ac-card-title { margin: 0 0 6px; font-size: 17px; }
.ac-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ac-now { margin: 4px 0 10px; }
.ac-track--3 { grid-template-columns: repeat(3, 1fr); }
.ac-items { list-style: none; padding: 0; margin: 10px 0; border-top: 1px solid var(--line); }
.ac-items li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ac-items__top { display: flex; justify-content: space-between; gap: 12px; }
.ac-items__top span { font-variant-numeric: tabular-nums; }
.ac-items small { display: block; color: var(--muted); font-size: 14px; }
.ac-words { margin: 8px 0; padding: 10px 14px; background: #fff; border-left: 3px solid var(--gold-l); white-space: pre-line; font-style: italic; color: var(--ink); }
.ac-small-link { font-size: 14px; }
.ac-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 28px; }
.ac-dl--sums dd { text-align: right; font-variant-numeric: tabular-nums; }
.ac-saved { color: var(--ok); font-weight: 600; }
.ac-pill--late { background: #9b2c1f; color: #fff; }
@media (max-width: 600px) {
  .ac-two { grid-template-columns: 1fr; }
  .ac-track.ac-track--3 { grid-template-columns: repeat(3, 1fr); }
  .ac-dl.ac-dl--sums { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .ac-dl.ac-dl--sums dd { margin-bottom: 0; }
  .ac-tabs button { padding: 0 11px; font-size: 14.5px; }
}

/* ---------- the owner's business area (owner.js) ---------- */
.ac--owner .ac-top { margin-bottom: 4px; }
.od-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.od-nav { display: flex; gap: 2px; margin: 14px 0 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.od-nav::-webkit-scrollbar { display: none; }
.od-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; margin-bottom: -1px; padding: 0 14px; border-bottom: 3px solid transparent; color: var(--muted); font: 600 15px 'DM Sans', sans-serif; text-decoration: none; }
.od-nav a:hover { color: var(--ink); }
.od-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: #8a6420; }
.od-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #8a6420; color: #fff; font: 700 11.5px/1 'DM Sans', sans-serif; }
.od-badge.is-late { background: var(--bad); }
.od-view { min-height: 240px; }
.od-sec { margin: 22px 0 30px; }
.ac .od-h { margin: 22px 0 12px; font: 500 24px/1.25 'Bodoni Moda', Georgia, serif; }
.od-sec .od-h { margin-top: 0; }
.od-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 6px; padding: 0 8px; border-radius: 13px; background: var(--bad); color: #fff; font: 700 13px/1 'DM Sans', sans-serif; vertical-align: 4px; }
.od-h-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 22px 0 12px; }
.od-h-row .od-h { margin: 0; }
.od-more { font-weight: 600; font-size: 15px; }
.od-stamp { margin: 30px 0 0; font-size: 13.5px; color: var(--muted); }

/* lists of rows that open an order or a request */
.od-list { background: var(--panel); border: 1px solid var(--line); }
.od-att, .od-row { display: grid; align-items: center; gap: 4px 14px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.od-list > a:first-child { border-top: 0; }
.od-att:hover, .od-row:hover { background: #fff; }
.od-att:focus-visible, .od-row:focus-visible, .od-health:focus-visible { outline: 2px solid var(--gold-l); outline-offset: -2px; }
.od-att { grid-template-columns: 12px minmax(0, 1fr) auto 12px; }
.od-att__main b { display: block; font-size: 15.5px; }
.od-att__main small, .od-row small { display: block; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-l); }
.is-late .od-dot { background: var(--bad); }
.od-tag { padding: 3px 10px; border-radius: 12px; background: #efe6d4; color: #5a4212; font: 700 12.5px/1.4 'DM Sans', sans-serif; white-space: nowrap; }
.is-late .od-tag { background: #f6dcd6; color: #8a2417; }
.od-chev { color: var(--muted); font-size: 20px; line-height: 1; }
.od-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 128px 104px 112px 12px; font-size: 14.5px; }
.od-row__who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-row__what, .od-row__when { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-row__sum { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.od-row__sum small { display: inline; font-weight: 400; }
.od-row .ac-pill { justify-self: end; white-space: nowrap; }
.od-clear { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px; background: #eef6ef; border: 1px solid #cfe3d2; color: var(--ink); }
.od-tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 14px; flex: none; }
.od-health { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.od-health .od-dot { background: var(--ok); }
.od-health.is-late .od-dot { background: var(--bad); }
.od-health .od-chev { margin-left: auto; }

/* figures */
.od-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; margin-bottom: 10px; }
.od-kpi { display: grid; gap: 2px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); }
.od-kpi__label { color: var(--muted); font-size: 13.5px; }
.od-kpi__value { color: var(--ink); font: 600 24px/1.25 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; }
.od-kpi__sub { color: var(--muted); font-size: 13px; }

/* filters and search */
.od-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.od-chips button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 19px; background: #fff; color: var(--ink); font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }
.od-chips button span { margin-left: 3px; color: var(--muted); font-weight: 400; }
.od-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.od-chips button[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
.od-search { flex: 1 1 260px; max-width: 380px; }
.od-search input { width: 100%; min-height: 42px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); font: 15px 'DM Sans', sans-serif;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d6458' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50%; }
.od-search input:focus { outline: none; border-color: var(--gold-l); box-shadow: 0 0 0 3px rgba(201, 162, 78, .25); }

/* one order or request */
.od-back { display: inline-block; margin: 18px 0 0; padding: 6px 0; font-weight: 600; font-size: 15px; text-decoration: none; }
.od-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.od-detail-head .od-h { margin: 8px 0 2px; }
.od-sub { margin: 0; color: var(--muted); font-size: 14.5px; }
.od-actions { margin: 16px 0 6px; }
.od-btn.sg-btn { min-height: 44px; padding: 0 20px; font-size: 12.5px; }
.od-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.od-card { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); }
.od-card--wide { grid-column: 1 / -1; }
.ac .od-card h3 { margin: 0 0 10px; font: 700 12px/1.4 'DM Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6420; }
.od-card p { margin: 0 0 8px; }
.od-make + .od-make { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ac .od-make__title { margin: 0; font-weight: 700; font-size: 17px; color: var(--ink); }
.ac .od-make__how { margin: 2px 0 8px; color: var(--ink-2); }
.od-words { margin: 8px 0 10px; padding: 12px 16px; background: #fff; border-left: 3px solid var(--gold-l); white-space: pre-line; font: italic 19px/1.55 'Cormorant Garamond', Georgia, serif; color: var(--ink); }
.ac .od-seal { display: inline-block; margin: 0; padding: 4px 10px; background: #eef6ef; color: var(--ok); font-weight: 700; font-size: 14px; }
.ac .od-seal.is-open { background: #f6dcd6; color: #8a2417; }
.od-addr { font-size: 17px; line-height: 1.55; color: var(--ink); }
.ac .od-muted { color: var(--muted); font-size: 14.5px; }
.ac .od-due, .ac .od-late, .ac .od-ok { display: inline-block; margin: 6px 0 4px; padding: 4px 10px; font-weight: 700; font-size: 14px; }
.ac .od-due { background: #efe6d4; color: #5a4212; }
.ac .od-late { background: #f6dcd6; color: #8a2417; }
.ac .od-ok { background: #eef6ef; color: var(--ok); }
.od-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.od-dl dt { color: var(--muted); }
.od-dl dd { margin: 0; overflow-wrap: anywhere; }

/* money */
.od-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); }
.od-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.od-table th, .od-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.od-table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.od-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-table small { color: var(--muted); }
.od-table-wrap + .ac-actions { margin-top: 16px; }

/* settings */
.od-checks, .od-facts, .od-problems { margin: 0 0 8px; padding-left: 18px; }
.od-checks li, .od-facts li, .od-problems li { margin: 0 0 6px; }
.od-checks li.is-late, .od-problems li { color: #8a2417; }
.ac--owner [data-panel="details"] .ac-panel-title, .ac--owner [data-customer-only] { display: none; }
.ac--owner .od-card + .od-card, .ac--owner [data-details-slot] + .od-card { margin-top: 12px; }

@media (max-width: 820px) {
  .od-row { grid-template-columns: minmax(0, 1fr) auto 12px; }
  .od-row__who { grid-column: 1; grid-row: 1; }
  .od-row .ac-pill { grid-column: 2; grid-row: 1; }
  .od-row__what { grid-column: 1; grid-row: 2; font-size: 13.5px; }
  .od-row__sum { grid-column: 2; grid-row: 2; }
  .od-row__when { grid-column: 1 / 3; grid-row: 3; font-size: 13px; }
  .od-row .od-chev { grid-column: 3; grid-row: 1 / 4; }
  .od-grid { grid-template-columns: 1fr; }
  .od-search { max-width: none; }
}
@media (max-width: 480px) {
  /* all five sections fit a phone without sideways scrolling */
  .od-nav { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .od-nav a { gap: 4px; padding: 0 3px; font-size: 13.5px; }
  .od-badge { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  .od-att { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .od-att .od-chev { display: none; }
  .od-dl { grid-template-columns: 1fr; gap: 0; }
  .od-dl dd { margin-bottom: 8px; }
}

/* ---------- a printed receipt (account.js builds it, prints it, then removes it) ---------- */
.ac-receipt { display: none; }
@media print {
  body.is-printing { background: #fff; }
  body.is-printing > *:not(.ac-receipt) { display: none !important; }
  body.is-printing .ac-receipt { display: block; color: #000; font: 11pt/1.5 'DM Sans', Arial, sans-serif; }
  .ac-receipt__head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
  .ac-receipt__head div:last-child { text-align: right; }
  .ac-receipt table { width: 100%; margin: 12px 0; border-collapse: collapse; }
  .ac-receipt th, .ac-receipt td { padding: 6px 4px; border-bottom: 1px solid #bbb; text-align: left; vertical-align: top; }
  .ac-receipt th:last-child, .ac-receipt td:last-child { text-align: right; }
  .ac-receipt small { color: #444; }
}

/* ---------- the journey of a sale in the account (owner, 2026-11-25): where you are, what comes next, the two rules ---------- */
.ac-track--steps { grid-template-columns: repeat(var(--steps, 7), minmax(0, 1fr)); }
.ac-track--steps li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-step { margin: 2px 0 4px; font-size: 15px; }
.ac-all-steps { margin: 0 0 10px; font-size: 14.5px; }
.ac-all-steps summary { cursor: pointer; color: var(--gold); font-weight: 600; padding: 4px 0; }
.ac-journey { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 8px; }
.ac-journey li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.ac-journey li.is-done, .ac-journey li.is-now { color: var(--ink); }
.ac-journey li.is-now { font-weight: 700; }
.ac-journey em { display: inline-block; margin-left: 4px; font: 700 11px/1.6 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: #8a6420; }
.ac-journey__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: 700 12px/1 'DM Sans', sans-serif; color: var(--muted); }
.ac-journey li.is-done .ac-journey__n { border-color: var(--gold-l); background: var(--gold-l); color: #fff; }
.ac-journey li.is-now .ac-journey__n { border-color: #1c1712; background: #1c1712; color: #fff; }
.ac-journey-box { margin: 14px 0 4px; padding: 14px 16px 10px; background: #fff; border: 1px solid var(--line); }
.ac-journey-box__title, .ac-rules > b, .ac-why > b, .ac-after > b { display: block; font: 700 12px/1.5 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a6420; }
.ac-rules, .ac-why, .ac-after { margin: 12px 0; padding: 14px 16px; background: #fff; border-left: 3px solid var(--gold-l); font-size: 14.5px; color: var(--ink-2); }
.ac-rules ul, .ac-why ul, .ac-after ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.ac-why p, .ac-after p { margin: 8px 0 0; }
.ac-next { color: var(--ink-2); font-size: 15px; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  /* seven labels do not fit a phone: the bar keeps its segments, "Step 4 of 7: ..." below says where you are */
  .ac-track.ac-track--steps { grid-template-columns: repeat(var(--steps, 7), minmax(0, 1fr)); }
  .ac-track--steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ac-track--steps li { padding-top: 0; }
}
