/* ─────────────────────────────────────────────────────────────────────────
   lite.css — chrome + page styles for ZDIV2 Lite.

   Global (un-scoped) by intent — the .dh-lite-* class prefix prevents
   collisions with the desktop shell, and consolidating here avoids the
   Blazor CSS-isolation gotcha where ::deep on a layout's OWN elements
   leaves them un-styled.

   Linked from Components/App.razor alongside chrome.css + data-hub.css.
   ───────────────────────────────────────────────────────────────────────── */

/* ── LITE TOPBAR (rendered by LiteLayout.razor) ───────────────────────── */

.dh-lite-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--dh-navy2, #0D1E38);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.dh-lite-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.dh-lite-brand img {
    width: 28px;
    height: auto;
    /* Logo carries the brand — bumped 22 → 28px on phones to fit the
       header proportionally per Craig's request. */
}
.dh-lite-brand span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--dh-silver, #8AAED4);
    /* Silver-toned "Lite" — supporting label, not the headline. */
}

/* iOS/Material-style back button. Sits in the topbar slot the logo
   otherwise occupies on sub-pages. 44x44 tap area meets WCAG +
   Apple HIG minimums. Chevron is an inline SVG so it inherits color
   and doesn't need a font icon dependency. */
.dh-lite-back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin-left: -10px;  /* visual alignment with left edge content */
    flex-shrink: 0;
    transition: background .12s;
}
.dh-lite-back:hover,
.dh-lite-back:active { background: rgba(255, 255, 255, 0.10); }
.dh-lite-back svg { display: block; }

.dh-lite-title {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* When PageTitle is empty (landing page), an invisible flex spacer keeps
   the avatar pinned right. Same flex value as the real title. */
.dh-lite-title-spacer {
    flex: 1 1 auto;
}

.dh-lite-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dh-blue, #1565BE);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

/* ZED chip in the Lite topbar — lightning icon on a purple disc.
   Icon-only on phones to keep the bar uncluttered; the lightning is
   recognizable as ZED across both shells. */
.dh-lite-zed {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(123, 47, 190, 0.30);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
    border: 1px solid rgba(168, 85, 247, 0.50);
    transition: background .12s;
}
.dh-lite-zed:hover,
.dh-lite-zed:active {
    background: rgba(123, 47, 190, 0.55);
}

/* ── LITE MAIN CONTENT AREA ───────────────────────────────────────────── */

.dh-lite-main {
    margin-top: 44px;
    margin-bottom: 56px;  /* room for the shell-switch footer */
    padding: 1rem;
    max-width: 768px;     /* Lite is a workflow mode, not a wide-monitor mode */
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 44px - 56px);
    box-sizing: border-box;
}

/* ── LITE LANDING PAGE (rendered by Pages/Lite/Index.razor) ───────────── */

.dh-lite-page {
    color: var(--dh-text, #1a2535);
}

.dh-lite-hero {
    padding: 18px 2px 16px;
    margin-bottom: 8px;
}
.dh-lite-hello {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--dh-text, #1a2535);
}
.dh-lite-sub {
    font-size: 13px;
    color: var(--dh-text2, #4a6a8a);
    margin-top: 4px;
}
.dh-lite-sub strong {
    color: var(--dh-text, #1a2535);
    font-weight: 600;
}
.dh-lite-sub-link {
    color: var(--dh-blue, #1565BE);
    font-weight: 600;
}

.dh-lite-section {
    font-size: 11px;
    font-weight: 700;
    color: var(--dh-text2, #4a6a8a);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 22px 2px 10px;
}
/* The very first section after the hero gets less top margin —
   the hero already provides breathing room. */
.dh-lite-hero + .dh-lite-section { margin-top: 8px; }

.dh-lite-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dh-lite-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform .14s, border-color .14s, box-shadow .14s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}
.dh-lite-card:hover {
    border-color: var(--dh-blue, #1565BE);
    box-shadow: 0 2px 8px rgba(21, 101, 190, 0.08);
}
.dh-lite-card:active {
    transform: scale(0.98);
}
.dh-lite-card-icon {
    font-size: 28px;
    margin-bottom: 6px;
    line-height: 1;
}
.dh-lite-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dh-text, #1a2535);
}
.dh-lite-card-sub {
    font-size: 10.5px;
    color: var(--dh-text2, #4a6a8a);
    margin-top: 2px;
    line-height: 1.3;
}
.dh-lite-card .dh-nw-badge { margin-top: 8px; display: inline-block; }

/* "Desktop UI" chip — tells the user the tile will route them to a
   non-Lite-shell page. Honest UX > silent fallback. Same amber-ish
   palette as the "UI not wired" chip so they read as the same family
   of "caveat" indicators. Slightly different copy + tone separates
   "available but not optimized" from "doesn't work yet". */
.dh-lite-desktop-chip {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    color: var(--dh-text2, #4a6a8a);
    background: rgba(21, 101, 190, 0.08);
    border: 1px solid rgba(21, 101, 190, 0.18);
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 8px;
    letter-spacing: 0.02em;
}
.dh-lite-card:hover .dh-lite-desktop-chip {
    color: var(--dh-blue, #1565BE);
    border-color: rgba(21, 101, 190, 0.40);
}

.dh-lite-note {
    margin-top: 24px;
    padding: 12px 14px;
    background: rgba(21, 101, 190, 0.05);
    border: 1px solid rgba(21, 101, 190, 0.15);
    border-radius: 8px;
    font-size: 11px;
    color: var(--dh-text2, #4a6a8a);
    line-height: 1.5;
}

/* Wider tablets / desktop preview — switch to 3-col grid above 600px,
   4-col above 900px. Keeps everything scannable on iPad portrait
   (~768px → 3 cols) and tablet landscape (~1024px → 4 cols). */
@media (min-width: 600px) {
    .dh-lite-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .dh-lite-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── LITE FEATURE PLACEHOLDER (rendered by LiteFeaturePlaceholder.razor) ─
   Each /lite/<feature> page wraps this component. Big icon, name,
   one-line description, "in progress" chip, primary action to open
   the desktop version of the feature. Mobile-first vertical layout. */

.dh-lite-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px 24px;
    max-width: 440px;
    margin: 0 auto;
}

.dh-lite-feature-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 14px;
    /* Sit the emoji on a subtle disc so it has visual weight even
       against the page background. The disc reads as the feature's
       "container." */
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(21, 101, 190, 0.06);
    border: 1px solid rgba(21, 101, 190, 0.14);
}

.dh-lite-feature-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dh-text, #1a2535);
    margin: 4px 0 6px;
    line-height: 1.2;
}

.dh-lite-feature-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dh-text2, #4a6a8a);
    margin: 0 0 20px;
}

.dh-lite-feature-status {
    margin-bottom: 24px;
}
.dh-lite-feature-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(186, 117, 23, 0.10);
    color: #92400E;
    border: 1px solid rgba(186, 117, 23, 0.25);
    letter-spacing: 0.01em;
}

.dh-lite-feature-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--dh-blue, #1565BE);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(21, 101, 190, 0.20);
    transition: background .14s, transform .14s;
}
.dh-lite-feature-action:hover {
    background: #114F95;
    color: #fff;
}
.dh-lite-feature-action:active { transform: scale(0.98); }
.dh-lite-feature-action span {
    font-size: 18px;
    line-height: 1;
}

.dh-lite-feature-action-sub {
    margin-top: 12px;
    font-size: 11px;
    color: var(--dh-text2, #4a6a8a);
    line-height: 1.5;
    max-width: 320px;
}

.dh-lite-feature-extra {
    margin-top: 24px;
    width: 100%;
}

/* ── LITE LOGIN (rendered by Pages/Lite/LogIn.razor) ──────────────────── */

.dh-lite-login {
    /* Frosted-glass overlay — covers the entire Lite viewport so the
       topbar (logo + Sign-In title) shows through blurred. Same intent
       as /v9/log-in's .login-wrap. z-index 9990 must beat all the
       Lite chrome (the dh-lite-topbar uses z 99). AuthGate is 9995
       so it can still pop over this if it ever fires here. */
    position: fixed; inset: 0;
    z-index: 9990;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px 24px;
    overflow-y: auto;
}

.dh-lite-login-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 28px 22px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    margin-top: 8px;
}

.dh-lite-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}
.dh-lite-login-brand img {
    width: 70px;
    height: auto;
}
.dh-lite-login-tag {
    font-size: 13px;
    color: var(--dh-text2, #4a6a8a);
    font-weight: 500;
}

.dh-lite-login-field {
    display: block;
    margin-bottom: 16px;
}
.dh-lite-login-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--dh-text2, #4a6a8a);
    margin-bottom: 6px;
}
.dh-lite-login-input {
    display: block;
    width: 100%;
    padding: 12px 14px;        /* big touch target — 44px+ tall */
    font-size: 16px;            /* 16px+ stops iOS from zooming on focus */
    color: var(--dh-text, #1a2535);
    background: #fff;
    border: 1px solid #c5d9f1;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}
.dh-lite-login-input:focus {
    outline: none;
    border-color: var(--dh-blue, #1565BE);
    box-shadow: 0 0 0 3px rgba(21, 101, 190, 0.15);
}

.dh-lite-login-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dh-text2, #4a6a8a);
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
}
.dh-lite-login-check input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--dh-blue, #1565BE);
    cursor: pointer;
}

.dh-lite-login-error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.dh-lite-login-btn {
    display: block;
    width: 100%;
    padding: 14px;             /* 50px+ tall, easy thumb tap */
    background: var(--dh-blue, #1565BE);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.dh-lite-login-btn:hover { background: #114F95; }
.dh-lite-login-btn:disabled {
    background: #9DB7DF;
    cursor: progress;
}

.dh-lite-login-hint {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--dh-text2, #4a6a8a);
}
.dh-lite-login-hint a {
    color: var(--dh-blue, #1565BE);
    font-weight: 600;
    text-decoration: none;
}
.dh-lite-login-hint a:hover { text-decoration: underline; }

.dh-lite-login-loading {
    padding: 22px 0;
    text-align: center;
    color: var(--dh-text2, #4a6a8a);
    font-size: 13px;
}

.dh-lite-login-footer {
    margin-top: 18px;
    font-size: 11px;
    color: var(--dh-text2, #4a6a8a);
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   LITE ZED PAGE (rendered by Pages/Lite/Zed.razor at /lite/zed)
   Mobile-friendly take on the desktop ZedPanel. Same data, same accent
   color scheme per bucket (gold = OEM, coral = Stale).
   ───────────────────────────────────────────────────────────────────────── */

.dh-lite-zed {
    color: var(--dh-text, #1a2535);
    margin: -1rem -1rem 0;  /* full-bleed top edge against LiteLayout main padding */
}

.dh-lite-zed-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    background: var(--dh-zed-bg, #1a1030);
    color: #fff;
    border-bottom: 1px solid rgba(123, 47, 190, 0.35);
}
.dh-lite-zed-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--dh-zed-purple, #7B2FBE);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dh-lite-zed-titleblock { flex: 1; min-width: 0; }
.dh-lite-zed-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.dh-lite-zed-sub {
    font-size: 11px;
    color: rgba(230, 226, 243, 0.65);
    margin-top: 2px;
}
.dh-lite-zed-refresh {
    background: rgba(123, 47, 190, 0.30);
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.50);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.dh-lite-zed-refresh:hover { background: rgba(123, 47, 190, 0.50); }
.dh-lite-zed-refresh:disabled { opacity: 0.6; cursor: wait; }

.dh-lite-zed-empty {
    padding: 40px 24px 32px;
    text-align: center;
}
.dh-lite-zed-empty-icon {
    font-size: 38px;
    margin-bottom: 8px;
    opacity: 0.5;
}
.dh-lite-zed-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dh-text, #1a2535);
}
.dh-lite-zed-empty-sub {
    font-size: 12px;
    color: var(--dh-text2, #4a6a8a);
    margin-top: 6px;
    line-height: 1.5;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.dh-lite-zed-sec {
    padding: 14px 16px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dh-lite-zed-sec--oem   { border-left: 4px solid #FBBF24; padding-left: 12px; }
.dh-lite-zed-sec--stale { border-left: 4px solid #FB7185; padding-left: 12px; }

.dh-lite-zed-sec-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 10px;
    color: var(--dh-text, #1a2535);
}
.dh-lite-zed-sec--oem   .dh-lite-zed-sec-lbl { color: #B07415; }
.dh-lite-zed-sec--stale .dh-lite-zed-sec-lbl { color: #B53D55; }
.dh-lite-zed-count {
    font-weight: 500;
    color: var(--dh-text2, #4a6a8a);
    letter-spacing: 0.04em;
}

.dh-lite-zed-empty-bucket {
    font-size: 12px;
    color: var(--dh-text2, #4a6a8a);
    padding: 8px 0 14px;
    font-style: italic;
}

.dh-lite-zed-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color .14s, box-shadow .14s;
}
.dh-lite-zed-card.open {
    border-color: rgba(21, 101, 190, 0.40);
    box-shadow: 0 2px 8px rgba(21, 101, 190, 0.08);
}

.dh-lite-zed-card-head {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.dh-lite-zed-card-co { flex: 1; min-width: 0; }
.dh-lite-zed-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dh-text, #1a2535);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Phase-1 liveness chip on mobile — just the emoji indicator next to
   the company name. Tooltip carries the detail; emoji carries the
   color signal at a glance. */
.dh-lite-zed-liveness {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

/* "✓ sent" chip + greyed card state on a candidate that was just
   acted on. Mobile equivalent of .dh-zed-need--sent — same purpose,
   prevent double-sends from a confused tap. */
.dh-lite-zed-sent-chip {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
    margin-left: 6px;
    background: rgba(59, 109, 17, 0.12);
    color: #3B6D11;
    border: 1px solid rgba(59, 109, 17, 0.30);
    letter-spacing: 0.02em;
    vertical-align: middle;
}
.dh-lite-zed-card.sent {
    opacity: 0.50;
    filter: grayscale(50%);
}
.dh-lite-zed-card.sent .dh-lite-zed-act-primary {
    pointer-events: none;
    cursor: default;
}
.dh-lite-zed-card-meta {
    font-size: 11px;
    color: var(--dh-text2, #4a6a8a);
    margin-top: 2px;
}
.dh-lite-zed-card-chev {
    font-size: 22px;
    color: var(--dh-text2, #4a6a8a);
    width: 28px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.dh-lite-zed-card-body {
    padding: 4px 14px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(21, 101, 190, 0.02);
}

.dh-lite-zed-row {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 12px;
}
.dh-lite-zed-row:last-child { border-bottom: none; }
.dh-lite-zed-row-lbl {
    width: 80px;
    flex-shrink: 0;
    color: var(--dh-text2, #4a6a8a);
    font-weight: 600;
}
.dh-lite-zed-row-val {
    flex: 1;
    color: var(--dh-text, #1a2535);
    word-break: break-word;
}

.dh-lite-zed-email {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--dh-blue, #1565BE);
}
.dh-lite-zed-email.bad {
    color: #B53D55;
    text-decoration: line-through;
    text-decoration-color: rgba(181, 61, 85, 0.50);
}
.dh-lite-zed-bad-chip {
    display: inline-block;
    margin-left: 6px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(181, 61, 85, 0.10);
    color: #B53D55;
}

.dh-lite-zed-draft {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(21, 101, 190, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(21, 101, 190, 0.12);
}
.dh-lite-zed-draft-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dh-blue, #1565BE);
    margin-bottom: 4px;
}
.dh-lite-zed-draft-subj {
    font-size: 13px;
    font-weight: 600;
    color: var(--dh-text, #1a2535);
    margin-bottom: 6px;
}
.dh-lite-zed-draft-body {
    font-family: inherit;
    font-size: 12px;
    color: var(--dh-text2, #4a6a8a);
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
    border: 0;
    padding: 0;
}

.dh-lite-zed-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.dh-lite-zed-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
    color: var(--dh-text, #1a2535);
}
.dh-lite-zed-act-primary {
    background: var(--dh-blue, #1565BE);
    color: #fff;
    border-color: var(--dh-blue, #1565BE);
}
.dh-lite-zed-act:hover { filter: brightness(0.95); }
