:root {
    --hz-body-bg: #f3f4f9;
    --hz-body-bg-2: #edf0f7;
    --hz-card-bg: #ffffff;
    --hz-card-muted: #f8fafd;
    --hz-sidebar: #ffffff;
    --hz-sidebar-2: #ffffff;
    --hz-sidebar-active: #0d6efd;
    --hz-primary: #0d6efd;
    --hz-primary-dark: #0a58ca;
    --hz-primary-soft: #e7f0ff;
    --hz-success: #16a34a;
    --hz-success-soft: #e8f8ef;
    --hz-danger: #dc3545;
    --hz-danger-soft: #fdecef;
    --hz-warning: #f59e0b;
    --hz-warning-soft: #fff6df;
    --hz-info: #0891b2;
    --hz-info-soft: #e4f7fb;
    --hz-text: #1f2937;
    --hz-heading: #111827;
    --hz-muted: #6b7280;
    --hz-line: #e4e7ec;
    --hz-line-strong: #d6dce6;
    --hz-shadow: 0 10px 30px rgba(20, 27, 45, 0.08);
    --hz-shadow-soft: 0 4px 16px rgba(20, 27, 45, 0.05);
    --hz-radius-lg: 18px;
    --hz-radius-md: 14px;
    --hz-radius-sm: 10px;
    --hz-sidebar-width: 240px;
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--hz-text);
    background: var(--hz-body-bg);
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0) 260px),
        linear-gradient(135deg, var(--hz-body-bg) 0%, var(--hz-body-bg-2) 100%);
}

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

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

label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--hz-heading);
    font-size: 0.86rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--hz-line);
    border-radius: 5px;
    background: #fff;
    color: var(--hz-heading);
    padding: 0.66rem 0.78rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: rgba(51, 92, 255, 0.75);
    box-shadow: 0 0 0 0.22rem rgba(51, 92, 255, 0.13);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--hz-line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: #677083;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    font-size: 0.91rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: #fbfcff;
}

.guest-body,
.panel-body {
    min-height: 100vh;
}

.panel-shell {
    display: grid;
    grid-template-columns: var(--hz-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.panel-body.is-sidebar-collapsed .panel-shell {
    grid-template-columns: 1fr;
}

.panel-body.is-sidebar-collapsed .sidebar {
    display: none;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0;
    overflow: auto;
    background: var(--hz-sidebar);
    color: #475569;
    box-shadow: inset -1px 0 0 var(--hz-line);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 74px;
    padding: 0 1.35rem;
    border-bottom: 1px solid var(--hz-line);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, #56a8ff, #0d6efd);
    box-shadow: none;
}

.brand-mark i {
    font-size: 1.45rem;
}

.brand-block h1,
.topbar h2,
.section-head h3,
.hero-card h3,
.cycle-card-head h4 {
    margin: 0;
    color: var(--hz-heading);
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-block h1 {
    color: #6fb1f5;
    font-size: 0.98rem;
}

.brand-block span {
    display: block;
    margin-top: 0.08rem;
    color: var(--hz-heading);
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 0.32rem;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    opacity: 0.7;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    gap: 0.08rem;
    padding: 0.75rem 0 1.2rem;
}

.nav-section-label {
    margin: 0.95rem 1.38rem 0.4rem;
    color: #111827;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    min-height: 42px;
    margin: 0 1rem;
    padding: 0.66rem 0.45rem;
    border-radius: 0;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-nav a i {
    width: 18px;
    color: #65758b;
    font-size: 1.05rem;
}

.side-nav a:hover,
.side-nav a.is-active {
    color: var(--hz-primary);
    background: transparent;
    transform: translateX(2px);
    box-shadow: inset 2px 0 0 var(--hz-primary);
}

.side-nav a:hover i,
.side-nav a.is-active i {
    color: var(--hz-primary);
}

.panel-main {
    min-width: 0;
    padding: 0 1rem 1.2rem;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 74px;
    margin: 0 -1rem;
    padding: 0.8rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--hz-line);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(20, 27, 45, 0.06);
    backdrop-filter: none;
}

.topbar h2 {
    font-size: 1.22rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--hz-line);
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    color: #475569;
    background: #fff;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    color: var(--hz-primary);
    border-color: rgba(13, 110, 253, 0.35);
    background: var(--hz-primary-soft);
    outline: 0;
}

.icon-button i {
    font-size: 1.12rem;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: min(310px, 34vw);
    min-height: 40px;
    padding: 0 0.85rem;
    border: 1px solid var(--hz-line);
    border-radius: 5px;
    color: var(--hz-muted);
    background: #fff;
}

.header-search input {
    min-width: 0;
    border: 0;
    padding: 0;
    color: var(--hz-heading);
    background: transparent;
    box-shadow: none;
}

.header-search input:focus {
    border-color: transparent;
    box-shadow: none;
}

.header-search input::placeholder {
    color: var(--hz-muted);
    opacity: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.65rem;
    min-width: 190px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--hz-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--hz-shadow-soft);
}

.user-chip > span:not(.user-avatar) {
    overflow: hidden;
    color: var(--hz-heading);
    font-size: 0.88rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip small {
    grid-column: 2;
    color: var(--hz-muted);
    font-size: 0.72rem;
    line-height: 1.1;
}

.user-avatar {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #335cff, #0891b2);
    font-weight: 900;
}

.panel-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding-top: 1.1rem;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.page-title-row h2 {
    margin: 0;
    color: var(--hz-heading);
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
}

.breadcrumb-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.28rem;
    color: var(--hz-muted);
    font-size: 0.9rem;
}

.breadcrumb-line a {
    color: var(--hz-heading);
}

.herozi-project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 1.05rem;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--hz-shadow-soft);
}

.project-identity,
.project-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.project-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--hz-primary);
    background: var(--hz-primary-soft);
    font-size: 1.55rem;
}

.project-identity h3 {
    margin: 0;
    color: var(--hz-heading);
    font-size: 1.05rem;
}

.project-identity p {
    margin: 0.22rem 0 0;
    color: var(--hz-muted);
    font-size: 0.86rem;
}

.project-progress {
    width: 150px;
    height: 5px;
    margin-top: 0.38rem;
    border-radius: 999px;
    background: #e9edf5;
}

.project-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--hz-primary);
}

.hero-card,
.section-block,
.metric-card,
.login-card,
.receipt-public-card,
.error-card,
.operations-alert-card {
    border: 0;
    border-radius: 4px;
    background: var(--hz-card-bg);
    box-shadow: var(--hz-shadow-soft);
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.dashboard-hero {
    background:
        linear-gradient(90deg, rgba(13, 110, 253, 0.08), rgba(8, 145, 178, 0.03) 42%, transparent),
        #fff;
}

.login-hero::before,
.receipt-public-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(51, 92, 255, 0.1), transparent 48%),
        repeating-linear-gradient(135deg, rgba(51, 92, 255, 0.045) 0 1px, transparent 1px 14px);
    pointer-events: none;
}

.hero-card > *,
.login-hero > *,
.receipt-public-hero > * {
    position: relative;
}

.hero-card h3 {
    max-width: 780px;
    font-size: 1.08rem;
}

.hero-card p:not(.eyebrow) {
    max-width: 850px;
    margin: 0.32rem 0 0;
    color: var(--hz-muted);
    line-height: 1.55;
}

.hero-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: fit-content;
}

.section-block,
.metric-card {
    min-width: 0;
    padding: 1rem;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.section-head h3 {
    font-size: 1.05rem;
}

.kanban-shell {
    min-width: 0;
    overflow: hidden;
}

.kanban-shell .section-head {
    margin-bottom: 0.75rem;
}

.pipeline-list {
    display: grid;
    gap: 0.75rem;
}

.pipeline-row {
    border: 1px solid var(--hz-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 27, 45, 0.07);
}

.pipeline-row[open] {
    box-shadow: 0 8px 24px rgba(20, 27, 45, 0.1);
}

.pipeline-row-summary {
    display: grid;
    grid-template-columns: 26px 50px minmax(170px, 1fr) minmax(260px, 0.75fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 64px;
    padding: 0.72rem 1rem;
    cursor: pointer;
    list-style: none;
}

.pipeline-row-summary::-webkit-details-marker {
    display: none;
}

.pipeline-row[open] .pipeline-row-summary {
    border-bottom: 1px solid var(--hz-line);
    background: #fbfcff;
}

.pipeline-chevron {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    color: var(--hz-muted);
    transition: transform 0.18s ease;
}

.pipeline-row[open] .pipeline-chevron {
    transform: rotate(90deg);
}

.pipeline-id {
    color: var(--hz-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.pipeline-patient {
    min-width: 0;
    color: var(--hz-heading);
    font-size: 1rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pipeline-stepper {
    display: grid;
    grid-template-columns: repeat(10, minmax(12px, 1fr));
    align-items: center;
    gap: 0;
    min-width: 0;
}

.pipeline-step {
    position: relative;
    height: 18px;
    display: grid;
    place-items: center;
}

.pipeline-step::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #d9dee7;
    transform: translateY(-50%);
}

.pipeline-step:first-child::before {
    left: 50%;
}

.pipeline-step:last-child::before {
    right: 50%;
}

.pipeline-step::after {
    content: "";
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c2c7d0;
    box-shadow: 0 0 0 3px #fff;
}

.pipeline-step.is-complete::before,
.pipeline-step.is-complete::after {
    background: #9ccc65;
}

.pipeline-step.is-current::after {
    background: #f5b447;
}

.pipeline-step.is-current::before {
    background: linear-gradient(90deg, #9ccc65 0%, #9ccc65 50%, #d9dee7 50%, #d9dee7 100%);
}

.pipeline-row-panel {
    padding: 1rem;
}

.pipeline-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.pipeline-detail-grid section {
    min-width: 0;
}

.pipeline-detail-grid h4 {
    margin: 0 0 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--hz-line);
    color: var(--hz-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.pipeline-detail-grid dl {
    display: grid;
    gap: 0.72rem;
    margin: 0;
}

.pipeline-detail-grid dt {
    color: var(--hz-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.pipeline-detail-grid dd {
    margin: 0.12rem 0 0;
    color: var(--hz-heading);
    font-size: 0.98rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pipeline-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hz-line);
}

.pipeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.85rem;
    color: var(--hz-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.pipeline-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #c2c7d0;
}

.legend-dot.is-complete {
    background: #9ccc65;
}

.legend-dot.is-current {
    background: #f5b447;
}

.pipeline-empty {
    display: grid;
    place-items: center;
    gap: 0.4rem;
    min-height: 160px;
    border: 1px dashed var(--hz-line-strong);
    border-radius: 6px;
    color: var(--hz-muted);
    background: #fff;
    text-align: center;
}

.pipeline-empty i {
    color: var(--hz-primary);
    font-size: 1.8rem;
}

.muted-copy,
.status-caption,
.metric-card span,
.detail-stack span {
    color: var(--hz-muted);
}

.grid-cards,
.form-grid,
.split-layout {
    display: grid;
    gap: 1rem;
}

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

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.action-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.82rem;
    row-gap: 0.18rem;
    min-height: 104px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--hz-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.action-tile:hover,
.action-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--hz-shadow);
    outline: 0;
}

.action-tile::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hz-primary), var(--hz-info));
}

.action-tile-icon,
.metric-icon,
.settings-section-icon,
.operations-alert-icon {
    display: grid;
    place-items: center;
    color: var(--hz-primary);
    background: var(--hz-primary-soft);
}

.action-tile-icon {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.35rem;
}

.action-tile-icon.is-warning {
    color: #9a6200;
    background: var(--hz-warning-soft);
}

.action-tile-icon.is-info {
    color: #04748d;
    background: var(--hz-info-soft);
}

.action-tile strong {
    color: var(--hz-heading);
    font-size: 1.02rem;
}

.action-tile small {
    color: var(--hz-muted);
    line-height: 1.45;
}

.split-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

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

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 1rem;
}

.metric-card {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    position: relative;
}

.metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    margin-bottom: 0.12rem;
    font-size: 1.05rem;
}

.metric-label {
    margin: 0;
    color: var(--hz-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.metric-value {
    color: var(--hz-heading);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.05;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0.58rem 0.85rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--hz-primary);
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.18);
}

.button-secondary {
    color: var(--hz-heading);
    background: #fff;
    border-color: var(--hz-line);
    box-shadow: none;
}

.button-secondary:hover {
    border-color: rgba(51, 92, 255, 0.35);
    color: var(--hz-primary);
}

.button.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.stack-lg {
    display: grid;
    gap: 1rem;
}

.stack-tight {
    display: grid;
    gap: 0.32rem;
}

.align-end {
    justify-items: end;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.checkbox-line input {
    width: auto;
}

.status-badge,
.analytics-variation {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.28rem 0.5rem;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: normal;
}

.status-ok,
.analytics-variation.is-positive {
    color: #0f7a39;
    background: var(--hz-success-soft);
    border-color: rgba(22, 163, 74, 0.18);
}

.status-danger,
.analytics-variation.is-negative {
    color: #b42335;
    background: var(--hz-danger-soft);
    border-color: rgba(220, 53, 69, 0.18);
}

.status-info {
    color: #04748d;
    background: var(--hz-info-soft);
    border-color: rgba(8, 145, 178, 0.18);
}

.status-warning {
    color: #9a6200;
    background: var(--hz-warning-soft);
    border-color: rgba(245, 158, 11, 0.22);
}

.status-neutral {
    color: #526174;
    background: #f1f4f8;
    border-color: var(--hz-line);
}

.alert,
.public-status-card,
.inline-alert {
    border: 1px solid var(--hz-line);
    border-radius: 5px;
    padding: 0.75rem 0.9rem;
    line-height: 1.45;
}

.alert-success,
.public-status-ok {
    color: #0f7a39;
    background: var(--hz-success-soft);
    border-color: rgba(22, 163, 74, 0.18);
}

.alert-danger,
.public-status-danger {
    color: #b42335;
    background: var(--hz-danger-soft);
    border-color: rgba(220, 53, 69, 0.18);
}

.public-status-warning,
.inline-alert {
    color: #8a5b00;
    background: var(--hz-warning-soft);
    border-color: rgba(245, 158, 11, 0.22);
}

.public-status-info {
    color: #04748d;
    background: var(--hz-info-soft);
}

.public-status-neutral {
    color: #526174;
    background: #f1f4f8;
}

.error-list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
}

.table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--hz-line);
    border-radius: 4px;
    background: #fff;
}

.table-wrap table {
    min-width: 760px;
}

.mobile-card-table {
    position: relative;
}

.table-actions {
    text-align: right;
    white-space: nowrap;
}

.operations-alert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.operations-alert-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.72rem;
    row-gap: 0.08rem;
    align-items: center;
    padding: 0.88rem 0.95rem;
}

.operations-alert-card strong {
    display: block;
    margin-top: 0.08rem;
    color: var(--hz-heading);
    font-size: 1.45rem;
}

.operations-alert-card .eyebrow,
.operations-alert-card strong,
.operations-alert-card small {
    grid-column: 2;
}

.operations-alert-card small {
    color: var(--hz-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.operations-alert-icon {
    grid-row: 1 / span 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.operations-alert-warning {
    background: linear-gradient(135deg, #fff, var(--hz-warning-soft));
}

.operations-alert-info {
    background: linear-gradient(135deg, #fff, var(--hz-info-soft));
}

.operations-alert-danger {
    background: linear-gradient(135deg, #fff, var(--hz-danger-soft));
}

.operations-alert-neutral {
    background: linear-gradient(135deg, #fff, #f1f4f8);
}

.operations-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.operations-filter-actions {
    display: flex;
    align-items: end;
}

.kanban-board {
    display: grid;
    align-items: start;
    grid-auto-flow: column;
    grid-auto-columns: 288px;
    gap: 0.75rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 0.1rem 0.1rem 0.6rem;
}

.kanban-column {
    min-width: 288px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.kanban-column-head,
.cycle-card-head,
.timeline-item-head,
.pagination-shell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.kanban-column-head {
    align-items: center;
    min-height: 30px;
    margin-bottom: 0.75rem;
    padding: 0 0.05rem;
}

.kanban-column-head h4 {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    color: var(--hz-heading);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.kanban-column-head h4::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.kanban-column-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    margin-top: 0.2rem;
    border-radius: 4px;
    color: #16a34a;
    background: var(--hz-success-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.kanban-more {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: var(--hz-heading);
    background: #edf1f7;
}

.kanban-stack,
.timeline-stack {
    display: grid;
    gap: 0.75rem;
}

.cycle-card,
.timeline-item,
.reactivation-card,
.receipt-file-card,
.receipt-summary-card {
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 27, 45, 0.08);
}

.cycle-card {
    display: grid;
    gap: 0.72rem;
    padding: 1rem;
}

.cycle-card-head h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.cycle-card-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.cycle-card-grid {
    font-size: 0.82rem;
}

.cycle-card-grid strong,
.detail-grid strong,
.timeline-item-body strong,
.timeline-item-body span:first-child {
    display: block;
    margin-bottom: 0.16rem;
    color: var(--hz-heading);
    font-size: 0.78rem;
    font-weight: 800;
}

.cycle-card-grid span,
.detail-grid span,
.timeline-item-body {
    color: var(--hz-muted);
}

.cycle-card-span,
.detail-span-full {
    grid-column: 1 / -1;
}

.operations-detail-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: start;
}

.detail-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hz-line);
}

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

.timeline-item,
.receipt-file-card,
.reactivation-card,
.receipt-summary-card {
    padding: 0.95rem;
}

.timeline-item-head span {
    color: var(--hz-muted);
    font-size: 0.82rem;
}

.timeline-item-body {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.68rem;
}

.timeline-context {
    margin-top: 0.78rem;
}

.timeline-context pre,
.json-preview {
    max-width: 100%;
    margin: 0.75rem 0 0;
    overflow: auto;
    border-radius: 5px;
    background: #111827;
    color: #dbeafe;
    padding: 0.9rem;
    font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.45;
}

.json-preview.small {
    max-height: 220px;
}

.hash-preview {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
    font-size: 0.76rem;
}

.analytics-kpi {
    min-height: 160px;
    overflow: hidden;
}

.analytics-kpi::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.9), rgba(8, 145, 178, 0.8));
}

.chart-panel {
    overflow: hidden;
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    color: var(--hz-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot.is-info {
    background: var(--hz-info);
}

.legend-dot.is-primary {
    background: var(--hz-primary);
}

.analytics-list {
    display: grid;
    gap: 0.72rem;
}

.analytics-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--hz-line);
    border-radius: 4px;
    background: #fbfcff;
    padding: 0.78rem 0.9rem;
}

.analytics-series {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    align-items: end;
    gap: 0.55rem;
    min-height: 220px;
    border-top: 1px solid var(--hz-line);
    padding-top: 1.2rem;
}

.analytics-series-day {
    display: grid;
    align-items: end;
    gap: 0.38rem;
    min-width: 0;
    height: 180px;
}

.analytics-series-day small {
    overflow: hidden;
    color: var(--hz-muted);
    font-size: 0.7rem;
    text-align: center;
    text-overflow: ellipsis;
}

.analytics-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
    height: 145px;
    border-bottom: 1px solid var(--hz-line);
    background:
        linear-gradient(180deg, transparent 0 24%, rgba(228, 231, 236, 0.55) 24% 25%, transparent 25% 49%, rgba(228, 231, 236, 0.55) 49% 50%, transparent 50% 74%, rgba(228, 231, 236, 0.55) 74% 75%, transparent 75%);
}

.analytics-bar {
    width: 9px;
    min-height: 4px;
    border-radius: 999px 999px 0 0;
}

.analytics-bar.requests {
    background: var(--hz-info);
}

.analytics-bar.confirmed {
    background: var(--hz-primary);
}

.login-shell,
.receipt-public-shell,
.error-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    min-height: 100vh;
    gap: 1.2rem;
    padding: 1.2rem;
}

.error-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-hero,
.receipt-public-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(22, 28, 45, 0.9), rgba(51, 92, 255, 0.78)),
        linear-gradient(135deg, #161c2d, #335cff);
    box-shadow: var(--hz-shadow);
}

.receipt-public-hero {
    background:
        linear-gradient(135deg, rgba(22, 28, 45, 0.92), rgba(8, 145, 178, 0.76)),
        linear-gradient(135deg, #161c2d, #0891b2);
}

.login-hero h1,
.receipt-public-hero h1,
.error-card h1 {
    margin: 0 0 0.9rem;
    max-width: 760px;
    color: #fff;
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
    font-size: clamp(2rem, 4.3vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.03;
}

.login-hero p,
.receipt-public-hero p {
    max-width: 670px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.hero-points article {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.9rem;
}

.hero-points strong {
    display: block;
    margin-bottom: 0.22rem;
    color: #fff;
}

.hero-points span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.4;
}

.login-card,
.receipt-public-card,
.error-card {
    align-self: center;
    padding: clamp(1rem, 3vw, 1.6rem);
}

.receipt-public-card {
    align-self: start;
    margin-block: auto;
}

.login-shell-herozi {
    position: relative;
    grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 0.98fr);
    align-items: stretch;
    justify-content: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(1rem, 5vh, 3.8rem) 1.2rem;
}

.login-shell-herozi::before,
.login-shell-herozi::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.035);
    pointer-events: none;
}

.login-shell-herozi::before {
    width: 290px;
    height: 290px;
    left: -90px;
    top: -80px;
}

.login-shell-herozi::after {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -130px;
}

.login-hero-visual {
    min-height: 620px;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.02)),
        #fff;
    color: var(--hz-heading);
}

.login-visual-image {
    width: min(92%, 520px);
    max-height: 390px;
    object-fit: contain;
    margin: auto;
    filter: drop-shadow(0 18px 36px rgba(20, 27, 45, 0.12));
}

.login-visual-copy {
    width: min(92%, 520px);
    margin: 0 auto;
    padding: 1rem 0 0;
    border-top: 1px solid var(--hz-line);
    text-align: center;
}

.login-visual-copy h1 {
    margin: 0;
    color: var(--hz-heading);
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    line-height: 1.12;
}

.login-visual-copy p {
    margin: 0.6rem auto 0;
    max-width: 500px;
    color: var(--hz-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.login-shell-herozi .login-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 4px;
    padding: clamp(1.25rem, 4vw, 4rem);
}

.auth-card-head {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-card-head h2 {
    margin: 0;
    color: var(--hz-heading);
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 500;
}

.auth-card-head h2 span {
    color: var(--hz-primary);
    font-weight: 800;
}

.auth-card-head p:not(.eyebrow) {
    margin: 0.55rem auto 0;
    max-width: 430px;
    color: var(--hz-muted);
    line-height: 1.45;
}

.auth-footnote {
    margin: 1.5rem 0 0;
    color: var(--hz-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.login-hero-visual .guest-brand {
    align-self: flex-start;
    margin-bottom: 1rem;
    color: var(--hz-heading);
}

.login-hero-visual .guest-brand-name small {
    color: var(--hz-muted);
}

.public-status-card {
    margin-bottom: 1rem;
}

.file-dropzone {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    margin: 0;
    border: 1px dashed var(--hz-line-strong);
    border-radius: 6px;
    background: #fbfcff;
    padding: 1.15rem 1rem;
    color: var(--hz-muted);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.file-dropzone:hover,
.file-dropzone:focus-within,
.file-dropzone.has-files {
    border-color: rgba(13, 110, 253, 0.42);
    background: var(--hz-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.06);
}

.file-dropzone-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--hz-primary);
    background: #fff;
    box-shadow: var(--hz-shadow-soft);
}

.file-dropzone-icon i {
    font-size: 1.35rem;
}

.file-dropzone strong {
    color: var(--hz-heading);
    font-size: 0.95rem;
}

.file-dropzone span:not(.file-dropzone-icon) {
    max-width: 32rem;
    color: var(--hz-muted);
    font-size: 0.84rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.file-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.result-message {
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    font-weight: 800;
}

.json-input {
    min-height: 420px;
    font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
    font-size: 0.82rem;
}

.settings-section {
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--hz-shadow-soft);
    padding: 1rem;
}

.settings-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--hz-line);
}

.settings-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.settings-section-icon.is-warning {
    color: #9a6200;
    background: var(--hz-warning-soft);
}

.settings-section-icon.is-info {
    color: #04748d;
    background: var(--hz-info-soft);
}

.settings-section-icon.is-success {
    color: #0f7a39;
    background: var(--hz-success-soft);
}

.settings-section-tag {
    margin: 0 0 0.22rem;
    color: var(--hz-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.settings-section h4 {
    margin: 0;
    color: var(--hz-heading);
    font-size: 1.02rem;
}

.settings-section-head span:not(.settings-section-icon) {
    display: block;
    margin-top: 0.22rem;
    color: var(--hz-muted);
    line-height: 1.45;
}

@media (max-width: 1240px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 1040px) {
    .panel-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 60;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(82vw, 300px);
        border-radius: 0;
        background: var(--hz-sidebar);
        box-shadow: 8px 0 24px rgba(20, 27, 45, 0.18);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

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

    .panel-body.is-sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        display: flex;
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 50;
        inset: 0;
        background: rgba(20, 27, 45, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .panel-body.is-sidebar-open .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .side-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-note {
        display: none;
    }

    .split-layout,
    .operations-detail-layout,
    .login-shell,
    .receipt-public-shell {
        grid-template-columns: 1fr;
    }

    .login-shell-herozi {
        max-width: 720px;
    }

    .login-hero-visual {
        min-height: auto;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .panel-main,
    .login-shell,
    .receipt-public-shell,
    .error-shell {
        padding: 0.78rem;
    }

    .hero-card,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar {
        margin: 0 -0.78rem;
        position: static;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem;
    }

    .topbar .header-left {
        flex: 1 1 100%;
        min-width: 0;
    }

    .topbar .header-search {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .topbar-actions {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .topbar-actions .user-chip {
        flex: 1 1 180px;
        min-width: 0;
    }

    .topbar-actions form {
        margin-left: auto;
    }

    .topbar-actions .button {
        width: auto;
    }

    .hero-status,
    .button-row {
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
    }

    .button-row {
        flex-direction: column;
    }

    .herozi-project-card,
    .project-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .project-actions {
        width: 100%;
    }

    .project-actions .status-badge {
        width: 100%;
        justify-content: center;
    }

    .pipeline-row-summary {
        grid-template-columns: 24px 44px minmax(0, 1fr) auto;
        gap: 0.58rem;
        align-items: start;
        padding: 0.78rem;
    }

    .pipeline-stepper {
        grid-column: 1 / -1;
        order: 5;
        margin-top: 0.18rem;
    }

    .pipeline-patient {
        white-space: normal;
    }

    .pipeline-row-summary .status-badge {
        justify-self: end;
        max-width: 138px;
        text-align: center;
    }

    .pipeline-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pipeline-actions {
        flex-direction: column;
    }

    .user-chip {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .grid-cards,
    .form-grid,
    .analytics-kpi-grid,
    .operations-alert-grid,
    .dashboard-action-grid,
    .operations-filter-grid,
    .cycle-card-grid,
    .detail-grid,
    .detail-grid.compact {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .receipt-public-hero,
    .login-card,
    .receipt-public-card,
    .error-card,
    .section-block,
    .metric-card,
    .hero-card {
        border-radius: 14px;
    }

    th,
    td {
        padding: 0.78rem 0.82rem;
    }

    .mobile-card-table {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .mobile-card-table table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.72rem;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table tr {
        border: 1px solid var(--hz-line);
        border-radius: 6px;
        background: #fff;
        box-shadow: var(--hz-shadow-soft);
        overflow: hidden;
    }

    .mobile-card-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid var(--hz-line);
        text-align: right;
        overflow-wrap: anywhere;
    }

    .mobile-card-table td:last-child {
        border-bottom: 0;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: var(--hz-muted);
        font-size: 0.72rem;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .mobile-card-table .table-actions {
        display: grid;
        text-align: left;
    }

    .mobile-card-table .table-actions::before {
        margin-bottom: 0.45rem;
    }

    .analytics-series {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        row-gap: 1.15rem;
    }

    .analytics-series-day {
        height: 124px;
    }

    .analytics-bars {
        height: 88px;
        gap: 4px;
    }

    .analytics-bar {
        width: 10px;
    }

    .kanban-board {
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }

    .kanban-column {
        min-width: 0;
    }

    .section-actions,
    .chart-legend {
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
    }

    .section-actions {
        flex-direction: column;
    }

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

/* Sober variant for guest hero blocks (login + abono publico) */
.login-hero.is-sober,
.receipt-public-hero.is-sober {
    background:
        linear-gradient(180deg, rgba(13, 110, 253, 0.04) 0%, rgba(13, 110, 253, 0) 60%),
        #0f172a;
    color: rgba(255, 255, 255, 0.92);
}

.login-hero.is-sober::before,
.receipt-public-hero.is-sober::before {
    display: none;
}

.login-hero.is-sober h1,
.receipt-public-hero.is-sober h1 {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
}

.guest-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.guest-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #56a8ff, #0d6efd);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
}

.guest-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.guest-brand-name small {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.guest-meta {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

/* Settings sections (group form into thematic cards) */
.settings-stack {
    display: grid;
    gap: 1rem;
}

/* Empty state */
.empty-state {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    min-height: 140px;
    padding: 1.4rem 1rem;
    border: 1px dashed var(--hz-line-strong);
    border-radius: 6px;
    background: #fbfcff;
    color: var(--hz-muted);
    text-align: center;
}

.empty-state i {
    color: var(--hz-primary);
    font-size: 1.55rem;
}

.empty-state strong {
    color: var(--hz-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: var(--hz-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

/* Wider, more readable analytics bars */
.analytics-series {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 0.65rem;
}

.analytics-series-day {
    height: 200px;
}

.analytics-bars {
    height: 165px;
    gap: 5px;
}

.analytics-bar {
    width: 14px;
}

/* Dashboard system info compact strip */
.system-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem 1.2rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 4px;
    background: var(--hz-card-bg);
    box-shadow: var(--hz-shadow-soft);
}

.system-strip-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.system-strip-item small {
    color: var(--hz-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-strip-item strong {
    color: var(--hz-heading);
    font-size: 1rem;
    font-weight: 700;
}
