@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --harvey-orange: #f37a1f;
    --harvey-orange-dark: #d96310;
    --harvey-ink: #24343d;
    --harvey-teal: #2f6b65;
    --harvey-cream: #fff9f4;
    --harvey-pale: #fff0e4;
    --harvey-muted: #829097;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
    color: var(--harvey-ink);
    background: var(--harvey-cream);
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

/* Harvey intro */
.harvey-splash {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 50% 43%, #314951 0%, #24343d 51%, #1d2b33 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 650ms ease, visibility 0s linear 650ms;
}

.harvey-splash.splash-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 30px; text-align: center; }
.splash-mark-wrap { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin-bottom: 30px; animation: mark-arrive 850ms cubic-bezier(.2,.8,.2,1) both; }
.splash-logo { position: relative; z-index: 1; width: 145px; height: 145px; border-radius: 50%; box-shadow: 0 16px 55px #f37a1f55; animation: logo-breathe 2.3s ease-in-out 850ms infinite; }
.splash-orbit { position: absolute; border: 1px solid #f7a05b44; border-radius: 50%; }
.splash-orbit-one { inset: 7px; animation: orbit-turn 8s linear infinite; }
.splash-orbit-one::after, .splash-orbit-two::after { position: absolute; top: 19%; left: 9%; width: 8px; height: 8px; border-radius: 50%; background: #ffbd82; box-shadow: 0 0 18px #ff9d54; content: ''; }
.splash-orbit-two { inset: -3px 20px; border-color: #ffffff12; transform: rotate(52deg); animation: orbit-turn 11s linear infinite reverse; }
.splash-orbit-two::after { top: auto; bottom: 8%; left: auto; right: 15%; width: 5px; height: 5px; background: #ffffffaa; }
.splash-wordmark { animation: words-arrive 750ms ease-out 320ms both; }
.splash-kicker { margin: 0; color: #f4a260; font-size: 11px; font-weight: 700; letter-spacing: .3em; }
.splash-wordmark h1 { margin: 14px 0 9px; font-family: Manrope, 'Segoe UI', sans-serif; font-size: clamp(27px, 5vw, 41px); font-weight: 600; letter-spacing: -.045em; }
.splash-wordmark h1 span { color: #ffad6c; }
.splash-tagline { margin: 0; color: #d6e0e1; font-size: 14px; letter-spacing: .04em; }
.splash-loader { width: 48px; height: 2px; margin-top: 32px; overflow: hidden; border-radius: 4px; background: #ffffff24; }
.splash-loader span { display: block; width: 55%; height: 100%; border-radius: inherit; background: var(--harvey-orange); animation: loader-sweep 1.1s ease-in-out infinite; }
.splash-footer { position: absolute; bottom: 26px; margin: 0; color: #b8c7c9; font-size: 11px; letter-spacing: .12em; animation: words-arrive 800ms ease-out 600ms both; }
.splash-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.splash-glow-one { top: -240px; right: -130px; background: radial-gradient(circle, #f37a1f1c 0, transparent 70%); }
.splash-glow-two { bottom: -260px; left: -150px; background: radial-gradient(circle, #2f6b6545 0, transparent 70%); }

@keyframes mark-arrive { from { opacity: 0; transform: translateY(18px) scale(.82); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes words-arrive { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes loader-sweep { from { transform: translateX(-110%); } to { transform: translateX(200%); } }
@keyframes splash-exit { to { opacity: 0; visibility: hidden; } }

/* Sign-in screen */
.login-page { display: grid; grid-template-columns: minmax(380px, .92fr) minmax(480px, 1.08fr); min-height: 100vh; animation: page-arrive 700ms cubic-bezier(.2,.75,.25,1) both; }
.welcome-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(34px, 5vw, 68px); color: #fff; background: linear-gradient(145deg, #24343d, #2d454b 72%, #2f6b65); }
.welcome-panel::after { position: absolute; inset: auto -130px -240px auto; width: 510px; height: 510px; border: 1px solid #ffffff0c; border-radius: 50%; box-shadow: 0 0 0 45px #ffffff05, 0 0 0 90px #ffffff04; content: ''; }
.welcome-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.welcome-orb-one { top: 26%; left: -220px; width: 390px; height: 390px; background: radial-gradient(circle, #f37a1f26 0, transparent 69%); }
.welcome-orb-two { right: -120px; bottom: 5%; width: 300px; height: 300px; background: radial-gradient(circle, #74b1a420 0, transparent 70%); }
.brand-lockup { position: relative; z-index: 1; display: inline-flex; width: fit-content; align-items: center; gap: 13px; text-decoration: none; }
.brand-lockup img { width: 52px; height: 52px; border-radius: 50%; }
.brand-lockup-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-lockup-copy strong { font-family: Manrope, 'Segoe UI', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .12em; }
.brand-lockup-copy small { color: #f7b37f; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.welcome-copy { position: relative; z-index: 1; max-width: 490px; margin: 58px 0 70px; animation: words-arrive 700ms ease-out 120ms both; }
.eyebrow { display: inline-block; color: var(--harvey-orange); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.welcome-copy .eyebrow { color: #ffb378; }
.welcome-copy h1 { margin: 22px 0 18px; font-family: Manrope, 'Segoe UI', sans-serif; font-size: clamp(36px, 4.4vw, 58px); font-weight: 600; letter-spacing: -.06em; line-height: 1.13; }
.welcome-copy h1 span { color: #ffac6c; }
.welcome-copy p { max-width: 375px; margin: 0; color: #d1dddf; font-size: 15px; line-height: 1.8; }
.welcome-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; color: #dce5e4; font-size: 12px; letter-spacing: .04em; }
.welcome-note-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #ffb37855; border-radius: 50%; color: #ffb378; font-size: 17px; }

.sign-in-panel { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 50px clamp(28px, 7vw, 100px) 24px; background: var(--harvey-cream); }
.sign-in-card { width: min(100%, 420px); animation: words-arrive 800ms ease-out 220ms both; }
.mobile-brand { display: none; }
.sign-in-heading { margin-bottom: 34px; }
.sign-in-heading h2 { margin: 12px 0 8px; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: clamp(29px, 3vw, 36px); font-weight: 700; letter-spacing: -.055em; }
.sign-in-heading p { margin: 0; color: #7e8b90; font-size: 14px; line-height: 1.6; }
.sign-in-form { display: flex; flex-direction: column; }
.remember-row { display: flex; width: fit-content; align-items: center; gap: 9px; margin: -5px 0 18px; color: #77858a !important; cursor: pointer; font-size: 11px !important; font-weight: 500 !important; }
.remember-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--harvey-orange); }
.sign-in-form label { margin-bottom: 9px; color: #35464d; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; margin-bottom: 23px; }
.input-wrap input { width: 100%; height: 54px; padding: 0 16px 0 46px; border: 1px solid #e6e5e1; border-radius: 11px; outline: none; color: var(--harvey-ink); background: #fff; font-size: 13px; transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.input-wrap input::placeholder { color: #aab2b4; }
.input-wrap input:focus { border-color: #f3a268; background: #fffdfa; box-shadow: 0 0 0 4px #f37a1f16; }
.input-icon { position: absolute; top: 50%; left: 16px; color: #9da9ac; font-size: 15px; transform: translateY(-50%); }
.password-input-wrap input { padding-right: 52px; }
.password-visibility-button { position: absolute; top: 50%; right: 12px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #829094; background: transparent; cursor: pointer; transform: translateY(-50%); }
.password-visibility-button:hover { color: var(--harvey-orange-dark); background: #fff4eb; }
.password-visibility-button:focus-visible { outline: 2px solid var(--harvey-orange); outline-offset: 1px; }
.password-visibility-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-label-row { display: flex; align-items: center; justify-content: space-between; }
.password-label-row a, .support-copy a, .legal-copy a { color: var(--harvey-orange-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.password-label-row a { margin-bottom: 9px; }
.password-label-row a:hover, .support-copy a:hover, .legal-copy a:hover { text-decoration: underline; }
.sign-in-button { display: flex; height: 54px; align-items: center; justify-content: center; gap: 12px; margin-top: 3px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(105deg, #f37a1f, #f58b3b); box-shadow: 0 9px 20px #f37a1f30; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; }
.sign-in-button span { font-size: 18px; font-weight: 400; transition: transform 180ms ease; }
.sign-in-button:hover { filter: saturate(1.08); box-shadow: 0 12px 24px #f37a1f3b; transform: translateY(-1px); }
.sign-in-button:hover span { transform: translateX(3px); }
.sign-in-button:focus-visible { outline: 3px solid #24343d; outline-offset: 3px; }
.sign-in-message { margin: 15px 0 0; padding: 11px 13px; border: 1px solid #f3d4bd; border-radius: 9px; color: #8c4a1d; background: #fff4eb; font-size: 12px; line-height: 1.5; }
.sign-in-divider { display: flex; align-items: center; gap: 14px; margin: 29px 0 19px; }
.sign-in-divider span { height: 1px; flex: 1; background: #e8e4df; }
.sign-in-divider small { color: #a0a8a8; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.support-copy { margin: 0; color: #77858a; text-align: center; font-size: 12px; }
.support-copy a { margin-left: 3px; font-size: 12px; }
.legal-copy { margin: 34px 0 0; color: #9ba3a3; text-align: center; font-size: 10px; line-height: 1.8; }
.legal-copy a { color: #68777b; font-size: inherit; }
.page-footer { margin-top: auto; padding-top: 30px; color: #a6aeac; font-size: 10px; letter-spacing: .02em; }

/* Authenticated portal landing page */
.portal-page { min-height: 100vh; padding: 26px clamp(22px, 6vw, 80px); background: var(--harvey-cream); animation: page-arrive 550ms ease-out both; }
.portal-header { display: flex; max-width: 1120px; align-items: center; justify-content: space-between; margin: 0 auto; padding-bottom: 21px; border-bottom: 1px solid #e9e3dd; }
.portal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .11em; text-decoration: none; }
.portal-brand img { width: 42px; height: 42px; border-radius: 50%; }
.portal-brand small { display: block; margin-top: 2px; color: #a55c2c; font-family: 'DM Sans', 'Segoe UI', sans-serif; font-size: 7px; font-weight: 700; letter-spacing: .15em; }
.sign-out-button { padding: 10px 15px; border: 1px solid #dedbd6; border-radius: 9px; color: #59686d; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; transition: border-color 160ms ease, color 160ms ease; }
.sign-out-button:hover { border-color: var(--harvey-orange); color: var(--harvey-orange-dark); }
.portal-welcome { max-width: 1120px; margin: clamp(58px, 10vh, 100px) auto 32px; }
.portal-welcome h1 { margin: 10px 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.06em; }
.portal-welcome p { max-width: 590px; margin: 0; color: #7e8b90; font-size: 14px; line-height: 1.7; }
.portal-roles { display: grid; max-width: 1120px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 15px; margin: 0 auto; }
.portal-role-card { position: relative; display: flex; min-height: 130px; align-items: flex-start; gap: 14px; padding: 23px 19px; overflow: hidden; border: 1px solid #ece5de; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px #24343d08; }
.portal-role-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 12px; color: #fff; background: var(--harvey-orange); font-size: 17px; }
.portal-role-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.office-card .portal-role-icon { background: var(--harvey-teal); }
.admin-card .portal-role-icon { color: var(--harvey-ink); background: #f6d6b6; }
.jobs-card .portal-role-icon { color: #fff; background: var(--harvey-teal); }
.system-admin-card .portal-role-icon { color: #fff; background: var(--harvey-ink); }
.portal-role-card h2 { margin: 2px 0 7px; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 16px; font-weight: 700; }
.portal-role-card p { margin: 0; color: #849095; font-size: 11px; line-height: 1.6; }
.worker-placeholder-panel { max-width: 720px; margin: 0 auto; padding: 32px; text-align: center; }
.worker-placeholder-icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 16px; background: #fff2e8; color: var(--harvey-orange); }
.worker-placeholder-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.worker-placeholder-panel h2 { margin: 0 0 7px; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 19px; }
.worker-placeholder-panel p { margin: 0; color: #849095; font-size: 13px; }
.worker-profile-panel { max-width: 760px; margin: 0 auto; padding: 30px; }
.worker-profile-photo-area { display: flex; align-items: center; gap: 16px; padding-bottom: 25px; border-bottom: 1px solid #f0e9e3; }
.worker-profile-photo-placeholder { display: flex; width: 104px; height: 104px; flex: 0 0 104px; align-items: center; justify-content: center; overflow: hidden; border: 2px dashed #edc5a7; border-radius: 50%; background: #fff7f0; color: #d97732; }
.worker-profile-photo-placeholder svg { width: 45px; height: 45px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.worker-profile-photo-image { border-style: solid; object-fit: cover; }
.worker-profile-photo-area p { margin: 5px 0 0; color: #849095; font-size: 13px; }
.worker-photo-controls { min-width: 0; }
.worker-photo-input-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.worker-photo-pick-button { position: relative; display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; overflow: hidden; padding: 0 12px; border: 1px solid #f0c29f; border-radius: 10px; background: #fff2e8; color: #a64e14; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.worker-photo-pick-button:hover { border-color: var(--harvey-orange); background: #ffeadb; }
.worker-photo-pick-button span { font-size: 16px; line-height: 1; }
.worker-photo-pick-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.worker-photo-secondary-button { border-color: #e4e6e5; background: #fff; color: #59676c; }
.worker-photo-secondary-button:hover { border-color: #b8c0c1; background: #f9faf9; }
.worker-photo-save-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0 4px; padding: 16px; border: 1px solid #f0e4da; border-radius: 13px; background: #fffaf6; }
.worker-photo-test-mode { margin: 0; color: #718086; font-size: 12px; line-height: 1.55; }
.worker-photo-consent { display: flex; align-items: flex-start; gap: 9px; color: #647278; cursor: pointer; font-size: 11px; line-height: 1.55; }
.worker-photo-consent input { width: 16px; height: 16px; flex: 0 0 16px; margin: 1px 0 0; accent-color: var(--harvey-orange); }
.worker-photo-save-panel .house-save-button { flex: 0 0 auto; }
.worker-photo-message { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; font-size: 12px; }
.worker-photo-message-error { background: #fff0ee; color: #a13d30; }
.worker-photo-message-success { background: #eff8f0; color: #39764b; }
.worker-camera-backdrop { position: fixed; z-index: 1300; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: #17252bb8; backdrop-filter: blur(5px); }
.worker-camera-modal { width: min(510px, 100%); padding: 22px; border: 1px solid #f0e4da; border-radius: 20px; background: #fff; box-shadow: 0 22px 70px #17252b40; }
.worker-camera-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.worker-camera-heading h2 { margin: 5px 0 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 20px; }
.worker-camera-close { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #f6f2ee; color: #59676c; cursor: pointer; font-size: 24px; line-height: 1; }
.worker-camera-video { display: block; width: 100%; max-height: min(62vh, 460px); aspect-ratio: 4 / 3; border-radius: 14px; background: #18242a; object-fit: cover; transform: scaleX(-1); }
.worker-camera-hint { margin: 12px 0; color: #77858a; font-size: 12px; text-align: center; }
.worker-camera-capture { display: block; width: 100%; }
.worker-camera-error { margin: 8px 0; padding: 14px; border-radius: 10px; background: #fff0ee; color: #a13d30; font-size: 13px; line-height: 1.6; }
.worker-profile-heading { padding: 22px 0 12px; }
.worker-profile-heading h2 { margin: 5px 0 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 21px; }
.worker-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.worker-profile-details > div { padding: 15px 0; border-bottom: 1px solid #f1ece7; }
.worker-profile-details dt { margin-bottom: 5px; color: #849095; font-size: 11px; }
.worker-profile-details dd { margin: 0; color: var(--harvey-ink); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.worker-profile-readonly, .worker-profile-message { margin: 20px 0 0; color: #849095; font-size: 12px; line-height: 1.6; }
@media (max-width: 560px) {
    .worker-profile-panel { padding: 22px 18px; }
    .worker-profile-details { grid-template-columns: 1fr; }
    .worker-profile-photo-area { align-items: flex-start; flex-direction: column; }
    .worker-photo-save-panel { align-items: stretch; flex-direction: column; }
    .worker-photo-save-panel .house-save-button { width: 100%; }
}
.role-badge { position: absolute; right: 14px; bottom: 13px; color: #a5adaa; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.portal-footer { max-width: 1120px; margin: 70px auto 0; padding-top: 20px; border-top: 1px solid #e9e3dd; color: #a6aeac; font-size: 10px; }
.portal-card-action { position: absolute; right: 18px; bottom: 34px; color: #b95e22; font-size: 11px; font-weight: 700; text-decoration: none; }
.portal-card-action:hover { color: var(--harvey-ink); }
.portal-card-action span { padding-left: 4px; }
.job-duration-preview { display: flex; flex-direction: column; gap: 5px; margin-top: 17px; padding: 13px 15px; border-radius: 10px; color: #7c898d; background: #fbf6f0; font-size: 10px; }
.job-duration-preview strong { color: var(--harvey-ink); font-size: 16px; }
.worker-assign-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: #18272db8; backdrop-filter: blur(3px); }
.worker-assign-dialog { width: min(650px, 100%); max-height: min(88vh, 780px); overflow-y: auto; padding: 24px; border: 1px solid #f0e4d9; border-radius: 16px; background: #fffdfa; box-shadow: 0 22px 70px #101b2070; }
.worker-assign-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.worker-assign-heading h2 { margin: 7px 0 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 22px; }
.worker-assign-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; color: #7f898a; background: #f6f2ed; cursor: pointer; font-size: 24px; line-height: 1; }
.worker-assign-close:hover { color: #fff; background: var(--harvey-orange); }
.worker-assign-job-summary { margin: 16px 0 5px; color: #67767a; font-size: 11px; line-height: 1.7; }
.worker-assign-job-summary strong { color: var(--harvey-ink); }
.worker-assign-search { margin: 12px 0; }
.worker-assign-list { display: flex; max-height: 310px; flex-direction: column; gap: 6px; overflow-y: auto; padding: 2px; }
.worker-assign-option { display: flex; min-height: 57px; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid #eee9e4; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.worker-assign-option:hover { border-color: #f3c7a4; background: #fff8f1; }
.worker-assign-option-selected, .worker-assign-option-selected:hover { border-color: var(--harvey-orange); background: #fff2e6; }
.worker-assign-option > input { width: 16px; height: 16px; margin: 0; accent-color: var(--harvey-orange); }
.worker-assign-option-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.worker-assign-option-copy strong { color: var(--harvey-ink); font-size: 11px; }
.worker-assign-option-copy small { overflow: hidden; color: #8a9699; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.worker-assign-option-check { color: var(--harvey-orange-dark); font-size: 15px; opacity: 0; }
.worker-assign-option-selected .worker-assign-option-check { opacity: 1; }
.worker-assign-empty { padding: 26px 12px; border-radius: 10px; color: #7e8b90; background: #fbf6f0; font-size: 11px; text-align: center; }
.worker-phone-confirmation { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0 0; padding: 11px 12px; border-radius: 9px; color: #56666c; background: #fbf6f0; font-size: 10px; line-height: 1.5; }
.worker-phone-confirmation input { width: 15px; height: 15px; flex: 0 0 15px; margin: 1px 0 0; accent-color: var(--harvey-orange); }
.worker-assign-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.worker-assign-actions button:disabled { opacity: .48; cursor: not-allowed; }
.system-admin-grid { display: grid; max-width: 1120px; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); align-items: start; gap: 18px; margin: 0 auto; }
.system-admin-editor, .system-admin-list-panel { min-width: 0; padding: 25px; }
.system-admin-editor .house-save-button { margin-top: 16px; }
.system-admin-help { margin: 10px 0 0; color: #8a9699; font-size: 10px; line-height: 1.6; }
.system-admin-role-list { border-top: 1px solid #eee9e4; }
.system-admin-role-row { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 3px; border-bottom: 1px solid #f0ede9; }
.system-admin-role-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.system-admin-role-copy strong { color: var(--harvey-ink); font-size: 12px; overflow-wrap: anywhere; }
.system-admin-role-copy span, .system-admin-confirm-actions > span { color: #8a9699; font-size: 10px; }
.system-admin-danger-button { color: #a44331; }
.system-admin-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.system-admin-permission-note { margin: 15px 0 0; padding: 11px 13px; border-radius: 9px; color: #775f48; background: #fbf2e8; font-size: 10px; line-height: 1.6; }
.system-admin-logins-panel { max-width: 1120px; margin: 0 auto 18px; padding: 25px 23px 12px; }
.system-admin-login-table td { white-space: nowrap; }
.system-admin-login-table td:first-child { min-width: 190px; white-space: normal; }
.system-admin-login-email { display: block; margin-top: 4px; color: #98a2a3; font-size: 10px; }
.system-admin-country-flag { margin-right: 7px; font-size: 17px; vertical-align: -2px; }
.system-admin-device-icon { display: inline-block; min-width: 19px; margin-right: 4px; color: #a55c2c; font-size: 15px; text-align: center; vertical-align: -1px; }
.system-admin-login-empty { padding: 30px 12px 34px; color: #899499; font-size: 11px; text-align: center; }
.system-admin-tabs { display: flex; max-width: 1120px; gap: 7px; margin: 0 auto 18px; padding: 5px; border: 1px solid #ece5de; border-radius: 12px; background: #f2eee9; }
.system-admin-tab { min-height: 38px; padding: 0 15px; border: 0; border-radius: 8px; color: #758286; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.system-admin-tab:hover { color: var(--harvey-ink); }
.system-admin-tab-active { color: var(--harvey-ink); background: #fff; box-shadow: 0 2px 8px #24343d10; }
.system-admin-tab:focus-visible { outline: 2px solid var(--harvey-orange); outline-offset: 2px; }
.system-admin-users-grid { margin-top: 0; }
.system-admin-user-search { display: flex; align-items: center; gap: 10px; margin: 3px 0 13px; }
.system-admin-search-input { display: flex; min-width: 0; min-height: 42px; flex: 1; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e6e5e1; border-radius: 9px; background: #fff; }
.system-admin-search-input:focus-within { border-color: var(--harvey-orange); outline: 2px solid #f37a1f25; box-shadow: 0 0 0 3px #f37a1f12; }
.system-admin-search-icon { color: #a55c2c; font-size: 21px; line-height: 1; }
.system-admin-search-input input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 0; border: 0; outline: 0; color: var(--harvey-ink); background: transparent; font-size: 11px; }
.system-admin-search-input input::placeholder { color: #9aa4a4; }
.system-admin-search-clear { min-height: 36px; padding: 0 10px; border: 1px solid #f1d5be; border-radius: 8px; color: var(--harvey-orange-dark); background: #fff8f1; cursor: pointer; font-size: 10px; font-weight: 700; }
.system-admin-search-clear:hover { color: #fff; background: var(--harvey-orange); }
.attendance-policy-panel { max-width: 760px; }
.attendance-policy-toggle { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid #f0e4d9; border-radius: 11px; background: #fffaf5; cursor: pointer; }
.attendance-policy-toggle input { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--harvey-orange); }
.attendance-policy-toggle span { display: flex; flex-direction: column; gap: 5px; }
.attendance-policy-toggle strong { color: var(--harvey-ink); font-size: 12px; }
.attendance-policy-toggle small { color: #839093; font-size: 10px; line-height: 1.5; }
.attendance-policy-rules { margin: 16px 0; padding: 14px 16px; border-radius: 10px; background: #f8f6f2; }
.attendance-policy-rules h3 { margin: 0 0 8px; color: var(--harvey-ink); font-size: 11px; }
.attendance-policy-rules ul { margin: 0; padding-left: 17px; color: #718084; font-size: 10px; line-height: 1.8; }
.attendance-policy-state { margin-bottom: 14px; padding: 11px 13px; border-radius: 9px; font-size: 10px; line-height: 1.6; }
.attendance-policy-state-on { color: #81502d; background: #fff0e4; }
.attendance-policy-state-off { color: #546a63; background: #eef5ef; }
.worker-tabs { display: flex; max-width: 1120px; gap: 7px; margin: 0 auto 17px; padding: 5px; border: 1px solid #ece5de; border-radius: 12px; background: #f2eee9; }
.worker-tab { min-height: 39px; padding: 0 15px; border: 0; border-radius: 8px; color: #758286; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.worker-tab:hover { color: var(--harvey-ink); }
.worker-tab-active { color: var(--harvey-ink); background: #fff; box-shadow: 0 2px 8px #24343d10; }
.worker-tab-count { margin-left: 5px; color: var(--harvey-orange-dark); }
.worker-policy-status { max-width: 1120px; margin: 0 auto 18px; padding: 11px 14px; border-radius: 9px; font-size: 10px; line-height: 1.6; }
.worker-policy-status strong { margin-right: 3px; }
.worker-policy-status p { margin: 0; }
.worker-policy-development { color: #546a63; background: #eef5ef; }
.worker-policy-active { color: #81502d; background: #fff0e4; }
.worker-jobs { max-width: 950px; margin: 0 auto; }
.worker-job-group + .worker-job-group { margin-top: 30px; }
.worker-job-tabs { display: flex; max-width: 950px; align-items: center; gap: 8px; margin: 0 auto 18px; padding-bottom: 10px; border-bottom: 1px solid #eee6df; }
.worker-job-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #65747a; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; }
.worker-job-tab span { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 99px; background: #f1eee9; color: #6d777a; font-size: 11px; }
.worker-job-tab:hover { background: #fff6ef; color: var(--harvey-ink); }
.worker-job-tab-active { border-color: #f4d5bd; background: #fff2e8; color: #b95613; }
.worker-job-tab-active span { background: #f7d8bf; color: #974209; }
.worker-refresh { margin-left: auto; }
.worker-job-summary { margin-top: 14px; padding: 18px 20px; border: 1px solid #f0e7df; border-radius: 14px; background: #fffaf6; }
.worker-job-summary h3 { margin: 0 0 11px; color: var(--harvey-ink); font-size: 14px; }
.worker-job-summary-list { display: grid; gap: 8px; }
.worker-job-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; color: #65747a; font-size: 12px; }
.worker-job-summary-row strong { color: var(--harvey-ink); font-size: 12px; }
.worker-job-summary-row small { color: #849095; font-size: 11px; }
.worker-job-summary-total { padding-top: 10px; border-top: 1px solid #eadfd6; font-weight: 700; }
@media (max-width: 560px) {
    .worker-job-tabs { flex-wrap: wrap; gap: 5px; }
    .worker-job-tab { min-height: 38px; padding: 0 9px; font-size: 12px; }
    .worker-refresh { margin-left: 0; }
    .worker-job-summary-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
    .worker-job-summary-row small { grid-column: 1 / -1; }
}
.worker-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.worker-section-heading h2 { margin: 6px 0 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 21px; }
.worker-tab-description { margin: 6px 0 0; color: #849095; font-size: 12px; line-height: 1.55; }
.worker-empty-state, .worker-placeholder { padding: 32px; text-align: center; }
.worker-empty-state h3, .worker-placeholder h2 { margin: 12px 0 7px; color: var(--harvey-ink); font-size: 16px; }
.worker-empty-state p, .worker-placeholder p { margin: 0; color: #879396; font-size: 11px; line-height: 1.7; }
.worker-placeholder { max-width: 760px; margin: 0 auto; }
.worker-placeholder .eyebrow { text-align: left; }
.worker-job-card { max-width: none; margin-bottom: 13px; padding: 21px; }
.worker-job-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.worker-job-heading h3 { margin: 6px 0 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 17px; }
.worker-job-heading .house-status { flex: 0 0 auto; }
.worker-job-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 16px 0; }
.worker-job-schedule > div { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border-radius: 9px; background: #fbf6f0; }
.worker-job-schedule span, .worker-recorded-event span { color: #8c9899; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.worker-job-schedule strong { color: var(--harvey-ink); font-size: 11px; }
.worker-job-address { margin: 0 0 8px; color: #66757a; font-size: 11px; line-height: 1.7; }
.worker-map-link { display: inline-flex; align-items: center; gap: 5px; color: var(--harvey-orange-dark); font-size: 10px; font-weight: 700; text-decoration: none; }
.worker-map-link:hover { color: var(--harvey-ink); }
.worker-access-notes { margin-top: 13px; padding: 12px; border-left: 3px solid var(--harvey-orange); border-radius: 7px; background: #fff8f1; }
.worker-access-notes strong { color: #79512f; font-size: 10px; }
.worker-access-notes p { margin: 5px 0 0; color: #6e7776; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.worker-recorded-event { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; padding: 10px 12px; border: 1px solid #eee9e4; border-radius: 8px; }
.worker-recorded-event span { margin-right: auto; }
.worker-recorded-event strong { color: var(--harvey-ink); font-size: 10px; }
.worker-recorded-event small { color: #859191; font-size: 9px; }
.worker-job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; }
.worker-job-actions .house-save-button:disabled { opacity: .48; cursor: not-allowed; }
.worker-policy-time-hint { color: #89613c; font-size: 9px; }
.system-admin-user-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.system-admin-field-wide { grid-column: 1 / -1; }
.system-admin-users-panel { max-height: 690px; overflow-y: auto; }
.system-admin-user-list { border-top: 1px solid #eee9e4; }
.system-admin-user-row { padding: 15px 3px; border-bottom: 1px solid #f0ede9; }
.system-admin-user-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.system-admin-user-status { width: fit-content; margin-top: 3px; padding: 3px 7px; border-radius: 20px; font-size: 8px; font-weight: 700; }
.system-admin-user-status-active { color: #28704f; background: #eaf5ee; }
.system-admin-user-status-inactive { color: #7a8182; background: #f0f1ef; }
.system-admin-edit-user-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 12px; padding: 14px; border-radius: 10px; background: #fbf9f6; }
.system-admin-active-toggle { display: flex; align-items: center; align-self: end; gap: 8px; min-height: 42px; color: #56666c; font-size: 11px; font-weight: 700; }
.system-admin-active-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--harvey-orange); }
.system-admin-checkbox-row { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #56666c; font-size: 11px; font-weight: 500; }
.system-admin-checkbox-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--harvey-orange); }
.system-admin-role-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.system-admin-role-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px 4px 9px; border-radius: 20px; color: #81502d; background: #fbf0e6; font-size: 9px; font-weight: 700; }
.system-admin-role-chip button { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; color: inherit; background: #efd9c5; cursor: pointer; font-size: 13px; line-height: 1; }
.system-admin-role-chip button:disabled { opacity: .45; cursor: not-allowed; }
.system-admin-no-role { padding: 4px 8px; border-radius: 20px; color: #8a6b4e; background: #fbf2e8; font-size: 9px; }
.system-admin-role-assignment { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.system-admin-role-assignment select { min-width: 0; min-height: 32px; padding: 5px 8px; border: 1px solid #e6e5e1; border-radius: 7px; color: var(--harvey-ink); background: #fff; font-size: 10px; }
.system-admin-role-assignment .house-text-button { min-height: 32px; padding: 0 8px; border: 1px solid #f2c9a8; border-radius: 7px; color: var(--harvey-orange-dark); }
.system-admin-role-assignment .house-text-button:disabled { opacity: .5; cursor: not-allowed; }
.houses-page { padding-bottom: 54px; }
.houses-header-actions { display: flex; align-items: center; gap: 20px; }
.houses-header-actions form { margin: 0; }
.houses-back-link { color: #69777b; font-size: 11px; font-weight: 700; text-decoration: none; }
.houses-back-link:hover { color: var(--harvey-orange-dark); }
.houses-welcome { margin-top: clamp(42px, 7vh, 72px); }
.houses-welcome h1 { margin-bottom: 8px; }
.house-notice, .house-error { max-width: 1120px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; font-size: 12px; }
.house-notice { color: #286b54; background: #eaf5ee; }
.house-notice-visible, .house-notice-hidden { transition: opacity 220ms ease, transform 220ms ease, padding 220ms ease, margin 220ms ease; }
.house-notice-visible { opacity: 1; transform: translateY(0); }
.house-notice-hidden { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(-4px); }
.house-error { color: #8d3f31; background: #fff0eb; }
.houses-workspace { display: grid; max-width: 1120px; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.3fr); align-items: start; gap: 18px; margin: 0 auto; }
.house-panel { border: 1px solid #ece5de; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #24343d08; }
.house-editor { padding: 25px; }
.house-panel-heading { margin-bottom: 22px; }
.house-panel-heading h2, .house-list-heading h2 { margin: 7px 0 0; color: var(--harvey-ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.house-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.house-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #56666c; font-size: 11px; font-weight: 700; }
.house-field-wide { grid-column: 1 / -1; }
.house-field input, .house-field select, .house-field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #e6e5e1; border-radius: 9px; outline: none; color: var(--harvey-ink); background: #fff; font-size: 12px; font-weight: 400; }
.house-field textarea { min-height: 85px; resize: vertical; }
.house-field input:focus, .house-field select:focus, .house-field textarea:focus { border-color: #f3a268; box-shadow: 0 0 0 3px #f37a1f16; }
.house-field input::placeholder, .house-field textarea::placeholder { color: #aab2b4; }
.harvey-picker-wrap { position: relative; width: 100%; }
.harvey-picker-trigger { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #e6e5e1; border-radius: 9px; color: var(--harvey-ink); background: #fff; cursor: pointer; font-size: 12px; font-weight: 500; text-align: left; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.harvey-picker-trigger:hover { border-color: #edb184; background: #fffaf6; }
.harvey-picker-trigger:focus-visible { border-color: var(--harvey-orange); outline: 2px solid #f37a1f55; outline-offset: 1px; box-shadow: 0 0 0 3px #f37a1f16; }
.harvey-picker-icon { color: var(--harvey-orange-dark); font-size: 16px; }
.harvey-picker-wrap { z-index: 1; }
.harvey-picker-wrap:has(.harvey-date-popover), .harvey-picker-wrap:has(.harvey-time-popover) { z-index: 20; }
.harvey-date-popover, .harvey-time-popover { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; width: min(320px, calc(100vw - 48px)); padding: 13px; border: 1px solid #f0e4d9; border-radius: 13px; background: #fffdfa; box-shadow: 0 15px 40px #293b3c20; animation: picker-arrive 140ms ease-out both; }
.harvey-time-popover { width: min(300px, calc(100vw - 48px)); }
.harvey-calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--harvey-ink); font-size: 12px; }
.harvey-calendar-nav { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 8px; color: var(--harvey-orange-dark); background: #fff0e4; cursor: pointer; font-size: 22px; line-height: 1; }
.harvey-calendar-nav:hover { color: #fff; background: var(--harvey-orange); }
.harvey-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.harvey-calendar-weekday { display: grid; height: 28px; place-items: center; color: #96a0a1; font-size: 10px; font-weight: 700; }
.harvey-calendar-empty, .harvey-calendar-day { display: grid; min-width: 0; height: 34px; place-items: center; }
.harvey-calendar-day { border: 1px solid transparent; border-radius: 8px; color: #54646a; background: transparent; cursor: pointer; font-size: 11px; transition: color 120ms ease, background 120ms ease, border-color 120ms ease; }
.harvey-calendar-day:hover { border-color: #f5c69f; color: var(--harvey-orange-dark); background: #fff0e4; }
.harvey-calendar-day-today { border-color: #f1b27e; color: var(--harvey-orange-dark); font-weight: 800; }
.harvey-calendar-day-selected, .harvey-calendar-day-selected:hover { border-color: var(--harvey-orange); color: #fff; background: var(--harvey-orange); font-weight: 800; }
.harvey-calendar-footer, .harvey-time-popover-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e7df; }
.harvey-calendar-today, .harvey-picker-done { min-height: 30px; padding: 0 10px; border: 1px solid #f1d5be; border-radius: 7px; color: var(--harvey-orange-dark); background: #fff8f1; cursor: pointer; font-size: 10px; font-weight: 700; }
.harvey-calendar-today:hover, .harvey-picker-done:hover { border-color: var(--harvey-orange); color: #fff; background: var(--harvey-orange); }
.harvey-time-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.harvey-time-column { min-width: 0; }
.harvey-time-column-title { display: block; padding: 2px 0 7px; color: #899598; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-align: center; }
.harvey-time-options { display: grid; max-height: 206px; grid-template-columns: minmax(0, 1fr); gap: 4px; overflow-y: auto; padding: 2px 8px; scrollbar-color: #e8b68f #fbf3ec; scrollbar-width: thin; }
.harvey-time-option { min-height: 30px; border: 1px solid transparent; border-radius: 7px; color: #58676b; background: transparent; cursor: pointer; font-size: 11px; transition: color 100ms ease, background 100ms ease, border-color 100ms ease; }
.harvey-time-option:hover { border-color: #f4c6a0; color: var(--harvey-orange-dark); background: #fff0e4; }
.harvey-time-option-selected, .harvey-time-option-selected:hover { border-color: var(--harvey-orange); color: #fff; background: var(--harvey-orange); font-weight: 800; }
.harvey-time-popover-footer > span { color: #909a9b; font-size: 10px; }
.harvey-calendar-nav:focus-visible, .harvey-calendar-day:focus-visible, .harvey-calendar-today:focus-visible, .harvey-picker-done:focus-visible, .harvey-time-option:focus-visible { outline: 2px solid var(--harvey-orange); outline-offset: 1px; }
@keyframes picker-arrive { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.house-field .validation-message, .house-validation-summary { color: #a44331; font-size: 10px; font-weight: 500; }
.house-validation-summary:empty { display: none; }
.house-validation-summary ul { margin: 0 0 12px; padding-left: 18px; }
.house-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 21px; }
.house-save-button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 9px; color: #fff; background: var(--harvey-orange); cursor: pointer; font-size: 11px; font-weight: 700; }
.house-save-button:hover { background: var(--harvey-orange-dark); }
.house-cancel-button { min-height: 42px; padding: 0 14px; border: 1px solid #dedbd6; border-radius: 9px; color: #59686d; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.house-list-panel { min-width: 0; padding: 25px 23px 12px; }
.house-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.house-count { color: #919c9f; font-size: 10px; white-space: nowrap; }
.house-empty-state { padding: 48px 15px 55px; text-align: center; }
.house-empty-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #a55c2c; background: #f8e8da; font-size: 19px; }
.house-empty-state h3 { margin: 14px 0 5px; color: var(--harvey-ink); font-size: 14px; }
.house-empty-state p { margin: 0; color: #899499; font-size: 11px; }
.house-table-wrap { overflow-x: auto; }
.house-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.house-table th { padding: 10px 9px; border-bottom: 1px solid #eee9e4; color: #98a2a3; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.house-table td { padding: 14px 9px; border-bottom: 1px solid #f0ede9; color: #647277; vertical-align: middle; }
.house-table td strong { color: var(--harvey-ink); font-size: 11px; }
.house-address-subline { display: inline-block; margin-top: 4px; color: #98a2a3; font-size: 10px; }
.house-coordinate-subline { display: block; margin-top: 4px; color: #a55c2c; font-size: 9px; }
.house-status { display: inline-block; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; }
.house-status-active { color: #28704f; background: #eaf5ee; }
.house-status-inactive { color: #7a8182; background: #f0f1ef; }
.house-row-actions { white-space: nowrap; }
.house-text-button { padding: 4px 6px; border: 0; color: #68777b; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.house-text-button:hover { color: var(--harvey-orange-dark); }
.house-deactivate-button:hover { color: #a44331; }
.map-field { margin-top: 3px; }
.map-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.required-mark { color: var(--harvey-orange-dark); }
.map-coordinate-text { color: #8a9699; font-size: 10px; font-weight: 500; }
.map-help-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 7px; }
.map-help { margin: 0; color: #8a9699; font-size: 10px; font-weight: 400; }
.map-location-button { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #f2c9a8; border-radius: 7px; color: var(--harvey-orange-dark); background: #fffaf6; cursor: pointer; font-size: 10px; font-weight: 700; }
.map-location-button:hover:not(:disabled) { border-color: var(--harvey-orange); background: #fff2e8; }
.map-location-button:disabled { opacity: .6; cursor: wait; }
.map-lookup-status { min-height: 14px; margin: -1px 0 0; color: #8a6b4e; font-size: 10px; font-weight: 500; }
.service-home-map { z-index: 0; width: 100%; height: 300px; overflow: hidden; border: 1px solid #e6e5e1; border-radius: 11px; background: #eef2ed; }
.service-home-map .leaflet-control-attribution { font-size: 8px; }

@keyframes page-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

#blazor-error-ui { display: none; position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0; padding: .8rem 1.2rem; color: #fff; background: #b32121; }
#blazor-error-ui .dismiss { position: absolute; top: .55rem; right: 1rem; cursor: pointer; }

@media (max-width: 850px) {
    .login-page { grid-template-columns: minmax(290px, .82fr) minmax(420px, 1.18fr); }
    .welcome-panel { padding: 36px; }
    .sign-in-panel { padding-right: 38px; padding-left: 38px; }
    .houses-workspace { grid-template-columns: 1fr; }
    .system-admin-grid { grid-template-columns: 1fr; }
    .system-admin-users-panel { max-height: none; }
}

@media (max-width: 680px) {
    .login-page { display: block; min-height: 100svh; background: var(--harvey-cream); }
    .welcome-panel { display: none; }
    .sign-in-panel { min-height: 100svh; padding: 28px 25px 19px; }
    .sign-in-card { width: min(100%, 430px); }
    .mobile-brand { display: block; margin-bottom: 35px; }
    .mobile-brand img { width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 8px 22px #f37a1f22; }
    .sign-in-heading { margin-bottom: 28px; }
    .sign-in-heading h2 { font-size: 31px; }
    .page-footer { padding-top: 25px; }
    .portal-header { align-items: flex-start; flex-wrap: wrap; row-gap: 12px; }
    .houses-header-actions { width: 100%; justify-content: space-between; gap: 12px; }
    .houses-header-actions .houses-back-link { display: inline-flex; align-items: center; min-height: 40px; }
    .house-editor, .house-list-panel { padding: 20px 17px; }
    .house-fields { grid-template-columns: 1fr; }
    .house-field-wide { grid-column: auto; }
    .system-admin-user-fields { grid-template-columns: 1fr; }
    .system-admin-field-wide { grid-column: auto; }
    .system-admin-user-heading { flex-direction: column; }
    .system-admin-edit-user-form { grid-template-columns: 1fr; }
    .system-admin-role-chips { justify-content: flex-start; }
    .system-admin-tabs { overflow-x: auto; }
    .system-admin-tab { flex: 0 0 auto; }
    .worker-tabs { overflow-x: auto; }
    .worker-tab { flex: 0 0 auto; }
    .worker-job-card { padding: 17px; }
    .worker-job-schedule { grid-template-columns: 1fr; }
    .worker-policy-status { font-size: 9px; }
    .house-table thead { display: none; }
    .house-table, .house-table tbody, .house-table tr, .house-table td { display: block; width: 100%; }
    .house-table tr { padding: 8px 0; border-bottom: 1px solid #eee9e4; }
    .house-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 4px; border: 0; }
    .house-table td::before { color: #98a2a3; content: attr(data-label); font-size: 9px; font-weight: 700; text-transform: uppercase; }
    .house-table .house-row-actions { justify-content: flex-end; }
}

@media (max-width: 380px) {
    .sign-in-panel { padding-right: 20px; padding-left: 20px; }
    .splash-mark-wrap { width: 168px; height: 168px; }
    .splash-logo { width: 128px; height: 128px; }
    .splash-kicker { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
