:root {
  color-scheme: light;
  --navy: #102b45;
  --navy-soft: #193b56;
  --teal: #087e77;
  --teal-dark: #06665f;
  --teal-pale: #eaf7f4;
  --ink: #172f46;
  --muted: #5d7182;
  --line: #dce5e9;
  --canvas: #f4f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --danger: #a4342d;
  --warning: #89520c;
  --radius: 16px;
  --shadow: 0 8px 26px rgb(16 43 69 / 5%);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #159d91; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 760; }
h2 { margin-bottom: 12px; font-size: 1.28rem; line-height: 1.35; letter-spacing: -.025em; }
h3 { margin-bottom: 10px; font-size: 1rem; line-height: 1.4; }
p { margin-bottom: 16px; }
small, .muted { color: var(--muted); }

/* Shell and navigation */
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 264px; flex-direction: column; overflow-y: auto; padding: 25px 18px 18px; background: var(--navy); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: #fff; text-decoration: none; font-size: 1.8rem; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.brand:hover { color: #fff; }
.brand span { color: #5ce0c9; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #527386; border-radius: 12px; background: #1b455c; color: #79e8d7; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-caption { margin: 12px 0 26px 50px; color: #afc3cf; font-size: .65rem; font-weight: 700; letter-spacing: .17em; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #d2dee5; text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: #1a3c56; color: #fff; }
.nav-link[aria-current="page"] { background: #205064; color: #85f0dc; box-shadow: inset 3px 0 #65ddc5; }
.nav-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.support { padding: 14px 12px; border: 1px solid #315168; border-radius: 12px; background: #153650; }
.support-label { margin-bottom: 5px; color: #afc3cf; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.support-link { color: #fff; font-size: .82rem; overflow-wrap: anywhere; text-decoration: none; }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 16px; padding: 14px 2px 10px; border-top: 1px solid #315168; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #31556a; color: #d9fff5; font-weight: 750; }
.account-name { max-width: 155px; overflow: hidden; color: #fff; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-role { color: #afc3cf; font-size: .7rem; }
.sidebar form button { margin: 4px 0 0 47px; padding: 4px 8px; border: 0; background: transparent; box-shadow: none; color: #c7d7e0; font-size: .78rem; }
.sidebar form button:hover { background: #1a3c56; color: #fff; transform: none; }
.workspace { min-height: 100vh; margin-left: 264px; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.topbar-label { color: var(--muted); font-size: .82rem; }
.topbar-label b { color: var(--ink); font-weight: 700; }
.connection { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid #cde8dd; border-radius: 999px; background: #f0faf5; color: #27694f; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.connection::before { width: 7px; height: 7px; border-radius: 50%; background: #2f9b69; content: ""; }
main { width: min(100%, 1450px); min-height: calc(100vh - 140px); margin: 0 auto; padding: clamp(25px, 4vw, 48px) clamp(20px, 4vw, 54px) 34px; }
.page-heading { margin-bottom: 26px; }
.eyebrow { margin-bottom: 8px; color: var(--teal); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-subtitle { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.page-action { margin: 16px 0 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 18px clamp(20px, 4vw, 54px); border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer a { text-decoration: none; }
.skip-link { position: absolute; z-index: 100; top: 10px; left: -10000px; padding: 11px 14px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.skip-link:focus { left: 12px; }

/* Cards, tables and status */
.card { min-width: 0; margin-bottom: 18px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card:last-child { margin-bottom: 0; }
.card h2:last-child, .card p:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; gap: 18px; }
.grid > .card { margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.row h2, .row h3 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats .card { margin: 0; padding: 18px; color: var(--muted); font-size: .8rem; }
.stat { margin-bottom: 4px; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.15; letter-spacing: -.05em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #cde8dd; border-radius: 999px; background: var(--teal-pale); color: #216655; font-size: .7rem; font-weight: 700; line-height: 1.4; }
.grid .badge { margin-bottom: 12px; }
.grid h3 { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
dl { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.2fr); gap: 9px 16px; margin: 18px 0 0; font-size: .84rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-weight: 650; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .82rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f2f6f7; color: #4e6473; font-size: .72rem; font-weight: 750; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td form p { margin-bottom: 5px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; color: var(--muted); font-size: .77rem; font-weight: 700; }
.document { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.document:last-child { border-bottom: 0; }
.document span { min-width: 0; overflow-wrap: anywhere; }
.ticket-link { display: block; color: inherit; text-decoration: none; }
.ticket-link .card { transition: border-color .15s ease, transform .15s ease; }
.ticket-link:hover .card { transform: translateY(-2px); border-color: #9ccbc2; }
.ticket-link .muted { margin: 9px 0 0; }
.message { margin: 16px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.customer-message { border-left: 4px solid #a8bdca; }
.admin-message { border-left: 4px solid var(--teal); background: #f8fcfb; }
.error, .success, .invite, .reminder, .offer { padding: 14px 16px; border: 1px solid; border-radius: 12px; }
.error { border-color: #f0cbc7; background: #fff5f4; color: #8f2f29; }
.success { border-color: #c7e7d4; background: #f1faf4; color: #256044; }
.invite { border-color: #d7e2e7; background: #f6f9fa; overflow-wrap: anywhere; }
.reminder, .offer { margin: 16px 0 0; border-color: #cde8dd; background: #f1faf6; }
.offer h3 { color: #176557; }

/* Forms and actions */
button, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 10px 16px; border: 1px solid var(--teal); border-radius: 10px; background: var(--teal); box-shadow: 0 2px 5px rgb(8 126 119 / 12%); color: #fff; cursor: pointer; font-size: .84rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
button:hover, .button:hover { transform: translateY(-1px); border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; }
button:disabled { cursor: not-allowed; opacity: .55; }
.secondary { border-color: #cad7dd; background: #fff; box-shadow: none; color: var(--ink); }
.secondary:hover { border-color: #a9c0c8; background: #f3f7f8; color: var(--navy); }
.button + .button { margin-left: 7px; }
label { display: block; margin: 15px 0 7px; color: #304b60; font-size: .82rem; font-weight: 680; line-height: 1.45; }
input, textarea, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bdcbd2; border-radius: 9px; background: #fff; color: var(--ink); font-size: .9rem; }
input:hover, textarea:hover, select:hover { border-color: #91aab5; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: 3px solid rgb(8 126 119 / 12%); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 2px 8px 0 0; padding: 0; accent-color: var(--teal); vertical-align: top; }
input[type="file"] { min-height: 46px; padding: 7px; font-size: .82rem; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 7px; background: #edf3f5; color: var(--ink); cursor: pointer; }
textarea { min-height: 130px; resize: vertical; }
form label:has(input[type="checkbox"]), form label:has(input[type="radio"]) { display: flex; align-items: flex-start; gap: 2px; font-weight: 500; line-height: 1.55; }
form.inline { display: inline-block; margin-right: 8px; }
.muted { color: var(--muted); font-size: .82rem; }
.help { color: var(--muted); font-size: .8rem; }

/* Customer dashboard and service pages */
.dashboard-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.dashboard-service { min-width: 0; margin: 0; }
.dashboard-count { margin: 0 0 10px; color: var(--teal); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.dashboard-shortcuts { display: grid; gap: 5px; }
.dashboard-shortcuts a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dashboard-shortcuts a:last-child { border-bottom: 0; }
.dashboard-welcome p { max-width: 55rem; }

/* Payvero branded VPS performance view */
.vps-status-lamp { display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;background:#a4b2b7;vertical-align:0; }
.vps-state--on { background:#198754;box-shadow:0 0 0 4px #1987541a; }.vps-state--off { background:#c8423b;box-shadow:0 0 0 4px #c8423b1a; }.vps-state--pending { background:#c58b26;box-shadow:0 0 0 4px #c58b261a; }
.resource-monitor { margin-top:22px;padding:22px;border:1px solid #e0e3e6;border-radius:5px;background:#fff;box-shadow:0 8px 24px #30353a0b; }
.resource-monitor-heading { display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:9px 16px;margin-bottom:18px; }.monitor-kicker { display:block;margin-bottom:3px;color:#d94b22;font-size:.63rem;font-weight:800;letter-spacing:.14em; }
.resource-monitor-heading h3 { margin:0 0 2px;padding:0;border:0;color:#30353a;font-size:1.12rem;letter-spacing:-.02em;text-transform:none; }.resource-monitor-heading p { margin:0;color:#62686e;font-size:.77rem; }
.monitor-updated { color:#62686e;font-size:.7rem; }.monitor-tools { display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px; }.monitor-refresh { color:#d94b22;font-size:.75rem;font-weight:700;text-decoration:none; }.monitor-refresh:hover { color:#b93b17;text-decoration:underline; }
.monitor-performance { display:grid;grid-template-columns:minmax(190px,.32fr) minmax(0,1fr);gap:20px; }.monitor-selector { display:grid;align-content:start;gap:7px;position:relative; }
.resource-radio { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%); }
.resource-choice { display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px;min-height:70px;padding:12px 13px;border:1px solid #e0e3e6;border-radius:4px;background:#fff;color:#30353a;cursor:pointer; }.resource-radio:checked+.resource-choice { border-color:#d94b22;background:#fff8f5;box-shadow:inset 3px 0 #d94b22; }.resource-radio:focus-visible+.resource-choice { outline:3px solid #d94b22;outline-offset:2px; }
.resource-choice-name { font-size:.78rem;font-weight:700; }.resource-choice strong { color:#30353a;font-size:1.02rem;font-weight:750;font-variant-numeric:tabular-nums; }.resource-choice small { grid-column:1/-1;overflow:hidden;color:#62686e;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap; }
.monitor-chart-area { min-width:0;padding:15px 15px 10px;border:1px solid #e0e3e6;border-radius:4px;background:#fff; }.resource-chart-panel { display:none; }
.monitor-performance:has(.metric-radio-cpu:checked) .panel-cpu,.monitor-performance:has(.metric-radio-memory:checked) .panel-memory,.monitor-performance:has(.metric-radio-disk:checked) .panel-disk { display:block; }.monitor-selector:has(.resource-radio:focus-visible) .resource-choice { outline:3px solid #d94b22;outline-offset:2px; }
.chart-current-value { display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 12px;margin-bottom:8px; }.chart-current-value strong { color:#30353a;font-size:1.65rem;font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums; }.chart-current-value span { color:#62686e;font-size:.75rem; }
.resource-chart { display:block;width:100%;height:auto;min-height:185px;overflow:visible; }.chart-grid { stroke:#e7e9eb;stroke-width:1; }.chart-axis { fill:#737a7f;font-size:11px;font-family:"Segoe UI",Arial,sans-serif; }.chart-line { fill:none;stroke:#d94b22;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke; }.chart-current { fill:#d94b22;stroke:white;stroke-width:2;vector-effect:non-scaling-stroke; }.chart-empty { display:grid;min-height:185px;place-items:center;padding:20px;color:#62686e;font-size:.8rem;text-align:center; }.chart-time-axis { display:flex;justify-content:space-between;margin:0 2px;color:#737a7f;font-size:.66rem; }.monitor-stale .resource-monitor-heading p { color:#89520c; }
.vps-console-form { margin-top: 12px; }
.vps-backups, .vps-reinstall { min-width: 0; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.vps-backups summary, .vps-reinstall summary { padding: 8px 0; cursor: pointer; font-weight: 750; }
.vps-reinstall summary { color: var(--danger); }
.vps-reinstall form { display: grid; max-width: 720px; gap: 8px; }
.vps-reinstall label { line-height: 1.55; }
.vps-reinstall label input[type="checkbox"] { display: inline-block; width: 18px; vertical-align: middle; }
.vps-reinstall select, .vps-reinstall input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; max-width: 100%; margin-top: 5px; }
.vps-reinstall button { border-color: #a4342d; background: #a4342d; }
.vps-reinstall button:hover { border-color: #812923; background: #812923; }

/* Appointment booking calendar */
.appointment-calendar-card { overflow: hidden; }
.appointment-month-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 20px 0 12px; }
.appointment-month-nav h2 { margin: 0; text-align: center; font-size: 1.05rem; }
.appointment-month-nav a:last-child { justify-self: end; }
.appointment-month-nav .button { padding: 8px 11px; }
.appointment-calendar-head, .appointment-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.appointment-calendar-head { margin: 10px 0; }
.appointment-calendar-head span { color: var(--muted); font-size: .72rem; font-weight: 750; text-align: center; }
.appointment-calendar-day, .appointment-calendar-empty { display: flex; min-height: 66px; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.appointment-calendar-day b { font-size: .9rem; }
.appointment-calendar-day small { color: var(--muted); font-size: .66rem; line-height: 1.25; }
.appointment-calendar-day.has-slots { border-color: #b8e2d4; background: #eff9f5; color: var(--ink); text-decoration: none; }
.appointment-calendar-day.has-slots:hover, .appointment-calendar-day.selected { border-color: var(--teal); box-shadow: 0 0 0 2px rgb(8 126 119 / 12%); }
.appointment-calendar-day.unavailable { background: #f5f7f8; color: #9aa8ae; }
.appointment-time-list, .appointment-booked-list { display: grid; gap: 12px; }
.appointment-time-card, .appointment-booked { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.appointment-time-card > div, .appointment-booked > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.appointment-time-card > div span, .appointment-booked > div span { color: var(--muted); font-size: .8rem; }
.appointment-time-card form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8px 12px; margin-top: 14px; }
.appointment-time-card form label { grid-column: 1 / -1; }
.appointment-time-card form button { grid-column: 1 / -1; justify-self: start; }
.appointment-booked p { margin: 7px 0 0; color: #445a6a; }

/* Privacy confirmation and signature */
.privacy-intro { max-width: 850px; margin-bottom: 22px; color: var(--muted); }
.privacy-intro p { margin-bottom: 0; }
.privacy-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: start; gap: 18px; }
.privacy-layout > .card { min-width: 0; margin: 0; padding: clamp(18px, 2.5vw, 28px); }
.privacy-document-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.privacy-document-heading h2 { margin: 5px 0; font-size: 1.4rem; }
.privacy-document-heading .muted { margin: 0; }
.privacy-document-scroll { max-height: 66vh; overflow: auto; padding: 18px 10px 3px 0; scrollbar-gutter: stable; }
.legal-copy { overflow-wrap: anywhere; font-size: .88rem; line-height: 1.8; }
.legal-copy h3 { margin: 24px 0 8px; padding: 0; border: 0; color: var(--ink); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.legal-copy p { margin: 0 0 16px; white-space: pre-line; }
.legal-copy p:first-child { color: var(--muted); font-size: .76rem; }
.privacy-consent h2 { font-size: 1.4rem; }
.privacy-consent > .muted { margin-bottom: 18px; }
.consent-choice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: .87rem; font-weight: 500; line-height: 1.6; }
.consent-choice input[type="checkbox"] { width: 18px; min-width: 18px; height: 18px; margin: 3px 0 0; }
.consent-choice span { min-width: 0; }
.privacy-signature { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.signature-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.signature-heading label { margin: 0; }
.signature-heading .muted { font-size: .7rem; }
.privacy-signature canvas { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 26 / 9; border: 1px solid #b5c3ca; border-radius: 8px; background: #fff; touch-action: none; }
.signature-clear { min-height: 36px; padding: 7px 11px; font-size: .76rem; }
.privacy-submit { width: 100%; margin-top: 20px; padding: 13px; }
.privacy-footnote { margin: 11px 0 0; color: var(--muted); font-size: .72rem; }

/* QR print sheet */
.qr-sheet { width: min(100%, 820px); margin: 4px auto 28px; text-align: center; }
.qr-print-card { padding: clamp(20px, 5vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.qr-print-card h2 { margin-bottom: 9px; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.045em; }
.qr-intro { max-width: 620px; margin: 0 auto 20px; color: var(--muted); font-size: .98rem; }
.qr-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 10px 14px; padding: 14px; border: 1px solid #d9ebe6; border-radius: 12px; background: #f3f9f7; text-align: left; }
.qr-toolbar label { min-width: min(100%, 300px); margin: 0; }
.qr-toolbar button { margin: 0; }
.qr-assignment { margin: 17px 0 0; color: var(--muted); font-size: .78rem; }
.qr-code { width: min(65vw, 300px); margin: 12px auto 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-address { overflow-wrap: anywhere; font-size: .72rem; }
.qr-note { max-width: 570px; margin: 16px auto 8px; padding: 12px 14px; border-radius: 10px; background: var(--teal-pale); color: #315d55; font-size: .75rem; }
.qr-download-row { display: flex; justify-content: center; margin-top: 16px; }
.qr-print-help { margin: 12px 0 0; color: var(--muted); font-size: .72rem; }

/* Authentication and public registration */
.public { border-top: 4px solid var(--teal); background: radial-gradient(ellipse at 10% 70%, #e5f4f0, transparent 40%), radial-gradient(ellipse at 94% 8%, #eaf0f6, transparent 38%), #f7f9fa; }
.public .sidebar { position: relative; inset: auto; display: block; width: 100%; overflow: visible; padding: 24px clamp(20px, 8vw, 120px); background: transparent; color: var(--ink); }
.public .brand { color: var(--navy); }
.public .brand-mark { border: 0; background: var(--navy); color: #75e6d4; }
.public .brand-caption { margin: 9px 0 0 50px; color: var(--muted); }
.public .workspace { min-height: 0; margin: 0; }
.public .topbar { display: none; }
.public main { width: min(100%, 600px); min-height: 68vh; padding: 22px 20px 52px; }
.public .page-heading { margin-bottom: 21px; }
.public .page-heading .eyebrow { text-align: left; }
.public h1 { font-size: clamp(1.9rem, 6vw, 2.35rem); }
.public .card { padding: clamp(20px, 5vw, 32px); }
.public .auth { border-top: 4px solid var(--navy); box-shadow: 0 14px 45px rgb(16 43 69 / 9%); }
.auth button { width: 100%; min-height: 46px; margin-top: 18px; }
.auth .muted { margin-top: 18px; font-size: .75rem; line-height: 1.65; }
.public footer { justify-content: center; border: 0; text-align: center; }

@media (max-width: 1120px) {
  .sidebar { width: 232px; padding-right: 14px; padding-left: 14px; }
  .workspace { margin-left: 232px; }
  main { padding-right: 28px; padding-left: 28px; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-document-scroll { max-height: 46vh; }
}
@media (max-width: 820px) {
  .sidebar { position: relative; inset: auto; width: 100%; overflow: visible; padding: 15px 18px 12px; border-bottom: 1px solid #315168; }
  .brand { font-size: 1.55rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-caption { margin: 7px 0 12px 45px; font-size: .58rem; }
  .sidebar nav { flex-direction: row; gap: 5px; overflow-x: auto; padding: 0 0 5px; scrollbar-width: thin; }
  .nav-link { min-height: 40px; flex: 0 0 auto; gap: 8px; padding: 8px 10px; font-size: .76rem; white-space: nowrap; }
  .nav-icon { width: 16px; height: 16px; }
  .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; }
  .sidebar-bottom > .support { display: none; }
  .account { min-width: 0; margin: 0; padding: 0; border: 0; }
  .avatar { width: 30px; height: 30px; font-size: .75rem; }
  .account-role { display: none; }
  .account-name { max-width: min(42vw, 230px); }
  .sidebar form button { margin: 0; }
  .workspace { margin: 0; }
  .topbar { position: static; min-height: 48px; padding: 0 18px; }
  main { min-height: 55vh; padding: 24px 18px 28px; }
  footer { padding: 16px 18px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .topbar-label { font-size: .74rem; }
  .connection { gap: 5px; padding: 4px 7px; font-size: .65rem; }
  .page-heading { margin-bottom: 19px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stats .card { padding: 14px 12px; font-size: .72rem; }
  .stat { font-size: 1.8rem; }
  .card { border-radius: 13px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid .card { padding: 18px; }
  dl { grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr); gap: 8px 10px; font-size: .77rem; }
  dd { overflow-wrap: anywhere; }
  .dashboard-services { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .resource-monitor { padding: 14px; }
  .monitor-performance { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .resource-choice { min-height: 61px; }
  .monitor-chart-area { padding: 10px 8px 8px; }
  .resource-chart { min-height: 145px; }
  .chart-current-value strong { font-size: 1.4rem; }
  .monitor-updated { font-size: .66rem; }
  .appointment-calendar-head, .appointment-calendar { gap: 3px; }
  .appointment-calendar-day, .appointment-calendar-empty { min-height: 49px; gap: 2px; padding: 5px; border-radius: 7px; }
  .appointment-calendar-day b { font-size: .78rem; }
  .appointment-calendar-day small { font-size: .57rem; }
  .appointment-month-nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px; }
  .appointment-month-nav h2 { font-size: .88rem; }
  .appointment-month-nav .button { min-height: 36px; padding: 6px 7px; font-size: .72rem; }
  .appointment-time-card form { grid-template-columns: minmax(0, 1fr); }
  .appointment-time-card form label, .appointment-time-card form button { grid-column: auto; }
  .appointment-time-card form button, .appointment-time-card form select { width: 100%; }
  .privacy-layout { gap: 12px; }
  .privacy-layout > .card { padding: 17px; }
  .privacy-document-scroll { max-height: 38vh; }
  .signature-heading { display: block; }
  .signature-heading .muted { display: block; margin-top: 3px; }
  .qr-print-card { padding: 19px 14px; }
  .qr-toolbar { align-items: stretch; }
  .qr-toolbar label, .qr-toolbar button { width: 100%; }
  .document { align-items: flex-start; }
  .document .button { min-height: 36px; margin: 0; padding: 7px 9px; font-size: .72rem; }
  button, .button { min-height: 42px; }
  .button + .button { margin-left: 0; }
  footer > span { display: block; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body:has(.qr-sheet) { background: #fff; }
  body:has(.qr-sheet) .sidebar, body:has(.qr-sheet) .topbar, body:has(.qr-sheet) footer,
  body:has(.qr-sheet) .page-heading, body:has(.qr-sheet) main > :not(.qr-sheet) { display: none !important; }
  body:has(.qr-sheet) .workspace { margin: 0; }
  body:has(.qr-sheet) main { width: 100%; min-height: 0; padding: 0; }
  body:has(.qr-sheet) .qr-sheet { width: 100%; margin: 0; }
  body:has(.qr-sheet) .qr-print-card { padding: 8mm; border: 0; border-radius: 0; box-shadow: none; }
  body:has(.qr-sheet) .qr-toolbar, body:has(.qr-sheet) .qr-download-row, body:has(.qr-sheet) .qr-print-help { display: none !important; }
  body:has(.qr-sheet) .qr-code { width: 75mm; margin: 10mm auto 6mm; padding: 5mm; border: 0; }
  body:has(.qr-sheet) .qr-intro { font-size: 12pt; }
  body:has(.qr-sheet) .qr-address, body:has(.qr-sheet) .qr-note { font-size: 10pt; }
}

/* Portal shell follows the Payvero homepage palette. */
:root { --navy:#30353a;--navy-soft:#41474c;--teal:#d94b22;--teal-dark:#b93b17;--teal-pale:#fff0e8;--ink:#30353a;--muted:#62686e;--line:#e0e3e6;--canvas:#f5f6f7;--surface:#fff;--surface-soft:#fafafa;--radius:5px;--shadow:0 8px 24px #30353a0b; }
body { font-family:"Segoe UI",Arial,sans-serif; }.sidebar { background:#30353a; }.brand span { color:#fb794e; }.brand-mark { border-color:#61676b;border-radius:4px;background:#41474c;color:#ffad8d; }
.brand-caption,.support-label,.account-role { color:#c0c8ce; }.nav-link { border-radius:4px;color:#d7dcdf; }.nav-link:hover { background:#41474c; }.nav-link[aria-current="page"] { background:#d94b22;color:#fff;box-shadow:inset 3px 0 #ffad8d; }
.support { border-color:#50565b;border-radius:4px;background:#41474c; }.avatar { border-radius:4px;background:#50565b;color:#fff; }.account { border-color:#50565b; }.topbar { border-color:#e0e3e6;background:rgb(255 255 255 / 96%); }.card { border-radius:5px;box-shadow:0 8px 24px #30353a0b; }
button,.button { border-radius:4px; } a { color:#d94b22; } a:hover { color:#b93b17; } :focus-visible { outline-color:#d94b22; }
