/*
 * DWF Labs Core.
 * Copyright (c) 2026 Dive With Frank, LLC. All rights reserved.
 * Proprietary software. Unauthorized copying, modification, distribution,
 * or reuse is prohibited without written permission.
 */

.dwf-labs-core-shell {
    --dwf-bg: #062837;
    --dwf-panel: rgba(6, 42, 58, 0.92);
    --dwf-panel-strong: rgba(5, 31, 44, 0.98);
    --dwf-border: rgba(145, 224, 255, 0.24);
    --dwf-text: #f3fbff;
    --dwf-muted: #b8d7e5;
    --dwf-accent: #18d6c6;
    --dwf-accent-strong: #f8d35b;
    --dwf-link: #8cecff;
    --dwf-link-hover: #ffffff;
    --dwf-shadow: rgba(0, 0, 0, 0.34);
    --dwf-radius: 18px;
    --dwf-font-size: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--dwf-labs-tool-max-width, 1120px);
    margin: 0 auto 2rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    color: var(--dwf-text);
    background:
        radial-gradient(circle at top left, rgba(24, 214, 198, 0.18), transparent 32rem),
        linear-gradient(135deg, var(--dwf-bg), #03141d);
    border: 1px solid var(--dwf-border);
    border-radius: var(--dwf-radius);
    box-shadow: 0 18px 38px var(--dwf-shadow);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--dwf-font-size);
    line-height: 1.5;
}

.dwf-labs-core-shell,
.dwf-labs-core-shell * {
    box-sizing: border-box;
}

.dwf-labs-theme-deep_sea {
    --dwf-bg: #06131f;
    --dwf-panel: rgba(4, 18, 31, 0.94);
    --dwf-panel-strong: rgba(2, 10, 18, 0.98);
    --dwf-border: rgba(92, 164, 222, 0.28);
    --dwf-accent: #6cc7ff;
    --dwf-accent-strong: #91f0ff;
    --dwf-link: #91f0ff;
    --dwf-link-hover: #ffffff;
}

.dwf-labs-theme-high_contrast {
    --dwf-bg: #000;
    --dwf-panel: #000;
    --dwf-panel-strong: #000;
    --dwf-border: #fff;
    --dwf-text: #fff;
    --dwf-muted: #fff;
    --dwf-accent: #fff200;
    --dwf-accent-strong: #fff200;
    --dwf-link: #fff200;
    --dwf-link-hover: #ffffff;
    --dwf-shadow: rgba(0, 0, 0, 0.7);
    background: #000;
}

.dwf-labs-text-small {
    --dwf-font-size: 15px;
}

.dwf-labs-text-standard {
    --dwf-font-size: 16px;
}

.dwf-labs-text-large {
    --dwf-font-size: 18px;
}

.dwf-labs-decor {
    position: absolute;
    z-index: 0;
    width: 16rem;
    height: 16rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    opacity: 0.18;
    pointer-events: none;
}

.dwf-labs-decor-a {
    right: -5rem;
    top: -7rem;
}

.dwf-labs-decor-b {
    left: -7rem;
    bottom: -8rem;
    width: 12rem;
    height: 12rem;
}

.dwf-labs-bubble-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.dwf-labs-bubble-field span {
    position: absolute;
    bottom: -5rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0.5rem rgba(145, 240, 255, 0.16);
    animation: dwf-labs-bubble-rise 14s linear infinite;
}

.dwf-labs-bubble-field span:nth-child(1) { left: 8%; animation-duration: 13s; animation-delay: -2s; }
.dwf-labs-bubble-field span:nth-child(2) { left: 18%; width: 0.8rem; height: 0.8rem; animation-duration: 10s; animation-delay: -6s; }
.dwf-labs-bubble-field span:nth-child(3) { left: 32%; width: 1.7rem; height: 1.7rem; animation-duration: 17s; animation-delay: -9s; }
.dwf-labs-bubble-field span:nth-child(4) { left: 51%; width: 0.95rem; height: 0.95rem; animation-duration: 11s; animation-delay: -4s; }
.dwf-labs-bubble-field span:nth-child(5) { left: 66%; width: 2rem; height: 2rem; animation-duration: 18s; animation-delay: -12s; }
.dwf-labs-bubble-field span:nth-child(6) { left: 78%; width: 1.1rem; height: 1.1rem; animation-duration: 12s; animation-delay: -5s; }
.dwf-labs-bubble-field span:nth-child(7) { left: 88%; width: 0.72rem; height: 0.72rem; animation-duration: 9s; animation-delay: -1s; }
.dwf-labs-bubble-field span:nth-child(8) { left: 94%; width: 1.55rem; height: 1.55rem; animation-duration: 16s; animation-delay: -7s; }

@keyframes dwf-labs-bubble-rise {
    0% { transform: translate3d(0, 0, 0) scale(0.76); opacity: 0; }
    12% { opacity: 0.7; }
    86% { opacity: 0.38; }
    100% { transform: translate3d(0, -68rem, 0) scale(1.16); opacity: 0; }
}

.dwf-labs-bubbles-hide .dwf-labs-decor,
.dwf-labs-bubbles-hide .dwf-labs-bubble-field,
.dwf-labs-theme-high_contrast .dwf-labs-decor,
.dwf-labs-theme-high_contrast .dwf-labs-bubble-field {
    display: none;
}

.dwf-labs-hero,
.dwf-labs-tool-body,
.dwf-labs-footer {
    position: relative;
    z-index: 1;
}

.dwf-labs-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: clamp(1rem, 2vw, 1.3rem);
    background: var(--dwf-panel);
    border: 1px solid var(--dwf-border);
    border-radius: calc(var(--dwf-radius) - 4px);
}

.dwf-labs-hero-main {
    min-width: 0;
}

.dwf-labs-eyebrow {
    margin-bottom: 0.45rem;
    color: var(--dwf-accent-strong);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dwf-labs-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dwf-labs-tool-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--dwf-border);
    border-radius: 0.8rem;
    font-size: 1.25rem;
}

.dwf-labs-title {
    margin: 0;
    color: var(--dwf-text);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.dwf-labs-subtitle,
.dwf-labs-campaign-message {
    max-width: 62rem;
    margin: 0.7rem 0 0;
    color: var(--dwf-muted);
}

.dwf-labs-campaign-message {
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--dwf-accent-strong);
    border-radius: 0.65rem;
    color: var(--dwf-text);
    font-weight: 700;
}

.dwf-labs-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
}

.dwf-labs-hero-logo {
    display: block;
    max-width: 92px;
    max-height: 58px;
    object-fit: contain;
}

.dwf-labs-icon-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dwf-labs-icon-button,
.dwf-labs-segmented button,
.dwf-labs-modal-close {
    appearance: none;
    border: 1px solid var(--dwf-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--dwf-text);
    cursor: pointer;
    font: inherit;
}

.dwf-labs-icon-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-size: 0.92em;
    font-weight: 800;
}

.dwf-labs-icon-button:hover,
.dwf-labs-icon-button:focus-visible,
.dwf-labs-segmented button:hover,
.dwf-labs-segmented button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(24, 214, 198, 0.28);
}

.dwf-labs-tool-body {
    color: var(--dwf-text);
}

.dwf-labs-tool-body a {
    color: var(--dwf-link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.dwf-labs-tool-body a:hover,
.dwf-labs-tool-body a:focus-visible {
    color: var(--dwf-link-hover);
}

.dwf-labs-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    color: var(--dwf-muted);
    border-top: 1px solid var(--dwf-border);
    font-size: 0.9em;
}

.dwf-labs-footer a {
    color: var(--dwf-text);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.dwf-labs-footer-note::before {
    content: "•";
    margin: 0 0.35rem;
    opacity: 0.75;
}



/* v1.1.1: keep the shared hero from squeezing long tool titles inside narrow content columns. */
.dwf-labs-core-shell .dwf-labs-hero {
    flex-wrap: wrap;
}

.dwf-labs-core-shell .dwf-labs-hero-main {
    flex: 1 1 min(100%, 30rem);
    max-width: 100%;
}

.dwf-labs-core-shell .dwf-labs-title-row {
    align-items: flex-start;
}

.dwf-labs-core-shell .dwf-labs-title {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

.dwf-labs-core-shell .dwf-labs-hero-actions {
    flex: 1 1 18rem;
    justify-content: flex-end;
    min-width: min(100%, 18rem);
}

@media (max-width: 960px) {
    .dwf-labs-core-shell .dwf-labs-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dwf-labs-core-shell .dwf-labs-icon-cluster {
        justify-content: flex-start;
    }
}

.dwf-labs-modal[hidden] {
    display: none;
}

.dwf-labs-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.dwf-labs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.dwf-labs-modal-panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: var(--dwf-text);
    background: var(--dwf-panel-strong);
    border: 1px solid var(--dwf-border);
    border-radius: var(--dwf-radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.dwf-labs-modal-panel h3 {
    margin: 0 2rem 0.65rem 0;
    color: var(--dwf-text);
    font-size: 1.55em;
}

.dwf-labs-modal-panel p {
    color: var(--dwf-muted);
}

.dwf-labs-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
}

.dwf-labs-update-list {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.dwf-labs-update-list li {
    margin: 0.45rem 0;
}

.dwf-labs-setting-group {
    margin-top: 1.15rem;
}

.dwf-labs-setting-group h4 {
    margin: 0 0 0.5rem;
    color: var(--dwf-text);
}

.dwf-labs-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dwf-labs-segmented button {
    min-height: 2.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-weight: 800;
}

.dwf-labs-segmented button.is-active,
.dwf-labs-theme-high_contrast .dwf-labs-segmented button.is-active {
    background: var(--dwf-accent);
    color: #001219;
    border-color: var(--dwf-accent);
}

.dwf-labs-theme-high_contrast .dwf-labs-segmented button.is-active {
    color: #000;
}

@media (max-width: 760px) {
    .dwf-labs-hero {
        display: block;
    }

    .dwf-labs-hero-actions {
        align-items: flex-start;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .dwf-labs-icon-cluster {
        justify-content: flex-start;
    }

    .dwf-labs-icon-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dwf-labs-core-shell *,
    .dwf-labs-modal * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* DWF Labs Core v1.1 shared component layer. */
.dwf-labs-theme-deep,
.dwf-labs-theme-deep-sea {
    --dwf-bg: #06131f;
    --dwf-panel: rgba(4, 18, 31, 0.94);
    --dwf-panel-strong: rgba(2, 10, 18, 0.98);
    --dwf-border: rgba(92, 164, 222, 0.28);
    --dwf-accent: #6cc7ff;
    --dwf-accent-strong: #91f0ff;
    --dwf-link: #91f0ff;
    --dwf-link-hover: #ffffff;
}

.dwf-labs-theme-contrast,
.dwf-labs-theme-high-contrast {
    --dwf-bg: #000;
    --dwf-panel: #000;
    --dwf-panel-strong: #000;
    --dwf-border: #fff;
    --dwf-text: #fff;
    --dwf-muted: #fff;
    --dwf-accent: #fff200;
    --dwf-accent-strong: #fff200;
    --dwf-link: #fff200;
    --dwf-link-hover: #ffffff;
    --dwf-shadow: rgba(0, 0, 0, 0.7);
    background: #000;
}

.dwf-labs-theme-contrast .dwf-labs-decor,
.dwf-labs-theme-high-contrast .dwf-labs-decor {
    display: none;
}

.dwf-labs-card,
.dwf-labs-panel,
.dwf-labs-result-box,
.dwf-labs-empty-state,
.dwf-labs-status,
.dwf-labs-callout {
    color: var(--dwf-text);
    background: var(--dwf-panel);
    border: 1px solid var(--dwf-border);
    border-radius: calc(var(--dwf-radius) - 4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dwf-labs-card,
.dwf-labs-panel,
.dwf-labs-result-box,
.dwf-labs-empty-state,
.dwf-labs-status {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.dwf-labs-card > :first-child,
.dwf-labs-panel > :first-child,
.dwf-labs-result-box > :first-child,
.dwf-labs-empty-state > :first-child,
.dwf-labs-status > :first-child,
.dwf-labs-callout > :first-child {
    margin-top: 0;
}

.dwf-labs-card > :last-child,
.dwf-labs-panel > :last-child,
.dwf-labs-result-box > :last-child,
.dwf-labs-empty-state > :last-child,
.dwf-labs-status > :last-child,
.dwf-labs-callout > :last-child {
    margin-bottom: 0;
}

.dwf-labs-card-grid,
.dwf-labs-panel-grid,
.dwf-labs-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1rem;
}

.dwf-labs-callout {
    padding: 0.9rem 1rem;
    border-left: 5px solid var(--dwf-accent-strong);
}

.dwf-labs-callout--safety {
    border-left-color: var(--dwf-accent-strong);
    background: linear-gradient(135deg, rgba(248, 211, 91, 0.14), var(--dwf-panel));
}

.dwf-labs-callout--info {
    border-left-color: var(--dwf-accent);
}

.dwf-labs-button-row,
.dwf-labs-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.dwf-labs-button,
.dwf-labs-button--primary,
.dwf-labs-button--secondary,
.dwf-labs-button--ghost {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.6rem;
    padding: 0.65rem 1rem;
    color: var(--dwf-text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dwf-border);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
}

.dwf-labs-button--primary {
    color: #001219;
    background: var(--dwf-accent);
    border-color: var(--dwf-accent);
}

.dwf-labs-button--secondary {
    color: #001219;
    background: var(--dwf-accent-strong);
    border-color: var(--dwf-accent-strong);
}

.dwf-labs-button--ghost {
    background: transparent;
}

.dwf-labs-button:hover,
.dwf-labs-button:focus-visible,
.dwf-labs-button--primary:hover,
.dwf-labs-button--primary:focus-visible,
.dwf-labs-button--secondary:hover,
.dwf-labs-button--secondary:focus-visible,
.dwf-labs-button--ghost:hover,
.dwf-labs-button--ghost:focus-visible {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(24, 214, 198, 0.28);
    text-decoration: none;
}

.dwf-labs-field {
    display: grid;
    gap: 0.4rem;
}

.dwf-labs-field label,
label.dwf-labs-field {
    color: var(--dwf-text);
    font-weight: 800;
}

.dwf-labs-help-text,
.dwf-labs-muted {
    color: var(--dwf-muted);
}

.dwf-labs-field input[type="text"],
.dwf-labs-field input[type="email"],
.dwf-labs-field input[type="url"],
.dwf-labs-field input[type="number"],
.dwf-labs-field input[type="search"],
.dwf-labs-field input[type="date"],
.dwf-labs-field input[type="time"],
.dwf-labs-field select,
.dwf-labs-field textarea,
.dwf-labs-input,
.dwf-labs-select,
.dwf-labs-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 2.65rem;
    padding: 0.65rem 0.75rem;
    color: #071923;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 0.75rem;
    font: inherit;
}

.dwf-labs-field textarea,
.dwf-labs-textarea {
    min-height: 7rem;
    resize: vertical;
}

.dwf-labs-field input:focus,
.dwf-labs-field select:focus,
.dwf-labs-field textarea:focus,
.dwf-labs-input:focus,
.dwf-labs-select:focus,
.dwf-labs-textarea:focus {
    outline: 3px solid rgba(24, 214, 198, 0.36);
    outline-offset: 2px;
}

.dwf-labs-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dwf-labs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--dwf-border);
    border-radius: 999px;
    color: var(--dwf-text);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9em;
    font-weight: 800;
}

.dwf-labs-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;
}

.dwf-labs-print-only {
    display: none !important;
}

.dwf-labs-print-document {
    color: #111;
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

.dwf-labs-print-header {
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #111;
}

.dwf-labs-print-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 0.35rem;
}

.dwf-labs-print-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 92px;
    object-fit: contain;
}

.dwf-labs-print-logo--contrast-safe {
    filter: brightness(0);
}

.dwf-labs-print-brand {
    margin: 0 0 0.2rem;
    color: #111;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dwf-labs-print-heading h1 {
    margin: 0;
    color: #111;
    font-size: 1.65rem;
    line-height: 1.15;
}

.dwf-labs-print-subtitle,
.dwf-labs-print-generated {
    margin: 0.35rem 0 0;
    color: #333;
}

.dwf-labs-print-generated {
    font-size: 0.88rem;
}

.dwf-labs-print-footer {
    display: grid;
    gap: 0.2rem;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    color: #222;
    border-top: 1px solid #999;
    font-size: 0.9rem;
    text-align: center;
}

.dwf-labs-print-footer-brand {
    font-weight: 800;
}

.dwf-labs-print-footer-practice a {
    overflow-wrap: anywhere;
}

.dwf-labs-print-footer-note {
    color: #444;
    font-size: 0.92em;
}

@media print {
    .dwf-labs-no-print,
    .dwf-labs-core-shell .dwf-labs-hero-actions,
    .dwf-labs-core-shell .dwf-labs-decor,
    .dwf-labs-modal {
        display: none !important;
    }

    .dwf-labs-print-only {
        display: block !important;
    }

    .dwf-labs-core-shell {
        max-width: none;
        margin: 0;
        padding: 0;
        color: #111;
        background: #fff !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dwf-labs-hero,
    .dwf-labs-card,
    .dwf-labs-panel,
    .dwf-labs-result-box,
    .dwf-labs-empty-state,
    .dwf-labs-status,
    .dwf-labs-callout {
        color: #111;
        background: #fff !important;
        border-color: #999;
        box-shadow: none;
    }

    .dwf-labs-footer {
        color: #111;
    }
}


/* DWF Labs Core v1.1.4 shared shell refinements. */
.dwf-labs-core-shell .dwf-labs-hero {
    display: block;
}

.dwf-labs-core-shell .dwf-labs-hero-main {
    flex: none;
    max-width: 100%;
}

.dwf-labs-core-shell .dwf-labs-title-row {
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.65rem, 1.6vw, 1rem);
}

.dwf-labs-core-shell .dwf-labs-title {
    flex: 1 1 min(100%, 24rem);
}

.dwf-labs-core-shell .dwf-labs-hero-logo {
    flex: 0 0 auto;
    width: auto;
    height: clamp(44px, calc(var(--dwf-font-size) * 3.4), 76px);
    max-width: min(150px, 34vw);
    max-height: 76px;
    object-fit: contain;
}

.dwf-labs-core-shell .dwf-labs-hero-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin-top: clamp(1rem, 2vw, 1.35rem);
}

.dwf-labs-core-shell .dwf-labs-icon-cluster {
    justify-content: center;
}

.dwf-labs-footer-icon {
    line-height: 1;
}

.dwf-labs-print-document a,
.dwf-labs-print-body a {
    color: #064e64;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

@media (max-width: 760px) {
    .dwf-labs-core-shell .dwf-labs-title-row {
        align-items: flex-start;
    }

    .dwf-labs-core-shell .dwf-labs-hero-actions,
    .dwf-labs-core-shell .dwf-labs-icon-cluster {
        justify-content: flex-start;
    }
}

/* DWF Labs Core v1.1.5 hero action placement polish. */
.dwf-labs-core-shell .dwf-labs-hero-actions {
    justify-content: flex-end;
}

.dwf-labs-core-shell .dwf-labs-icon-cluster {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .dwf-labs-core-shell .dwf-labs-hero-actions,
    .dwf-labs-core-shell .dwf-labs-icon-cluster {
        justify-content: stretch;
    }

    .dwf-labs-core-shell .dwf-labs-icon-cluster {
        width: 100%;
    }

    .dwf-labs-core-shell .dwf-labs-icon-button {
        justify-content: center;
        width: 100%;
    }
}


/* DWF Labs Core shared floating print-section jump button. */
.dwf-labs-print-jump {
    --dwf-labs-print-jump-bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem);
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: var(--dwf-labs-print-jump-bottom);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--dwf-accent-strong, #f8d35b);
    border-radius: 999px;
    color: var(--dwf-text, #fff);
    background: var(--dwf-panel-strong, #06131f);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    line-height: 1;
}

.dwf-labs-print-jump:hover,
.dwf-labs-print-jump:focus-visible {
    transform: translateY(-1px);
    outline: 3px solid rgba(248, 211, 91, 0.38);
    outline-offset: 3px;
}

.dwf-labs-print-jump[hidden] {
    display: none !important;
}

.dwf-labs-print-jump-label {
    font-size: 0.82em;
}

.dwf-labs-theme-high_contrast .dwf-labs-print-jump {
    color: #000;
    background: #fff200;
    border-color: #fff;
    box-shadow: none;
}

@media (max-width: 640px) {
    .dwf-labs-print-jump {
        --dwf-labs-print-jump-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.75rem);
        right: 0.75rem;
        bottom: var(--dwf-labs-print-jump-bottom);
        padding: 0.72rem;
    }

    .dwf-labs-print-jump-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media print {
    .dwf-labs-print-jump {
        display: none !important;
    }
}

.dwf-labs-admin-note {
    position: relative;
    z-index: 2;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(248, 211, 91, 0.75);
    border-radius: 14px;
    background: rgba(248, 211, 91, 0.12);
    color: var(--dwf-text);
}

.dwf-labs-auth-panel {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem;
    background: var(--dwf-panel);
    border: 1px solid var(--dwf-border);
    border-radius: var(--dwf-radius);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.dwf-labs-auth-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(24, 214, 198, 0.14);
    font-size: 1.5rem;
}

.dwf-labs-auth-panel-copy h3 {
    margin: 0 0 0.45rem;
}

.dwf-labs-auth-panel-copy p {
    margin: 0.45rem 0;
}

.dwf-labs-auth-panel-copy .dwf-labs-auth-lead {
    margin-top: 0;
    font-weight: 800;
    font-size: 1.08em;
}

.dwf-labs-auth-panel-actions {
    margin-top: 0.9rem;
}

.dwf-labs-theme-high_contrast .dwf-labs-admin-note,
.dwf-labs-theme-high_contrast .dwf-labs-auth-panel {
    border-width: 2px;
}

@media (max-width: 640px) {
    .dwf-labs-auth-panel {
        grid-template-columns: 1fr;
    }
}


/* 1.2.1: lock branded auth issue colors against tool/theme CSS bleed-through. */
.dwf-labs-core-shell .dwf-labs-auth-panel,
.dwf-labs-core-shell .dwf-labs-auth-panel * {
    color: var(--dwf-text) !important;
}

.dwf-labs-core-shell .dwf-labs-auth-panel-copy h3 {
    color: var(--dwf-text) !important;
    opacity: 1 !important;
}

.dwf-labs-core-shell .dwf-labs-auth-panel-copy p {
    color: var(--dwf-text) !important;
}

.dwf-labs-core-shell .dwf-labs-auth-panel .dwf-labs-button {
    color: #d9fbff !important;
}

.dwf-labs-core-shell.dwf-labs-theme-high_contrast .dwf-labs-auth-panel,
.dwf-labs-core-shell.dwf-labs-theme-high_contrast .dwf-labs-auth-panel * {
    color: #fff !important;
}

.dwf-labs-core-shell.dwf-labs-theme-high_contrast .dwf-labs-auth-panel .dwf-labs-button {
    color: #000 !important;
    background: #fff200 !important;
    border-color: #fff !important;
}
