/* Peacro Portal: one small stylesheet, no frameworks. */
:root {
  --bg: #F5F6F3; --card: #FFFFFF; --ink: #17201B; --muted: #5E6A63; --line: #E1E5DF;
  --brand: #14532D; --brand-2: #1F7A45; --brand-soft: #E7F2EA; --accent: #F59E0B;
  --ok: #157347; --ok-soft: #E3F4EA; --warn: #A15C00; --warn-soft: #FFF3DC; --bad: #B42318; --bad-soft: #FDECEA; --info: #1D4F91; --info-soft: #E6EFFA;
  --r: 12px; --shadow: 0 1px 2px rgba(16,24,20,.05), 0 2px 8px rgba(16,24,20,.04);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
a { color: var(--brand-2); }
h1 { font-size: 1.45rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: .25rem 0 .75rem; }
small, .muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.brand b { color: var(--brand); }
.logo-mark { width: 30px; height: 30px; }
.switch { margin-left: 10px; }
.switch select { max-width: 260px; padding: 7px 30px 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .9rem; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who form { margin: 0; }
.who-name { font-size: .9rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.navtoggle { display: none; }

/* frame */
.layout { display: flex; min-height: calc(100vh - 58px); }
.side { width: 238px; flex: none; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.side a:hover { background: var(--bg); }
.side a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-label { margin: 14px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8A948E; }
.side-back { color: var(--muted) !important; font-size: .85rem !important; }
.side-app { display: flex; gap: 10px; align-items: center; padding: 10px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-app .ic { width: 26px; height: 26px; color: var(--brand); }
.side-app small { display: block; font-size: .78rem; }
.side-foot { margin-top: auto; padding: 12px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.main { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1180px; }
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 20px; }

/* blocks */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head p { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.stat:hover { border-color: var(--brand-2); }
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-value { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.stat-hint { font-size: .78rem; color: var(--muted); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty h1 { color: var(--ink); }
.empty.small { padding: 26px 16px; }
.empty.small b { display: block; color: var(--ink); }

/* app tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: var(--brand-2); }
.tile .ic { width: 30px; height: 30px; color: var(--brand); }
.tile p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.tile .row { margin-top: 6px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #FAFBF9; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td .sub { display: block; font-size: .8rem; color: var(--muted); }
tr.link-row { cursor: pointer; }
tr.link-row:hover td { background: #FAFBF9; }

/* forms */
label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 5px; }
.field { margin-bottom: 14px; }
.field small { display: block; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=url], input[type=search], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #CDD4CC; border-radius: 9px; background: #fff; font: inherit; color: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 0; border-color: var(--brand-2); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; }
.inline { display: inline; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; color: var(--brand); border-color: #C5D3C9; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: transparent; color: var(--bad); border-color: #EBC2BE; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.btn .ic { width: 16px; height: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .92rem; }
.tabs a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.tabs a .badge { margin-left: 4px; }

/* badges and messages */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #EEF0EC; color: #3F4A43; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.flash { padding: 11px 15px; border-radius: 10px; margin-bottom: 16px; background: var(--info-soft); color: var(--info); font-size: .92rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.note { padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88rem; margin-bottom: 14px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px; font-size: .88rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* conversation */
.inbox { display: grid; grid-template-columns: 300px 1fr; min-height: 520px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.inbox-list a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.inbox-list a.on { background: var(--brand-soft); }
.inbox-list a:hover { background: #FAFBF9; }
.inbox-list b { display: block; font-size: .92rem; }
.inbox-list span { display: block; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 60vh; background: #FAFBF9; }
.msg { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.msg.out { align-self: flex-end; background: #DCF3E2; }
.msg.agent { align-self: flex-end; background: #FFF1D6; }
.msg time { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.reply { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.reply textarea { min-height: 44px; }

/* sign in */
.signin { width: 100%; max-width: 410px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.signin .logo-mark { width: 52px; height: 52px; margin-bottom: 12px; }
.signin .btn { width: 100%; justify-content: center; padding: 12px; margin-top: 14px; }
.signin ul { text-align: left; color: var(--muted); font-size: .9rem; padding-left: 18px; }

/* Peacro Account sign-in */
.auth { text-align: left; }
.auth h1 { font-size: 1.35rem; margin: 6px 0 6px; }
.auth > p.muted { margin-top: 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.05rem; margin-bottom: 14px; }
.auth-brand .logo-mark { width: 36px; height: 36px; margin: 0; }
.auth-brand b { color: var(--brand); }
.auth-form { margin-top: 16px; }
.auth .btn { margin-top: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { font-size: .82rem; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand-2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; padding: 6px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 20px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .88rem; margin: 4px 0 8px; }
.check input { margin-top: 3px; }
.field-err { color: var(--bad); }
.linkbtn { border: 0; background: none; color: var(--brand-2); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
input.code { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.small { font-size: .86rem; }
.auth p.small { margin: 14px 0 0; text-align: center; }
.auth form.small { margin-top: 16px; text-align: center; }
.auth-foot { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 16px; }
body.bare { align-content: center; }
.idcard { display: flex; gap: 14px; align-items: center; }
.idcard .sub { display: block; color: var(--muted); font-size: .86rem; margin: 2px 0 6px; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.2rem; flex: none; }
ul.plain { list-style: none; padding: 0; margin: 8px 0 14px; }
ul.plain li { padding: 8px 0; border-top: 1px solid var(--line); }
ul.plain .sub { display: block; color: var(--muted); font-size: .82rem; }
form.roles { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
form.roles label { display: inline-flex; gap: 4px; align-items: center; font-weight: 400; margin: 0; font-size: .84rem; }
.launcher .tile { min-height: 0; }

/* Explore: app plans */
.plan-tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin: 2px 0 4px; background: var(--soft, #eef3ee); color: var(--brand); }
.plan-tag.owner { background: #fdf3e2; color: #8a5a00; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.levels p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.crumbs { margin: 0 0 6px; font-size: .86rem; color: var(--muted); }
.head h1 .ico, .head h1 svg { width: 26px; height: 26px; vertical-align: -4px; }

td.planof { min-width: 170px; }
td.planof select, td.planof input { display: block; width: 100% !important; padding: 5px 8px; font-size: .84rem; margin: 0 0 4px; }
details.card summary { cursor: pointer; }

/* Explore: app store */
.store { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.app-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.app-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.app-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-card .tagline { color: var(--muted); line-height: 1.35; }
.app-card .meta, .app-hero .meta { gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.app-logo { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: cover; }
.app-logo.lg { width: 84px; height: 84px; border-radius: 20px; }
.ico-box { display: inline-flex; align-items: center; justify-content: center; background: var(--soft, #eef3ee); color: var(--brand); border-radius: 12px; }
.app-logo.ico-box .ic { width: 28px; height: 28px; }
.app-logo.lg.ico-box .ic { width: 40px; height: 40px; }
.app-cover { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 16px; margin: 4px 0 16px; }
.app-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 4px 0 18px; }
.app-hero-text { flex: 1; min-width: 220px; }
.app-hero h1 { margin: 0; }
.app-hero .tagline { margin: 4px 0 0; color: var(--muted); font-size: 1.02rem; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.about p { margin: 0; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: var(--ink); text-decoration: none; }
a.feature:hover { border-color: var(--brand); }
.feature .ico-box { width: 38px; height: 38px; flex: none; }
.feature small { display: block; color: var(--muted); }
.feature small.by { color: var(--brand-2); font-weight: 600; margin-top: 2px; }
.partof { margin: -6px 0 16px; }
h3.lvl { margin: 14px 0 8px; font-size: 1rem; }
.stars { color: #e0a100; letter-spacing: 1px; font-size: .95rem; }
.stars .off { color: var(--line); }
fieldset.rate { border: 0; padding: 0; margin: 8px 0; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
fieldset.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset.rate label { font-size: 1.7rem; color: var(--line); cursor: pointer; line-height: 1; margin: 0; }
fieldset.rate input:checked ~ label, fieldset.rate label:hover, fieldset.rate label:hover ~ label { color: #e0a100; }
fieldset.rate input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app-logo.sm { width: 36px; height: 36px; border-radius: 10px; }
.app-logo.sm.ico-box .ic { width: 20px; height: 20px; }

.app-card .tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
form.card > b:first-of-type + fieldset.rate { display: flex; width: max-content; }

.feature small.soon { color: #8a5a00; font-weight: 600; }
.features.services { margin-bottom: 26px; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; align-items: start; }
.way h2 { margin: 6px 0 4px; }
.side-tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.way.owner .side-tag { color: #8a5a00; }

@media (max-width: 640px) {
  .features.services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .features.services .feature { padding: 10px; gap: 8px; }
  .features.services .feature small:not(.soon) { display: none; }
  .features.services .ico-box { width: 32px; height: 32px; }
}

.saved { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.saved-entry dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 12px; font-size: .9rem; }
.saved-entry dt { color: var(--muted); }
.saved-entry dd { margin: 0; }

@media (max-width: 900px) {
  .g2, .g3, .g-main { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .navtoggle { display: inline-grid; }
  .top { padding: 0 10px; gap: 8px; }
  .brand span, .who-name { display: none; }
  .switch { margin-left: 0; flex: 1; min-width: 0; }
  .switch select { max-width: 100%; width: 100%; }
  .side { position: fixed; left: 0; top: 58px; z-index: 15; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 18px rgba(0,0,0,.1); }
  body.nav-open .side { transform: none; }
  .main { padding: 18px 16px 50px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  th, td { padding: 9px 10px; }
}

/* invoices and quotations print as clean documents */
.doc { max-width: 860px; }
.doc tfoot th, .doc tfoot td { border-bottom: 0; }
@media print {
  .top, .side, .noprint, .flash, .navtoggle { display: none !important; }
  body, .layout { background: #fff; display: block; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
}

.head form.row { flex-wrap: nowrap; }
.head form.row input { width: 220px; }
@media (max-width: 760px) { .head form.row, .head form.row input { width: 100%; } }

/* ---------- Agent (Nyanga Online profiling) ---------- */
.ag-big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border-radius: 14px; background: var(--accent); border: 0; color: #3B2600; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.ag-big:hover { background: #E08F06; color: #3B2600; }
.ag-big[disabled] { background: #DADFD8; color: #5E6A63; cursor: not-allowed; }
.ag-hero { background: var(--brand); color: #fff; border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.ag-hero h1 { color: #fff; margin: 2px 0 12px; font-size: 1.35rem; }
.ag-hero .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #CFE6D6; }
.ag-hero .ag-tagline { margin: 2px 0 10px; font-size: .82rem; color: #CFE6D6; }
.ag-hero .stats { margin: 0; }
.ag-hero .stat { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; box-shadow: none; }
.ag-hero .stat-label, .ag-hero .stat-hint { color: #CFE6D6; }
.ag-hero .stat-value { color: #fff; }
.ag-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 10px; }
.ag-bar span { display: block; height: 100%; background: var(--accent); }
.ag-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ag-type { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ag-type:hover { border-color: var(--brand-2); }
.ag-type .ico-box { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: var(--accent); display: grid; place-items: center; }
.ag-type .ico-box .ic { width: 24px; height: 24px; }
.ag-type b { font-size: 1.05rem; }
.ag-type p { margin: 2px 0 6px; color: var(--muted); font-size: .9rem; }
.ag-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ag-steps li { padding-top: 8px; border-top: 4px solid var(--line); }
.ag-steps li.on { border-color: var(--accent); color: var(--ink); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 6px; }
.ag-chips legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ag-chip { position: relative; }
.ag-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #CDD4CC; background: #fff; font-size: .92rem; font-weight: 600; cursor: pointer; }
.ag-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.ag-chip input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ag-chip small { font-weight: 600; margin-left: 6px; opacity: .8; }
.ag-note { padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin: 8px 0 14px; }
.ag-note.free { background: var(--brand-soft); color: var(--brand); }
.ag-note.paid { background: var(--warn-soft); color: #6B4400; }
.ag-map { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #E3ECE5; border: 1px solid #C9D6CD; font-size: .92rem; margin-bottom: 8px; }
.ag-map.ok { background: var(--ok-soft); color: var(--ok); border-color: #BFE3CC; font-weight: 600; }
.ag-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ag-photo { position: relative; border-radius: 12px; overflow: hidden; background: #E7E9E4; aspect-ratio: 4 / 3; }
.ag-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-photo label { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 8px; font-size: .78rem; font-weight: 600; }
.ag-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; border: 2px dashed #B5BDB3; border-radius: 12px; background: #fff; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; text-align: center; padding: 6px; }
.ag-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-add .ic { width: 26px; height: 26px; }
.ag-add.has { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.ag-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #CDD4CC; margin: 6px 0 16px; font-weight: 400; }
.ag-consent input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--brand); }
.ag-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ag-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 400; }
.ag-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ag-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.ag-opt .grow { flex: 1; }
.ag-opt.off { opacity: .6; cursor: not-allowed; }
.ag-sum { background: var(--brand); color: #fff; border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; margin-bottom: 14px; }
.ag-sum div { display: flex; justify-content: space-between; gap: 10px; }
.ag-sum span { color: #CFE6D6; }
.ag-sum .c { color: var(--accent); font-weight: 700; }
.ag-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ag-row:last-child { border-bottom: 0; }
.ag-row:hover { background: #FAFBF9; }
.ag-row .ico-box { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.ag-row .grow { flex: 1; min-width: 0; }
.ag-row small { display: block; color: var(--muted); }
.ag-fix { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid #F0D39A; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.ag-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ag-more a { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 700; }
.ag-review { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.ag-queue a { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ag-queue a.on { background: #F0F6F1; }
.ag-queue a .grow { flex: 1; min-width: 0; }
.ag-queue small { display: block; color: var(--muted); }
@media (max-width: 900px) { .ag-review { grid-template-columns: 1fr; } }
/* Photos never wider than their box, even before the page styles load */
.card img, .ag-photos img { max-width: 100%; height: auto; }
.ag-photo img { height: 100%; }
.ag-cashrenew { display: flex; gap: 8px; align-items: center; margin-left: 6px; }
.ag-cashrenew .check { margin: 0; font-size: .8rem; white-space: nowrap; }
/* Agent home: jobs */
.ag-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ag-job { display: flex; flex-direction: column; gap: 8px; min-height: 96px; padding: 12px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--line, #E1E5DF); color: inherit; text-decoration: none; }
.ag-job:hover { border-color: #14532D; }
.ag-job b { display: block; font-size: .95rem; }
.ag-job small { color: var(--muted, #5C6B63); font-size: .8rem; }
.ag-job.off { background: #EEEFEB; border-color: #EEEFEB; color: #5C6360; cursor: default; }
.ag-job .app-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.ag-earn { color: #8A5300; font-weight: 600; }
.ag-appticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; }
.ag-appticks .check { margin: 0; }
.ag-job .ico-box { width: 38px; height: 38px; flex: none; align-self: flex-start; }
.ag-row .grow { min-width: 0; }
@media (max-width: 640px) {
  .ag-row:has(.ag-cashrenew) { flex-wrap: wrap; }
  .ag-row .ag-cashrenew { flex-basis: 100%; margin: 6px 0 0 52px; }
}
.ag-code { font: 700 1.4rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: #F3F7F2; border: 1px dashed #9DB3A5; border-radius: 12px; padding: 12px 14px; margin: 8px 0; text-align: center; }

/* leads: the stage line, and the home link */
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.ag-steps li { counter-increment: st; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .82rem; color: var(--muted); }
.ag-steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; border: 2px solid #CDD5CA; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; }
.ag-steps li.done::before { content: "\2713"; background: var(--brand); border-color: var(--brand); color: #fff; }
.ag-steps li.now::before { border-color: var(--brand); color: var(--brand); }
.ag-steps li.done, .ag-steps li.now { color: var(--ink, #17201B); }
.bad-text { color: var(--bad, #B42318); }

/* a customer's quotation (/q/...) */
.qv { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.qv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.qv-brand { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.qv .eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A6520F; }
.qv-agent { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--soft, #F4F8F7); }
.qv-agent img { border-radius: 50%; }
.qv-total { font-size: 1.15rem; }
.qv-note { margin: 0; padding: 12px 16px; color: var(--muted); border-top: 1px solid var(--line); }
.qv-foot { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* ---------- agent SMS (pages/agent-sms.php, admin-agents.php sms) ---------- */
.grid.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sms-limit { display: flex; align-items: center; gap: 12px; }
.sms-limit small { display: block; }
.sms-limit .ag-bar { margin-top: 8px; background: var(--line); }
.sms-narrow { max-width: 680px; }
.sms-body { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #FBFCFA; line-height: 1.5; }
.sms-bubble { margin: 10px 0; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #F1F4EF; line-height: 1.45; max-width: 520px; overflow-wrap: anywhere; }
.sms-ok { margin: 0; color: #166534; font-size: .9rem; }
.sms-ok .ico { vertical-align: -3px; }
.sms-check { border: 2px solid #CFE3D5; }
.sms-all { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; max-height: 320px; overflow: auto; }
.sms-all li { margin-bottom: 6px; overflow-wrap: anywhere; }
.sms-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.sms-list label { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.sms-list label:last-child { border-bottom: 0; }
.sms-list label[hidden] { display: none; }
.sms-people summary { cursor: pointer; }
.sms-actions { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.sms-actions .btn { min-height: 48px; padding-inline: 22px; }
.sms-row small { display: block; overflow-wrap: anywhere; }
.sms-row form { margin: 0; }
.sms-why { color: var(--bad, #B42318); font-size: .86rem; margin: 4px 0 0; }
.sms-groups { margin-bottom: 12px; flex-wrap: wrap; }
.sms-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.sms-tpl { margin: 0; }
.sms-tpl p { margin: 6px 0 12px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.sms-tpl .row { gap: 8px; align-items: center; }
.sms-meter { display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.sms-meter span { display: block; height: 6px; background: var(--brand); }
.sms-meter span.near { background: #F59E0B; }
.sms-meter span.full { background: #B42318; }
.sms-edit { display: grid; gap: 6px; margin-top: 8px; min-width: 300px; }
.sms-approve .sms-bubble { margin: 12px 0; }

/* ---------- leads: organisation or individual ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ld-kind { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ld-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.ld-opt:has(input:checked) { border-color: var(--brand); background: #EEF6F0; box-shadow: inset 0 0 0 1px var(--brand); }
.ld-opt input { margin-top: 3px; accent-color: var(--brand); }
.ld-opt b { display: block; }
.ld-opt small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.ld-org[hidden], .ld-person[hidden] { display: none; }
.ld-edit { margin-top: 10px; }
@media (max-width: 520px) { .ld-kind { grid-template-columns: 1fr; } }

/* price list: where to get it (admins only) */
.pl-src { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.pl-supplier { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px 0; margin: 0 0 12px; }
.pl-supplier legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }

/* ---------- quotation requests (pages/agent-qreq.php, admin qreq) ---------- */
.qr-form .card h2 { margin-top: 0; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-chip { position: relative; margin: 0; }
.qr-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qr-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; }
.qr-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.qr-chip input:focus-visible + span { outline: 3px solid #F59E0B; outline-offset: 2px; }
.qr-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.qr-count:first-of-type { border-top: 0; }
.qr-count label { margin: 0; font-weight: 600; }
.qr-count small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.qr-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qr-step button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; font-weight: 700; color: var(--brand); cursor: pointer; }
.qr-step input { width: 64px; text-align: center; font-weight: 700; }
.qr-q { padding: 10px 0; border-top: 1px solid var(--line); }
.qr-q:first-of-type { border-top: 0; }
.qr-q > span { display: block; font-weight: 600; margin-bottom: 8px; }
.qr-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.qr-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.qr-ask { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); }
.qr-list { display: flex; flex-direction: column; gap: 8px; }
.qr-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin: 0; }
.qr-item small { display: block; color: var(--muted); }
.qr-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.qr-detail .qr-thumbs img { width: 120px; height: 120px; }
.qr-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #F5F6F3; overflow-wrap: anywhere; }
.qr-map { font-weight: 700; }
.qr-map .ico { vertical-align: -4px; }
.qb-cat { margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.qb-line { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.qb-line.tier { background: #F3F9F4; }
.qb-line label { margin: 0; flex: 1 1 auto; min-width: 0; }
.qb-line small { display: block; color: var(--muted); font-weight: 400; }
.qb-line input { width: 84px; flex: 0 0 84px; text-align: right; }
.qb-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #F5F6F3; font-size: 1.05rem; }
@media (max-width: 960px) { .qr-detail { grid-template-columns: 1fr; } }

/* agent home: Today and Sales */
.ag-todo a.ag-row { color: inherit; text-decoration: none; }
.ag-todo a.ag-row:hover { background: #F7F9F6; }
.ag-todo .ag-row small { display: block; color: var(--muted); }
.ag-todo-bad .ico-box { background: var(--bad-soft); color: var(--bad); }
.ag-todo-warn .ico-box { background: var(--warn-soft); color: var(--warn); }
.ag-todo-go { font-size: 1.5rem; color: var(--muted); line-height: 1; }
.ag-sales-tiles .ag-job:first-child { background: #EEF6F0; border-color: #CFE3D5; }
.ag-sales-tiles .ag-sms { background: #FFF8EB; border-color: #F3DDB0; }
@media (max-width: 560px) {
  .ag-hero .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ag-hero .stat { padding: 10px; min-width: 0; }
  .ag-hero .stat-value { font-size: 1.15rem; }
  .ag-hero .stat-label, .ag-hero .stat-hint { font-size: .72rem; line-height: 1.25; }
}

/* PaySpot (apps/payspot) */
.ps-kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ps-pick { display: flex; align-items: center; gap: 8px; margin: 0; }
.ps-pick label { margin: 0; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.ps-pick select { min-width: 200px; }
.ps-viewing a { color: inherit; font-weight: 700; }
.ps-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-list li + li { border-top: 1px solid var(--line); }
.ps-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 18px; color: inherit; text-decoration: none; }
.ps-list a:hover { background: #F7F9F6; }
.ps-list small { display: block; color: var(--muted); font-size: .82rem; }
.ps-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.ps-todo a { justify-content: flex-start; }
.ps-n { flex: 0 0 36px; height: 36px; border-radius: 10px; background: #EEF1EC; color: #3F4B44; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ps-n.warn { background: var(--warn-soft); color: var(--warn); }
.ps-link { padding: 12px; border-radius: 12px; background: #F5F6F3; font-family: ui-monospace, monospace; font-size: .92rem; overflow-wrap: anywhere; }
.ps-old { background: #FBFCFA; }
.ps-old p { color: var(--muted); }
.ps-sum { margin: 0 0 10px; color: var(--muted); }
.ps-sum b { color: var(--ink); }
.ps-tx .nowrap, .ps-tx td:first-child { white-space: nowrap; }
.mono { font-family: ui-monospace, monospace; font-size: .86rem; }
.ps-confirm { border-color: #F3DDB0; background: #FFFBF2; }
.ps-merch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ps-merch tr.on td { background: #F3F9F4; }
.ps-merch td small.block { display: block; }
.ps-detail .muted, .ps-cols .muted { color: var(--muted); }
.ps-warn { color: var(--warn); }
.ps-linked { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #F3F9F4; border: 1px solid #CFE3D5; }
.ps-linked span { color: #3F4B44; font-size: .9rem; }
.ps-h3 { margin: 16px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ps-person, .ps-sug { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.ps-person small, .ps-sug small { display: block; color: var(--muted); }
.ps-sug { margin: 0; }
.ps-link-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 12px 0; }
.ps-link-form label { flex: 1 0 100%; margin: 0; font-weight: 600; }
.ps-link-form select { flex: 1 1 200px; }
.ps-open { background: var(--accent, #F59E0B); color: #14532D; border-color: transparent; }
@media (max-width: 960px) { .ps-merch { grid-template-columns: 1fr; } .ps-detail { order: -1; } }
@media (max-width: 560px) {
  .ps-pick { width: 100%; } .ps-pick select { flex: 1; min-width: 0; }
  .ps-list a { padding: 10px 14px; }
}

/* PaySpot phase 2: items, requests, reviews, emails, settings */
.ps-sub { color: var(--muted); font-size: .84rem; font-weight: 400; }
.ps-sub.block, small.block { display: block; }
.ps-group { margin-bottom: 16px; }
.ps-group .card-head h2 { font-size: 1.05rem; }
.ps-off td { color: var(--muted); }
.ps-group-edit { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FBFCFA; display: grid; gap: 10px; }
.ps-form { display: grid; gap: 14px; }
.ps-form .field { margin: 0; }
.ps-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.ps-types { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.ps-types legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ps-type { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; }
.ps-type:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ps-type input { margin-top: 3px; }
.ps-type small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.ps-check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 4px 0; }
.ps-check input { width: auto; }
.ps-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.ps-new summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.ps-new summary::after { content: "+"; font-weight: 700; color: var(--brand); }
.ps-new[open] summary { margin-bottom: 14px; }
.ps-new[open] summary::after { content: "\2212"; }
.ps-reqs li, .ps-revs li { padding: 12px 18px; }
.ps-reqs li.ps-just { background: #F3F9F4; }
.ps-req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ps-req-top small { display: block; color: var(--muted); font-size: .82rem; }
.ps-req-acts { margin-top: 8px; gap: 6px; }
.ps-linkbox { flex: 1 1 220px; min-width: 0; font: .8rem ui-monospace, monospace; padding: 6px 8px; background: #F5F6F3; }
.ps-stars { color: #D97706; letter-spacing: 1px; }
.ps-stars span { color: #D5DAD3; }
.ps-quote { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #F5F6F3; overflow-wrap: anywhere; }
.ps-mail { white-space: pre-wrap; font: .88rem/1.5 ui-monospace, monospace; margin: 0; overflow-wrap: anywhere; }
.ps-prefix { display: flex; align-items: stretch; }
.ps-prefix span { display: flex; align-items: center; padding: 0 8px; background: #F5F6F3; border: 1px solid #CDD5CA; border-right: 0; border-radius: 10px 0 0 10px; font-size: .86rem; color: var(--muted); }
.ps-prefix input { border-radius: 0 10px 10px 0; min-width: 0; }
.ps-logo { display: block; max-height: 64px; max-width: 200px; margin-bottom: 8px; border-radius: 8px; }
.ps-cover { display: block; width: 100%; max-height: 120px; object-fit: cover; margin-bottom: 8px; border-radius: 10px; }
.card-head.ps-flat { padding: 0 0 10px; border-bottom: 0; }
.ps-qr img { display: block; margin: 10px 0 12px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 560px) {
  .ps-reqs li, .ps-revs li { padding: 12px 14px; }
  .ps-req-acts .btn { flex: 1 1 auto; }
}
.field label small { display: inline; margin: 0; color: var(--muted); font-weight: 400; }
.ps-twins { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); font-size: .92rem; } .ps-twins .ps-sug { border-color: #F3DDB0; }
/* activity log */
.pt-log li { padding: 11px 18px; }
.pt-log-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pt-log-top small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; overflow-wrap: anywhere; }
.pt-log-no { font: .78rem ui-monospace, monospace; color: var(--muted); white-space: nowrap; }
.pt-log-key { border-left: 3px solid var(--accent); }
.pt-log details { margin-top: 6px; }
.pt-log summary { cursor: pointer; color: var(--brand); font-size: .84rem; font-weight: 600; }
.pt-log .kv { margin-top: 6px; font-size: .84rem; grid-template-columns: minmax(110px, 200px) 1fr; }
.ps-receipt { border-color: #CFE3D5; background: #F3F9F4; }

/* ---------- Explore (043): "I want to...", your apps, apps by group ---------- */
.ex { display: flex; flex-direction: column; gap: 22px; max-width: 1120px; }
.ex-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ex-head > div { flex: 1 1 360px; }
.ex-head h1 { margin: 0; font-size: 1.9rem; letter-spacing: -.02em; }
.ex-head p { margin: 4px 0 0; }
.ex-switch { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; font-size: .92rem; }
.ex-switch a { padding: 8px 14px; border-radius: 7px; color: var(--muted); text-decoration: none; }
.ex-switch a.on { background: var(--brand); color: #fff; font-weight: 600; }
.ex-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: var(--info-soft); border-color: transparent; }
.ex-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 8px 0 16px; min-height: 52px; }
.ex-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ex-search > .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ex-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 12px 0; box-shadow: none; }
.ex-sec { display: flex; flex-direction: column; gap: 12px; }
.ex-sec h2 { margin: 6px 0 0; font-size: 1.2rem; }
.ex-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ex-act { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 124px; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ex-act:hover, .ex-act:focus-visible { border-color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ex [hidden] { display: none !important; }
.ex-act-top { display: flex; align-items: center; justify-content: space-between; }
.ex-act .ico-box { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); }
.ex-act .ico-box .ic { width: 22px; height: 22px; }
.ex-act b { font-size: 1.05rem; line-height: 1.3; }
.ex-act small { margin-top: auto; color: var(--muted); }
.ex-act small span { color: var(--ink); font-weight: 600; }
.ex-none { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.ex-none a { font-weight: 600; }
.ex-more { align-self: flex-start; }
.ex-mine { display: flex; gap: 10px; flex-wrap: wrap; }
.ex-chip { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.ex-chip:hover { border-color: var(--brand); }
.ex-chip .app-logo { width: 36px; height: 36px; border-radius: 9px; }
.ex-chip .app-logo .ic { width: 20px; height: 20px; }
.ex-subs { display: flex; flex-direction: column; gap: 10px; }
.ex-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.ex-sub .app-logo { width: 44px; height: 44px; border-radius: 11px; }
.ex-sub .app-logo .ic { width: 22px; height: 22px; }
.ex-sub .grow, .ex-app .grow { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ex-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ex-group h3 { margin: 0; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ex-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ex-app { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ex-app:hover, .ex-app:focus-visible { border-color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ex-app .app-logo { width: 44px; height: 44px; border-radius: 11px; }
.ex-app .app-logo .ic { width: 22px; height: 22px; }
.ex-app-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-app small { color: var(--muted); line-height: 1.45; font-size: .9rem; }
.ex-cta { margin-top: 4px; font-size: .9rem; font-weight: 600; color: var(--brand); }
.ex-chev { flex: none; margin-top: 12px; color: var(--muted); transform: rotate(180deg); display: inline-flex; }
.ex-chev .ic { width: 18px; height: 18px; }
.ex-soon, .ex-ask { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; border: 1px dashed #C9D1C6; }
.ex-ask a { margin-left: auto; font-weight: 600; }
.ex-soon a { font-weight: 500; }
@media (max-width: 640px) {
  .ex-head h1 { font-size: 1.5rem; }
  .ex-switch { width: 100%; }
  .ex-switch a { flex: 1; text-align: center; }
  .ex-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ex-act { min-height: 108px; padding: 14px; }
  .ex-act b { font-size: .98rem; }
  .ex-apps { grid-template-columns: 1fr; }
  .ex-search .btn { display: none; }
  .ex-ask a { margin-left: 0; }
}

/* ---------- sign-up steps, setup, Earn and Customer (pages/setup.php, inc/profile.php) ---------- */
.steps { display: flex; gap: 6px; margin: 0 0 18px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: #D5DBD3; }
.steps span.on { background: var(--brand); }
.auth-pill { display: inline-block; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px; background: #FFF3DC; color: #7A4500; font-weight: 600; font-size: .84rem; }
.pw-ok { color: var(--ok); font-weight: 600; }
.signin.setup { max-width: 470px; }
.setup-hi { margin: 0; color: var(--brand-2); font-weight: 600; }
.choice { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font-weight: 400; }
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.choice-ic { width: 48px; height: 48px; border-radius: 14px; background: #F0F2EE; color: var(--brand); display: grid; place-items: center; flex: none; }
.choice-card:has(input:checked) .choice-ic { background: var(--brand); color: #fff; }
.choice-ic .ic { width: 24px; height: 24px; }
.choice-tx b { display: block; font-size: 1.08rem; }
.choice-tx small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 3px; }
.choice-both { display: flex; justify-content: center; gap: 8px; align-items: center; font-weight: 600; color: var(--brand); font-size: .92rem; cursor: pointer; padding: 6px; }
.choice-both input { width: auto; accent-color: var(--brand); }
.ways { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.way { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 400; min-height: 108px; }
.way input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.way:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.way:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.way-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.way-ic { width: 36px; height: 36px; border-radius: 10px; background: #F0F2EE; color: var(--brand); display: grid; place-items: center; }
.way-ic .ic { width: 20px; height: 20px; }
.way:has(input:checked) .way-ic { background: var(--brand); color: #fff; }
.way-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B7C0B5; display: grid; place-items: center; color: transparent; box-sizing: border-box; }
.way-tick .ic { width: 13px; height: 13px; }
.way:has(input:checked) .way-tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.way b { font-size: .95rem; }
.way small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.ways-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; position: sticky; bottom: 0; background: var(--card); padding: 10px 0 2px; }
.ways-bar .btn { width: auto; margin: 0; padding: 12px 26px; }
.pf-photo { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 6px; }
.pf-photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.pf-photo b { display: block; margin-bottom: 6px; }
.pf-photo small { display: block; margin-top: 6px; }
.signin .btn.file-btn { width: auto; margin: 0; padding: 7px 12px; }
.pf-h { font-size: 1.05rem; margin: 22px 0 8px; }
.small-l { font-size: .86rem; margin: -4px 0 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.pf-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.pf-box-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pf-box-h .ic { width: 20px; height: 20px; color: var(--brand); }
.pf-l { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.pf-done { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: .88rem; margin: 0 0 8px; }
.pf-done .ic { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; font-weight: 400; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #C9D1C7; background: #fff; font-size: .88rem; }
.chip input:checked + span { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; padding: 0 13px; }
.chip input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.chips.links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #C9D1C7; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chips.links a:hover { border-color: var(--brand-2); color: var(--brand); }
.earn-list { display: grid; gap: 10px; }
.earn-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.earn-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #F0F2EE; color: var(--brand); }
.earn-ic .ic { width: 22px; height: 22px; }
.earn-tx { flex: 1; min-width: 0; }
.earn-tx small { display: block; margin-top: 2px; }
.earn-st { display: block; font-weight: 600; font-size: .9rem; margin-top: 2px; }
.t-ok { color: var(--ok); } .earn-ic.t-ok { background: var(--ok-soft); }
.t-warn { color: var(--warn); } .earn-ic.t-warn { background: var(--warn-soft); }
.t-info { color: var(--info); } .earn-ic.t-info { background: var(--info-soft); }
.t-bad { color: var(--bad); } .earn-ic.t-bad { background: var(--bad-soft); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 > .card { margin-bottom: 0; }
.home-split { margin-bottom: 22px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-h h2 { margin: 0 0 10px; }
.card-h a { font-size: .88rem; font-weight: 600; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row b { display: block; }
.mini-row small { display: block; font-weight: 600; font-size: .84rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.t-ok { background: var(--ok); } .dot.t-warn { background: #D97706; } .dot.t-info { background: var(--info); } .dot.t-bad { background: var(--bad); }
.setup-nudge, .start-earn { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--brand-soft); border-color: #CFE3D5; }
.setup-nudge p, .start-earn p { margin: 4px 0 0; }
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .earn-row { flex-wrap: wrap; }
  .earn-row .btn { margin-left: 58px; }
}
@media (max-width: 380px) {
  .row2 { grid-template-columns: 1fr; }
}
.choice:has(input[value=both]:checked) .choice-card { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input[value=both]:checked) .choice-ic { background: var(--brand); color: #fff; }
.more-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.more-way { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px dashed #C5D3C9; border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff; }
.more-way:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.more-way .ic { width: 22px; height: 22px; color: var(--brand); flex: none; }
.more-way b { display: block; font-size: .95rem; }
.more-way small { display: block; color: var(--muted); font-size: .82rem; }
.t-pay { color: #8A4B00; } .earn-ic.t-pay { background: #FFE9C7; } .dot.t-pay { background: #E08A00; }
.way-fee { display: inline-block; margin-top: 6px; align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E3F4EA; color: #157347; }
.way-fee.paid { background: #FFF3DC; color: #7A4500; }

/* ---------- header: News, Notices, your photo and menu (inc/layout.php pt_header_right) ---------- */
.hdr { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hicon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.hicon:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.hicon .ic { width: 20px; height: 20px; }
.hb { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; border: 2px solid var(--card); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.hb.bad { background: var(--bad); } .hb.info { background: var(--info); }
.me-menu { position: relative; }
.me-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--card); }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu > summary:hover, .me-menu[open] > summary { border-color: var(--brand-2); background: var(--brand-soft); }
.me-menu > summary .ic { width: 16px; height: 16px; color: var(--muted); }
.me-menu > summary:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.me-menu .avatar { width: 34px; height: 34px; }
img.avatar { object-fit: cover; display: block; background: var(--brand-soft); }
.me-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 20px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(20,40,25,.16); padding: 8px; z-index: 40; }
.me-who { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-who .avatar.lg { width: 50px; height: 50px; }
.me-who b { display: block; font-size: 1rem; }
.me-who small { display: block; color: var(--muted); font-size: .8rem; }
.me-pop a, .me-pop button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.me-pop a:hover, .me-pop button:hover, .me-pop a:focus-visible, .me-pop button:focus-visible { background: var(--bg); outline: none; }
.me-pop .ic { width: 19px; height: 19px; color: var(--muted); }
.me-pop form { margin: 0; }
.mm-t { flex: 1; min-width: 0; }
.mm-t b { display: block; font-weight: 600; font-size: .93rem; }
.mm-t small { display: block; color: var(--muted); font-size: .78rem; }
.mm-n { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--bad-soft); color: var(--bad); font-size: .74rem; font-weight: 800; display: grid; place-items: center; }
.me-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.me-pop .mm-out, .me-pop .mm-out .ic { color: var(--bad); }
@media (max-width: 760px) {
  .hdr { gap: 6px; }
  .hicon { width: 38px; height: 38px; }
  .me-menu > summary { padding: 0 4px; gap: 4px; height: 42px; }
  .me-menu > summary > .ic { display: none; }
  .me-pop { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
}

/* ---------- app squares, roles ---------- */
.app-logo.xs { width: 24px; height: 24px; border-radius: 7px; }
.app-logo.xs.ico-box .ic { width: 14px; height: 14px; }
.app-logo.peacro { display: inline-grid; place-items: center; background: none; }
.app-logo.peacro .logo-mark { width: 100%; height: 100%; }
.app-logo.sm.peacro { width: 34px; height: 34px; }
.ex-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.role { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; background: #F1F3EF; color: #4F5B54; font-size: .74rem; font-weight: 700; }
.role.have { background: var(--ok-soft); color: var(--ok); }
.role .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.paid-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: .72rem; font-weight: 700; }
small.paid-tag { margin-top: 4px; }
.ex-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ex-way { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.ex-way:hover { border-color: var(--brand-2); }
.ex-way .ico-box { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); flex: none; }
.ex-way b { display: block; }
.ex-way small { display: block; color: var(--muted); font-size: .82rem; }
.ex-way .badge { margin-top: 6px; }
.roles { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; align-items: start; margin-bottom: 22px; }
.roles:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.roles:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
.role-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.role-card p { margin: 0; }
.role-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.role-h h3 { margin: 0; font-size: 1.12rem; }
.role-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EEF1EC; }
.role-row b { font-size: .95rem; }
.role-row small { display: block; font-size: .82rem; margin-top: 2px; }
.grow { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .roles, .roles:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } }

/* ---------- Home (pages/home-me.php) ---------- */
.hm-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 18px; }
.hm-top .card { margin: 0; }
.hm-needs h2 { margin: 0 0 4px; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEF1EC; margin: 0; }
.hm-row b { display: block; }
.hm-row small { display: block; font-size: .85rem; font-weight: 600; margin-top: 2px; }
.hm-row small.t-mute { color: var(--muted); font-weight: 400; }
.hm-side { display: flex; flex-direction: column; gap: 12px; }
.stat-value.sm { font-size: 1.05rem; }
.hm-logos { display: flex; gap: 4px; margin-top: 6px; }
.hm-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; margin-bottom: 18px; }
.hm-mid > .card { margin: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #EEF1EC; }
.notice-list .notice { padding: 12px 16px; }
.notice-list .notice:first-child { border-top: 0; }
.notice .ndot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 12px; }
.notice.new .ndot { background: var(--bad); }
.notice.new b { font-weight: 700; }
.notice b { display: block; font-weight: 500; font-size: .94rem; }
.notice p { margin: 4px 0; font-size: .9rem; color: var(--ink); }
.notice small { display: block; font-size: .78rem; margin-top: 2px; }
.notice .app-logo.sm { width: 32px; height: 32px; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.news-card:hover { border-color: var(--brand-2); }
.news-img { height: 96px; display: flex; align-items: flex-end; padding: 10px; background-size: cover; background-position: center; }
.news-img.n0 { background-color: #D9E7DC; } .news-img.n1 { background-color: #E3ECF7; } .news-img.n2 { background-color: #F6E7D7; }
.news-cat { background: #fff; color: var(--brand); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.news-tx { padding: 12px 14px 14px; }
.news-tx b { display: block; font-size: .95rem; line-height: 1.35; }
.news-tx small { display: block; margin-top: 6px; font-size: .78rem; }
.hm-do { margin-bottom: 18px; }
.chips.links a .ic { width: 16px; height: 16px; margin-right: 6px; color: var(--brand); }
.hm-orgs h2 { margin-bottom: 4px; }
@media (max-width: 900px) {
  .hm-top, .hm-mid { grid-template-columns: 1fr; }
  .news-cards { grid-template-columns: 1fr; }
  .news-card { flex-direction: row; }
  .news-img { width: 96px; height: auto; min-height: 84px; flex: none; padding: 6px; }
  .news-cat { font-size: .66rem; }
}

/* ---------- Products & Services, yours (pages/services-me.php) ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: #E9ECE6; border-radius: 12px; margin-bottom: 14px; }
.seg a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.seg a span { font-weight: 500; }
.seg a.on { background: var(--card); color: var(--brand); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ps-app { display: flex; align-items: center; gap: 10px; }
.ps-table .app-logo.sm { width: 32px; height: 32px; }
.how { display: inline-flex; height: 24px; padding: 0 9px; border-radius: 7px; align-items: center; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.how-use { background: var(--info-soft); color: var(--info); }
.how-earn { background: var(--ok-soft); color: var(--ok); }
.how-biz { background: #F3E8FF; color: #5B2DB0; }
.ps-table td .sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ---------- Refer someone ---------- */
.ref-link { display: flex; gap: 8px; margin: 6px 0; }
.ref-link input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.ref-n { font-size: 1.1rem; margin: 0 0 8px; }
.ref-n b { font-size: 1.8rem; }

/* ---------- Contacts (pages/contacts.php) ---------- */
.ct-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ct-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.ct-search input { flex: 1; border: 0; background: none; font: inherit; padding: 10px 0; min-width: 0; outline: none; }
.ct-search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.ct-filter select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); }
.ct-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.ct-bulk select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ct-table td.ck, .ct-table th.ck { width: 34px; }
.ct-table input[type=checkbox] { width: 18px; height: 18px; }
.ct-name { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.ct-name:hover b { text-decoration: underline; }
.ct-name small { display: block; color: var(--muted); font-size: .8rem; }
.ct-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.ct-ph a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.lbl { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; margin: 1px 2px 1px 0; white-space: nowrap; }
.lbl.l0 { background: #E3F4EA; color: #157347; } .lbl.l1 { background: #E6EFFA; color: #1D4F91; } .lbl.l2 { background: #FFF3DC; color: #8A4B00; }
.lbl.l3 { background: #F3E8FF; color: #5B2DB0; } .lbl.l4 { background: #FDECEA; color: #A4231A; } .lbl.l5 { background: #E0F2F1; color: #0F766E; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ct-grid .card { margin: 0; }
.ct-side { display: flex; flex-direction: column; gap: 14px; }
.ct-side h2 { margin: 0 0 8px; font-size: 1.05rem; }
.ct-due { border-left: 4px solid var(--line); }
.ct-due.now { border-left-color: #E08A00; background: #FFFBF2; }
.ct-due p { margin: 4px 0 8px; }
.ct-note { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ct-note textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.ct-note .btn { align-self: flex-start; }
.ct-n { padding: 10px 0; border-top: 1px solid #EEF1EC; }
.ct-n p { margin: 0 0 3px; }
.ct-n small { font-size: .78rem; }
.chips.pick { gap: 6px; }
.chips.pick .chip { display: inline-flex; }
.chips.pick .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips.pick .chip span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #C9D1C7; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.chips.pick .chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips.pick .chip input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.ct-follow { border: 0; padding: 0; margin: 0; }
.ct-follow legend, .ct-form fieldset legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.ct-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.ct-acts .btn { gap: 6px; }
.ct-empty { text-align: center; padding: 34px 20px; }
.ct-empty .row { justify-content: center; }
.steps-list { margin: 0 0 14px; padding-left: 20px; }
.steps-list li { margin: 4px 0; }
.sms-grid { align-items: start; }
.sms-count { margin: 4px 0 12px; font-size: .92rem; }
.sms-gate { border-left: 4px solid #E08A00; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sms-bar { height: 10px; border-radius: 999px; background: #EEF1EC; overflow: hidden; margin-bottom: 12px; }
.sms-bar span { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.sms-body { margin: 12px 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; border-left: 3px solid var(--brand); white-space: pre-wrap; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } .ct-table th:nth-child(4), .ct-table td:nth-child(4) { display: none; } }
.ct-filter select { width: auto; max-width: 240px; }
.ct-filter .ct-search input[type=search] { width: 100%; }
@media (max-width: 640px) { .ct-filter select { flex: 1; max-width: none; } }

/* Home in an organisation (pages/home-org.php) */
.hm-apps { margin-bottom: 18px; }
.hm-apps .card-h { margin-bottom: 10px; }
.tile.org-app .row small { color: var(--muted); }
.tile.org-app.off { background: #FBFBF9; }
.tile.org-app.off b { color: var(--muted); }
.tile.org-app .plan-line { display: block; color: var(--muted); font-size: .82rem; margin-top: -2px; }
.ps-past { margin-top: 16px; }
.ps-past > summary { cursor: pointer; list-style: none; }
.ps-past > summary::-webkit-details-marker { display: none; }
.ps-past > summary h2::after { content: ' ▾'; color: var(--muted); font-weight: 400; }
.ps-past[open] > summary h2::after { content: ' ▴'; }

/* OnlineDesk (apps/onlinedesk) */
.od-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #A3AAA5; vertical-align: 1px; }
.od-dot.up { background: #16A34A; } .od-dot.down { background: #B42318; }
.od-bar { height: 6px; border-radius: 999px; background: #EEF1EC; margin-top: 5px; max-width: 220px; overflow: hidden; }
.od-bar span { display: block; height: 6px; background: var(--brand); border-radius: 999px; }
.od-bar.full span { background: #B42318; }
.od-site-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: flex-start; }
.od-site-head h2 { margin: 0; }
.od-status { margin: 4px 0 0; font-weight: 600; }
.od-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.od-facts > div { background: #F7F8F5; border-radius: 10px; padding: 10px 12px; }
.od-facts b { display: block; margin-top: 2px; }
.od-wp { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.od-wp h3 { margin: 0 0 4px; font-size: 1rem; }
.od-upd li { padding: 4px 0; }
.od-pw { border: 2px solid var(--brand); }
.od-pw-val code { font-size: 1.15rem; padding: 6px 10px; background: #F1F4F0; border-radius: 8px; user-select: all; }
.od-act { display: inline-block; text-align: left; }
.od-act > summary { list-style: none; cursor: pointer; }
.od-act > summary::-webkit-details-marker { display: none; }
.od-act-box { display: grid; gap: 12px; padding: 12px; margin-top: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; min-width: 260px; }
.od-act-box form { display: grid; gap: 6px; }
.od-del { border-top: 1px solid var(--line); padding-top: 10px; }
.od-setup-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; padding: 10px 0; border-top: 1px solid #EEF1EC; }
.od-setup-row.new { background: #F7F8F5; border-radius: 10px; padding: 10px; border-top: 0; }
.od-setup-row .field { margin: 0; }
.od-check { display: flex; gap: 8px; align-items: center; }
.od-check input { width: auto; }

/* OnlineDesk social (phase 2) */
.od-net { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 700; font-size: .78rem; flex: none; background: #5E6A63; letter-spacing: -.02em; }
.od-net.sm { width: 22px; height: 22px; border-radius: 6px; font-size: .66rem; }
.od-net.xs { width: 18px; height: 18px; border-radius: 5px; font-size: .58rem; margin-right: 2px; vertical-align: -4px; }
.od-net.on-av { width: 18px; height: 18px; border-radius: 5px; font-size: .58rem; margin: 22px 0 0 -16px; box-shadow: 0 0 0 2px #fff; }
.od-facebook { background: #1877F2; } .od-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); } .od-youtube { background: #FF0000; }
.od-x { background: #111; } .od-linkedin { background: #0A66C2; } .od-whatsapp { background: #1DA851; }
.od-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #EEF1EC; }
.od-chs { list-style: none; margin: 0; padding: 0; }
.od-chs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-top: 1px solid #EEF1EC; }
.od-chs li .grow, .od-pick-row .grow, .od-tgs .grow { flex: 1 1 180px; min-width: 0; }
.od-chs small, .od-pick-row small, .od-tgs small { display: block; }
.od-h2 { margin: 22px 0 10px; }
.od-connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.od-conn { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; align-content: start; }
.od-conn p { margin: 0; }
.od-conn .field { margin: 0; }
.od-pick { border: 2px solid var(--brand); }
.od-pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EEF1EC; cursor: pointer; }
.od-pick-row input { width: auto; }
.od-compose textarea { min-height: 120px; }
.od-targets, .od-when { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.od-targets legend, .od-when legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.od-tg { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; max-width: 100%; }
.od-tg input { width: auto; margin: 0; }
.od-tg span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-tg:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.od-when label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-right: 14px; }
.od-when input[type=radio] { width: auto; }
.od-when input[type=datetime-local] { width: auto; max-width: 100%; }
.od-count { margin: -6px 0 10px; }
.od-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 12px; }
.od-tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: .92rem; }
.od-tabs a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.od-chfilter { margin-left: auto; }
.od-chfilter select { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-size: .9rem; max-width: 100%; }
.od-post, .od-cm { display: grid; gap: 8px; }
.od-body { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.od-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.od-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #EEF1EC; }
.od-vid { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #F1F4F0; border-radius: 8px; font-size: .9rem; }
.od-tgs { list-style: none; margin: 0; padding: 0; border-top: 1px solid #EEF1EC; }
.od-tgs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid #F1F3EF; }
.od-acts { gap: 8px; flex-wrap: wrap; margin: 0; }
.od-acts:empty { display: none; }
.od-sum { color: var(--muted); }
.od-cm.done { opacity: .75; }
.od-reply { background: var(--brand-soft); border-radius: 8px; padding: 8px 10px; margin: 0; }
.od-act-box.wide { min-width: min(520px, calc(100vw - 60px)); }
.od-chart { width: 100%; height: auto; display: block; }
.od-chart rect { fill: var(--brand-2); }
.od-chart text { font-size: 10px; fill: var(--muted); }
.od-ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.od-ins .card { margin: 0; }
.od-insc dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px 12px; margin: 12px 0 0; }
.od-insc dt { color: var(--muted); font-size: .8rem; }
.od-insc dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.od-insc dd small { font-weight: 600; font-size: .78rem; }
@media (max-width: 640px) {
  .od-chfilter { margin-left: 0; width: 100%; }
  .od-chfilter select { width: 100%; }
}
.od-wa-steps { flex-basis: 100%; order: 9; }

/* WardDesk */
.wd-bar { height: 8px; border-radius: 999px; background: #EEF1EC; overflow: hidden; position: relative; margin: 4px 0 2px; }
.wd-bar span { display: block; height: 100%; background: var(--brand-2); border-radius: 999px; }
.wd-bar.warn span { background: #B26B00; } .wd-bar.bad span { background: var(--bad); }
.wd-bar.big { height: 12px; overflow: visible; }
.wd-bar.big i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.wd-total { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; }
.wd-total-main { flex: 1 1 300px; min-width: 0; }
.wd-big { font-size: 2rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.wd-big small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.wd-pillars { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wd-pillars > div { background: #F7F8F5; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.wd-pillars b { font-size: 1.2rem; }
.wd-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 150px; align-items: end; }
.wd-months > div { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; box-sizing: border-box; }
.wd-months small { position: absolute; bottom: 0; font-size: .72rem; color: var(--muted); }
.wd-m-plan, .wd-m-done { display: block; width: 38%; border-radius: 3px 3px 0 0; }
.wd-m-plan { background: #CFE3D5; margin-right: 2px; } .wd-m-done { background: var(--brand); }
.wd-watch li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #F1F3EF; }
.wd-wards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.wd-ward { display: grid; gap: 2px; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); background: #F7F8F5; border: 1px solid var(--line); }
.wd-ward small { color: #4B554E; font-size: .76rem; }
.wd-ward.t-ok { background: #F2F8F4; border-color: #CFE3D5; } .wd-ward.t-warn { background: #FFF8EB; border-color: #F2DDB4; } .wd-ward.t-bad { background: #FDF1F0; border-color: #F1C9C4; }
.wd-ward.t-ok .wd-st { color: #0F5C36; font-weight: 700; } .wd-ward.t-warn .wd-st { color: #7A4500; font-weight: 700; } .wd-ward.t-bad .wd-st { color: #9B1C12; font-weight: 700; }
.wd-lines li { padding: 6px 0; }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.wd-waves { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wd-wave { display: grid; gap: 4px; text-decoration: none; color: var(--ink); margin: 0; }
.wd-wave:hover { border-color: var(--brand-2); }
.wd-pay { display: inline-block; }
.wd-pay > summary { list-style: none; cursor: pointer; } .wd-pay > summary::-webkit-details-marker { display: none; }
.wd-payform { display: grid; gap: 6px; padding: 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 220px; }
.wd-payform .field { margin: 0; }
/* certificates */
.wd-print-bar { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.wd-cert { width: 297mm; height: 210mm; max-width: 100%; margin: 16px auto; background: #fff; box-sizing: border-box; padding: 12mm; page-break-after: always; break-after: page; }
.wd-cert-in { height: 100%; box-sizing: border-box; border: 3px solid #1F2A5A; outline: 1px solid #F37021; outline-offset: -9px; padding: 14mm 18mm; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wd-cert-top { display: flex; align-items: center; gap: 10px; color: #1F2A5A; }
.wd-cert-top .logo-mark { width: 40px; height: 40px; }
.wd-cert-top span { display: grid; text-align: left; font-weight: 800; letter-spacing: .12em; font-size: 1.2rem; line-height: 1.05; }
.wd-cert-top small { font-size: .55rem; letter-spacing: .25em; color: #C2410C; }
.wd-cert-kind { margin: 10mm 0 2mm; font-size: 2.1rem; font-weight: 700; color: #1F2A5A; }
.wd-cert-intro { margin: 0; color: var(--muted); }
.wd-cert-name { margin: 4mm 0; font-size: 2.6rem; color: #17201B; border-bottom: 1px solid var(--line); padding: 0 12mm 2mm; }
.wd-cert-what { max-width: 200mm; margin: 2mm 0; font-size: 1.1rem; }
.wd-cert-where { color: var(--muted); margin: 2mm 0 0; }
.wd-cert-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 12mm; }
.wd-cert-foot > div { display: grid; gap: 4px; text-align: left; }
.wd-sign { display: block; width: 70mm; border-bottom: 1px solid #17201B; height: 14mm; }
.wd-cert-check { justify-items: end; text-align: right !important; }
.wd-cert-check small { color: var(--muted); }
.wd-check { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; background: var(--bg); }
.wd-check-in { max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.wd-check-in h1 { margin: 0; }
.wd-check-ok { color: var(--ok); font-weight: 700; display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
.wd-check-bad { color: var(--bad); font-weight: 700; margin: 10px 0 0; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .no-print { display: none !important; }
  body { background: #fff; }
  .wd-cert { margin: 0; width: 297mm; height: 210mm; max-width: none; }
}
