:root { --red: #CF1A24; --red-dark: #A8141C; --ink: #303030; --text: #2B2B2B; --muted: #6B6B6B; --line: #E4E4E4; --soft: #F6F6F6; --ok: #1E7F4E; --ok-bg: #E8F5EC; --warn: #8A5A00; --warn-bg: #FFF4DC; --danger: #B3261E; --radius: 8px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--text); background: var(--soft); font-size: 15px; line-height: 1.55; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; padding-top: 28px; padding-bottom: 40px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }
h1, h2 { font-family: Cinzel, Georgia, serif; color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin: 1.2em 0 .4em; color: var(--ink); }
p { margin: 0 0 .9em; } a { color: var(--red); }
.muted { color: var(--muted); } .small { font-size: .88rem; } .centre { text-align: center; } .r { text-align: right; }
code { background: #eee; padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand img { display: block; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 20px 0; border-bottom: 2px solid transparent; }
.nav a.active, .nav a:hover { border-bottom-color: var(--red); }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.logout { color: var(--muted); }
.client-brand { display: flex; flex-direction: column; line-height: 1.2; }
.client-brand strong { font-family: Cinzel, serif; color: var(--ink); } .client-brand span { color: var(--muted); font-size: .9rem; }

/* layout */
.two-col { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 20px; }
.side-head, .page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.page-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.inline { display: inline; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], select, textarea { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #C9C9C9; border-radius: var(--radius); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { resize: vertical; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid #C9C9C9; cursor: pointer; font-size: .92rem; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills.small .pill span { padding: 4px 10px; font-size: .85rem; }
.service-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.service:last-child { border-bottom: 0; } .service:has(input:checked) { background: var(--soft); }
.service .name { flex: 1; } .service .billing { display: inline-block; width: 64px; }
.service input[type=checkbox] { margin: 0; }
input.price { width: 76px; text-align: right; padding: 6px 8px; }
.link { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; padding: 6px 0; }
.totalbar { display: flex; justify-content: space-between; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0 4px; font-size: .92rem; }
.totalbar strong { font-size: 1.25rem; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.check input { margin-top: 4px; }
.copybox { display: flex; gap: 8px; } .copybox input { font-size: .85rem; color: var(--muted); }
.signature { font-family: Cinzel, Georgia, serif; font-size: 1.3rem; }

/* buttons */
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: var(--radius); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #C9C9C9; } .btn-ghost:hover { background: var(--soft); }
.btn-small { padding: 7px 14px; font-size: .9rem; } .btn-block { width: 100%; }

/* badges / alerts */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.badge-muted { background: #EEE; color: var(--muted); } .badge-info { background: #E8EEF6; color: #2B4C7E; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: #FBE9EA; color: var(--danger); } .badge-active { background: var(--ink); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); } .alert-warn { background: var(--warn-bg); color: var(--warn); } .alert-error { background: #FBE9EA; color: var(--danger); }
.tip { background: var(--soft); border-radius: var(--radius); padding: 10px 12px; font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* lists & tables */
.list { list-style: none; margin: 0; padding: 0; }
.list li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list li:last-child a { border-bottom: 0; } .list li a:hover strong { color: var(--red); }
.list.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table.fees td { padding: 10px 0; } .table.fees .total td { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
tr.inactive, .svc.inactive summary { opacity: .55; }
blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--red); }

/* engagement pack */
details.pack, details.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; background: #fff; }
details summary { cursor: pointer; font-weight: 700; }
.pack-section, .pack-preview { padding: 8px 0; } .pack-section h3 { margin-top: 12px; }
.pack-section p, .pack-preview p { font-size: .95rem; }
h2.cat { margin-top: 22px; }

/* login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 32px; width: 100%; max-width: 420px; }
.login-logo { display: block; width: 240px; margin: 0 auto 10px; }

.foot { color: var(--muted); font-size: .85rem; padding: 18px 0 30px; }

@media (max-width: 860px) {
  .two-col, .row { grid-template-columns: 1fr; }
  .nav { gap: 14px; } .who span:first-child { display: none; }
  .topbar .wrap { gap: 14px; }
}

/* drop 2 */
.progress { display: flex; gap: 6px; margin-bottom: 6px; } .progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); } .progress span.on { background: var(--red); }
.upload-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.upload { border: 1px dashed #BDBDBD; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.upload.done { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.upload input[type=file] { font-size: .9rem; }
.table.kv th { width: 36%; color: var(--muted); font-weight: 400; }
.doc { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 12px; }
.doc-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.doc-preview { width: 100%; max-height: 420px; object-fit: contain; border: 0; background: var(--soft); border-radius: 6px; display: block; }
iframe.doc-preview { height: 420px; }
.btn.danger { color: var(--danger); border-color: #F0B4B7; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.25rem; color: var(--ink); } .stat strong.warn { color: var(--warn); } .stat strong.ok { color: var(--ok); }
.tasks { list-style: none; padding: 0; margin: 0 0 14px; } .tasks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tasks li .title { flex: 1; } .tasks li.done .title { color: var(--muted); text-decoration: line-through; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #BDBDBD; background: #fff; cursor: pointer; color: var(--ok); font-weight: 700; padding: 0; line-height: 1; }
.tasks li.done .tick { border-color: var(--ok); background: var(--ok-bg); }
.addtask { display: grid; gap: 8px; grid-template-columns: 1fr auto auto auto; align-items: center; margin-bottom: 22px; }
@media (max-width: 860px) { .upload-grid, .addtask { grid-template-columns: 1fr; } }
