:root {
    --hg-navy: #1F303F;
    --hg-gold: #C29A60;
    --hg-gold-dark: #B48A4F;
    --hg-bg-warm: #F1EEEA;
    --hg-slate: #5F6C76;
    --hg-white: #FFFFFF;
    --hg-primary: var(--hg-navy);
    --hg-accent: var(--hg-gold);
    --hg-border: rgba(31, 48, 63, 0.14);
    --hg-shadow: 0 18px 45px rgba(31, 48, 63, 0.14);
    --red: var(--hg-accent);
    --red-dark: var(--hg-gold-dark);
    --black: var(--hg-navy);
    --ink: var(--hg-navy);
    --muted: var(--hg-slate);
    --line: var(--hg-border);
    --soft: var(--hg-bg-warm);
    --white: var(--hg-white);
    --shadow: var(--hg-shadow);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--soft);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(194, 154, 96, 0.16), transparent 36%),
        linear-gradient(225deg, rgba(31, 48, 63, 0.08), transparent 34%),
        var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.page-shell {
    width: min(100%, 1180px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
}

.auth-page {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 430px);
    padding: 32px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--hg-border);
    border-top: 4px solid var(--hg-accent);
    border-radius: 18px;
    box-shadow: var(--hg-shadow);
}

.auth-card-wide {
    width: min(100%, 720px);
}

.brand-mark {
    display: grid;
    width: 172px;
    min-height: 104px;
    margin-bottom: 20px;
    place-items: center;
}

.brand-mark img {
    display: block;
    max-width: 172px;
    max-height: 104px;
    object-fit: contain;
}

.brand-mark--missing {
    width: 132px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--black), var(--red));
}

.brand-mark-small {
    width: 88px;
    min-height: 52px;
    margin: 0;
}

.brand-mark-small img {
    max-width: 88px;
    max-height: 52px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: var(--black);
    font-size: clamp(2rem, 8vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--black);
    font-size: clamp(1.45rem, 5vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    margin: 6px 0 8px;
    color: var(--black);
    font-size: 1.22rem;
    letter-spacing: 0;
}

.muted {
    margin: 12px 0 22px;
    color: var(--muted);
}

form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

label {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
    border-color: rgba(194, 154, 96, 0.65);
    box-shadow: 0 0 0 4px rgba(194, 154, 96, 0.1);
}

.login-form {
    gap: 14px;
}

.password-input-wrap {
    position: relative;
    display: grid;
}

.password-input-wrap input {
    padding-right: 56px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: #f7f7f9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--red);
    border-color: rgba(194, 154, 96, 0.35);
    outline: none;
}

.password-toggle-btn svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.login-options {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.checkbox-option {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fbfbfc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.checkbox-option input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--red);
}

.checkbox-option span {
    font-size: 0.92rem;
    font-weight: 800;
}

.security-note,
.forgot-password-placeholder {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.forgot-password-placeholder {
    text-align: center;
}

.logout-choice-form {
    gap: 10px;
}

.logout-choice-form .button {
    width: 100%;
}

textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: rgba(194, 154, 96, 0.65);
    box-shadow: 0 0 0 4px rgba(194, 154, 96, 0.1);
}

.inline-action-form {
    display: inline-grid;
    margin: 0 6px 6px 0;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.span-all {
    grid-column: 1 / -1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    width: 100%;
    margin-top: 8px;
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 28px rgba(194, 154, 96, 0.24);
}

.button-primary:hover {
    background: var(--red-dark);
}

.whatsapp-action {
    color: #ffffff;
    background: #25D366;
    border-color: #25D366;
}

.whatsapp-action:hover {
    color: #ffffff;
    background: #1fad55;
}

.button-ghost {
    color: var(--black);
    background: var(--white);
    border-color: var(--line);
}

.ai-preview-panel {
    border-top: 4px solid var(--black);
}

.ai-output-box {
    min-height: 260px;
    background: #fbfbfc;
    font-size: 0.96rem;
}

.soft-callout {
    margin: 16px 0;
    padding: 16px;
    background: #fff7f8;
    border: 1px solid rgba(194, 154, 96, 0.18);
    border-radius: var(--radius);
}

.soft-callout p {
    margin: 8px 0 0;
}

.alert {
    margin: 20px 0 4px;
    padding: 13px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert-error {
    color: #7f1020;
    background: #fff1f3;
    border: 1px solid #ffd0d8;
}

.alert-success {
    color: #155a32;
    background: #eefaf2;
    border: 1px solid #cdeed7;
}

.alert-info {
    color: #23262c;
    background: #f1f2f5;
    border: 1px solid var(--line);
}

.thecms-pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    gap: 22px;
    place-content: center;
    justify-items: center;
    background: var(--hg-bg-warm);
    opacity: 1;
    transition: opacity 260ms ease, transform 260ms ease;
}

.thecms-pwa-splash.is-leaving {
    opacity: 0;
    transform: scale(1.012);
    pointer-events: none;
}

.thecms-pwa-splash-mark {
    display: grid;
    place-items: center;
    width: min(78vw, 320px);
    min-height: 188px;
    padding: 20px 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 238, 234, 0.92)),
        #ffffff;
    border: 1px solid rgba(194, 154, 96, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 68px rgba(31, 48, 63, 0.13);
}

.thecms-pwa-splash-mark img {
    display: block;
    width: 100%;
    max-height: 154px;
    height: auto;
    object-fit: contain;
}

.thecms-pwa-splash p {
    margin: -8px 0 0;
    color: var(--hg-navy);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
}

.thecms-pwa-splash span {
    display: block;
    width: 104px;
    height: 4px;
    overflow: hidden;
    background: rgba(31, 48, 63, 0.14);
    border-radius: 999px;
}

.thecms-pwa-splash span::after {
    display: block;
    width: 46px;
    height: 100%;
    background: var(--hg-gold);
    border-radius: inherit;
    animation: thecms-splash-line 780ms ease-in-out infinite alternate;
    content: "";
}

@keyframes thecms-splash-line {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(58px);
    }
}

.pwa-install-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px;
    color: var(--white);
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pwa-install-banner span {
    font-weight: 800;
}

.pwa-install-banner button {
    width: auto;
    min-height: 40px;
    padding: 9px 12px;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: var(--radius);
    font-weight: 900;
    cursor: pointer;
}

.pwa-install-banner .pwa-dismiss {
    min-width: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 22px;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 0 28px;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-brand h1 {
    font-size: clamp(1.45rem, 6vw, 2.6rem);
}

.dashboard-panel,
.checklist-panel,
.status-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(232, 233, 237, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 16px 45px rgba(31, 48, 63, 0.08);
}

.dashboard-panel {
    padding: 28px;
    border-left: 4px solid var(--red);
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.status-card {
    position: relative;
    padding: 22px;
}

.booking-summary {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(232, 233, 237, 0.92);
}

.booking-hero-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 26px;
    margin-bottom: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #1F303F 0%, #2a2a2a 58%, #C29A60 100%);
    border-radius: var(--radius);
    box-shadow: 0 20px 55px rgba(31, 48, 63, 0.16);
}

.booking-hero-card .eyebrow,
.booking-hero-card p,
.booking-hero-card h2 {
    color: #ffffff;
}

.booking-hero-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.25rem;
}

.booking-hero-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.booking-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.status-card.is-disabled {
    opacity: 0.56;
    background: #f3f4f6;
}

.status-dot {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22a35a;
    box-shadow: 0 0 0 6px rgba(34, 163, 90, 0.12);
}

.checklist-panel {
    padding: 24px;
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-weight: 700;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: inset 0 0 0 4px var(--white);
}

@media (min-width: 700px) {
    .auth-card {
        padding: 38px;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .button-ghost {
        min-width: 120px;
    }
}

.admin-app-shell {
    display: grid;
    min-height: 100vh;
    background: var(--soft);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    background: var(--black);
    color: var(--white);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 900;
    text-decoration: none;
}

.admin-logo img {
    width: 58px;
    height: 40px;
    object-fit: contain;
    background: var(--white);
    border-radius: var(--radius);
    padding: 4px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: var(--white);
    background: rgba(194, 154, 96, 0.92);
}

.admin-nav a.is-disabled {
    color: rgba(255, 255, 255, 0.42);
    cursor: not-allowed;
}

.admin-nav a.is-disabled:hover {
    background: transparent;
}

.admin-app-shell .button-primary {
    width: auto;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
}

.admin-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.admin-content {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.admin-grid {
    display: grid;
    gap: 14px;
}

.metric-card,
.admin-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 35px rgba(31, 48, 63, 0.06);
}

.metric-card {
    padding: 20px;
}

.metric-card strong {
    display: block;
    color: var(--black);
    font-size: 2.25rem;
    line-height: 1;
}

.admin-panel {
    padding: 20px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.quick-actions,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.copy-row {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.copy-input {
    min-width: 260px;
}

.toast-message {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 14px;
    color: var(--white);
    background: var(--black);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-alerts {
    position: relative;
}

.app-alerts-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(31, 48, 63, 0.16);
    border-radius: 8px;
    background: #fff;
    color: #1F303F;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(31, 48, 63, 0.08);
}

.app-alerts-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-alerts-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #C79A48;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

.app-alerts-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(390px, calc(100vw - 28px));
    max-height: 480px;
    overflow: hidden;
    z-index: 80;
    background: #fff;
    border: 1px solid rgba(31, 48, 63, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(31, 48, 63, 0.18);
}

.app-alerts-menu-head,
.app-alert-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-alerts-menu-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(31, 48, 63, 0.08);
    background: linear-gradient(180deg, #fff, #FBFAF7);
}

.app-alerts-list {
    padding: 8px;
    max-height: 340px;
    overflow: auto;
}

.app-alert-empty {
    margin: 0;
    padding: 18px 14px;
    text-align: center;
}

.app-alert-item {
    position: relative;
    padding: 12px 36px 12px 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(31, 48, 63, 0.08);
}

.app-alert-item + .app-alert-item {
    margin-top: 6px;
}

.app-alert-item.is-unread {
    background: #FFF8EA;
    border-color: rgba(199, 154, 72, 0.28);
}

.app-alert-item.is-read {
    opacity: 0.68;
}

.app-alert-dot {
    position: absolute;
    top: 17px;
    left: 14px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(31, 48, 63, 0.18);
}

.app-alert-item.is-unread .app-alert-dot {
    background: #C79A48;
    box-shadow: 0 0 0 4px rgba(199, 154, 72, 0.14);
}

.app-alert-item strong {
    display: block;
    font-size: 14px;
    color: #1F303F;
}

.app-alert-item p {
    margin: 5px 0 8px;
    font-size: 13px;
    color: #52606B;
}

.app-alert-meta {
    font-size: 12px;
    color: #7B8794;
}

.app-alert-meta > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-alert-meta a,
.app-alert-read {
    color: #1F303F;
    font-weight: 700;
}

.app-alert-read {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.app-alert-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(31, 48, 63, 0.08);
    color: #1F303F;
    cursor: pointer;
}

.app-alerts-menu-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(31, 48, 63, 0.08);
    background: #FBFAF7;
    font-size: 13px;
}

.app-alerts-menu-foot a,
.app-alerts-menu-foot button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1F303F;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.app-alert-toast {
    position: fixed;
    right: 22px;
    top: 22px;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    padding: 15px 42px 15px 16px;
    background: #1F303F;
    color: #fff;
    border-left: 4px solid #C79A48;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(31, 48, 63, 0.25);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 120;
}

.app-alert-toast + .app-alert-toast {
    top: 122px;
}

.app-alert-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.app-alert-toast-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-alert-toast-close {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.app-alert-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-alert-toast p {
    margin: 5px 0 8px;
    color: rgba(255, 255, 255, 0.82);
}

.app-alert-toast a {
    color: #F4C46F;
    font-weight: 700;
}

.app-alert-priority-urgent,
.app-alert-priority-high {
    border-left-color: #D96853;
}

.notifications-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
}

.app-alert-full.is-unread {
    border-left: 4px solid #C79A48;
}

.app-alert-full.is-read {
    opacity: 0.72;
    background: #F8FAFC;
}

.hg-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 64px;
    padding: 7px 14px 7px 8px;
    border-radius: 12px;
    border: 1px solid rgba(31, 48, 63, 0.14);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    white-space: normal;
    box-shadow: 0 8px 22px rgba(31, 48, 63, 0.08);
    text-decoration: none;
}

.hg-cert-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    display: block;
}

.hg-cert-icon-fallback {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1F303F;
    color: #fff;
    font-weight: 900;
}

.dashboard-certification-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
    flex: 0 0 64px;
    vertical-align: middle;
}

.dashboard-certification-icon.is-muted {
    opacity: .45;
    filter: grayscale(1);
}

.dashboard-certification-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1F303F;
    color: #fff;
    font-weight: 900;
}

.hg-cert-copy {
    display: grid;
    gap: 2px;
}

.hg-cert-copy strong {
    color: inherit;
    font-size: 13px;
}

.hg-cert-copy small {
    color: currentColor;
    opacity: .72;
    font-size: 11px;
    font-weight: 700;
}

.hg-cert-badge-certified {
    background: #F1EEEA;
    color: #1F303F;
    border-color: rgba(184, 134, 75, 0.36);
}

.hg-cert-badge-excellence {
    background: #fff;
    color: #1F303F;
    border-color: rgba(194, 154, 96, 0.48);
    box-shadow: 0 10px 26px rgba(194, 154, 96, 0.18);
}

.hg-cert-badge-premier {
    background: #111C27;
    color: #E8E4DA;
    border-color: rgba(214, 179, 106, 0.6);
    box-shadow: 0 12px 28px rgba(17, 28, 39, 0.22);
}

.hg-cert-status-expired,
.hg-cert-status-suspended,
.hg-cert-status-revoked {
    background: #fff;
    color: #6B2D2D;
    border-color: rgba(107, 45, 45, 0.26);
}

.admin-page-title .hg-cert-badge,
.client-topbar-clinic .hg-cert-badge {
    margin-top: 8px;
}

.admin-mobile-header .hg-cert-badge,
.client-mobile-header .hg-cert-badge {
    margin-top: 4px;
    font-size: 11px;
    min-height: 48px;
    padding: 4px 8px;
}

.admin-mobile-header .hg-cert-icon,
.client-mobile-header .hg-cert-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.admin-mobile-header .hg-cert-icon-fallback,
.client-mobile-header .hg-cert-icon-fallback {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.admin-mobile-header .dashboard-certification-icon,
.client-mobile-header .dashboard-certification-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

@media (max-width: 768px) {
    .dashboard-certification-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.inline-form select {
    min-width: 180px;
}

.quick-actions .button {
    min-width: 150px;
}

.admin-form {
    margin-top: 0;
}

.compact-filter-form {
    display: grid;
    gap: 16px;
}

.export-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.export-card form {
    margin-top: 8px;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list > div {
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-list span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-list strong {
    display: block;
    margin-top: 3px;
    color: var(--black);
    overflow-wrap: anywhere;
}

select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
}

input[type="color"] {
    padding: 5px;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.check-option input {
    width: 18px;
    min-height: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: capitalize;
}

.status-pill-active {
    color: #155a32;
    background: #e8f8ee;
}

.status-pill-inactive {
    color: #6a2630;
    background: #fff0f2;
}

.clinic-logo-preview {
    display: block;
    width: 120px;
    max-height: 86px;
    object-fit: contain;
    margin: 0 0 16px;
    padding: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.upload-attachment {
    display: grid;
    gap: 10px;
}

.upload-current {
    display: grid;
    gap: 8px;
    min-height: 72px;
    padding: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.upload-current img,
.upload-preview img {
    display: block;
    width: min(180px, 100%);
    max-height: 120px;
    object-fit: contain;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.upload-dropzone {
    position: relative;
    display: grid;
    min-height: 112px;
    padding: 18px;
    place-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px dashed rgba(31, 48, 63, 0.28);
    border-radius: var(--radius);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.upload-dropzone.is-dragover {
    background: rgba(194, 154, 96, 0.1);
    border-color: var(--hg-gold);
    box-shadow: 0 0 0 4px rgba(194, 154, 96, 0.12);
}

.upload-dropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone strong {
    color: var(--black);
}

.upload-dropzone p,
.upload-guidance {
    margin: 4px 0 0;
}

.upload-preview {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: rgba(194, 154, 96, 0.08);
    border: 1px solid rgba(194, 154, 96, 0.24);
    border-radius: var(--radius);
}

.upload-preview strong,
.upload-preview span {
    overflow-wrap: anywhere;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.detail-list div {
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 4px 0 0;
    color: var(--black);
    font-weight: 800;
}

.detail-list-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.client-portal-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: 22px 18px 92px;
}

.client-hero,
.client-stage-card,
.client-priority-card,
.client-action-card,
.client-mini-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(31, 48, 63, 0.08);
}

.client-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border-top: 4px solid var(--red);
}

.client-hero.compact {
    align-items: center;
}

.client-brand-row,
.client-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.client-hero-actions {
    justify-content: flex-start;
}

.client-clinic-logo {
    width: 86px;
    height: 64px;
    padding: 8px;
    object-fit: contain;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.client-stage-card,
.client-priority-card,
.client-action-card {
    padding: 20px;
}

.journey-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.journey-step {
    min-height: 86px;
    padding: 12px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.journey-step span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    place-items: center;
    color: var(--white);
    background: #aeb3bd;
    border-radius: 999px;
    font-weight: 900;
}

.journey-step.is-complete {
    color: var(--black);
    border-color: rgba(194, 154, 96, 0.28);
    background: #fff7f8;
}

.journey-step.is-complete span {
    background: var(--red);
}

.journey-step p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.client-main-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.client-side-stack {
    display: grid;
    gap: 18px;
    align-content: start;
}

.client-action-card .button,
.client-mini-panel .button {
    width: 100%;
}

.client-mini-panel {
    margin-top: 16px;
    padding: 14px;
    background: var(--soft);
    box-shadow: none;
}

.client-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(31, 48, 63, 0.14);
}

.client-bottom-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.client-summary-grid {
    display: grid;
    gap: 14px;
}

.client-summary-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(31, 48, 63, 0.06);
}

.client-summary-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.client-summary-head h3 {
    margin: 0;
}

.summary-mini-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.summary-mini-list div {
    display: grid;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.summary-mini-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.summary-mini-list dd {
    margin: 0;
    color: var(--black);
    font-weight: 800;
}

.phone-alert-card {
    border-color: rgba(194, 154, 96, 0.26);
    background: #fff8f9;
}

.alert-inline {
    margin: 0;
    padding: 10px 12px;
    color: #8f1021;
    background: #fff0f2;
    border: 1px solid rgba(194, 154, 96, 0.22);
    border-radius: var(--radius);
    font-weight: 800;
}

[aria-invalid="true"] {
    border-color: #8f1021 !important;
    box-shadow: 0 0 0 3px rgba(143, 16, 33, 0.12);
}

.comparison-grid {
    display: grid;
    gap: 16px;
}

.comparison-card {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(31, 48, 63, 0.06);
}

.comparison-card img,
.comparison-slider img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.comparison-card img {
    aspect-ratio: 4 / 3;
}

.comparison-slider {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.comparison-slider img {
    aspect-ratio: 16 / 9;
}

.comparison-slider-overlay {
    position: absolute;
    inset: 0 0 0 50%;
    overflow: hidden;
    border-left: 3px solid var(--red);
}

.comparison-slider-overlay img {
    width: 200%;
    max-width: none;
    transform: translateX(-50%);
}

.comparison-range {
    width: 100%;
    margin-top: 14px;
    accent-color: var(--red);
}

.recovery-photo-grid {
    display: grid;
    gap: 14px;
}

.recovery-photo-card {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(31, 48, 63, 0.06);
}

.recovery-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--soft);
}

.recovery-photo-card strong {
    display: block;
    color: var(--black);
    margin-bottom: 4px;
}

@media (max-width: 720px) {
    .pwa-install-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        flex-wrap: wrap;
    }

    .pwa-install-banner span {
        width: 100%;
    }

    .pwa-install-banner button {
        flex: 1;
    }

    .admin-table {
        min-width: 680px;
    }

    .admin-content,
    .admin-panel,
    .metric-card {
        border-radius: 8px;
    }

    .admin-sidebar {
        gap: 12px;
        padding: 14px;
    }

    .admin-logo img {
        width: 48px;
        height: 34px;
    }

    .admin-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .admin-nav a {
        min-width: max-content;
        white-space: nowrap;
    }

    .admin-topbar {
        padding: 18px;
    }

    .booking-hero-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .booking-hero-icon {
        width: 52px;
        height: 52px;
    }

    .booking-hero-button {
        width: 100%;
    }

    .booking-hero-actions {
        justify-content: stretch;
    }
}

@media (min-width: 900px) {
    .client-portal-shell {
        padding: 30px 28px 40px;
    }

    .client-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .client-main-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    }

    .client-bottom-nav {
        display: none;
    }

    .admin-app-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
    }

    .admin-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 26px 32px;
    }

    .admin-content {
        padding: 28px 32px;
    }

    .admin-grid-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .copy-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .client-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recovery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.admin-app-body {
    color: #171717;
    background: #f4f5f7;
}

body.admin-app-body .admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: auto 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8e8ec;
    box-shadow: 0 10px 28px rgba(31, 48, 63, 0.08);
}

body.admin-app-body .admin-mobile-header img {
    width: 46px;
    height: 38px;
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

body.admin-app-body .admin-mobile-header strong,
body.admin-app-body .admin-mobile-header span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-app-body .admin-mobile-header span {
    margin-top: 2px;
    color: #686b73;
    font-size: 0.82rem;
    font-weight: 700;
}

body.admin-app-body .admin-menu-button {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: #1F303F;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

body.admin-app-body .admin-menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    background: #ffffff;
    border-radius: 10px;
}

body.admin-app-body .admin-app-shell {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(194, 154, 96, 0.08), transparent 28%),
        #f4f5f7;
}

body.admin-app-body .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(86vw, 312px);
    padding: 18px;
    overflow-y: auto;
    background: #1F303F;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease;
}

body.admin-app-body.is-admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
}

body.admin-app-body .admin-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    background: rgba(31, 48, 63, 0.46);
    border: 0;
}

body.admin-app-body.is-admin-sidebar-open .admin-sidebar-scrim {
    display: block;
}

body.admin-app-body .admin-logo {
    padding: 8px 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.admin-app-body .admin-logo img {
    width: 66px;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
}

body.admin-app-body .admin-logo span {
    line-height: 1.2;
}

body.admin-app-body .admin-nav {
    display: grid;
    gap: 7px;
    overflow: visible;
    padding: 0;
}

body.admin-app-body .admin-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 13px;
    color: rgba(255, 255, 255, 0.76);
    border: 1px solid transparent;
    border-radius: 12px;
    white-space: normal;
}

body.admin-app-body .admin-nav a:hover,
body.admin-app-body .admin-nav a.is-active {
    color: #ffffff;
    background: #C29A60;
    border-color: rgba(255, 255, 255, 0.14);
}

body.admin-app-body .admin-main {
    min-width: 0;
}

body.admin-app-body .admin-topbar {
    display: grid;
    gap: 16px;
    margin: 16px 16px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(31, 48, 63, 0.07);
}

body.admin-app-body .admin-topbar h1 {
    font-size: 1.65rem;
    line-height: 1.1;
}

body.admin-app-body .admin-page-title .muted {
    margin-top: 5px;
}

body.admin-app-body .admin-user {
    gap: 9px;
}

body.admin-app-body .admin-topbar-logo {
    width: 48px;
    height: 38px;
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

body.admin-app-body .admin-content {
    padding: 16px;
}

body.admin-app-body .admin-dashboard-hero {
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(31, 48, 63, 0.96), rgba(39, 41, 48, 0.96)),
        #1F303F;
    border: 1px solid rgba(194, 154, 96, 0.22);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(31, 48, 63, 0.18);
}

body.admin-app-body .admin-dashboard-hero h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1.08;
}

body.admin-app-body .admin-dashboard-hero .muted {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.72);
}

body.admin-app-body .admin-hero-stat {
    display: grid;
    gap: 4px;
    align-content: center;
    justify-items: start;
    width: max-content;
    min-width: 160px;
    padding: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

body.admin-app-body .admin-hero-stat span {
    font-size: 2.5rem;
    font-weight: 950;
    line-height: 1;
}

body.admin-app-body .admin-hero-stat strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

body.admin-app-body .admin-priority-grid {
    display: grid;
    gap: 12px;
}

body.admin-app-body .admin-priority-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: #171717;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(31, 48, 63, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.admin-app-body .admin-priority-card:hover {
    transform: translateY(-2px);
    border-color: rgba(194, 154, 96, 0.32);
    box-shadow: 0 20px 48px rgba(31, 48, 63, 0.1);
}

body.admin-app-body .admin-priority-card span {
    color: #686b73;
    font-weight: 900;
}

body.admin-app-body .admin-priority-card strong {
    color: #1F303F;
    font-size: 2rem;
    line-height: 1;
}

body.admin-app-body .admin-priority-card em {
    color: #686b73;
    font-style: normal;
    font-size: 0.9rem;
}

body.admin-app-body .admin-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(31, 48, 63, 0.05);
}

body.admin-app-body .admin-action-strip .button {
    min-width: 170px;
}

body.admin-app-body .admin-feature-panel {
    border-color: rgba(194, 154, 96, 0.16);
}

body.admin-app-body .admin-panel,
body.admin-app-body .metric-card {
    border-color: #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(31, 48, 63, 0.06);
}

body.admin-app-body .client-summary-grid {
    display: grid;
    gap: 14px;
}

body.admin-app-body .client-summary-card {
    background: #ffffff;
    border: 1px solid #e7e8ec;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(31, 48, 63, 0.05);
}

body.admin-app-body .card-actions {
    align-items: center;
}

body.admin-app-body .whatsapp-action {
    color: #ffffff;
    background: #128c4a;
    border-color: #128c4a;
}

body.admin-app-body .whatsapp-action:hover {
    background: #0f7d41;
    border-color: #0f7d41;
}

body.admin-app-body .admin-profile-panel {
    max-width: 980px;
}

body.admin-app-body .admin-form-grid {
    display: grid;
    gap: 16px;
}

body.admin-app-body .admin-form label {
    display: grid;
    gap: 7px;
    color: #171717;
    font-weight: 850;
}

body.admin-app-body .admin-form input,
body.admin-app-body .admin-form select,
body.admin-app-body .admin-form textarea {
    min-height: 48px;
    padding: 12px 14px;
    color: #171717;
    background: #ffffff;
    border: 1px solid #dedfe5;
    border-radius: 12px;
    font: inherit;
}

body.admin-app-body .admin-form input:focus,
body.admin-app-body .admin-form select:focus,
body.admin-app-body .admin-form textarea:focus {
    outline: 3px solid rgba(194, 154, 96, 0.14);
    border-color: rgba(194, 154, 96, 0.55);
}

body.admin-app-body .admin-form input:disabled {
    color: #6f727a;
    background: #f2f3f5;
}

body.admin-app-body .helper-text {
    color: #6f727a;
    font-size: 0.84rem;
    font-weight: 650;
}

body.admin-app-body .form-divider {
    height: 1px;
    margin: 22px 0;
    background: #e7e8ec;
}

body.admin-app-body .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 720px) {
    body.admin-app-body .admin-table {
        min-width: 0;
        border: 0;
    }

    body.admin-app-body .admin-table thead {
        display: none;
    }

    body.admin-app-body .admin-table,
    body.admin-app-body .admin-table tbody,
    body.admin-app-body .admin-table tr,
    body.admin-app-body .admin-table td {
        display: block;
        width: 100%;
    }

    body.admin-app-body .admin-table tr {
        padding: 12px;
        margin-bottom: 12px;
        background: #ffffff;
        border: 1px solid #e7e8ec;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(31, 48, 63, 0.05);
    }

    body.admin-app-body .admin-table td {
        padding: 8px 0;
        border: 0;
    }

    body.admin-app-body .admin-table td + td {
        border-top: 1px solid #eeeeee;
    }

    body.admin-app-body .table-wrap {
        overflow: visible;
    }

    body.admin-app-body .button,
    body.admin-app-body .inline-action-form,
    body.admin-app-body .inline-action-form .button {
        width: 100%;
    }

    body.admin-app-body .card-actions,
    body.admin-app-body .quick-actions,
    body.admin-app-body .table-actions {
        align-items: stretch;
    }

    body.admin-app-body .admin-action-strip .button {
        min-width: 0;
    }

    body.admin-app-body .form-actions .button {
        width: 100%;
    }
}

@media (min-width: 760px) {
    body.admin-app-body .admin-priority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-app-body .client-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-app-body .admin-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    body.admin-app-body .admin-mobile-header {
        display: none;
    }

    body.admin-app-body .admin-app-shell {
        display: grid;
        grid-template-columns: 268px minmax(0, 1fr);
    }

    body.admin-app-body .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 1;
        width: auto;
        min-height: 100vh;
        transform: none;
        box-shadow: none;
    }

    body.admin-app-body .admin-sidebar-scrim {
        display: none;
    }

    body.admin-app-body .admin-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        margin: 24px 28px 0;
        padding: 22px 24px;
    }

    body.admin-app-body .admin-content {
        padding: 24px 28px 36px;
    }

    body.admin-app-body .admin-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 28px;
    }

    body.admin-app-body .admin-dashboard-hero h2 {
        font-size: 2.15rem;
    }

    body.admin-app-body .admin-priority-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1240px) {
    body.admin-app-body .client-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.thecms-install-card {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 90;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 15px;
    width: min(380px, calc(100vw - 24px));
    padding: 17px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(241, 238, 234, 0.96)),
        var(--white);
    border: 1px solid rgba(31, 48, 63, 0.13);
    border-top: 4px solid var(--hg-accent);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(31, 48, 63, 0.18);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease;
}

.thecms-install-card[hidden] {
    display: none;
}

.thecms-install-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.thecms-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--hg-slate);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.thecms-install-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    background: var(--white);
    border: 1px solid rgba(194, 154, 96, 0.24);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(31, 48, 63, 0.12);
}

.thecms-install-icon img {
    display: block;
    width: 54px;
    height: 44px;
    object-fit: contain;
}

.thecms-install-copy {
    padding-right: 24px;
}

.thecms-install-copy h2 {
    margin: 0 0 8px;
    color: var(--hg-navy);
    font-size: 1.18rem;
}

.thecms-install-copy p {
    margin: 0;
    color: var(--hg-slate);
    font-size: 0.93rem;
}

.thecms-install-copy .eyebrow {
    margin-bottom: 6px;
    color: var(--hg-gold-dark);
}

.thecms-install-ios {
    margin-top: 10px !important;
    color: var(--hg-navy) !important;
    font-weight: 900;
}

.thecms-install-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 10px;
}

.thecms-install-actions .button {
    flex: 1;
    min-height: 44px;
}

.thecms-pwa-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10001;
    max-width: min(380px, calc(100vw - 40px));
    padding: 13px 16px;
    color: var(--white);
    background: var(--black);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.thecms-pwa-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.thecms-pwa-toast.error {
    background: var(--red);
}

.notification-optin-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(31, 48, 63, 0.95), rgba(44, 44, 50, 0.95)),
        var(--black);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(31, 48, 63, 0.18);
}

.notification-optin-card[hidden] {
    display: none;
}

.notification-optin-card h2,
.notification-optin-card p {
    margin: 0;
}

.notification-optin-card p {
    color: rgba(255, 255, 255, 0.74);
}

.notification-optin-card .button {
    width: fit-content;
    min-width: 190px;
}

.calendar-weekdays,
.calendar-session-list {
    display: grid;
    gap: 10px;
}

.calendar-weekdays {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 16px;
}

.calendar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-weight: 700;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    gap: 10px;
}

.calendar-day-cell,
.calendar-session-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
}

.calendar-day-cell {
    min-height: 88px;
    flex-direction: column;
    padding: 12px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.calendar-day-cell.is-selected {
    outline: 3px solid rgba(200, 157, 86, 0.38);
}

.calendar-session-row {
    align-items: center;
    min-height: 72px;
    padding: 14px;
}

.calendar-state-available {
    border-color: rgba(35, 134, 91, 0.32);
    background: rgba(35, 134, 91, 0.08);
}

.calendar-state-partial {
    border-color: rgba(200, 157, 86, 0.36);
    background: rgba(200, 157, 86, 0.12);
}

.calendar-state-unavailable,
.calendar-state-blocked {
    border-color: rgba(116, 123, 132, 0.28);
    background: rgba(116, 123, 132, 0.08);
}

.calendar-state-booked {
    border-color: rgba(31, 48, 63, 0.28);
    background: rgba(31, 48, 63, 0.08);
}

.calendar-state-past {
    border-color: rgba(116, 123, 132, 0.18);
    background: rgba(116, 123, 132, 0.06);
    color: rgba(44, 44, 50, 0.52);
}

.calendar-inline-message {
    min-height: 22px;
    margin-top: 12px;
}

.booking-calendar-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 18px;
    margin: 18px 0;
}

.booking-calendar-month,
.booking-calendar-panel,
.booking-client-summary {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    padding: 16px;
}

.booking-calendar-nav,
.booking-client-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.booking-calendar-nav {
    margin-bottom: 14px;
}

.booking-calendar-grid {
    grid-template-columns: repeat(7, minmax(76px, 1fr));
}

.booking-calendar-grid .calendar-day-cell {
    min-height: 78px;
}

.booking-calendar-grid span.calendar-day-cell {
    cursor: not-allowed;
}

.booking-calendar-panel h3,
.booking-client-summary p {
    margin-top: 0;
}

.booking-session-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.booking-session-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.booking-session-card input {
    margin-top: 4px;
}

.booking-session-card span {
    display: grid;
    gap: 4px;
}

.booking-session-card small {
    color: var(--muted);
}

.booking-session-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

@media (max-width: 920px) {
    .booking-calendar-shell,
    .booking-client-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .booking-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .booking-calendar-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-calendar-nav .button {
        width: 100%;
    }

    .booking-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-dialog[hidden] {
    display: none;
}

.calendar-dialog {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 20px;
    background: rgba(31, 48, 63, 0.38);
}

.calendar-dialog-panel {
    width: min(720px, 100%);
    max-height: min(820px, calc(100vh - 40px));
    overflow: auto;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 24px 80px rgba(31, 48, 63, 0.24);
}

.calendar-dialog-panel .calendar-session-row select {
    min-width: 170px;
}

.calendar-status-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.calendar-status-choice {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    cursor: pointer;
}

.calendar-status-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calendar-status-choice span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-weight: 700;
}

.calendar-status-choice input:checked + span {
    border-color: rgba(200, 157, 86, 0.52);
    background: rgba(200, 157, 86, 0.14);
    color: var(--black);
}

.calendar-status-choice input:disabled + span {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 0.9rem;
}

.stacked-action-form {
    display: grid;
    gap: 8px;
}

.button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .app-alerts-menu {
        position: fixed;
        top: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: min(72vh, 520px);
    }

    .app-alert-toast {
        top: auto;
        right: 12px;
        bottom: 16px;
        width: calc(100vw - 24px);
    }

    .app-alert-toast + .app-alert-toast {
        top: auto;
        bottom: 116px;
    }

    .notifications-page {
        padding: 16px;
    }

    .thecms-install-card {
        top: 12px;
        right: 12px;
        left: auto;
        width: min(340px, calc(100vw - 24px));
        transform: translateY(-12px) scale(0.98);
    }

    .thecms-install-card.is-visible {
        transform: translateY(0) scale(1);
    }

    .thecms-install-actions {
        flex-direction: column;
    }

    .notification-optin-card .button {
        width: 100%;
    }

    .calendar-weekdays,
    .calendar-month-grid {
        grid-template-columns: 1fr;
    }
}
