/* Keep the canvas behind iPhone safe areas the same color as the bottom strip. */
html:has(.executive-app), body:has(.executive-app) { height: 100vh; height: 100dvh; background: #edf1f5; overflow: hidden; overscroll-behavior-y: none; }
body:has(.executive-app) { color-scheme: light; }
/* Executive app: deliberately independent of the operational ERP shell. */
.executive-app { --bg: #f7f9fb; --surface-2: #eaf0f6; --line-strong: #b3c1d1; --accent-fg: #fff; --accent-hover: #14577e; --focus: #0a84d6; --ok-bg: #ddf3e6; --danger: #b42318; --danger-bg: #fdecea; --on-danger: #fff; --fg: #102538; --muted: #627184; --surface: #fff; --line: #dce3e9; --accent: #0a3a60; --accent-soft: #eaf0f5; --ok: #087b67; --warn: #976309; color-scheme: light; color: var(--fg); background: #f7f9fb; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); max-width: 560px; height: 100vh; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; box-shadow: 0 0 60px #0a3a600a; font-size: 15px; }
body.env-test .executive-app { height: calc(100vh - 26px); height: calc(100dvh - 26px); }
.executive-header { flex: none; display: flex; align-items: center; gap: 10px; background: #0a3a60; color: #fff; padding: max(20px, env(safe-area-inset-top)) 20px 20px; }
.executive-club-logo { flex: none; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.executive-app h1:focus { outline: none; }
.executive-account-heading { display: grid; gap: 10px; margin-bottom: 20px; }
.executive-account-heading h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.executive-account-heading p { overflow-wrap: anywhere; }
.executive-account-heading .actions { margin-top: 0; }
.executive-app .panel-card { width: 100%; border-color: var(--line); }
.executive-app .form-grid .f { grid-column: span 12; }
.executive-app .form-grid input { min-height: 44px; }
.executive-app .btn { min-height: 44px; }
.executive-club { display: grid; gap: 3px; padding-left: 2px; min-width: 0; flex: 1; }
.executive-club strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.executive-club span { font-size: 12px; color: #d1dfeb; }
.executive-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0a3a60; font-size: 12px; font-weight: 600; text-decoration: none; }
.executive-content { flex: 1; overflow-y: auto; min-height: 0; padding: 24px 20px 20px; scrollbar-width: thin; }
.executive-heading { margin-bottom: 20px; }
.executive-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.executive-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.executive-title-row h1 { margin: 0; font-size: clamp(25px, 7vw, 32px); letter-spacing: -.04em; font-weight: 600; line-height: 1.2; }
.executive-refresh { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 8px; cursor: pointer; flex: none; }
.executive-refresh:disabled { opacity: .5; cursor: wait; }
.executive-updated, .executive-caption, .executive-asof { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 5px 0 0; }
.executive-period { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.executive-period select { min-height: 44px; max-width: 64%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); background: #fff; font: inherit; font-size: 14px; }
.executive-finance { border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px 14px; background: #fff; }
.executive-app h2 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.4; letter-spacing: -.01em; }
.executive-amount { font-size: clamp(28px, 9vw, 40px); font-weight: 600; letter-spacing: -.04em; margin: 8px 0 3px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.executive-trend { margin: 0; font-size: 12px; color: var(--ok); }
.executive-trend.caution { color: var(--warn); }
.executive-chart { display: block; width: 100%; height: auto; color: #0a3a60; margin: 14px 0 0; }
.executive-chart-axis { stroke: var(--line); stroke-width: 1; }
.executive-chart-labels { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.executive-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.executive-metrics > div { min-width: 0; padding-right: 14px; }
.executive-metrics > div + div { border-left: 1px solid var(--line); padding-left: 16px; padding-right: 0; }
.executive-metrics h2 { color: #536172; font-size: 13px; }
.executive-metric-value { display: block; font-size: 30px; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 5px; }
.executive-occupancy { padding: 20px 0; border-bottom: 1px solid var(--line); }
.executive-occupancy > div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.executive-occupancy strong { font-size: 21px; font-weight: 600; white-space: nowrap; }
.executive-occupancy progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: #dce3e9; margin-top: 12px; }
.executive-occupancy progress::-webkit-progress-bar { background: #dce3e9; }
.executive-occupancy progress::-webkit-progress-value { background: #0a3a60; border-radius: 8px; }
.executive-occupancy progress::-moz-progress-bar { background: #0a3a60; }
.executive-asof { font-size: 11px; margin-top: 10px; }
.executive-attention { margin-top: 24px; }
.executive-attention > h2 { font-size: 19px; margin-bottom: 6px; }
.executive-attention-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.executive-attention-row > .icon { color: var(--muted); width: 18px; height: 18px; }
.executive-attention-row > div { flex: 1; min-width: 0; }
.executive-attention-row strong { font-size: 14px; font-weight: 600; }
.executive-attention-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.executive-attention-row > a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); }
.executive-alert-dot { width: 9px; height: 9px; border-radius: 50%; background: #bd861d; margin: 0 5px; flex: none; }
.executive-report-link { display: flex; justify-content: space-between; color: var(--accent); text-decoration: none; font-weight: 600; padding: 20px 0 5px; min-height: 44px; }
.executive-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding: 3px 8px 5px; background: #fff; border-top: 1px solid var(--line); }
.executive-tabs a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px 3px; color: #627184; text-decoration: none; min-height: 0; font-size: 11px; line-height: 14px; border-top: 2px solid transparent; }
.executive-tabs .icon { width: 22px; height: 22px; }
.executive-tabs a.active { color: #0a3a60; font-weight: 600; border-top-color: #0a3a60; }
.executive-data-note { background: #f3f0e8; color: #73551b; padding: 12px; border-radius: 6px; font-size: 12px; line-height: 1.5; margin: 12px 0; }
.executive-message { padding: 20px 0; line-height: 1.6; }
.executive-explanation { padding: 22px 0; border-bottom: 1px solid var(--line); }
.executive-explanation p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.executive-daily { margin-top: 22px; }
.executive-daily > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.executive-daily strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.executive-profile { padding-bottom: 22px; }
.executive-profile p { margin: 6px 0 0; }
.executive-options { border-top: 1px solid var(--line); }
.executive-options > a, .executive-options button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 14px; text-decoration: none; text-align: left; padding: 12px 0; cursor: pointer; }
.executive-options > a .icon:last-child, .executive-options button .icon:last-child:not(:first-child) { margin-left: auto; }
.can-install .executive-options .install-item { display: flex !important; }
.executive-app :focus-visible { outline: 2px solid #0a84d6; outline-offset: 3px; }
@media (max-width: 360px) { .executive-header { gap: 10px; padding-inline: 14px; } .executive-club-logo { width: 36px; height: 36px; } .executive-club { padding-left: 0; } .executive-content { padding-inline: 14px; } }
@media print { .executive-app { max-width: none; height: auto; } .executive-content { overflow: visible; } .executive-tabs, .executive-refresh { display: none; } }

.executive-credit { flex: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; height: calc(24px + env(safe-area-inset-bottom, 0px)); min-height: 24px; padding: 0 8px; background: #edf1f5; color: #627184; font-size: 10.5px; line-height: 1.4; text-align: center; }
.executive-credit strong { color: #0a3a60; font-weight: 600; letter-spacing: .04em; }
@media print { .executive-credit { display: none; } }

/* The credit strip includes the home-indicator inset once; center its text in that full strip. */
.executive-bottom { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 560px; margin-inline: auto; background: #edf1f5; z-index: 10; }
@media (display-mode: standalone) { html:has(.executive-app), body:has(.executive-app), .executive-app { height: 100vh; } body.env-test .executive-app { height: calc(100vh - 26px); } }
@media print { .executive-app { padding-bottom: 0; height: auto; } .executive-bottom { display: none; } }
