:root {
    --hb-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --hb-sidebar-w: 17rem;
    --hb-bottom-nav-h: 4.25rem;

    --hb-bg: #eef2f6;
    --hb-bg-accent: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
        #eef2f6;
    --hb-surface: #ffffff;
    --hb-surface-2: #f8fafc;
    --hb-text: #0f172a;
    --hb-muted: #64748b;
    --hb-border: rgba(15, 23, 42, 0.08);
    --hb-border-strong: rgba(15, 23, 42, 0.12);

    --hb-primary: #0d9488;
    --hb-primary-hover: #0f766e;
    --hb-primary-soft: rgba(13, 148, 136, 0.12);
    --hb-primary-glow: rgba(13, 148, 136, 0.35);

    --hb-sidebar-bg: #0f172a;
    --hb-sidebar-text: #94a3b8;
    --hb-sidebar-active: #ffffff;

    --hb-danger: #ef4444;
    --hb-danger-soft: #fef2f2;
    --hb-success-bg: #ecfdf5;
    --hb-success-text: #047857;
    --hb-error-bg: #fef2f2;
    --hb-error-text: #b91c1c;
    --hb-info-bg: #eff6ff;

    --hb-status-none: #94a3b8;
    --hb-status-progress: #f59e0b;
    --hb-status-self: #0ea5e9;
    --hb-status-done: #16a34a;
    --hb-status-feedback-done: #6366f1;

    --hb-radius-sm: 10px;
    --hb-radius: 14px;
    --hb-radius-lg: 20px;
    --hb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --hb-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --hb-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --hb-transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--hb-font);
    background: var(--hb-bg-accent);
    color: var(--hb-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hb-primary); text-decoration: none; }
a:hover { color: var(--hb-primary-hover); }

.hb-icon { flex-shrink: 0; }

/* ?? App shell ?? */
.hb-body-app { overflow: hidden; height: 100dvh; }

.hb-app {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    overflow: hidden;
}

.hb-app--guest {
    min-height: 100dvh;
    flex-direction: column;
}

.hb-shell {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hb-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem calc(var(--hb-bottom-nav-h) + 1rem);
}

.hb-main-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ?? Sidebar (desktop) ?? */
.hb-sidebar {
    display: none;
    width: var(--hb-sidebar-w);
    flex-shrink: 0;
    min-height: 0;
    background: var(--hb-sidebar-bg);
    color: var(--hb-sidebar-text);
    padding: 1.25rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hb-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.hb-logo-mark-img {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.hb-logo-mark-img--lg {
    width: 3.5rem;
    height: 3.5rem;
}

.hb-logo-img {
    display: block;
    height: auto;
    max-width: 100%;
}

.hb-logo-img--light {
    width: 10.5rem;
}

.hb-logo-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    line-height: 1.05;
}

.hb-logo-product-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.hb-logo-product {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
    color: #f3efe6;
}

.hb-app-version {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(243, 239, 230, 0.42);
    line-height: 1;
    user-select: none;
}

.hb-logo--guest .hb-app-version {
    color: rgba(243, 239, 230, 0.4);
}

.hb-logo-byline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
    line-height: 1;
}

.hb-logo-by {
    color: rgba(243, 239, 230, 0.55);
    font-weight: 500;
}

.hb-logo-brand {
    display: inline;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hb-logo-intr {
    color: #f3efe6;
}

.hb-logo-bnb {
    color: #d4b56a;
}

.hb-logo-byline--title {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.15rem;
}

.hb-brand-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.hb-brand-title .hb-logo-product {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #f3efe6;
}

.hb-brand-title .hb-logo-byline {
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
}

.hb-rentxiq {
    display: inline-flex;
    align-items: baseline;
    font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: #f3efe6;
}

.hb-rentxiq__rent,
.hb-rentxiq__iq {
    font-weight: 800;
}

.hb-rentxiq__x {
    font-weight: 300;
    color: #12c4b0;
    margin: 0 0.02em;
}

.hb-rentxiq--byline {
    font-size: 1em;
}

.hb-logo-byline .hb-rentxiq {
    font-family: "Outfit", "Fraunces", sans-serif;
}

.hb-logo--guest .hb-logo-product {
    color: #f3efe6;
}

.hb-logo--guest .hb-logo-by {
    color: rgba(243, 239, 230, 0.6);
}

.hb-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.hb-sidebar-nav::-webkit-scrollbar {
    width: 0.45rem;
}

.hb-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.hb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--hb-radius-sm);
    color: var(--hb-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    transition: background var(--hb-transition), color var(--hb-transition);
}

.hb-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
}

.hb-nav-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hb-sidebar-active);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hb-nav-link--muted { opacity: 0.85; font-size: 0.875rem; }

.hb-sidebar-due {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 40%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0.35rem 0.15rem 0.65rem;
    padding: 0.55rem 0.45rem 0.65rem;
    border-radius: var(--hb-radius-sm);
    background: rgba(185, 28, 28, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.hb-sidebar-due-head {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0 0 0.45rem;
}

.hb-sidebar-due.is-collapsed .hb-sidebar-due-head {
    margin-bottom: 0;
}

.hb-sidebar-due-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.15rem 0.35rem;
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.hb-sidebar-due-heading:hover {
    color: #fee2e2;
    text-decoration: none;
}

.hb-sidebar-due-heading .hb-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.hb-sidebar-due-count {
    flex-shrink: 0;
    min-width: 1.15rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.35);
    color: #fee2e2;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.hb-sidebar-due-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fecaca;
    cursor: pointer;
}

.hb-sidebar-due-toggle:hover,
.hb-sidebar-due-toggle:focus-visible {
    background: rgba(248, 113, 113, 0.18);
    color: #fee2e2;
    outline: none;
}

.hb-sidebar-due-toggle .hb-icon {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.15s ease;
}

.hb-sidebar-due.is-collapsed {
    max-height: none;
    overflow: hidden;
    padding-bottom: 0.55rem;
}

.hb-sidebar-due.is-collapsed .hb-sidebar-due-list {
    display: none;
}

.hb-sidebar-due.is-collapsed .hb-sidebar-due-toggle .hb-icon {
    transform: rotate(180deg);
}

.hb-sidebar-due-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hb-sidebar-due-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.4rem 0.45rem;
    border-radius: 6px;
    color: #fecaca;
    text-decoration: none;
    line-height: 1.25;
}

.hb-sidebar-due-link:hover {
    background: rgba(248, 113, 113, 0.18);
    color: #fee2e2;
    text-decoration: none;
}

.hb-sidebar-due-task {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.45rem;
}

.hb-sidebar-due-days {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fee2e2;
    white-space: nowrap;
}

.hb-sidebar-due-meta {
    font-size: 0.72rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-sidebar-foot {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-sidebar-foot-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.hb-sidebar-foot-row .hb-user-chip {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.45rem;
}

.hb-sidebar-foot-row .hb-user-avatar {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hb-sidebar-foot-row .hb-user-meta strong {
    font-size: 0.8rem;
}

.hb-sidebar-foot-row .hb-lang-switch {
    flex-shrink: 0;
    padding: 0.12rem;
    gap: 0.1rem;
}

.hb-sidebar-foot-row .hb-lang-switch a {
    padding: 0.2rem 0.4rem;
    font-size: 0.68rem;
}

.hb-sidebar-foot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: var(--hb-radius-sm);
    color: var(--hb-sidebar-text);
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background var(--hb-transition), color var(--hb-transition);
}

.hb-sidebar-foot-icon .hb-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.hb-sidebar-foot-icon:hover,
.hb-sidebar-foot-icon:focus-visible,
.hb-sidebar-foot-icon.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hb-sidebar-active);
    outline: none;
    text-decoration: none;
}

.hb-admin-menu--compact {
    position: relative;
    flex-shrink: 0;
}

.hb-admin-menu--compact > summary {
    list-style: none;
}

.hb-admin-menu--compact > summary::-webkit-details-marker {
    display: none;
}

.hb-admin-menu--compact .hb-admin-menu-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.4rem);
    z-index: 40;
    min-width: 11rem;
    margin-top: 0;
}

.hb-admin-mark {
    display: block;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.05em;
    font-optical-sizing: auto;
    color: #d4b56a;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    user-select: none;
}

.hb-admin-menu--compact > summary:hover .hb-admin-mark,
.hb-admin-menu--compact > summary:focus-visible .hb-admin-mark,
.hb-admin-menu--compact > summary.is-active .hb-admin-mark {
    color: #f0d78a;
}

.hb-admin-menu {
    position: relative;
}

.hb-admin-menu > summary {
    list-style: none;
    cursor: pointer;
}

.hb-admin-menu > summary::-webkit-details-marker {
    display: none;
}

.hb-admin-menu > summary.hb-nav-link {
    display: flex;
    width: 100%;
}

.hb-admin-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.35rem;
    padding: 0.35rem;
    border-radius: var(--hb-radius-sm);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--hb-sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.hb-admin-menu-link:hover,
.hb-admin-menu-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hb-sidebar-active);
}

.hb-admin-menu--bottom {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.hb-admin-menu--bottom > summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    height: 100%;
    padding: 0.35rem 0.25rem;
    color: inherit;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 600;
}

.hb-admin-menu--bottom > summary .hb-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hb-admin-menu--bottom .hb-admin-menu-panel {
    position: absolute;
    right: 0.25rem;
    bottom: calc(100% + 0.45rem);
    z-index: 40;
    min-width: 11rem;
    margin-top: 0;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    box-shadow: var(--hb-shadow-lg);
}

.hb-admin-menu--bottom .hb-admin-menu-link {
    color: var(--hb-text);
}

.hb-admin-menu--bottom .hb-admin-menu-link:hover,
.hb-admin-menu--bottom .hb-admin-menu-link.is-active {
    background: var(--hb-primary-soft);
    color: var(--hb-primary-hover);
}

.hb-staff-submenu {
    border-radius: 8px;
}

.hb-staff-submenu > summary {
    list-style: none;
    cursor: pointer;
}

.hb-staff-submenu > summary::-webkit-details-marker {
    display: none;
}

.hb-staff-submenu-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    color: var(--hb-sidebar-text);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    opacity: 0.92;
}

.hb-staff-submenu-heading-link {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hb-staff-submenu-heading-link:hover,
.hb-staff-submenu-heading-link.is-active {
    color: var(--hb-sidebar-active);
}

.hb-staff-submenu-summary::after {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.hb-staff-submenu[open] > .hb-staff-submenu-summary::after {
    transform: rotate(225deg);
    margin-top: 0.2rem;
}

.hb-staff-submenu-summary:hover,
.hb-staff-submenu-summary.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hb-sidebar-active);
    opacity: 1;
}

.hb-staff-submenu-panel {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.15rem 0.15rem 0.35rem 0.55rem;
}

.hb-admin-menu--bottom .hb-staff-submenu-summary {
    color: var(--hb-text);
}

.hb-admin-menu--bottom .hb-staff-submenu-summary:hover,
.hb-admin-menu--bottom .hb-staff-submenu-summary.is-active {
    background: var(--hb-primary-soft);
    color: var(--hb-primary-hover);
}

.hb-staff-ops-subtitle {
    margin: 0 0 0.75rem;
}

.hb-staff-ops-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.hb-staff-ops-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hb-page--staff-ops-settlement .hb-settlements-start {
    margin: 0.5rem 0 1.25rem;
}

.hb-staff-ops-section {
    margin-bottom: 1.5rem;
}

.hb-staff-ops-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.65rem;
}

.hb-staff-ops-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.hb-staff-ops-section-toolbar {
    margin: 0;
}

.hb-staff-ops-archive {
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
}

.hb-staff-ops-archive > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.75rem 1rem;
    font-weight: 650;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
}

.hb-staff-ops-archive > summary::-webkit-details-marker {
    display: none;
}

.hb-staff-ops-archive[open] > summary {
    border-bottom: 1px solid var(--hb-border);
}

.hb-staff-ops-archive .hb-table-wrap {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.hb-staff-ops-copy {
    margin: 1rem 0 0.5rem;
    padding: 1rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
}

.hb-page--staff-future-copy .hb-settlements-end {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.hb-staff-ops-copy-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.hb-staff-ops-copy-hint {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
}

.hb-staff-ops-copy-field {
    margin: 0;
}

.hb-staff-ops-copy-text {
    width: 100%;
    min-height: 7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    resize: vertical;
}

.hb-staff-ops-row--settlement .hb-staff-ops-entry-link {
    color: #5b21b6;
    font-style: italic;
    font-weight: 600;
}

.hb-staff-ops-row--finance .hb-staff-ops-entry-link {
    color: #b45309;
    font-style: italic;
    font-weight: 600;
}

.hb-staff-ops-entry-link {
    text-decoration: none;
}

.hb-staff-ops-entry-link:hover {
    text-decoration: underline;
}

button.hb-calendar-bar {
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
}

.hb-linkish {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: var(--hb-primary);
    cursor: pointer;
    text-align: left;
}

.hb-linkish:hover {
    text-decoration: underline;
}

.hb-modal-dialog--staff-ops {
    width: min(26rem, calc(100vw - 1.5rem));
}

.hb-staff-ops-summary {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--hb-border);
}

.hb-staff-ops-guest {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hb-text);
}

.hb-staff-ops-meta {
    margin: 0.15rem 0 0;
    color: var(--hb-muted);
    font-size: 0.9rem;
}

.hb-staff-ops-form .hb-field {
    margin-bottom: 0.85rem;
}

.hb-staff-ops-form textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.hb-user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hb-impersonation-chip {
    padding: 0.55rem 0.55rem 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.hb-impersonation-chip__row {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.hb-impersonation-chip__text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.hb-impersonation-chip__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fbbf24;
}

.hb-impersonation-chip__hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #fde68a;
}

.hb-impersonation-stop-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    color: #fbbf24;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.hb-impersonation-stop-icon:hover {
    background: rgba(251, 191, 36, 0.22);
    color: #fef3c7;
}

.hb-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hb-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hb-user-meta strong {
    color: #f1f5f9;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-user-meta span {
    font-size: 0.75rem;
    color: var(--hb-sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ?? Bottom nav (mobile) ?? */
.hb-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: var(--hb-bottom-nav-h);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--hb-border-strong);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.06);
}

.hb-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    color: var(--hb-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--hb-transition);
}

.hb-bottom-nav a.is-active {
    color: var(--hb-primary);
}

.hb-bottom-nav a.is-active .hb-icon {
    transform: scale(1.08);
}

/* ?? Guest / auth layout ?? */
.hb-body-guest {
    background: linear-gradient(145deg, #042f2e 0%, #0f172a 45%, #134e4a 100%);
}

.hb-app--guest .hb-page-head { display: none; }

.hb-app--guest .hb-main {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hb-app--guest .hb-main-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hb-guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.hb-auth-layout {
    display: grid;
    grid-template-columns: 1fr;
    flex: 1;
    min-height: calc(100dvh - 4rem);
}

.hb-auth-brand {
    display: none;
}

.hb-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
}

.hb-auth-panel--center {
    flex: 1;
    min-height: calc(100dvh - 5rem);
}

.hb-login-card--wide {
    max-width: 480px;
}

.hb-auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.hb-login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--hb-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--hb-shadow-lg);
}

/* ?? Page head ?? */
.hb-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hb-page-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hb-property-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    max-width: min(100%, 18rem);
}

.hb-property-switcher--single {
    padding: 0.45rem 0.75rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.hb-property-switcher-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.hb-property-switcher-chip {
    width: 0.75rem;
    height: 2rem;
    border-radius: 4px;
    background: var(--hb-chip-color, #64748b);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.hb-property-switcher-select {
    min-width: 0;
    max-width: 14rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border-radius: var(--hb-radius-sm);
    border: 1px solid var(--hb-border-strong);
    background: var(--hb-surface);
}

.hb-property-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.95rem;
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
    border: 1px solid var(--hb-border);
}

.hb-property-context-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hb-muted);
}

.hb-property-context-value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.hb-property-card--solo {
    max-width: 720px;
}

.hb-breadcrumb {
    font-size: 0.82rem;
    color: var(--hb-muted);
    margin-bottom: 0.65rem;
}

.hb-breadcrumb-sep { margin: 0 0.35rem; opacity: 0.5; }

.hb-section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.hb-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ?? Hero ?? */
.hb-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--hb-radius-lg);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.25);
}

.hb-hero-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
}

.hb-hero-title {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hb-hero .hb-btn-primary {
    background: #fff;
    color: #0f766e;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hb-hero a.hb-btn.hb-btn-primary,
.hb-hero a.hb-btn.hb-btn-primary:link,
.hb-hero a.hb-btn.hb-btn-primary:visited,
.hb-hero a.hb-btn.hb-btn-primary:hover,
.hb-hero a.hb-btn.hb-btn-primary:active {
    color: #0f766e;
}

.hb-hero .hb-btn-primary:hover {
    background: #f0fdfa;
    color: #115e59;
}

.hb-hero a.hb-btn.hb-btn-primary:hover,
.hb-hero a.hb-btn.hb-btn-primary:active {
    color: #115e59;
}

/* ?? Property cards ?? */
.hb-property-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.hb-property-card {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--hb-shadow-sm);
    transition: transform var(--hb-transition), box-shadow var(--hb-transition);
    position: relative;
    overflow: hidden;
}

.hb-property-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hb-accent, var(--hb-primary));
}

.hb-property-card--accent-1 { --hb-accent: #0d9488; }
.hb-property-card--accent-2 { --hb-accent: #6366f1; }
.hb-property-card--accent-3 { --hb-accent: #f59e0b; }

.hb-property-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.hb-property-swatch {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 4px;
    margin-top: 0.35rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.hb-property-swatch--google {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.35) 2px,
        rgba(255, 255, 255, 0.35) 4px
    );
}

.hb-property-swatch--todo {
    background-color: #7c3aed;
}

.hb-color-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hb-color-field input[type="color"] {
    width: 3rem;
    height: 2.25rem;
    padding: 0.15rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    cursor: pointer;
}

.hb-color-preview {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--hb-radius-sm);
    background: var(--hb-preview-color, #64748b);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.hb-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.hb-color-preset {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
    transition: transform var(--hb-transition), border-color var(--hb-transition);
}

.hb-color-preset:hover,
.hb-color-preset:focus-visible {
    transform: scale(1.08);
    border-color: var(--hb-text);
    outline: none;
}

.hb-field-with-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hb-field-with-chip select {
    flex: 1;
    min-width: 0;
}

.hb-property-color-chip {
    flex-shrink: 0;
    width: 1.25rem;
    height: 2.5rem;
    border-radius: 6px;
    background: var(--hb-chip-color, #64748b);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.hb-calendar-property-legend,
.hb-calendar-channel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0.75rem 0.85rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    font-size: 0.8125rem;
}

.hb-calendar-channel-legend {
    flex-shrink: 0;
}

.hb-calendar-property-legend li,
.hb-calendar-channel-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hb-calendar-property-note {
    margin-top: 0.5rem;
}

.hb-property-swatch--lg {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0;
}

.hb-channel-color-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hb-channel-color-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
}

.hb-channel-color-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 12rem;
}

.hb-channel-color-head strong {
    display: block;
    font-size: 0.9375rem;
}

.hb-channel-color-sub {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
}

.hb-color-preview--inline {
    width: 2rem;
    height: 2rem;
}

.hb-channel-color-hex {
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.hb-property-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hb-shadow);
}

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

.hb-property-card h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.hb-property-city {
    margin: 0.2rem 0 0;
    color: var(--hb-muted);
    font-size: 0.875rem;
}

.hb-property-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--hb-surface-2);
    color: var(--hb-muted);
    white-space: nowrap;
}

.hb-property-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.hb-property-meta div {
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
    padding: 0.65rem 0.75rem;
}

.hb-property-meta dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hb-muted);
    font-weight: 600;
}

.hb-property-meta dd {
    margin: 0.15rem 0 0;
    font-weight: 700;
    font-size: 1rem;
}

.hb-unit-list {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hb-unit-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding: 0.55rem 0.75rem;
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
}

.hb-unit-list em {
    font-style: normal;
    color: var(--hb-muted);
    font-size: 0.8rem;
}

/* ?? Buttons ?? */
.hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--hb-border-strong);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    color: var(--hb-text);
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--hb-transition), border-color var(--hb-transition), transform var(--hb-transition), box-shadow var(--hb-transition);
    white-space: nowrap;
}

.hb-btn:hover {
    background: var(--hb-surface-2);
    text-decoration: none;
    color: var(--hb-text);
}

.hb-btn:active { transform: scale(0.98); }

.hb-btn-primary {
    background: var(--hb-primary);
    color: #fff;
    border-color: transparent;
}

a.hb-btn.hb-btn-primary,
a.hb-btn.hb-btn-primary:link,
a.hb-btn.hb-btn-primary:visited,
a.hb-btn.hb-btn-primary:hover,
a.hb-btn.hb-btn-primary:active {
    color: #fff;
}

.hb-btn-primary:hover {
    background: var(--hb-primary-hover);
    color: #fff;
}

.hb-btn-glow:hover {
    box-shadow: 0 8px 24px var(--hb-primary-glow);
}

.hb-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--hb-muted);
}

.hb-btn-ghost:hover {
    background: var(--hb-surface-2);
    color: var(--hb-text);
}

.hb-btn-danger {
    color: var(--hb-danger);
    border-color: #fecaca;
    background: var(--hb-danger-soft);
}

.hb-btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8125rem; }
.hb-btn-block { width: 100%; }

.hb-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 999px;
}

.hb-toolbar, .hb-form-actions, .hb-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hb-card-actions { margin-top: 0.25rem; }

.hb-toolbar {
    margin-bottom: 1rem;
}

.hb-toolbar--calendar {
    justify-content: stretch;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.hb-calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.hb-calendar-toolbar-nav {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex: 1 1 auto;
    min-width: 0;
}

.hb-calendar-toolbar-nav .hb-calendar-title {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.hb-calendar-footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.12rem;
    margin-top: 0.65rem;
    flex-shrink: 0;
}

.hb-calendar-footer-nav .hb-calendar-title {
    flex: 0 1 auto;
    min-width: 10.5rem;
    padding: 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center;
}

.hb-calendar-footer-nav .hb-btn-icon {
    width: 2rem;
    height: 2rem;
}

.hb-calendar-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-left: auto;
}

.hb-calendar-toolbar-property {
    flex: 0 1 12rem;
    min-width: 0;
    max-width: 14rem;
}

.hb-calendar-toolbar .hb-btn-icon {
    width: 2rem;
    height: 2rem;
}

.hb-calendar-filter-toolbar {
    grid-template-columns: minmax(12rem, 2fr) minmax(8rem, 1fr) minmax(8rem, 1fr);
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
    flex-shrink: 0;
}

.hb-calendar-filter-toolbar[hidden],
.hb-calendar-channel-legend[hidden] {
    display: none !important;
}

.hb-cal-filter-toggle,
.hb-cal-legend-toggle {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.hb-cal-filter-toggle.is-open,
.hb-cal-legend-toggle.is-open {
    color: var(--hb-primary, #0d9488);
    box-shadow: inset 0 0 0 1px var(--hb-primary, #0d9488);
}

.hb-cal-filter-toggle.is-active::after {
    content: "";
    position: absolute;
    top: 0.22rem;
    right: 0.22rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--hb-primary, #0d9488);
    box-shadow: 0 0 0 1px var(--hb-surface, #fff);
}

.hb-calendar-bar.is-filtered-out {
    display: none !important;
}

.hb-btn-icon.is-syncing {
    pointer-events: none;
    opacity: 0.85;
}

.hb-btn-icon.is-syncing .hb-icon,
.hb-btn-icon.is-syncing svg {
    animation: hb-cal-sync-spin 0.85s linear infinite;
}

@keyframes hb-cal-sync-spin {
    to { transform: rotate(360deg); }
}

.hb-page-calendar .hb-page-head {
    display: none;
}

.hb-cal-property-popover {
    position: relative;
    width: 100%;
}

.hb-cal-property-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    height: 2rem;
    padding: 0 0.55rem;
    justify-content: flex-start;
}

.hb-cal-property-toggle-swatch {
    display: block;
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.hb-cal-property-toggle-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--hb-muted);
}

.hb-cal-property-toggle-icon .hb-icon {
    width: 1rem;
    height: 1rem;
}

.hb-cal-property-toggle-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.hb-cal-property-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 30;
    min-width: min(16rem, calc(100vw - 1.5rem));
    max-height: min(16rem, 50vh);
    overflow: auto;
    padding: 0.35rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-md);
    box-shadow: var(--hb-shadow-lg);
}

.hb-cal-property-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--hb-radius-sm);
    color: var(--hb-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.hb-cal-property-item:hover {
    background: var(--hb-surface-2);
    text-decoration: none;
}

.hb-cal-property-item.is-active {
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
}

.hb-cal-property-item .hb-property-swatch {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

.hb-cal-property-item .hb-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.hb-cal-icon-form {
    display: inline-flex;
    margin: 0;
}

.hb-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.hb-filter-inline select {
    min-width: 10rem;
}

/* ?? Forms ?? */
.hb-field input,
.hb-field select,
.hb-field textarea,
.hb-checklist-note,
.hb-filter-row select,
.hb-filter-inline select {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--hb-border-strong);
    border-radius: var(--hb-radius-sm);
    font: inherit;
    background: var(--hb-surface);
    color: var(--hb-text);
    transition: border-color var(--hb-transition), box-shadow var(--hb-transition);
}

.hb-field input:focus,
.hb-field select:focus,
.hb-field textarea:focus,
.hb-checklist-note:focus,
.hb-filter-row select:focus,
.hb-filter-inline select:focus {
    outline: none;
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 4px var(--hb-primary-soft);
}

.hb-field { display: block; margin-bottom: 1rem; }

.hb-password-wrap {
    position: relative;
    display: block;
}

.hb-password-wrap input {
    padding-right: 2.75rem;
}

.hb-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--hb-radius-sm);
    background: transparent;
    color: var(--hb-muted);
    cursor: pointer;
    transition: color var(--hb-transition), background var(--hb-transition);
}

.hb-password-toggle:hover,
.hb-password-toggle:focus-visible {
    color: var(--hb-text);
    background: var(--hb-primary-soft);
    outline: none;
}

.hb-password-toggle__icon {
    display: block;
    pointer-events: none;
}

.hb-field--narrow {
    max-width: 18rem;
}

.hb-field span {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hb-muted);
    margin-bottom: 0.35rem;
}

.hb-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.hb-field-row--dates {
    grid-template-columns: 1fr 1fr minmax(5.5rem, 7rem);
    align-items: start;
    margin-bottom: 1rem;
}

.hb-field-row--dates > .hb-field {
    margin-bottom: 0;
}

.hb-field--nights {
    margin-bottom: 0;
}

.hb-nights-value {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0.72rem 0.85rem;
    min-height: calc(0.72rem * 2 + 1.25em + 2px);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    color: var(--hb-text);
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border-strong);
    border-radius: var(--hb-radius-sm);
}

.hb-ifa-explanation {
    margin-top: 0.65rem;
}

.hb-ifa-explanation > summary {
    list-style: none;
}

.hb-ifa-explanation > summary::-webkit-details-marker {
    display: none;
}

.hb-ifa-explanation .hb-disclosure-body {
    padding: 0.65rem 0.75rem;
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
}

.hb-ifa-explain-btn {
    font-weight: 700;
    font-size: 0.95rem;
}

.hb-form-card {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--hb-shadow-sm);
    max-width: 640px;
}

.hb-filter-row { margin-bottom: 1rem; }

.hb-filter-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    box-shadow: var(--hb-shadow-sm);
    margin-bottom: 1.25rem;
}

.hb-filter-card span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hb-muted);
    white-space: nowrap;
}

.hb-filter-card select {
    min-width: 12rem;
    width: auto;
}

.hb-form-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hb-form-actions--top {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-top: 0;
    padding-bottom: 1rem;
    border-top: none;
    border-bottom: 1px solid var(--hb-border);
}

.hb-form-actions--split {
    justify-content: space-between;
    align-items: center;
}

.hb-form-actions__main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hb-form-actions__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
}

.hb-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.hb-source-badge--manual {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #99f6e4;
}

.hb-source-badge--import {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.hb-source-badge--google {
    color: #c5221f;
    background: #fce8e6;
    border-color: #f6aea9;
}

.hb-source-badge--ical {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #93c5fd;
}

.hb-ical-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.75rem 0 1rem;
}

.hb-ical-feed-row {
    margin: 0;
    padding: 0;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    overflow: hidden;
}

.hb-ical-feed-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: var(--hb-surface-2);
}

.hb-ical-feed-summary::-webkit-details-marker {
    display: none;
}

.hb-ical-feed-summary::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid var(--hb-muted);
    border-bottom: 2px solid var(--hb-muted);
    transform: rotate(-45deg);
    transition: transform var(--hb-transition);
    flex: 0 0 auto;
}

.hb-ical-feed-row[open] > .hb-ical-feed-summary::before {
    transform: rotate(45deg);
}

.hb-ical-feed-summary__title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--hb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-ical-feed-summary__state {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hb-muted);
}

.hb-ical-feed-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--hb-border);
}

.hb-ical-feed-main {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .hb-ical-feed-main {
        grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
        align-items: end;
    }

    .hb-ical-feed-url {
        grid-column: 1 / -1;
    }
}

.hb-ical-feed-url input,
.hb-ical-feed-url textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
}

.hb-ical-feed-url--export textarea {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.45;
    word-break: break-all;
    white-space: pre-wrap;
    cursor: text;
}

.hb-ical-feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hb-ical-feed-sync {
    margin: 0;
}

.hb-break-all {
    word-break: break-all;
}

.hb-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.hb-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.hb-record-audit {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--hb-border);
    font-size: 0.85rem;
    color: var(--hb-muted);
}

.hb-record-audit p {
    margin: 0.2rem 0;
}

.hb-data-list-toolbar,
.hb-letter-list-toolbar {
    display: grid;
    grid-template-columns: minmax(12rem, 1.5fr) repeat(3, minmax(8rem, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-sm);
}

.hb-data-list-toolbar .hb-field,
.hb-letter-list-toolbar .hb-field {
    margin-bottom: 0;
}

.hb-data-list-count,
.hb-letter-list-count {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.8125rem;
}

@media (max-width: 899px) {
    .hb-data-list-toolbar,
    .hb-letter-list-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 599px) {
    .hb-data-list-toolbar,
    .hb-letter-list-toolbar {
        grid-template-columns: 1fr;
    }
}

.hb-list-bulk-actions {
    margin-bottom: 0.65rem;
}

.hb-list-col-check {
    width: 2.5rem;
    text-align: center;
}

.hb-col-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hb-table-actions {
    white-space: nowrap;
}

.hb-ifa-box {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border-radius: var(--hb-radius);
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
}

.hb-ifa-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.hb-ifa-formula-label {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hb-ifa-formula {
    margin: 0 0 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.hb-ifa-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hb-ifa-input-row input {
    flex: 1 1 8rem;
    min-width: 0;
}

.hb-ifa-input-row .hb-btn-icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
}

.hb-btn-refresh--ifa {
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.35);
    background: rgba(79, 70, 229, 0.08);
}

.hb-btn-refresh--ifa:hover,
.hb-btn-refresh--ifa:focus-visible {
    color: #4338ca;
    border-color: rgba(79, 70, 229, 0.55);
    background: rgba(79, 70, 229, 0.14);
}

.hb-btn-refresh--stay {
    color: var(--hb-primary);
    border-color: rgba(13, 148, 136, 0.35);
    background: var(--hb-primary-soft);
}

.hb-btn-refresh--stay:hover,
.hb-btn-refresh--stay:focus-visible {
    color: var(--hb-primary-hover);
    border-color: rgba(13, 148, 136, 0.55);
    background: rgba(13, 148, 136, 0.18);
}

.hb-btn-refresh--invoice {
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.35);
    background: rgba(194, 65, 12, 0.08);
}

.hb-btn-refresh--invoice:hover,
.hb-btn-refresh--invoice:focus-visible {
    color: #9a3412;
    border-color: rgba(194, 65, 12, 0.55);
    background: rgba(194, 65, 12, 0.14);
}

.hb-btn-refresh--property {
    color: #475569;
    border-color: rgba(71, 85, 105, 0.35);
    background: rgba(71, 85, 105, 0.08);
}

.hb-btn-refresh--property:hover,
.hb-btn-refresh--property:focus-visible {
    color: #334155;
    border-color: rgba(71, 85, 105, 0.55);
    background: rgba(71, 85, 105, 0.14);
}

.hb-btn-refresh--tfh {
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.35);
    background: rgba(2, 132, 199, 0.08);
}

.hb-btn-refresh--tfh:hover,
.hb-btn-refresh--tfh:focus-visible {
    color: #0369a1;
    border-color: rgba(2, 132, 199, 0.55);
    background: rgba(2, 132, 199, 0.14);
}

.hb-btn-refresh--settlement-profit {
    color: #5b21b6;
    border-color: rgba(91, 33, 182, 0.35);
    background: rgba(91, 33, 182, 0.08);
}

.hb-btn-refresh--settlement-profit:hover,
.hb-btn-refresh--settlement-profit:focus-visible {
    color: #4c1d95;
    border-color: rgba(91, 33, 182, 0.55);
    background: rgba(91, 33, 182, 0.14);
}

.hb-btn-refresh--commission {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.08);
}

.hb-btn-refresh--commission:hover,
.hb-btn-refresh--commission:focus-visible {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.55);
    background: rgba(124, 58, 237, 0.14);
}

.hb-btn-refresh--commission:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hb-form-card--wide {
    max-width: 1120px;
}

.hb-booking-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hb-booking-main {
    min-width: 0;
}

.hb-booking-sidebar {
    min-width: 0;
}

.hb-form-section--sidebar {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hb-form-section--sidebar + .hb-form-section--sidebar {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hb-border);
}

.hb-email-booking-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.hb-email-booking-item {
    display: grid;
    gap: 0.2rem;
}

.hb-email-booking-item a {
    text-decoration: none;
}

.hb-email-booking-item a:hover strong {
    text-decoration: underline;
}

.hb-smtp-debug {
    display: block;
}

.hb-smtp-debug summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hb-smtp-debug__pre {
    margin: 0;
    padding: 0.75rem 1rem;
    overflow: auto;
    max-height: 22rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.hb-smtp-test-section {
    margin-top: 1.25rem;
}

.hb-smtp-test-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hb-smtp-test-actions .hb-btn {
    align-self: flex-start;
}

.hb-form-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hb-border);
}

.hb-form-section .hb-section-title {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.hb-subsection-title {
    margin: 1rem 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hb-muted);
}

.hb-subsection-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0 0.65rem;
}

.hb-subsection-title-row .hb-subsection-title {
    margin: 0;
}

.hb-subsection-title-row .hb-btn-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
}

.hb-form-section .hb-subsection-title:first-of-type,
.hb-form-section .hb-subsection-title-row:first-of-type {
    margin-top: 0;
}

.hb-field-row--triple {
    grid-template-columns: repeat(3, 1fr);
}

.hb-field-row.hb-field-row--quad {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.hb-field-row.hb-field-row--quad > .hb-field {
    margin-bottom: 0;
    min-width: 0;
}

.hb-field-row--price {
    grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0.45rem;
    align-items: start;
}

.hb-field-row--price > .hb-field {
    margin-bottom: 0;
    min-width: 0;
}

.hb-price-fx-swap {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-height: 1.2em;
    margin-top: 0.05rem;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
}

.hb-fx-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.05rem;
    border: 0;
    background: transparent;
    color: #ea580c;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
}

.hb-fx-inline-btn .hb-icon {
    width: 1.15em;
    height: 1.15em;
}

.hb-fx-inline-btn:hover,
.hb-fx-inline-btn:focus-visible {
    color: #c2410c;
    outline: none;
}

.hb-fx-inline-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.hb-price-fx-hint {
    grid-column: 1 / -1;
}

.hb-fx-rate-label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0 0 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--hb-muted);
    cursor: pointer;
    text-align: left;
}

.hb-fx-rate-label span {
    display: inline;
    margin: 0;
    font: inherit;
    font-weight: inherit;
    color: inherit;
}

.hb-fx-rate-label .hb-icon {
    width: 1.15em;
    height: 1.15em;
    color: #ea580c;
    flex-shrink: 0;
}

.hb-fx-rate-label:hover,
.hb-fx-rate-label:focus-visible {
    color: var(--hb-text);
    outline: none;
}

.hb-fx-rate-label:hover .hb-icon,
.hb-fx-rate-label:focus-visible .hb-icon {
    color: #c2410c;
}

.hb-fx-rate-label:disabled {
    opacity: 0.55;
    cursor: wait;
}

.hb-btn-block {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 0.45rem;
}

.hb-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.hb-field-hint--warn {
    color: var(--hb-danger, #b42318);
    font-weight: 500;
}

.hb-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hb-checklist-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
}

.hb-checklist-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.hb-checklist-label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
}

.hb-checklist-note-wrap {
    margin: 0;
}

.hb-checklist-note-wrap summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hb-muted);
    user-select: none;
}

.hb-checklist-note-wrap summary::-webkit-details-marker {
    display: none;
}

.hb-checklist-note-wrap summary::before {
    content: "\203A";
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 700;
    transition: transform var(--hb-transition);
}

.hb-checklist-note-wrap[open] summary::before {
    transform: rotate(90deg);
}

.hb-checklist-note-wrap[open] summary {
    margin-bottom: 0.35rem;
}

.hb-checklist-note {
    min-width: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
}

.hb-checklist-note::placeholder {
    color: var(--hb-muted);
    opacity: 0.75;
}

.hb-finance-other-field {
    margin-bottom: 0.35rem;
}

.hb-finance-other-note-wrap {
    margin: 0 0 1rem;
}

.hb-finance-other-note-wrap.is-hidden {
    display: none;
}

.hb-finance-other-note {
    margin-top: 0;
}

.hb-booking-sidebar .hb-toggle-option {
    min-width: 2.75rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.6875rem;
}

.hb-toggle--tri .hb-toggle-option {
    min-width: 2.35rem;
    padding: 0.3rem 0.4rem;
}

.hb-booking-sidebar .hb-toggle--tri .hb-toggle-option {
    min-width: 2rem;
    padding: 0.28rem 0.35rem;
    font-size: 0.625rem;
}

.hb-toggle--quad .hb-toggle-option {
    min-width: 2.1rem;
    padding: 0.28rem 0.32rem;
}

.hb-booking-sidebar .hb-toggle--quad .hb-toggle-option {
    min-width: 1.85rem;
    padding: 0.26rem 0.28rem;
    font-size: 0.6rem;
}

.hb-toggle {
    display: inline-flex;
    padding: 0.15rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 999px;
    gap: 0.1rem;
}

.hb-toggle-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    color: var(--hb-muted);
    user-select: none;
}

.hb-toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hb-toggle-option.is-active.is-active--0 {
    background: var(--hb-status-none);
    color: #fff;
}

.hb-toggle--tri .hb-toggle-option.is-active.is-active--1 {
    background: var(--hb-status-progress);
    color: #fff;
}

.hb-toggle--tri .hb-toggle-option.is-active.is-active--2,
.hb-toggle:not(.hb-toggle--tri) .hb-toggle-option.is-active.is-active--1 {
    background: var(--hb-status-done);
    color: #fff;
}

.hb-toggle--quad .hb-toggle-option.is-active.is-active--2 {
    background: var(--hb-status-self);
    color: #fff;
}

.hb-toggle--quad .hb-toggle-option.is-active.is-active--3 {
    background: var(--hb-status-done);
    color: #fff;
}

.hb-toggle--tri.hb-toggle--dual-done .hb-toggle-option.is-active.is-active--1,
.hb-toggle--tri.hb-toggle--dual-done .hb-toggle-option.is-active.is-active--2 {
    background: var(--hb-status-done);
    color: #fff;
}

.hb-seg {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0.15rem;
    gap: 0.15rem;
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
    border-radius: 999px;
}

.hb-seg-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    color: var(--hb-muted);
}

.hb-seg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hb-seg-option > span {
    display: inline;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
}

.hb-seg-option.is-active {
    background: var(--hb-primary);
    color: #fff;
}

.hb-seg-option:hover:not(.is-active) {
    color: var(--hb-text);
    background: rgba(15, 23, 42, 0.04);
}

.hb-finance-box {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--hb-radius-lg);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(99, 102, 241, 0.05));
    border: 1px solid var(--hb-border);
}

.hb-finance-ifa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.hb-finance-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
}

.hb-finance-others {
    margin-top: 1rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
}

.hb-finance-others > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hb-muted);
    user-select: none;
}

.hb-finance-others > summary::-webkit-details-marker {
    display: none;
}

.hb-finance-others > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform 0.15s ease;
}

.hb-finance-others[open] > summary::before {
    transform: rotate(90deg);
}

.hb-finance-others-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 0 0.9rem 0.9rem;
    align-items: start;
}

.hb-finance-other-col {
    min-width: 0;
}

.hb-field-label-with-help {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hb-help-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 1px solid var(--hb-border);
    border-radius: 50%;
    background: var(--hb-surface);
    color: var(--hb-muted);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    flex-shrink: 0;
}

.hb-help-hint:hover,
.hb-help-hint:focus-visible {
    color: var(--hb-primary);
    border-color: var(--hb-primary);
    outline: none;
}

.hb-finance-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hb-finance-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--hb-border);
}

.hb-finance-summary div {
    background: var(--hb-surface);
    border-radius: var(--hb-radius-sm);
    padding: 0.75rem 0.85rem;
}

.hb-finance-summary dt {
    margin: 0;
    font-size: 0.75rem;
    color: var(--hb-muted);
    font-weight: 600;
}

.hb-finance-summary dd {
    margin: 0.25rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.hb-finance-summary dd.is-positive { color: #0d9488; }
.hb-finance-summary dd.is-negative { color: #dc2626; }

.hb-profit-pct {
    font-weight: 700;
}

.hb-checklist-row--settlement .hb-ledger-details {
    margin-top: 0.5rem;
}

.hb-ledger-details summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hb-muted);
    margin-bottom: 0.5rem;
}

.hb-ledger-box {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--hb-radius-lg);
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
}

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

.hb-ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin-bottom: 0.65rem;
}

.hb-ledger-table th,
.hb-ledger-table td {
    padding: 0.35rem 0.4rem;
    vertical-align: top;
    text-align: left;
}

.hb-ledger-table th {
    font-size: 0.75rem;
    color: var(--hb-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--hb-border);
}

.hb-ledger-col-amount {
    width: 7.5rem;
    white-space: nowrap;
}

.hb-ledger-col-actions {
    width: 2.25rem;
}

.hb-ledger-input {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface-2);
    font-size: 0.8125rem;
}

.hb-ledger-input--amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hb-ledger-who-cell {
    min-width: 8rem;
}

.hb-ledger-who-cell .hb-misc-who-other {
    margin-top: 0.35rem;
}

.hb-ledger-who-cell .hb-misc-who-other.is-hidden,
.hb-ledger-who-cell .hb-finance-who-other.is-hidden,
.hb-ledger-type-cell .hb-settlement-type-other.is-hidden {
    display: none;
}

.hb-ledger-type-cell {
    min-width: 9rem;
}

.hb-ledger-type-cell .hb-settlement-type-other {
    margin-top: 0.35rem;
}

.hb-form-actions--inline {
    margin-top: 0.85rem;
}

.hb-ledger-remove {
    min-width: 1.75rem;
    padding: 0.2rem 0.45rem;
    line-height: 1;
}

.hb-ledger-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hb-border);
}

.hb-ledger-summary div {
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
    padding: 0.55rem 0.65rem;
}

.hb-ledger-summary dt {
    margin: 0;
    font-size: 0.7rem;
    color: var(--hb-muted);
    font-weight: 600;
}

.hb-ledger-summary dd {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hb-ledger-summary dd.is-positive { color: #0d9488; }
.hb-ledger-summary dd.is-negative { color: #dc2626; }

.hb-disclosure {
    margin: 0.35rem 0 0.85rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface-2);
}

.hb-disclosure summary {
    cursor: pointer;
    padding: 0.75rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    list-style: none;
}

.hb-disclosure summary::-webkit-details-marker {
    display: none;
}

.hb-disclosure summary::before {
    content: "\203A";
    display: inline-block;
    margin-right: 0.45rem;
    font-weight: 700;
    transition: transform var(--hb-transition);
}

.hb-disclosure[open] summary::before {
    transform: rotate(90deg);
}

.hb-disclosure-body {
    padding: 0 0.95rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hb-autocomplete {
    position: relative;
}

.hb-autocomplete-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.2rem);
    left: 0;
    right: 0;
    max-height: 14rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.hb-autocomplete-item {
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.hb-autocomplete-item.is-highlighted,
.hb-autocomplete-item:hover {
    background: var(--hb-surface-2);
}

.hb-children-ages {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.hb-children-ages:empty {
    display: none;
}

.hb-guest-count-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.hb-guest-count-field {
    flex: 0 0 auto;
    width: 7.5rem;
    max-width: 7.5rem;
    margin: 0;
}

.hb-cleaner-note-field {
    flex: 1 1 12rem;
    min-width: 10rem;
    margin: 0;
}

.hb-child-age-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 3.75rem;
}

.hb-child-age-field span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hb-muted);
    white-space: nowrap;
}

.hb-child-age-field input {
    width: 3.75rem;
    height: 2.5rem;
    padding: 0.35rem 0.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--hb-radius-sm);
    border: 1px solid var(--hb-border-strong);
    background: var(--hb-surface);
    -moz-appearance: textfield;
    appearance: textfield;
}

.hb-child-age-field input::-webkit-outer-spin-button,
.hb-child-age-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hb-child-age-field input::placeholder {
    color: var(--hb-muted);
    font-weight: 500;
    opacity: 0.65;
}

.hb-child-age-field input:focus {
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px var(--hb-primary-soft);
    outline: none;
}

/* ?? Messages ?? */
.hb-msg {
    padding: 0.75rem 1rem;
    border-radius: var(--hb-radius-sm);
    margin: 0.85rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.hb-msg-success { background: var(--hb-success-bg); color: var(--hb-success-text); }
.hb-msg-error { background: var(--hb-error-bg); color: var(--hb-error-text); }
.hb-msg-info { background: var(--hb-info-bg); color: var(--hb-primary); }
.hb-msg-warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    font-weight: 700;
    font-size: 0.95rem;
}

.hb-muted { color: var(--hb-muted); font-size: 0.875rem; }

.hb-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--hb-muted);
    background: var(--hb-surface);
    border-radius: var(--hb-radius-lg);
    border: 1px dashed var(--hb-border-strong);
}

/* ?? Table ?? */
.hb-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-sm);
}

.hb-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.hb-table th,
.hb-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--hb-border);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.hb-table th {
    background: var(--hb-surface-2);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hb-muted);
    font-weight: 700;
    position: sticky;
    top: 0;
}

.hb-table tbody tr:hover { background: rgba(13, 148, 136, 0.03); }

.hb-table tbody tr:last-child td { border-bottom: none; }

.hb-table th.hb-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.hb-table th.hb-sortable:hover {
    color: var(--hb-text);
}

.hb-table th.hb-sortable::after {
    display: inline-block;
    width: 0.85rem;
    margin-left: 0.2rem;
    opacity: 0.35;
    content: "\2195";
}

.hb-table th.hb-sortable.is-sorted-asc::after {
    opacity: 1;
    content: "\25B2";
}

.hb-table th.hb-sortable.is-sorted-desc::after {
    opacity: 1;
    content: "\25BC";
}

/* ?? Calendar (fullscreen feel) ?? */
.hb-page-calendar:has(.hb-calendar-shell) .hb-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hb-page-calendar:has(.hb-calendar-shell) .hb-main-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hb-page-calendar:has(.hb-calendar-shell) .hb-page-head,
.hb-page-calendar:has(.hb-calendar-shell) .hb-msg {
    flex-shrink: 0;
}

.hb-calendar-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.hb-calendar-title {
    min-width: 10.5rem;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.hb-calendar {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-sm);
    overflow: hidden;
}

.hb-calendar-weekdays,
.hb-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hb-calendar-weekdays {
    flex-shrink: 0;
}

.hb-calendar-weekday {
    padding: 0.65rem 0.35rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hb-muted);
    background: var(--hb-surface-2);
    border-bottom: 1px solid var(--hb-border);
}

.hb-calendar-weeks {
    --hb-cal-lane-h: 1.85rem;
    --hb-cal-pad: 0.35rem;
    --hb-cal-daynum: 1.65rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.hb-calendar-month {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.hb-calendar-month:first-of-type {
    min-height: 100%;
}

.hb-calendar-month:first-of-type .hb-calendar-week {
    flex: 1 1 auto;
}

.hb-calendar-month + .hb-calendar-month {
    margin-top: 0.45rem;
    border-top: 4px solid var(--hb-primary);
    box-shadow: 0 -6px 0 var(--hb-bg);
}

.hb-calendar-month-label {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f766e;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.18) 0%, #ecfdf5 42%, var(--hb-surface) 100%);
    border-bottom: 1px solid rgba(13, 148, 136, 0.28);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.hb-calendar-month-label::before {
    content: '';
    flex-shrink: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--hb-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
}

.hb-calendar-infinite-sentinel {
    flex: 0 0 auto;
    min-height: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-anchor: none;
}

.hb-calendar-infinite-sentinel.is-loading,
.hb-calendar-infinite-sentinel.is-error {
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
}

.hb-calendar-infinite-status {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hb-muted);
}

.hb-calendar-infinite-sentinel.is-error {
    cursor: pointer;
}

.hb-calendar-infinite-sentinel.is-error .hb-calendar-infinite-status {
    color: var(--hb-error-text);
}

.hb-calendar-week {
    position: relative;
    flex: 1 0 auto;
    min-height: calc(
        var(--hb-cal-pad) * 2
        + var(--hb-cal-daynum)
        + 0.2rem
        + var(--hb-cal-lanes, 2) * var(--hb-cal-lane-h)
        + var(--hb-cal-google-lanes, 0) * (var(--hb-cal-google-lane-h, 1rem) + 0.12rem)
        + var(--hb-cal-todo-lanes, 0) * (var(--hb-cal-lane-h) + 0.12rem)
    );
}

.hb-calendar-cell {
    --hb-cal-pad: 0.35rem;
    display: block;
    border-right: 1px solid var(--hb-border);
    border-bottom: 1px solid var(--hb-border);
    padding: var(--hb-cal-pad);
    min-height: 5rem;
    background: var(--hb-surface);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--hb-transition);
}

a.hb-calendar-cell:hover,
a.hb-calendar-cell:focus-visible {
    color: inherit;
    text-decoration: none;
    background: #f0fdfa;
}

.hb-calendar-cell:nth-child(7) { border-right: none; }

.hb-calendar-cell--outside {
    background: #f8fafc;
}

a.hb-calendar-cell--outside:hover,
a.hb-calendar-cell--outside:focus-visible {
    background: #eef6f5;
}

.hb-calendar-cell--outside .hb-calendar-daynum {
    color: var(--hb-muted);
    font-weight: 600;
}

.hb-calendar-cell--month-break {
    position: relative;
    padding-left: calc(var(--hb-cal-pad) + 0.28rem);
    box-shadow: inset 4px 0 0 var(--hb-primary);
    background-image: linear-gradient(90deg, rgba(13, 148, 136, 0.12), transparent 42%);
}

a.hb-calendar-cell--month-break:hover,
a.hb-calendar-cell--month-break:focus-visible {
    background-image: linear-gradient(90deg, rgba(13, 148, 136, 0.18), transparent 48%);
}

.hb-calendar-cell--month-start .hb-calendar-daynum {
    color: #0f766e;
    font-weight: 800;
}

.hb-calendar-cell--month-start.hb-calendar-cell--outside {
    background-color: rgba(13, 148, 136, 0.05);
}

.hb-calendar-cell--month-start.hb-calendar-cell--outside .hb-calendar-daynum {
    color: #0f766e;
}

.hb-calendar-dayhead {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: var(--hb-cal-daynum, 1.65rem);
    max-width: 100%;
    pointer-events: none;
}

.hb-calendar-month-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    background: var(--hb-primary);
    white-space: nowrap;
}

.hb-calendar-cell--empty {
    background: repeating-linear-gradient(
        -45deg,
        #f8fafc,
        #f8fafc 6px,
        #f1f5f9 6px,
        #f1f5f9 12px
    );
}

.hb-calendar-cell.is-today {
    background: rgba(13, 148, 136, 0.06);
    box-shadow: inset 0 0 0 2px rgba(13, 148, 136, 0.35);
}

.hb-calendar-cell.is-today.hb-calendar-cell--month-break {
    box-shadow: inset 4px 0 0 var(--hb-primary), inset 0 0 0 2px rgba(13, 148, 136, 0.35);
}

a.hb-calendar-cell.is-today:hover,
a.hb-calendar-cell.is-today:focus-visible {
    background: rgba(13, 148, 136, 0.12);
}

.hb-calendar-daynum {
    position: relative;
    z-index: 0;
    font-size: 0.78rem;
    font-weight: 700;
    width: var(--hb-cal-daynum, 1.65rem);
    height: var(--hb-cal-daynum, 1.65rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    pointer-events: none;
}

.hb-calendar-cell.is-today .hb-calendar-daynum {
    background: var(--hb-primary);
    color: #fff;
}

.hb-calendar-cell.is-today.hb-calendar-cell--month-start .hb-calendar-daynum {
    color: #fff;
}

.hb-calendar-bars-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hb-calendar-bars-layer--google {
    z-index: 2;
}

.hb-calendar-bars-layer--google .hb-calendar-bar {
    --hb-cal-google-lane-h: 0.95rem;
    --hb-cal-bar-top: calc(
        var(--hb-cal-pad)
        + var(--hb-cal-daynum, 1.65rem)
        + 0.2rem
        + var(--hb-cal-lanes, 1) * var(--hb-cal-lane-h)
        + 0.12rem
        + var(--hb-event-lane, 0) * var(--hb-cal-google-lane-h)
    );
    height: calc(var(--hb-cal-google-lane-h) - 2px);
    font-size: 0.58rem;
    line-height: 1.1;
    padding: 0 0.28rem;
    font-weight: 600;
}

.hb-calendar-bars-layer--todo {
    z-index: 3;
}

.hb-calendar-bars-layer--todo .hb-calendar-bar {
    --hb-cal-bar-top: calc(
        var(--hb-cal-pad)
        + var(--hb-cal-daynum, 1.65rem)
        + 0.2rem
        + var(--hb-cal-lanes, 1) * var(--hb-cal-lane-h)
        + var(--hb-cal-google-lanes, 0) * (var(--hb-cal-google-lane-h, 0.95rem) + 0.12rem)
        + 0.12rem
        + var(--hb-event-lane, 0) * var(--hb-cal-lane-h)
    );
    height: calc(var(--hb-cal-lane-h) - 4px);
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 0 0.4rem;
    font-weight: 700;
    border-radius: 5px;
    background: var(--hb-event-bg, #7c3aed);
    color: var(--hb-event-color, #fff);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.hb-calendar-bars-layer--todo .hb-calendar-bar.is-round-left {
    border-left-width: 4px;
    border-left-color: var(--hb-event-accent, #5b21b6);
}

.hb-calendar-bars-layer--todo .hb-calendar-bar.is-todo-overdue {
    background: #e11d48;
    color: #fff;
    --hb-event-accent: #9f1239;
}

.hb-calendar-bars-layer--todo .hb-calendar-bar.is-todo-done {
    background: #94a3b8;
    color: #fff;
    --hb-event-accent: #64748b;
}

.hb-calendar-todo-mark {
    flex-shrink: 0;
    font-size: 0.72em;
    opacity: 0.9;
}

.hb-calendar-bar.is-todo-done {
    opacity: 0.78;
}

.hb-calendar-bar.is-todo-done .hb-calendar-bar-label {
    text-decoration: line-through;
}

.hb-calendar-bar {
    --hb-cal-bar-top: calc(
        var(--hb-cal-pad)
        + var(--hb-cal-daynum, 1.65rem)
        + 0.2rem
        + var(--hb-event-lane, 0) * var(--hb-cal-lane-h)
    );
    position: absolute;
    top: var(--hb-cal-bar-top);
    height: calc(var(--hb-cal-lane-h) - 4px);
    display: flex;
    align-items: center;
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 0 0.4rem;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    background: var(--hb-event-bg, var(--hb-primary-soft));
    color: var(--hb-event-color, #0f172a);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    transition: filter var(--hb-transition);
    border-radius: 0;
    pointer-events: auto;
}

.hb-calendar-bar.is-round-left {
    border-left: 3px solid var(--hb-event-accent, var(--hb-primary));
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding-left: 0.35rem;
}

.hb-calendar-bar.is-round-right {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.hb-calendar-bar-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-calendar-bar-content {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.hb-calendar-bar-content.is-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    line-height: 1.05;
}

.hb-calendar-bar-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.hb-calendar-bar-row--feedback {
    padding-left: 0.05rem;
}

.hb-calendar-bar-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    flex-shrink: 0;
}

.hb-calendar-ops {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    flex-shrink: 0;
}

.hb-calendar-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    flex-shrink: 0;
    margin-left: 0.24rem;
    padding-left: 0.24rem;
    border-left: 1px solid rgba(15, 23, 42, 0.14);
}

.hb-calendar-bar-content.is-stacked .hb-calendar-feedback {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.hb-calendar-bar.is-stacked {
    align-items: flex-start;
    padding-top: 0.12rem;
    padding-bottom: 0.1rem;
    line-height: 1.05;
}

.hb-calendar-op {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 2px;
    color: rgba(15, 23, 42, 0.38);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
}

.hb-calendar-op.is-done {
    color: #fff;
    background: var(--hb-status-done);
    box-shadow: none;
}

.hb-calendar-op.is-progress {
    color: #fff;
    background: var(--hb-status-progress);
    box-shadow: none;
}

.hb-calendar-op.is-self {
    color: #fff;
    background: var(--hb-status-self);
    box-shadow: none;
}

.hb-calendar-op--feedback.is-done {
    background: var(--hb-status-feedback-done);
}

.hb-icon--calendar-op {
    width: 0.58rem;
    height: 0.58rem;
    flex-shrink: 0;
}

.hb-calendar-bar:hover {
    text-decoration: none;
    filter: brightness(0.96);
    color: var(--hb-event-color, #0f172a);
}

.hb-calendar-bar.is-google-calendar {
    opacity: 0.94;
    border-left-width: 2px;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.16) 3px,
        rgba(255, 255, 255, 0.16) 6px
    );
}

.hb-calendar-bar.is-google-calendar.is-google-not-busy {
    box-shadow:
        inset 0 0 0 2px #dc2626,
        inset 4px 0 0 #dc2626;
}

.hb-calendar-bar.is-google-calendar.is-google-not-busy.is-round-left {
    border-left-color: #dc2626;
    border-left-width: 4px;
}

.hb-google-availability {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0.92;
    padding: 0.05rem 0.28rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.hb-google-availability--alert,
.hb-google-availability-badge--alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
    opacity: 1;
}

.hb-google-availability-badge--alert {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.hb-html-notes {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--hb-text, #0f172a);
    overflow: visible;
}

.hb-html-notes p {
    margin: 0 0 0.65rem;
}

.hb-html-notes p:last-child {
    margin-bottom: 0;
}

.hb-html-notes ul,
.hb-html-notes ol {
    margin: 0 0 0.65rem 1.2rem;
    padding: 0;
}

.hb-html-notes a {
    color: var(--hb-primary);
    text-decoration: underline;
}

.hb-field--wysiwyg .tox-tinymce {
    border-radius: 8px;
    border-color: var(--hb-border, #cbd5e1);
}

.hb-field--wysiwyg .tox .tox-edit-area__iframe {
    background: #fff;
}

.hb-page--data-grid {
    width: 100%;
    max-width: none;
}

.hb-data-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    box-shadow: var(--hb-shadow-sm);
}

.hb-field--inline {
    margin-bottom: 0;
    min-width: 10rem;
}

.hb-field--inline span {
    font-size: 0.75rem;
}

.hb-field--inline input[type="date"] {
    width: auto;
    min-width: 10rem;
    padding: 0.55rem 0.7rem;
}

.hb-data-grid-count {
    margin: 0 0 0 auto;
    align-self: center;
    font-size: 0.875rem;
}

.hb-data-grid-scroll {
    display: flex;
    flex-direction: column;
}

.hb-data-grid-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    height: 14px;
    margin-bottom: 0.35rem;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface-2);
    -webkit-overflow-scrolling: touch;
}

.hb-data-grid-scroll-top[hidden] {
    display: none;
}

.hb-data-grid-scroll-top-inner {
    height: 1px;
}

.hb-data-grid-wrap {
    overflow: auto;
    overflow-x: auto;
    max-height: calc(100dvh - 14rem);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    background: var(--hb-surface);
    box-shadow: var(--hb-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

[data-hb-data-grid] tr[data-hb-data-row][hidden],
[data-hb-data-grid] tr[hidden],
[data-hb-data-grid] tfoot[hidden] {
    display: none !important;
}

.hb-table--data-grid {
    font-size: 0.8125rem;
    width: max-content;
    min-width: 100%;
}

.hb-table--data-grid th,
.hb-table--data-grid td {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    vertical-align: top;
}

.hb-table--data-grid td[data-col="notes"],
.hb-table--data-grid td[data-col="settlement_lines"],
.hb-table--data-grid td[data-col="revenue_other_note"],
.hb-table--data-grid td[data-col="expense_other_note"] {
    white-space: pre-wrap;
    min-width: 12rem;
    max-width: none;
    overflow: visible;
}

.hb-data-grid-filters th {
    padding: 0.35rem 0.45rem;
    background: var(--hb-surface-2);
    position: sticky;
    top: 2.35rem;
    z-index: 2;
}

.hb-data-grid-head th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--hb-surface);
}

.hb-data-grid-filter {
    width: 100%;
    min-width: 7rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--hb-border-strong);
    border-radius: 6px;
    font: inherit;
    font-size: 0.75rem;
    background: #fff;
}

.hb-data-grid-guest a {
    font-weight: 600;
}

/* Fullscreen page (hamburger nav on desktop too) */
.hb-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.hb-nav-toggle,
.hb-nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    color: var(--hb-text);
    cursor: pointer;
    flex-shrink: 0;
}

.hb-nav-toggle:hover,
.hb-nav-toggle:focus-visible,
.hb-nav-close:hover,
.hb-nav-close:focus-visible {
    outline: none;
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px var(--hb-primary-soft);
}

.hb-nav-backdrop {
    display: none;
}

.hb-page-fullscreen .hb-nav-toggle {
    display: inline-flex;
}

.hb-page-fullscreen .hb-nav-close {
    display: inline-flex;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hb-page-fullscreen .hb-page-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hb-page-fullscreen .hb-page-title {
    flex: 1 1 auto;
    min-width: 0;
}

.hb-page-fullscreen .hb-sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
}

.hb-page-fullscreen.is-nav-open .hb-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.35);
}

.hb-page-fullscreen .hb-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.hb-page-fullscreen .hb-nav-backdrop[hidden] {
    display: none;
}

.hb-page-fullscreen .hb-bottom-nav {
    display: none !important;
}

.hb-page-fullscreen .hb-main {
    padding-bottom: 1.5rem;
}

.hb-page--bookings-finance {
    width: 100%;
    max-width: none;
}

.hb-bf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.hb-bf-subtitle {
    margin: 0;
}

.hb-bf-toolbar .hb-data-grid-count {
    margin-left: auto;
}

.hb-bf-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.hb-bf-toolbar .hb-btn {
    flex: 0 0 auto;
}

.hb-bf-filters {
    margin-bottom: 0.85rem;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-sm);
}

.hb-bf-filters > summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hb-text);
    list-style: none;
}

.hb-bf-filters > summary::-webkit-details-marker {
    display: none;
}

.hb-bf-filters > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.45rem;
    color: var(--hb-muted);
    transition: transform 0.15s ease;
}

.hb-bf-filters[open] > summary::before {
    transform: rotate(90deg);
}

.hb-bf-filters-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--hb-border);
}

.hb-bf-filters-body .hb-field {
    margin-bottom: 0;
}

.hb-bf-filters-body .hb-rezsi-period-filters {
    grid-column: 1 / -1;
}

.hb-bf-filters-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hb-bf-bulk-actions {
    margin-bottom: 0.75rem;
}

.hb-bf-selected-count {
    font-size: 0.8125rem;
}

.hb-bf-selection-sums {
    position: sticky;
    bottom: 0;
    z-index: 4;
}

.hb-bf-selection-sums td {
    background: #eef2ff;
    border-top: 2px solid #6366f1;
    font-weight: 700;
    font-size: 0.78rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.hb-bf-selection-sums .hb-bf-sticky {
    background: #eef2ff;
    z-index: 5;
}

.hb-bf-wrap {
    max-height: calc(100dvh - 8.5rem);
}

.hb-table--bookings-finance {
    font-size: 0.78rem;
}

.hb-table--bookings-finance th,
.hb-table--bookings-finance td {
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.25;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.hb-table--bookings-finance td[data-col="expense_other_note"] {
    white-space: nowrap;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-bf-sticky--check {
    left: 0;
    width: 2.35rem;
    min-width: 2.35rem;
    max-width: 2.35rem;
    text-align: center;
    z-index: 3;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
.hb-bf-sticky--guest { left: 2.35rem; min-width: 8rem; max-width: 10rem; }
.hb-bf-sticky--period { left: 10.35rem; min-width: 5.75rem; max-width: 6.5rem; }
.hb-bf-sticky--dates { left: 16.1rem; min-width: 7.25rem; }
.hb-table--bookings-finance .hb-bf-sticky--channel { left: 23.35rem; min-width: 5.5rem; box-shadow: 4px 0 8px rgba(15, 23, 42, 0.06); }
.hb-bf-sticky--channel,
.hb-bf-sticky--guests { left: 17.6rem; min-width: 5.5rem; box-shadow: 4px 0 8px rgba(15, 23, 42, 0.06); }

.hb-table--bookings-finance td[data-col="guest_name"] {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-bf-group-head th {
    position: sticky;
    top: 0;
    z-index: 5;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid var(--hb-border);
}

.hb-bf-group--info { background: #f1f5f9; color: #475569; }
.hb-bf-group--ops { background: #fef3c7; color: #b45309; }
.hb-bf-group--revenue { background: #ecfdf5; color: #047857; }
.hb-bf-group--expense { background: #fff7ed; color: #c2410c; }
.hb-bf-group--summary { background: #eef2ff; color: #4338ca; }

.hb-table--bookings-finance .hb-data-grid-head th {
    top: 1.7rem;
}

.hb-table--bookings-finance .hb-data-grid-filters th {
    top: 4rem;
    z-index: 4;
}

.hb-table--bookings-finance .hb-bf-visible-sums th {
    position: sticky;
    top: 6.55rem;
    z-index: 4;
    background: #e0e7ff;
    border-bottom: 2px solid #6366f1;
    font-weight: 700;
    font-size: 0.78rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.hb-table--bookings-finance .hb-bf-sticky {
    position: sticky;
    background: var(--hb-surface);
    z-index: 1;
}

.hb-table--bookings-finance .hb-data-grid-filters .hb-bf-sticky {
    background: var(--hb-surface-2);
}

.hb-table--bookings-finance .hb-bf-visible-sums .hb-bf-sticky {
    background: #e0e7ff;
}

.hb-table--bookings-finance thead .hb-bf-sticky {
    z-index: 6;
}

.hb-table--bookings-finance .hb-bf-visible-sums th.is-positive { color: #0d9488; }
.hb-table--bookings-finance .hb-bf-visible-sums th.is-negative { color: #dc2626; }

.hb-table--bookings-finance td.is-positive { color: #0d9488; font-weight: 600; }
.hb-table--bookings-finance td.is-negative { color: #dc2626; font-weight: 600; }

.hb-table--bookings-finance .hb-data-grid-filter {
    min-width: 4.5rem;
}

.hb-table--bookings-finance td[data-col="guest_name"] a {
    font-weight: 600;
    color: var(--hb-primary);
    text-decoration: none;
}

.hb-table--bookings-finance td[data-col="guest_name"] a:hover {
    text-decoration: underline;
}

.hb-bf-row--finance td[data-col="channel"] {
    font-style: italic;
    color: #b45309;
}

.hb-bf-row--finance td[data-col="guest_name"] a {
    color: #b45309;
}

.hb-bf-row--settlement td[data-col="channel"] {
    font-style: italic;
    color: #5b21b6;
}

.hb-bf-row--settlement td[data-col="guest_name"] a {
    color: #5b21b6;
}

.hb-bf-row--property-expense td[data-col="channel"] {
    font-style: italic;
    color: #0f766e;
}

.hb-bf-row--property-expense td[data-col="guest_name"] a {
    color: #0f766e;
}

.hb-settlement-who-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.hb-settlement-who-row .hb-seg {
    flex: 0 1 auto;
}

.hb-settlement-who-other {
    margin: 0;
    flex: 1 1 10rem;
    min-width: 8rem;
    max-width: 16rem;
}

.hb-settlement-who-other.is-hidden {
    display: none;
}

.hb-settlement-who-other input {
    width: 100%;
}

.hb-seg a.hb-seg-option {
    text-decoration: none;
}

.hb-page--settlements .hb-settlements-toolbar {
    align-items: flex-start;
}

.hb-settlements-toolbar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    flex: 1 1 14rem;
}

.hb-settlements-balance {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--hb-border);
    border-radius: 0.5rem;
    background: var(--hb-surface-2);
    min-width: 8rem;
}

.hb-settlements-balance-label {
    font-size: 0.75rem;
    color: var(--hb-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hb-settlements-balance-value {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.hb-settlements-balance-value.is-positive { color: #0d9488; }
.hb-settlements-balance-value.is-negative { color: #dc2626; }

.hb-settlements-start {
    margin: 0 0 0.85rem;
}

.hb-settlements-start-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.hb-settlements-period-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
}

.hb-settlements-start-form .hb-field--inline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

.hb-settlements-start-form .hb-field--inline input[type="date"] {
    min-width: 10rem;
}

.hb-settlements-end-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

.hb-settlements-end-mode-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hb-muted);
}

.hb-settlements-mode-form {
    display: contents;
    margin: 0;
}

.hb-settlements-mode-form .hb-seg-option {
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--hb-muted);
}

.hb-settlements-mode-form .hb-seg-option.is-active {
    background: var(--hb-primary);
    color: #fff;
}

.hb-settlements-mode-form .hb-seg-option:hover:not(.is-active) {
    color: var(--hb-text);
    background: rgba(15, 23, 42, 0.04);
}

.hb-settlements-end.is-disabled {
    opacity: 0.55;
}

.hb-settlements-end.is-disabled .hb-settlements-end-slider {
    cursor: not-allowed;
}

.hb-settlements-start-hint {
    font-size: 0.8125rem;
}

.hb-settlements-end {
    margin-top: 0.85rem;
    max-width: 36rem;
}

.hb-settlements-end-labels {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.hb-settlements-end-slider {
    width: 100%;
    margin: 0;
    accent-color: var(--hb-primary);
    cursor: pointer;
}

.hb-settlements-end-range {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.hb-settlements-archive {
    margin-top: 1.25rem;
    border: 1px solid var(--hb-border);
    border-radius: 0.5rem;
    background: var(--hb-surface);
}

.hb-settlements-archive > summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-weight: 600;
    list-style: none;
}

.hb-settlements-archive > summary::-webkit-details-marker {
    display: none;
}

.hb-settlements-archive > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform 0.15s ease;
}

.hb-settlements-archive[open] > summary::before {
    transform: rotate(90deg);
}

.hb-settlements-archive .hb-table-wrap {
    border-top: 1px solid var(--hb-border);
    padding: 0.5rem;
}

.hb-table--settlements {
    width: 100%;
}

@media (max-width: 899px) {
    /* Full-viewport lock only on calendar.php (has .hb-calendar-shell), not booking/google subpages */
    .hb-page-calendar:has(.hb-calendar-shell) .hb-main {
        display: flex;
        flex-direction: column;
        padding: 0.35rem 0.4rem calc(var(--hb-bottom-nav-h) + 0.35rem);
        overflow: hidden;
        box-sizing: border-box;
    }

    .hb-page-calendar:has(.hb-calendar-shell) .hb-main-inner {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .hb-page-calendar .hb-page-head {
        display: none;
    }

    .hb-page-calendar .hb-msg {
        margin: 0 0 0.25rem;
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
    }

    .hb-page-calendar .hb-calendar-shell {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .hb-page-calendar .hb-toolbar {
        margin-bottom: 0.3rem;
    }

    .hb-page-calendar:has(.hb-calendar-shell) .hb-calendar-toolbar {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .hb-page-calendar:has(.hb-calendar-shell) .hb-calendar-toolbar-property {
        flex: 1 1 100%;
        max-width: none;
    }

    .hb-page-calendar:has(.hb-calendar-shell) .hb-calendar-toolbar-actions {
        gap: 0.18rem;
    }

    .hb-page-calendar .hb-calendar-toolbar .hb-btn-icon {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1rem;
    }

    .hb-page-calendar .hb-calendar-toolbar .hb-btn-primary {
        color: #fff;
    }

    .hb-page-calendar .hb-calendar-title {
        font-size: 0.82rem;
    }

    .hb-page-calendar .hb-calendar-toolbar-property {
        flex-basis: 7.5rem;
        max-width: 9rem;
    }

    .hb-page-calendar .hb-cal-property-toggle {
        height: 1.85rem;
        padding: 0 0.4rem;
    }

    .hb-page-calendar .hb-cal-property-toggle-label {
        font-size: 0.72rem;
    }

    .hb-page-calendar .hb-calendar {
        flex: 1;
        min-height: 0;
        border-radius: var(--hb-radius-sm);
    }

    .hb-page-calendar .hb-calendar-weeks {
        --hb-cal-lane-h: 1rem;
        --hb-cal-daynum: 1rem;
        --hb-cal-pad: 0.12rem;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .hb-page-calendar .hb-calendar-week {
        flex: 1 1 auto;
        min-height: calc(
            var(--hb-cal-pad) * 2
            + var(--hb-cal-daynum)
            + 0.2rem
            + var(--hb-cal-lanes, 2) * var(--hb-cal-lane-h)
            + var(--hb-cal-google-lanes, 0) * (var(--hb-cal-google-lane-h, 1rem) + 0.12rem)
            + var(--hb-cal-todo-lanes, 0) * (var(--hb-cal-lane-h) + 0.12rem)
        );
    }

    .hb-page-calendar .hb-calendar-month + .hb-calendar-month {
        margin-top: 0.28rem;
        border-top-width: 3px;
        box-shadow: 0 -4px 0 var(--hb-bg);
    }

    .hb-page-calendar .hb-calendar-month-label {
        padding: 0.38rem 0.55rem;
        font-size: 0.78rem;
        gap: 0.4rem;
    }

    .hb-page-calendar .hb-calendar-month-label::before {
        width: 0.34rem;
        height: 0.34rem;
        box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.22);
    }

    .hb-page-calendar .hb-calendar-cell--month-break {
        padding-left: calc(var(--hb-cal-pad) + 0.18rem);
        box-shadow: inset 3px 0 0 var(--hb-primary);
    }

    .hb-page-calendar .hb-calendar-dayhead {
        gap: 0.15rem;
    }

    .hb-page-calendar .hb-calendar-month-chip {
        padding: 0.04rem 0.22rem;
        font-size: 0.5rem;
    }

    .hb-page-calendar .hb-calendar-cell {
        min-height: 0;
        padding: var(--hb-cal-pad);
    }

    .hb-page-calendar .hb-calendar-weekday {
        padding: 0.18rem 0.08rem;
        font-size: 0.55rem;
        letter-spacing: 0;
    }

    .hb-page-calendar .hb-calendar-daynum {
        font-size: 0.58rem;
        width: var(--hb-cal-daynum);
        height: var(--hb-cal-daynum);
    }

    .hb-page-calendar .hb-calendar-bar {
        font-size: 0.48rem;
        line-height: 1.05;
        padding: 0 0.12rem;
        border-left-width: 2px;
    }

    .hb-page-calendar .hb-calendar-bar-badges,
    .hb-page-calendar .hb-calendar-bar-row--feedback,
    .hb-page-calendar .hb-calendar-ops {
        display: none;
    }

    .hb-page-calendar .hb-calendar-bar-content.is-stacked {
        flex-direction: row;
        align-items: center;
        gap: 0.1rem;
    }

    .hb-page-calendar .hb-calendar-bar.is-stacked {
        height: calc(var(--hb-cal-lane-h) - 2px);
    }

    .hb-page-calendar .hb-calendar-bars-layer--google .hb-calendar-bar {
        --hb-cal-google-lane-h: 0.62rem;
        font-size: 0.45rem;
        height: calc(var(--hb-cal-google-lane-h) - 1px);
    }

    .hb-page-calendar .hb-calendar-bars-layer--todo .hb-calendar-bar {
        font-size: 0.48rem;
        height: calc(var(--hb-cal-lane-h) - 2px);
    }

    .hb-page-calendar .hb-calendar-op {
        width: 0.52rem;
        height: 0.52rem;
        border-radius: 3px;
    }

    .hb-page-calendar .hb-icon--calendar-op {
        width: 0.42rem;
        height: 0.42rem;
    }

    .hb-page-calendar .hb-calendar-property-note {
        display: none;
    }

    .hb-page-calendar .hb-calendar-filter-toolbar {
        padding: 0.5rem 0.55rem;
        gap: 0.4rem;
        margin-bottom: 0.35rem;
    }

    .hb-page-calendar .hb-calendar-channel-legend {
        max-height: 7.5rem;
        overflow-y: auto;
        margin-top: 0.4rem;
        padding: 0.5rem 0.65rem;
        font-size: 0.72rem;
    }

    .hb-page-calendar .hb-calendar-footer-nav {
        margin-top: 0.3rem;
    }

    .hb-page-calendar .hb-calendar-footer-nav .hb-btn-icon {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1rem;
    }

    .hb-page-calendar .hb-calendar-footer-nav .hb-calendar-title {
        font-size: 0.82rem;
        min-width: 0;
    }

    .hb-page-calendar .hb-calendar-legend {
        margin-top: 0;
        margin-bottom: 0.3rem;
        padding: 0.4rem 0.5rem;
        flex-shrink: 0;
    }

    .hb-page-calendar .hb-calendar-legend-hint {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .hb-page-calendar .hb-google-availability:not(.hb-google-availability--alert) {
        display: none;
    }

    .hb-page-calendar .hb-google-availability--alert {
        display: inline-flex;
        font-size: 0.5rem;
        padding: 0.1rem 0.28rem;
        letter-spacing: 0.02em;
    }

    .hb-page-calendar .hb-calendar-bar.is-google-not-busy::before {
        content: '';
        position: absolute;
        top: 1px;
        right: 1px;
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 999px;
        background: #dc2626;
        box-shadow: 0 0 0 1px #fff;
        pointer-events: none;
    }
}

@media (max-width: 899px) {
    .hb-data-grid-wrap {
        max-height: calc(100dvh - 16rem);
    }

    .hb-data-grid-count {
        margin-left: 0;
        width: 100%;
    }

    .hb-html-notes {
        max-height: min(16rem, 40vh);
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
}

.hb-inline-form {
    display: inline;
    margin: 0;
}

.hb-btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.hb-form-section--google {
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 1rem 1.1rem;
    background: var(--hb-surface-2);
}

/* Property settings layout (desktop-optimized) */
.hb-property-settings {
    display: block;
    width: 100%;
}

.hb-property-settings__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-property-settings__form.hb-form-card,
.hb-property-settings__form.hb-form-card--wide,
.hb-property-settings__aside-actions.hb-form-card--wide {
    max-width: none;
    width: 100%;
}

.hb-form-section--first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

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

.hb-property-section-head .hb-section-title {
    margin-bottom: 0.35rem;
}

.hb-property-section-head .hb-muted {
    margin: 0;
}

.hb-property-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hb-property-basics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1rem;
}

.hb-property-basics-grid > .hb-field {
    margin-bottom: 0;
}

.hb-channel-color-list--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.hb-channel-color-list--grid .hb-channel-color-row {
    height: 100%;
}

.hb-property-google-grid,
.hb-property-contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.hb-property-ical-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hb-property-ical-group .hb-subsection-title {
    margin: 0;
}

.hb-property-ical-group__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.hb-property-ical-group > .hb-muted {
    margin-top: 0;
}

.hb-property-ical-summary__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--hb-primary-soft);
    color: var(--hb-primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
}

.hb-unit-list--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-unit-list--grid li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    background: var(--hb-surface-2);
    border-radius: var(--hb-radius-sm);
}

.hb-property-settings__footer {
    position: sticky;
    bottom: calc(var(--hb-bottom-nav-h) + 0.5rem);
    z-index: 5;
    margin-top: 1.5rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--hb-border);
    background: linear-gradient(to top, var(--hb-surface) 70%, rgba(255, 255, 255, 0.92));
}

.hb-property-settings__footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hb-form-actions--flush {
    margin: 0;
    padding: 0;
    border: 0;
}

#ical-calendars,
#google-calendar,
#property-basics,
#property-channels,
#property-expenses,
#property-contacts,
#property-units {
    scroll-margin-top: 1rem;
}

@media (min-width: 900px) {
    .hb-property-basics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hb-property-basics-grid__name {
        grid-column: 1 / 3;
    }

    .hb-property-basics-grid__address {
        grid-column: 1 / -1;
    }

    .hb-property-basics-grid__color {
        grid-column: 1 / -1;
    }

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

    .hb-property-google-grid {
        grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.4fr);
        align-items: start;
    }

    .hb-property-contacts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

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

    .hb-property-settings__footer {
        bottom: 0.75rem;
    }
}

@media (min-width: 1100px) {
    .hb-channel-color-list--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hb-unit-list--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .hb-channel-color-list--grid {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    }
}

.hb-event-meta {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--hb-event-color, #0f172a);
    opacity: 0.88;
}

.hb-calendar-legend {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: var(--hb-surface);
    border-radius: var(--hb-radius-sm);
    border: 1px solid var(--hb-border);
}

.hb-calendar-legend-hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.hb-calendar-legend-hint + .hb-calendar-legend-hint {
    margin-top: 0.45rem;
}

/* ?? Lang switch ?? */
.hb-lang-switch {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.hb-body-guest .hb-lang-switch {
    background: rgba(255, 255, 255, 0.12);
}

.hb-lang-switch a {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.hb-body-app .hb-sidebar-foot .hb-lang-switch a {
    color: var(--hb-sidebar-text);
}

.hb-lang-switch a.is-active {
    background: var(--hb-primary);
    color: #fff;
}

.hb-body-guest .hb-lang-switch a.is-active {
    background: #fff;
    color: #0f766e;
}

/* ?? A11y ?? */
.hb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ?? Tablet ?? */
@media (min-width: 640px) {
    .hb-main {
        padding: 1.25rem 1.5rem calc(var(--hb-bottom-nav-h) + 1.25rem);
    }

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

    .hb-calendar-week {
        min-height: calc(
            var(--hb-cal-pad) * 2
            + var(--hb-cal-daynum)
            + 0.2rem
            + var(--hb-cal-lanes, 2) * var(--hb-cal-lane-h)
            + var(--hb-cal-google-lanes, 0) * (var(--hb-cal-google-lane-h, 1rem) + 0.12rem)
            + var(--hb-cal-todo-lanes, 0) * (var(--hb-cal-lane-h) + 0.12rem)
            + 0.75rem
        );
    }

    .hb-calendar-cell { min-height: 6rem; }

    .hb-form-card { padding: 1.5rem 1.75rem; }
}

/* ?? Desktop fullscreen ?? */
@media (min-width: 1024px) {
    .hb-sidebar {
        display: flex;
        position: sticky;
        top: 0;
        height: 100dvh;
    }

    .hb-page-fullscreen .hb-sidebar {
        display: flex;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 80;
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: none;
    }

    .hb-page-fullscreen.is-nav-open .hb-sidebar {
        transform: translateX(0);
        box-shadow: 12px 0 32px rgba(15, 23, 42, 0.35);
    }

    .hb-page-fullscreen .hb-bottom-nav {
        display: none !important;
    }

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

    .hb-main {
        padding: 1.75rem 2rem 2rem;
    }

    .hb-property-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 1.25rem;
    }

    .hb-calendar-shell {
        min-height: 0;
    }

    .hb-calendar-weeks {
        --hb-cal-lane-h: 2rem;
    }

    .hb-calendar-week {
        min-height: calc(
            var(--hb-cal-pad) * 2
            + var(--hb-cal-daynum)
            + 0.2rem
            + var(--hb-cal-lanes, 2) * var(--hb-cal-lane-h)
            + var(--hb-cal-google-lanes, 0) * (var(--hb-cal-google-lane-h, 1rem) + 0.12rem)
            + var(--hb-cal-todo-lanes, 0) * (var(--hb-cal-lane-h) + 0.12rem)
            + 1.25rem
        );
    }

    .hb-calendar-cell { min-height: 7rem; }

    .hb-calendar-bar {
        font-size: 0.72rem;
    }

    .hb-auth-layout {
        grid-template-columns: 1.1fr 1fr;
        min-height: 100dvh;
    }

    .hb-auth-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
    }

    .hb-auth-brand-inner {
        max-width: 24rem;
        color: #fff;
        text-align: left;
    }

    .hb-auth-brand-inner .hb-brand-title {
        margin: 0 0 0.75rem;
    }

    .hb-auth-brand-inner p {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.6;
        opacity: 0.85;
    }

    .hb-guest-header { display: none; }

    .hb-form-card { max-width: 720px; }
    .hb-form-card--wide { max-width: 1120px; }

    .hb-booking-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
        gap: 1.5rem;
        align-items: start;
    }

    .hb-field-row.hb-field-row--quad {
        grid-template-columns: minmax(0, 0.75fr) repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .hb-calendar-weeks {
        --hb-cal-lane-h: 2.15rem;
    }
}

@media (max-width: 639px) {
    .hb-field-row { grid-template-columns: 1fr; }
    .hb-field-row--triple,
    .hb-field-row.hb-field-row--quad { grid-template-columns: 1fr; }
    .hb-field-row.hb-field-row--quad > .hb-field { margin-bottom: 1rem; }
    .hb-field-row--price {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .hb-field-row--price > .hb-field:nth-child(4),
    .hb-field-row--price > .hb-field:nth-child(5) {
        grid-column: 1 / -1;
    }
    .hb-field-row--dates { grid-template-columns: 1fr 1fr; }
    .hb-field-row--dates .hb-field--nights { grid-column: 1 / -1; }
    .hb-finance-grid { grid-template-columns: 1fr; }
    .hb-finance-ifa-row { grid-template-columns: 1fr; }
    .hb-finance-others-row { grid-template-columns: 1fr; }
    .hb-ledger-summary { grid-template-columns: 1fr; }
    .hb-booking-layout {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .hb-checklist-row-head {
        flex-wrap: wrap;
    }

    .hb-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hb-property-switcher {
        align-self: flex-end;
        max-width: 100%;
    }

    .hb-property-switcher-select {
        max-width: none;
        flex: 1;
    }

    .hb-filter-inline { flex: 1; }
    .hb-filter-inline select { min-width: 0; }

    .hb-card-actions .hb-btn {
        flex: 1 1 calc(50% - 0.55rem);
        justify-content: center;
    }

    .hb-hero .hb-btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* PM Tools badge ? ne takarja a mobil als? navot */
    .hb-body-app .pm-tools-badge-wrap {
        bottom: calc(var(--hb-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    }
}

.hb-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.hb-inline-form {
    display: inline;
}

.hb-letter-copy-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.hb-letter-copy-form select {
    max-width: 11rem;
    min-width: 8rem;
}

.hb-form-actions--inline {
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
}

.hb-letter-vars-disclosure {
    margin-bottom: 1.25rem;
}

.hb-letter-vars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hb-letter-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    gap: 1.25rem;
    align-items: start;
}

.hb-letter-editor-sidebar {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
}

.hb-letter-editor-sidebar .hb-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.hb-letter-placeholder-group h4 {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hb-muted);
}

.hb-letter-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hb-letter-insert {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.6875rem;
    padding: 0.25rem 0.45rem;
}

.hb-letter-editor-field .tox-tinymce {
    border-radius: var(--hb-radius-sm);
    border-color: var(--hb-border-strong);
    overflow: hidden;
}

.hb-letter-editor-field.is-active-target .tox-tinymce {
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px var(--hb-primary-soft);
}

.hb-letter-target.is-active-target,
.hb-letter-body:focus {
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px var(--hb-primary-soft);
}

input.hb-letter-target.is-active-target {
    border-color: var(--hb-primary);
    box-shadow: 0 0 0 3px var(--hb-primary-soft);
}

.hb-letter-side-status {
    min-height: 1.25rem;
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
}

.hb-letter-upload-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hb-border);
}

.hb-letter-upload-box h4 {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
}

.hb-letter-attachment-list {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.hb-letter-attachment-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    font-size: 0.85rem;
}

.hb-letter-attachment-list .hb-letter-attachment-remove {
    margin-left: auto;
}

.hb-letter-attachment-warn {
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-radius: 0.35rem;
    padding: 0.1rem 0.4rem;
}

.hb-letter-attachment-list li.is-large {
    border-left: 3px solid #f59e0b;
    padding-left: 0.4rem;
}

.hb-letter-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hb-letter-dropzone {
    position: relative;
    margin-top: 0.35rem;
    border: 1.5px dashed var(--hb-border-strong, rgba(15, 23, 42, 0.18));
    border-radius: 0.75rem;
    background: var(--hb-surface-2, #f8fafc);
    padding: 1rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hb-letter-dropzone:hover,
.hb-letter-dropzone:focus-visible {
    border-color: var(--hb-primary, #0d9488);
    outline: none;
}

.hb-letter-dropzone.is-dragover {
    border-color: var(--hb-primary, #0d9488);
    background: var(--hb-primary-soft, rgba(13, 148, 136, 0.12));
    box-shadow: 0 0 0 3px var(--hb-primary-soft, rgba(13, 148, 136, 0.12));
}

.hb-letter-dropzone-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hb-text, #0f172a);
}

.hb-letter-dropzone-title--active {
    color: var(--hb-primary, #0d9488);
}

.hb-letter-dropzone-browse {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
}

.hb-letter-attach-status {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
}

.hb-letter-attach-status.is-warn {
    color: #b45309;
    font-weight: 500;
}

.hb-letter-attach-status[hidden] {
    display: none !important;
}

.hb-letter-test-to {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.hb-letter-test-to input[type="email"] {
    min-width: 14rem;
    max-width: 22rem;
    height: 2.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--hb-border, rgba(15, 23, 42, 0.16));
    border-radius: 0.5rem;
    background: var(--hb-surface, #fff);
    font: inherit;
    font-size: 0.9rem;
}

.hb-letter-test-to input[type="email"]:focus {
    outline: none;
    border-color: var(--hb-primary, #0d9488);
    box-shadow: 0 0 0 3px var(--hb-primary-soft, rgba(13, 148, 136, 0.15));
}

.hb-modal-foot .hb-letter-test-to {
    margin-right: auto;
}

.hb-letter-pdf-gen {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--hb-border, rgba(15, 23, 42, 0.14));
}

.hb-letter-pdf-gen-hint {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
}

.hb-letter-pdf-gen-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.hb-letter-pdf-field {
    margin: 0;
}

.hb-letter-pdf-field select {
    min-width: 6.5rem;
    height: 2.15rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--hb-border, rgba(15, 23, 42, 0.16));
    border-radius: 0.45rem;
    background: var(--hb-surface, #fff);
    font: inherit;
    font-size: 0.85rem;
}

.hb-field--inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-field--inline input[type="checkbox"] {
    width: auto;
}

@media (max-width: 899px) {
    .hb-letter-editor-layout {
        grid-template-columns: 1fr;
    }

    .hb-letter-editor-sidebar {
        position: static;
    }

    .hb-letter-vars-grid {
        grid-template-columns: 1fr;
    }
}

.hb-modal-open {
    overflow: hidden;
}

.hb-modal[hidden] {
    display: none;
}

.hb-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.hb-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-lg);
}

.hb-modal-dialog--wide {
    width: min(100%, 52rem);
}

.hb-modal-head,
.hb-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hb-border);
}

.hb-modal-foot {
    border-bottom: none;
    border-top: 1px solid var(--hb-border);
    justify-content: flex-end;
}

.hb-modal-title {
    margin: 0;
    font-size: 1.125rem;
}

.hb-modal-close {
    border: none;
    background: transparent;
    color: var(--hb-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.hb-modal-body {
    padding: 1rem 1.25rem;
    overflow: auto;
}

.hb-overlap-modal-body {
    margin: 0 0 0.75rem;
}

.hb-overlap-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hb-overlap-list:empty {
    display: none;
}

.hb-overlap-list li {
    padding: 0.55rem 0.7rem;
    border-radius: var(--hb-radius-sm);
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    font-size: 0.9rem;
    line-height: 1.35;
}

.hb-overlap-list strong {
    display: block;
    font-weight: 700;
}

.hb-overlap-list span {
    color: var(--hb-muted);
    font-size: 0.82rem;
}

.hb-modal-dialog--booking-preview {
    width: min(100%, 24rem);
}

.hb-calendar-preview-head {
    border-top: 4px solid var(--hb-preview-accent, var(--hb-primary));
    justify-content: flex-end;
    min-height: 2.5rem;
    padding: 0.35rem 0.5rem 0;
}

.hb-calendar-preview-head .hb-modal-close {
    margin-left: auto;
}

.hb-calendar-preview-body {
    display: grid;
    gap: 0.75rem;
}

.hb-calendar-preview-row {
    margin: 0;
}

.hb-calendar-preview-row--primary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.hb-cal-preview-name {
    margin: 0;
    min-width: 0;
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hb-text);
}

.hb-cal-preview-guests {
    margin: 0;
    flex-shrink: 0;
    max-width: 45%;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hb-muted);
    text-align: right;
    line-height: 1.25;
}

.hb-cal-preview-dates {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--hb-text);
    line-height: 1.35;
}

.hb-cal-preview-extra {
    margin: -0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hb-muted);
}

.hb-cal-preview-notes {
    margin: -0.15rem 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hb-text);
    line-height: 1.4;
}

.hb-calendar-preview-status--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
}

.hb-calendar-preview-badges-block {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.22rem;
    flex-shrink: 0;
}

.hb-calendar-preview-badges-block + .hb-calendar-preview-badges-block {
    padding-left: 0.35rem;
    border-left: 1px solid var(--hb-border);
}

.hb-calendar-preview-badges-block .hb-calendar-op {
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.hb-calendar-preview-badges-block .hb-icon--calendar-op {
    width: 0.78rem;
    height: 0.78rem;
}

.hb-modal--booking-preview .hb-calendar-preview-badges-block.hb-calendar-ops,
.hb-modal--booking-preview .hb-calendar-preview-badges-block.hb-calendar-feedback {
    display: flex;
}

.hb-modal--booking-preview .hb-calendar-preview-badges-block.hb-calendar-feedback {
    margin-left: 0;
}

.hb-modal--booking-preview .hb-calendar-op {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 4px;
}

.hb-modal--booking-preview .hb-icon--calendar-op {
    width: 0.78rem;
    height: 0.78rem;
}

@media (max-width: 899px) {
    .hb-modal.hb-modal--booking-preview {
        align-items: flex-end;
        padding: 0;
    }

    .hb-modal-dialog--booking-preview {
        width: 100%;
        max-width: 100%;
        max-height: min(85vh, calc(100dvh - env(safe-area-inset-bottom, 0px)));
        border-radius: var(--hb-radius-lg) var(--hb-radius-lg) 0 0;
        margin-bottom: 0;
    }

    .hb-modal-foot .hb-btn {
        width: 100%;
        justify-content: center;
    }
}

.hb-letter-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hb-letter-lang-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hb-letter-lang-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #334155;
    background: #f8fafc;
}

.hb-letter-lang > summary {
    font-weight: 600;
}

.hb-letter-lang .hb-letter-tone {
    margin-top: 0.75rem;
}

.hb-letter-preview-tabs .hb-btn.is-active {
    background: var(--hb-primary);
    border-color: var(--hb-primary);
    color: #fff;
}

.hb-letter-preview-meta {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
}

.hb-letter-preview-mail {
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-sm);
    overflow: hidden;
}

.hb-letter-preview-subject {
    padding: 0.85rem 1rem;
    background: var(--hb-surface-2);
    border-bottom: 1px solid var(--hb-border);
}

.hb-letter-preview-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hb-muted);
    margin-bottom: 0.25rem;
}

.hb-letter-preview-body {
    padding: 1rem 1.1rem;
    background: #fff;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.hb-letter-preview-body img {
    max-width: 100%;
    height: auto;
}

.hb-html-notes {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--hb-text, #0f172a);
    overflow: visible;
}

.hb-html-notes p {
    margin: 0 0 0.65rem;
}

.hb-html-notes p:last-child {
    margin-bottom: 0;
}

.hb-html-notes ul,
.hb-html-notes ol {
    margin: 0 0 0.65rem 1.2rem;
    padding: 0;
}

.hb-html-notes a {
    color: var(--hb-primary);
    text-decoration: underline;
}

.hb-field--wysiwyg .tox-tinymce {
    border-radius: 8px;
    border-color: var(--hb-border, #cbd5e1);
}

.hb-field--wysiwyg .tox .tox-edit-area__iframe {
    background: #fff;
}

/* Floating mini toolbar (content top-left, nextgen-style) */
.hb-float-tools {
    position: fixed;
    top: max(0.5rem, env(safe-area-inset-top, 0px));
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    z-index: 99989;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--hb-primary);
    box-shadow: 0 4px 16px var(--hb-primary-glow);
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .hb-float-tools {
        left: calc(var(--hb-sidebar-w) + 0.5rem);
    }
}

.hb-float-tools__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--hb-transition);
    font: inherit;
}

.hb-float-tools__btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hb-float-tools__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hb-float-tools__btn--save {
    background: rgba(255, 255, 255, 0.18);
}

.hb-float-tools__btn--save:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hb-float-tools__icon {
    display: block;
}

/* User management */
.hb-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.hb-page-toolbar .hb-muted {
    margin: 0;
}

.hb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.hb-field--check {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;
}

.hb-field--check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.hb-badge--ok {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.hb-badge--warn {
    background: rgba(234, 179, 8, 0.16);
    color: #a16207;
}

.hb-field--check-wide {
    grid-column: 1 / -1;
}

.hb-field--check-wide small {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
}

.hb-auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
}

.hb-auth-footer a,
.hb-auth-footer .hb-link-btn {
    color: var(--hb-muted, #64748b);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hb-auth-footer .hb-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.hb-row-muted td {
    opacity: 0.65;
}

.hb-user-property-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.hb-user-property-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--hb-border, #e2e8f0);
    border-radius: 10px;
    background: var(--hb-surface, #fff);
}

.hb-user-property-check,
.hb-user-property-default {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.9375rem;
}

.hb-user-property-default {
    color: var(--hb-muted, #64748b);
    font-size: 0.8125rem;
}

/* Tennivalók */
.hb-section-title--sm {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.hb-todo-section {
    margin-top: 1.75rem;
}

.hb-todo-section + .hb-todo-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--hb-border, #e2e8f0);
}

.hb-todo-empty {
    margin: 0.75rem 0 0;
}

.hb-todo-task-title {
    font-weight: 600;
}

.hb-todo-due--now,
.hb-todo-row--due-now .hb-todo-due--now {
    color: #b91c1c;
    font-weight: 600;
}

.hb-todo-row--due-now .hb-todo-task-title {
    color: #b91c1c;
}

.hb-todo-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem 1rem;
    align-items: end;
    margin: 1rem 0 1.25rem;
    max-width: 44rem;
}

.hb-todo-add-form .hb-field {
    margin: 0;
}

.hb-todo-add-actions {
    padding-bottom: 0.1rem;
}

.hb-todo-custom-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 44rem;
}

.hb-todo-custom-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--hb-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
}

.hb-todo-custom-item:target {
    box-shadow: 0 0 0 2px var(--hb-primary, #0d9488);
    background: rgba(13, 148, 136, 0.08);
}

.hb-todo-custom-item.is-done {
    opacity: 0.72;
    background: #f8fafc;
}

.hb-todo-custom-item.is-done .hb-todo-custom-title {
    text-decoration: line-through;
    color: var(--hb-muted, #64748b);
}

.hb-todo-custom-item.is-due-now {
    border-color: #fecaca;
}

.hb-todo-custom-item.is-due-now .hb-todo-custom-title {
    color: #b91c1c;
}

.hb-todo-toggle-form {
    margin: 0;
    min-width: 0;
}

.hb-todo-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    margin: 0;
}

.hb-todo-check-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.hb-todo-custom-title {
    line-height: 1.35;
    word-break: break-word;
}

.hb-todo-custom-due {
    font-size: 0.875rem;
    white-space: nowrap;
}

.hb-todo-delete-form {
    margin: 0;
}

@media (max-width: 700px) {
    .hb-todo-add-form {
        grid-template-columns: 1fr;
    }

    .hb-todo-custom-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "check delete"
            "due due";
    }

    .hb-todo-custom-item .hb-todo-toggle-form {
        grid-area: check;
    }

    .hb-todo-custom-item .hb-todo-custom-due {
        grid-area: due;
    }

    .hb-todo-custom-item .hb-todo-delete-form {
        grid-area: delete;
    }
}

.hb-form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.hb-form-inline .hb-field {
    margin-bottom: 0;
}

.hb-form-card--compact {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.hb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hb-input-inline {
    width: 100%;
    min-width: 6rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--hb-border, #d1d5db);
    border-radius: var(--hb-radius-sm, 4px);
    font: inherit;
}

.hb-rezsi-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hb-stat-card {
    padding: 0.75rem 1rem;
    border: 1px solid var(--hb-border, #e5e7eb);
    border-radius: var(--hb-radius, 8px);
    background: var(--hb-surface, #fff);
    min-width: 8rem;
}

.hb-stat-card__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--hb-muted, #6b7280);
    margin-bottom: 0.25rem;
}

.hb-stat-card__value {
    font-size: 1.125rem;
}

.hb-rezsi-types-panel {
    margin-top: 1.5rem;
}

.hb-rezsi-types-summary {
    cursor: pointer;
    list-style: none;
}

.hb-rezsi-types-summary::-webkit-details-marker {
    display: none;
}

.hb-fieldset {
    border: 1px solid var(--hb-border, #e5e7eb);
    border-radius: var(--hb-radius, 8px);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.hb-fieldset legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

.hb-table-wrap--scroll {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.hb-section-title--sub {
    margin: 1.5rem 0 0.75rem;
    font-size: 1rem;
}

.hb-table--compact td,
.hb-table--compact th {
    font-size: 0.875rem;
    white-space: nowrap;
}

.hb-expense-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hb-expense-chart-panel {
    background: var(--hb-surface, #fff);
    border: 1px solid var(--hb-border, #e5e7eb);
    border-radius: var(--hb-radius, 8px);
    padding: 1rem 1.25rem;
}

.hb-expense-chart-title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.hb-expense-chart-wrap {
    position: relative;
    height: 260px;
}

.hb-expense-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.hb-expense-dashboard-panel {
    min-width: 0;
}

.hb-expense-panel-title {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #1B5E20;
    color: #fff;
    border-radius: var(--hb-radius-sm, 4px) var(--hb-radius-sm, 4px) 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.hb-expense-summary-table {
    margin-top: 0;
    font-size: 0.8125rem;
}

.hb-expense-summary-table thead th {
    background: #2E7D32;
    color: #fff;
    font-weight: 600;
    border-color: #1B5E20;
}

.hb-expense-summary-table tbody tr:nth-child(even) {
    background: #f8faf8;
}

.hb-expense-summary-table td.is-highlight,
.hb-expense-summary-table .is-highlight {
    background: #fff8e1;
    font-weight: 600;
}

.hb-page-fullscreen .hb-main {
    max-width: none;
}

@media (max-width: 1100px) {
    .hb-expense-charts,
    .hb-expense-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hb-expense-chart-wrap {
        height: 220px;
    }
}

.hb-rezsi-items-inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
}

.hb-rezsi-items-inline-grid .hb-field--wide {
    grid-column: 1 / -1;
}

.hb-rezsi-items-inline-grid .hb-field--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hb-rezsi-items-new {
    margin-bottom: 1rem;
}

.hb-rezsi-items-table .hb-table-actions {
    white-space: nowrap;
}

.hb-rezsi-items-filters {
    margin-bottom: 0.75rem;
    border: 1px solid var(--hb-border, #e5e7eb);
    border-radius: var(--hb-radius, 8px);
    background: var(--hb-surface, #fff);
}

.hb-rezsi-items-filters-summary {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    list-style: none;
}

.hb-rezsi-items-filters-summary::-webkit-details-marker {
    display: none;
}

.hb-rezsi-items-filters-summary::after {
    content: '▸';
    float: right;
    opacity: 0.5;
}

.hb-rezsi-items-filters[open] > .hb-rezsi-items-filters-summary::after {
    content: '▾';
}

.hb-rezsi-items-filters-panel {
    padding: 0 0.75rem 0.75rem;
    margin-bottom: 0;
}

.hb-rezsi-items-sum-row th {
    background: #f0f4f8;
    border-bottom: 1px solid var(--hb-border, #e5e7eb);
    font-weight: 600;
    font-size: 0.8125rem;
    vertical-align: middle;
}

.hb-rezsi-items-sum-label {
    text-align: left;
    color: var(--hb-muted, #6b7280);
}

.hb-rezsi-items-sum-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.hb-rezsi-items-sum-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hb-rezsi-items-sum-value {
    font-size: 0.9375rem;
    color: var(--hb-text, #111827);
}

.hb-rezsi-items-sum-value.is-active {
    color: #0D9488;
}

.hb-rezsi-period-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: flex-start;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter {
    min-width: 0;
    flex: 0 1 auto;
    max-width: none;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-label {
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-count {
    font-size: 0.6875rem;
    text-transform: none;
    letter-spacing: normal;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-actions {
    gap: 0.2rem;
    margin-bottom: 0.2rem;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-actions .hb-btn {
    padding: 0.1rem 0.35rem;
    font-size: 0.6875rem;
    line-height: 1.3;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-list {
    gap: 0.15rem 0.35rem;
    max-height: 4.5rem;
    padding: 0.3rem 0.35rem;
    border-radius: 6px;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-list--month {
    display: grid;
    grid-template-columns: repeat(6, minmax(2.5rem, 1fr));
    max-height: none;
    max-width: 20rem;
    gap: 0.3rem;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-list--year {
    display: flex;
    flex-wrap: wrap;
    max-height: none;
    max-width: 20rem;
    gap: 0.3rem;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-option {
    gap: 0.2rem;
    font-size: 0.6875rem;
}

.hb-rezsi-period-filters .hb-rezsi-period-chip {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.hb-rezsi-period-filters .hb-rezsi-period-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.hb-rezsi-period-filters .hb-rezsi-period-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    min-width: 2.5rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--hb-border, #e5e7eb);
    border-radius: 4px;
    background: var(--hb-surface, #fff);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    user-select: none;
}

.hb-rezsi-period-filters .hb-rezsi-period-chip input:checked + span {
    background: #0D9488;
    border-color: #0D9488;
    color: #fff;
    font-weight: 600;
}

.hb-rezsi-period-filters .hb-rezsi-period-chip:hover span {
    border-color: #0D9488;
}

.hb-rezsi-period-filters .hb-rezsi-multi-filter-empty {
    font-size: 0.6875rem;
}

.hb-rezsi-multi-filter {
    min-width: 10rem;
    flex: 1 1 10rem;
    max-width: 18rem;
}

.hb-rezsi-multi-filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}

.hb-rezsi-multi-filter-count {
    font-weight: 400;
}

.hb-rezsi-multi-filter-actions {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.hb-rezsi-multi-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    max-height: 7.5rem;
    overflow: auto;
    padding: 0.5rem;
    border: 1px solid var(--hb-border, #e5e7eb);
    border-radius: var(--hb-radius, 8px);
    background: var(--hb-surface-muted, #f9fafb);
}

.hb-rezsi-multi-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.hb-rezsi-multi-filter-empty {
    margin: 0;
    font-size: 0.8125rem;
}

.hb-rezsi-items-head-row th {
    border-top: none;
}

.hb-rezsi-items-table thead .hb-rezsi-items-head-row .hb-sortable {
    top: auto;
}

.hb-dialog {
    border: none;
    border-radius: var(--hb-radius, 8px);
    padding: 1.25rem 1.5rem;
    max-width: 32rem;
    width: calc(100% - 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hb-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.hb-finance-config-partners {
    margin-bottom: 1rem;
}

.hb-finance-config-head,
.hb-finance-config-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) 6rem 5.5rem auto;
    gap: 0.75rem;
    align-items: end;
}

.hb-finance-config-head {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.hb-finance-config-row {
    margin-bottom: 0.5rem;
}

.hb-finance-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.hb-finance-config-total.is-invalid {
    color: #b91c1c;
}

.hb-finance-config-payable select {
    width: 100%;
    min-width: 4.5rem;
}

.hb-profit-settlement-table .hb-profit-paid-input {
    width: 100%;
    min-width: 5.5rem;
    max-width: 8rem;
    padding: 0.2rem 0.35rem;
    font-size: inherit;
    font-variant-numeric: tabular-nums;
    text-align: right;
    border: 1px solid var(--hb-border, #d1d5db);
    border-radius: 0.25rem;
    background: #fff;
}

.hb-profit-settlement-table .hb-profit-paid-input:focus {
    outline: 2px solid rgba(13, 148, 136, 0.35);
    border-color: var(--hb-teal, #0d9488);
}

.hb-profit-settlement-table .hb-profit-paid-input.is-saving {
    opacity: 0.65;
}

.hb-profit-settlement-table .hb-profit-paid-input.is-error {
    border-color: #b91c1c;
}

.hb-profit-settlement-table .hb-profit-include-cell {
    text-align: center;
    vertical-align: middle;
}

.hb-profit-settlement-table .hb-profit-diff-include {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
}

.hb-profit-settlement-table .hb-profit-diff-include:disabled {
    cursor: wait;
    opacity: 0.6;
}

.hb-profit-settlement-table .is-positive {
    color: #0D9488;
}

.hb-profit-settlement-table .is-negative {
    color: #b91c1c;
}

.hb-profit-settlement-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: calc(100dvh - 13rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-bottom: 1.5rem;
}

.hb-profit-settlement-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.hb-profit-settlement-table thead th {
    position: sticky;
    z-index: 4;
    background: #2E7D32;
    color: #fff;
    box-shadow: 0 1px 0 #1B5E20;
}

.hb-profit-settlement-table thead .hb-rezsi-items-sum-row th {
    top: 0;
    z-index: 5;
}

.hb-profit-settlement-table thead .hb-profit-settlement-head-row th {
    top: var(--hb-profit-sum-row-height, 2.75rem);
    z-index: 4;
}

.hb-profit-settlement-table thead th:first-child,
.hb-profit-settlement-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 5.5rem;
    background: #fff;
    box-shadow: 2px 0 6px rgba(15, 23, 42, 0.08);
}

.hb-profit-settlement-table thead th:first-child {
    z-index: 6;
    background: #2E7D32;
    color: #fff;
}

.hb-profit-settlement-table tbody tr:nth-child(even) td:first-child {
    background: #f8faf8;
}

.hb-profit-settlement-table tbody tr:hover td:first-child {
    background: #eef7ee;
}

.hb-profit-settlement-table .hb-rezsi-items-sum-row th {
    background: #2E7D32;
    color: #fff;
    border-color: #1B5E20;
    font-weight: 700;
}

.hb-profit-settlement-table .hb-rezsi-items-sum-row .hb-rezsi-items-sum-label,
.hb-profit-settlement-table .hb-rezsi-items-sum-row .hb-rezsi-items-sum-value,
.hb-profit-settlement-table .hb-rezsi-items-sum-row .hb-rezsi-items-sum-value.is-active {
    color: #fff;
}

.hb-profit-settlement-table .hb-rezsi-items-sum-row .is-positive {
    color: #d9f99d;
}

.hb-profit-settlement-table .hb-rezsi-items-sum-row .is-negative {
    color: #fecaca;
}

.hb-profit-settlement-table .hb-rezsi-items-sum-row [id$="-pct"] {
    color: #fff;
    font-weight: 700;
}

.hb-profit-period-link {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    color: var(--hb-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hb-profit-period-link:hover {
    color: var(--hb-primary-dark, #4338ca);
}

.hb-profit-breakdown-group + .hb-profit-breakdown-group {
    margin-top: 1.25rem;
}

.hb-profit-breakdown-group-title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.hb-profit-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.hb-profit-breakdown-table th,
.hb-profit-breakdown-table td {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid var(--hb-border);
    vertical-align: top;
}

.hb-profit-breakdown-table th {
    text-align: left;
    font-weight: 600;
    background: var(--hb-surface-2);
}

.hb-profit-breakdown-table .hb-col-num {
    text-align: right;
    white-space: nowrap;
}

.hb-profit-breakdown-table tfoot td {
    font-weight: 700;
    border-top: 2px solid var(--hb-border-strong);
    background: #f8fafc;
}

.hb-profit-breakdown-table a {
    color: var(--hb-primary);
    text-decoration: none;
    font-weight: 600;
}

.hb-profit-breakdown-table a:hover {
    text-decoration: underline;
}

.hb-profit-breakdown-empty {
    margin: 0;
    font-size: 0.8125rem;
}

.hb-profit-breakdown-summary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--hb-border-strong);
}

.hb-profit-breakdown-formula {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
}

.hb-profit-breakdown-summary-table {
    max-width: 28rem;
}

.hb-profit-breakdown-summary-profit td {
    font-weight: 700;
    font-size: 0.9375rem;
    border-top: 2px solid var(--hb-border-strong);
    padding-top: 0.55rem;
}

