:root {
	--chand-ink: #122235;
	--chand-navy: #09233d;
	--chand-orange: #c77b21;
	--chand-orange-soft: #f5e8d7;
	--chand-green: #236449;
	--chand-paper: #f6f7f5;
	--chand-line: #dce1e2;
	--chand-muted: #64717b;
}

body.portal-page { background: var(--chand-paper); color: var(--chand-ink); min-height: 100vh; scrollbar-color: #9aa8b2 transparent; scrollbar-width: thin; }
body.portal-page * { scrollbar-color: #9aa8b2 transparent; scrollbar-width: thin; }
body.portal-page *::-webkit-scrollbar { width: 5px; height: 5px; }
body.portal-page *::-webkit-scrollbar-track { background: transparent; }
body.portal-page *::-webkit-scrollbar-thumb { border-radius: 3px; background: #9aa8b2; }
.portal-page .fakeLoader { display: grid; place-items: center; }
.portal-wrap { width: 100%; margin: 0; padding: 0; }
.is-hidden { display: none !important; }
.auth-layout { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: center; gap: clamp(44px, 8vw, 120px); padding: clamp(24px, 6vw, 96px); }
.auth-story { max-width: 650px; padding: 36px 0; }
.eyebrow { margin: 0 0 10px; color: var(--chand-orange); font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.auth-story h1 { margin: 0 0 24px; color: var(--chand-navy); font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1.06; letter-spacing: 0; }
.auth-story h1 span { color: var(--chand-orange); }
.auth-story > p:not(.eyebrow) { max-width: 470px; color: var(--chand-muted); font-size: 18px; line-height: 1.65; }
.auth-note { display: flex; align-items: center; gap: 14px; margin-top: 54px; color: var(--chand-muted); font-weight: 600; }
.auth-mark { display: block; width: 42px; height: 42px; object-fit: contain; }
.auth-panel { padding: 30px; background: #fff; border: 1px solid var(--chand-line); box-shadow: 0 18px 50px #12223512; }
.verification-notice h2 { margin: 0 0 10px; color: var(--chand-navy); font-size: 24px; font-weight: 800; }
.verification-notice > p:not(.eyebrow) { color: var(--chand-muted); font-size: 14px; line-height: 1.6; }
.verification-notice > p strong { color: var(--chand-ink); overflow-wrap: anywhere; }
.verification-actions { display: grid; gap: 10px; margin-top: 20px; }
.portal-button-secondary { width: 100%; background: #fff; border-color: var(--chand-line); color: var(--chand-ink); }
.portal-button-secondary:hover { background: var(--chand-paper); color: var(--chand-ink); }
.verification-status { min-height: 20px; margin: 12px 0 0; color: var(--chand-green); font-size: 13px; }
.verification-status:empty { display: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--chand-line); margin-bottom: 24px; }
.auth-tab { padding: 0 8px 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--chand-muted); font-weight: 700; }
.auth-tab.is-active { color: var(--chand-navy); border-bottom-color: var(--chand-orange); }
.portal-form label, .portal-form-grid label, .data-section > label { display: block; margin: 0 0 7px; color: var(--chand-ink); font-size: 13px; font-weight: 700; }
.portal-form input, .portal-form-grid input, .portal-form-grid select, .portal-form-grid textarea, .message-form textarea, .admin-actions input, #adminCustomer { width: 100%; min-height: 46px; margin: 0 0 17px; padding: 11px 12px; border: 1px solid #cbd3d6; border-radius: 2px; background: #fff; color: var(--chand-ink); font: inherit; }
.portal-form input:focus, .portal-form-grid input:focus, .portal-form-grid select:focus, .portal-form-grid textarea:focus, .message-form textarea:focus { outline: 2px solid #c77b2130; border-color: var(--chand-orange); }
.portal-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; border: 1px solid transparent; border-radius: 2px; font-weight: 700; cursor: pointer; }
.portal-button-primary { width: 100%; background: var(--chand-orange); color: #fff; }
.portal-button-primary:hover { background: #a96314; color: #fff; }
.portal-button-google { width: 100%; margin-top: 12px; background: #fff; border-color: var(--chand-line); color: var(--chand-ink); }
.portal-button-google span { font-size: 18px; font-weight: 800; }
.text-action { display: block; margin: 16px auto 0; padding: 4px; background: none; border: 0; color: #33566d; text-decoration: underline; }
.auth-legal { margin: 23px 0 0; color: var(--chand-muted); font-size: 12px; }
.form-intro { color: var(--chand-muted); }
.portal-status { min-height: 20px; margin: 10px 0; color: var(--chand-green); font-size: 13px; }
.portal-status.is-error { color: #a3342b; }
.dashboard { display: grid; grid-template-columns: 238px minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: #fff; }
.portal-sidebar { display: flex; height: 100vh; min-height: 0; flex-direction: column; overflow: hidden; padding: 18px 15px 16px; background: var(--chand-navy); color: #fff; }
.portal-sidebar.admin-sidebar { min-height: 100vh; min-height: 100svh; }
.sidebar-customer { display: flex; align-items: center; gap: 11px; padding: 0 6px 25px; border-bottom: 1px solid #ffffff24; }
.user-initial { display: grid; width: 38px; aspect-ratio: 1; place-items: center; background: var(--chand-orange); color: #fff; font-weight: 800; }
.sidebar-customer strong, .sidebar-customer small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-customer strong { font-size: 13px; }
.sidebar-customer small { margin-top: 3px; color: #c6d1d9; font-size: 11px; }
.portal-nav { display: grid; gap: 5px; padding-top: 22px; overflow: visible; }
.nav-item, .sign-out { display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 9px 11px; border: 0; background: transparent; color: #d6e0e5; text-align: left; font-weight: 600; }
.nav-item i, .sign-out i { width: 16px; text-align: center; }
.sign-out-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.nav-item.is-active { background: #ffffff16; color: #fff; }
.nav-item.is-active i { color: #f0ad57; }
.sidebar-collapse-toggle { display: flex; width: 36px; min-height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--chand-line); background: #fff; color: var(--chand-navy); cursor: pointer; }
.sidebar-collapse-toggle:hover { background: #f1f4f3; }
.dashboard-heading .sidebar-collapse-toggle { margin-right: auto; }
@media (min-width: 1024px) {
	.dashboard.is-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
	.dashboard.is-sidebar-collapsed .portal-sidebar.admin-sidebar { padding: 20px 9px; }
	.dashboard.is-sidebar-collapsed .sidebar-customer { justify-content: center; padding: 0 0 16px; }
	.dashboard.is-sidebar-collapsed .sidebar-customer > span:not(.user-initial) { display: none; }
	.dashboard.is-sidebar-collapsed .sidebar-collapse-toggle { justify-content: center; padding: 0; }
	.dashboard.is-sidebar-collapsed .sign-out { justify-content: center; gap: 0; padding: 17px 8px 9px; font-size: 0; }
	.dashboard.is-sidebar-collapsed .sign-out .nav-label { display: none; }
	.dashboard.is-sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding: 10px 8px; }
	.dashboard.is-sidebar-collapsed .nav-item .nav-label { display: none; }
	.dashboard.is-sidebar-collapsed .nav-item .inbox-count { position: absolute; top: -4px; right: 0; min-width: 16px; height: 16px; margin: 0; padding: 0 3px; font-size: 9px; }
}
.sign-out { margin-top: auto; border-top: 1px solid #ffffff24; padding-top: 17px; }
.dashboard-main { min-width: 0; height: 100%; min-height: 0; overflow-y: auto; padding: 16px clamp(20px, 4vw, 48px) 20px; }
.dashboard.is-inbox-view .dashboard-main { gap: 0; padding: 0; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dashboard-heading h1 { margin: 0; color: var(--chand-navy); font-size: 32px; font-weight: 800; letter-spacing: 0; }
.dashboard-heading .eyebrow { margin-bottom: 6px; }
.mobile-sign-out { display: none; }
.welcome-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; background: #eff3f2; }
.welcome-strip h2 { margin: 0 0 8px; color: var(--chand-navy); font-size: 24px; font-weight: 800; }
.welcome-strip p:not(.eyebrow) { max-width: 580px; margin: 0; color: var(--chand-muted); }
.portal-button-dark { flex: 0 0 auto; background: var(--chand-navy); color: #fff; }
.portal-button-dark:hover { background: #173a59; color: #fff; }
.welcome-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.welcome-action { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--chand-navy); font-weight: 800; }
.welcome-action-primary { color: var(--chand-orange); }
.welcome-action i { font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }
.stat-box { display: grid; gap: 6px; padding: 17px 19px; border: 1px solid var(--chand-line); }
.stat-box span { color: var(--chand-muted); font-size: 13px; font-weight: 600; }
.stat-box strong { color: var(--chand-navy); font-size: 27px; line-height: 1.1; }
.stat-box small { color: var(--chand-muted); font-size: 11px; }
[data-panel="home"] { display: flex; min-height: 100%; flex-direction: column; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 28px; margin-top: auto; }
.data-section { margin: 28px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2, .section-heading h3 { margin: 0; color: var(--chand-navy); font-size: 20px; font-weight: 800; }
.section-heading h3 { font-size: 18px; }
.plain-link { padding: 4px 0; border: 0; background: transparent; color: #33566d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plain-link i { margin-left: 5px; color: var(--chand-orange); }
.section-intro { margin: 0 0 21px; }
.section-intro h2 { margin: 0 0 8px; color: var(--chand-navy); font-size: 28px; font-weight: 800; }
.section-intro > p:last-child { max-width: 680px; margin: 0; color: var(--chand-muted); }
.form-panel { padding: 23px; border: 1px solid var(--chand-line); }
.portal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }
.portal-form-grid input, .portal-form-grid select, .portal-form-grid textarea { margin-bottom: 15px; }
.portal-form-grid textarea { resize: vertical; }
.portal-form-grid input[type="file"] { padding: 8px; }
.portal-form-grid input[type="checkbox"] { width: 18px; min-height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--chand-orange); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; }
.checkbox-row label { margin: 0; color: var(--chand-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.portal-form-grid small, .form-caption { display: block; color: var(--chand-muted); font-size: 12px; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 15px; }
.form-actions .portal-button { width: auto; min-width: 155px; }
.form-caption { margin: 0; }
.record-list { display: grid; gap: 8px; }
.content-grid .record-list { min-height: 72px; }
.content-grid .data-section { margin-bottom: 0; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8ebeb; }
.record-row strong, .record-row small { display: block; }
.record-row strong { color: var(--chand-ink); font-size: 13px; }
.record-row small { margin-top: 4px; color: var(--chand-muted); font-size: 11px; }
.record-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.photo-view, .project-view { display: inline-flex; align-items: center; vertical-align: middle; margin: 5px 12px 0 0; padding: 0; border: 0; background: transparent; color: #33566d; font-size: 10px; text-decoration: underline; }
.status-chip { display: inline-block; padding: 5px 8px; background: #edf2f2; color: #3c5961; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.admin-record[data-record-kind="requests"] .status-chip { margin-right: 14px; }
.status-chip.is-good { background: #e5f1e9; color: var(--chand-green); }
.status-chip.is-open { background: #e9f1f7; color: var(--chand-navy); }
.request-delete-button { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid var(--chand-line); border-radius: 2px; background: #fff; color: #9c3d35; cursor: pointer; }
.request-delete-button:hover:not(:disabled) { background: #f8efee; }
.request-delete-button:disabled { opacity: .55; cursor: wait; }
.request-delete-button:focus-visible { outline: 2px solid #c77b2130; outline-offset: 2px; }
.empty-state { padding: 20px 0; color: var(--chand-muted); font-size: 13px; }
.chat-panel { border: 1px solid var(--chand-line); }
.message-list { display: flex; min-height: 230px; max-height: 390px; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; background: #fafbfa; }
.message-bubble { max-width: min(82%, 500px); padding: 11px 13px; background: #edf1f0; color: var(--chand-ink); }
.message-bubble.is-mine { align-self: flex-end; background: #e9f1f7; }
.message-bubble strong, .message-bubble small { display: block; }
.message-bubble strong { margin-bottom: 4px; font-size: 11px; }
.message-bubble small { margin-top: 7px; color: var(--chand-muted); font-size: 10px; }
.message-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding: 14px; border-top: 1px solid var(--chand-line); }
.message-form textarea { min-height: 44px; max-height: 120px; margin: 0; resize: vertical; }
.message-form .portal-button { width: auto; min-width: 92px; }
.inbox-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: auto; padding: 0 5px; background: #c77b21; color: #fff; font-size: 10px; }
.admin-overview-grid .data-section { min-width: 0; }
.admin-inbox-layout { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.5fr) minmax(225px, .9fr); min-height: 520px; border: 1px solid var(--chand-line); }
.conversation-pane { min-width: 0; padding: 14px; border-right: 1px solid var(--chand-line); }
.conversation-pane > label { display: block; margin-bottom: 6px; color: var(--chand-muted); font-size: 11px; font-weight: 700; }
.conversation-pane input { width: 100%; min-height: 39px; margin-bottom: 10px; padding: 7px 9px; border: 1px solid var(--chand-line); background: #fff; color: var(--chand-ink); }
.conversation-list { display: grid; align-content: start; grid-auto-rows: max-content; max-height: 510px; overflow-y: auto; }
.conversation-item { display: grid; align-self: start; gap: 4px; padding: 11px 8px; border: 0; border-bottom: 1px solid #e8ebeb; background: transparent; color: var(--chand-ink); text-align: left; }
.conversation-item.is-active { background: #eff3f2; }
.conversation-item[hidden] { display: none; }
.conversation-item strong, .conversation-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item strong { font-size: 12px; }
.conversation-item small, .conversation-item time { color: var(--chand-muted); font-size: 10px; }
.thread-pane { display: flex; min-width: 0; flex-direction: column; }
.thread-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--chand-line); }
.thread-heading strong { min-width: 0; overflow: hidden; color: var(--chand-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.thread-request-delete { width: 34px; height: 34px; }
.conversation-heading-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 6px; }
.conversation-heading-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-heading-row .status-chip { flex: 0 0 auto; }
.thread-heading small { color: var(--chand-muted); font-size: 11px; }
.conversation-details-pane { min-width: 0; max-height: 650px; overflow-y: auto; padding: 14px; border-left: 1px solid var(--chand-line); background: #fff; }
.details-section { padding: 2px 0 14px; border-bottom: 1px solid var(--chand-line); }
.details-section + .details-section { padding-top: 14px; }
.details-section h2 { margin: 0 0 9px; color: var(--chand-navy); font-size: 13px; font-weight: 800; }
.details-section h3 { margin: 10px 0 4px; color: var(--chand-muted); font-size: 10px; text-transform: uppercase; }
.details-section dl { display: grid; grid-template-columns: minmax(62px, auto) minmax(0, 1fr); gap: 5px 8px; margin: 0; }
.details-section dt { color: var(--chand-muted); font-size: 10px; }
.details-section dd { min-width: 0; margin: 0; color: var(--chand-ink); font-size: 10px; overflow-wrap: anywhere; }
.project-description { margin: 0; color: var(--chand-ink); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-settings-form { display: grid; gap: 5px; }
.project-settings-form label { margin-top: 4px; color: var(--chand-muted); font-size: 10px; font-weight: 700; }
.project-settings-form input, .project-settings-form select { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--chand-line); background-color: #fff; color: var(--chand-ink); font: inherit; font-size: 11px; }
.project-financial-heading { margin: 8px 0 2px; color: var(--chand-muted); font-size: 10px; text-transform: uppercase; }
.project-financial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.project-financial-grid label { display: grid; gap: 4px; min-width: 0; }
.project-financial-grid input { min-width: 0; }
.project-financial-note { color: var(--chand-muted); font-size: 9px; line-height: 1.4; }
.project-contributors { display: grid; gap: 6px; margin: 5px 0; padding: 8px; border: 1px solid var(--chand-line); }
.project-contributors legend { padding: 0 4px; color: var(--chand-muted); font-size: 10px; font-weight: 700; }
.project-contributors label { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--chand-ink); font-size: 10px; font-weight: 500; }
.project-contributors input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--chand-orange); }
.project-settings-form .portal-button { min-height: 34px; margin-top: 4px; padding: 6px 8px; font-size: 10px; }
.detail-request-link { display: grid; width: 100%; gap: 4px; padding: 8px 0; border: 0; border-bottom: 1px solid #e8ebeb; background: transparent; color: var(--chand-ink); text-align: left; }
.detail-request-link strong { font-size: 11px; }
.detail-request-link small { color: var(--chand-muted); font-size: 10px; text-transform: capitalize; }
.conversation-details-pane .project-library-heading { margin: 0 0 8px; }
.conversation-details-pane .project-library-heading h2 { margin: 0; color: var(--chand-navy); font-size: 13px; }
.conversation-details-pane .project-photo-grid { flex-wrap: wrap; }
.conversation-details-pane .project-photo-thumb { flex-basis: calc(50% - 4px); }
.conversation-details-pane .project-photo-thumb img { width: 100%; height: 68px; }
.project-library { padding: 11px 14px; border-bottom: 1px solid var(--chand-line); background: #fff; }
.project-library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.project-library-heading strong { color: var(--chand-navy); font-size: 11px; }
.project-library-heading span, .project-photo-thumb span { color: var(--chand-muted); font-size: 10px; }
.project-photo-grid { display: flex; gap: 8px; overflow-x: auto; padding: 1px 0 4px; }
.project-photo-thumb { display: grid; flex: 0 0 86px; gap: 4px; padding: 0; border: 0; background: transparent; text-align: left; }
.project-photo-thumb img { display: block; width: 86px; height: 62px; background: #edf1f0; object-fit: cover; }
.project-photo-thumb.is-unavailable img { visibility: hidden; }
.thread-pane .message-list { flex: 1; min-height: 280px; max-height: 510px; }
.message-form { grid-template-columns: minmax(0, 1fr) auto; }
.message-form textarea { min-width: 0; width: 100%; }
.message-form .portal-button { min-width: 108px; white-space: nowrap; }
.message-form select:not(.visually-hidden) { grid-column: 1 / -1; width: min(100%, 160px); min-width: 0; min-height: 44px; margin: 0; padding: 7px; border: 1px solid var(--chand-line); background: #fff; color: var(--chand-ink); }
.admin-page #adminMessageForm { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
.admin-page #adminMessageText { width: 100%; min-width: 0; min-height: 90px; max-height: 180px; margin: 0; resize: vertical; }
.message-form-actions { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.message-form-tools { display: flex; min-width: 0; align-items: center; gap: 8px; }
.message-attachment-button { display: inline-grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--chand-line); border-radius: 2px; background: #fff; color: var(--chand-ink); cursor: pointer; }
.message-attachment-button:hover:not(:disabled) { background: #f4f6f6; }
.message-attachment-button:focus-visible { outline: 2px solid #c77b2130; outline-offset: 2px; }
.message-attachment-button:disabled { color: #929da4; cursor: not-allowed; }
.message-attachment-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.message-attachment-summary[hidden] { display: none; }
.message-attachment-item { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 4px 6px; background: #eff3f2; color: var(--chand-ink); font-size: 10px; }
.message-attachment-item > span { overflow-wrap: anywhere; }
.message-attachment-item button { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 0; background: transparent; color: var(--chand-muted); cursor: pointer; }
.channel-picker { position: relative; z-index: 1; min-width: 0; flex: 0 1 auto; }
.channel-picker-buttons { display: inline-flex; max-width: 100%; overflow: hidden; border: 1px solid var(--chand-line); border-radius: 2px; background: #fff; }
.channel-picker-current, .channel-picker-toggle { min-height: 42px; border: 0; background: #fff; color: var(--chand-ink); cursor: pointer; }
.channel-picker-current { min-width: 105px; max-width: 190px; overflow: hidden; padding: 8px 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 12px; font-weight: 600; }
.channel-picker-toggle { display: grid; width: 38px; flex: 0 0 38px; place-items: center; border-left: 1px solid var(--chand-line); }
.channel-picker-current:hover:not(:disabled), .channel-picker-toggle:hover:not(:disabled) { background: #f4f6f6; }
.channel-picker-current:focus-visible, .channel-picker-toggle:focus-visible, .channel-picker-option:focus-visible { outline: 2px solid #c77b2160; outline-offset: -2px; }
.channel-picker-current:disabled, .channel-picker-toggle:disabled { color: var(--chand-muted); cursor: not-allowed; }
.channel-picker-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 40; width: min(220px, calc(100vw - 32px)); max-height: min(240px, calc(100dvh - 120px)); overflow-y: auto; padding: 4px; border: 1px solid var(--chand-line); border-radius: 2px; background: #fff; box-shadow: 0 8px 22px #12223524; }
.channel-picker-menu[hidden] { display: none !important; }
.channel-picker-option { display: block; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; background: #fff; color: var(--chand-ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.channel-picker-option:hover:not(:disabled), .channel-picker-option[data-selected="true"] { background: #eff3f2; }
.channel-picker-option:disabled { color: #929da4; cursor: not-allowed; }
.admin-page #adminMessageForm .message-send-button { width: auto; min-width: 126px; flex: 0 0 auto; white-space: nowrap; }
.message-bubble small { text-transform: capitalize; }
.admin-auth-layout .auth-panel { align-self: center; }
@media (max-width: 680px) {
	.admin-inbox-layout { grid-template-columns: 1fr; }
	.conversation-pane { border-right: 0; border-bottom: 1px solid var(--chand-line); }
	.conversation-details-pane { grid-column: auto; display: block; max-height: none; border-top: 1px solid var(--chand-line); border-left: 0; }
	.conversation-list { max-height: 190px; }
	.thread-pane .message-list { min-height: 240px; }
	.message-form-actions { flex-wrap: wrap; }
	.message-form-tools { flex: 1 1 auto; }
	.message-form-actions .message-send-button { min-width: 125px; flex: 1 1 125px; }
}
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-metric { padding: 14px; background: #f1f4f3; }
.admin-metric span, .admin-metric strong { display: block; }
.admin-metric span { color: var(--chand-muted); font-size: 11px; }
.admin-metric strong { margin-top: 4px; color: var(--chand-navy); font-size: 22px; }
.reward-editor { display: grid; gap: 8px; }
.admin-reward-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 0 7px; border-bottom: 1px solid var(--chand-line); }
.admin-reward-tab { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; border: 0; background: transparent; color: var(--chand-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-reward-tab.is-active { background: #eff3f2; color: var(--chand-navy); }
.admin-reward-panel { padding-top: 12px; }
.workforce-tabs { display: flex; flex: 0 0 auto; gap: 4px; overflow-x: auto; padding: 0 0 7px; border-bottom: 1px solid var(--chand-line); }
.workforce-tab { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; border: 0; background: transparent; color: var(--chand-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.workforce-tab.is-active { background: #eff3f2; color: var(--chand-navy); }
.workforce-panel { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; padding-top: 12px; }
.workforce-panel.is-hidden { display: none !important; }
.workforce-panel > .admin-record-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.team-member-form { flex: 0 0 auto; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--chand-line); }
.team-member-form h2 { margin: 0 0 12px; color: var(--chand-navy); font-size: 15px; }
.team-member-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.team-member-fields > label { display: grid; gap: 5px; color: var(--chand-muted); font-size: 10px; font-weight: 700; }
.team-member-fields input, .team-member-fields select { width: 100%; min-width: 0; min-height: 38px; margin: 0; padding: 7px 30px 7px 9px; border: 1px solid var(--chand-line); background-color: #fff; color: var(--chand-ink); font: inherit; font-size: 12px; }
.team-access-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--chand-line); }
.team-access-fields legend { padding: 0 5px; color: var(--chand-muted); font-size: 10px; font-weight: 700; }
.team-access-fields label { display: flex; align-items: center; gap: 8px; color: var(--chand-ink); font-size: 11px; }
.team-access-fields input { width: 16px; height: 16px; margin: 0; accent-color: var(--chand-orange); }
.team-bank-details { margin: 10px 0; border-top: 1px solid var(--chand-line); border-bottom: 1px solid var(--chand-line); }
.team-bank-details summary { padding: 9px 0; color: #33566d; font-size: 11px; font-weight: 700; cursor: pointer; }
.team-bank-details small { display: block; margin-top: 8px; color: var(--chand-muted); font-size: 10px; }
.team-member-submit { width: auto; min-width: 180px; }
.team-person-row, .payment-ledger-row { display: grid; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e8ebeb; }
.team-person-row { grid-template-columns: minmax(0, 1fr) auto; }
.payment-ledger-row { grid-template-columns: minmax(0, 1.2fr) minmax(100px, .7fr) auto auto; }
.team-person-row strong, .team-person-row small, .payment-ledger-row strong, .payment-ledger-row small { display: block; }
.team-person-row strong, .payment-ledger-row strong { color: var(--chand-ink); font-size: 12px; }
.team-person-row small, .payment-ledger-row small { margin-top: 4px; color: var(--chand-muted); font-size: 10px; }
.payment-ledger-row .portal-button { min-height: 34px; padding: 6px 9px; font-size: 10px; white-space: nowrap; }
.payment-ledger-row .status-chip { justify-self: start; }
.reward-export { justify-content: flex-end; margin-bottom: 8px; }
.reward-row { display: grid; grid-template-columns: minmax(140px, 1fr) 100px 115px auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e8ebeb; }
.reward-row strong { font-size: 12px; }
.reward-row input, .reward-row select, .admin-record input, .admin-record select { min-width: 0; height: 37px; box-sizing: border-box; margin: 0; padding: 7px 8px; border: 1px solid var(--chand-line); background-color: #fff; color: var(--chand-ink); }
.reward-row input { margin: 0; }
.portal-button-outline { background: #fff; border-color: var(--chand-line); color: var(--chand-navy); }
.portal-button-outline:hover { background: #f4f6f6; }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.admin-actions input { width: 150px; min-height: 40px; margin: 0; }
.admin-actions .portal-button { min-height: 40px; white-space: nowrap; }
.admin-record-list { display: grid; gap: 12px; }
.admin-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, 140px) minmax(170px, 220px) auto; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid #e8ebeb; }
.admin-record strong, .admin-record small { display: block; }
.admin-record strong { font-size: 12px; }
.admin-record small { margin-top: 4px; color: var(--chand-muted); font-size: 10px; }
.admin-record .portal-button { height: 37px; min-height: 37px; box-sizing: border-box; padding: 7px 10px; font-size: 11px; }
.record-actions { display: flex; align-items: center; justify-self: end; gap: 6px; }
.reward-fields { display: grid; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); gap: 6px; min-width: 0; }
.reward-fields input { width: 100%; }
.payout-detail-link { margin-top: 5px; padding: 0; border: 0; background: transparent; color: #33566d; font-size: 10px; text-decoration: underline; }
.reward-ledger-row, .customer-row { display: grid; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8ebeb; }
.reward-ledger-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.reward-ledger-row > div strong, .reward-ledger-row > div small, .customer-row strong, .customer-row small { display: block; }
.reward-ledger-row > div strong, .customer-row strong { color: var(--chand-ink); font-size: 12px; }
.reward-ledger-row > div small, .customer-row small { margin-top: 4px; color: var(--chand-muted); font-size: 10px; }
.reward-amount { white-space: nowrap; }
.reward-ledger-row .portal-button { min-height: 35px; padding: 6px 9px; font-size: 10px; }
.customer-row { grid-template-columns: minmax(0, 1fr) auto; }
.customer-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.customer-tools input { width: min(100%, 300px); min-height: 40px; margin: 0; padding: 8px 10px; border: 1px solid var(--chand-line); }
.customer-tools .portal-button { width: auto; min-height: 40px; white-space: nowrap; }
.admin-message-list { margin-top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.payout-dialog { width: min(440px, calc(100% - 32px)); padding: 26px; border: 1px solid var(--chand-line); color: var(--chand-ink); }
.payout-dialog::backdrop { background: #09233dcc; }
.payout-dialog h2 { margin: 0 0 16px; color: var(--chand-navy); }
.payout-dialog dl { margin: 0; }
.payout-dialog dt { margin-top: 12px; color: var(--chand-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.payout-dialog dd { margin: 3px 0 0; font-weight: 600; }
.dialog-close { float: right; border: 0; background: transparent; color: var(--chand-muted); font-size: 26px; line-height: 1; }
.photo-dialog { width: min(900px, calc(100% - 32px)); max-height: 90vh; padding: 14px; border: 1px solid var(--chand-line); }
.photo-dialog::backdrop { background: #09233dcc; }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(90vh - 60px); margin: 0 auto; object-fit: contain; }

body.portal-page select:not(.visually-hidden) {
	appearance: none;
	padding-right: 34px;
	background-image: linear-gradient(45deg, transparent 50%, #64717b 50%), linear-gradient(135deg, #64717b 50%, transparent 50%);
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
	background-repeat: no-repeat;
	background-size: 5px 5px;
}

@media (max-width: 900px) {
	.auth-layout { grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); gap: 36px; }
	.dashboard { grid-template-columns: 205px minmax(0, 1fr); }
	.content-grid { grid-template-columns: 1fr; align-items: start; gap: 0; margin-top: 0; }
	.admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.admin-record { grid-template-columns: minmax(0, 1fr) minmax(110px, 130px) minmax(150px, 190px) auto; }
}
@media (min-width: 681px) and (max-width: 1023px) {
	#adminInitial { display: none; }
	.dashboard { grid-template-columns: 76px minmax(0, 1fr); }
	.dashboard.is-sidebar-expanded { grid-template-columns: 205px minmax(0, 1fr); }
	.portal-sidebar.admin-sidebar { padding: 20px 9px; }
	.sidebar-customer { justify-content: center; padding: 0 0 16px; }
	.sidebar-customer > span:not(.user-initial) { display: none; }
	.sidebar-collapse-toggle { justify-content: center; padding: 0; }
	.nav-item { position: relative; justify-content: center; gap: 0; padding: 10px 8px; }
	.nav-item .nav-label { display: none; }
	.nav-item .inbox-count { position: absolute; top: -4px; right: 0; min-width: 16px; height: 16px; margin: 0; padding: 0 3px; font-size: 9px; }
	.dashboard.is-sidebar-expanded .portal-sidebar.admin-sidebar { padding: 20px 12px; }
	.dashboard.is-sidebar-expanded .sidebar-customer { justify-content: flex-start; padding: 0 4px 16px; }
	.dashboard.is-sidebar-expanded .sidebar-customer > span:not(.user-initial) { display: block; }
	.dashboard.is-sidebar-expanded .sidebar-collapse-toggle { justify-content: flex-end; padding: 0 11px; }
	.dashboard.is-sidebar-expanded .nav-item { justify-content: flex-start; gap: 12px; padding: 9px 11px; }
	.dashboard.is-sidebar-expanded .nav-item .nav-label { display: inline; }
	.dashboard.is-sidebar-expanded .nav-item .inbox-count { position: static; min-width: 20px; height: 20px; margin-left: auto; padding: 0 5px; font-size: 10px; }
	.dashboard.is-sidebar-expanded .sign-out { justify-content: flex-start; gap: 12px; font-size: 14px; }
	.dashboard.is-sidebar-expanded .sign-out .nav-label { display: inline; }
	.dashboard:not(.is-sidebar-expanded) .sign-out { justify-content: center; gap: 0; padding: 17px 8px 9px; font-size: 0; }
	.dashboard:not(.is-sidebar-expanded) .sign-out .nav-label { display: none; }
	.admin-inbox-layout { grid-template-columns: minmax(175px, .8fr) minmax(0, 1.2fr); }
	.admin-inbox-layout { grid-template-rows: minmax(0, 1.2fr) minmax(0, .8fr); }
	.conversation-details-pane { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; max-height: none; border-top: 1px solid var(--chand-line); border-left: 0; }
	.conversation-details-pane .details-section { min-width: 0; }
}
@media (max-height: 760px) {
	.auth-layout { min-height: 100vh; min-height: 100svh; padding: 8px clamp(12px, 4vw, 48px); }
	.auth-story { padding: 8px 0; }
	.auth-story h1 { margin-bottom: 14px; }
	.auth-story > p:not(.eyebrow) { line-height: 1.45; }
	.auth-note { margin-top: 20px; }
	.auth-panel { padding: 18px 22px; }
	.auth-tabs { margin-bottom: 14px; }
	.portal-form input, .portal-form-grid input, .portal-form-grid select, .portal-form-grid textarea, .message-form textarea, .admin-actions input, #adminCustomer { min-height: 42px; margin-bottom: 10px; }
	.portal-button-google { margin-top: 8px; }
	.text-action { margin-top: 8px; }
	.auth-legal { margin-top: 12px; }
}
@media (max-width: 680px) {
	.auth-layout { display: block; min-height: 100vh; min-height: 100svh; padding: 8px 12px; }
	.auth-story { padding: 18px 4px 24px; }
	.auth-story h1 { font-size: 38px; }
	.auth-story > p:not(.eyebrow) { font-size: 15px; }
	.auth-note { display: none; }
	.auth-panel { padding: 22px 18px; }
	.dashboard { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; min-height: 0; overflow: hidden; }
	.portal-sidebar { position: relative; z-index: 2; height: auto; min-height: 0; overflow: visible; padding: 8px 12px 10px; }
	.sidebar-customer { padding: 0 4px 12px; }
	.sidebar-customer small { max-width: 220px; }
	.portal-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; height: auto; max-height: none; overflow: visible; padding: 6px 0 0; }
	.admin-sidebar .nav-label { display: inline; }
	.nav-item { width: 100%; min-height: 37px; flex: none; gap: 7px; padding: 8px 10px; font-size: 11px; }
	.nav-item i { width: auto; }
	.sign-out { display: none; }
	.dashboard-main { height: 100%; min-height: 0; overflow-y: auto; padding: 12px 16px 14px; }
	.dashboard-heading h1 { font-size: 27px; }
	.mobile-sign-out { display: block; width: 40px; height: 40px; border: 1px solid var(--chand-line); background: #fff; color: var(--chand-navy); }
	body.admin-page .dashboard { position: relative; display: block; }
	body.admin-page .portal-sidebar.admin-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 2000; width: min(280px, 86vw); height: 100dvh; min-height: 100dvh; overflow-y: auto; padding: 18px 15px 16px; transform: translateX(-100%); transition: transform .2s ease; }
	body.admin-page .dashboard.is-sidebar-expanded .portal-sidebar.admin-sidebar { transform: translateX(0); }
	body.admin-page .dashboard.is-sidebar-expanded::before { position: fixed; z-index: 1999; inset: 0; background: rgba(18, 34, 53, .42); content: ""; }
	body.admin-page .dashboard-main { height: 100dvh; padding: 12px 16px 14px; }
	body.admin-page .admin-sidebar .sidebar-customer { justify-content: flex-start; padding: 0 6px 25px; }
	body.admin-page .admin-sidebar .sidebar-customer > span:not(.user-initial) { display: block; }
	body.admin-page .admin-sidebar .portal-nav { grid-template-columns: 1fr; gap: 5px; max-height: none; overflow: visible; padding-top: 22px; }
	body.admin-page .admin-sidebar .nav-label { display: inline; }
	body.admin-page .admin-sidebar .nav-item { width: 100%; justify-content: flex-start; gap: 12px; padding: 9px 11px; }
	body.admin-page .admin-sidebar .nav-item .inbox-count { position: static; min-width: 20px; height: 20px; margin-left: auto; padding: 0 5px; font-size: 10px; }
	body.admin-page .admin-sidebar .sign-out { display: flex; }
	body.admin-page .sidebar-collapse-toggle { display: flex; }
	.welcome-strip { display: block; padding: 19px; }
	.welcome-strip h2 { font-size: 21px; }
	.welcome-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
	.welcome-action { font-size: 12px; }
	.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
	.stat-box { padding: 12px 9px; }
	.stat-box span { font-size: 10px; }
	.stat-box strong { font-size: 22px; }
	.stat-box small { font-size: 9px; }
	.portal-form-grid { grid-template-columns: 1fr; }
	.field-wide { grid-column: auto; }
	.form-panel { padding: 16px; }
	.form-actions { align-items: flex-start; flex-direction: column; }
	.form-actions .portal-button { width: 100%; }
	.admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.admin-metric { padding: 11px 8px; }
	.admin-metric strong { font-size: 18px; }
	.admin-metric span { font-size: 9px; }
	.section-heading { align-items: flex-start; flex-direction: column; }
	.admin-actions { width: 100%; flex-wrap: wrap; }
	.admin-actions input { flex: 1; }
	.reward-row { grid-template-columns: minmax(0, 1fr) 76px 95px; }
	.reward-row button { grid-column: 1 / -1; }
	.reward-fields { grid-template-columns: minmax(0, 1fr) 100px; }
	.reward-fields input[name="payoutMonth"] { grid-column: 1 / -1; }
	.team-member-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.payment-ledger-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
	.payment-ledger-row > .status-chip { justify-self: start; }
	.payment-ledger-row .portal-button { grid-column: 1 / -1; }
	.admin-record { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.admin-record > :first-child { grid-column: 1 / -1; }
	.admin-record > :nth-child(3) { min-width: 0; }
	.admin-record .portal-button { grid-column: 1 / -1; }
	.admin-record .record-actions { grid-column: 1 / -1; justify-self: stretch; }
	.admin-record .record-actions .portal-button { flex: 1 1 auto; }
	.message-form { grid-template-columns: 1fr; }
	.message-form .portal-button { width: 100%; }
	.message-form select:not(.visually-hidden) { width: 100%; }
	.reward-ledger-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
	.reward-ledger-row > .status-chip { justify-self: start; }
	.reward-ledger-row .portal-button { grid-column: 1 / -1; }
	.customer-tools { align-items: stretch; flex-direction: column; }
	.customer-tools input, .customer-tools .portal-button { width: 100%; }
	.customer-row { grid-template-columns: 1fr; }
}

@media (min-width: 681px) {
	body.admin-page { height: 100vh; height: 100dvh; overflow: hidden; }
	body.admin-page .portal-wrap { height: 100%; }
	body.admin-page .dashboard { height: 100%; min-height: 0; overflow: hidden; }
	body.admin-page .portal-sidebar.admin-sidebar { height: 100%; min-height: 0; overflow: hidden; }
	body.admin-page .dashboard-main { display: flex; min-height: 0; height: 100%; flex-direction: column; gap: 10px; overflow: hidden; padding-top: 16px; padding-bottom: 18px; }
	body.admin-page .dashboard-heading { flex: 0 0 auto; margin: 0; }
	body.admin-page #adminDashboardStatus { flex: 0 0 auto; min-height: 0; margin: 0; }
	body.admin-page #adminDashboardStatus:empty { display: none; }
	body.admin-page .view-panel { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
	body.admin-page .view-panel.is-hidden { display: none !important; }
	body.admin-page .admin-overview-grid { min-height: 0; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
	body.admin-page .admin-overview-grid .data-section { display: flex; min-height: 0; flex-direction: column; margin: 0; overflow: hidden; }
	body.admin-page .admin-overview-grid .record-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
	body.admin-page .admin-inbox-layout { min-height: 0; flex: 1 1 auto; overflow: hidden; }
	body.admin-page .admin-inbox-layout { grid-template-rows: minmax(0, 1fr); }
	body.admin-page .conversation-pane { display: flex; min-height: 0; flex-direction: column; overflow: hidden; }
	body.admin-page .conversation-list { min-height: 0; max-height: none; flex: 1 1 auto; overflow-y: auto; }
	body.admin-page .thread-pane { min-height: 0; overflow: hidden; }
	body.admin-page .thread-pane .message-list { min-height: 0; max-height: none; flex: 1 1 auto; }
	body.admin-page .conversation-details-pane { min-height: 0; max-height: none; }
	body.admin-page [data-admin-panel="requests"] > .admin-record-list { min-height: 0; flex: 1 1 auto; align-content: start; grid-auto-rows: max-content; overflow-y: auto; }
	body.admin-page [data-admin-panel="requests"] .admin-record { align-self: start; }
	body.admin-page [data-admin-panel="referrals"] > .data-section { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; margin: 0; overflow: hidden; }
	body.admin-page [data-admin-panel="referrals"] .admin-record-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
	body.admin-page .admin-reward-tabs { flex: 0 0 auto; }
	body.admin-page .admin-reward-panel { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
	body.admin-page [data-admin-panel="team"] > .admin-record-list { min-height: 0; flex: 1 1 auto; align-content: start; grid-auto-rows: max-content; overflow-y: auto; }
	body.admin-page [data-admin-panel="hires-payments"] { display: flex; flex-direction: column; }
	body.admin-page [data-workforce-panel="hires"] { min-height: 0; overflow-y: auto; }
	body.admin-page #rewardSchedulePanel .reward-editor { min-height: 0; overflow-y: auto; padding-right: 12px; }
	body.admin-page #eligibleReferralsPanel .admin-record-list, tbody.admin-page #paymentHistoryPanel .admin-record-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
	body.admin-page [data-admin-panel="customers"] > .data-section { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; margin: 0; overflow: hidden; }
	body.admin-page [data-admin-panel="customers"] .admin-record-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
}

.team-workspace-wrap { min-height: 100vh; background: #fff; }
.team-staff-workspace { width: min(100%, 1120px); margin: 0 auto; padding: 28px clamp(16px, 4vw, 42px) 48px; }
.team-staff-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--chand-line); }
.team-staff-header h1 { margin: 0; color: var(--chand-navy); font-size: 24px; }
.team-staff-header p:last-child { margin: 5px 0 0; color: var(--chand-muted); font-size: 12px; }
.team-staff-header .portal-button { flex: 0 0 auto; }
.staff-section { margin-top: 20px; }
.staff-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.staff-section-heading h2 { margin: 0; color: var(--chand-navy); font-size: 16px; }
.staff-project-list { display: grid; }
.staff-project-row { padding: 14px 0; border-bottom: 1px solid #e8ebeb; }
.staff-project-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.staff-project-summary strong, .staff-payment-row strong { color: var(--chand-ink); font-size: 13px; }
.staff-project-summary small { display: block; margin-top: 3px; color: var(--chand-muted); font-size: 10px; }
.staff-project-summary p { margin: 7px 0 0; color: var(--chand-ink); font-size: 12px; white-space: pre-wrap; }
.staff-project-closed { margin: 10px 0 0; color: var(--chand-muted); font-size: 11px; }
.staff-project-finances { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0; padding: 8px; background: #f1f4f3; font-size: 11px; }
.staff-project-finances dt { color: var(--chand-muted); }
.staff-project-finances dd { margin: 0 12px 0 0; font-weight: 700; }
.staff-project-update { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.5fr) auto; align-items: end; gap: 8px; margin-top: 10px; }
.staff-project-update label { display: grid; gap: 4px; color: var(--chand-muted); font-size: 10px; font-weight: 700; }
.staff-project-update select, .staff-project-update textarea { width: 100%; min-height: 38px; margin: 0; padding: 7px 8px; border: 1px solid var(--chand-line); background: #fff; color: var(--chand-ink); font: inherit; font-size: 12px; }
.staff-project-update textarea { resize: vertical; }
.staff-project-update .portal-button { min-height: 38px; padding: 7px 12px; font-size: 11px; }
.staff-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e8ebeb; }
.staff-payment-row small { display: block; margin-top: 4px; color: var(--chand-muted); font-size: 10px; }

@media (max-width: 680px) {
	.team-staff-workspace { padding: 20px 14px 34px; }
	.team-staff-header { align-items: flex-start; flex-direction: column; }
	.staff-project-update { grid-template-columns: 1fr; }
	.staff-project-update .portal-button { width: 100%; }
	.staff-payment-row { grid-template-columns: minmax(0, 1fr) auto; }
	.staff-payment-row .status-chip { grid-column: 1 / -1; justify-self: start; }
}