/* Quote, agreement and invoice pages (D34), in hitroo.com's palette (D26). No scripts. */
:root {
  --paper: #fcf8f6; --char: #12110b; --ember: #f5502f; --ember-dark: #de3f1f; --ember-tint: #fff1ec;
  --sand: #f3eee8; --stone: #6f6a61; --white: #ffffff; --ring: rgba(18, 17, 11, 0.08); --ok: #1f7a4d;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Fustat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--char); font: 500 17px/1.55 var(--body); }
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 44px); margin: 6px 0 16px; }
h2 { font-size: 22px; margin: 40px 0 12px; }
a { color: var(--char); text-underline-offset: 4px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stone); }
.lead { font-size: 19px; }
.muted { color: var(--stone); font-size: 15px; }
.muted.small { font-size: 13px; }
.error { background: var(--ember-tint); border-left: 3px solid var(--ember); padding: 10px 14px; border-radius: 8px; }
.label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone); }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.price > div { background: var(--white); border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--ring); }
.price strong { display: block; font: 800 34px/1.2 var(--display); }
.price s { display: block; font: 700 26px/1.4 var(--display); color: var(--stone); }
.price strong.small { font-size: 24px; line-height: 1.5; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--ring); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ring); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone); font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 800; }
.chip { display: inline-block; padding: 1px 10px; border-radius: 99px; background: var(--sand); font-size: 14px; }
.chip.ok { background: #e3f3ea; color: var(--ok); }
.button, button { display: inline-block; background: var(--ember); color: var(--white); border: 0; border-radius: 99px; padding: 9px 18px; font: 700 15px var(--display); text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--ember-dark); }
.agreement { background: var(--white); border-radius: 18px; padding: 8px 24px 18px; box-shadow: 0 0 0 1px var(--ring); font-size: 15px; max-height: 70vh; overflow-y: auto; }
.agreement h1 { font-size: 24px; }
.agreement h2 { font-size: 17px; margin: 22px 0 6px; }
.accept { margin-top: 22px; display: grid; gap: 14px; background: var(--ember-tint); padding: 20px; border-radius: 18px; }
.accept input[name="name"] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ring); font: inherit; background: var(--white); }
.tick { display: flex; gap: 10px; align-items: flex-start; }
.tick input { margin-top: 5px; }
.accepted { margin-top: 18px; color: var(--ok); }
code { background: var(--sand); padding: 1px 6px; border-radius: 6px; }
.invoice header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.invoice .from { text-align: right; font-size: 15px; }
@media (max-width: 560px) { .price { grid-template-columns: 1fr; } .invoice header { flex-direction: column; } .invoice .from { text-align: left; } }
@media print { body { background: #fff; } .button, button, .accept { display: none; } table, .price > div, .agreement { box-shadow: none; border: 1px solid #ddd; } .agreement { max-height: none; } }

/* The client dashboard (D37) */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.card { display: block; background: var(--white); border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--ring); text-decoration: none; color: var(--char); }
a.card:hover { box-shadow: 0 0 0 2px var(--ember); }
.card h3 { margin: 4px 0 6px; font-size: 20px; }
.chip.wait { background: var(--ember-tint); color: var(--ember-dark); }
.chip.live { background: #e3f3ea; color: var(--ok); }
.list { list-style: none; padding: 0; margin: 0; background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--ring); }
.list li { padding: 12px 16px; border-bottom: 1px solid var(--ring); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.button.ghost { background: var(--white); color: var(--char); box-shadow: 0 0 0 1px var(--ring); }
.button.ghost:hover { background: var(--sand); }
form.ask { display: grid; gap: 12px; background: var(--white); padding: 20px; border-radius: 18px; box-shadow: 0 0 0 1px var(--ring); }
form.ask textarea, form.ask input[type="text"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ring); font: inherit; background: var(--paper); }
form.ask textarea { min-height: 130px; }
.notice { background: #e3f3ea; color: var(--ok); padding: 10px 14px; border-radius: 10px; }

.list.chat li { display: block; }
.list.chat li.them { background: var(--sand); }
.list.chat li .small { display: block; margin-top: 4px; }
