:root {
    --cc-navy-950: #0b1624;
    --cc-navy-900: #101e2e;
    --cc-navy-800: #18293b;
    --cc-slate-700: #334155;
    --cc-slate-600: #475569;
    --cc-slate-500: #64748b;
    --cc-slate-400: #94a3b8;
    --cc-slate-300: #cbd5e1;
    --cc-slate-200: #e2e8f0;
    --cc-slate-100: #f1f5f9;
    --cc-slate-50: #f8fafc;
    --cc-white: #ffffff;
    --cc-text: #172033;
    --cc-muted: #697386;
    --cc-border: #e3e8ef;
    --cc-success: #157347;
    --cc-success-bg: #eaf8f0;
    --cc-danger: #a3312b;
    --cc-danger-bg: #fff1f0;
    --cc-warning: #8a6100;
    --cc-warning-bg: #fff8df;
    --cc-blue: #3158c9;
    --cc-radius-sm: 8px;
    --cc-radius-md: 12px;
    --cc-radius-lg: 18px;
    --cc-radius-xl: 24px;
    --cc-shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
    --cc-shadow-md: 0 14px 34px rgba(15, 23, 42, .08);
    --cc-shadow-lg: 0 28px 70px rgba(15, 23, 42, .15);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cc-slate-50); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--cc-text);
    background: var(--cc-slate-50);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--cc-blue); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--cc-text); letter-spacing: -.03em; }
h1:focus { outline: none; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #d92d20; }
.validation-message { color: #d92d20; font-size: 13px; font-weight: 600; }

/* ---------------- Public check-in ---------------- */
.checkin-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 2% 22%, rgba(71,85,105,.06) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.checkin-topbar {
    min-height: 74px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: linear-gradient(115deg, var(--cc-navy-950), var(--cc-navy-800));
    box-shadow: 0 8px 22px rgba(11,22,36,.15);
}
.checkin-brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.checkin-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.96); padding: 4px; }
.checkin-brand-mark, .admin-brand-mark, .auth-brand-lockup span, .home-brand span {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-weight: 800;
}
.checkin-help { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.checkin-help span { width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; }
.checkin-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 42px; }
.checkin-intro { text-align: center; margin-bottom: 34px; }
.checkin-page-logo {
    min-height: 92px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center;
}
.checkin-page-logo img {
    display: block; max-width: min(300px, 72vw); max-height: 120px; width: auto; height: auto; object-fit: contain;
}
.checkin-eyebrow, .admin-eyebrow, .auth-eyebrow {
    display: inline-block; margin-bottom: 7px; color: var(--cc-slate-500); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.checkin-intro h1 { margin-bottom: 8px; font-size: clamp(34px, 4vw, 48px); font-weight: 750; }
.checkin-intro p { max-width: 620px; margin: 0 auto; color: var(--cc-muted); font-size: 17px; }
.checkin-form-card {
    padding: 30px;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-xl);
    background: rgba(255,255,255,.97);
    box-shadow: var(--cc-shadow-lg);
}
.checkin-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 34px; }
.checkin-form-column { padding-right: 34px; border-right: 1px solid var(--cc-border); }
.checkin-field { margin-bottom: 20px; }
.checkin-field label, .checkin-choice-group > label, .signature-heading label {
    display: block; margin-bottom: 8px; color: #273244; font-size: 14px; font-weight: 650; letter-spacing: -.01em;
}
.checkin-field input, .checkin-field select, .checkin-field textarea {
    width: 100%; min-height: 48px; padding: 11px 14px; color: var(--cc-text); background: #fff;
    border: 1px solid var(--cc-slate-300); border-radius: 10px; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.checkin-field input::placeholder { color: var(--cc-slate-400); }
.checkin-field input:focus, .checkin-field select:focus, .checkin-field textarea:focus,
.admin-form-row input:focus, .admin-form-row select:focus, .admin-form-row textarea:focus {
    border-color: var(--cc-slate-600); box-shadow: 0 0 0 4px rgba(71,85,105,.12);
}
.checkin-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 4px; }
.checkin-choice-row > :only-child { grid-column: 1 / -1; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--cc-slate-300); border-radius: 10px; overflow: hidden; background: #fff; }
.segment-button { min-height: 46px; border: 0; border-right: 1px solid var(--cc-slate-300); background: #fff; color: var(--cc-slate-700); font-weight: 600; cursor: pointer; transition: all .15s; }
.segment-button:last-child { border-right: 0; }
.segment-button:hover { background: var(--cc-slate-50); }
.segment-button.active { color: #fff; background: var(--cc-navy-900); }
.contact-field { margin-top: 20px; }
.signature-column { display: flex; flex-direction: column; min-width: 0; }
.signature-heading { min-height: 49px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.signature-heading label { margin-bottom: 1px; }
.signature-heading span { color: var(--cc-muted); font-size: 13px; }
.signature-clear { padding: 3px 0; border: 0; background: transparent; color: var(--cc-blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.signature-clear:hover { text-decoration: underline; }
.signature-canvas {
    display: block; width: 100%; height: 220px; flex: 1; min-height: 190px; border: 1px solid var(--cc-slate-300); border-radius: 12px;
    background: linear-gradient(#fff, #fff) padding-box, repeating-linear-gradient(90deg, transparent 0 18px, rgba(148,163,184,.06) 18px 19px) border-box;
    touch-action: none; cursor: crosshair;
}
.checkin-submit { width: 100%; margin-top: 26px; min-height: 58px; text-transform: uppercase; letter-spacing: .07em; }
.checkin-button { border: 0; border-radius: 10px; padding: 14px 20px; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.checkin-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,23,42,.15); }
.checkin-button:disabled { cursor: wait; opacity: .68; }
.checkin-button-primary { color: #fff; background: linear-gradient(115deg, var(--cc-navy-950), var(--cc-navy-800)); }
.button-check { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; }
.checkin-message { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid #f0c7c3; border-radius: 10px; color: #8c2d27; background: #fff5f4; font-size: 14px; font-weight: 600; }
.checkin-message span { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: #b5473f; }
.checkin-privacy { margin: 15px 0 0; text-align: center; color: var(--cc-slate-500); font-size: 12px; }
.checkin-state-card { width: min(620px, 100%); margin: 70px auto; padding: 56px 36px; text-align: center; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-xl); background: #fff; box-shadow: var(--cc-shadow-lg); }
.checkin-state-card h1 { margin: 16px 0 10px; font-size: 36px; }
.checkin-state-card p { color: var(--cc-muted); font-size: 18px; }
.state-icon, .success-check { margin: auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-size: 28px; font-weight: 800; }
.state-icon { color: #8c2d27; background: #fff0ee; }
.success-check { color: #fff; background: var(--cc-success); box-shadow: 0 10px 22px rgba(21,115,71,.22); }
.auto-return-note { display: block; margin-top: 18px; color: var(--cc-slate-500); font-size: 13px; }
.checkin-return-button { margin-top: 22px; min-width: 170px; }
.checkin-preview-banner {
    padding: 13px 24px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
    color: #573d00; background: var(--cc-warning-bg); border-bottom: 1px solid #ead798; font-size: 14px;
}
.checkin-preview-banner a { font-weight: 700; }
.admin-shell > .checkin-preview { min-height: 0; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-lg); overflow: hidden; }
.loading-spinner { width: 42px; height: 42px; margin: auto; border: 4px solid var(--cc-slate-200); border-top-color: var(--cc-navy-800); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Admin application shell ---------------- */
.admin-page { min-height: 100vh; padding: 24px; background: #f6f8fb; }
.admin-shell {
    width: min(1540px, 100%); min-height: calc(100vh - 48px); margin: 0 auto;
    display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-auto-rows: min-content; gap: 22px 26px;
}
.admin-shell > :not(.admin-nav) { grid-column: 2; }
.admin-nav {
    grid-column: 1; grid-row: 1 / span 1000; position: sticky; top: 24px; align-self: start;
    height: calc(100vh - 48px); padding: 20px 14px 14px; display: flex; flex-direction: column;
    color: #fff; background: linear-gradient(175deg, var(--cc-navy-950), var(--cc-navy-800)); border-radius: 18px;
    box-shadow: 0 18px 42px rgba(11,22,36,.2); overflow: hidden;
}
.admin-nav-brand { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 2px 8px 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-nav-brand img { width: 39px !important; height: 39px !important; max-width: 39px !important; object-fit: contain; padding: 4px; border-radius: 9px; background: #fff; }
.admin-brand-mark { flex: 0 0 38px; }
.admin-nav-brand div { min-width: 0; }
.admin-nav-brand strong { display: block; color: #fff; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
.admin-nav-brand span { display: block; max-width: 155px; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-nav-links { display: grid; gap: 5px; }
.admin-nav-link { min-height: 43px; padding: 10px 11px; display: flex; align-items: center; gap: 11px; border-radius: 9px; color: rgba(255,255,255,.73) !important; text-decoration: none !important; font-size: 13px; font-weight: 550; transition: color .15s, background .15s, transform .15s; }
.admin-nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.admin-nav-link.active { color: #fff !important; background: rgba(127,156,255,.26); box-shadow: inset 3px 0 0 #7e98ff; }
.nav-icon { width: 20px; flex: 0 0 20px; text-align: center; color: currentColor; font-size: 17px; line-height: 1; }
.admin-nav-footer { margin-top: auto; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 10px 2px 0; }
.admin-page-header h1, .admin-shell > h1 { margin: 0 0 5px; font-size: 31px; font-weight: 740; }
.admin-page-header p { margin: 0; color: var(--cc-muted); }
.date-range-pill { padding: 9px 12px; color: var(--cc-slate-600); border: 1px solid var(--cc-border); border-radius: 9px; background: #fff; box-shadow: var(--cc-shadow-sm); font-size: 12px; font-weight: 600; }
.admin-card { padding: 23px; background: #fff; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-lg); box-shadow: var(--cc-shadow-sm); }
.admin-card h1, .admin-card h2, .admin-card h3 { margin-bottom: 6px; }
.admin-card h2 { font-size: 19px; font-weight: 700; }
.admin-card h3 { font-size: 17px; font-weight: 700; }
.admin-muted { color: var(--cc-muted); }
.card-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.card-heading-row p { margin-bottom: 0; font-size: 13px; }
.text-link { font-size: 13px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Dashboard */
.dashboard-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-stat { min-height: 126px; padding: 20px; display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--cc-border); border-radius: 14px; box-shadow: var(--cc-shadow-sm); }
.stat-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; color: var(--cc-navy-800); background: var(--cc-slate-100); font-size: 17px; font-weight: 800; }
.dashboard-stat span { display: block; color: var(--cc-muted); font-size: 12px; font-weight: 600; }
.dashboard-stat strong { display: block; margin-top: 4px; font-size: 27px; line-height: 1.1; letter-spacing: -.04em; }
.dashboard-stat small { display: block; margin-top: 8px; color: var(--cc-slate-400); font-size: 11px; }
.dashboard-content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); gap: 22px; }
.dashboard-chart-card, .dashboard-recent-card { min-height: 360px; }
.bar-chart { height: 245px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 14px; padding: 12px 6px 0; border-bottom: 1px solid var(--cc-border); background: repeating-linear-gradient(to bottom, transparent 0 59px, #edf1f5 60px); }
.bar-chart-column { height: 100%; display: grid; grid-template-rows: 20px minmax(0,1fr) 26px; align-items: end; text-align: center; }
.bar-value { color: var(--cc-slate-500); font-size: 11px; font-weight: 600; }
.bar-track { height: 100%; display: flex; align-items: end; justify-content: center; }
.bar-fill { width: min(36px, 64%); min-height: 8px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #5b6f89, var(--cc-navy-900)); box-shadow: 0 7px 15px rgba(16,30,46,.12); }
.bar-label { padding-top: 8px; color: var(--cc-slate-500); font-size: 11px; font-weight: 600; }
.quick-actions-card { margin-bottom: 8px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.quick-action-grid a { padding: 16px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; gap: 2px 11px; color: var(--cc-text); text-decoration: none; border: 1px solid var(--cc-border); border-radius: 12px; background: var(--cc-slate-50); transition: transform .15s, border-color .15s, box-shadow .15s; }
.quick-action-grid a:hover { transform: translateY(-2px); border-color: var(--cc-slate-300); box-shadow: var(--cc-shadow-sm); }
.quick-action-grid a > span { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--cc-navy-800); font-weight: 700; }
.quick-action-grid strong { font-size: 13px; }
.quick-action-grid small { color: var(--cc-muted); font-size: 11px; }

/* Forms, cards and tables */
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.admin-stat { padding: 18px; border: 1px solid var(--cc-border); border-radius: 13px; background: var(--cc-slate-50); }
.admin-stat-label { color: var(--cc-muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.admin-stat-value { margin-top: 6px; font-size: 27px; font-weight: 750; letter-spacing: -.04em; }
.admin-form-row { margin-bottom: 17px; }
.admin-form-row label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 650; }
.admin-form-row input, .admin-form-row textarea, .admin-form-row select,
.admin-table input:not([type=checkbox]), .admin-table select {
    width: 100%; min-height: 42px; padding: 9px 11px; color: var(--cc-text); background: #fff; border: 1px solid var(--cc-slate-300); border-radius: 9px; outline: none;
}
.admin-form-row textarea { resize: vertical; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--cc-navy-800); }
.admin-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; color: #fff !important; background: var(--cc-navy-800); border: 0; border-radius: 9px; font-size: 13px; font-weight: 650; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.admin-button:hover:not(:disabled) { background: var(--cc-navy-950); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,.14); }
.admin-button:disabled { opacity: .55; cursor: not-allowed; }
.admin-button-secondary { color: var(--cc-slate-700) !important; background: var(--cc-slate-100); border: 1px solid var(--cc-border); }
.admin-button-secondary:hover:not(:disabled) { background: var(--cc-slate-200); }
.admin-button-danger { background: #aa332c; }
.admin-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-message { padding: 12px 14px; color: #24536f; background: #edf7ff; border: 1px solid #c8e5f7; border-radius: 10px; font-size: 13px; font-weight: 600; }
.admin-message-error { color: var(--cc-danger); background: var(--cc-danger-bg); border-color: #f3c5c1; }
.admin-message-warning { color: var(--cc-warning); background: var(--cc-warning-bg); border-color: #efd994; }
.table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 11px 12px; text-align: left; color: var(--cc-slate-500); background: var(--cc-slate-50); border-top: 1px solid var(--cc-border); border-bottom: 1px solid var(--cc-border); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.admin-table tbody tr:hover td { background: #fbfcfe; }
.compact-table th, .compact-table td { padding: 10px; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-success { color: var(--cc-success); background: var(--cc-success-bg); }
.status-neutral { color: var(--cc-slate-600); background: var(--cc-slate-100); }
.empty-state { padding: 45px 20px; text-align: center; color: var(--cc-muted); border: 1px dashed var(--cc-slate-300); border-radius: 12px; background: var(--cc-slate-50); }
.admin-link-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.admin-link-list a { display: block; padding: 15px; color: var(--cc-text); background: var(--cc-slate-50); border: 1px solid var(--cc-border); border-radius: 11px; font-weight: 600; text-decoration: none; }
.admin-link-list a:hover { border-color: var(--cc-slate-300); background: #fff; }

/* Settings and billing */
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.settings-grid .admin-card { margin: 0; }
.settings-grid .settings-wide { grid-column: 1 / -1; }
.billing-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.billing-status-text { font-size: 20px; }
.billing-details { display: grid; grid-template-columns: minmax(180px,230px) 1fr; gap: 8px 18px; margin: 22px 0 0; }
.billing-details dt { color: var(--cc-muted); font-size: 12px; font-weight: 600; }
.billing-details dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.billing-identifiers { font-family: Consolas, monospace; }
.billing-note { margin-top: 14px; font-size: 12px; }

/* Authentication and home */
.auth-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: #eef2f6; }
.auth-shell { width: min(1040px,100%); min-height: 610px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--cc-shadow-lg); }
.auth-brand-panel { padding: 42px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(145deg, var(--cc-navy-950), var(--cc-navy-800)); }
.auth-brand-lockup { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.auth-brand-panel h1 { margin: 10px 0 16px; color: #fff; font-size: 35px; line-height: 1.15; }
.auth-brand-panel p, .auth-brand-panel small { color: rgba(255,255,255,.67); }
.auth-brand-panel .auth-eyebrow { color: rgba(255,255,255,.55); }
.auth-form-panel { padding: 48px; display: grid; place-items: center; }
.auth-form-card { width: min(410px,100%); }
.auth-business-logo { display: flex; min-height: 72px; margin-bottom: 22px; align-items: center; justify-content: center; }
.auth-business-logo img { display: block; width: auto; max-width: min(240px,100%); height: auto; max-height: 96px; object-fit: contain; }
.auth-form-card h2 { margin-bottom: 8px; font-size: 28px; }
.auth-form-card > p { margin-bottom: 26px; color: var(--cc-muted); }
.auth-form { margin-top: 20px; }
.auth-submit { width: 100%; margin-top: 4px; }
.home-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; background: radial-gradient(circle at top right,#dfe7ef,transparent 38%),linear-gradient(140deg,#eef2f6,#f9fafc); }
.home-card { width: min(760px,100%); padding: 60px; text-align: center; border: 1px solid var(--cc-border); border-radius: 26px; background: #fff; box-shadow: var(--cc-shadow-lg); }
.home-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; color: var(--cc-navy-900); font-weight: 750; }
.home-brand span { color: #fff; background: var(--cc-navy-900); }
.home-card h1 { margin: 8px auto 18px; max-width: 650px; font-size: clamp(36px,5vw,54px); line-height: 1.08; }
.home-card p { max-width: 600px; margin: 0 auto 28px; color: var(--cc-muted); font-size: 17px; }

/* Blazor error UI */
.blazor-error-boundary { padding: 1rem; color: white; background: #b42318; }
.darker-border-checkbox.form-check-input { border-color: #929292; }

/* Responsive */
@media (max-width: 1100px) {
    .dashboard-stat-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-content-grid { grid-template-columns: 1fr; }
    .quick-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .checkin-form-grid { grid-template-columns: 1fr; }
    .checkin-form-column { padding-right: 0; padding-bottom: 24px; border-right: 0; border-bottom: 1px solid var(--cc-border); }
    .admin-page { padding: 12px; }
    .admin-shell { min-height: calc(100vh - 24px); grid-template-columns: 1fr; gap: 16px; }
    .admin-shell > :not(.admin-nav), .admin-nav { grid-column: 1; }
    .admin-nav { grid-row: auto; position: relative; top: auto; height: auto; padding: 12px; }
    .admin-nav-brand { margin-bottom: 8px; padding-bottom: 10px; }
    .admin-nav-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .admin-nav-footer { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 10px; }
    .admin-nav-link { justify-content: center; padding: 9px 7px; font-size: 11px; }
    .nav-icon { display: none; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-grid .settings-wide { grid-column: auto; }
}
@media (max-width: 680px) {
    .checkin-topbar { padding: 0 18px; min-height: 64px; }
    .checkin-help { font-size: 0; }
    .checkin-main { width: min(100% - 22px,1180px); padding-top: 36px; }
    .checkin-page-logo { min-height: 76px; margin-bottom: 18px; }
    .checkin-page-logo img { max-width: min(240px, 76vw); max-height: 96px; }
    .checkin-form-card { padding: 20px 16px; border-radius: 17px; }
    .checkin-choice-row { grid-template-columns: 1fr; }
    .signature-canvas { height: 180px; }
    .dashboard-stat-strip, .admin-grid, .billing-status-grid { grid-template-columns: 1fr; }
    .quick-action-grid, .admin-link-list { grid-template-columns: 1fr; }
    .admin-page-header { display: block; }
    .date-range-pill { display: inline-block; margin-top: 12px; }
    .admin-nav-links, .admin-nav-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .billing-details { grid-template-columns: 1fr; gap: 3px; }
    .billing-details dd { margin-bottom: 10px; }
    .auth-page { padding: 0; }
    .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
    .auth-brand-panel { min-height: 280px; padding: 28px; }
    .auth-brand-panel h1 { font-size: 28px; }
    .auth-form-panel { padding: 32px 22px; }
    .home-card { padding: 38px 22px; }
}

.logo-settings-preview {
    min-height: 190px;
    margin: 18px 0;
    padding: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    background: var(--cc-slate-50);
}
.logo-settings-preview img { max-width: 100%; max-height: 135px; object-fit: contain; }
.settings-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.template-token { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cc-border); }
.template-token:last-child { border-bottom: 0; }
.template-token code { display: inline-block; padding: 6px 8px; color: var(--cc-navy-800); background: var(--cc-slate-100); border-radius: 7px; font-weight: 700; }
.template-token span { color: var(--cc-muted); font-size: 13px; }
.admin-card { overflow-x: auto; }
.admin-card > .admin-table { min-width: 720px; }
@media (max-width: 680px) {
    .settings-two-column { grid-template-columns: 1fr; gap: 0; }
    .template-token { grid-template-columns: 1fr; gap: 6px; }
}
.system-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: var(--cc-slate-50); }
.system-card { width: min(580px,100%); padding: 50px 36px; text-align: center; border: 1px solid var(--cc-border); border-radius: 22px; background: #fff; box-shadow: var(--cc-shadow-md); }
.system-card .state-icon { margin-bottom: 20px; font-size: 15px; }
.system-card h1 { margin: 4px 0 12px; font-size: 32px; }
.system-card p { color: var(--cc-muted); }
.system-card .admin-button { margin-top: 12px; }
.request-id { margin-top: 20px; font-size: 12px; overflow-wrap: anywhere; }
.billing-page-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.72fr); gap: 22px; }
.billing-page-grid .settings-wide { grid-column: 1 / -1; }
.billing-summary-card { min-height: 330px; }
.billing-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--cc-border); }
.billing-plan-row span { color: var(--cc-muted); font-size: 13px; }
.billing-plan-row strong { text-align: right; font-size: 13px; }
.billing-primary-action { width: 100%; margin-top: 22px; }
@media (max-width: 900px) { .billing-page-grid { grid-template-columns: 1fr; } .billing-page-grid .settings-wide { grid-column: auto; } }

/* Admin users */
.admin-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--cc-slate-700);
    background: #fff;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    box-shadow: var(--cc-shadow-sm);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.user-create-card { width: min(100%, 560px); }
.admin-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
}
.admin-card-heading-between { justify-content: space-between; }
.admin-card-heading h2 { margin-bottom: 4px; }
.admin-card-heading p { margin-bottom: 0; }
.admin-card-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--cc-navy-900);
    border-radius: 11px;
    font-size: 22px;
    font-weight: 500;
}
.admin-field-help {
    display: block;
    margin-top: 7px;
    color: var(--cc-muted);
    font-size: 11px;
    line-height: 1.45;
}
.user-create-button { width: 100%; }
.user-list-card { min-width: 0; }
.user-table-wrap { margin: 0 -23px -23px; width: calc(100% + 46px); }
.user-table { min-width: 900px !important; }
.user-table th:first-child, .user-table td:first-child { padding-left: 23px; }
.user-table th:last-child, .user-table td:last-child { padding-right: 23px; }
.user-email-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.user-email-cell strong { display: block; color: var(--cc-text); font-size: 13px; }
.user-email-cell span:not(.user-avatar) { display: block; margin-top: 2px; color: var(--cc-muted); font-size: 11px; }
.user-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--cc-slate-600), var(--cc-navy-900));
    border-radius: 50%;
    font-size: 13px;
    font-weight: 750;
}
.admin-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--cc-slate-700); font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.admin-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.admin-toggle-track { width: 34px; height: 20px; padding: 2px; display: inline-flex; align-items: center; background: var(--cc-slate-300); border-radius: 999px; transition: background .15s; }
.admin-toggle-track span { width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(15,23,42,.22); transition: transform .15s; }
.admin-toggle > input:checked + .admin-toggle-track { background: var(--cc-success); }
.admin-toggle > input:checked + .admin-toggle-track span { transform: translateX(14px); }
.admin-toggle > input:focus-visible + .admin-toggle-track { outline: 3px solid rgba(49,88,201,.2); outline-offset: 2px; }
.admin-inline-input {
    width: 210px;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--cc-text);
    background: #fff;
    border: 1px solid var(--cc-slate-300);
    border-radius: 8px;
    outline: none;
}
.admin-inline-input:focus { border-color: var(--cc-slate-600); box-shadow: 0 0 0 3px rgba(71,85,105,.11); }
.user-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; white-space: normal; }
.user-delete-card {
    border-color: #efc2be;
    background: #fffafa;
}
.user-delete-card h2 { color: var(--cc-danger); }
.user-delete-card p { max-width: 760px; color: var(--cc-slate-700); }
.admin-button-small { min-height: 36px; padding: 8px 11px; font-size: 11px; }
.admin-loading-row { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--cc-muted); }
.admin-mini-spinner { width: 20px; height: 20px; border: 3px solid var(--cc-slate-200); border-top-color: var(--cc-navy-800); border-radius: 50%; animation: spin .8s linear infinite; }
/* Step 7.2 configuration and navigation refinements */
.checkin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.checkin-login-link {
    min-height: 36px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none !important;
}
.checkin-login-link:hover {
    background: rgba(255,255,255,.16);
}
.segment-button.active {
    background: var(--business-primary, var(--cc-navy-900));
}
.checkin-button-primary {
    background: linear-gradient(115deg, color-mix(in srgb, var(--business-primary, #334155) 82%, #000), var(--business-primary, #334155));
}
.settings-anchor {
    scroll-margin-top: 20px;
}

@media (max-width: 700px) {
    .checkin-topbar {
        padding: 0 18px;
    }
    .checkin-help {
        display: none;
    }
    .checkin-login-link {
        padding-inline: 10px;
    }
}
.settings-anchor:target {
    border-color: var(--cc-slate-300);
    box-shadow: 0 0 0 3px rgba(51,65,85,.08), var(--cc-shadow-sm);
}

/* Step 7.3: visual business accent-color picker */
.color-picker-help {
    display: block;
    margin: -2px 0 12px;
}
.brand-color-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.brand-color-option {
    min-height: 54px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cc-slate-700);
    background: #fff;
    border: 1px solid var(--cc-border);
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-color-option:hover {
    transform: translateY(-1px);
    border-color: var(--cc-slate-400);
    box-shadow: var(--cc-shadow-sm);
}
.brand-color-option.selected {
    color: var(--cc-text);
    border-color: var(--swatch-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch-color) 18%, transparent);
}
.brand-color-swatch {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--swatch-color);
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15,23,42,.16);
}
.brand-color-check {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}
@media (max-width: 700px) {
    .brand-color-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 430px) {
    .brand-color-picker {
        grid-template-columns: 1fr;
    }
}

/* Step 7.4: expanded named palette plus custom brand color */
.brand-color-label {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.brand-color-label strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}
.brand-color-label small {
    color: var(--cc-muted);
    font-size: 10px;
    font-weight: 550;
    letter-spacing: .02em;
}
.brand-custom-color {
    margin-top: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 82px minmax(130px, 1fr) auto minmax(145px, auto);
    gap: 12px;
    align-items: end;
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    background: var(--cc-slate-50);
}
.brand-custom-picker,
.brand-custom-hex {
    display: grid;
    gap: 6px;
}
.brand-custom-picker label,
.brand-custom-hex label {
    margin: 0;
    color: var(--cc-slate-600);
    font-size: 11px;
    font-weight: 700;
}
.brand-custom-picker input[type=color] {
    width: 58px;
    height: 42px;
    padding: 3px;
    border: 1px solid var(--cc-slate-300);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}
.brand-custom-picker input[type=color]::-webkit-color-swatch-wrapper {
    padding: 2px;
}
.brand-custom-picker input[type=color]::-webkit-color-swatch,
.brand-custom-picker input[type=color]::-moz-color-swatch {
    border: 0;
    border-radius: 6px;
}
.brand-custom-hex input {
    min-height: 42px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.brand-color-apply {
    min-height: 42px;
    white-space: nowrap;
}
.brand-current-color {
    min-height: 42px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--cc-border);
    border-radius: 9px;
    background: #fff;
}
.brand-current-color > span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--current-color);
    box-shadow: 0 0 0 1px rgba(15,23,42,.16);
}
.brand-current-color div {
    min-width: 0;
    display: grid;
    gap: 1px;
}
.brand-current-color small {
    color: var(--cc-muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.brand-current-color strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}
@media (min-width: 1150px) {
    .brand-color-picker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .brand-custom-color {
        grid-template-columns: 82px minmax(130px, 1fr) auto;
    }
    .brand-current-color {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    .brand-custom-color {
        grid-template-columns: 78px 1fr;
    }
    .brand-color-apply,
    .brand-current-color {
        grid-column: 1 / -1;
    }
}

/* Step 7.5: logo eyedropper and combined brand appearance controls */
.brand-appearance-card {
    overflow: hidden;
}
.brand-appearance-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.brand-appearance-heading h2,
.brand-appearance-heading p {
    margin-bottom: 0;
}
.brand-appearance-heading .brand-current-color {
    min-width: 156px;
    flex: 0 0 auto;
}
.brand-appearance-grid {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: start;
}
.brand-logo-column {
    min-width: 0;
    padding-right: 24px;
    border-right: 1px solid var(--cc-border);
}
.brand-logo-column h3,
.brand-color-column h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}
.brand-logo-picker-frame {
    margin-top: 13px;
    padding: 18px;
    display: grid;
    justify-items: center;
    gap: 14px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background:
        linear-gradient(45deg, var(--cc-slate-50) 25%, transparent 25%),
        linear-gradient(-45deg, var(--cc-slate-50) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--cc-slate-50) 75%),
        linear-gradient(-45deg, transparent 75%, var(--cc-slate-50) 75%),
        #fff;
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.brand-logo-picker-surface {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}
.brand-logo-picker-surface img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
    cursor: crosshair;
    user-select: none;
    -webkit-user-drag: none;
}
.brand-logo-picker-surface img:hover {
    filter: saturate(1.04);
}
.brand-logo-color-marker {
    position: absolute;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--picked-color);
    box-shadow: 0 0 0 2px rgba(15,23,42,.72), 0 3px 10px rgba(15,23,42,.24);
}
.brand-logo-picker-instruction {
    width: 100%;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--cc-slate-700);
    border: 1px solid var(--cc-border);
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    line-height: 1.2;
}
.brand-logo-picker-instruction > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    color: #fff;
    background: var(--cc-navy-800);
    border-radius: 8px;
    font-size: 18px;
}
.brand-logo-picker-instruction div {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: left;
}
.brand-logo-picker-instruction strong {
    font-size: 12px;
    font-weight: 700;
}
.brand-logo-picker-instruction small {
    color: var(--cc-muted);
    font-size: 10px;
}
.brand-logo-empty {
    margin-top: 13px;
    padding-block: 66px;
}
.brand-logo-upload {
    margin-top: 16px;
}
.brand-logo-upload input[type=file] {
    min-height: auto;
    padding: 8px;
}
.brand-color-column {
    min-width: 0;
}
.brand-color-section-label {
    margin: 15px 0 8px;
    display: block;
    color: var(--cc-slate-600);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.logo-palette-section {
    margin-bottom: 4px;
}
.logo-palette-section .brand-color-section-label {
    margin-top: 0;
}
.logo-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.logo-color-option {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--swatch-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15,23,42,.18);
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.logo-color-option:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 0 1px rgba(15,23,42,.26), 0 5px 12px rgba(15,23,42,.14);
}
.logo-color-option.selected {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch-color) 35%, #fff), 0 0 0 5px var(--swatch-color);
}
.brand-appearance-card .brand-custom-color {
    grid-template-columns: 82px minmax(130px, 1fr) auto;
}
.brand-appearance-card .brand-current-color {
    grid-column: auto;
}
@media (max-width: 1050px) {
    .brand-appearance-grid {
        grid-template-columns: 1fr;
    }
    .brand-logo-column {
        padding-right: 0;
        padding-bottom: 22px;
        border-right: 0;
        border-bottom: 1px solid var(--cc-border);
    }
    .brand-logo-picker-surface img {
        max-height: 260px;
    }
}
@media (max-width: 650px) {
    .brand-appearance-heading {
        display: grid;
    }
    .brand-appearance-heading .brand-current-color {
        min-width: 0;
        width: 100%;
    }
    .brand-appearance-card .brand-custom-color {
        grid-template-columns: 78px 1fr;
    }
    .brand-appearance-card .brand-color-apply {
        grid-column: 1 / -1;
    }
    .brand-logo-picker-frame {
        padding: 13px;
    }
}

/* Step 7.6: enlarged logo color picker and customer admin handoff */
.brand-logo-enlarge-button {
    width: 100%;
    justify-content: center;
}
.logo-picker-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: 28px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(5px);
}
.logo-picker-modal {
    width: min(1100px, 100%);
    max-height: calc(100vh - 56px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .38);
}
.logo-picker-modal-header {
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--cc-border);
}
.logo-picker-modal-header h2 {
    margin: 3px 0 5px;
    font-size: 22px;
}
.logo-picker-modal-header p {
    margin: 0;
    color: var(--cc-muted);
}
.logo-picker-modal-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    color: var(--cc-slate-700);
    border: 1px solid var(--cc-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.logo-picker-modal-close:hover {
    background: var(--cc-slate-50);
}
.logo-picker-modal-canvas {
    min-height: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    overflow: auto;
    background:
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%),
        #fff;
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.brand-logo-picker-surface-large {
    max-width: 100%;
    max-height: 64vh;
}
.brand-logo-picker-surface-large img {
    width: auto;
    max-width: 100%;
    max-height: 64vh;
    object-fit: contain;
    cursor: crosshair;
    user-select: none;
    -webkit-user-drag: none;
}
.brand-logo-color-marker-large {
    width: 28px;
    height: 28px;
}
.logo-picker-modal-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--cc-border);
    background: var(--cc-slate-50);
}
.logo-picker-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
.business-admin-access-fields {
    margin: 22px 0;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 18px;
    align-items: start;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: var(--cc-slate-50);
}
.business-admin-access-fields h3,
.business-admin-access-fields p {
    margin-top: 0;
}
.business-admin-handoff {
    margin: 18px 0 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.4fr);
    gap: 22px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    background: var(--cc-slate-50);
}
.business-admin-handoff h3 {
    margin: 3px 0 5px;
}
.business-admin-handoff p {
    margin: 0;
    color: var(--cc-muted);
}
.business-admin-handoff dl {
    margin: 0;
    display: grid;
    gap: 9px;
}
.business-admin-handoff dl > div {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 12px;
}
.business-admin-handoff dt {
    color: var(--cc-muted);
    font-size: 12px;
    font-weight: 650;
}
.business-admin-handoff dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}
.business-admin-handoff .admin-field-help {
    grid-column: 1 / -1;
}
.business-admin-handoff-empty {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
@media (max-width: 850px) {
    .business-admin-access-fields,
    .business-admin-handoff {
        grid-template-columns: 1fr;
    }
    .business-admin-handoff-empty {
        align-items: stretch;
    }
    .logo-picker-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .logo-picker-modal-actions {
        justify-content: space-between;
    }
}
@media (max-width: 600px) {
    .logo-picker-modal-backdrop {
        padding: 10px;
    }
    .logo-picker-modal {
        max-height: calc(100vh - 20px);
        border-radius: 13px;
    }
    .logo-picker-modal-header,
    .logo-picker-modal-canvas,
    .logo-picker-modal-footer {
        padding: 15px;
    }
    .logo-picker-modal-header h2 {
        font-size: 18px;
    }
    .logo-picker-modal-actions {
        display: grid;
    }
    .business-admin-handoff dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}


/* Step 7.8 business deletion and color-save refinements */
.business-table { min-width: 1180px; }
.business-delete-card {
    border-color: #efc2be;
    background: #fffafa;
}
.business-delete-card h2 { color: var(--cc-danger); }
.business-delete-card p { max-width: 760px; color: var(--cc-slate-700); }
.business-delete-card .admin-form-row { max-width: 520px; }
.logo-picker-modal-actions .admin-button { white-space: nowrap; }

/* Step 7.9: clear save state and unsaved-navigation protection */
.settings-save-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cc-muted);
    font-size: 13px;
    font-weight: 650;
}
.settings-save-header .settings-save-indicator {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}
.settings-save-header.has-changes {
    color: #92400e;
}
.settings-save-header.has-changes .settings-save-indicator {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
}
.settings-save-header .admin-button {
    margin-left: 4px;
}
.settings-save-header .admin-button:disabled {
    opacity: .62;
    cursor: default;
}
.settings-unsaved-bar {
    position: fixed;
    z-index: 1050;
    left: max(24px, calc((100vw - 1500px) / 2 + 24px));
    right: max(24px, calc((100vw - 1500px) / 2 + 24px));
    bottom: 22px;
    padding: 14px 16px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: #17263a;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .28);
}
.settings-unsaved-bar > div {
    display: grid;
    gap: 2px;
}
.settings-unsaved-bar strong {
    font-size: 14px;
}
.settings-unsaved-bar .settings-unsaved-save {
    background: #fff;
    color: #17263a !important;
    border: 1px solid #fff;
}
.settings-unsaved-bar .settings-unsaved-save:hover:not(:disabled) {
    background: #e9eef4;
    border-color: #e9eef4;
}
.settings-unsaved-bar .settings-unsaved-save:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.settings-unsaved-bar span {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.policy-page { min-height: 100vh; background: #fff; color: var(--cc-slate-700); }
.policy-header { max-width: 960px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--cc-border); }
.policy-header .home-brand { margin: 0; text-decoration: none; }
.policy-header nav { display: flex; flex-wrap: wrap; gap: 20px; }
.policy-content { max-width: 800px; margin: 0 auto; padding: 40px 24px 64px; overflow-wrap: anywhere; line-height: 1.7; }
.policy-content h1 { font-size: 32px; line-height: 1.2; margin: 12px 0 32px; }
.policy-content h2 { font-size: 20px; line-height: 1.35; margin: 28px 0 12px; }
.policy-content li { margin: 8px 0; }
.settings-leave-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    padding: 22px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .7);
    backdrop-filter: blur(4px);
}
.settings-leave-modal {
    width: min(520px, 100%);
    padding: 28px;
    text-align: center;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(15, 23, 42, .34);
}
.settings-leave-modal-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    color: #92400e;
    border-radius: 999px;
    background: #fff4df;
    font-size: 24px;
    font-weight: 800;
}
.settings-leave-modal h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
.settings-leave-modal p {
    margin: 0 auto 23px;
    max-width: 420px;
    color: var(--cc-muted);
}
.settings-leave-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-button-danger-outline {
    color: var(--cc-danger);
    border-color: #efc2be;
    background: #fff;
}
.admin-button-danger-outline:hover {
    background: #fff5f4;
}
@media (max-width: 720px) {
    .settings-save-header {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .settings-unsaved-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
@media (max-width: 520px) {
    .settings-unsaved-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .settings-unsaved-bar .admin-button,
    .settings-leave-modal-actions .admin-button {
        width: 100%;
        justify-content: center;
    }
    .settings-leave-modal-actions {
        display: grid;
    }
}

/* Step 7.10 temporary password recovery */
.status-warning { color: #92400e; background: #fef3c7; }
.status-danger { color: #b42318; background: #fee4e2; }
.temporary-password-result { display: grid; gap: 12px; border-left: 4px solid var(--cc-accent, #172b42); }
.temporary-password-result h2 { margin: 0; }
.temporary-password-value {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cc-slate-200);
    border-radius: 10px;
    background: var(--cc-slate-50);
    color: var(--cc-slate-900);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
    user-select: all;
}


/* Step 7.11 password visibility controls */
.password-field {
    position: relative;
    width: 100%;
}
.password-field > input {
    padding-right: 76px !important;
}
.password-visibility-button {
    min-width: 58px;
    min-height: 32px;
    padding: 5px 10px;
    color: var(--cc-slate-700);
    background: var(--cc-slate-100);
    border: 1px solid var(--cc-border);
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.password-field > .password-visibility-button {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
}
.password-visibility-button:hover {
    background: var(--cc-slate-200);
}
.password-visibility-button:focus-visible {
    outline: 3px solid rgba(71,85,105,.18);
    outline-offset: 2px;
}
.admin-inline-password {
    min-width: 290px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.admin-inline-password .admin-inline-input {
    min-width: 190px;
    flex: 1 1 auto;
}
.password-visibility-button-inline {
    flex: 0 0 auto;
    min-height: 38px;
}
@media (max-width: 720px) {
    .admin-inline-password {
        min-width: 250px;
    }
}

.auth-support-link { margin-top: 16px; text-align: center; font-size: 13px; }
.auth-support-link a { color: var(--cc-navy-800); font-weight: 650; text-decoration: none; }
.auth-support-link a:hover { text-decoration: underline; }

/* Step 8.1: check-in history deletion controls */
.checkin-history-actions { justify-content: flex-end; }
.checkin-history-table { min-width: 1540px; }
.checkin-delete-card {
    border-color: #efc2be;
    background: #fffafa;
}
.checkin-delete-card h2 { color: var(--cc-danger); }
.checkin-delete-card p { max-width: 820px; color: var(--cc-slate-700); }
.checkin-delete-card .admin-form-row { max-width: 460px; }
@media (max-width: 760px) {
    .checkin-history-actions { width: 100%; justify-content: stretch; }
    .checkin-history-actions .admin-button { flex: 1 1 100%; }
}

/* Step 9 - SMS compliance and consent */
.compliance-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-message-warning {
    border-color: #d8a641;
    background: #fff8e8;
    color: #6d4b00;
}

.admin-form-grid.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.admin-check-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    line-height: 1.45;
    margin: .5rem 0 1rem;
}

.admin-check-row input {
    margin-top: .2rem;
}

.consent-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.consent-link-box {
    display: grid;
    gap: .35rem;
    width: min(36rem, 100%);
    margin-top: .45rem;
}

.consent-link-box input {
    width: 100%;
    font-size: .82rem;
}

.webhook-list {
    display: grid;
    gap: .8rem;
}

.webhook-list > div {
    display: grid;
    gap: .3rem;
}

.webhook-list code {
    display: block;
    overflow-wrap: anywhere;
    padding: .8rem 1rem;
    border: 1px solid var(--admin-border, #d8dee8);
    border-radius: .65rem;
    background: #f7f9fc;
}

.sms-consent-card {
    max-width: 42rem;
}

.sms-consent-copy {
    padding: 1rem 1.1rem;
    border: 1px solid #d8dee8;
    border-radius: .8rem;
    background: #f7f9fc;
    margin: 1rem 0;
}

.sms-consent-copy ul {
    padding-left: 1.25rem;
}

.status-danger {
    background: #feeceb;
    color: #9b1c13;
}

@media (max-width: 900px) {
    .compliance-status-grid,
    .admin-form-grid.two-column {
        grid-template-columns: 1fr;
    }
}
