/*
 * Zimba Guest production design system
 * Desktop-first operational UI with tablet and phone adaptations.
 */

:root {
    color-scheme: light;
    --zg-white: #ffffff;
    --zg-canvas: #f4f5f6;
    --zg-canvas-deep: #eceef0;
    --zg-surface: #ffffff;
    --zg-surface-soft: #f7f8f9;
    --zg-surface-muted: #eef0f2;
    --zg-ink: #0b0d10;
    --zg-ink-soft: #20242b;
    --zg-muted: #6b7280;
    --zg-muted-strong: #505764;
    --zg-line: #dfe3e7;
    --zg-line-strong: #c9ced4;
    --zg-control-border: #89919b;
    --zg-sidebar: #111519;
    --zg-sidebar-soft: #1a2025;
    --zg-stage: #111619;
    --zg-stage-soft: #22282d;
    --zg-brand: #c7003d;
    --zg-brand-hover: #ab0034;
    --zg-brand-soft: #fff0f4;
    --zg-violet: #7444ed;
    --zg-violet-deep: #4f28bf;
    --zg-violet-soft: #eee7ff;
    --zg-cobalt: #2f73f6;
    --zg-cobalt-soft: #e5efff;
    --zg-lime: #b5f52d;
    --zg-lime-deep: #72b800;
    --zg-lime-soft: #edffd0;
    --zg-amber: #ffab27;
    --zg-amber-deep: #9a5e00;
    --zg-amber-soft: #fff1d8;
    --zg-coral: #f25e57;
    --zg-coral-soft: #ffe2e0;
    --zg-success: #4c9719;
    --zg-success-soft: #e4f8d7;
    --zg-danger: #d92c3d;
    --zg-danger-soft: #ffe0e4;
    --zg-info: #2468db;
    --zg-info-soft: #e5efff;
    --zg-shadow-sm: 0 1px 2px rgb(10 14 18 / 0.04), 0 8px 26px rgb(10 14 18 / 0.04);
    --zg-shadow-md: 0 16px 48px rgb(10 14 18 / 0.13);
    --zg-shadow-stage: 0 12px 26px rgb(11 14 16 / 0.15);
    --zg-radius-xs: 8px;
    --zg-radius-sm: 12px;
    --zg-radius: 16px;
    --zg-radius-lg: 22px;
    --zg-control: 52px;
    --zg-sidebar-width: 260px;
    --zg-topbar-height: 78px;
    --zg-gutter: clamp(20px, 2.1vw, 34px);
    --zg-font: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
    --zg-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --zg-ease: cubic-bezier(.2, .78, .24, 1);
}

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

html {
    height: 100%;
    background: var(--zg-canvas);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--zg-ink);
    background: var(--zg-canvas);
    font-family: var(--zg-font);
    font-size: 16px;
    font-weight: 450;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

button,
[role="button"],
select,
label,
summary {
    -webkit-tap-highlight-color: transparent;
}

button,
[role="button"] {
    touch-action: manipulation;
}

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

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

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--zg-cobalt) 78%, white);
    outline-offset: 3px;
}

::selection {
    color: var(--zg-white);
    background: var(--zg-brand);
}

.zg-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.zg-skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    border-radius: var(--zg-radius-sm);
    color: var(--zg-white);
    background: var(--zg-ink);
    transform: translateY(-180%);
    transition: transform 160ms var(--zg-ease);
}

.zg-skip-link:focus {
    transform: translateY(0);
}

.zg-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.zg-icon-button {
    position: relative;
    display: inline-grid;
    width: var(--zg-control);
    height: var(--zg-control);
    min-width: var(--zg-control);
    padding: 0;
    place-items: center;
    border: 1px solid var(--zg-line);
    border-radius: 50%;
    color: var(--zg-ink-soft);
    background: var(--zg-white);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms var(--zg-ease);
}

.zg-icon-button:hover {
    border-color: var(--zg-line-strong);
    background: var(--zg-surface-soft);
}

.zg-icon-button:active {
    transform: scale(.96);
}

.zg-icon-button.is-disabled,
.zg-icon-button:disabled {
    opacity: .42;
    pointer-events: none;
}

.zg-button {
    display: inline-flex;
    min-height: var(--zg-control);
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: var(--zg-radius-sm);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--zg-ease), box-shadow 160ms ease;
}

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

.zg-button:active {
    transform: translateY(0) scale(.985);
}

.zg-button:disabled,
.zg-button[aria-disabled="true"] {
    opacity: .48;
    pointer-events: none;
}

.zg-button__icon {
    width: 22px;
    height: 22px;
}

.zg-button--primary {
    color: var(--zg-white);
    background: var(--zg-brand);
    box-shadow: 0 8px 18px rgb(199 0 61 / .14);
}

.zg-button--primary:hover,
.zg-button--danger:hover {
    background: var(--zg-brand-hover);
}

.zg-button--secondary {
    border-color: var(--zg-line-strong);
    color: var(--zg-ink);
    background: var(--zg-white);
}

.zg-button--secondary:hover {
    background: var(--zg-surface-soft);
}

.zg-button--quiet {
    color: var(--zg-brand);
    background: transparent;
}

.zg-button--quiet:hover {
    background: var(--zg-brand-soft);
}

.zg-button--danger {
    color: var(--zg-white);
    background: var(--zg-danger);
}

.zg-button--dark {
    color: var(--zg-white);
    background: var(--zg-stage);
}

.zg-button--light {
    color: var(--zg-ink);
    background: var(--zg-white);
}

.zg-button--lime {
    color: #0a1600;
    background: var(--zg-lime);
}

.zg-button--violet {
    color: var(--zg-white);
    background: var(--zg-violet);
}

/* App shell */

.zg-body {
    min-height: 100dvh;
    overflow: visible;
}

.zg-app {
    display: grid;
    grid-template-columns: var(--zg-sidebar-width) minmax(0, 1fr);
    width: 100%;
    min-height: 100dvh;
}

.zg-shell {
    display: flex;
    min-width: 0;
    min-height: 100dvh;
    flex-direction: column;
    background:
        radial-gradient(circle at 82% -12%, rgb(255 255 255 / .96) 0, transparent 35%),
        var(--zg-canvas);
}

.zg-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.zg-page {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 var(--zg-gutter) 20px;
    flex-direction: column;
}

.zg-page__body {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.zg-page__body::-webkit-scrollbar,
.zg-scroll-region::-webkit-scrollbar,
.zg-dialog__body::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.zg-page__body::-webkit-scrollbar-thumb,
.zg-scroll-region::-webkit-scrollbar-thumb,
.zg-dialog__body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #c7cbd0;
    background-clip: padding-box;
}

.zg-page--fit .zg-page__body {
    overflow: visible;
}

.zg-scroll-region {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-x: auto;
}

/* Sidebar */

.zg-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    align-self: start;
    z-index: 110;
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 26px 16px 18px;
    flex-direction: column;
    color: #eef1f4;
    background:
        radial-gradient(circle at 12% 6%, rgb(255 255 255 / .035), transparent 28%),
        linear-gradient(160deg, #111519 0%, #151a1d 55%, #101417 100%);
    box-shadow: inset -1px 0 rgb(255 255 255 / .05);
}

.zg-sidebar__head {
    display: flex;
    min-height: 74px;
    padding: 0 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.zg-property {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.zg-property__name {
    max-width: 194px;
    overflow: hidden;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-property__location {
    max-width: 182px;
    overflow: hidden;
    color: #c4c9ce;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-sidebar__close {
    display: none;
    border-color: rgb(255 255 255 / .12);
    color: var(--zg-white);
    background: rgb(255 255 255 / .06);
}

.zg-nav {
    min-height: 0;
    padding: 2px 0 20px;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.zg-nav::-webkit-scrollbar {
    display: none;
}

.zg-nav__group + .zg-nav__group {
    margin-top: 10px;
}

.zg-nav__label {
    margin: 0 14px 5px;
    color: #787f86;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.zg-nav__items {
    display: grid;
    gap: 2px;
}

.zg-nav__item {
    position: relative;
    display: grid;
    min-height: 48px;
    padding: 0 13px;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #e3e7ea;
    font-size: 15px;
    font-weight: 540;
    transition: color 150ms ease, background 150ms ease, transform 150ms var(--zg-ease);
}

.zg-nav__item:hover {
    color: var(--zg-white);
    background: rgb(255 255 255 / .065);
    transform: translateX(2px);
}

.zg-nav__item.is-active {
    color: var(--zg-ink);
    background: var(--zg-white);
    box-shadow: 0 8px 24px rgb(0 0 0 / .18);
}

.zg-nav__icon {
    width: 22px;
    height: 22px;
    justify-self: center;
}

.zg-nav__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-nav__count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--zg-white);
    background: rgb(255 255 255 / .12);
    font-size: 12px;
    font-weight: 750;
    line-height: 24px;
    text-align: center;
}

.zg-nav__item.is-active .zg-nav__count {
    color: var(--zg-brand);
    background: var(--zg-brand-soft);
}

.zg-sidebar__foot {
    padding: 14px 6px 0;
    border-top: 1px solid rgb(255 255 255 / .16);
}

.zg-user-card {
    display: grid;
    width: 100%;
    min-height: 58px;
    padding: 4px;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    border: 0;
    color: var(--zg-white);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.zg-user-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.zg-user-card__copy strong,
.zg-user-card__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-user-card__copy strong {
    font-size: 14px;
}

.zg-user-card__copy small {
    color: #b7bdc3;
    font-size: 12px;
}

.zg-user-card__arrow {
    width: 18px;
    height: 18px;
}

.zg-sidebar__product {
    display: block;
    margin: 7px 4px 0;
    color: #70777e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Organisation and property context */

.zg-context-switcher {
    position: relative;
    min-width: 0;
}

.zg-property--switcher {
    position: relative;
    width: 100%;
    padding: 0 30px 0 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.zg-property__chevron {
    position: absolute;
    top: 17px;
    right: 0;
    width: 17px;
    height: 17px;
    color: #aeb4bb;
    transition: transform 160ms ease;
}

.zg-context-switcher.is-open .zg-property__chevron {
    transform: rotate(180deg);
}

.zg-context-switcher__panel {
    position: absolute;
    z-index: 500;
    top: calc(100% + 10px);
    left: 0;
    width: 330px;
    max-height: min(560px, calc(100dvh - 130px));
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius);
    color: var(--zg-ink);
    background: var(--zg-white);
    box-shadow: var(--zg-shadow-md);
}

.zg-context-switcher__panel[hidden] {
    display: none;
}

.zg-context-switcher__panel section + section {
    padding-top: 9px;
    margin-top: 9px;
    border-top: 1px solid var(--zg-line);
}

.zg-context-switcher__panel h2 {
    margin: 4px 9px 6px;
    color: var(--zg-muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.zg-context-switcher__panel form {
    margin: 0;
}

.zg-context-switcher__panel [role="option"] {
    display: grid;
    width: 100%;
    min-height: 58px;
    padding: 7px 9px;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    color: var(--zg-ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.zg-context-switcher__panel [role="option"]:hover,
.zg-context-switcher__panel [role="option"][aria-selected="true"] {
    background: var(--zg-surface-muted);
}

.zg-context-switcher__panel [role="option"] > span:nth-child(2) {
    min-width: 0;
}

.zg-context-switcher__panel strong,
.zg-context-switcher__panel small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-context-switcher__panel strong {
    font-size: 14px;
}

.zg-context-switcher__panel small {
    color: var(--zg-muted);
    font-size: 12px;
}

.zg-context-switcher__panel [role="option"] > .zg-icon {
    width: 18px;
    height: 18px;
    color: var(--zg-success);
}

.zg-context-switcher__mark {
    display: grid !important;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    color: var(--zg-white);
    background: var(--zg-violet);
    font-size: 12px;
    font-weight: 820;
}

.zg-context-switcher__mark--property {
    color: var(--zg-ink);
    background: var(--zg-lime);
}

.zg-context-switcher__mark .zg-icon {
    width: 20px;
    height: 20px;
}

.zg-context-switcher__add {
    display: flex;
    min-height: 48px;
    padding: 0 10px;
    margin-top: 8px;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--zg-line);
    color: var(--zg-brand);
    font-size: 14px;
    font-weight: 700;
}

.zg-context-switcher__add .zg-icon {
    width: 19px;
    height: 19px;
}

.zg-nav-scrim {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    padding: 0;
    border: 0;
    background: rgb(5 8 10 / .64);
    backdrop-filter: blur(3px);
}

/* Top bar and heading */

.zg-topbar {
    display: flex;
    height: var(--zg-topbar-height);
    min-height: var(--zg-topbar-height);
    padding: 14px var(--zg-gutter) 8px;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.zg-topbar__mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
}

.zg-topbar__property {
    max-width: 54vw;
    overflow: hidden;
    font-size: 17px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-command-search {
    position: relative;
    display: flex;
    width: min(390px, 38vw);
    height: 46px;
    align-items: center;
    border: 1px solid var(--zg-line);
    border-radius: 13px;
    background: rgb(255 255 255 / .62);
}

.zg-command-search:focus-within {
    border-color: var(--zg-cobalt);
    box-shadow: 0 0 0 3px rgb(47 115 246 / .12);
}

.zg-command-search__icon {
    width: 20px;
    height: 20px;
    margin-left: 15px;
    color: #646c78;
}

.zg-command-search input {
    width: 100%;
    height: 100%;
    padding: 0 42px 0 11px;
    border: 0;
    outline: 0;
    color: var(--zg-ink);
    background: transparent;
    font-size: 14px;
}

.zg-command-search input::placeholder {
    color: #7b828d;
}

.zg-command-search__key {
    position: absolute;
    right: 10px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--zg-line);
    border-radius: 7px;
    color: var(--zg-muted);
    background: var(--zg-white);
    font: 12px var(--zg-mono);
}

.zg-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Subscription and audited support-access state */

.zg-subscription-banner,
.zg-support-banner {
    position: relative;
    z-index: 80;
    display: flex;
    min-height: 48px;
    padding: 6px var(--zg-gutter);
    align-items: center;
    gap: 12px;
}

.zg-subscription-banner {
    color: #184d94;
    background: var(--zg-info-soft);
}

.zg-subscription-banner--warning {
    color: #7e4a00;
    background: var(--zg-amber-soft);
}

.zg-subscription-banner--danger {
    color: #8f1928;
    background: var(--zg-danger-soft);
}

.zg-subscription-banner--violet {
    color: #4d24ac;
    background: var(--zg-violet-soft);
}

.zg-subscription-banner__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
}

.zg-subscription-banner__icon .zg-icon {
    width: 21px;
    height: 21px;
}

.zg-subscription-banner p,
.zg-support-banner p {
    min-width: 0;
    margin: 0;
    flex: 1;
    font-size: 13px;
}

.zg-subscription-banner p strong {
    margin-right: 5px;
}

.zg-subscription-banner__action {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid currentColor;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    line-height: 34px;
    white-space: nowrap;
}

.zg-subscription-banner .zg-icon-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    color: inherit;
    background: transparent;
}

.zg-support-banner {
    min-height: 54px;
    color: var(--zg-white);
    background: linear-gradient(90deg, #5b2fd2, #7744ed 52%, #5b2fd2);
    box-shadow: inset 0 -1px rgb(0 0 0 / .18);
}

.zg-support-banner__mark {
    padding: 5px 10px;
    border: 1px solid rgb(255 255 255 / .34);
    border-radius: 999px;
    background: rgb(255 255 255 / .1);
    font-size: 11px;
    font-weight: 830;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.zg-support-banner .zg-button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 13px;
}

.zg-topbar__actions::before {
    width: 1px;
    height: 32px;
    margin-right: 6px;
    background: var(--zg-line);
    content: "";
}

.zg-topbar .zg-icon-button,
.zg-topbar .zg-avatar--button {
    width: 46px;
    height: 46px;
    min-width: 46px;
}

.zg-notifications__dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--zg-canvas);
    border-radius: 50%;
    background: var(--zg-brand);
}

.zg-avatar {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--zg-ink);
    background: linear-gradient(145deg, #ffffff, #e5e8eb);
    font-size: 14px;
    font-weight: 800;
}

.zg-avatar--button {
    padding: 0;
    border: 0;
    cursor: pointer;
}

.zg-page-header {
    display: flex;
    min-height: 94px;
    padding: 0 0 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.zg-page-header__copy {
    min-width: 0;
}

.zg-page-header h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 830;
    letter-spacing: -.055em;
    line-height: .98;
}

.zg-page-header__copy > p {
    margin: 9px 0 0;
    color: var(--zg-muted-strong);
    font-size: 16px;
}

.zg-page-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.zg-breadcrumbs {
    margin-bottom: 9px;
    color: var(--zg-muted);
    font-size: 14px;
}

.zg-breadcrumbs ol {
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
    list-style: none;
}

.zg-breadcrumbs li + li::before {
    margin: 0 10px;
    color: var(--zg-line-strong);
    content: "/";
}

.zg-breadcrumbs a:hover {
    color: var(--zg-brand);
}

/* Layout primitives */

.zg-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.zg-stack--tight {
    gap: 10px;
}

.zg-stack--roomy {
    gap: 24px;
}

.zg-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.zg-cluster--between {
    justify-content: space-between;
}

.zg-view-grid {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .38fr);
    gap: 16px;
}

.zg-view-grid--wide-aside {
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr);
}

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

.zg-full-height {
    height: auto;
    min-height: 0;
}

.zg-panel {
    min-width: 0;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius);
    background: var(--zg-surface);
    box-shadow: var(--zg-shadow-sm);
}

.zg-panel--flat {
    box-shadow: none;
}

.zg-panel--open {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.zg-panel__header {
    display: flex;
    min-height: 64px;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-panel__title {
    margin: 0;
    font-size: 21px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.zg-panel__subtitle {
    margin: 3px 0 0;
    color: var(--zg-muted);
    font-size: 14px;
}

.zg-panel__body {
    padding: 18px;
}

.zg-panel__body--flush {
    padding: 0;
}

.zg-panel__body--scroll {
    min-height: 0;
    overflow-x: auto;
}

.zg-panel__footer {
    display: flex;
    min-height: 62px;
    padding: 12px 18px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--zg-line);
}

.zg-dark-stage {
    position: relative;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #292f34;
    border-radius: var(--zg-radius);
    color: var(--zg-white);
    background:
        radial-gradient(circle at 88% 8%, rgb(255 255 255 / .045), transparent 28%),
        linear-gradient(145deg, #171c20, #101416);
    box-shadow: var(--zg-shadow-stage);
}

.zg-dark-stage::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px rgb(255 255 255 / .06);
    content: "";
}

.zg-dark-stage__header {
    position: relative;
    z-index: 1;
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.zg-dark-stage__header h2,
.zg-dark-stage__header h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.03em;
}

.zg-dark-stage__meta {
    color: #bec4ca;
    font-size: 14px;
}

.zg-dark-stage .zg-icon-button {
    border-color: rgb(255 255 255 / .14);
    color: var(--zg-white);
    background: rgb(255 255 255 / .07);
}

.zg-signal-strip {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 74px;
    overflow: hidden;
    grid-template-columns: repeat(var(--segments, 4), minmax(110px, 1fr));
    border-radius: 12px;
    box-shadow: inset 0 1px rgb(255 255 255 / .18);
}

.zg-signal {
    display: flex;
    min-width: 0;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0a0c0f;
}

.zg-signal + .zg-signal {
    border-left: 1px solid rgb(12 15 18 / .22);
}

.zg-signal--violet {
    color: var(--zg-white);
    background: linear-gradient(112deg, #7444ed, #5d2edf);
}

.zg-signal--cobalt {
    color: var(--zg-white);
    background: linear-gradient(112deg, #3279f7, #2266e5);
}

.zg-signal--lime {
    background: linear-gradient(112deg, #aef228, #c3ff43);
}

.zg-signal--amber {
    background: linear-gradient(112deg, #ff9e1b, #ffb83d);
}

.zg-signal--coral {
    background: linear-gradient(112deg, #f25e57, #ff7c70);
}

.zg-signal--graphite {
    color: var(--zg-white);
    background: linear-gradient(112deg, #30373c, #252b30);
}

.zg-signal strong {
    font-size: 22px;
    font-weight: 820;
    letter-spacing: -.025em;
}

.zg-signal span {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-stat-line {
    display: grid;
    min-height: 76px;
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
    border: 1px solid rgb(255 255 255 / .11);
    border-radius: 12px;
    background: rgb(255 255 255 / .055);
}

.zg-stat-line__item {
    display: flex;
    min-width: 0;
    padding: 14px 18px;
    align-items: center;
    gap: 13px;
}

.zg-stat-line__item + .zg-stat-line__item {
    border-left: 1px solid rgb(255 255 255 / .1);
}

.zg-stat-line__item strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.zg-stat-line__item small {
    display: block;
    color: #c0c6cb;
    font-size: 13px;
}

.zg-stat-line__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--zg-lime);
}

/* Toolbars, tabs and filters */

.zg-toolbar {
    display: flex;
    min-height: 58px;
    padding: 5px;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-white);
}

.zg-toolbar__item {
    display: flex;
    min-height: 46px;
    padding: 0 15px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    color: var(--zg-ink-soft);
    background: transparent;
    font-size: 15px;
    font-weight: 610;
    white-space: nowrap;
    cursor: pointer;
}

.zg-toolbar__item:hover,
.zg-toolbar__item.is-active {
    background: var(--zg-surface-muted);
}

.zg-toolbar__separator {
    width: 1px;
    height: 34px;
    margin: 0 4px;
    background: var(--zg-line);
}

.zg-toolbar__push {
    margin-left: auto;
}

.zg-tabs {
    display: flex;
    min-height: 48px;
    align-items: flex-end;
    gap: 30px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-tabs [role="tab"] {
    position: relative;
    min-height: 48px;
    padding: 0;
    border: 0;
    color: var(--zg-muted-strong);
    background: transparent;
    font-size: 16px;
    font-weight: 630;
    cursor: pointer;
}

.zg-tabs [role="tab"]::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}

.zg-tabs [role="tab"][aria-selected="true"] {
    color: var(--zg-ink);
}

.zg-tabs [role="tab"][aria-selected="true"]::after {
    background: var(--zg-brand);
}

[role="tabpanel"][hidden] {
    display: none !important;
}

.zg-segmented {
    display: inline-flex;
    min-height: 50px;
    padding: 4px;
    align-items: center;
    border: 1px solid var(--zg-line);
    border-radius: 12px;
    background: var(--zg-surface-muted);
}

.zg-segmented button,
.zg-segmented label {
    display: inline-flex;
    min-width: 88px;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: var(--zg-muted-strong);
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.zg-segmented button.is-active,
.zg-segmented button[aria-pressed="true"],
.zg-segmented input:checked + label {
    color: var(--zg-white);
    background: var(--zg-brand);
    box-shadow: 0 5px 12px rgb(199 0 61 / .15);
}

.zg-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zg-chip-row {
    display: flex;
    min-width: 0;
    padding-bottom: 2px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.zg-chip-row::-webkit-scrollbar {
    display: none;
}

.zg-chip {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--zg-line);
    border-radius: 999px;
    color: var(--zg-ink-soft);
    background: var(--zg-white);
    font-size: 14px;
    font-weight: 670;
    white-space: nowrap;
    cursor: pointer;
}

.zg-chip.is-active,
.zg-chip[aria-pressed="true"] {
    border-color: var(--zg-violet);
    color: var(--zg-white);
    background: var(--zg-violet);
}

/* Status and summary */

.zg-status {
    display: inline-flex;
    min-height: 30px;
    padding: 3px 12px;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    color: var(--zg-muted-strong);
    background: var(--zg-surface-muted);
    font-size: 13px;
    font-weight: 690;
    line-height: 1;
    white-space: nowrap;
}

.zg-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.zg-status--success {
    color: #2f7509;
    background: var(--zg-success-soft);
}

.zg-status--warning {
    color: var(--zg-amber-deep);
    background: var(--zg-amber-soft);
}

.zg-status--danger {
    color: var(--zg-danger);
    background: var(--zg-danger-soft);
}

.zg-status--info {
    color: var(--zg-info);
    background: var(--zg-info-soft);
}

.zg-status--violet {
    color: var(--zg-violet-deep);
    background: var(--zg-violet-soft);
}

.zg-status--dark {
    color: var(--zg-white);
    background: var(--zg-stage-soft);
}

.zg-money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zg-money--positive {
    color: var(--zg-success);
}

.zg-money--negative,
.zg-money--due {
    color: var(--zg-danger);
}

.zg-balance-block {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
}

.zg-balance-block__label {
    margin-bottom: 4px;
    color: #c2c7cc;
    font-size: 16px;
    font-weight: 650;
}

.zg-balance-block__amount {
    font-size: clamp(40px, 4vw, 60px);
    font-weight: 820;
    letter-spacing: -.045em;
    line-height: 1;
}

.zg-balance-block__meta {
    margin-top: 10px;
    color: #d5d9dd;
    font-size: 15px;
}

.zg-progress {
    width: 100%;
    height: 12px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #454c52;
}

.zg-progress > span {
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--zg-violet), var(--zg-cobalt));
}

.zg-key-value {
    display: grid;
    margin: 0;
}

.zg-key-value__row {
    display: grid;
    min-height: 48px;
    padding: 8px 0;
    grid-template-columns: minmax(120px, .72fr) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-key-value__row:last-child {
    border-bottom: 0;
}

.zg-key-value dt {
    color: var(--zg-muted);
}

.zg-key-value dd {
    margin: 0;
    font-weight: 650;
    text-align: right;
}

/* Tables */

.zg-table-wrap {
    min-width: 0;
    overflow-x: auto;
}

.zg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.zg-table th {
    height: 42px;
    padding: 8px 13px;
    color: var(--zg-muted);
    background: var(--zg-surface-muted);
    font-size: 12px;
    font-weight: 740;
    letter-spacing: .015em;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
}

.zg-table th:first-child {
    border-radius: 9px 0 0 9px;
}

.zg-table th:last-child {
    border-radius: 0 9px 9px 0;
}

.zg-table td {
    height: 50px;
    padding: 8px 13px;
    border-bottom: 1px solid var(--zg-line);
    color: var(--zg-ink-soft);
    vertical-align: middle;
}

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

.zg-table tbody tr[data-href],
.zg-table tbody tr[data-row-action] {
    cursor: pointer;
}

.zg-table tbody tr:hover td {
    background: #fafbfb;
}

.zg-table [data-numeric] {
    text-align: right;
}

.zg-table__empty {
    height: 160px !important;
    color: var(--zg-muted) !important;
    text-align: center;
}

.zg-table__primary {
    color: var(--zg-ink);
    font-weight: 710;
}

.zg-table__secondary {
    display: block;
    margin-top: 2px;
    color: var(--zg-muted);
    font-size: 12px;
}

.zg-pagination {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.zg-pagination .zg-icon-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
}

.zg-pagination__total {
    margin-right: auto;
    color: var(--zg-muted);
    font-size: 14px;
}

.zg-pagination__page {
    min-width: 64px;
    color: var(--zg-muted-strong);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
}

/* Forms */

.zg-form {
    display: grid;
    gap: 18px;
}

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

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

.zg-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.zg-field > label,
.zg-fieldset > legend {
    color: var(--zg-ink-soft);
    font-size: 14px;
    font-weight: 720;
}

.zg-field > label > span {
    color: var(--zg-brand);
}

.zg-field input:not([type="checkbox"]):not([type="radio"]),
.zg-field select,
.zg-field textarea,
.zg-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: var(--zg-control);
    padding: 0 15px;
    border: 1px solid var(--zg-control-border);
    border-radius: var(--zg-radius-sm);
    outline: 0;
    color: var(--zg-ink);
    background: var(--zg-white);
    font-size: 16px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.zg-field textarea {
    min-height: 112px;
    padding-top: 13px;
    resize: vertical;
}

.zg-field select {
    padding-right: 42px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320242b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 20px;
}

.zg-field input:focus,
.zg-field select:focus,
.zg-field textarea:focus,
.zg-input:focus {
    border-color: var(--zg-cobalt);
    box-shadow: 0 0 0 3px rgb(47 115 246 / .12);
}

.zg-field input:disabled,
.zg-field select:disabled,
.zg-field textarea:disabled {
    color: var(--zg-muted);
    background: var(--zg-surface-muted);
    cursor: not-allowed;
}

.zg-field.has-error input,
.zg-field.has-error select,
.zg-field.has-error textarea {
    border-color: var(--zg-danger);
    box-shadow: 0 0 0 3px rgb(217 44 61 / .09);
}

.zg-field__hint,
.zg-field__error {
    font-size: 12px;
    line-height: 1.35;
}

.zg-field__hint {
    color: var(--zg-muted);
}

.zg-field__error {
    color: var(--zg-danger);
    font-weight: 650;
}

.zg-fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.zg-fieldset > legend {
    margin-bottom: 10px;
}

.zg-check {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    cursor: pointer;
}

.zg-check input {
    position: absolute;
    opacity: 0;
}

.zg-check__box {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 1.5px solid var(--zg-line-strong);
    border-radius: 7px;
    color: transparent;
    background: var(--zg-white);
}

.zg-check__box .zg-icon {
    width: 17px;
    height: 17px;
}

.zg-check input:checked + .zg-check__box {
    border-color: var(--zg-brand);
    color: var(--zg-white);
    background: var(--zg-brand);
}

.zg-check input:focus-visible + .zg-check__box {
    outline: 3px solid color-mix(in srgb, var(--zg-cobalt) 78%, white);
    outline-offset: 3px;
}

.zg-radio-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr));
    gap: 10px;
}

.zg-choice {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 12px 15px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-surface-soft);
    cursor: pointer;
}

.zg-choice:has(input:checked) {
    border-color: var(--zg-brand);
    color: var(--zg-brand);
    background: var(--zg-brand-soft);
}

.zg-choice input {
    position: absolute;
    opacity: 0;
}

.zg-choice strong {
    color: var(--zg-ink);
    font-size: 16px;
}

.zg-choice small {
    display: block;
    color: var(--zg-muted);
    font-size: 12px;
}

.zg-input-group {
    display: flex;
    min-width: 0;
}

.zg-input-group > * {
    border-radius: 0 !important;
}

.zg-input-group > *:first-child {
    border-radius: var(--zg-radius-sm) 0 0 var(--zg-radius-sm) !important;
}

.zg-input-group > *:last-child {
    border-radius: 0 var(--zg-radius-sm) var(--zg-radius-sm) 0 !important;
}

.zg-input-prefix,
.zg-input-suffix {
    display: inline-flex;
    min-height: var(--zg-control);
    padding: 0 14px;
    align-items: center;
    border: 1px solid var(--zg-line-strong);
    color: var(--zg-muted-strong);
    background: var(--zg-surface-muted);
    font-weight: 690;
}

.zg-toggle {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    cursor: pointer;
}

.zg-toggle input {
    position: absolute;
    opacity: 0;
}

.zg-toggle__track {
    position: relative;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #aeb4ba;
    transition: background 160ms ease;
}

.zg-toggle__track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--zg-white);
    box-shadow: 0 2px 7px rgb(0 0 0 / .22);
    content: "";
    transition: transform 180ms var(--zg-ease);
}

.zg-toggle input:checked + .zg-toggle__track {
    background: var(--zg-cobalt);
}

.zg-toggle input:checked + .zg-toggle__track::after {
    transform: translateX(24px);
}

.zg-toggle input:focus-visible + .zg-toggle__track {
    outline: 3px solid color-mix(in srgb, var(--zg-cobalt) 78%, white);
    outline-offset: 3px;
}

.zg-form-actions {
    display: flex;
    min-height: 68px;
    padding-top: 14px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--zg-line);
}

.zg-repeat-list {
    display: grid;
    gap: 10px;
}

.zg-repeat-row {
    display: grid;
    padding: 12px;
    grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-surface-soft);
}

.zg-repeat-row [data-repeat-remove] {
    width: var(--zg-control);
    height: var(--zg-control);
    min-width: var(--zg-control);
    color: var(--zg-danger);
}

.zg-stepper {
    display: inline-grid;
    min-height: var(--zg-control);
    overflow: hidden;
    grid-template-columns: var(--zg-control) minmax(54px, auto) var(--zg-control);
    border: 1px solid var(--zg-line-strong);
    border-radius: var(--zg-radius-sm);
}

.zg-stepper button {
    display: grid;
    padding: 0;
    place-items: center;
    border: 0;
    background: var(--zg-surface-muted);
    cursor: pointer;
}

.zg-stepper input,
.zg-stepper output {
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    place-items: center;
    border: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 760;
}

/* Charts and accounting surfaces */

.zg-chart {
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

.zg-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.zg-chart-grid line {
    stroke: var(--zg-line);
    stroke-width: 1;
}

.zg-chart-axis {
    color: var(--zg-muted);
    font-size: 12px;
}

.zg-bar-chart {
    display: grid;
    min-height: 220px;
    padding: 16px 8px 0;
    grid-template-columns: repeat(var(--bars, 6), minmax(34px, 1fr));
    align-items: end;
    gap: clamp(12px, 2vw, 28px);
    border-bottom: 1px solid var(--zg-line);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, var(--zg-line) 55px);
}

.zg-bar-chart__item {
    position: relative;
    display: flex;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.zg-bar-chart__bar {
    width: min(30px, 42%);
    height: var(--value, 0%);
    min-height: 3px;
    border-radius: 7px 7px 0 0;
    background: var(--zg-cobalt);
}

.zg-bar-chart__bar--expense {
    background: var(--zg-coral);
}

.zg-bar-chart__label {
    position: absolute;
    bottom: -28px;
    color: var(--zg-muted);
    font-size: 12px;
}

.zg-account-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.zg-ledger-total {
    display: grid;
    min-height: 62px;
    padding: 10px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    background: var(--zg-surface-muted);
    font-size: 17px;
    font-weight: 780;
}

.zg-ledger-total output {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

/* Timeline and task primitives */

.zg-timeline {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.zg-timeline__point {
    display: flex;
    align-items: center;
    gap: 11px;
}

.zg-timeline__dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 3px solid var(--zg-white);
    border-radius: 50%;
    background: var(--zg-cobalt);
    box-shadow: 0 0 0 1px var(--zg-cobalt);
}

.zg-timeline__point:last-child .zg-timeline__dot {
    background: var(--zg-white);
    box-shadow: 0 0 0 2px var(--zg-line-strong);
}

.zg-timeline__line {
    height: 2px;
    background: var(--zg-line);
}

.zg-task-list {
    display: grid;
}

.zg-task-row {
    display: grid;
    min-height: 56px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-task-row:last-child {
    border-bottom: 0;
}

.zg-task-row__control {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--zg-line-strong);
    border-radius: 50%;
}

/* Flash messages and empty state */

.zg-flash-stack {
    position: fixed;
    z-index: 850;
    top: calc(var(--zg-topbar-height) + 12px);
    right: 18px;
    display: grid;
    width: min(420px, calc(100vw - 36px));
    gap: 10px;
    pointer-events: none;
}

/* Account setup feedback must not cover the form it describes. */
.zg-auth .zg-flash-stack,
.zg-onboarding-body .zg-flash-stack {
    position: static;
    width: 100%;
    margin-bottom: 18px;
}

.zg-flash {
    display: grid;
    min-height: 76px;
    padding: 13px 13px 13px 15px;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--zg-line);
    border-left: 4px solid var(--zg-info);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-white);
    box-shadow: var(--zg-shadow-md);
    pointer-events: auto;
    animation: zg-toast-in 240ms var(--zg-ease) both;
}

.zg-flash.is-leaving {
    animation: zg-toast-out 180ms ease both;
}

.zg-flash--success {
    border-left-color: var(--zg-success);
}

.zg-flash--warning {
    border-left-color: var(--zg-amber);
}

.zg-flash--error,
.zg-flash--danger {
    border-left-color: var(--zg-danger);
}

.zg-flash__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--zg-info);
    background: var(--zg-info-soft);
}

.zg-flash--success .zg-flash__icon {
    color: var(--zg-success);
    background: var(--zg-success-soft);
}

.zg-flash--warning .zg-flash__icon {
    color: var(--zg-amber-deep);
    background: var(--zg-amber-soft);
}

.zg-flash--error .zg-flash__icon,
.zg-flash--danger .zg-flash__icon {
    color: var(--zg-danger);
    background: var(--zg-danger-soft);
}

.zg-flash__icon .zg-icon {
    width: 20px;
    height: 20px;
}

.zg-flash__copy strong {
    display: block;
    margin-bottom: 2px;
}

.zg-flash__copy p {
    margin: 0;
    color: var(--zg-muted-strong);
    font-size: 14px;
}

.zg-flash__close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 0;
}

.zg-toast-region {
    position: fixed;
    z-index: 900;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: min(390px, calc(100vw - 36px));
    gap: 10px;
    pointer-events: none;
}

.zg-toast-region .zg-flash {
    position: static;
}

.zg-empty-state {
    display: flex;
    min-height: 280px;
    padding: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.zg-empty-state--compact {
    min-height: 180px;
    padding: 24px;
}

.zg-empty-state__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    color: var(--zg-muted-strong);
    background: var(--zg-surface-muted);
}

.zg-empty-state__icon .zg-icon {
    width: 28px;
    height: 28px;
}

.zg-empty-state h2,
.zg-empty-state h3 {
    margin: 0 0 7px;
    font-size: 22px;
    letter-spacing: -.02em;
}

.zg-empty-state p {
    max-width: 440px;
    margin: 0 0 20px;
    color: var(--zg-muted);
}

/* Dialogs and popovers */

body.zg-dialog-open,
body.zg-nav-open {
    overflow: hidden;
}

.zg-dialog,
.zg-popover-dialog {
    padding: 0;
    border: 0;
    color: var(--zg-ink);
    background: transparent;
}

.zg-dialog {
    width: min(620px, calc(100vw - 32px));
    max-width: none;
    max-height: min(820px, calc(100dvh - 32px));
    overflow: visible;
}

.zg-dialog--small {
    width: min(460px, calc(100vw - 32px));
}

.zg-dialog--large {
    width: min(820px, calc(100vw - 32px));
}

.zg-dialog--wide {
    width: min(1080px, calc(100vw - 32px));
}

.zg-dialog::backdrop,
.zg-popover-dialog::backdrop {
    background: rgb(6 8 10 / .66);
    backdrop-filter: blur(6px);
}

.zg-dialog[open] .zg-dialog__surface,
.zg-popover-dialog[open] .zg-popover-dialog__surface {
    animation: zg-dialog-in 220ms var(--zg-ease) both;
}

.zg-dialog__surface {
    display: flex;
    max-height: min(820px, calc(100dvh - 32px));
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .72);
    border-radius: var(--zg-radius-lg);
    background: var(--zg-white);
    box-shadow: 0 28px 90px rgb(0 0 0 / .28);
    flex-direction: column;
}

.zg-dialog__header {
    display: flex;
    min-height: 86px;
    padding: 18px 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-dialog__header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 790;
    letter-spacing: -.03em;
}

.zg-dialog__header p {
    margin: 5px 0 0;
    color: var(--zg-muted);
    font-size: 14px;
}

.zg-dialog__header .zg-icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.zg-dialog__body {
    min-height: 0;
    padding: 22px;
    overflow: auto;
}

.zg-dialog__footer {
    display: flex;
    min-height: 76px;
    padding: 12px 22px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--zg-line);
    background: var(--zg-surface-soft);
}

.zg-popover-dialog {
    position: fixed;
    inset: auto 22px 20px auto;
    width: min(320px, calc(100vw - 32px));
    margin: 0;
}

.zg-popover-dialog#notifications {
    top: 72px;
    bottom: auto;
}

.zg-popover-dialog__surface {
    padding: 10px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius);
    background: var(--zg-white);
    box-shadow: var(--zg-shadow-md);
}

.zg-popover-dialog__surface--wide {
    width: min(390px, calc(100vw - 32px));
}

.zg-popover-dialog__header {
    display: flex;
    min-height: 58px;
    padding: 3px 5px 8px 12px;
    align-items: center;
    justify-content: space-between;
}

.zg-popover-dialog__header h2 {
    margin: 0;
    font-size: 20px;
}

.zg-popover-dialog__header .zg-icon-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
}

.zg-popover-dialog .zg-account-summary {
    padding: 9px 8px 15px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-account-summary > div {
    min-width: 0;
}

.zg-account-summary strong,
.zg-account-summary span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-account-summary span {
    color: var(--zg-muted);
    font-size: 13px;
}

.zg-popover-dialog__item {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
}

.zg-popover-dialog__item:hover {
    background: var(--zg-surface-muted);
}

.zg-popover-dialog__item .zg-icon {
    width: 20px;
    height: 20px;
}

.zg-popover-dialog__close {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    border: 0;
    border-radius: 9px;
    color: var(--zg-muted-strong);
    background: var(--zg-surface-soft);
    cursor: pointer;
}

/* Mobile bottom navigation */

.zg-mobile-nav {
    display: none;
}

/* Authentication and setup */

.zg-auth {
    min-height: 100dvh;
    overflow: auto;
    background: var(--zg-canvas);
}

.zg-auth-shell {
    display: grid;
    width: 100%;
    min-height: 100dvh;
    grid-template-columns: minmax(360px, .88fr) minmax(480px, 1.12fr);
}

.zg-auth-brand {
    position: sticky;
    top: 0;
    display: flex;
    height: 100dvh;
    align-self: start;
    padding: clamp(34px, 6vw, 88px);
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    color: var(--zg-white);
    background:
        radial-gradient(circle at 68% 26%, rgb(116 68 237 / .22), transparent 29%),
        linear-gradient(145deg, #0c1013, #171c20);
}

.zg-auth-brand::after {
    position: absolute;
    right: -12%;
    bottom: -16%;
    width: 68%;
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / .08);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgb(255 255 255 / .018), 0 0 0 108px rgb(255 255 255 / .014);
    content: "";
}

.zg-auth-brand__mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 18px;
    color: var(--zg-white);
    background: var(--zg-brand);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.zg-auth-brand__copy {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 460px;
    flex-direction: column;
}

.zg-auth-brand__copy strong {
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 830;
    letter-spacing: -.065em;
    line-height: .94;
}

.zg-auth-brand__copy span {
    max-width: 360px;
    margin-top: 18px;
    color: #bec4ca;
    font-size: 20px;
}

.zg-auth-brand__signal {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    max-width: 420px;
    height: 20px;
    overflow: hidden;
    grid-template-columns: 1.7fr 1fr .72fr .45fr;
    border-radius: 999px;
}

.zg-auth-brand__signal span:nth-child(1) { background: var(--zg-violet); }
.zg-auth-brand__signal span:nth-child(2) { background: var(--zg-cobalt); }
.zg-auth-brand__signal span:nth-child(3) { background: var(--zg-lime); }
.zg-auth-brand__signal span:nth-child(4) { background: var(--zg-amber); }

.zg-auth-panel {
    display: flex;
    min-width: 0;
    min-height: 100dvh;
    padding: clamp(28px, 5vw, 70px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--zg-white);
}

.zg-auth-panel__inner {
    width: min(100%, 520px);
}

.zg-auth-header {
    margin-bottom: 28px;
}

.zg-auth-product {
    display: none;
    color: var(--zg-brand) !important;
    font-size: 14px !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zg-auth-header h1 {
    margin: 0;
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 830;
    letter-spacing: -.05em;
    line-height: 1;
}

.zg-auth-header > p:not(.zg-auth-product) {
    margin: 12px 0 0;
    color: var(--zg-muted);
    font-size: 17px;
}

.zg-auth-content .zg-button {
    width: 100%;
}

.zg-auth-footer {
    width: min(100%, 520px);
    margin-top: 34px;
    color: var(--zg-muted);
    font-size: 13px;
    text-align: center;
}

/* Guided onboarding */

.zg-onboarding-body {
    min-height: 100dvh;
    overflow: visible;
    background: var(--zg-white);
}

.zg-onboarding-shell {
    display: grid;
    width: 100%;
    min-height: 100dvh;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.zg-onboarding-aside {
    display: flex;
    min-height: 100dvh;
    padding: clamp(28px, 4.5vw, 62px);
    flex-direction: column;
    color: var(--zg-white);
    background:
        radial-gradient(circle at 40% 18%, rgb(116 68 237 / .22), transparent 30%),
        linear-gradient(155deg, #12171b, #0d1114);
}

.zg-onboarding-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
}

.zg-onboarding-brand span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--zg-brand);
    font-size: 14px;
    font-weight: 850;
}

.zg-onboarding-aside > div:nth-child(2) {
    margin-top: clamp(52px, 9vh, 100px);
}

.zg-onboarding-aside h1 {
    max-width: 300px;
    margin: 0;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 830;
    letter-spacing: -.055em;
    line-height: .96;
}

.zg-onboarding-aside > div:nth-child(2) p {
    max-width: 310px;
    margin: 16px 0 0;
    color: #bcc2c8;
    font-size: 16px;
}

.zg-onboarding-aside > small {
    margin-top: auto;
    color: #7f878e;
}

.zg-onboarding-progress {
    margin-top: 40px;
}

.zg-onboarding-progress__mobile {
    display: none;
}

.zg-onboarding-progress ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.zg-onboarding-progress li {
    position: relative;
    display: grid;
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #818990;
}

.zg-onboarding-progress li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 43px;
    bottom: -15px;
    left: 16px;
    width: 2px;
    background: #30363b;
    content: "";
}

.zg-onboarding-progress li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #3a4147;
    border-radius: 50%;
    background: #181e22;
    font-size: 13px;
    font-weight: 780;
}

.zg-onboarding-progress li > span .zg-icon {
    width: 18px;
    height: 18px;
}

.zg-onboarding-progress li.is-current {
    color: var(--zg-white);
}

.zg-onboarding-progress li.is-current > span {
    border-color: var(--zg-violet);
    background: var(--zg-violet);
    box-shadow: 0 0 0 6px rgb(116 68 237 / .14);
}

.zg-onboarding-progress li.is-complete {
    color: #b8bec4;
}

.zg-onboarding-progress li.is-complete > span {
    border-color: var(--zg-lime);
    color: #102000;
    background: var(--zg-lime);
}

.zg-onboarding-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: clamp(28px, 6vw, 88px);
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    background: var(--zg-white);
}

.zg-onboarding-main__inner {
    width: 100%;
}

[data-onboarding-step][hidden] {
    display: none;
}

.zg-onboarding-step__header {
    margin-bottom: 28px;
}

.zg-onboarding-step__header h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 830;
    letter-spacing: -.05em;
    line-height: 1;
}

.zg-onboarding-step__header p {
    margin: 12px 0 0;
    color: var(--zg-muted);
    font-size: 17px;
}

.zg-onboarding-actions {
    display: flex;
    min-height: 74px;
    padding-top: 18px;
    margin-top: 24px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--zg-line);
}

/* Suspended tenant state */

.zg-suspended-body {
    display: grid;
    min-height: 100dvh;
    padding: 24px;
    place-items: center;
    color: var(--zg-white);
    background:
        radial-gradient(circle at 50% 34%, rgb(199 0 61 / .12), transparent 26%),
        linear-gradient(145deg, #151a1e, #0c1013);
}

.zg-suspended-state {
    display: flex;
    width: min(100%, 620px);
    padding: clamp(30px, 5vw, 56px);
    align-items: center;
    flex-direction: column;
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: var(--zg-radius-lg);
    background: rgb(255 255 255 / .035);
    box-shadow: 0 28px 100px rgb(0 0 0 / .3);
    text-align: center;
}

.zg-suspended-state__mark {
    display: grid;
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    color: #ff7281;
    background: rgb(217 44 61 / .13);
}

.zg-suspended-state__mark .zg-icon {
    width: 34px;
    height: 34px;
}

.zg-suspended-state__product {
    margin: 0 0 9px;
    color: #9aa2a9;
    font-size: 12px;
    font-weight: 820;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.zg-suspended-state h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 830;
    letter-spacing: -.055em;
    line-height: .98;
}

.zg-suspended-state > p:not(.zg-suspended-state__product) {
    max-width: 470px;
    margin: 18px 0 24px;
    color: #bbc1c7;
    font-size: 17px;
}

.zg-suspended-state dl {
    display: flex;
    padding: 10px 15px;
    margin: 0 0 24px;
    gap: 9px;
    border-radius: 9px;
    background: rgb(255 255 255 / .06);
    font-size: 13px;
}

.zg-suspended-state dt {
    color: #8d959c;
}

.zg-suspended-state dd {
    margin: 0;
    font-family: var(--zg-mono);
}

/* Platform owner control centre */

.zg-platform-body {
    min-height: 100dvh;
    overflow: visible;
    background: #eef0f2;
}

.zg-platform-app {
    display: grid;
    width: 100%;
    min-height: 100dvh;
    grid-template-columns: 230px minmax(0, 1fr);
}

.zg-platform-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    align-self: start;
    z-index: 110;
    display: flex;
    min-height: 0;
    padding: 22px 14px 16px;
    flex-direction: column;
    color: var(--zg-white);
    background:
        radial-gradient(circle at 10% 3%, rgb(116 68 237 / .16), transparent 25%),
        #0b0e11;
}

.zg-platform-sidebar__head {
    display: flex;
    min-height: 70px;
    padding: 0 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.zg-platform-sidebar__head > a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.zg-platform-sidebar__head > a > span {
    display: grid;
    width: 42px;
    height: 42px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 12px;
    background: var(--zg-violet);
    font-size: 13px;
    font-weight: 850;
}

.zg-platform-sidebar__head strong {
    align-self: end;
    font-size: 15px;
}

.zg-platform-sidebar__head small {
    align-self: start;
    color: #8f979f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zg-platform-nav {
    display: grid;
    min-height: 0;
    padding-top: 8px;
    flex: 1;
    align-content: start;
    gap: 3px;
    overflow: auto;
}

.zg-platform-nav a {
    display: grid;
    min-height: 49px;
    padding: 0 12px;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border-radius: 11px;
    color: #cfd4d8;
    font-size: 14px;
    font-weight: 620;
}

.zg-platform-nav a:hover {
    color: var(--zg-white);
    background: rgb(255 255 255 / .06);
}

.zg-platform-nav a.is-active {
    color: var(--zg-white);
    background: linear-gradient(100deg, var(--zg-violet-deep), var(--zg-violet));
    box-shadow: 0 10px 24px rgb(79 40 191 / .18);
}

.zg-platform-nav .zg-icon {
    width: 21px;
    height: 21px;
}

.zg-platform-sidebar footer {
    padding: 14px 9px 2px;
    border-top: 1px solid rgb(255 255 255 / .1);
    color: #6f777e;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.zg-platform-sidebar footer form {
    margin-top: 10px;
}

.zg-platform-signout {
    display: flex;
    width: 100%;
    padding: 9px 10px;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #cfd4d8;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.zg-platform-signout:hover,
.zg-platform-signout:focus-visible {
    background: rgb(255 255 255 / .08);
    color: var(--zg-white);
}

.zg-platform-signout .zg-icon {
    width: 18px;
    height: 18px;
}

.auth-form--secondary {
    margin-top: 12px;
}

.zg-platform-shell {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.zg-platform-topbar {
    display: flex;
    min-height: 70px;
    padding: 10px 26px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #dde1e4;
    background: rgb(255 255 255 / .85);
    backdrop-filter: blur(14px);
}

.zg-platform-topbar > .zg-icon-button {
    display: none;
}

.zg-platform-topbar form {
    display: flex;
    width: min(440px, 44vw);
    height: 44px;
    padding: 0 13px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--zg-line);
    border-radius: 11px;
    background: var(--zg-surface-soft);
}

.zg-platform-topbar form .zg-icon {
    width: 19px;
    height: 19px;
    color: var(--zg-muted);
}

.zg-platform-topbar form input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.zg-platform-topbar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border: 0;
    border-radius: var(--zg-radius-sm);
    background: transparent;
    color: var(--zg-muted-strong);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.zg-platform-topbar__user:hover,
.zg-platform-topbar__user:focus-visible {
    background: var(--zg-surface-soft);
    color: var(--zg-text);
}

.zg-platform-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 0 clamp(20px, 2.5vw, 36px) 24px;
    flex: 1;
    flex-direction: column;
    overflow: visible;
}

.zg-platform-heading {
    display: flex;
    min-height: 112px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 19px;
}

.zg-platform-heading p {
    margin: 0 0 5px;
    color: var(--zg-violet);
    font-size: 11px;
    font-weight: 820;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.zg-platform-heading h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 830;
    letter-spacing: -.055em;
    line-height: .97;
}

.zg-platform-heading > div > span {
    display: block;
    margin-top: 8px;
    color: var(--zg-muted);
}

.zg-platform-content {
    min-height: 0;
    flex: 1;
    overflow: visible;
}

.zg-admin-filterbar {
    display: flex;
    min-height: 58px;
    padding: 5px;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--zg-line);
    border-radius: 13px;
    background: var(--zg-white);
}

.zg-admin-filterbar .zg-field {
    min-width: 150px;
}

.zg-admin-filterbar select,
.zg-admin-filterbar input {
    min-height: 44px !important;
    border-color: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.zg-admin-filterbar__push {
    margin-left: auto;
}

.zg-admin-metric-band {
    display: grid;
    min-height: 112px;
    overflow: hidden;
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
    border-radius: var(--zg-radius);
    color: var(--zg-white);
    background: #101417;
}

.zg-admin-metric-band__item {
    display: flex;
    min-width: 0;
    padding: 18px 22px;
    justify-content: center;
    flex-direction: column;
}

.zg-admin-metric-band__item + .zg-admin-metric-band__item {
    border-left: 1px solid rgb(255 255 255 / .11);
}

.zg-admin-metric-band__item span {
    color: #adb4ba;
    font-size: 12px;
    font-weight: 720;
}

.zg-admin-metric-band__item strong {
    margin-top: 5px;
    overflow: hidden;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 810;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zg-admin-metric-band__item--violet { background: linear-gradient(135deg, #572ac9, #7444ed); }
.zg-admin-metric-band__item--lime { color: #0d1703; background: var(--zg-lime); }
.zg-admin-metric-band__item--lime span { color: #3f5d13; }

.zg-admin-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .75fr);
    gap: 16px;
}

.zg-plan-limit-list {
    display: grid;
    gap: 12px;
}

.zg-plan-limit-row {
    display: grid;
    min-height: 72px;
    padding: 9px 12px;
    grid-template-columns: minmax(170px, 1fr) 150px 120px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--zg-line);
}

.zg-plan-limit-row strong,
.zg-plan-limit-row small {
    display: block;
}

.zg-plan-limit-row small {
    color: var(--zg-muted);
    font-size: 12px;
}

.zg-plan-limit-row input,
.zg-plan-limit-row select {
    min-height: 46px;
    padding-inline: 12px;
    border: 1px solid var(--zg-line-strong);
    border-radius: 10px;
}

.zg-tenant-identity {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.zg-tenant-identity__mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 18px;
    color: var(--zg-white);
    background: var(--zg-violet);
    font-size: 22px;
    font-weight: 840;
}

.zg-tenant-identity h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.035em;
}

.zg-tenant-identity p {
    margin: 4px 0 0;
    color: var(--zg-muted);
}

@media (max-width: 1180px) and (min-width: 761px) {
    .zg-context-switcher__panel {
        left: 62px;
    }

    .zg-property--switcher {
        display: grid;
        width: 50px;
        height: 50px;
        padding: 0;
        place-items: center;
        border-radius: 15px;
        color: var(--zg-white);
        background: var(--zg-brand);
    }

    .zg-property--switcher::after {
        font-size: 14px;
        font-weight: 840;
        content: "ZG";
    }

    .zg-property--switcher .zg-property__chevron {
        display: none;
    }

    .zg-platform-app {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .zg-platform-sidebar {
        padding-inline: 10px;
    }

    .zg-platform-sidebar__head {
        padding: 0;
        justify-content: center;
    }

    .zg-platform-sidebar__head strong,
    .zg-platform-sidebar__head small,
    .zg-platform-nav a span,
    .zg-platform-sidebar footer {
        display: none;
    }

    .zg-platform-sidebar__head > a {
        display: block;
    }

    .zg-platform-nav a {
        padding: 0;
        grid-template-columns: 1fr;
        place-items: center;
    }
}

@media (max-width: 920px) {
    .zg-admin-chart-grid {
        grid-template-columns: 1fr;
    }

    .zg-admin-metric-band {
        overflow-x: auto;
        grid-template-columns: repeat(var(--columns, 4), minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .zg-page--today .zg-page-header__actions {
        display: none;
    }

    .zg-page--today .dashboard-live .signal-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .zg-page--today .dashboard-live .signal-strip__item {
        min-height: 54px;
        padding: 8px;
        gap: 5px;
    }

    .zg-page--today .dashboard-live .signal-strip__item span {
        font-size: 11px;
        line-height: 1.08;
        text-align: right;
        text-overflow: clip;
        white-space: normal;
    }

    .zg-page--today .dashboard-live .dark-stage__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .zg-page--today .dashboard-live .dark-stage__summary > div {
        min-height: 64px;
    }

    .zg-page--today .dashboard-live .dark-stage__summary > div:nth-child(odd) {
        border-left: 0;
    }

    .zg-page--today .dashboard-live .dark-stage__summary > div:nth-child(n + 3) {
        border-top: 1px solid rgb(255 255 255 / .1);
    }

    .zg-context-switcher__panel {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    }

    .zg-subscription-banner,
    .zg-support-banner {
        min-height: 0;
        padding: 9px 12px;
        align-items: flex-start;
    }

    .zg-subscription-banner__icon {
        display: none;
    }

    .zg-subscription-banner p,
    .zg-support-banner p {
        font-size: 12px;
    }

    .zg-subscription-banner p strong,
    .zg-subscription-banner p span {
        display: block;
    }

    .zg-subscription-banner__action {
        min-height: 32px;
        padding-inline: 9px;
        line-height: 30px;
    }

    .zg-subscription-banner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .zg-subscription-banner > p {
        grid-column: 1 / -1;
        overflow-wrap: anywhere;
    }

    .zg-subscription-banner__action {
        display: inline-flex;
        max-width: 100%;
        padding: 8px 10px;
        justify-self: start;
        align-items: center;
        line-height: 1.35;
        white-space: normal;
    }

    .zg-subscription-banner > [data-dismiss] {
        grid-column: 2;
    }

    .zg-support-banner {
        flex-wrap: wrap;
    }

    .zg-support-banner__mark {
        margin-top: 2px;
    }

    .zg-support-banner form {
        width: 100%;
    }

    .zg-support-banner .zg-button {
        width: 100%;
    }

    .zg-onboarding-body {
        overflow: auto;
    }

    .zg-onboarding-shell {
        display: block;
        min-height: 100%;
    }

    .zg-onboarding-aside {
        position: static;
        height: auto;
        min-height: auto;
        padding: max(20px, env(safe-area-inset-top)) 18px 18px;
        background: #111519;
    }

    .zg-onboarding-aside > div:nth-child(2),
    .zg-onboarding-aside > small,
    .zg-onboarding-progress ol {
        display: none;
    }

    .zg-onboarding-progress {
        margin-top: 18px;
    }

    .zg-onboarding-progress__mobile {
        display: block;
        color: #aeb5bc;
        font-size: 13px;
    }

    .zg-onboarding-progress__mobile .zg-progress {
        height: 7px;
        margin-top: 8px;
        background: #30373c;
    }

    .zg-onboarding-progress__mobile .zg-progress span {
        background: var(--zg-violet);
    }

    .zg-onboarding-main {
        min-height: calc(100dvh - 125px);
        padding: 30px 18px max(28px, env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .zg-onboarding-step__header h2 {
        font-size: 38px;
    }

    .zg-onboarding-actions .zg-button {
        flex: 1;
    }

    .zg-platform-app {
        display: block;
    }

    .zg-platform-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(84vw, 330px);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 240ms var(--zg-ease);
    }

    body.zg-nav-open .zg-platform-sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    .zg-platform-topbar {
        padding-inline: 14px;
    }

    .zg-platform-topbar > .zg-icon-button {
        display: inline-grid;
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .zg-platform-topbar form {
        width: min(100%, 320px);
    }

    .zg-platform-topbar__user > span:first-child {
        display: none;
    }

    .zg-platform-main {
        padding-inline: 15px;
    }

    .zg-platform-heading {
        min-height: 104px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .zg-platform-heading h1 {
        font-size: 40px;
    }

    .zg-admin-filterbar {
        overflow-x: auto;
    }

    .zg-plan-limit-row {
        grid-template-columns: 1fr;
    }

    .zg-tenant-identity {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .zg-tenant-identity__mark {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .zg-tenant-identity > :last-child {
        grid-column: 1 / -1;
    }
}

/*
 * Application page class API
 * These unprefixed feature classes are the intentional page-level vocabulary;
 * the zg-* classes above remain the reusable atoms.
 */

.panel {
    min-width: 0;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius);
    background: var(--zg-surface);
    box-shadow: var(--zg-shadow-sm);
}

.panel--subtle {
    border-color: #e8eaec;
    background: var(--zg-surface-soft);
    box-shadow: none;
}

.panel__header {
    display: flex;
    min-height: 66px;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--zg-line);
}

.panel__header > div {
    min-width: 0;
}

.panel__header h2,
.panel__header h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 790;
    letter-spacing: -.03em;
}

.panel__header p {
    margin: 3px 0 0;
    color: var(--zg-muted);
    font-size: 13px;
}

.panel__header > a:not(.zg-button),
.panel__header > button.zg-button--quiet {
    color: var(--zg-brand);
    font-size: 14px;
    font-weight: 700;
}

.panel__total {
    font-size: 24px;
    font-weight: 820;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
}

.dark-stage {
    position: relative;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #292f34;
    border-radius: var(--zg-radius);
    color: var(--zg-white);
    background:
        radial-gradient(circle at 88% 8%, rgb(255 255 255 / .045), transparent 28%),
        linear-gradient(145deg, #171c20, #101416);
    box-shadow: var(--zg-shadow-stage);
}

.dark-stage::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px rgb(255 255 255 / .06);
    content: "";
}

.dark-stage > * {
    position: relative;
    z-index: 1;
}

.dark-stage__header {
    display: flex;
    min-height: 54px;
    margin-bottom: 14px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dark-stage__header h2,
.dark-stage__header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 780;
    letter-spacing: -.035em;
}

.dark-stage__header p {
    margin: 3px 0 0;
    color: #b8bec4;
    font-size: 13px;
}

.dark-stage__header .toolbar {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.dark-stage__summary {
    display: grid;
    padding: 0;
    margin: 14px 0 0;
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: 12px;
    background: rgb(255 255 255 / .055);
}

.dark-stage__summary > div {
    display: flex;
    min-width: 0;
    min-height: 76px;
    padding: 12px 16px;
    justify-content: center;
    flex-direction: column;
}

.dark-stage__summary > div + div {
    border-left: 1px solid rgb(255 255 255 / .1);
}

.dark-stage__summary dt {
    color: #aeb5bb;
    font-size: 12px;
    font-weight: 630;
}

.dark-stage__summary dd {
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 22px;
    font-weight: 810;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facility-hire-summary .dark-stage__summary > div:first-child dd {
    overflow: visible;
    line-height: 1.08;
    text-overflow: clip;
    white-space: normal;
}

.dark-stage__summary--stack {
    display: grid;
    grid-template-columns: 1fr;
}

.dark-stage__summary--stack > div {
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dark-stage__summary--stack > div + div {
    border-top: 1px solid rgb(255 255 255 / .1);
    border-left: 0;
}

.toolbar {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    gap: 8px;
}

.toolbar--filters {
    min-height: 66px;
    padding: 7px;
    margin-bottom: 14px;
    overflow-x: auto;
    border: 1px solid var(--zg-line);
    border-radius: 13px;
    background: var(--zg-white);
    box-shadow: var(--zg-shadow-sm);
}

.toolbar--filters .zg-field {
    min-width: 130px;
    gap: 1px;
}

.toolbar--filters .zg-field--search {
    min-width: 220px;
    flex: 1;
}

.toolbar--filters .zg-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.toolbar--filters .zg-field input,
.toolbar--filters .zg-field select,
.toolbar select {
    min-height: 48px;
    border-color: transparent;
    background-color: var(--zg-surface-soft);
}

.toolbar--filters > .zg-button,
.toolbar--filters > .zg-icon-button {
    flex: 0 0 auto;
}

.form-grid {
    display: grid;
    padding: 18px;
    gap: 15px;
}

.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid__full { grid-column: 1 / -1; }

.form-stack {
    display: grid;
    padding: 18px;
    gap: 16px;
}

.inline-form {
    display: flex;
    padding: 16px 18px;
    align-items: end;
    gap: 10px;
}

.inline-form .zg-field {
    flex: 1;
}

.task-form {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.task-form--narrow {
    width: 100%;
}

.task-form > .panel > .zg-field,
.task-form > .panel > .zg-check {
    margin: 18px;
}

.split-layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    align-items: start;
    gap: 16px;
}

.split-layout--task {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
}

.sticky-actions,
.form-actions {
    position: static;
    z-index: 20;
    bottom: 0;
    display: flex;
    min-height: 72px;
    padding: 10px 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--zg-line);
    background: color-mix(in srgb, var(--zg-canvas) 94%, transparent);
    backdrop-filter: blur(12px);
}

.form-actions--secondary {
    position: static;
    min-height: 0;
    padding: 12px 18px;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
}

.step-count {
    display: inline-grid;
    min-width: 29px;
    min-height: 29px;
    padding: 0 8px;
    margin-right: 8px;
    place-items: center;
    float: left;
    border-radius: 9px;
    color: var(--zg-violet-deep);
    background: var(--zg-violet-soft);
    font-size: 12px;
    font-weight: 800;
}

.segmented-control {
    display: inline-flex;
    min-width: 0;
    min-height: 54px;
    padding: 5px;
    margin: 18px;
    border: 1px solid var(--zg-line);
    border-radius: 13px;
    background: var(--zg-surface-muted);
}

.segmented-control label {
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
}

.segmented-control label > span {
    display: grid;
    min-width: 130px;
    min-height: 44px;
    padding: 0 18px;
    place-items: center;
    border-radius: 9px;
    color: var(--zg-muted-strong);
    font-size: 15px;
    font-weight: 720;
}

.segmented-control input:checked + span {
    color: var(--zg-white);
    background: var(--zg-brand);
}

.data-table {
    min-width: 0;
    padding: 0 14px 12px;
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.data-table th {
    height: 40px;
    padding: 8px 11px;
    color: var(--zg-muted);
    background: var(--zg-surface-muted);
    font-size: 12px;
    font-weight: 740;
    text-align: left;
    white-space: nowrap;
}

.data-table th:first-child { border-radius: 9px 0 0 9px; }
.data-table th:last-child { border-radius: 0 9px 9px 0; }

.data-table td {
    height: 48px;
    padding: 7px 11px;
    border-bottom: 1px solid var(--zg-line);
    color: var(--zg-ink-soft);
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafbfb; }
.data-table td > small { display: block; margin-top: 2px; color: var(--zg-muted); }
.zg-cell-detail { display: grid; min-width: 0; gap: 2px; }
.zg-cell-detail > strong,
.zg-cell-detail > small { display: block; overflow-wrap: anywhere; }
.zg-cell-detail > small { color: var(--zg-muted); font-size: 12px; }
.data-table a { font-weight: 680; }
.data-table a:hover { color: var(--zg-brand); }
.data-table .numeric,
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table input[type="number"] { width: 130px; min-height: 40px; padding: 0 10px; border: 1px solid var(--zg-control-border); border-radius: 9px; }
.data-table tfoot th,
.data-table tfoot td { height: 56px; border-top: 2px solid var(--zg-line-strong); font-size: 16px; font-weight: 800; }

.status {
    display: inline-flex;
    min-height: 30px;
    padding: 3px 12px;
    align-items: center;
    border-radius: 999px;
    color: var(--zg-muted-strong);
    background: var(--zg-surface-muted);
    font-size: 13px;
    font-weight: 700;
}

.status--success { color: #2f7509; background: var(--zg-success-soft); }
.status--danger { color: var(--zg-danger); background: var(--zg-danger-soft); }
.status--warning { color: var(--zg-amber-deep); background: var(--zg-amber-soft); }
.status--info { color: var(--zg-info); background: var(--zg-info-soft); }

.form-errors {
    display: block;
    padding: 12px 15px;
    margin-bottom: 13px;
    border-radius: var(--zg-radius-sm);
}

.form-errors ul { margin: 6px 0 0; }

.empty-state {
    display: flex;
    min-height: 230px;
    padding: 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.empty-state--compact { min-height: 150px; padding: 22px; }
.empty-state--large { min-height: 420px; }
.empty-state--dark { color: var(--zg-white); }
.empty-state h2,
.empty-state h3 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.02em; }
.empty-state > strong { font-size: 18px; }
.empty-state p { max-width: 430px; margin: 5px 0 18px; color: var(--zg-muted); }
.empty-state--dark p { color: #aeb5bb; }
.empty-state__icon { display: grid; width: 66px; height: 66px; margin-bottom: 15px; place-items: center; border-radius: 50%; background: var(--zg-surface-muted); }

.detail-list {
    display: grid;
    padding: 8px 18px 18px;
    margin: 0;
}

.detail-list--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.detail-list > div { display: grid; min-height: 52px; padding: 9px 0; grid-template-columns: minmax(130px, .65fr) minmax(0, 1fr); align-items: center; gap: 15px; border-bottom: 1px solid var(--zg-line); }
.detail-list dt { color: var(--zg-muted); }
.detail-list dd { margin: 0; font-weight: 650; text-align: right; }
.detail-list dd > small { display: block; margin-top: 4px; color: var(--zg-muted); font-size: 13px; font-weight: 450; overflow-wrap: anywhere; }

.zg-report-scope {
    display: grid;
    min-width: 0;
    padding: 12px 16px;
    gap: 3px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    color: var(--zg-ink-soft);
    background: var(--zg-white);
    font-size: 14px;
}
.zg-report-scope > span { color: var(--zg-muted-strong); }

.summary-strip {
    display: grid;
    min-height: 94px;
    margin-bottom: 14px;
    overflow: hidden;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: var(--zg-radius);
    color: var(--zg-white);
    background: var(--zg-stage);
}

.summary-strip > div { display: flex; min-width: 0; padding: 15px 20px; justify-content: center; flex-direction: column; }
.summary-strip > div + div { border-left: 1px solid rgb(255 255 255 / .1); }
.summary-strip span { color: #aeb5bb; font-size: 12px; }
.summary-strip strong { margin-top: 4px; overflow: hidden; font-size: 24px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.summary-strip > div:nth-child(2) { background: linear-gradient(130deg, #4f28bf, #7444ed); }
.summary-strip > div:nth-child(3) { color: #121900; background: var(--zg-lime); }
.summary-strip > div:nth-child(3) span { color: #405a18; }

.transaction-list,
.work-queue,
.contact-list,
.selection-list,
.unit-list,
.plan-list,
.usage-list {
    padding: 0 16px 12px;
    margin: 0;
    list-style: none;
}

.transaction-list li + li,
.work-queue li + li,
.contact-list li + li { border-top: 1px solid var(--zg-line); }

.transaction-list a,
.work-queue a,
.contact-list li {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.transaction-list span,
.work-queue span { min-width: 0; }
.transaction-list strong,
.transaction-list small,
.work-queue strong,
.work-queue small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-list small,
.work-queue small { color: var(--zg-muted); font-size: 12px; }

.rate-list { display: grid; padding: 4px 16px 13px; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rate-list > div { min-width: 0; padding: 13px; border-radius: 11px; background: var(--zg-surface-muted); }
.rate-list dt { color: var(--zg-muted); font-size: 12px; }
.rate-list dd { margin: 4px 0 0; overflow: hidden; font-size: 18px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.rate-list small { display: block; color: var(--zg-muted); font-size: 11px; font-weight: 500; }

.section-tabs {
    display: flex;
    min-height: 54px;
    margin: 0;
    align-items: flex-end;
    gap: 28px;
    border-bottom: 1px solid var(--zg-line);
}

.section-tabs a { position: relative; display: grid; min-height: 54px; place-items: center; color: var(--zg-muted-strong); font-size: 15px; font-weight: 690; }
.section-tabs a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; content: ""; }
.section-tabs a:hover,
.section-tabs a.is-active { color: var(--zg-ink); }
.section-tabs a.is-active::after { background: var(--zg-brand); }

.unit-row,
.selection-row,
.usage-row,
.plan-row {
    display: grid;
    min-height: 72px;
    padding: 11px 3px;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--zg-line);
}

.unit-row { grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr) auto; }
.unit-row > div strong,
.unit-row > div small,
.occupant-names span { display: block; }
.unit-row small,
.occupant-names span { color: var(--zg-muted); font-size: 12px; }
.occupant-names { display: flex; flex-wrap: wrap; gap: 4px 12px; }

.stay-units,
.expense-lines { display: grid; gap: 12px; padding: 0 18px 18px; }
.stay-unit,
.expense-line { overflow: hidden; }
.stay-unit__header,
.expense-line > header { display: flex; min-height: 54px; padding: 10px 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--zg-line); }
.stay-unit__header h3,
.expense-line > header h3 { margin: 0; font-size: 17px; }
.occupant-list { padding: 0 18px 18px; }
.occupant-list h4 { margin: 4px 0 0; font-size: 15px; }
.occupant-row { padding-inline: 0; }
.stay-unit__guest-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
[data-account-create-status][hidden] { display: none; }
[data-vendor-create-status][hidden],
[data-expense-vendor-ready][hidden] { display: none; }
.expense-vendor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.expense-vendor-actions small { margin: 0; }
.data-table td > a > small,
.data-table .gridjs-td > a > small,
.data-table .gridjs-td > small { display: block; margin-top: 3px; }

.cash-count-list { display: grid; padding: 8px 18px 18px; }
.cash-count-row { display: grid; min-height: 74px; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 20px; border-bottom: 1px solid var(--zg-line); }
.cash-count-row label strong,
.cash-count-row label span { display: block; }
.cash-count-row label span { color: var(--zg-muted); font-size: 12px; }
.cash-count-row input { min-height: var(--zg-control); padding: 0 14px; border: 1px solid var(--zg-control-border); border-radius: var(--zg-radius-sm); text-align: right; }

.task-board { display: grid; padding: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.task-card { min-width: 0; padding: 15px; border: 1px solid var(--zg-line); border-radius: var(--zg-radius-sm); background: var(--zg-surface-soft); }
.task-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-card > header strong,
.task-card > header small { display: block; }
.task-card > header strong { font-size: 18px; }
.task-card > header small { color: var(--zg-muted); }
.task-card > p { min-height: 40px; margin: 12px 0; color: var(--zg-muted-strong); }
.task-card dl { display: grid; margin: 0; gap: 7px; }
.task-card dl > div { display: flex; justify-content: space-between; gap: 12px; }
.task-card dt { color: var(--zg-muted); font-size: 12px; }
.task-card dd { margin: 0; font-size: 13px; font-weight: 650; }
.task-card .toolbar { min-height: 52px; margin-top: 13px; border-top: 1px solid var(--zg-line); }
.task-card .toolbar select { min-width: 0; flex: 1; }

.check-list {
    display: grid;
    padding: 14px 18px;
    margin: 0;
    border: 0;
    gap: 4px;
}

.check-list legend {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 780;
}

.check-list .zg-check {
    min-height: 54px;
    padding: 4px 0;
    border-bottom: 1px solid var(--zg-line);
}

.check-list .zg-check:last-child {
    border-bottom: 0;
}

.check-list .zg-check strong,
.check-list .zg-check small {
    display: block;
}

.check-list .zg-check small {
    color: var(--zg-muted);
    font-size: 12px;
}

.preference-list {
    display: grid;
    padding: 8px 18px 18px;
    margin: 0;
    list-style: none;
}

.preference-list li {
    display: flex;
    min-height: 58px;
    padding: 8px 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--zg-line);
}

.preference-list li:last-child { border-bottom: 0; }
.preference-list strong,
.preference-list small { display: block; }
.preference-list small { margin-top: 2px; color: var(--zg-muted); }

.timeline {
    position: relative;
    padding: 10px 18px 18px 42px;
    margin: 0;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: 24px;
    bottom: 32px;
    left: 26px;
    width: 2px;
    background: var(--zg-line);
    content: "";
}

.timeline li {
    position: relative;
    display: grid;
    min-height: 74px;
    padding: 11px 0;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 18px;
}

.timeline li::before {
    position: absolute;
    top: 19px;
    left: -23px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--zg-white);
    border-radius: 50%;
    background: var(--zg-violet);
    box-shadow: 0 0 0 1px var(--zg-violet);
    content: "";
}

.timeline li > span {
    color: var(--zg-muted);
    font-size: 12px;
}

.timeline p {
    margin: 3px 0;
    color: var(--zg-muted-strong);
}

.timeline small {
    color: var(--zg-muted);
}

.hire-add-ons {
    display: grid;
    padding: 0 18px 18px;
    gap: 8px;
}

.hire-add-ons > h3 {
    margin: 4px 0;
    font-size: 16px;
}

.hire-add-ons > .form-grid {
    padding: 12px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-surface-soft);
}

.empty-inline {
    padding: 16px;
    margin: 0;
    border: 1px dashed var(--zg-line-strong);
    border-radius: 10px;
    color: var(--zg-muted);
    background: var(--zg-surface-soft);
    font-size: 13px;
}

.stay-timing {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
}

.stay-timing legend {
    margin-right: 12px;
    color: var(--zg-muted-strong);
    font-size: 14px;
    font-weight: 700;
}

.chart-panel [data-chart] {
    min-height: 300px;
    margin: 16px 18px 22px;
}

.property-map {
    min-height: 280px;
    margin: 0 18px 18px;
    overflow: hidden;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background:
        linear-gradient(45deg, transparent 49%, #dfe3e7 50%, transparent 51%) 0 0 / 34px 34px,
        linear-gradient(-45deg, transparent 49%, #dfe3e7 50%, transparent 51%) 0 0 / 34px 34px,
        #f1f3f4;
}

.property-map::before {
    display: grid;
    height: 100%;
    min-height: 280px;
    place-items: center;
    color: var(--zg-muted);
    font-size: 13px;
    content: "Property location";
}

.property-map.leaflet-container::before {
    display: none;
}

.error-code {
    margin: 0 0 4px !important;
    color: var(--zg-brand) !important;
    font: 800 13px var(--zg-mono) !important;
    letter-spacing: .16em;
}

.input-with-action { position: relative; }
.input-with-action > input { padding-right: 62px !important; }
.input-with-action > .zg-icon-button { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; min-width: 44px; border: 0; background: transparent; }
.auth-form { display: grid; gap: 17px; }
.auth-form .form-grid { padding: 0; }
.auth-form__switch { margin: 8px 0 0; color: var(--zg-muted); text-align: center; }
.auth-form__switch a { color: var(--zg-brand); font-weight: 720; }
.zg-button--block { width: 100%; }
.auth-context { padding: 16px; margin-bottom: 18px; box-shadow: none; }

.selection-row { grid-template-columns: minmax(0, 1fr) auto; }
.selection-row form { margin: 0; }
.plan-row { grid-template-columns: minmax(0, 1.2fr) minmax(130px, .45fr) auto; padding-inline: 16px; }
.plan-row.is-current { border-radius: 12px; background: var(--zg-violet-soft); }
.plan-row__price { font-size: 19px; font-weight: 790; }
.usage-row { grid-template-columns: minmax(160px, .7fr) minmax(180px, 1fr) 100px; padding-inline: 16px; }
.usage-row .zg-progress { height: 9px; margin: 0; background: var(--zg-surface-muted); }

.dashboard-grid {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr);
    grid-template-areas:
        "live live"
        "movements queue"
        "currencies payments";
    grid-template-rows: auto auto auto;
    gap: 12px;
}

.dashboard-live { grid-area: live; }
.dashboard-actions { display: none; }
.dashboard-movements { grid-area: movements; min-height: 0; }
.dashboard-queue { grid-area: queue; min-height: 0; }
.dashboard-currencies { grid-area: currencies; }
.dashboard-payments { grid-area: payments; }
.dashboard-movements .data-table,
.dashboard-queue .work-queue { max-height: none; overflow-x: auto; }
.dashboard-payments .transaction-list { max-height: none; }
.action-stack { display: grid; padding: 16px; gap: 9px; }
.zg-button--large { min-height: 60px; font-size: 17px; }

.signal-strip {
    display: grid;
    min-height: 72px;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    border-radius: 11px;
}

.dashboard-live .signal-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.signal-strip__item { display: flex; min-width: 0; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 10px; color: #0b0d10; background: #444b50; }
.signal-strip__item strong { font-size: 23px; font-weight: 830; }
.signal-strip__item span { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.signal-strip__item--ready,
.signal-strip__item--success,
.signal-strip__item--lime { background: var(--zg-lime); }
.signal-strip__item--occupied,
.signal-strip__item--info,
.signal-strip__item--cobalt { color: var(--zg-white); background: var(--zg-cobalt); }
.signal-strip__item--cleaning,
.signal-strip__item--violet { color: var(--zg-white); background: var(--zg-violet); }
.signal-strip__item--warning,
.signal-strip__item--amber,
.signal-strip__item--due { background: var(--zg-amber); }
.signal-strip__item--danger,
.signal-strip__item--coral { color: var(--zg-white); background: var(--zg-coral); }
.signal-strip__item--neutral { color: var(--zg-white); background: #3b4348; }

/* Room and facilities timeline boards */

.room-board,
.facility-planner { height: auto; min-height: 420px; overflow-x: auto; }

.schedule-grid,
.planner-grid {
    display: grid;
    min-width: max-content;
    border: 1px solid rgb(255 255 255 / .09);
    border-radius: 12px;
    background: #0e1316;
}

.schedule-grid { grid-template-columns: 150px repeat(var(--board-days), minmax(110px, 1fr)); }
.planner-grid { grid-template-columns: 180px repeat(var(--slot-count), minmax(100px, 1fr)); }

.schedule-grid__corner,
.planner-grid__corner,
.schedule-grid__date,
.planner-grid__time {
    position: sticky;
    z-index: 6;
    top: 0;
    min-height: 54px;
    padding: 9px 11px;
    border-right: 1px solid rgb(255 255 255 / .08);
    border-bottom: 1px solid rgb(255 255 255 / .1);
    color: #9ea6ad;
    background: #171d21;
    font-size: 12px;
    text-align: center;
}

.schedule-grid__corner,
.planner-grid__corner { z-index: 8; left: 0; display: flex; align-items: center; text-align: left; }
.schedule-grid__date strong,
.schedule-grid__date span { display: block; }
.schedule-grid__date strong { color: var(--zg-white); font-size: 13px; }
.schedule-grid__date.is-today { color: var(--zg-white); background: var(--zg-violet-deep); }

.schedule-grid__room,
.planner-grid__resource {
    position: sticky;
    z-index: 5;
    left: 0;
    display: flex;
    min-height: 68px;
    padding: 10px 12px;
    justify-content: center;
    flex-direction: column;
    border-right: 1px solid rgb(255 255 255 / .1);
    border-bottom: 1px solid rgb(255 255 255 / .08);
    background: #161b1f;
}

.schedule-grid__room strong,
.schedule-grid__room small,
.planner-grid__resource strong,
.planner-grid__resource small { display: block; }
.schedule-grid__room small,
.planner-grid__resource small { color: #899198; font-size: 11px; }

.schedule-grid__track,
.planner-grid__track {
    position: relative;
    display: grid;
    min-height: 68px;
    grid-column: 2 / -1;
    grid-template-columns: repeat(var(--board-days, var(--slot-count)), minmax(100px, 1fr));
    align-items: center;
    border-bottom: 1px solid rgb(255 255 255 / .08);
    background: repeating-linear-gradient(to right, transparent 0, transparent calc((100% / var(--board-days, var(--slot-count))) - 1px), rgb(255 255 255 / .065) calc(100% / var(--board-days, var(--slot-count))));
}

.schedule-block,
.planner-block {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    min-height: 48px;
    padding: 7px 11px;
    grid-column: var(--start) / span var(--span);
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgb(255 255 255 / .18);
    border-radius: 10px;
    color: var(--zg-white);
    background: #363e44;
    box-shadow: 0 7px 15px rgb(0 0 0 / .18);
}

.schedule-block strong,
.schedule-block small,
.planner-block strong,
.planner-block small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-block strong,
.planner-block strong { font-size: 12px; }
.schedule-block small,
.planner-block small { opacity: .74; font-size: 10px; }
.schedule-block--violet,
.planner-block--violet { background: var(--zg-violet); }
.schedule-block--cobalt,
.planner-block--cobalt,
.schedule-block--info,
.planner-block--info { background: var(--zg-cobalt); }
.schedule-block--lime,
.planner-block--lime,
.schedule-block--success,
.planner-block--success { color: #0a1600; background: var(--zg-lime); }
.schedule-block--amber,
.planner-block--amber,
.schedule-block--warning,
.planner-block--warning { color: #211300; background: var(--zg-amber); }
.schedule-block--coral,
.planner-block--coral,
.schedule-block--danger,
.planner-block--danger { background: var(--zg-coral); }

.legend { display: flex; min-height: 40px; padding: 8px 2px; align-items: center; flex-wrap: wrap; gap: 12px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; color: var(--zg-muted); font-size: 12px; }
.legend__item::before { width: 10px; height: 10px; border-radius: 50%; background: #697178; content: ""; }
.legend__item--violet::before { background: var(--zg-violet); }
.legend__item--cobalt::before,
.legend__item--info::before { background: var(--zg-cobalt); }
.legend__item--lime::before,
.legend__item--success::before { background: var(--zg-lime); }
.legend__item--amber::before,
.legend__item--warning::before { background: var(--zg-amber); }
.legend__item--coral::before,
.legend__item--danger::before { background: var(--zg-coral); }

/* Accounting, reporting, settings and access-control pages */

.accounting-headline,
.ageing-summary,
.currency-settings,
.fiscal-document {
    margin-bottom: 14px;
}

.financial-statement,
.financial-section {
    display: grid;
}

.financial-section {
    padding: 6px 18px 18px;
}

.financial-section__row,
.financial-statement > div,
.financial-section > div {
    display: grid;
    min-height: 48px;
    padding: 8px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--zg-line);
}

.financial-section__row strong,
.financial-statement dd,
.financial-section dd {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.financial-section dt,
.financial-section dd,
.financial-statement dt,
.financial-statement dd {
    margin: 0;
}

.financial-section > div:last-child,
.financial-statement > div:last-child {
    min-height: 58px;
    border-bottom: 3px double var(--zg-line-strong);
    font-size: 17px;
    font-weight: 800;
}

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

.module-list,
.report-groups {
    display: grid;
    padding: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.module-row {
    display: grid;
    min-height: 94px;
    padding: 14px 16px;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-surface-soft);
    transition: border-color 150ms ease, transform 150ms var(--zg-ease), background 150ms ease;
}

.module-row:hover {
    border-color: var(--zg-line-strong);
    background: var(--zg-white);
    transform: translateY(-2px);
}

.module-row > div,
.module-row > span {
    min-width: 0;
}

.module-row strong,
.module-row small {
    display: block;
}

.module-row strong {
    font-size: 17px;
}

.module-row small {
    margin-top: 4px;
    color: var(--zg-muted);
    font-size: 13px;
}

.module-row > .zg-icon,
.module-row > span:last-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--zg-violet);
    background: var(--zg-violet-soft);
}

.master-detail {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(270px, .62fr) minmax(0, 1.38fr);
    gap: 14px;
}

.master-list,
.detail-panel {
    min-height: 0;
    overflow: visible;
}

.selection-list {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.selection-row {
    min-height: 60px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
}

.selection-row:hover,
.selection-row.is-selected {
    background: var(--zg-surface-muted);
}

.permission-group {
    padding: 14px 18px;
    border-bottom: 1px solid var(--zg-line);
}

.permission-group h3,
.permission-scope h3 {
    margin: 0 0 9px;
    font-size: 16px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 4px 16px;
}

.permission-assignment {
    display: grid;
    gap: 14px;
}

.permission-scope {
    padding: 15px;
    border: 1px solid var(--zg-line);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-surface-soft);
}

.currency-settings__base {
    display: flex;
    min-height: 70px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgb(255 255 255 / .13);
    border-radius: 11px;
    background: rgb(255 255 255 / .065);
}

.notice {
    padding: 14px 16px;
    border-left: 4px solid var(--zg-info);
    border-radius: 8px;
    color: #184d94;
    background: var(--zg-info-soft);
}

.readiness-list,
.attempt-list {
    display: grid;
    padding: 8px 18px 18px;
    margin: 0;
    list-style: none;
}

.readiness-list > *,
.attempt-list > * {
    min-height: 50px;
    padding: 9px 0;
    border-bottom: 1px solid var(--zg-line);
}

.fiscal-qr {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border-radius: 10px;
    color: var(--zg-muted);
    background: var(--zg-white);
}

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

.link-button {
    padding: 0;
    border: 0;
    color: var(--zg-brand);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.audit-diff {
    font-family: var(--zg-mono);
    font-size: 12px;
    white-space: pre-wrap;
}

.setup-checks {
    display: grid;
    padding: 12px 18px;
    gap: 8px;
}

.setup-panel {
    width: 100%;
    margin-inline: auto;
}

.notice--danger {
    border-left-color: var(--zg-danger);
    color: #8f1928;
    background: var(--zg-danger-soft);
}

.entitlement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px 16px;
}

.funnel-list {
    display: grid;
    padding: 14px 18px 20px;
    margin: 0;
    gap: 8px;
    list-style: none;
}

.funnel-list > li {
    display: grid;
    min-height: 70px;
    padding: 9px 12px;
    grid-template-columns: 42px minmax(0, 1fr) minmax(120px, .75fr);
    align-items: center;
    gap: 14px;
    border: 1px solid var(--zg-line);
    border-radius: 10px;
    background: var(--zg-surface-soft);
}

.funnel-list__step {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: var(--zg-white);
    background: var(--zg-violet);
    font-weight: 800;
}

.funnel-list > li > div strong,
.funnel-list > li > div small {
    display: block;
}

.funnel-list > li > div small {
    margin-top: 3px;
    color: var(--zg-muted);
    font-size: 12px;
}

.funnel-list progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    accent-color: var(--zg-violet);
}

.bar-chart {
    display: grid;
    min-height: 260px;
    padding: 18px 12px 34px;
    grid-template-columns: repeat(var(--bar-count, 12), minmax(28px, 1fr));
    align-items: end;
    gap: clamp(6px, 1.2vw, 16px);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 62px, rgb(255 255 255 / .075) 63px);
}

.bar-chart__item {
    position: relative;
    display: flex;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
}

.bar-chart__bar {
    width: min(34px, 72%);
    height: var(--bar-percent, var(--value, 0%));
    min-height: 3px;
    align-self: center;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(to top, var(--zg-violet-deep), #9569ff);
    box-shadow: 0 0 18px rgb(116 68 237 / .16);
}

.bar-chart__item strong,
.bar-chart__item small {
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-chart__item strong {
    margin-top: 7px;
    color: var(--zg-white);
    font-size: 11px;
}

.bar-chart__item small {
    color: #8e979e;
    font-size: 10px;
}

.analytics-stage .zg-chart--enhanced {
    height: 280px;
    min-height: 280px;
}

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

.distribution-list > * {
    display: grid;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) minmax(100px, .7fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--zg-line);
}

.distribution-list progress {
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    accent-color: var(--zg-violet);
}

.health-grid {
    display: grid;
    padding: 14px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.health-item {
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--zg-line);
    border-left: 5px solid var(--zg-muted);
    border-radius: var(--zg-radius-sm);
    background: var(--zg-surface-soft);
}

.health-item--success { border-left-color: var(--zg-success); }
.health-item--warning { border-left-color: var(--zg-amber); }
.health-item--danger { border-left-color: var(--zg-danger); }
.health-item--info { border-left-color: var(--zg-info); }
.health-item strong,
.health-item small { display: block; }
.health-item strong { font-size: 17px; }
.health-item small { margin-top: 5px; color: var(--zg-muted); }

/* Curated local-vendor adapters */

[x-cloak] {
    display: none !important;
}

.zg-swal {
    width: min(460px, calc(100vw - 28px)) !important;
    padding: 26px !important;
    border: 1px solid var(--zg-line) !important;
    border-radius: var(--zg-radius-lg) !important;
    color: var(--zg-ink) !important;
    background: var(--zg-white) !important;
    box-shadow: 0 28px 90px rgb(0 0 0 / .28) !important;
    font-family: var(--zg-font) !important;
}

.zg-swal .swal2-title {
    padding: 0 !important;
    font-size: 27px !important;
    font-weight: 810 !important;
    letter-spacing: -.035em !important;
}

.zg-swal .swal2-html-container {
    margin: 12px 0 0 !important;
    color: var(--zg-muted-strong) !important;
    font-size: 15px !important;
}

.zg-swal .swal2-actions {
    width: 100% !important;
    margin: 24px 0 0 !important;
    gap: 9px !important;
}

.zg-swal__confirm,
.zg-swal__danger,
.zg-swal__cancel {
    min-height: var(--zg-control);
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--zg-radius-sm);
    font: 700 16px var(--zg-font);
    cursor: pointer;
}

.zg-swal__confirm { color: var(--zg-white); background: var(--zg-brand); }
.zg-swal__danger { color: var(--zg-white); background: var(--zg-danger); }
.zg-swal__cancel { border-color: var(--zg-line-strong); color: var(--zg-ink); background: var(--zg-white); }

.zg-swal-toast {
    border: 1px solid var(--zg-line) !important;
    border-radius: var(--zg-radius-sm) !important;
    background: var(--zg-white) !important;
    box-shadow: var(--zg-shadow-md) !important;
    font-family: var(--zg-font) !important;
}

.zg-gridjs {
    min-width: 0;
    font-family: var(--zg-font);
}

.zg-gridjs .gridjs-container {
    color: var(--zg-ink-soft);
    font-size: 14px;
}

.zg-gridjs .gridjs-head {
    display: flex;
    padding: 0 0 12px;
    justify-content: flex-end;
}

.zg-gridjs .gridjs-search {
    width: min(300px, 100%);
}

.zg-gridjs .gridjs-search-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--zg-line-strong);
    border-radius: 11px;
    box-shadow: none;
    font: inherit;
}

.zg-gridjs .gridjs-wrapper {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.zg-gridjs table.gridjs-table {
    width: 100%;
    border: 0;
}

.zg-gridjs th.gridjs-th {
    padding: 12px 11px;
    border: 0;
    color: var(--zg-muted);
    background: var(--zg-surface-muted);
    font-size: 12px;
    font-weight: 740;
}

.zg-gridjs td.gridjs-td {
    padding: 12px 11px;
    border: 0;
    border-bottom: 1px solid var(--zg-line);
    background: var(--zg-white);
}

.zg-gridjs .gridjs-footer {
    padding: 12px 0 0;
    border: 0;
    box-shadow: none;
}

.zg-gridjs .gridjs-pagination .gridjs-pages button {
    min-width: 42px;
    min-height: 42px;
    border-color: var(--zg-line);
    color: var(--zg-ink-soft);
    background: var(--zg-white);
    font: 650 13px var(--zg-font);
}

.zg-gridjs .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
    color: var(--zg-white);
    background: var(--zg-stage);
}

[data-sortable] .is-sorting-ghost {
    opacity: .35;
}

[data-sortable] .is-sorting-chosen {
    border-color: var(--zg-violet) !important;
    box-shadow: 0 12px 28px rgb(79 40 191 / .17) !important;
}

[data-sortable-handle],
.zg-sort-handle {
    cursor: grab;
    touch-action: none;
}

[data-sortable-handle]:active,
.zg-sort-handle:active {
    cursor: grabbing;
}

@media (max-width: 1020px) {
    .form-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(250px, .7fr); }
    .rate-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .panel__header { padding-inline: 15px; }
    .form-grid,
    .form-grid--two,
    .form-grid--three,
    .form-grid--four { grid-template-columns: 1fr; padding: 15px; }
    .task-form .segmented-control {
        display: flex;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin: 15px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .task-form .segmented-control label { min-width: 0; flex: 1 1 100px; }
    .task-form .segmented-control label > span { min-width: 0; padding-inline: 10px; text-align: center; }
    .task-form .stay-timing legend { max-width: 100%; margin: 0 0 8px; }
    .task-form > *,
    .stay-units > *,
    .occupant-list > * { min-width: 0; max-width: 100%; }
    .detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .detail-list dd { text-align: left; overflow-wrap: anywhere; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .split-layout,
    .split-layout--task { grid-template-columns: 1fr; }
    .toolbar--filters { padding: 6px; }
    .toolbar--filters .zg-field { min-width: 170px; }
    .toolbar--filters .zg-field--search { min-width: 230px; }
    .dark-stage { padding: 16px; }
    .dark-stage__summary { overflow-x: auto; grid-template-columns: repeat(4, minmax(150px, 1fr)); }
    .dark-stage__summary--stack { grid-template-columns: 1fr; }
    .summary-strip { overflow-x: auto; grid-template-columns: repeat(3, minmax(180px, 1fr)); }
    .section-tabs { overflow-x: auto; scrollbar-width: none; }
    .section-tabs a { white-space: nowrap; }
    .detail-list--columns { grid-template-columns: 1fr; }
    .unit-row { grid-template-columns: 1fr auto; }
    .unit-row .occupant-names { grid-column: 1 / -1; }
    .cash-count-row { grid-template-columns: 1fr; padding-block: 12px; gap: 8px; }
    .cash-count-row input { width: 100%; }
    .task-board { grid-template-columns: 1fr; padding: 12px; }
    .dashboard-grid { display: flex; height: auto; flex-direction: column; }
    .dashboard-actions { display: block; order: -1; }
    .dashboard-movements .data-table,
    .dashboard-queue .work-queue,
    .dashboard-payments .transaction-list { max-height: none; }
    .signal-strip { overflow-x: auto; grid-template-columns: repeat(5, minmax(150px, 1fr)); }
    .room-board,
    .facility-planner { height: auto; min-height: 430px; }
    .schedule-grid { grid-template-columns: 120px repeat(var(--board-days), 100px); }
    .planner-grid { grid-template-columns: 140px repeat(var(--slot-count), 92px); }
    .plan-row,
    .usage-row { grid-template-columns: 1fr; }
    .sticky-actions,
    .form-actions { padding: 10px 0; }
    .sticky-actions .zg-button,
    .form-actions .zg-button { flex: 1; }
    .data-table { padding-inline: 10px; }
    .financial-columns,
    .master-detail { grid-template-columns: 1fr; height: auto; }
    .module-list,
    .report-groups { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
}

/* Printable statements, invoices and Z-readings */

.zg-print {
    min-height: 100%;
    background: #e8eaec;
}

.zg-print-toolbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    min-height: 72px;
    padding: 10px 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgb(244 245 246 / .92);
    backdrop-filter: blur(10px);
}

.zg-document {
    width: 210mm;
    min-height: 297mm;
    padding: 17mm;
    margin: 24px auto 48px;
    color: #111;
    background: white;
    box-shadow: 0 18px 60px rgb(0 0 0 / .14);
}

.zg-document__brand {
    display: flex;
    padding-bottom: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 3px solid #111;
}

.zg-document__brand > div {
    display: flex;
    flex-direction: column;
}

.zg-document__brand strong {
    font-size: 24px;
    font-weight: 820;
}

.zg-document__brand span {
    color: #555;
    font-size: 12px;
}

.zg-document__product {
    color: #777 !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.zg-document h1 {
    margin: 0 0 24px;
    font-size: 34px;
    letter-spacing: -.035em;
}

.zg-document__title {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.zg-document__title h1 {
    margin: 0;
}

.zg-document__number {
    color: #555;
    font: 12px var(--zg-mono);
    text-align: right;
}

.zg-document__parties {
    display: grid;
    margin-bottom: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.zg-document__parties section {
    min-height: 100px;
    padding: 13px 15px;
    border: 1px solid #dfe1e3;
    border-radius: 8px;
}

.zg-document__parties h2,
.zg-document__section h2 {
    margin: 0 0 8px;
    color: #555;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.zg-document__parties p {
    margin: 0;
    white-space: pre-line;
}

.zg-document__section {
    margin: 22px 0;
}

.zg-document__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.zg-document__table th,
.zg-document__table td {
    padding: 8px 7px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.zg-document__table th {
    color: #555;
    background: #f0f1f2;
    font-size: 10px;
    font-weight: 800;
}

.zg-document__table .numeric {
    text-align: right;
}

.zg-document__table small {
    display: block;
    margin-top: 2px;
    color: #666;
}

.zg-document__table .is-total > * {
    border-top: 2px solid #111;
    border-bottom: 3px double #111;
    font-weight: 800;
}

.zg-document__totals {
    width: min(100%, 340px);
    margin: 22px 0 0 auto;
}

.zg-document__totals > div {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #ddd;
}

.zg-document__totals > div.is-total {
    min-height: 50px;
    border-bottom: 3px double #111;
    font-size: 17px;
    font-weight: 820;
}

.zg-document__amount {
    padding: 20px;
    margin: 20px 0;
    border-radius: 9px;
    color: white;
    background: #111;
    font-size: 28px;
    font-weight: 820;
    text-align: center;
}

.zg-document__notes,
.zg-document__fiscal {
    padding: 12px 14px;
    margin-top: 22px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #444;
    font-size: 10px;
    white-space: pre-line;
}

.zg-document__fiscal {
    border-style: dashed;
    font-family: var(--zg-mono);
    word-break: break-word;
}

.zg-document .zg-table {
    font-size: 12px;
}

.zg-document .zg-table th,
.zg-document .zg-table td {
    height: auto;
    padding: 9px 8px;
}

.zg-document-total {
    width: min(100%, 320px);
    margin: 24px 0 0 auto;
}

.zg-document-total__row {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ddd;
}

.zg-document-total__row--grand {
    min-height: 52px;
    border-bottom: 3px double #111;
    font-size: 18px;
    font-weight: 820;
}

/* Responsive tablet */

@media (max-width: 1180px) and (min-width: 761px) {
    :root {
        --zg-sidebar-width: 88px;
        --zg-gutter: 22px;
    }

    .zg-sidebar {
        padding-inline: 10px;
    }

    .zg-sidebar__head {
        min-height: 66px;
        padding: 0;
        justify-content: center;
    }

    .zg-property {
        display: grid;
        width: 50px;
        height: 50px;
        place-items: center;
        border-radius: 15px;
        color: var(--zg-white);
        background: var(--zg-brand);
    }

    .zg-property::after {
        font-size: 14px;
        font-weight: 840;
        content: "ZG";
    }

    .zg-property__name,
    .zg-property__location,
    .zg-nav__label,
    .zg-nav__text,
    .zg-nav__count,
    .zg-user-card__copy,
    .zg-user-card__arrow,
    .zg-sidebar__product {
        display: none;
    }

    .zg-nav__group + .zg-nav__group {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgb(255 255 255 / .08);
    }

    .zg-nav__item {
        min-height: 52px;
        padding: 0;
        grid-template-columns: 1fr;
        place-items: center;
    }

    .zg-nav__item:hover {
        transform: none;
    }

    .zg-nav__icon {
        width: 24px;
        height: 24px;
    }

    .zg-user-card {
        display: grid;
        padding: 0;
        grid-template-columns: 1fr;
        place-items: center;
    }

    .zg-view-grid,
    .zg-view-grid--wide-aside {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
    }

    .zg-page-header h1 {
        font-size: 44px;
    }

    .zg-page-header__actions .zg-button {
        padding-inline: 17px;
    }

    .zg-signal {
        padding-inline: 13px;
    }

    .zg-signal span {
        font-size: 12px;
    }

    .zg-auth-shell {
        grid-template-columns: minmax(320px, .8fr) minmax(450px, 1.2fr);
    }

    /* Dashboard rows grow with their contents at landscape-tablet widths. */
    .dashboard-grid {
        grid-template-rows: auto auto auto;
    }

    .dashboard-live {
        padding: 13px 20px;
    }

    .dashboard-live .dark-stage__header {
        min-height: 40px;
        margin-bottom: 7px;
        align-items: center;
    }

    .dashboard-live .dark-stage__header h2 {
        font-size: 23px;
    }

    .dashboard-live .dark-stage__header p {
        margin-top: 1px;
    }

    .dashboard-live .dark-stage__header .zg-button {
        min-height: 44px;
        padding-inline: 16px;
        flex-shrink: 0;
    }

    .dashboard-live .signal-strip {
        min-height: 56px;
    }

    .dashboard-live .signal-strip__item {
        padding: 8px 13px;
    }

    .dashboard-live .dark-stage__summary {
        margin-top: 7px;
    }

    .dashboard-live .dark-stage__summary > div {
        min-height: 50px;
        padding: 6px 13px;
    }

    .dashboard-live .dark-stage__summary dd {
        margin-top: 1px;
        font-size: 18px;
    }

    .dashboard-currencies .panel__header,
    .dashboard-payments .panel__header {
        min-height: 58px;
        padding-block: 9px;
    }

    .dashboard-currencies .rate-list {
        padding-bottom: 9px;
    }

    .dashboard-currencies .rate-list > div {
        padding: 10px;
    }

    .dashboard-payments .transaction-list a {
        min-height: 48px;
    }
}

@media (max-width: 920px) and (min-width: 761px) {
    .zg-command-search {
        width: min(330px, 45vw);
    }

    .zg-page-header {
        min-height: 88px;
    }

    .zg-page-header h1 {
        font-size: 40px;
    }

    .zg-page-header__actions .zg-button span {
        display: none;
    }

    .zg-page-header__actions .zg-button {
        width: var(--zg-control);
        padding: 0;
        border-radius: 50%;
    }

    /* Portrait tablets use a single readable work stream. Each panel remains
       full-width and the page owns the one intentional vertical scroll area. */
    .zg-page--fit .zg-page__body {
        overflow: visible;
    }

    .dashboard-grid {
        display: flex;
        height: auto;
        flex-direction: column;
    }

    .dashboard-movements .data-table,
    .dashboard-queue .work-queue,
    .dashboard-payments .transaction-list {
        max-height: none;
    }

    .dashboard-currencies .rate-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zg-view-grid,
    .zg-view-grid--wide-aside,
    .zg-view-grid--equal {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .zg-signal-strip {
        overflow-x: auto;
    }

    .zg-toolbar {
        overflow-x: auto;
    }

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

/* Phone layout */

@media (max-width: 760px) {
    :root {
        --zg-topbar-height: 70px;
        --zg-gutter: 16px;
        --zg-control: 52px;
    }

    html,
    body {
        background: var(--zg-canvas);
    }

    .zg-app {
        display: block;
    }

    .zg-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(84vw, 340px);
        padding-top: max(22px, env(safe-area-inset-top));
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 240ms var(--zg-ease);
    }

    body.zg-nav-open .zg-sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    body.zg-nav-open .zg-nav-scrim {
        display: block;
    }

    .zg-sidebar__close {
        display: inline-grid;
    }

    .zg-nav__item {
        min-height: 54px;
        font-size: 16px;
    }

    .zg-shell {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .zg-topbar {
        height: var(--zg-topbar-height);
        min-height: var(--zg-topbar-height);
        padding: max(10px, env(safe-area-inset-top)) var(--zg-gutter) 6px;
        justify-content: space-between;
    }

    .zg-topbar__mobile-brand {
        display: flex;
    }

    .zg-topbar__mobile-brand .zg-icon-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .zg-command-search {
        display: none;
    }

    .zg-topbar__actions::before,
    .zg-topbar .zg-notifications {
        display: none;
    }

    .zg-topbar .zg-avatar--button {
        width: 48px;
        height: 48px;
    }

    .zg-page {
        padding: 0 var(--zg-gutter) 18px;
    }

    .zg-page-header {
        min-height: auto;
        padding: 14px 0 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .zg-page-header h1 {
        font-size: clamp(38px, 12vw, 54px);
        letter-spacing: -.06em;
    }

    .zg-page-header__copy > p {
        font-size: 15px;
    }

    .zg-page-header__actions {
        width: 100%;
        justify-content: stretch;
    }

    .zg-page-header__actions .zg-button {
        min-width: 0;
        padding-inline: 12px;
        flex: 1 1 0;
        font-size: 15px;
    }

    .zg-page-header__actions .zg-button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .zg-page__body {
        padding-bottom: 8px;
    }

    .zg-mobile-nav {
        position: fixed;
        z-index: 90;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: calc(72px + env(safe-area-inset-bottom));
        padding: 6px 8px env(safe-area-inset-bottom);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid var(--zg-line);
        background: rgb(255 255 255 / .95);
        backdrop-filter: blur(16px);
    }

    .zg-mobile-nav__item {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        border-radius: 10px;
        color: var(--zg-muted);
        font-size: 11px;
        font-weight: 700;
    }

    .zg-mobile-nav__icon {
        width: 25px;
        height: 25px;
    }

    .zg-mobile-nav__item.is-active {
        color: var(--zg-brand);
    }

    .zg-view-grid,
    .zg-view-grid--wide-aside,
    .zg-view-grid--equal {
        display: flex;
        height: auto;
        flex-direction: column;
    }

    .zg-page--fit .zg-page__body {
        overflow: visible;
    }

    .dashboard-live .dark-stage__header .zg-button {
        min-width: 0;
        padding-inline: 14px;
        flex-shrink: 0;
        font-size: 14px;
    }

    .zg-panel__header {
        min-height: 62px;
        padding-inline: 15px;
    }

    .zg-panel__body {
        padding: 15px;
    }

    .zg-dark-stage {
        padding: 16px;
    }

    .zg-signal-strip {
        grid-template-columns: repeat(var(--segments, 4), minmax(150px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .zg-signal {
        min-height: 70px;
        scroll-snap-align: start;
    }

    .zg-stat-line {
        grid-template-columns: repeat(var(--columns, 4), minmax(150px, 1fr));
        overflow-x: auto;
    }

    .zg-tabs {
        gap: 24px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .zg-tabs::-webkit-scrollbar {
        display: none;
    }

    .zg-toolbar {
        overflow-x: auto;
    }

    .zg-form-grid,
    .zg-form-grid--three {
        grid-template-columns: 1fr;
    }

    .zg-radio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .zg-repeat-row {
        grid-template-columns: 1fr;
    }

    .zg-repeat-row [data-repeat-remove] {
        justify-self: end;
    }

    .zg-form-actions {
        position: static;
        z-index: 10;
        bottom: 0;
        padding: 12px 0;
        background: var(--zg-canvas);
    }

    .zg-form-actions .zg-button {
        flex: 1;
    }

    .zg-table-wrap--responsive {
        overflow: visible;
    }

    .zg-table-wrap--responsive .zg-table thead {
        display: none;
    }

    .zg-table-wrap--responsive .zg-table,
    .zg-table-wrap--responsive .zg-table tbody,
    .zg-table-wrap--responsive .zg-table tr,
    .zg-table-wrap--responsive .zg-table td {
        display: block;
        width: 100%;
    }

    .zg-table-wrap--responsive .zg-table tr {
        padding: 11px 14px;
        margin-bottom: 9px;
        border: 1px solid var(--zg-line);
        border-radius: var(--zg-radius-sm);
        background: var(--zg-white);
    }

    .zg-table-wrap--responsive .zg-table td {
        display: grid;
        min-height: 42px;
        height: auto;
        padding: 8px 0;
        grid-template-columns: minmax(100px, .8fr) minmax(0, 1fr);
        gap: 14px;
        text-align: right;
    }

    .zg-table-wrap--responsive .zg-table td::before {
        color: var(--zg-muted);
        font-size: 12px;
        font-weight: 700;
        text-align: left;
        content: attr(data-label);
    }

    .zg-dialog,
    .zg-dialog--small,
    .zg-dialog--large,
    .zg-dialog--wide {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }

    .zg-dialog__surface {
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
    }

    .zg-dialog__header {
        min-height: 78px;
        padding: 16px;
    }

    .zg-dialog__body {
        padding: 16px;
    }

    .zg-dialog__footer {
        padding: 11px 16px;
    }

    .zg-dialog__footer .zg-button {
        flex: 1;
    }

    .zg-popover-dialog {
        inset: auto 10px calc(78px + env(safe-area-inset-bottom)) 10px;
        width: auto;
    }

    .zg-popover-dialog#notifications {
        inset: 70px 10px auto 10px;
    }

    .zg-popover-dialog__surface--wide {
        width: 100%;
    }

    .zg-pagination__total {
        display: none;
    }

    .zg-timeline {
        grid-template-columns: 1fr;
    }

    .zg-timeline__line {
        width: 2px;
        height: 28px;
        margin-left: 8px;
    }
}

/* Dark mobile operation screens from the approved mobile references */

@media (max-width: 760px) {
    .zg-mobile-operational {
        color-scheme: dark;
        color: var(--zg-white);
        background: var(--zg-stage);
    }

    .zg-mobile-operational .zg-shell,
    .zg-mobile-operational .zg-page,
    .zg-mobile-operational .zg-form-actions {
        background:
            radial-gradient(circle at 50% 42%, rgb(116 68 237 / .11), transparent 34%),
            #101519;
    }

    .zg-mobile-operational .zg-topbar {
        color: var(--zg-white);
        background: #101519;
    }

    .zg-mobile-operational .zg-topbar .zg-icon-button,
    .zg-mobile-operational .zg-avatar--button {
        border-color: #333a40;
        color: var(--zg-white);
        background: #1c2227;
    }

    .zg-mobile-operational .zg-page-header__copy > p,
    .zg-mobile-operational .zg-field > label,
    .zg-mobile-operational .zg-fieldset > legend {
        color: #aeb5bf;
    }

    .zg-mobile-operational .zg-panel {
        border-color: #30373d;
        color: var(--zg-white);
        background: linear-gradient(145deg, #181e22, #14191d);
        box-shadow: 0 12px 28px rgb(0 0 0 / .2);
    }

    .zg-mobile-operational .zg-panel__header,
    .zg-mobile-operational .zg-panel__footer,
    .zg-mobile-operational .zg-task-row,
    .zg-mobile-operational .zg-key-value__row {
        border-color: #30373d;
    }

    .zg-mobile-operational .zg-field input:not([type="checkbox"]):not([type="radio"]),
    .zg-mobile-operational .zg-field select,
    .zg-mobile-operational .zg-field textarea,
    .zg-mobile-operational .zg-input {
        border-color: #3a4148;
        color: var(--zg-white);
        background-color: #191f24;
    }

    .zg-mobile-operational .zg-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }

    .zg-mobile-operational .zg-segmented,
    .zg-mobile-operational .zg-chip {
        border-color: #394047;
        color: #dce0e5;
        background: #22282f;
    }

    .zg-mobile-operational .zg-segmented button,
    .zg-mobile-operational .zg-segmented label {
        color: #dce0e5;
    }

    .zg-mobile-operational .zg-segmented button.is-active,
    .zg-mobile-operational .zg-segmented button[aria-pressed="true"],
    .zg-mobile-operational .zg-segmented input:checked + label,
    .zg-mobile-operational .zg-chip.is-active {
        color: var(--zg-white);
        background: var(--zg-violet);
    }

    .zg-mobile-operational .zg-violet-focus {
        margin-inline: -16px;
        padding: 20px 16px;
        border-block: 1px solid #804eff;
        background:
            radial-gradient(circle at 50% 50%, rgb(157 116 255 / .38), transparent 58%),
            linear-gradient(90deg, #5422c9, #6d2df0 48%, #5422c9);
        box-shadow: 0 0 44px rgb(116 68 237 / .33);
    }

    .zg-mobile-operational .zg-mobile-nav {
        border-color: #31383e;
        background: rgb(16 21 25 / .96);
    }

    .zg-mobile-operational .zg-mobile-nav__item {
        color: #9aa2ae;
    }

    .zg-mobile-operational .zg-mobile-nav__item.is-active {
        color: #9a63ff;
    }
}

/* Auth responsive */

@media (max-width: 800px) {
    .zg-auth {
        overflow: auto;
    }

    .zg-auth-shell {
        display: block;
        min-height: 100%;
    }

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

    .zg-auth-panel {
        min-height: 100dvh;
        padding: max(30px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
    }

    .zg-auth-product {
        display: block;
    }
}

/* Print rules */

@media print {
    :root {
        color-scheme: light;
    }

    body,
    .zg-print {
        background: white !important;
    }

    .zg-print-toolbar,
    .no-print,
    [data-no-print] {
        display: none !important;
    }

    .zg-document {
        width: auto;
        min-height: auto;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .zg-report-scope {
        break-inside: avoid;
        border-color: #555;
        color: #000;
        background: #fff;
    }

    .zg-document a {
        text-decoration: none;
    }

    .zg-document .zg-table tr,
    .zg-document section {
        break-inside: avoid;
    }
}

@keyframes zg-dialog-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes zg-toast-in {
    from { opacity: 0; transform: translateX(22px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zg-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(22px); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
