:root {
    --paper: #fffaf2;
    --surface: #ffffff;
    --ink: #232927;
    --muted: #69716d;
    --river: #0e7773;
    --river-strong: #075555;
    --sage: #b9d3bd;
    --mist: #e3f3f1;
    --copper: #c47d4d;
    --sun: #f5c76b;
    --apricot: #f6dfc7;
    --aqua: #bde8e4;
    --rose: #f2c7bc;
    --line: #e3e0d8;
    --danger: #9f3a38;
    --shadow: 0 18px 45px rgba(35, 41, 39, 0.11);
    --radius: 8px;
    --display: "Newsreader", "Iowan Old Style", Georgia, serif;
    --body: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fffaf2 0%, #f6fbf7 48%, #fffaf2 100%);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    align-items: center;
    background: rgba(255, 250, 242, 0.95);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 64px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    display: inline-flex;
    min-width: 220px;
}

.brand-logo {
    height: auto;
    max-height: 52px;
    object-fit: contain;
    width: 238px;
}

.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.site-nav a,
.logout-form button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 0;
}

.site-nav a:hover,
.logout-form button:hover {
    color: var(--river);
}

.logout-form {
    margin: 0;
}

.messages {
    padding: 16px clamp(18px, 4vw, 64px) 0;
}

.message {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--river);
    border-radius: var(--radius);
    margin: 0 0 10px;
    padding: 12px 14px;
}

.message.error {
    border-left-color: var(--danger);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    min-height: min(580px, calc(100vh - 140px));
    padding: clamp(14px, 2.2vw, 28px) clamp(18px, 3vw, 42px);
    position: relative;
}

.hero::after {
    background:
        linear-gradient(90deg, rgba(14, 119, 115, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(245, 199, 107, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    inset: auto 0 0;
    height: 130px;
    pointer-events: none;
    position: absolute;
}

.hero-copy {
    align-content: center;
    display: grid;
    padding: clamp(38px, 7vw, 86px) clamp(22px, 5vw, 76px);
    position: relative;
    z-index: 1;
}

.hero h1,
.section h2,
.profile-hero h1,
.dashboard-heading h1,
.auth-panel h1,
.kiosk-copy h1 {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 18px;
}

.hero-lede {
    color: var(--muted);
    font-size: 19px;
    max-width: 660px;
}

.eyebrow {
    color: var(--copper);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero-actions,
.card-actions,
.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--river), #15988f);
    color: #fff;
    box-shadow: 0 10px 24px rgba(14, 119, 115, 0.22);
}

.btn-primary:hover {
    background: var(--river-strong);
}

.btn-secondary {
    background: #e7f6ed;
    color: var(--river-strong);
}

.btn-ghost {
    border-color: var(--river);
    color: var(--river);
}

.btn-small {
    min-height: 36px;
    padding: 7px 12px;
}

.hero-media {
    align-items: end;
    display: flex;
    min-height: 430px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.hero-photo {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-photo img,
.rental-showcase > img,
.feature-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-photo > img {
    inset: 0;
    position: absolute;
}

.hero-photo::after {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.05), rgba(14, 119, 115, 0.28));
    content: "";
    inset: 0;
    position: absolute;
}

.glass-directory {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1px;
    max-width: 460px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.glass-directory > div {
    display: flex;
    justify-content: space-between;
    padding: 18px;
}

.glass-directory span {
    color: var(--muted);
}

.section {
    padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.trust-band {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0;
    padding-top: 0;
}

.trust-band article {
    background:
        linear-gradient(135deg, rgba(227, 243, 241, 0.74), rgba(255, 250, 242, 0.9));
    min-height: 150px;
    padding: 26px;
}

.trust-band span {
    color: var(--copper);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.trust-band strong {
    color: var(--ink);
    display: block;
    font-family: var(--display);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.08;
}

.band-muted {
    background: #f2f8f3;
}

.section-heading {
    max-width: 760px;
}

.section-heading h2,
.split-section h2,
.profile-detail h2,
.panel h2 {
    font-family: var(--display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.06;
    margin: 0 0 12px;
}

.filter-bar {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px) auto;
    margin: 28px 0;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    max-width: 600px;
}

.hero-proof span {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(35, 41, 39, 0.06);
    color: var(--muted);
    font-size: 14px;
    padding: 7px 11px;
    white-space: nowrap;
}

.hero-proof strong {
    color: var(--river);
    display: inline;
    font-family: var(--display);
    font-size: 18px;
    line-height: 1;
    margin-right: 4px;
}

.specialty-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 28px;
}

.specialty-ribbon span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(35, 41, 39, 0.05);
    color: var(--river-strong);
    font-size: 14px;
    padding: 9px 13px;
}

.field-control,
.auth-panel input {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

textarea.field-control {
    min-height: 110px;
    resize: vertical;
}

.professional-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.professional-card,
.room-tile,
.panel,
.auth-panel,
.lead-panel,
.success-panel,
.metric-grid article,
.operations-strip article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.professional-card {
    display: grid;
    gap: 16px;
    grid-template-rows: auto 1fr auto;
    min-height: 360px;
    padding: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.professional-card:hover,
.room-tile:hover {
    box-shadow: 0 18px 38px rgba(35, 41, 39, 0.1);
    transform: translateY(-3px);
}

.professional-card.compact {
    min-height: 220px;
}

.avatar-frame,
.profile-photo {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(189, 232, 228, 0.8), rgba(246, 223, 199, 0.86));
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.avatar-frame {
    aspect-ratio: 4 / 3;
}

.avatar-frame span,
.profile-photo span {
    color: var(--river);
    font-family: var(--display);
    font-size: 64px;
}

.professional-body h3,
.room-tile h3,
.operations-strip h3,
.success-panel h3 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 8px;
}

.professional-body p,
.room-tile p,
.operations-strip p,
.section-heading p,
.split-section p,
.profile-copy p,
.profile-detail p,
.kiosk-copy p,
.auth-panel p {
    color: var(--muted);
}

.meta-pill,
.status-pill,
.profile-meta span,
.specialty-list span {
    background: #eef5f3;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--river-strong);
    display: inline-flex;
    font-size: 13px;
    margin: 4px 4px 0 0;
    padding: 5px 9px;
}

.split-section {
    align-items: start;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(280px, 0.64fr) minmax(360px, 1fr);
}

.rental-showcase {
    display: grid;
    gap: 14px;
}

.rental-showcase > img,
.feature-image {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.room-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-tile {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,242,0.96));
    min-height: 190px;
    padding: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.room-tile > span,
.operations-strip span,
.metric-grid span,
.timeline-list span,
td span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.operations-strip {
    background:
        linear-gradient(135deg, var(--river-strong), var(--river) 56%, #49aa9d);
    color: #fff;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
}

.operations-strip article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    min-height: 210px;
    padding: 24px;
}

.reception-feature {
    align-items: center;
    background: #fff3df;
    display: grid;
    gap: clamp(24px, 5vw, 56px);
    grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.82fr);
}

.feature-copy h2 {
    font-family: var(--display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.06;
    margin: 0 0 14px;
}

.feature-copy p {
    color: var(--muted);
    font-size: 18px;
}

.feature-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.feature-steps span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--river-strong);
    font-weight: 700;
    padding: 9px 13px;
}

.operations-strip p,
.operations-strip span {
    color: rgba(255, 255, 255, 0.74);
}

.contact-section,
.profile-detail,
.dashboard-grid,
.kiosk-shell {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
}

.lead-panel,
.auth-panel,
.panel {
    box-shadow: var(--shadow);
    padding: 24px;
}

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

.stack-form label {
    color: var(--muted);
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}

.stack-form small {
    color: var(--muted);
    font-size: 12px;
}

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

.errorlist {
    color: var(--danger);
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.profile-hero {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    padding: clamp(42px, 8vw, 96px) clamp(18px, 6vw, 88px);
}

.profile-photo {
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.profile-meta {
    margin: 18px 0;
}

.specialty-list {
    margin-top: 20px;
}

.auth-shell,
.dashboard-shell,
.kiosk-shell {
    padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 160px);
    place-items: center;
}

.auth-panel {
    max-width: 520px;
    width: 100%;
}

.dashboard-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    margin-bottom: 24px;
}

.finance-metrics {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.metric-grid article {
    min-height: 118px;
    padding: 18px;
}

.metric-link {
    display: block;
}

.metric-grid strong {
    display: block;
    font-family: var(--display);
    font-size: 34px;
    margin-top: 12px;
}

.dashboard-grid {
    align-items: start;
    grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.7fr);
    margin-bottom: 24px;
}

.finance-workbench {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) minmax(280px, 0.8fr);
    margin-bottom: 24px;
}

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

.finance-panel-offset {
    margin-top: 24px;
}

.backoffice-shell .panel h2 {
    font-size: 26px;
}

.backoffice-section-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.management-links {
    display: grid;
    gap: 10px;
}

.management-links a {
    background: var(--mist);
    border: 1px solid #cce5df;
    border-radius: var(--radius);
    color: var(--river-strong);
    font-weight: 800;
    padding: 12px 14px;
}

.table-action {
    color: var(--river-strong);
    font-weight: 800;
}

.action-row,
.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.compact-filter {
    margin-bottom: 18px;
}

.check-label {
    align-items: flex-start;
    display: grid;
    gap: 8px;
}

.check-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 12px;
}

.check-list label {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

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

.timeline-list article {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.table-wrap {
    overflow-x: auto;
}

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

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.kiosk-shell {
    align-items: start;
}

.kiosk-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.check-label {
    align-items: center;
    display: flex !important;
    gap: 10px !important;
}

.check-control {
    height: 18px;
    width: 18px;
}

.inline-actions {
    align-items: flex-start;
    gap: 6px;
}

.inline-actions form {
    margin: 0;
}

.icon-button {
    background: #eef5f3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--river-strong);
    cursor: pointer;
    min-height: 34px;
    padding: 6px 9px;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.site-footer {
    align-items: start;
    background: var(--ink);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 32px clamp(18px, 5vw, 72px);
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    margin: 4px 0;
}

.footer-logo {
    background: #fff;
    border-radius: 6px;
    height: auto;
    margin-bottom: 12px;
    max-width: 240px;
    padding: 6px;
    width: min(240px, 100%);
}

.page-lede,
.muted-copy {
    color: var(--muted);
    margin: 4px 0 0;
}

.executive-shell,
.portal-shell,
.form-shell {
    margin: 0 auto;
    max-width: 1540px;
}

.form-shell {
    max-width: 1080px;
}

.workspace-nav {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 4px;
    margin: -4px 0 22px;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: thin;
}

.workspace-nav a {
    border-radius: 6px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 11px;
}

.workspace-nav a:hover {
    background: var(--mist);
    color: var(--river-strong);
}

.period-control {
    align-items: center;
    display: flex;
    gap: 8px;
}

.period-control .field-control {
    min-width: 170px;
}

.executive-metrics {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.executive-metrics article,
.funnel-metrics article,
.occupancy-metrics article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--sage);
    box-shadow: 0 8px 24px rgba(35, 41, 39, 0.06);
}

.metric-grid article span,
.metric-grid article small {
    color: var(--muted);
    display: block;
}

.metric-grid article small {
    font-size: 12px;
    margin-top: 4px;
}

.metric-grid .metric-feature {
    background: #e9f7f2;
    border-top-color: var(--river);
}

.metric-grid .metric-alert {
    background: #fff7e7;
    border-top-color: var(--sun);
}

.executive-layout,
.report-layout,
.portal-columns {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
    margin-bottom: 22px;
}

.panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading h2,
.report-generator h2,
.portal-section h2 {
    font-family: var(--display);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.progress-track {
    background: #e7ece9;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.progress-track span {
    background: var(--river);
    display: block;
    height: 100%;
    max-width: 100%;
}

.collection-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
}

.collection-summary span {
    border-left: 2px solid var(--sage);
    display: grid;
    gap: 4px;
    padding-left: 12px;
}

.collection-summary small,
.ranking-list span,
.portal-list small {
    color: var(--muted);
}

.ranking-list,
.report-list,
.portal-list {
    display: grid;
}

.ranking-list div,
.report-list > div,
.portal-list > div {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px 0;
}

.ranking-list div:last-child,
.report-list > div:last-child,
.portal-list > div:last-child {
    border-bottom: 0;
}

.report-list span,
.portal-list span:first-child {
    display: grid;
}

.status-pill {
    background: #edf1ef;
    border-radius: 999px;
    color: #4f5b56;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
    white-space: nowrap;
}

.status-paid,
.status-approved,
.status-resolved,
.status-closed,
.status-appointment_booked,
.status-rental_won {
    background: #dff2e7;
    color: #1c6a47;
}

.status-overdue,
.status-rejected,
.status-expired,
.status-urgent,
.priority-urgent {
    background: #f8dfdc;
    color: #983a37;
}

.status-partial,
.status-due_soon,
.status-pending,
.status-pending_review,
.status-waiting_provider,
.priority-high {
    background: #fff0ca;
    color: #805b08;
}

.status-open,
.status-new,
.status-assigned,
.status-in_progress,
.status-contacted,
.status-follow_up,
.status-announcement,
.status-rules,
.status-payment,
.status-maintenance,
.priority-medium {
    background: #dff0f3;
    color: #14616b;
}

.priority-low {
    background: #edf1ef;
    color: #4f5b56;
}

.billing-queue {
    background: #fffdf8;
}

.queue-count {
    background: var(--ink);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
}

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

.billing-list article {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--sun);
    border-radius: var(--radius);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 1.4fr) auto;
    padding: 18px;
}

.billing-person h3,
.room-status h3,
.notice-item h2,
.portal-actions strong,
.statement-grid h3,
.portal-notices h3 {
    margin: 8px 0 2px;
}

.billing-person p,
.billing-message,
.room-status p,
.notice-item p,
.statement-grid p,
.portal-notices p {
    color: var(--muted);
    margin: 0;
}

.billing-actions {
    min-width: 220px;
}

.btn-whatsapp {
    background: #197b5b;
    color: #fff;
}

.sent-note {
    color: var(--muted);
    font-size: 12px;
}

.report-layout {
    grid-template-columns: minmax(320px, 0.8fr) minmax(380px, 1.2fr);
}

.report-generator {
    background: #eaf6f2;
    border-top: 4px solid var(--river);
}

.report-generator .stack-form {
    margin-top: 20px;
}

.report-ready {
    background: #fff;
    border: 1px solid #b8d9cc;
    border-radius: var(--radius);
    color: var(--river-strong);
    display: block;
    font-weight: 800;
    margin-top: 16px;
    padding: 13px;
}

.danger-copy {
    color: var(--danger);
}

.warning-copy {
    color: #8a6200;
}

.notice-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-item {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--aqua);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(35, 41, 39, 0.06);
    display: grid;
    gap: 12px;
    padding: 20px;
}

.notice-item h2 {
    font-family: var(--display);
    font-size: 24px;
}

.notice-item small {
    color: var(--muted);
}

.funnel-metrics,
.occupancy-metrics {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.funnel-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.occupancy-board {
    display: grid;
    gap: 30px;
}

.room-status-grid,
.statement-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-status,
.statement-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    min-height: 190px;
    padding: 20px;
}

.room-status.occupied {
    border-top: 4px solid var(--river);
}

.room-status.available {
    background: #fff9eb;
    border-top: 4px solid var(--sun);
}

.room-status > span {
    color: var(--river);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.room-status strong {
    align-self: end;
    margin-top: 18px;
}

.room-status small {
    color: var(--muted);
    margin-top: 4px;
}

.portal-shell {
    max-width: 1380px;
}

.portal-welcome {
    align-items: center;
    background: #e9f7f2;
    border-bottom: 1px solid #c8e0d7;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin: -30px -30px 24px;
    padding: 36px 30px;
}

.portal-welcome h1 {
    font-family: var(--display);
    font-size: 42px;
    line-height: 1.05;
    margin: 0 0 8px;
}

.portal-welcome p {
    color: var(--muted);
    margin: 0;
}

.portal-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 28px;
}

.portal-actions a {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--sun);
    border-radius: var(--radius);
    display: grid;
    gap: 4px;
    min-height: 108px;
    padding: 18px;
}

.portal-actions a:hover {
    border-color: var(--river);
    transform: translateY(-2px);
}

.portal-actions span {
    color: var(--muted);
    font-size: 13px;
}

.portal-section {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 22px;
    padding: 24px;
}

.statement-grid article {
    grid-template-columns: 1fr 1fr;
}

.statement-grid dl {
    margin: 0;
}

.statement-grid dl div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 5px 0;
}

.statement-grid dt {
    color: var(--muted);
}

.statement-grid dd {
    font-weight: 800;
    margin: 0;
}

.statement-grid .balance-line {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 10px;
}

.notice-band {
    background: #fff8e9;
    border-color: #ead6a7;
}

.portal-notices {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-notices article {
    border-left: 3px solid var(--sun);
    padding-left: 14px;
}

.portal-notices span {
    color: #8a6200;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

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

.portal-form-shell .panel {
    border-top: 4px solid var(--river);
}

.access-public {
    background: #f5fafb;
    min-height: 100vh;
}

.access-brand {
    border-bottom: 1px solid #dce6e8;
    padding: 24px;
    background: #fff;
}

.access-brand img { width: 240px; margin: 0 auto; }
.access-main { max-width: 640px; margin: auto; padding: 36px 24px 64px; }
.arrival-flow h1 { font-size: 38px; line-height: 1.15; margin: 12px 0 22px; }
.access-step { color: #306a80; font-size: 14px; font-weight: 700; }
.arrival-form { margin-top: 28px; gap: 20px; }
.arrival-field { display: grid; gap: 8px; }
.arrival-field label { font-size: 15px; font-weight: 600; }
.arrival-field .field-control { width: 100%; min-height: 52px; background: #fff; }
.arrival-form .btn { min-height: 52px; width: 100%; }
.arrival-form .check-label { flex-direction: row-reverse; justify-content: flex-end; }
.arrival-form .check-control { flex: 0 0 20px; }
.access-link { display: inline-block; font-size: 14px; color: #12665f; text-decoration: underline; text-underline-offset: 4px; }
.access-link:hover { color: #254fa0; }
.arrival-destination { padding: 14px 0; border-bottom: 1px solid #dce6e8; }
.access-error { color: #902c33; background: #ffebed; padding: 16px; border-left: 3px solid #b13e4b; }
.tracking-code { display: block; font-size: 28px; margin: 24px 0; }
.tracking-folio { display: flex; gap: 20px; justify-content: space-between; padding: 20px 0; border-block: 1px solid #dce6e8; margin: 28px 0; }
.tracking-status { display: inline-block; padding: 6px 10px; background: #dfedf5; color: #275674; border-radius: 4px; }
.arrival-directions { border-left: 3px solid #17776c; padding: 0 0 0 20px; }
.arrival-directions h2 { font-size: 24px; }
.access-privacy a { text-decoration: underline; }
.access-dashboard { background: #f8fafb; }
.access-dashboard h1 { font-size: 36px; }
.access-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 32px; padding-block: 20px; border-block: 1px solid #dce6e8; }
.access-metrics span { color: #627076; display: block; font-size: 14px; }
.access-metrics strong { font-size: 32px; font-weight: 600; }
.access-metrics small { font-size: 16px; font-weight: 400; }
.access-queues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.access-queue { min-width: 0; }
.access-queue > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #92b5c6; padding: 0 0 10px; margin-bottom: 16px; }
.access-queue h2 { font: 600 17px var(--body); margin: 0; }
.access-queue > header > span { min-width: 28px; text-align: center; background: #e7eef1; border-radius: 4px; }
.queue-registered > header { border-color: #d5a449; }
.queue-ready > header { border-color: #0e8474; }
.queue-in_consultation > header { border-color: #638ab0; }
.queue-checked_out > header { border-color: #aaa9a4; }
.queue-items { display: grid; gap: 12px; }
.arrival-card { background: #fff; border: 1px solid #dce6e8; border-radius: 6px; padding: 18px; }
.arrival-card-top, .arrival-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #63747e; font-size: 12px; }
.arrival-card h3 { font: 600 18px var(--body); margin: 12px 0 4px; overflow-wrap: anywhere; }
.arrival-card p { font-size: 14px; margin: 0 0 12px; color: #526367; }
.arrival-card .btn { width: 100%; min-height: 44px; font-size: 14px; margin-top: 12px; }
.arrival-card .access-link { margin-top: 14px; }
.queue-empty { color: #718084; font-size: 14px; padding: 10px 0; }
.assisted-form { max-width: 820px; }
.assisted-form .field-control { width: 100%; }
.access-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.access-detail-grid h2 { font-size: 24px; }
.access-events { list-style: none; padding: 0; }
.access-events li { display: grid; gap: 4px; padding: 16px 0 16px 18px; border-left: 2px solid #a5c6cd; border-bottom: 1px solid #dce6e8; }
.access-events time, .access-events small { font-size: 13px; color: #627076; }
.qr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.qr-card { border: 1px solid #dce6e8; border-radius: 6px; padding: 24px; background: #fff; text-align: center; }
.qr-card img { margin: 18px auto; object-fit: contain; }
.qr-card h2 { font: 600 19px var(--body); }
.qr-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
@media (min-width: 1700px) { .access-queues { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .access-queues, .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-detail-grid { grid-template-columns: 1fr; }
    .access-metrics { gap: 12px; }
}
@media (max-width: 600px) {
    .access-main { padding-top: 24px; }
    .arrival-flow h1 { font-size: 30px; }
    .access-queues, .qr-grid { grid-template-columns: 1fr; }
    .access-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-dashboard .dashboard-heading { align-items: flex-start; }
    .access-dashboard .action-row { justify-content: flex-start; }
    .access-dashboard .btn { white-space: normal; }
}
@media print {
    .qr-center .dashboard-heading, .qr-center .qr-actions, body:has(.qr-center) .site-header, body:has(.qr-center) .site-footer { display: none; }
    .qr-center { padding: 0; }
    .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qr-card { break-inside: avoid; }
}

.inventory-metrics {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.inventory-actions {
    align-items: center;
    flex-wrap: nowrap;
}

.action-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

@media (max-width: 980px) {
    .hero,
    .split-section,
    .contact-section,
    .profile-hero,
    .profile-detail,
    .dashboard-grid,
    .finance-workbench,
    .kiosk-shell,
    .reception-feature {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        min-height: 380px;
    }

    .filter-bar,
    .metric-grid,
    .finance-metrics,
    .hero-proof {
        grid-template-columns: 1fr 1fr;
    }

    .operations-strip {
        grid-template-columns: 1fr;
    }

    .trust-band {
        grid-template-columns: 1fr;
    }

    .backoffice-section-grid {
        grid-template-columns: 1fr;
    }

    .executive-metrics,
    .funnel-metrics,
    .occupancy-metrics,
    .inventory-metrics,
    .portal-actions,
    .room-status-grid,
    .portal-columns,
    .notice-grid,
    .funnel-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .executive-layout,
    .report-layout,
    .billing-list article,
    .statement-grid {
        grid-template-columns: 1fr;
    }

    .portal-notices {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header,
    .site-footer,
    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        max-height: 44px;
        width: min(220px, 72vw);
    }

    .hero h1,
    .section h2,
    .profile-hero h1,
    .dashboard-heading h1,
    .auth-panel h1,
    .kiosk-copy h1 {
        font-size: 38px;
    }

    .section-heading h2,
    .split-section h2,
    .profile-detail h2,
    .panel h2 {
        font-size: 30px;
    }

    .filter-bar,
    .room-grid,
    .form-grid,
    .compact-form-grid,
    .metric-grid,
    .hero-proof {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 300px;
        padding: 18px;
    }

    .feature-copy h2 {
        font-size: 30px;
    }

    .period-control,
    .portal-welcome {
        align-items: stretch;
        flex-direction: column;
    }

    .executive-metrics,
    .funnel-metrics,
    .occupancy-metrics,
    .inventory-metrics,
    .portal-actions,
    .room-status-grid,
    .portal-columns,
    .notice-grid,
    .collection-summary {
        grid-template-columns: 1fr;
    }

    .portal-welcome {
        margin: -18px -18px 22px;
        padding: 28px 18px;
    }

    .portal-welcome h1 {
        font-size: 36px;
    }
}
