/* Easy Invoice. Made for a phone held in one hand on a job: one column, big text, big buttons.
   Ledger green is the colour of "paid" and of every main button.
   The look is MudBlazor's Material one, drawn here in plain CSS: the pages stay static server
   pages with no live connection, so they open on a weak signal (Mahdi, 2026-11-07). */
:root {
  --paper: #F5F6F7;
  --sheet: #FFFFFF;
  --ink: #16202B;
  --soft: #5C6876;
  --rule: #DDE2E8;
  --accent: #0E6B57;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3F1EC;
  --warn: #A55A00;
  --warn-soft: #FBEEDD;
  --danger: #B42318;
  --wa: #1DA851;
  --doc-ink: #1F2A37;
  --doc-accent: #1F3A5F;
  --doc-band: #EEF2F7;
  --accent-dark: #0A5545;
  --bar-work: #071F3E; /* the logo's navy */
  --line: rgba(0, 0, 0, .23);
  --line-hover: rgba(0, 0, 0, .87);
  /* Material elevations, as MudBlazor draws them. */
  --e1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
  --e2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
  --e4: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
  --e8: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
  --r: 8px;
  --r-card: 12px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.5;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
a { color: var(--accent); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- frame ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: var(--sheet); border-bottom: 1px solid var(--rule);
}
.mark { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 19px; }
.mark .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.bar nav { display: flex; gap: 16px; font-size: 16px; }
.bar nav a { color: var(--soft); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.page { padding: 20px 16px 48px; }
.sheet { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sheet.narrow { max-width: 520px; }
.lead { color: var(--soft); }
.soft { color: var(--soft); }
.small { font-size: 15px; }
.center { text-align: center; justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 20px; border-radius: var(--r-card); border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--sheet); color: var(--ink); border-color: var(--rule); }
.btn.wide { width: 100%; }
.btn.big { min-height: 64px; font-size: 20px; }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.wa.quiet { background: var(--sheet); color: var(--wa); border-color: var(--wa); }
.btn.paid { background: var(--accent); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.link { background: none; border: 0; padding: 8px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; display: block; }
.link.danger { color: var(--danger); margin: 0 auto; }
.twin { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.trio .btn { padding: 10px 8px; font-size: 16px; }
.pair { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 10px; }
.pair .btn { margin-top: 0; }
/* The send buttons stay in reach under the thumb while the preview scrolls behind them. */
.dock {
  position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--rule);
}

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .btn { margin-top: 10px; }
label { font-weight: 600; margin-top: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--sheet);
  border: 2px solid #C9D1DA; border-radius: var(--r); padding: 13px 14px; min-height: 54px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input.caps { text-transform: uppercase; }
input.code { font-size: 30px; letter-spacing: .3em; text-align: center; }
.money { display: flex; align-items: center; border: 2px solid #C9D1DA; border-radius: var(--r); background: var(--sheet); padding-left: 14px; }
.money:focus-within { border-color: var(--accent); }
.money span { font-size: 22px; color: var(--soft); }
.money input { border: 0; font-size: 26px; font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 8px 0; }
.said { background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 12px 14px; font-weight: 600; }
.done { background: var(--accent-soft); color: var(--accent); border-radius: var(--r); padding: 12px 14px; font-weight: 600; }

/* ---------- steps ---------- */
.steps { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.steps .back { text-decoration: none; font-weight: 600; }
.steps .of { margin-left: auto; font-size: 13px; letter-spacing: .08em; color: var(--soft); font-weight: 700; }
.q { font-size: 30px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: #EAEEF2; border-radius: var(--r-card); padding: 4px; gap: 4px; }
.switch button { font: inherit; font-weight: 700; border: 0; border-radius: 11px; padding: 12px; background: transparent; color: var(--soft); cursor: pointer; min-height: 48px; }
.switch button.on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.picks { display: flex; flex-direction: column; gap: 8px; }
.pick {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  font: inherit; padding: 16px; min-height: 60px; border: 2px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); color: var(--ink); cursor: pointer;
}
.pick.on, .pick:hover { border-color: var(--accent); }
.missing { background: var(--warn-soft); border-radius: var(--r); padding: 12px 16px; }
.missing ul { margin: 6px 0 0; padding-left: 20px; }
.sends { display: flex; flex-direction: column; gap: 10px; }
.boxed { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 14px; }

/* ---------- home ---------- */
.owed { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 14px 16px; }
.empty { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 36px 16px; background: var(--sheet); border: 2px dashed var(--rule); border-radius: var(--r-card); color: var(--soft); }
.empty b { color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; }
.list li + li { border-top: 1px solid var(--rule); }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; min-height: 64px; }
.list a:hover { background: var(--paper); }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b, .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #EEF2F5; color: var(--soft); white-space: nowrap; }
.pill.paid { background: var(--accent-soft); color: var(--accent); }
.pill.overdue { background: var(--warn-soft); color: var(--warn); }
.pill.viewed { background: #E6EEFB; color: #1F4E9C; }
.pill.invoiced { background: var(--accent-soft); color: var(--accent); }
.pill.expired { background: #F1F1F1; color: #777; }

/* ---------- settings ---------- */
.group { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.group .kv { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: baseline; }
.group .kv span { color: var(--soft); font-size: 15px; }
.leave summary { color: var(--danger); }


/* ---------- sign-in ---------- */
.ways { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 44px; }
.pretend { width: 100%; display: flex; flex-direction: column; gap: 8px; border: 2px dashed var(--warn); border-radius: var(--r-card); padding: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.google { color-scheme: light; }

/* ---------- the document as the customer sees it ---------- */
.paper {
  background: #FFFFFF; color: var(--doc-ink); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 20px; font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.paper header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--doc-accent); }
.paper .biz { font-size: 20px; font-weight: 700; color: var(--doc-strong, var(--doc-accent)); }
.paper .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.paper .logo { max-height: 64px; max-width: 96px; object-fit: contain; flex-shrink: 0; }
.paper .who-from { min-width: 0; }
.logo-now { display: flex; align-items: center; gap: 14px; }
.logo-now img { max-height: 72px; max-width: 140px; object-fit: contain; border: 1px solid var(--rule); border-radius: 10px; padding: 6px; background: #fff; }
input[type=file] { padding: 10px; }
.paper .right { text-align: right; margin-left: auto; }
.paper .title { font-size: 26px; font-weight: 800; color: var(--doc-strong, var(--doc-accent)); letter-spacing: .08em; }
.paper .facts { display: grid; grid-template-columns: auto auto; gap: 0 10px; margin: 4px 0 0; font-size: 13px; }
.paper .facts dt { color: #6B7280; }
.paper .facts dd { margin: 0; font-weight: 700; }
.paper .parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.paper .label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6B7280; margin-bottom: 4px; }
.paper .gap { margin-top: 4px; }
.paper .work { width: 100%; border-collapse: collapse; }
.paper .work th { background: var(--doc-accent); color: var(--doc-on, #fff); text-align: left; font-size: 13px; padding: 8px 10px; }
.paper .work td { padding: 10px; border-bottom: 1px solid #D5DCE5; vertical-align: top; }
.paper .work ul { margin: 0; padding-left: 18px; }
.paper .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper .sums { margin-left: auto; width: min(100%, 300px); display: flex; flex-direction: column; gap: 4px; }
.paper .sums .row { display: flex; justify-content: space-between; padding: 0 12px; color: #6B7280; }
.paper .total { display: flex; justify-content: space-between; background: var(--doc-band); color: var(--doc-strong, var(--doc-accent)); font-weight: 800; font-size: 17px; padding: 10px 12px; border-radius: 6px; }
.paper .pay .kv { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: center; padding: 2px 0; }
.paper .pay .kv span { color: #6B7280; }
.paper .copy { font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.paper .soft { color: #6B7280; }
/* Modern: the head in the business's colour, the logo on a white tile. */
.paper.look-modern { padding-top: 0; overflow: hidden; }
.paper.look-modern header { background: var(--doc-accent); color: var(--doc-on); margin: 0 -20px; padding: 20px; border-bottom: 0; }
.paper.look-modern .biz, .paper.look-modern .title, .paper.look-modern .facts dt, .paper.look-modern .facts dd, .paper.look-modern .small { color: var(--doc-on); }
.paper.look-modern .logo { background: #fff; padding: 6px; border-radius: 6px; }
/* Plain: black and white with thin rules, nothing filled. */
.paper.look-plain header { border-bottom: 1px solid #111; }
.paper.look-plain .work th { background: none; color: #111; border-bottom: 1.5px solid #111; }
.paper.look-plain .total { background: none; border-radius: 0; border-top: 1.5px solid #111; border-bottom: 1.5px solid #111; }
.paper.serif { font-family: Georgia, "Times New Roman", "Liberation Serif", serif; }

.bare { padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
.open-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.made { text-align: center; color: var(--soft); font-size: 14px; margin-top: 28px; }

@media (max-width: 420px) {
  .paper { padding: 14px; }
  .paper .pay .kv { grid-template-columns: 110px 1fr auto; }
  .q { font-size: 26px; }
}
@media (max-width: 420px) {
  .paper.look-modern header { margin: 0 -14px; padding: 14px; }
}

/* ---------- the look picker ---------- */
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.look-card { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px; border: 2px solid var(--rule); border-radius: var(--r-card); cursor: pointer; font-weight: 400; background: var(--sheet); }
.look-card:has(input:checked), .look-card.on { border-color: var(--accent); }
.look-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.look-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.mini { display: flex; flex-direction: column; gap: 5px; height: 74px; padding: 8px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.mini i { display: block; height: 6px; border-radius: 2px; background: #DDE2E8; }
.mini i:first-child { width: 55%; height: 9px; background: var(--mini); }
.mini i:nth-child(2) { margin-top: auto; height: 10px; background: var(--mini); }
.mini-modern i:first-child { width: auto; height: 20px; margin: -8px -8px 0; border-radius: 5px 5px 0 0; }
.mini-plain i:first-child, .mini-plain i:nth-child(2) { background: none; border-bottom: 2px solid #111; border-radius: 0; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=color] { padding: 4px; height: 54px; cursor: pointer; }
.word-drop { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 2px dashed var(--rule); border-radius: var(--r-card); background: var(--sheet); }
.label-soft { font-size: 13px; color: var(--soft); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 480px) {
  .looks { gap: 8px; }
  .look-card { padding: 8px; }
  .look-card .soft { display: none; }
  .mini { height: 52px; padding: 6px; }
}

/* ---------- desktop and laptop ---------- */
.split-paper { display: none; }
.when { display: none; }
@media (min-width: 1024px) {
  .bar { padding-left: max(32px, calc((100vw - 1180px) / 2)); padding-right: max(32px, calc((100vw - 1180px) / 2)); }
  .bar nav { gap: 28px; font-size: 17px; }
  .page { padding: 32px 32px 64px; }
  .sheet { max-width: 1180px; }
  .sheet.narrow.split-page { max-width: 1180px; }

  /* The step's form on the left, the invoice as the customer will see it on the right, held in view. */
  .split { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .split-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .split-paper { display: block; position: sticky; top: 88px; min-width: 0; }
  .only-narrow { display: none; }
  .dock { position: static; margin: 0; padding: 0; background: none; border: 0; backdrop-filter: none; }

  /* The list becomes a table: who, when, how much, where it stands. */
  .sheet > form.twin { max-width: 560px; }
  .list a { display: grid; grid-template-columns: minmax(0, 1fr) 180px 260px; gap: 16px; align-items: center; }
  .when { display: block; color: var(--soft); font-size: 16px; }
  .end { flex-direction: row; justify-content: flex-end; align-items: center; gap: 16px; }

}

/* ---------- finding an address ---------- */
.find-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.find-row .btn { margin-top: 0; white-space: nowrap; }
.found { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); max-height: 340px; overflow-y: auto; }
.found .pick { min-height: 52px; padding: 10px 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }

/* ---------- lines offered, trades ---------- */
.offer { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; min-height: 42px; border: 2px solid var(--rule); border-radius: 99px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.chip:hover, .chip.on, .chip:has(input:checked) { border-color: var(--accent); }
.chip:has(input:checked) { background: var(--accent-soft); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip.add .soft { font-weight: 400; font-size: 14px; }
.trades { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.trades legend { font-weight: 600; padding: 0; margin-bottom: 2px; }

/* ---------- settings: a menu of five parts ---------- */
.set-shell { max-width: 560px; margin: 0 auto; }
.set-menu { display: flex; flex-direction: column; gap: 14px; }
.set-menu ul { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; }
.set-menu li + li { border-top: 1px solid var(--rule); }
.set-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; min-height: 68px; color: var(--ink); text-decoration: none; }
.set-menu a > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.set-menu a .soft { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-menu a:hover { background: var(--paper); }
.chev { color: var(--soft); font-size: 26px; line-height: 1; flex-shrink: 0; }
.set-out { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; }
.set-out .btn { min-height: 44px; padding: 8px 16px; }

.set-part { display: flex; flex-direction: column; gap: 16px; }
.set-part h2 { font-size: 26px; margin: 0; }
.set-part > .btn, .set-part form > .btn { align-self: flex-start; }
.set-back { text-decoration: none; font-weight: 600; }
.at-menu .set-part, .at-part .set-menu { display: none; }

.rows { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; }
.row-link { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 16px; min-height: 56px; color: var(--ink); text-decoration: none; }
.row-link + .row-link { border-top: 1px solid var(--rule); }
.row-link > span:first-child { color: var(--soft); font-size: 15px; }
.row-link b { font-weight: 600; overflow-wrap: anywhere; }
.row-link:hover { background: var(--paper); }

.look-part { display: flex; flex-direction: column; gap: 24px; }
.look-forms { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.logo-now { display: flex; align-items: flex-start; gap: 14px; }
.logo-now .grow { flex: 1; min-width: 0; }
.no-logo { display: grid; place-items: center; width: 84px; height: 72px; flex-shrink: 0; border: 2px dashed var(--rule); border-radius: 10px; color: var(--soft); font-size: 13px; }
.logo-form { display: flex; flex-direction: column; gap: 6px; }
.logo-form label { margin: 0; }
.word-more { border-top: 1px solid var(--rule); padding-top: 8px; }

@media (min-width: 1024px) {
  .set-shell, .at-menu, .at-part { max-width: 1180px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
  .at-menu .set-part, .at-part .set-menu { display: flex; }
  .set-menu { position: sticky; top: 88px; }
  .set-menu a.on { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
  .set-back { display: none; }
  .set-part { padding-top: 6px; }
  .look-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .look-part .sample { position: sticky; top: 88px; }
}
.logo-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-acts .btn { min-height: 44px; padding: 8px 16px; }
.logo-acts .link { margin: 0; }

/* ---------- Goud Work: the bars, the front page, the account ---------- */
.mark-name { display: flex; flex-direction: column; line-height: 1.1; }
.mark-name small { font-size: 11px; font-weight: 600; color: var(--soft); letter-spacing: .02em; }
.mark .dot.work { background: var(--ink); }
.chip-co { border: 1px solid var(--rule); border-radius: 99px; padding: 2px 10px; color: var(--ink) !important; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.services { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.service { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-card); background: var(--sheet); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.service.live { border: 2px solid var(--accent); }
.service.live:hover { background: var(--accent-soft); }
.service-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.service .go { color: var(--accent); font-weight: 700; margin-top: auto; }
.service.soon { color: var(--soft); }
.company-row.on { background: var(--accent-soft); }
button.row-link { width: 100%; font: inherit; background: none; border: 0; text-align: start; cursor: pointer; }
.rows form, .rows > .member + .member { border-top: 1px solid var(--rule); }
.member { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.member + .member { border-top: 1px solid var(--rule); }
.member b { overflow-wrap: anywhere; }
.member-acts { display: flex; align-items: center; gap: 8px; }
.member-acts select { min-height: 42px; padding: 6px 10px; width: auto; }
.member-acts .btn { min-height: 42px; padding: 6px 14px; }
.note-box { background: var(--accent-soft); border-radius: var(--r); padding: 12px 14px; }
.roles-what ul { margin: 6px 0 0; padding-inline-start: 20px; }
.set-part h3 { margin: 10px 0 0; font-size: 17px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); }
.plan-card.on { border-color: var(--accent); }
.plan-card .price { font-size: 24px; font-weight: 800; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: var(--soft); }
.plan-card .pill { align-self: flex-start; margin-top: 6px; }
.row-btns-plain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 560px) { .chip-co { max-width: 140px; } .bar nav { gap: 12px; font-size: 15px; } }
.paper .made-with { margin: 0; text-align: center; font-size: 12px; color: #6B7280; border-top: 1px solid #D5DCE5; padding-top: 8px; }

/* ---------- the MudBlazor look: elevation instead of outlines ---------- */
.bar { background: var(--accent); color: #fff; border-bottom: 0; box-shadow: var(--e4); position: relative; z-index: 10; }
@media (min-width: 1024px) { .bar { position: sticky; top: 0; } }
.bar.work { background: var(--bar-work); }
.bar .mark, .bar .mark-name small { color: #fff; }
.bar .mark-name small { opacity: .75; }
.bar .mark .dot { background: #fff; }
.bar .mark .dot.work { background: #F2C14E; }
/* The goud.work logo (2026-11-07): the brush script with the square dot and the arrow, cut from
   the masters in docs/goud-work/renders. logo-dark.png is for dark grounds, logo.png for light;
   both are see-through, so they sit on any navy or paper. */
.bar .mark.logo { padding: 2px 0; }
.bar .mark.logo { margin: -6px 0; }
.bar .mark.logo img { display: block; height: 50px; width: auto; }
@media (min-width: 720px) { .bar .mark.logo img { height: 58px; } }
.bar nav a { color: rgba(255,255,255,.82); font-weight: 500; }
.bar nav a:hover { color: #fff; }
.bar .chip-co { color: #fff !important; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }

h1, h2, h3, .q { font-weight: 600; letter-spacing: -.005em; }
label { font-weight: 500; font-size: 16px; color: var(--soft); }

.btn { border: 0; border-radius: var(--r); font-weight: 600; letter-spacing: .02em; box-shadow: var(--e2); transition: box-shadow .2s, background-color .2s; }
.btn:hover { filter: none; background: var(--accent-dark); box-shadow: var(--e4); }
.btn:active { box-shadow: var(--e8); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); box-shadow: none; }
.btn.wa:hover { background: #178D44; }
.btn.wa.quiet { border: 1px solid var(--wa); box-shadow: none; }
.btn.wa.quiet:hover { background: #E8F7EE; }
.btn.danger:hover { background: #8F1C13; }
.btn[disabled] { box-shadow: none; }

input, select, textarea { border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--line-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.money { border: 1px solid var(--line); }
.money:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }

.boxed, .owed, .list, .group, .rows, .set-menu ul, .found, .service, .plan-card, .word-drop, .empty {
  border-color: transparent; box-shadow: var(--e1);
}
.empty { border-style: solid; }
.paper { border-color: transparent; box-shadow: var(--e2); }
.pick, .chip, .look-card, .plan-card { border-width: 1px; border-color: var(--line); }
.pick { box-shadow: none; }
.pick.on, .pick:hover, .chip:hover, .chip.on, .chip:has(input:checked), .look-card:has(input:checked), .look-card.on, .plan-card.on {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.chip { border-radius: 99px; font-weight: 500; }
.pill { font-weight: 600; letter-spacing: .02em; }
.switch { background: #E8EBEE; }
.list a:hover, .set-menu a:hover, .row-link:hover { background: rgba(0,0,0,.04); }
.said, .done, .missing, .note-box { border-radius: var(--r); }
.done { border-inline-start: 4px solid var(--accent); }
.said, .missing { border-inline-start: 4px solid var(--warn); }
.service.live { border: 0; box-shadow: var(--e2); }
.service.live:hover { background: var(--sheet); box-shadow: var(--e8); }

/* ---------- the goud.work front page ---------- */
.page:has(> .front) { padding: 0; }
.front { display: flex; flex-direction: column; }
.front-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.front-block { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.block-title { font-size: 26px; margin: 0; }
.front-band { background: var(--sheet); box-shadow: var(--e1); }
.front-hero { background: linear-gradient(160deg, #E3F1EC 0%, #F5F6F7 55%, #FFFFFF 100%); padding: 36px 0 44px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-words { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-words h1 { font-size: clamp(34px, 8vw, 54px); letter-spacing: -.015em; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-free { display: flex; align-items: center; gap: 6px; }
.hero-free .icon { color: var(--accent); }

.hero-phone { display: flex; justify-content: center; }
.phone { width: min(100%, 320px); background: var(--sheet); border-radius: 28px; padding: 14px; box-shadow: var(--e8); border: 1px solid rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 12px; }
.phone-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; background: var(--accent); color: #fff; border-radius: 16px; padding: 10px 14px; }
.phone-top .dot { width: 10px; height: 10px; border-radius: 3px; background: #fff; }
.mock { display: flex; flex-direction: column; gap: 8px; font-size: 14px; padding: 4px 6px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--doc-accent); padding-bottom: 8px; }
.mock-head b { color: var(--doc-accent); font-size: 16px; }
.mock-head span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--doc-accent); }
.mock-to { color: var(--soft); font-size: 13px; }
.mock-to span { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-inline-end: 6px; }
.mock-line { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.mock-line.soft { color: var(--soft); }
.mock-total { display: flex; justify-content: space-between; background: var(--doc-band); color: var(--doc-accent); border-radius: 6px; padding: 8px 10px; font-size: 16px; font-weight: 700; }
.mock-bank { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 13px; }
.mock-send { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--wa); color: #fff; border-radius: var(--r); padding: 12px; font-weight: 600; box-shadow: var(--e2); }

.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-card); background: var(--accent-soft); color: var(--accent); }
.service.soon .service-icon { background: #ECEFF1; color: var(--soft); }
.service .go { display: inline-flex; align-items: center; gap: 4px; }
.front .services { max-width: none; margin: 0; }

.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how li { counter-increment: how; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-card); background: var(--paper); }
.how li::before { content: counter(how); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 4px; box-shadow: var(--e2); }
.how b { font-size: 19px; }
.how span { color: var(--soft); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.features div { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); }
.features .icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 4px; }
.features span { color: var(--soft); font-size: 16px; }

.front-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.front-plans .plan-card { padding: 20px; gap: 6px; border: 0; box-shadow: var(--e1); }
.front-plans .plan-card b { font-size: 18px; }
.front-plans .price { font-size: 32px; }

.front-end { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.front-end h2 { font-size: 28px; margin: 0; }
.front-foot { background: var(--bar-work); color: rgba(255,255,255,.8); font-size: 15px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.front-foot .front-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.front-foot b { color: #fff; }
.front-foot a { color: #fff; }

@media (min-width: 1024px) {
  .front-in { padding: 0 32px; }
  .front-hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .front-block { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .block-title { font-size: 30px; }
  .phone { width: 340px; transform: rotate(2deg); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- a company's own page (name.goud.work) ---------- */
.pg { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); --pg: #0E6B57; --pg-on: #fff; }
.pg.serif { font-family: Georgia, "Times New Roman", "Liberation Serif", serif; }
.pg-in { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.pg-draft { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.pg-banner { background: var(--ink); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 16px; }
.pg-head { color: var(--pg-on); background: var(--pg); padding: calc(28px + env(safe-area-inset-top, 0px)) 0 32px; }
.pg-head.cover { color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65)), var(--cover) center / cover no-repeat, var(--pg); padding: calc(40px + env(safe-area-inset-top, 0px)) 0 40px; min-height: 340px; display: flex; align-items: flex-end; }
.pg-head-in { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pg-brand { display: flex; align-items: center; gap: 12px; }
.pg-logo { height: 52px; max-width: 120px; object-fit: contain; background: #fff; border-radius: var(--r); padding: 4px; }
.pg-name { font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.pg-head h1 { font-size: clamp(30px, 7vw, 48px); margin: 0; max-width: 18em; }
.pg-light { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--ink); }
.pg-light i { width: 10px; height: 10px; border-radius: 50%; background: #1DA851; box-shadow: 0 0 0 4px rgba(29,168,81,.25); }
.pg-light.busy i { background: var(--warn); box-shadow: 0 0 0 4px rgba(165,90,0,.2); }
.pg-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border-radius: var(--r); border: 0; background: var(--pg); color: var(--pg-on); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--e2); }
.pg-head .pg-btn { background: #fff; color: var(--pg-strong, var(--ink)); }
.pg-btn.ghost { background: transparent; color: var(--pg-strong); border: 1px solid currentColor; box-shadow: none; }
.pg-head .pg-btn.ghost { color: inherit; }
.pg-btn.wide { width: 100%; }
.pg-btn:hover { filter: brightness(1.05); }
.pg-blocks { flex: 1; padding-bottom: 88px; }
.pg-block { padding-top: 32px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 14px; }
.pg-block h2 { font-size: 24px; margin: 0; }
.pg-about { font-size: 19px; gap: 10px; }
.pg-offers { list-style: none; margin: 0; padding: 0; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); overflow: hidden; }
.pg-offers li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; align-items: baseline; }
.pg-offers li + li { border-top: 1px solid var(--rule); }
.pg-offers li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pg-offers .soft { font-size: 15px; }
.pg-price { font-weight: 700; color: var(--pg-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pg-shots figure { margin: 0; background: var(--sheet); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--e1); }
.pg-shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pg-shots figcaption { padding: 10px 14px; font-size: 15px; color: var(--soft); }
.compare { position: relative; --at: 50%; }
.compare img.before { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--at); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; padding: 0; min-height: 0; border: 0; }
.compare .tag { position: absolute; top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.6); color: #fff; padding: 3px 8px; border-radius: 4px; pointer-events: none; }
.compare .tag.b { left: 10px; }
.compare .tag.a { right: 10px; }
.stars { color: #E8A317; letter-spacing: .08em; }
.pg-score { font-weight: 600; }
.pg-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pg-reviews blockquote { margin: 0; padding: 16px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); display: flex; flex-direction: column; gap: 8px; }
.pg-reviews footer { color: var(--soft); font-size: 14px; }
.pg-link { color: var(--pg-strong); font-weight: 600; }
.pg-cta { background: var(--pg-wash); border-radius: var(--r-card); padding: 24px 16px; margin-top: 32px; }
.pg-areas { font-weight: 600; }
.pg-check { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.pg-check .pg-btn { min-height: 54px; }
.pg-answer { border-radius: var(--r); padding: 10px 14px; font-weight: 600; }
.pg-answer.yes { background: var(--accent-soft); color: var(--accent); }
.pg-answer.no { background: var(--warn-soft); color: var(--warn); }
.pg-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pg-badges li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); }
.pg-badges li > span { display: flex; flex-direction: column; }
.pg-badges .icon { color: var(--pg-strong); flex-shrink: 0; margin-top: 2px; }
.pg-badges .soft { font-size: 15px; }
.pg-post { padding: 14px 16px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); display: flex; flex-direction: column; gap: 4px; }
.pg-post h3 { margin: 0; font-size: 19px; }
.pg-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pg-contact > * { display: flex; flex-direction: column; padding: 14px 16px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); color: var(--ink); text-decoration: none; }
.pg-contact a b { color: var(--pg-strong); overflow-wrap: anywhere; }
.pg-hours { display: flex; flex-direction: column; gap: 4px; }
.pg-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--sheet) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.pg-dock a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.pg-dock a.main { background: var(--pg); color: var(--pg-on); border-color: transparent; flex: 1.4; }
.pg-dock:empty { display: none; }
.pg-foot { background: var(--bar-work); color: rgba(255,255,255,.8); font-size: 14px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
.pg-foot .pg-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pg-foot a { color: #fff; }
.pg-top { background: var(--pg); color: var(--pg-on); padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px; }
.pg-back { color: inherit; text-decoration: none; font-weight: 600; }
.pg-form-page { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; padding-bottom: 48px; max-width: 560px; flex: 1; }
.pg-form-page h1 { margin: 0; }
.pg-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pg-days a { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 8px 6px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.pg-days a b { font-size: 22px; }
.pg-days a.on { background: var(--pg); color: var(--pg-on); border-color: transparent; }
.pg-times { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-times legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.pg-stars { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-stars legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.pg-stars label { display: flex; align-items: center; gap: 10px; font-size: 24px; color: #E8A317; margin: 0; }
.pg-stars input { width: 22px; height: 22px; min-height: 0; }
.pg-thanks { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 0; }
.pg-none { max-width: 520px; margin: 0 auto; padding: 80px 16px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.check input { width: 22px; height: 22px; min-height: 0; flex-shrink: 0; }
@media (min-width: 1024px) {
  .pg-dock { display: none; }
  .pg-blocks { padding-bottom: 48px; }
  .pg-head.cover { min-height: 440px; }
  .pg-block { padding-top: 48px; }
}

/* ---------- the owner's editor (goud.work/page) ---------- */
.pe-start { gap: 16px; padding-top: 12px; align-items: flex-start; }
.pe { max-width: 560px; margin: 0 auto; }
.pe-menu { gap: 12px; }
.pe-addr { font-weight: 600; overflow-wrap: anywhere; }
.pe-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); }
.pe-state .btn { min-height: 44px; padding: 8px 18px; }
.pe-light { display: flex; flex-direction: column; gap: 4px; }
.switch.three-way { grid-template-columns: 1fr 1fr 1fr; }
.switch.three-way button { font-size: 14px; padding: 8px 4px; min-height: 44px; }
.pe-blocks { display: flex; flex-direction: column; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); overflow: hidden; }
.pe-block { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; }
.pe-block + .pe-block { border-top: 1px solid var(--rule); }
.pe-block > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pe-block.off b { color: var(--soft); }
.pe-block-acts { display: flex; gap: 6px; flex-shrink: 0; }
.pe-block-acts button { min-width: 44px; min-height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sheet); font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.pe-block-acts button[disabled] { opacity: .3; cursor: default; }
.pe-block-acts .pe-turn { min-width: 58px; background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pe-block.off .pe-turn { background: #ECEFF1; color: var(--soft); }
.looks.two { grid-template-columns: 1fr 1fr; }
.mini-cover { background: linear-gradient(180deg, #8a9aa8, #3d4a56) !important; }
.mini-cover i:first-child { background: #fff !important; }
.pe-cover { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--r); }
.pe-offers { display: flex; flex-direction: column; gap: 10px; }
.pe-offer { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.pe-offer .pe-note { grid-column: 1 / -1; min-height: 44px; font-size: 16px; padding: 8px 12px; }
.pe-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pe-shots figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pe-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.pe-shots figcaption { font-size: 14px; color: var(--soft); }
.pe-shots .link { padding: 4px 0; margin: 0; font-size: 15px; }
.pe-inbox { display: flex; flex-direction: column; gap: 12px; }
.pe-ask { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--e1); }
.pe-ask.new { box-shadow: var(--e2), inset 4px 0 0 var(--warn); }
.pe-ask header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pe-when { font-weight: 600; color: var(--accent); }
.pe-text { white-space: pre-line; }
.pe-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.pe-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); }
.pe-reach { display: flex; gap: 14px; flex-wrap: wrap; font-size: 16px; }
.pe-ask .row-btns-plain .btn { min-height: 44px; padding: 8px 16px; }
.pe-slug { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); overflow: hidden; }
.pe-slug:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pe-slug input { border: 0; box-shadow: none !important; min-width: 0; }
.pe-slug span { padding: 0 14px 0 0; color: var(--soft); white-space: nowrap; }
.pe-preview { display: none; }
@media (min-width: 1024px) {
  .pe { max-width: 1440px; display: grid; grid-template-columns: 280px minmax(0, 1fr) 390px; gap: 32px; align-items: start; }
  .pe.at-menu .set-part, .pe.at-part .set-menu { display: flex; }
  .pe .set-menu { position: sticky; top: 88px; }
  .pe .set-menu a.on { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
  .pe .set-back { display: none; }
  .pe-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; position: sticky; top: 88px; }
  .pe-phone { width: 390px; height: min(780px, calc(100vh - 140px)); border-radius: 28px; padding: 10px; background: var(--bar-work); box-shadow: var(--e8); }
  .pe-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 20px; background: #fff; }
}
@media (max-width: 1023px) {
  .pe.at-menu .set-part, .pe.at-part .set-menu { display: none; }
}

/* ---------- printing the QR code ---------- */
.print-shell { gap: 20px; }
.print-tools { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.print-pick { width: min(100%, 400px); }
.print-pick a { display: grid; place-items: center; text-decoration: none; font-weight: 700; border-radius: 11px; padding: 12px; color: var(--soft); min-height: 48px; }
.print-pick a.on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.print-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(85mm, 1fr)); gap: 6mm; }
.print-card { width: 85mm; height: 55mm; background: #fff; border: 1px dashed #bbb; border-radius: 3mm; padding: 5mm; display: flex; gap: 4mm; align-items: center; border-left: 3mm solid var(--pg); color: #111; }
.pc-words { flex: 1; display: flex; flex-direction: column; gap: 1.5mm; font-size: 3.4mm; min-width: 0; }
.pc-words b { font-size: 4.4mm; }
.pc-at { font-weight: 700; color: var(--pg); overflow-wrap: anywhere; }
.pc-qr { width: 30mm; flex-shrink: 0; }
.pc-qr svg, .pp-qr svg { width: 100%; height: auto; display: block; }
.print-poster { width: min(100%, 210mm); aspect-ratio: 210 / 297; background: #fff; color: #111; border: 1px solid #ccc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6mm; padding: 16mm; text-align: center; border-top: 12mm solid var(--pg); }
.pp-name { font-size: clamp(24px, 6vw, 13mm); font-weight: 800; }
.pp-line { font-size: clamp(16px, 3vw, 7mm); color: #444; max-width: 150mm; }
.pp-qr { width: 60%; }
.pp-do { font-size: clamp(16px, 3.4vw, 8mm); font-weight: 700; }
.pp-at { font-size: clamp(16px, 3vw, 7mm); color: var(--pg); font-weight: 700; }
.pp-phone { font-size: clamp(16px, 3vw, 7mm); }
@media print {
  .bar, .print-tools, .made { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .print-card { break-inside: avoid; }
  .print-poster { width: 210mm; height: 297mm; border: 0; border-top: 12mm solid var(--pg); aspect-ratio: auto; }
  @page { size: A4; margin: 8mm; }
}

/* ---------- reminders on an invoice ---------- */
.reminders { display: flex; flex-direction: column; gap: 6px; }
.rem-line { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.rem-line .icon { color: var(--accent); flex-shrink: 0; }
.reminders .link { padding: 4px 0; }
