/* HiveHQ portal design system — authoritative scoped overrides */
.hhq-portalShell {
    --hhq-brand-50: #fff9e8;
    --hhq-brand-100: #fff0bd;
    --hhq-brand-300: #fbd66a;
    --hhq-brand-400: #f6c344;
    --hhq-brand-500: #e7ad1e;
    --hhq-ink-950: #111214;
    --hhq-ink-900: #181a1e;
    --hhq-ink-800: #25282e;
    --hhq-canvas: #f4f5f7;
    --hhq-surface: #ffffff;
    --hhq-surface-subtle: #f8f9fa;
    --hhq-surface-muted: #eff1f3;
    --hhq-text: #1b1d21;
    --hhq-text-muted: #626873;
    --hhq-text-soft: #858c97;
    --hhq-border: #dfe2e6;
    --hhq-border-strong: #cbd0d6;
    --hhq-success: #18794e;
    --hhq-success-soft: #e9f7f0;
    --hhq-warning: #a85d08;
    --hhq-warning-soft: #fff4df;
    --hhq-danger: #b4232f;
    --hhq-danger-soft: #fff0f1;
    --hhq-info: #2367a8;
    --hhq-info-soft: #eef6ff;
    --hhq-focus: rgba(231, 173, 30, .34);
    --hhq-space-1: .25rem;
    --hhq-space-2: .5rem;
    --hhq-space-3: .75rem;
    --hhq-space-4: 1rem;
    --hhq-space-5: 1.25rem;
    --hhq-space-6: 1.5rem;
    --hhq-space-8: 2rem;
    --hhq-space-10: 2.5rem;
    --hhq-radius-sm: 8px;
    --hhq-radius-md: 12px;
    --hhq-radius-lg: 16px;
    --hhq-radius-xl: 20px;
    --hhq-shadow-xs: 0 1px 2px rgba(17, 18, 20, .04);
    --hhq-shadow-sm: 0 2px 8px rgba(17, 18, 20, .06);
    --hhq-shadow-md: 0 12px 32px rgba(17, 18, 20, .10);
    --hhq-control: 42px;
    --hhq-sidebar: 264px;
    --hhq-ease: 160ms ease;
    --portal-bg: var(--hhq-canvas);
    --portal-bg-subtle: var(--hhq-surface-subtle);
    --portal-card: var(--hhq-surface);
    --portal-text: var(--hhq-text);
    --portal-text-muted: var(--hhq-text-muted);
    --portal-border-subtle: var(--hhq-border);
    --p-bg: var(--hhq-canvas);
    --p-surface: var(--hhq-surface);
    --p-border: var(--hhq-border);
    --p-border-soft: var(--hhq-border);
    --p-text: var(--hhq-text);
    --p-text-muted: var(--hhq-text-muted);
    --p-text-soft: var(--hhq-text-soft);
    --p-brand: var(--hhq-brand-400);
    --p-brand-2: var(--hhq-brand-500);
    --p-success: var(--hhq-success);
    min-height: 100dvh;
    display: grid;
    grid-template-columns: var(--hhq-sidebar) minmax(0, 1fr);
    background: var(--hhq-canvas);
    color: var(--hhq-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

.hhq-skipLink {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: var(--hhq-radius-sm);
    background: var(--hhq-brand-400);
    color: var(--hhq-ink-950);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform var(--hhq-ease);
}

.hhq-skipLink:focus { transform: translateY(0); }

body.hhq-dialog-open { overflow: hidden; }

.hhq-portalSidebar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: var(--hhq-sidebar);
    height: 100dvh;
    min-height: 0;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2c2f34;
    background-color: var(--hhq-ink-950);
    background-image: linear-gradient(rgba(17, 18, 20, .92), rgba(17, 18, 20, .98)), url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23f6c344' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M21 1 42 13v24L21 49 0 37V13Z'/%3E%3Cpath d='M63 1 84 13v24L63 49 42 37V13Z'/%3E%3Cpath d='m42 37 21 12v24L42 85 21 73V49Z'/%3E%3C/g%3E%3C/svg%3E");
    color: #f7f8fa;
}

.hhq-portalSidebarTop {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 8px 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.hhq-portalBrandLockup,
.hhq-portalMobileBrand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hhq-brandMark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
    background: var(--hhq-brand-400);
    color: var(--hhq-ink-950);
    font-size: 16px;
    font-weight: 900;
}

.hhq-portalBrandLockup > span:last-child,
.hhq-portalMobileBrand > span:last-child { display: grid; }
.hhq-portalBrand,
.hhq-portalMobileBrand strong { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.hhq-portalBrandSub,
.hhq-portalMobileBrand small { margin: 0; color: #9ca2ad; font-size: 11px; font-weight: 600; letter-spacing: .04em; }

.hhq-portalNav {
    display: grid;
    gap: 4px;
    padding: 0;
}

.hhq-portalNavLabel {
    padding: 0 12px 6px;
    color: #777e89;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hhq-portalNavLabel--tools { margin-top: 18px; }

.hhq-portalNav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: var(--hhq-radius-md);
    color: #b9bec7;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--hhq-ease), background var(--hhq-ease), border-color var(--hhq-ease);
}

.hhq-portalNav a:hover,
.hhq-portalNav a:focus-visible {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.hhq-portalNav a.active {
    border-color: rgba(246, 195, 68, .22);
    background: rgba(246, 195, 68, .11);
    color: #fff;
    box-shadow: inset 3px 0 var(--hhq-brand-400);
}

.hhq-portalNavIcon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8e949e;
}

.hhq-portalNavIcon svg { width: 18px; height: 18px; fill: currentColor; }
.hhq-portalNavIcon i { width: 18px; font-size: 16px; line-height: 1; text-align: center; }
.hhq-portalNav a.active .hhq-portalNavIcon { color: var(--hhq-brand-400); }

.hhq-portalSidebarFooter {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding: 16px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.hhq-portalUser { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hhq-portalUserAvatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(246, 195, 68, .28);
    border-radius: 50%;
    background: rgba(246, 195, 68, .12);
    color: var(--hhq-brand-300);
    font-size: 13px;
    font-weight: 800;
}

.hhq-portalUserMeta { min-width: 0; }
.hhq-portalUserName { overflow: hidden; color: #f4f5f7; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hhq-portalUserEmail { overflow: hidden; color: #8e949e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hhq-portalLogout { width: 100%; }

.hhq-portalMain {
    min-width: 0;
    margin: 0;
    padding: 34px clamp(22px, 3vw, 48px) 56px;
    background: var(--hhq-canvas);
    color: var(--hhq-text);
}

.hhq-portalMain:focus { outline: none; }
.hhq-portalMainInner { width: min(100%, 1440px); max-width: none; margin: 0 auto; padding: 0; }
.hhq-portalMobileTop,
.hhq-portalOverlay,
.hhq-portalClose { display: none; }

.hhq-parityPage,
.hhq-yardPage,
.hhq-hivePage,
.hhq-yardDetailPage,
.hhq-hiveDetailPage,
.hhq-yardMapPage { width: 100%; max-width: 1440px; margin: 0 auto; color: var(--hhq-text); }

.hhq-parityPage { gap: 22px; }
.hhq-parityHeader,
.hhq-yardHeader,
.hhq-hiveHeader,
.hhq-yardDetailHeader {
    min-height: 70px;
    margin: 0 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.hhq-parityHeader { margin-bottom: 0; }
.hhq-parityHeader h1,
.hhq-portalTitle {
    margin: 0;
    color: var(--hhq-text);
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.hhq-parityHeader p:not(.hhq-eyebrow),
.hhq-portalSubtitle {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--hhq-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.hhq-eyebrow {
    margin: 0 0 7px;
    color: #8d6507;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hhq-card,
.hhq-portalCard,
.hhq-parityCard,
.hhq-yardEnterpriseCard,
.hhq-hiveCard,
.hhq-yardDetailCard,
.hhq-yardMapPanel,
.hhq-photoCard,
.hhq-uploadCard {
    border: 1px solid var(--hhq-border);
    border-radius: var(--hhq-radius-lg);
    background: var(--hhq-surface);
    color: var(--hhq-text);
    box-shadow: var(--hhq-shadow-xs);
}

.hhq-card,
.hhq-parityCard { padding: 20px; }
.hhq-yardEnterpriseCard,
.hhq-hiveCard { padding: 20px; transition: border-color var(--hhq-ease), box-shadow var(--hhq-ease), transform var(--hhq-ease); }
.hhq-yardEnterpriseCard:hover,
.hhq-hiveCard:hover { border-color: var(--hhq-border-strong); box-shadow: var(--hhq-shadow-sm); transform: translateY(-1px); }
.hhq-yardEnterpriseCard:focus-within,
.hhq-hiveCard:focus-within { box-shadow: 0 0 0 4px var(--hhq-focus); }
.hhq-yardDetailCard { margin-bottom: 18px; padding: 24px; }

.hhq-cardTitle,
.hhq-parityCard h2,
.hhq-yardDetailCardHeader h2,
.hhq-yardEnterpriseName,
.hhq-hiveName {
    color: var(--hhq-text);
    font-weight: 750;
    letter-spacing: -.015em;
}

.hhq-cardTitle { font-size: 14px; }
.hhq-cardSub,
.hhq-parityCard > p,
.hhq-yardEnterpriseMeta,
.hhq-hiveMeta,
.hhq-helpText { color: var(--hhq-text-muted); }
.hhq-cardSub { font-size: 13px; }
.hhq-parityCard h2 { font-size: 17px; }

.hhq-kpiGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hhq-kpiGrid .hhq-card { position: relative; min-height: 126px; padding: 18px; overflow: hidden; }
.hhq-kpiGrid .hhq-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--hhq-brand-400); }
.hhq-kpiValue { margin-top: 14px; color: var(--hhq-text); font-size: 28px; font-weight: 760; letter-spacing: -.035em; }
.hhq-kpiValue--success { color: var(--hhq-success); }
.hhq-kpiValue--brand { color: #8d6507; }

.hhq-dashboardColumns { gap: 16px; }
.hhq-list { gap: 8px; }
.hhq-listRow,
.hhq-yardMapItem,
.hhq-toggleRow {
    border: 1px solid var(--hhq-border);
    border-radius: var(--hhq-radius-md);
    background: var(--hhq-surface-subtle);
    color: var(--hhq-text);
}
.hhq-listButton:hover,
.hhq-listButton:focus-visible,
.hhq-yardMapItem:hover,
.hhq-yardMapItem:focus-visible { border-color: #d6b452; background: var(--hhq-brand-50); }
.hhq-listRow span,
.hhq-yardMapItem span { color: var(--hhq-text-muted); }

.hhq-btn,
.hhq-hiveAddBtn,
.hhq-hiveBackBtn,
.hhq-iconButton {
    min-height: var(--hhq-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--hhq-ease), border-color var(--hhq-ease), box-shadow var(--hhq-ease), transform var(--hhq-ease);
}

.hhq-btnPortalPrimary,
.hhq-hiveAddBtn {
    border: 1px solid #d6a41f;
    background: var(--hhq-brand-400);
    color: var(--hhq-ink-950);
    box-shadow: 0 2px 5px rgba(137, 98, 4, .16);
}
.hhq-btnPortalPrimary:hover,
.hhq-hiveAddBtn:hover { border-color: #bd8c0d; background: #edb733; color: var(--hhq-ink-950); transform: translateY(-1px); }
.hhq-btnPortalPrimary:active,
.hhq-hiveAddBtn:active { transform: translateY(0); }

.hhq-btnPortalSecondary,
.hhq-hiveBackBtn,
.hhq-iconButton {
    border: 1px solid var(--hhq-border-strong);
    background: var(--hhq-surface);
    color: #3b4048;
    box-shadow: var(--hhq-shadow-xs);
}
.hhq-btnPortalSecondary:hover,
.hhq-hiveBackBtn:hover,
.hhq-iconButton:hover { border-color: #adb3bc; background: var(--hhq-surface-subtle); color: var(--hhq-text); }
.hhq-btnDanger,
.hhq-dialogBtnDanger { border: 1px solid #e2a5ab !important; background: var(--hhq-surface) !important; color: var(--hhq-danger) !important; box-shadow: none !important; }
.hhq-btnDanger:hover,
.hhq-dialogBtnDanger:hover { border-color: #cb6872 !important; background: var(--hhq-danger-soft) !important; }
.hhq-btn:disabled,
.hhq-hiveAddBtn:disabled,
.hhq-iconButton:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }

.hhq-portalShell :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--hhq-focus);
    outline-offset: 2px;
}

.hhq-toolbar {
    align-items: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--hhq-border);
    border-radius: var(--hhq-radius-lg);
    background: var(--hhq-surface);
    box-shadow: var(--hhq-shadow-xs);
}

.hhq-field { gap: 7px; }
.hhq-field > span,
.hhq-field > label,
.hhq-dialogFieldLabel { color: #555b65; font-size: 12px; font-weight: 750; }
.hhq-field input,
.hhq-field select,
.hhq-field textarea,
.hhq-answerInput,
.hhq-yardSearch {
    width: 100%;
    min-height: var(--hhq-control);
    padding: 9px 12px;
    border: 1px solid var(--hhq-border-strong);
    border-radius: var(--hhq-radius-sm);
    background: var(--hhq-surface);
    color: var(--hhq-text);
    font: inherit;
    font-size: 14px;
    outline: none;
}
.hhq-field textarea { resize: vertical; }
.hhq-field input::placeholder,
.hhq-yardSearch::placeholder { color: var(--hhq-text-soft); }
.hhq-field input:focus,
.hhq-field select:focus,
.hhq-field textarea:focus,
.hhq-answerInput:focus,
.hhq-yardSearch:focus { border-color: #bc8c11; box-shadow: 0 0 0 3px var(--hhq-focus); outline: 0; }
.hhq-formGrid { gap: 16px; }
.validation-message { margin-top: 4px; color: var(--hhq-danger); font-size: 12px; font-weight: 650; }
.validation-summary-errors { padding: 12px 14px; border: 1px solid #efb6bb; border-radius: var(--hhq-radius-sm); background: var(--hhq-danger-soft); color: var(--hhq-danger); }

.hhq-cardHeaderRow { align-items: center; gap: 24px; margin: 0; }
.hhq-cardHeaderRow .hhq-yardSearch { min-width: min(100%, 360px); width: 360px; }
.hhq-yardEnterpriseGrid,
.hhq-hiveGrid { gap: 16px; }
.hhq-yardEnterpriseStats { gap: 10px; }
.hhq-yardStatBox,
.hhq-yardSummaryBox {
    border: 1px solid var(--hhq-border);
    border-radius: var(--hhq-radius-md);
    background: var(--hhq-surface-subtle);
}
.hhq-yardStatLabel,
.hhq-yardSummaryLabel { color: var(--hhq-text-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hhq-yardStatValue { color: var(--hhq-text); font-size: 14px; font-weight: 700; }
.hhq-yardSummaryValue { color: var(--hhq-text); font-size: 24px; font-weight: 740; }
.hhq-yardEnterpriseFooter,
.hhq-hiveFooter { border-color: var(--hhq-border); }
.hhq-yardStatusPill {
    min-height: 30px;
    height: auto;
    padding: 4px 9px;
    border: 1px solid var(--hhq-border);
    border-radius: 999px;
    background: var(--hhq-surface-subtle);
    color: #4f555e;
    font-size: 12px;
    font-weight: 700;
}
.hhq-yardCodePill { min-width: 0; height: 30px; padding: 0 10px; background: transparent; font-size: 12px; font-weight: 800; }
.hhq-yardDetailAddress { color: var(--hhq-text-muted); font-size: 16px; font-weight: 600; }
.hhq-yardNoteRow { border-color: var(--hhq-border); }
.hhq-yardNoteText { color: var(--hhq-text); font-size: 15px; font-weight: 650; }
.hhq-yardNoteMeta { color: var(--hhq-text-muted); font-size: 12px; font-weight: 500; }
.hhq-yardPhotoTile { border-color: var(--hhq-border); background: var(--hhq-surface-muted); }
.hhq-hiveHealthText { border-color: var(--hhq-success); color: var(--hhq-text-muted); font-size: 15px; font-weight: 500; }

.hhq-alert {
    padding: 12px 14px;
    border-radius: var(--hhq-radius-md);
    font-size: 13px;
    font-weight: 650;
}
.hhq-alertError,
.hhq-auth-error { border: 1px solid #efb6bb; background: var(--hhq-danger-soft); color: var(--hhq-danger); }
.hhq-alertSuccess { border-color: #9cd5b9; background: var(--hhq-success-soft); color: var(--hhq-success); }
.hhq-alertWarning { border-color: #e9c581; background: var(--hhq-warning-soft); color: var(--hhq-warning); }
.hhq-emptyState { min-height: 180px; padding: 34px; border: 1px dashed var(--hhq-border-strong); border-radius: var(--hhq-radius-lg); background: var(--hhq-surface-subtle); color: var(--hhq-text-muted); }
.hhq-loading { color: var(--hhq-text-muted); }
.hhq-spinner { border-color: #e0e3e7; border-top-color: var(--hhq-brand-500); }
.skeleton-base { background: #e2e5e9; }
.skeleton-base::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); }

.hhq-chip { background: var(--hhq-brand-100); color: #705009; }
.hhq-statusText { color: var(--hhq-text-muted); }
.hhq-metaGrid dt { color: var(--hhq-text-muted); }
.hhq-metaGrid dd { color: var(--hhq-text); font-size: 14px; font-weight: 700; }

.hhq-dialogBackdrop {
    z-index: 1200;
    padding: 24px;
    background: rgba(14, 15, 17, .64);
    backdrop-filter: blur(4px);
}
.hhq-dialog {
    width: min(680px, 100%);
    max-height: min(88dvh, 860px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hhq-border);
    border-radius: var(--hhq-radius-xl);
    background: var(--hhq-surface);
    color: var(--hhq-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.hhq-dialogHeader { flex: 0 0 auto; padding: 18px 20px; border-color: var(--hhq-border); background: var(--hhq-surface); }
.hhq-dialogHeader h2 { color: var(--hhq-text); font-size: 18px; font-weight: 750; }
.hhq-dialogBody { min-height: 0; overflow-y: auto; padding: 20px; }
.hhq-dialogActions { position: sticky; bottom: -20px; margin: 20px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--hhq-border); background: var(--hhq-surface); }
.hhq-iconButton { width: 38px; min-width: 38px; min-height: 38px; padding: 0; font-size: 20px; }

.hhq-sync-dialog.e-dialog {
    --hhq-brand-400: #f6c344;
    --hhq-ink-950: #111214;
    --hhq-surface: #ffffff;
    --hhq-surface-subtle: #f8f9fa;
    --hhq-text: #1b1d21;
    --hhq-text-muted: #626873;
    --hhq-border: #dfe2e6;
    --hhq-border-strong: #cbd0d6;
    --hhq-danger: #b4232f;
    --hhq-danger-soft: #fff0f1;
    --hhq-radius-sm: 8px;
    --hhq-radius-md: 12px;
    --hhq-radius-xl: 20px;
    overflow: hidden;
    border: 1px solid var(--hhq-border) !important;
    border-radius: var(--hhq-radius-xl) !important;
    background: var(--hhq-surface) !important;
    color: var(--hhq-text) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3) !important;
}
.hhq-sync-dialog.e-dialog::before { display: none; }
.hhq-sync-dialog .e-dlg-header { color: var(--hhq-text); font-size: 18px; font-weight: 750; }
.hhq-sync-dialog .e-dlg-header-content { padding: 18px 20px; border-bottom: 1px solid var(--hhq-border); }
.hhq-sync-dialog .e-dlg-content { padding: 20px; color: var(--hhq-text); }
.hhq-sync-dialog .e-footer-content { padding: 14px 20px; border-top: 1px solid var(--hhq-border); }
.hhq-sync-dialog .hhq-dialogFieldLabel { color: #555b65; font-size: 12px; font-weight: 750; }
.hhq-sync-dialog .hhq-dialogInput.e-input-group,
.hhq-sync-dialog .hhq-dialogInput.e-control-wrapper,
.hhq-sync-dialog .hhq-dialogInput.e-ddl,
.hhq-sync-dialog .hhq-dialogInput.e-numerictextbox {
    min-height: var(--hhq-control) !important;
    border: 1px solid var(--hhq-border-strong) !important;
    border-radius: var(--hhq-radius-sm) !important;
    background: var(--hhq-surface) !important;
    box-shadow: none !important;
}
.hhq-sync-dialog .hhq-dialogInput input.e-input,
.hhq-sync-dialog .hhq-dialogInput .e-input { height: 40px !important; padding: 0 12px !important; color: var(--hhq-text) !important; font-size: 14px !important; font-weight: 500 !important; }
.hhq-sync-dialog .e-btn.hhq-dialogBtnPrimary { border-radius: 9999px; background: var(--hhq-brand-400); color: var(--hhq-ink-950); box-shadow: none; }
.hhq-sync-dialog .e-btn.hhq-dialogBtnSecondary { border: 1px solid var(--hhq-border-strong); border-radius: 9999px; background: var(--hhq-surface); color: var(--hhq-text); }
.hhq-sync-dialog .e-btn.hhq-dialogBtnDelete { border-radius: 9999px; color: var(--hhq-danger); }
.hhq-sync-dialog .hhq-helpText { color: var(--hhq-text-muted) !important; }
.hhq-sync-dialog .hhq-dialogFooter { display: flex; align-items: center; gap: 10px; width: 100%; }
.hhq-sync-dialog .hhq-dialogFooterSpacer { flex: 1 1 auto; }
.hhq-yard-dialog.e-dialog { max-width: calc(100vw - 32px) !important; }
.hhq-yard-dialog .e-dlg-content { max-height: calc(88dvh - 70px); overflow-y: auto !important; }

.hhq-progressSteps {
    width: min(100%, 560px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 12px auto 24px;
    padding: 0;
    list-style: none;
}

    .hhq-progressSteps li {
        position: relative;
        min-width: 0;
        display: grid;
        grid-template-rows: 32px auto;
        justify-items: center;
        align-items: center;
        gap: 7px;
        padding: 0 12px;
        color: var(--hhq-text-muted);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.2;
        text-align: center;
    }

        .hhq-progressSteps li span {
            position: relative;
            z-index: 2;
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border: 2px solid var(--hhq-border-strong);
            border-radius: 50%;
            background: var(--hhq-surface);
            color: var(--hhq-text-muted);
            font-size: 13px;
            font-weight: 800;
        }

        .hhq-progressSteps li:not(:last-child)::after {
            content: "";
            position: absolute;
            z-index: 0;
            top: 15px;
            left: calc(50% + 24px);
            right: calc(-50% + 24px);
            height: 2px;
            background: var(--hhq-border);
        }

        .hhq-progressSteps li.active {
            color: var(--hhq-text);
        }

            .hhq-progressSteps li.active span {
                border-color: var(--hhq-brand-500);
                background: var(--hhq-brand-400);
                color: var(--hhq-ink-950);
            }
.hhq-question { border-color: var(--hhq-border); background: var(--hhq-surface-subtle); }
.hhq-choice { border-color: var(--hhq-border-strong); background: var(--hhq-surface); }
.hhq-choice:hover { border-color: #d6b452; }
.hhq-choice.selected { border-color: #bc8c11; background: var(--hhq-brand-50); box-shadow: inset 3px 0 var(--hhq-brand-400); }
.hhq-inspectionActions { position: sticky; bottom: 0; padding: 14px 0 0; border-top: 1px solid var(--hhq-border); background: var(--hhq-surface); }
.hhq-completeCard { border-color: #9cd5b9; background: var(--hhq-success-soft); color: var(--hhq-text); }
.hhq-completeIcon { background: var(--hhq-success); }

.hhq-cameraFrame { max-width: 440px; border: 1px solid #29313a; border-radius: var(--hhq-radius-lg); background: #111923; }
.hhq-scanFrame { border-color: var(--hhq-brand-400); border-radius: var(--hhq-radius-md); }
.hhq-qrLayout > .hhq-parityCard { min-height: 0; }
.hhq-qrCard { border-color: var(--hhq-border); border-radius: var(--hhq-radius-lg); box-shadow: var(--hhq-shadow-sm); }
.hhq-uploadCard { position: static; }
.hhq-photoCard { overflow: hidden; }
.hhq-photoCard img { background: var(--hhq-surface-muted); }

.hhq-yardMapShell { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.hhq-yardMap { min-height: clamp(480px, 68vh, 720px); overflow: hidden; border: 1px solid var(--hhq-border); border-radius: var(--hhq-radius-lg); background: var(--hhq-surface-muted); box-shadow: var(--hhq-shadow-xs); }
.hhq-yardMapPanel { padding: 18px; }

@media (max-width: 1100px) {
    .hhq-kpiGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hhq-yardMapShell { grid-template-columns: 1fr; }
    .hhq-yardMapPanel { order: -1; }    
}

@media (max-width: 900px) {
    .hhq-portalShell { display: block; padding: 0; }
    .hhq-portalMobileTop {
        position: sticky;
        top: 0;
        z-index: 90;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        border-bottom: 1px solid #2c2f34;
        background: rgba(17, 18, 20, .96);
        color: #fff;
        backdrop-filter: blur(12px);
    }
    .hhq-portalMobileBrand .hhq-brandMark { width: 32px; height: 32px; flex-basis: 32px; }
    .hhq-portalBurger {
        width: 44px;
        height: 44px;
        display: grid;
        place-content: center;
        gap: 4px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 9999px;
        background: rgba(255, 255, 255, .06);
    }
    .hhq-portalBurger span { width: 18px; height: 2px; display: block; border-radius: 2px; background: #fff; }
    .hhq-portalSidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 110;
        width: min(var(--hhq-sidebar), 88vw);
        transform: translateX(-105%);
        transition: transform 200ms ease;
        box-shadow: var(--hhq-shadow-md);
    }
    .hhq-portalSidebar.is-open { transform: translateX(0); }
    .hhq-portalClose { width: 38px; height: 38px; margin-left: auto; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .13); border-radius: 9999px; background: rgba(255, 255, 255, .05); color: #fff; font-size: 22px; }
    .hhq-portalOverlay { position: fixed; inset: 0; z-index: 105; display: block; border: 0; background: rgba(10, 11, 13, .56); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
    .hhq-portalOverlay.is-open { opacity: 1; pointer-events: auto; }
    .hhq-portalMain { width: 100%; padding: 26px 20px 44px !important; }
    .hhq-settingsGrid,
    .hhq-dashboardColumns,
    .hhq-qrLayout { grid-template-columns: 1fr; }
    .hhq-yardSummaryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }    
}

@media (max-width: 640px) {
    .hhq-portalMain { padding: 20px 14px 36px !important; }
    .hhq-parityPage { gap: 16px; }
    .hhq-parityHeader,
    .hhq-yardHeader,
    .hhq-hiveHeader,
    .hhq-yardDetailHeader { min-height: 0; margin-bottom: 18px; align-items: stretch; flex-direction: column; gap: 14px; }
    .hhq-parityHeader .hhq-cardActions,
    .hhq-yardHeader > div:last-child,
    .hhq-yardDetailHeader > .hhq-btn,
    .hhq-hiveHeader > .hhq-cardActions { width: 100%; }
    .hhq-parityHeader .hhq-cardActions .hhq-btn,
    .hhq-yardHeader > div:last-child .hhq-btn { flex: 1; }
    .hhq-kpiGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hhq-kpiGrid .hhq-card { min-height: 108px; padding: 15px; }
    .hhq-kpiValue { font-size: 24px; }
    .hhq-card,
    .hhq-parityCard,
    .hhq-yardEnterpriseCard,
    .hhq-hiveCard,
    .hhq-yardDetailCard { padding: 16px; border-radius: var(--hhq-radius-md); }
    .hhq-cardHeaderRow { align-items: stretch; flex-direction: column; }
    .hhq-cardHeaderRow .hhq-yardSearch { width: 100%; min-width: 0; }
    .hhq-yardEnterpriseStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hhq-yardSummaryGrid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hhq-yardDetailActions { width: 100%; }
    .hhq-yardDetailActions .hhq-btn { flex: 1 1 calc(50% - 6px); }
    .hhq-yardEnterpriseFooter,
    .hhq-hiveFooter { align-items: stretch; }
    .hhq-yardActionGroup { width: 100%; }
    .hhq-yardActionGroup .hhq-btn { flex: 1; }
    .hhq-toolbar { align-items: stretch; }
    .hhq-toolbar > * { width: 100%; }
    .hhq-dialogBackdrop { align-items: end; padding: 0; }
    .hhq-dialog { max-height: 92dvh; border-radius: var(--hhq-radius-xl) var(--hhq-radius-xl) 0 0; }
    .hhq-formGrid,
    .hhq-metaGrid { grid-template-columns: 1fr; }
    .hhq-span2 { grid-column: auto; }
    .hhq-listRow { align-items: flex-start; flex-direction: column; }
    .hhq-listRow > .hhq-cardActions { width: 100%; }
    .hhq-listRow > .hhq-cardActions .hhq-btn { flex: 1; }
    .hhq-quickActionGrid { grid-template-columns: 1fr 1fr; }
    .hhq-cameraFrame { max-width: 100%; }
    .hhq-photoGallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hhq-yardMap { min-height: 440px; }
}

@media (max-width: 420px) {
    .hhq-kpiGrid,
    .hhq-yardSummaryGrid,
    .hhq-quickActionGrid { grid-template-columns: 1fr; }
    .hhq-yardEnterpriseStats { grid-template-columns: 1fr 1fr; }
    .hhq-photoGallery { grid-template-columns: 1fr; }
}

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

/* Final geometry rule: every interactive button in the authenticated portal is pill-shaped. */
.hhq-portalShell button,
.hhq-portalShell .e-btn,
.hhq-portalShell [role="button"].hhq-btn {
    border-radius: 9999px;
}

/* =========================================================
   Portal refinement pass - 2026 interaction polish
   ========================================================= */
.hhq-portalShell .hhq-btn,
.hhq-portalShell .hhq-hiveBackBtn,
.hhq-portalShell .hhq-hiveAddBtn,
.hhq-portalShell .hhq-iconButton,
.hhq-sync-dialog .e-btn {
    border-radius: 9999px !important;
}

.hhq-portalShell .hhq-btn > i,
.hhq-portalShell .hhq-hiveBackBtn > i,
.hhq-portalShell .hhq-hiveAddBtn > i,
.hhq-portalShell .hhq-iconButton > i,
.hhq-sync-dialog .e-btn i {
    width: 1em;
    flex: 0 0 1em;
    font-size: .92em;
    line-height: 1;
    text-align: center;
}

.hhq-portalShell .hhq-hiveBackBtn,
.hhq-portalShell .hhq-hiveAddBtn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 50% !important;
}

.hhq-portalShell .hhq-iconButton {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50% !important;
    font-size: 14px;
}

.hhq-alertAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    margin-left: 8px;
    padding: 4px 10px;
    border: 1px solid currentColor !important;
    border-radius: 9999px !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit;
    font-size: 12px;
    font-weight: 750 !important;
    text-decoration: none !important;
    cursor: pointer;
}

.hhq-alertAction:hover { background: rgba(255, 255, 255, .45) !important; }

.hhq-cardActions {
    align-items: center;
    gap: 8px;
}

.hhq-quickActionGrid .hhq-btn {
    min-height: 46px;
    justify-content: flex-start;
    padding-inline: 15px;
}

.hhq-taskGrid .hhq-parityCard {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.hhq-taskGrid .hhq-metaGrid { flex: 1 1 auto; }
.hhq-taskGrid .hhq-cardActions { margin-top: auto; padding-top: 4px; }

.hhq-settingsGrid > .hhq-parityCard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hhq-settingsGrid > .hhq-parityCard > h2,
.hhq-settingsGrid > .hhq-parityCard > p { margin-top: 0; }

.hhq-settingsGrid .hhq-stackedActions { margin-top: auto; }

.hhq-uploadCard input[type="file"] {
    width: 100%;
    min-height: var(--hhq-control);
    padding: 5px;
    border: 1px solid var(--hhq-border-strong);
    border-radius: var(--hhq-radius-sm);
    background: var(--hhq-surface);
    color: var(--hhq-text-muted);
    font: inherit;
    font-size: 13px;
}

.hhq-uploadCard input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 12px;
    border: 1px solid var(--hhq-border-strong);
    border-radius: 9999px;
    background: var(--hhq-surface-subtle);
    color: var(--hhq-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hhq-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hhq-rating legend {
    width: 100%;
    margin-bottom: 10px;
    color: var(--hhq-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.hhq-rating button {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--hhq-border-strong);
    border-radius: 50%;
    background: var(--hhq-surface);
    color: var(--hhq-text-muted);
    font-size: 17px;
    cursor: pointer;
    transition: border-color var(--hhq-ease), background var(--hhq-ease), color var(--hhq-ease), transform var(--hhq-ease);
}

.hhq-rating button:hover {
    border-color: #d6b452;
    background: var(--hhq-brand-50);
    color: #8d6507;
    transform: translateY(-1px);
}

.hhq-rating button.selected {
    border-color: #bc8c11;
    background: var(--hhq-brand-100);
    color: #705009;
    box-shadow: 0 0 0 3px var(--hhq-focus);
}

.hhq-completeIcon i { font-size: 22px; }

.hhq-inspectionActions .hhq-btn { min-width: 116px; }

.hhq-photoCard .hhq-btnDanger {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 12px;
}

.hhq-sync-dialog .e-btn {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-inline: 15px !important;
}

@media (max-width: 640px) {
    .hhq-parityHeader .hhq-cardActions,
    .hhq-cardTopline .hhq-cardActions { width: 100%; }

    .hhq-parityHeader .hhq-cardActions .hhq-btn,
    .hhq-cardTopline .hhq-cardActions .hhq-btn { flex: 1 1 auto; }

    .hhq-taskGrid .hhq-cardActions { width: 100%; }
    .hhq-taskGrid .hhq-cardActions .hhq-btn { flex: 1 1 auto; }
    .hhq-inspectionActions .hhq-btn { min-width: 0; }
}

/* =========================================================
   Yard map refinement - fixed map/list viewport
   ========================================================= */
.hhq-yardMapPage { --hhq-yard-map-height: clamp(560px, 68vh, 720px); }

.hhq-yardMapShell {
    align-items: start;
}

.hhq-yardMap {
    height: var(--hhq-yard-map-height);
    min-height: 0;
}

.hhq-yardMapPanel {
    height: var(--hhq-yard-map-height);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hhq-yardMapPanel > .hhq-cardTitle,
.hhq-yardMapPanel > .hhq-cardSub {
    flex: 0 0 auto;
}

.hhq-yardMapList {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 5px;
}

.hhq-yardMapList::-webkit-scrollbar { width: 6px; }
.hhq-yardMapList::-webkit-scrollbar-track { background: transparent; }
.hhq-yardMapList::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbd0d6; }
.hhq-yardMapList::-webkit-scrollbar-thumb:hover { background: #adb3bc; }

/* Yard rows are list records, not CTA buttons. Keep status indicators pill-shaped. */
.hhq-portalShell .hhq-yardMapItem {
    min-height: 64px;
    padding: 11px 12px;
    border-radius: 10px !important;
    background: var(--hhq-surface);
    box-shadow: none;
}

.hhq-portalShell .hhq-yardMapItem:hover,
.hhq-portalShell .hhq-yardMapItem:focus-visible {
    border-color: #d6b452;
    background: var(--hhq-brand-50);
}

.hhq-yardMapItem > div { min-width: 0; }
.hhq-yardMapItem strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hhq-yardMapItem > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hhq-yardMapItem .hhq-yardStatusPill { flex: 0 0 auto; }

@media (max-width: 1100px) {
    .hhq-yardMapPage { --hhq-yard-map-height: 520px; }
    .hhq-yardMapPanel { height: min(380px, 48vh); }
    .hhq-yardMapList { overflow-y: auto; }
    .hhq-portalShell .hhq-yardMapItem { min-height: 72px; border-radius: 10px !important; }
}

@media (max-width: 900px) {
    .hhq-yardMapPanel { height: min(360px, 46vh); }
    .hhq-portalShell .hhq-yardMapItem { min-height: 64px; }
}

/* =========================================================
   Production cleanup corrections - 2026-08-17
   Action controls stay pill-shaped; data/list records do not.
   ========================================================= */
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

/* Record rows are navigation surfaces, not CTA pills. */
.hhq-portalShell .hhq-listButton,
.hhq-portalShell .hhq-yardMapItem { border-radius: 10px !important; }

/* Dashboard: balance the shorter work column with quick actions. */
.hhq-dashboardColumns { align-items: start; }
.hhq-dashboardStack { display: grid; gap: 16px; min-width: 0; }
.hhq-dashboardStack .hhq-quickActionGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hhq-dashboardStack .hhq-quickActionGrid .hhq-btn { justify-content: flex-start; }

/* Settings: prevent direct actions from stretching across an entire card. */
.hhq-settingsGrid > .hhq-parityCard > .hhq-btn { align-self: flex-start; }
.hhq-settingsCardWide { grid-column: 1 / -1; }
.hhq-settingsSecurityActions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.hhq-settingsSecurityActions .hhq-btnDanger { margin-left: auto; }

/* QR management replaces browser camera scanning. */
.hhq-qrManagerCard { padding: 0; overflow: hidden; }
.hhq-qrManagerCard > .hhq-cardTopline { padding: 18px 20px; border-bottom: 1px solid var(--hhq-border); }
.hhq-qrSearch { position: relative; width: min(100%, 340px); margin: 0; }
.hhq-qrSearch > i { position: absolute; left: 13px; top: 50%; z-index: 1; color: var(--hhq-text-soft); transform: translateY(-50%); pointer-events: none; }
.hhq-qrSearch input { width: 100%; min-height: var(--hhq-control); padding: 9px 12px 9px 36px; border: 1px solid var(--hhq-border-strong); border-radius: 9999px; background: var(--hhq-surface); color: var(--hhq-text); font: inherit; font-size: 14px; outline: none; }
.hhq-qrSearch input:focus { border-color: #bc8c11; box-shadow: 0 0 0 3px var(--hhq-focus); }
.hhq-qrYardList { max-height: min(64vh, 680px); overflow-y: auto; overscroll-behavior: contain; }
.hhq-qrYardRow { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--hhq-border); background: var(--hhq-surface); }
.hhq-qrYardRow:last-child { border-bottom: 0; }
.hhq-qrYardRow:hover { background: var(--hhq-surface-subtle); }
.hhq-qrYardIdentity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.hhq-qrYardIdentity > div { min-width: 0; display: grid; gap: 3px; }
.hhq-qrYardIdentity strong { overflow: hidden; color: var(--hhq-text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.hhq-qrYardIdentity span { overflow: hidden; color: var(--hhq-text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hhq-qrYardIcon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; background: var(--hhq-brand-50); color: #8d6507; }

/* Printable QR label. */
.hhq-qrLabel { width: min(460px, 100%); padding: 26px; }
.hhq-qrLabelBrand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; text-align: left; }
.hhq-qrLabelMark { width: 34px; height: 34px; display: grid; place-items: center; clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%); background: var(--hhq-brand-400); color: var(--hhq-ink-950); font-weight: 900; }
.hhq-qrLabelBrand > div { display: grid; }
.hhq-qrLabelBrand strong { color: var(--hhq-text); font-size: 14px; }
.hhq-qrLabelBrand span { color: var(--hhq-text-muted); font-size: 11px; }
.hhq-qrLabelMeta { text-align: center; }
.hhq-qrLabelMeta h2 { margin: 0; font-size: 22px; }
.hhq-qrLabelMeta > span { display: inline-flex; margin-top: 6px; padding: 4px 10px; border: 1px solid var(--hhq-border); border-radius: 9999px; color: var(--hhq-text-muted); font-size: 12px; font-weight: 750; }
.hhq-qrLabelInstruction { max-width: 340px; margin: 0 auto 18px; color: var(--hhq-text-muted); font-size: 12px; line-height: 1.5; text-align: center; }

/* Yard directory: scalable data table instead of dozens of large cards. */
.hhq-yardDirectoryWrap { height: clamp(480px, 58vh, 720px); margin-top: 16px; overflow: auto; border: 1px solid var(--hhq-border); border-radius: var(--hhq-radius-lg); background: var(--hhq-surface); box-shadow: var(--hhq-shadow-xs); }
.hhq-yardDirectoryTable { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; color: var(--hhq-text); }
.hhq-yardDirectoryTable th { position: sticky; top: 0; z-index: 2; padding: 11px 14px; border-bottom: 1px solid var(--hhq-border); background: var(--hhq-surface-subtle); color: var(--hhq-text-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.hhq-yardDirectoryTable td { padding: 11px 14px; border-bottom: 1px solid var(--hhq-border); color: var(--hhq-text-muted); font-size: 13px; vertical-align: middle; }
.hhq-yardDirectoryTable tbody tr { cursor: pointer; transition: background var(--hhq-ease); }
.hhq-yardDirectoryTable tbody tr:hover { background: var(--hhq-brand-50); }
.hhq-yardDirectoryTable tbody tr:last-child td { border-bottom: 0; }
.hhq-yardDirectoryIdentity { min-width: 240px; display: grid; gap: 4px; }
.hhq-yardDirectoryIdentity strong { color: var(--hhq-text); font-size: 14px; }
.hhq-yardDirectoryIdentity > span { display: flex; align-items: center; gap: 8px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hhq-yardDirectoryCode { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 23px; padding: 0 7px; border: 1px solid var(--hhq-border); border-radius: 9999px; font-size: 10px; font-weight: 800; }
.hhq-yardDirectoryActions { display: flex; justify-content: flex-end; gap: 7px; }
.hhq-yardDirectoryActions .hhq-btn { min-height: 34px; padding-inline: 11px; font-size: 12px; }

/* Map panel: eliminate horizontal scrolling/clipped status pills. */
.hhq-yardMapShell { grid-template-columns: minmax(0, 1fr) 360px; }
.hhq-yardMapList { overflow-x: hidden; scrollbar-gutter: auto; }
.hhq-portalShell .hhq-yardMapItem { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; overflow: hidden; }

@media (max-width: 1100px) {
    .hhq-yardMapShell { grid-template-columns: 1fr; }
    .hhq-portalShell .hhq-yardMapItem { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (max-width: 700px) {
    .hhq-dashboardStack .hhq-quickActionGrid { grid-template-columns: 1fr; }
    .hhq-settingsCardWide { grid-column: auto; }
    .hhq-settingsSecurityActions { align-items: stretch; flex-direction: column; }
    .hhq-settingsSecurityActions .hhq-btnDanger { margin-left: 0; }
    .hhq-settingsSecurityActions .hhq-btn { width: 100%; }
    .hhq-qrManagerCard > .hhq-cardTopline { align-items: stretch; flex-direction: column; }
    .hhq-qrSearch { width: 100%; }
    .hhq-qrYardRow { align-items: flex-start; flex-direction: column; }
    .hhq-qrYardRow .hhq-btn { width: 100%; }
    .hhq-yardDirectoryWrap { height: min(62vh, 620px); border-radius: var(--hhq-radius-md); }
}

@media print {
    @page { size: auto; margin: .35in; }
    .hhq-portalSidebar,
    .hhq-portalMobileTop,
    .hhq-noPrint { display: none !important; }
    html, body, .hhq-portalShell, .hhq-portalMain, .hhq-portalMainInner { margin: 0 !important; padding: 0 !important; background: #fff !important; color: #111 !important; }
    .hhq-portalShell { display: block !important; min-height: 0 !important; }
    .hhq-qrPrintPage { display: block !important; width: auto !important; max-width: none !important; }
    .hhq-qrCard.hhq-qrLabel { width: 4in !important; max-width: 4in !important; margin: 0 auto !important; padding: .28in !important; border: 2px solid #111 !important; border-radius: .12in !important; box-shadow: none !important; background: #fff !important; color: #111 !important; }
    .hhq-qrLabelBrand strong,
    .hhq-qrLabelMeta h2 { color: #111 !important; }
    .hhq-qrLabelBrand span,
    .hhq-qrLabelInstruction { color: #444 !important; }
    .hhq-qrLabel img { width: 2.6in !important; margin: .18in auto !important; }
}

/* =========================================================
   Yard Map - enterprise tooltip and navigator refinement
   ========================================================= */
.hhq-yardMapShell { grid-template-columns:minmax(0,1fr) 360px; gap:16px; }

.hhq-yardMapPanel {
    padding:0;
    border-color:var(--hhq-border);
    border-radius:14px;
    background:var(--hhq-surface);
    box-shadow:var(--hhq-shadow-xs);
}

.hhq-yardMapPanel > .hhq-cardTitle {
    padding:16px 16px 0;
    color:var(--hhq-text);
    font-size:14px;
    font-weight:780;
    letter-spacing:-.01em;
}

.hhq-yardMapPanel > .hhq-cardSub {
    padding:3px 16px 14px;
    border-bottom:1px solid var(--hhq-border);
    color:var(--hhq-text-muted);
    font-size:12px;
}

.hhq-yardMapList {
    margin:0;
    padding:0;
    gap:0;
    scrollbar-gutter:stable;
}

.hhq-portalShell .hhq-yardMapItem {
    position: relative;
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--hhq-border);
    border-radius: 0 !important;
    background: transparent;
    color: var(--hhq-text);
    box-shadow: none;
    text-align: left;
}

.hhq-portalShell .hhq-yardMapItem:last-child { border-bottom:0; }

.hhq-portalShell .hhq-yardMapItem:hover,
.hhq-portalShell .hhq-yardMapItem:focus-visible {
    border-color:var(--hhq-border);
    background:#fffaf0;
    box-shadow:inset 3px 0 var(--hhq-brand-400);
}

.hhq-yardMapItem > div {
    min-width:0;
    display:grid;
    gap:4px;
}

.hhq-yardMapItem strong {
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
    overflow:hidden;
    color:var(--hhq-text);
    font-size:13px;
    font-weight:760;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.hhq-yardMapItem strong .hhq-colorDot {
    width:9px;
    height:9px;
    flex:0 0 9px;
    margin:0;
    border:0;
    box-shadow:0 0 0 3px rgba(17,18,20,.035);
}

.hhq-yardMapItem > div > span {
    margin:0;
    overflow:hidden;
    color:var(--hhq-text-muted);
    font-size:11px;
    font-weight:550;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.hhq-yardMapItem .hhq-yardStatusPill {
    min-height:26px;
    flex:0 0 auto;
    gap:6px;
    padding:4px 8px;
    border:1px solid var(--hhq-border);
    border-radius:999px;
    background:var(--hhq-surface-subtle);
    color:#555b65;
    font-size:11px;
    font-weight:700;
    line-height:1;
}

.hhq-yardMapItem .hhq-yardStatusDot {
    width:7px;
    height:7px;
    flex:0 0 7px;
}

.hhq-yardMapList::-webkit-scrollbar { width:8px; }
.hhq-yardMapList::-webkit-scrollbar-track { background:var(--hhq-surface-subtle); }
.hhq-yardMapList::-webkit-scrollbar-thumb { border:2px solid var(--hhq-surface-subtle); border-radius:999px; background:#b9bec7; }
.hhq-yardMapList::-webkit-scrollbar-thumb:hover { background:#969da8; }

/* Google Maps InfoWindow: compact SaaS-style information card. */
.hhq-yardMap .gm-style .gm-style-iw-c {
    min-width:230px !important;
    max-width:300px !important;
    padding:0 !important;
    overflow:visible !important;
    border:1px solid rgba(17,18,20,.12) !important;
    border-radius:12px !important;
    background:#fff !important;
    box-shadow:0 16px 40px rgba(17,18,20,.18),0 2px 8px rgba(17,18,20,.08) !important;
}

.hhq-yardMap .gm-style .gm-style-iw-d {
    max-height:none !important;
    overflow:hidden !important;
    padding:0 !important;
}

.hhq-yardMap .gm-style .gm-style-iw-d > div {
    min-width:0;
    padding:16px 42px 16px 16px !important;
    color:#626873 !important;
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
    font-size:12px !important;
    font-weight:520 !important;
    line-height:1.5 !important;
}

.hhq-yardMap .gm-style .gm-style-iw-d > div::first-line {
    color:#1b1d21 !important;
    font-size:14px !important;
    font-weight:780 !important;
    line-height:1.3 !important;
}

.hhq-yardMap .gm-style .gm-style-iw-chr {
    position:absolute !important;
    top:8px !important;
    right:8px !important;
    z-index:2 !important;
    height:30px !important;
}

.hhq-yardMap .gm-style .gm-ui-hover-effect {
    width:30px !important;
    height:30px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid #dfe2e6 !important;
    border-radius:50% !important;
    background:#f8f9fa !important;
    opacity:1 !important;
    transition:background var(--hhq-ease),border-color var(--hhq-ease),transform var(--hhq-ease) !important;
}

.hhq-yardMap .gm-style .gm-ui-hover-effect:hover {
    border-color:#cbd0d6 !important;
    background:#eff1f3 !important;
    transform:translateY(-1px);
}

.hhq-yardMap .gm-style .gm-ui-hover-effect > span {
    width:14px !important;
    height:14px !important;
    margin:0 !important;
    background-color:#626873 !important;
}

.hhq-yardMap .gm-style .gm-style-iw-tc::after {
    background:#fff !important;
    box-shadow:1px 1px 1px rgba(17,18,20,.08) !important;
}

@media (max-width:1100px) {
    .hhq-yardMapShell { grid-template-columns:1fr; }
    .hhq-yardMapPanel { border-radius:14px; }
}

.hhq-mapInfo {
    min-width: 220px;
    padding: 2px 0 0;
    font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.hhq-mapInfoTitle {
    margin: 0 0 6px;
    color: #1b1d21;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.hhq-mapInfoMeta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #626873;
    font-size: 12px;
    line-height: 1.4;
}

    .hhq-mapInfoMeta span + span::before {
        content: "•";
        margin-right: 8px;
        color: #a0a5ad;
    }

.hhq-mapInfoStatus {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #4f555e;
    font-size: 12px;
    font-weight: 650;
}

.hhq-mapInfoStatusDot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.hhq-mapInfoAction {
    min-height: 36px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #d6a41f;
    border-radius: 999px;
    background: #f6c344;
    color: #111214;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease,border-color 160ms ease,transform 160ms ease;
}

    .hhq-mapInfoAction:hover {
        border-color: #bd8c0d;
        background: #edb733;
        color: #111214;
        transform: translateY(-1px);
    }

    .hhq-mapInfoAction i {
        font-size: 11px;
    }

/* =========================================================
   Yard Map - final list layout
   ========================================================= */
.hhq-yardMapList {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.hhq-portalShell .hhq-yardMapItem {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    height: auto;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 16px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--hhq-border);
    border-radius: 0 !important;
    background: var(--hhq-surface);
    color: var(--hhq-text);
    box-shadow: none;
    text-align: left;
}

    .hhq-portalShell .hhq-yardMapItem:last-child {
        border-bottom: 0;
    }

    .hhq-portalShell .hhq-yardMapItem:hover,
    .hhq-portalShell .hhq-yardMapItem:focus-visible {
        background: var(--hhq-brand-50);
        box-shadow: inset 3px 0 var(--hhq-brand-400);
    }

.hhq-yardMapItem > div:first-child {
    min-width: 0;
    display: grid;
    gap: 4px;
    overflow: hidden;
}

.hhq-yardMapItem strong {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    color: var(--hhq-text);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hhq-yardMapItem > div:first-child > span {
    min-width: 0;
    overflow: hidden;
    color: var(--hhq-text-muted);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hhq-yardMapItem .hhq-colorDot {
    width: 9px;
    min-width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.hhq-portalShell .hhq-yardMapItem .hhq-yardStatusPill {
    width: auto;
    min-width: 68px;
    height: 28px;
    display: inline-flex !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid var(--hhq-border);
    border-radius: 999px;
    background: var(--hhq-surface-subtle);
    color: #555b65;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    justify-self: end;
}

.hhq-portalShell .hhq-yardMapItem .hhq-yardStatusDot {
    width: 7px;
    min-width: 7px;
    height: 7px;
    min-height: 7px;
    display: block;
    flex: 0 0 7px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
}
.hhq-sync-dialog input.hhq-dialogInput {
    width: 100%;
    min-height: var(--hhq-control);
    padding: 9px 12px;
    border: 1px solid var(--hhq-border-strong);
    border-radius: var(--hhq-radius-sm);
    background: var(--hhq-surface);
    color: var(--hhq-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    box-shadow: none;
}

    .hhq-sync-dialog input.hhq-dialogInput::placeholder {
        color: var(--hhq-text-soft);
    }

    .hhq-sync-dialog input.hhq-dialogInput:focus {
        border-color: #bc8c11;
        box-shadow: 0 0 0 3px var(--hhq-focus);
        outline: 0;
    }