:root { --gold:#A6812E; --gold-dark:#8C6D27; --ink:#1A1A1A; --cream:#FAF8F2; --line:#EDE7D8; --muted:#4A4A4A; --soft:#6B6B6B; --err:#9B2C2C; --ok:#2F6B3E; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; }
a { color: var(--gold); text-decoration: none; } a:hover { color: #7C611F; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.topbar { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand span { font-size: 20px; font-weight: 700; line-height: 1.12; }
.toplinks { display: flex; gap: 20px; align-items: center; font-size: 14px; white-space: nowrap; flex-wrap: wrap; justify-content: flex-end; }
.toplinks a.btn { border: 1px solid var(--ink); padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; }
.toplinks a.btn:hover { border-color: var(--gold); }
.toplinks a, .linkbtn { color: var(--ink); background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.toplinks a:hover, .linkbtn:hover { color: var(--gold); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.narrow { max-width: 560px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; margin: 0 0 14px; font-weight: 600; }
.lead { color: var(--muted); margin: 0 0 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.hint { font-weight: 400; color: var(--soft); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=time], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; border: 1px solid #D9D2BF; border-radius: 2px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(166,129,46,.35); border-color: var(--gold); }
textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 13px; color: var(--muted); font-weight: 400; }
.check input { margin-top: 4px; }
.btn { display: inline-block; background: var(--gold); color: var(--cream); border: 0; padding: 14px 32px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; cursor: pointer; text-align: center; }
.btn:hover { background: var(--gold-dark); color: var(--cream); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.msg { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 2px; display: none; }
.msg.err { display: block; background: #FBEDED; color: var(--err); border: 1px solid #F0C9C9; }
.msg.ok { display: block; background: #EDF6EF; color: var(--ok); border: 1px solid #C9E2CF; }
.foot { margin-top: 20px; font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--soft); } .kv dd { margin: 0; word-break: break-word; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #F3ECD8; color: #7C611F; }
.drop { border: 2px dashed #D9D2BF; border-radius: 4px; padding: 32px 20px; text-align: center; background: #FFFEFB; cursor: pointer; }
.drop.over { border-color: var(--gold); background: #FBF6E8; }
.drop strong { display: block; margin-bottom: 4px; }
.small { font-size: 13px; color: var(--soft); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 14px; display: none; }
.bar > i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); font-weight: 600; }
.empty { color: var(--soft); font-size: 14px; }
.stepnum { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 600; margin-bottom: 14px; }
@media (max-width: 760px) {
  .row2, .grid { grid-template-columns: 1fr; }
  .wrap { padding: 32px 16px 64px; }
  h1 { font-size: 28px; }
  .brand span { font-size: 17px; line-height: 1.12; }
  .toplinks { gap: 10px 14px; font-size: 13px; }
  .toplinks a.btn { padding: 7px 12px; }
  .brand img { height: 34px; }
  .topbar-in { padding: 12px 16px; }
  .card { padding: 22px 18px; }
}

/* Invoices and payments */
dialog { border: 1px solid var(--line); border-radius: 4px; padding: 26px; width: calc(100% - 32px); max-width: 560px; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(17,17,17,.55); }
dialog h2 { margin-top: 0; }
dialog .actions { margin-top: 22px; }
.spill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; background: #F1EEE4; color: var(--soft); white-space: nowrap; }
.spill.Paid { background: #EDF6EF; color: var(--ok); }
.spill.Sent, .spill.Part { background: #FBF3DC; color: var(--gold-dark); }
.spill.Overdue { background: #FBEDED; color: var(--err); }
.proj { border: 1px solid var(--line); border-radius: 4px; margin-top: 18px; }
.proj-h { padding: 14px 16px; background: var(--cream); display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.proj-h h3 { margin: 0; font-size: 18px; }
.sumline { padding: 10px 16px; font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 22px; flex-wrap: wrap; }
.sumline b { font-weight: 600; }
.paysub td { background: #FDFCF8; font-size: 13px; color: var(--muted); padding-left: 28px; }
.mini { background: none; border: 0; padding: 0 6px 0 0; color: var(--gold-dark); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.preview { border: 1px solid var(--line); border-radius: 4px; margin-top: 14px; }
.preview iframe { width: 100%; height: 340px; border: 0; background: #F4F1E8; }
.preview .hd { padding: 10px 14px; font-size: 13px; background: var(--cream); border-bottom: 1px solid var(--line); }
.terms { background: var(--cream); border-left: 3px solid var(--gold); padding: 12px 16px; font-size: 14px; margin-top: 16px; }
.terms p { margin: 6px 0; }

.item-acts { display: flex; gap: 6px; flex-wrap: wrap; }
