/* Styles scoped to public auth pages (sign_in, failure, rate_limited, access_denied) */

.auth-page {
    background: rgba(var(--lg-tertiary-bg-rgb), var(--lg-bg-opacity)) !important;
    min-height: 100vh;
}

/* Shared divider styling used across auth pages */
.page-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(101, 103, 105, 0.5);
    line-height: 0.1em;
}

.page-divider span {
    background: var(--lg-body-bg);
    padding: 0 10px;
}
/*
 * Candidate stage badges (RFP candidate cards)
 *
 * Semantic classes for the pill badge that communicates a candidate's stage.
 * Colors map to Bootstrap's theme subtle/emphasis variables so badges stay in
 * sync with the active theme. The Ruby helper (`candidate_stage_badge`) returns
 * the semantic class name; presentation — colors AND the leading stage icon —
 * lives here, not in the helper.
 *
 * Selectors are scoped with `.badge` so they out-specify Bootstrap's own
 * `.badge` rule (which is loaded AFTER application.css and otherwise forces the
 * label to white, making it invisible on the light subtle backgrounds).
 *
 * Icons are rendered via ::before using the Font Awesome 6 webfont glyphs.
 * Free ships calendar/clock at regular weight (400) but only a solid (900)
 * check, so each rule pins the weight that actually has the glyph.
 */

.badge.candidate-stage-badge--proposed {
    background-color: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
}

.badge.candidate-stage-badge--interview {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}

.badge.candidate-stage-badge--offer {
    background-color: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
}

.badge.candidate-stage-badge--hired {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
}

.badge.candidate-stage-badge--rejected {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
}

.badge.candidate-stage-badge--default {
    background-color: var(--bs-secondary-bg-subtle);
    color: var(--bs-secondary-text-emphasis);
}

/* Leading stage icons (Font Awesome 6 Free webfont). */
.badge.candidate-stage-badge--interview::before,
.badge.candidate-stage-badge--offer::before,
.badge.candidate-stage-badge--hired::before {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    margin-right: 0.25rem;
}

.badge.candidate-stage-badge--interview::before {
    content: "\f133"; /* calendar */
    font-weight: 400;
}

.badge.candidate-stage-badge--offer::before {
    content: "\f017"; /* clock */
    font-weight: 400;
}

.badge.candidate-stage-badge--hired::before {
    content: "\f00c"; /* check (solid-only in Free) */
    font-weight: 900;
}
@keyframes eval_run_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

.eval-run-progress {
    position: relative;
    padding-left: 14px;
    padding-right: 14px;
}

.eval-run-progress .progress {
    height: 4px !important;
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: #d1d5db;
}

.eval-run-progress .progress-bar {
    height: 4px !important;
    z-index: 2;
    background-color: var(--bs-primary);
}

.eval-run-steps {
    position: relative;
    height: 64px;
}

.eval-run-step-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.eval-run-step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 3px solid #ffffff;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eval-run-step-marker.completed {
    background-color: var(--bs-primary);
}

.eval-run-step-marker.active {
    background-color: var(--bs-primary);
    border-color: #dbeafe;
    animation: eval_run_pulse 2s infinite;
}

.eval-run-step-marker.failed {
    background-color: var(--bs-danger);
    border-color: #fee2e2;
    animation: none;
}

.eval-run-step-check {
    display: none;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.eval-run-step-marker.completed .eval-run-step-check {
    display: inline;
}

.eval-run-step-label {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.eval-run-step-label.active-text {
    font-weight: 700;
    color: #0f172a;
}

.eval-run-step-label.failed-text {
    font-weight: 700;
    color: var(--bs-danger);
}

/* My Firm dashboard (/firm/profile). Prefixed because application.css bundles
   this tree globally. */

/* Surface cards: one per thing the firm maintains. The figure is the state,
   the card is the way in. */
.firm-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 16px;
    background: var(--surface-card);
    border: var(--border-width) solid var(--gray-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow var(--dur-normal) var(--ease-standard),
                transform var(--dur-normal) var(--ease-standard);
}

.firm-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-primary);
    text-decoration: none;
}

.firm-tile__label {
    font-size: var(--text-2xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    color: var(--text-tertiary);
}

.firm-tile__value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: var(--fw-medium);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.firm-tile__value--muted { color: var(--text-disabled); }
.firm-tile__detail { font-size: var(--text-2xs); color: var(--text-tertiary); margin-top: auto; padding-top: 6px; }

/* A tile whose surface has no firm-side page yet: the figure, without the
   affordance of a link. */
.firm-tile--static:hover {
    box-shadow: none;
    transform: none;
}
.insights-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    z-index: 1035;
    background: #fff;
    border-left: 1px solid var(--bs-border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.25s ease, width 0.15s ease;
}

.insights-sidebar.collapsed {
    transform: translateX(100%);
}

.insights-sidebar-body {
    flex: 1;
    min-height: 0;
}

body.insights-panel-open .main-content {
    margin-right: var(--lex-sidebar-width, 380px);
    transition: margin-right 0.25s ease;
}

.insights-sidebar-resize-handle {
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 10;
}

.insights-sidebar-resize-handle::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.15s ease;
}

.insights-sidebar-resize-handle:hover::after,
body.lex-sidebar-resizing .insights-sidebar-resize-handle::after {
    background: var(--bs-primary);
}

body.lex-sidebar-resizing {
    cursor: col-resize !important;
    user-select: none;
}

body.lex-sidebar-resizing * {
    cursor: col-resize !important;
}

body.lex-sidebar-resizing .insights-sidebar {
    transition: none !important;
}

body.lex-sidebar-resizing .main-content {
    transition: none !important;
}

.chat-message-bubble {
    line-height: 1.7;
}

.chat-message-bubble p:last-child {
    margin-bottom: 0 !important;
}

.insight-card {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.insight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.lex-sidebar-input-area textarea:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.lex-sidebar-suggestions button:hover,
.lex-starter-prompt:hover {
    background-color: var(--bs-tertiary-bg) !important;
}

.lex-sidebar-suggestions button,
.lex-starter-prompt {
    justify-content: flex-start !important;
    text-align: left !important;
}

.lex-sidebar-ai-target h1,
.lex-sidebar-ai-target h2,
.lex-sidebar-ai-target h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lex-sidebar-ai-target p {
    margin-bottom: 0.5rem;
}

.lex-sidebar-ai-target ul,
.lex-sidebar-ai-target ol {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.chat-message-bubble--user {
    background: #eef2ff;
}

.chat-message-bubble--assistant {
    background: #f8faf8;
}

[data-bs-theme="dark"] .insights-sidebar {
    background: var(--bs-body-bg);
    border-left-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .insights-sidebar-header,
[data-bs-theme="dark"] .lex-sidebar-input-area {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .insights-sidebar-body,
[data-bs-theme="dark"] .chat-tab-content,
[data-bs-theme="dark"] .history-tab-content {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .chat-message-bubble {
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .chat-message-bubble--user {
    background: rgba(59, 130, 246, 0.18);
}

[data-bs-theme="dark"] .chat-message-bubble--assistant {
    background: #111827;
}

[data-bs-theme="dark"] .chat-message-bubble .text-dark,
[data-bs-theme="dark"] .lex-sidebar-ai-target {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .lex-sidebar-suggestions button,
[data-bs-theme="dark"] .lex-sidebar-options button,
[data-bs-theme="dark"] .lex-starter-prompt {
    background: #111827 !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .lex-sidebar-suggestions button:hover,
[data-bs-theme="dark"] .lex-sidebar-options button:hover,
[data-bs-theme="dark"] .lex-starter-prompt:hover {
    background: #172033 !important;
    border-color: #3b82f6 !important;
    color: var(--bs-emphasis-color) !important;
}

@media (max-width: 991.98px) {
    .insights-sidebar {
        width: 100% !important;
    }
    body.insights-panel-open .main-content {
        margin-right: 0;
    }
    .insights-sidebar-resize-handle {
        display: none;
    }
}
/* Practice-area picker (see practice_area_picker_controller.js).
   Its own display rules rather than Bootstrap's `d-inline-flex`, because that
   utility is `!important` and would beat the `hidden` attribute the filter
   sets — the options would stay visible while claiming to be hidden. */

.pa-option {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.pa-option[hidden] {
    display: none;
}

.pa-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

/* The label is the whole control in the list below, so it takes the pointer.
   The core checkbox beside it is state only — its star lives on the selected
   pill above, so it must never take a click here. */
.pa-option-select {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

/* An option's pill follows its checkbox: unchecked reads as available,
   checked as chosen. Driven by :checked rather than a server-rendered class, so
   removing a saved area's pill above un-greens it here too. */
.pa-option .pa-option-pill {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.pa-option input:checked + .pa-option-pill {
    background-color: var(--bs-success);
    color: #fff;
    border-color: var(--bs-success);
}

/* The pill is the whole control, so it takes the pointer and the focus ring. */
.pa-option input:focus-visible + .badge {
    outline: 2px solid var(--focus-ring, #0025DE);
    outline-offset: 2px;
}

.pa-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The star on a selected pill: inherits the pill's colour so it reads as part
   of it, and dims rather than disappears once the cap is reached. */
.pa-star {
    color: inherit;
    text-decoration: none;
}

.pa-star:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

.admin-upload-progress {
    position: relative;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
}

.admin-upload-progress .progress {
    height: 4px !important;
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: #d1d5db;
}

.admin-upload-progress .progress-bar {
    height: 4px !important;
    z-index: 2;
    background-color: var(--bs-primary);
}

.admin-upload-steps {
    position: relative;
    height: 64px;
}

.admin-upload-step-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.admin-upload-step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 3px solid #ffffff;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-upload-step-marker.completed {
    background-color: var(--bs-primary);
}

.admin-upload-step-marker.active {
    background-color: var(--bs-primary);
    border-color: #dbeafe;
    animation: pulse 2s infinite;
}

.admin-upload-step-check {
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.admin-upload-step-label {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.admin-upload-step-label.active-text {
    font-weight: 700;
    color: #0f172a;
}
/* Candidate avatar sizes (card uses --sm, modal uses --md). */
.candidate-avatar--sm {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.candidate-avatar--md {
    width: 48px;
    height: 48px;
    font-size: 17px;
}

/* Resume iframe in the candidate detail modal. */
.candidate-resume-iframe {
    width: 100%;
    height: 70vh;
    border: 0;
}

/*
 * Candidate name trigger reads as a link: clean at rest, underline on
 * hover/focus. Bootstrap's .text-decoration-none keeps the name un-underlined
 * at rest via !important; this rule uses !important too and, being more
 * specific among the !important declarations, wins on interaction — so the
 * underline surfaces only on hover/focus.
 */
.candidate-name-link:hover,
.candidate-name-link:focus-visible {
    text-decoration: underline !important;
}
/* ============================================================
    Product landing — the in-app empty state for a product surface
    (shared/_product_landing). Centered hero with a mock-UI visual,
    feature cards, how-it-works, logos, a closing CTA and an FAQ.
    Built on the DS v2 tokens in legalio_ds.css.
    ============================================================ */

.pl {
    --pl-surface: var(--white);
    --pl-band: var(--beige-01);
    --pl-frame: var(--beige-02);
    --pl-card: var(--white);
    --pl-line: var(--gray-3);
    --pl-text: var(--midnight-navy);
    --pl-muted: var(--gray-7);
    --pl-faint: var(--gray-6);
    --pl-accent: var(--cobalt-blue);
    --pl-accent-soft: var(--cobalt-050);
    --pl-inverse: var(--midnight-navy);

    background: var(--pl-surface);
    color: var(--pl-text);
    font-family: var(--font-body);
    padding-bottom: 64px;
}

[data-bs-theme="dark"] .pl {
    --pl-surface: #0d1117;
    --pl-band: #121821;
    --pl-frame: #1a2130;
    --pl-card: #161c26;
    --pl-line: #2a3342;
    --pl-text: #eef1f6;
    --pl-muted: #aab3c2;
    --pl-faint: #8590a2;
    --pl-accent: #7f9cff;
    --pl-accent-soft: rgba(127, 156, 255, 0.14);
    --pl-inverse: #1b2a6b;
}

.pl-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Hero ---- */
.pl-hero {
    text-align: center;
    padding: 56px 0 32px;
}

.pl-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
    font-size: var(--text-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
}

.pl-title {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: var(--tracking-display);
    color: var(--pl-text);
    margin: 16px auto 12px;
    max-width: 760px;
    text-wrap: balance;
}

.pl-sub {
    font-size: var(--text-md);
    line-height: var(--lh-normal);
    color: var(--pl-muted);
    max-width: 580px;
    margin: 0 auto 24px;
    text-wrap: pretty;
}

.pl-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

[data-bs-theme="dark"] .pl .ds-btn--secondary {
    background: transparent;
    color: var(--pl-text);
    border-color: var(--pl-line);
}

.pl-note {
    margin: 12px 0 0;
    font-size: var(--text-2xs);
    color: var(--pl-faint);
}

/* ---- Hero visual frame ---- */
.pl-visual {
    max-width: 880px;
    margin: 16px auto 0;
    padding: 28px;
    background: var(--pl-frame);
    border-radius: 20px;
}

/* ---- Sections ---- */
.pl-band {
    background: var(--pl-band);
    border-top: 1px solid var(--pl-line);
    border-bottom: 1px solid var(--pl-line);
}

.pl-section {
    padding-block: 56px;
}

.pl-section-head {
    text-align: center;
    margin-bottom: 32px;
}

.pl-eyebrow {
    display: block;
    font-size: var(--text-xs);
    color: var(--pl-faint);
    margin-bottom: 8px;
}

.pl-h2 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-display-sm);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--pl-text);
    margin: 0;
    text-wrap: balance;
}

.pl-cards {
    display: grid;
    grid-template-columns: repeat(min(var(--pl-card-count, 3), 3), minmax(0, 1fr));
    gap: 16px;
}

.pl-card {
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    border-radius: 16px;
    padding: 24px;
}

.pl-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
    font-size: 18px;
    margin-bottom: 16px;
}

.pl-card h3,
.pl-step h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-tight);
    color: var(--pl-text);
    margin: 0 0 6px;
}

.pl-card p,
.pl-step p {
    font-size: var(--text-xs);
    line-height: var(--lh-normal);
    color: var(--pl-muted);
    margin: 0;
}

/* ---- How it works ---- */
.pl-steps {
    display: grid;
    grid-template-columns: repeat(var(--pl-step-count, 3), minmax(0, 1fr));
    gap: 32px;
    counter-reset: pl-step;
}

.pl-step {
    border-top: 2px solid var(--pl-line);
    padding-top: 20px;
    counter-increment: pl-step;
}

.pl-step::before {
    content: counter(pl-step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--pl-accent);
    margin-bottom: 12px;
}

/* ---- Stats band ---- */
.pl-stats {
    background: var(--midnight-navy);
    color: var(--white);
}

.pl-stats .pl-h2 {
    color: var(--white);
}

.pl-stats .pl-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.pl-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pl-stat {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 24px;
}

.pl-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    letter-spacing: var(--tracking-display);
    margin-bottom: 12px;
}

.pl-stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Logos ---- */
.pl-logos {
    text-align: center;
    padding: 48px 0 8px;
}

.pl-logos p {
    font-size: var(--text-xs);
    color: var(--pl-faint);
    margin-bottom: 20px;
}

.pl-logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 48px;
}

.pl-logo-row img {
    height: 26px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.65;
}

[data-bs-theme="dark"] .pl-logo-row img {
    filter: grayscale(100%) invert(1);
    opacity: 0.55;
}

/* ---- Closing CTA ---- */
.pl-closing {
    margin-top: 48px;
    background: var(--pl-inverse);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    color: var(--white);
}

.pl-closing .pl-h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.pl-closing .pl-note {
    color: rgba(255, 255, 255, 0.65);
}

/* ---- FAQ ---- */
.pl-faq {
    max-width: 720px;
    margin: 56px auto 0;
}

.pl-faq .pl-h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: var(--text-xl);
}

.pl-faq details {
    border-bottom: 1px solid var(--pl-line);
}

.pl-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--pl-text);
}

.pl-faq summary::-webkit-details-marker {
    display: none;
}

.pl-faq summary::after {
    content: "+";
    font-size: var(--text-lg);
    color: var(--pl-faint);
    transition: transform var(--dur-fast, 150ms) ease;
}

.pl-faq details[open] summary::after {
    transform: rotate(45deg);
}

.pl-faq summary:focus-visible {
    outline: 2px solid var(--pl-accent);
    outline-offset: 2px;
}

.pl-faq details p {
    font-size: var(--text-xs);
    line-height: var(--lh-relaxed);
    color: var(--pl-muted);
    margin: 0 0 16px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .pl-steps {
        grid-template-columns: repeat(min(var(--pl-step-count, 3), 2), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pl-hero {
        padding: 36px 0 24px;
    }

    .pl-title {
        font-size: 34px;
    }

    .pl-h2 {
        font-size: 28px;
    }

    .pl-ctas .ds-btn {
        flex: 1 1 100%;
    }

    .pl-cards,
    .pl-steps,
    .pl-stat-grid {
        grid-template-columns: 1fr;
    }

    .pl-steps {
        gap: 24px;
    }

    .pl-section {
        padding-block: 40px;
    }

    .pl-closing {
        padding: 36px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-faq summary::after {
        transition: none;
    }
}

/* ============================================================
    Layout variants — each landing composes its own structure
    ============================================================ */

.pl-hero--start {
    text-align: left;
    padding-bottom: 8px;
}

.pl-hero--start .pl-title,
.pl-hero--start .pl-sub {
    margin-left: 0;
}

.pl-hero--start .pl-ctas {
    justify-content: flex-start;
}

.pl-hero--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    text-align: left;
}

.pl-hero--split .pl-title,
.pl-hero--split .pl-sub {
    margin-left: 0;
}

.pl-hero--split .pl-ctas {
    justify-content: flex-start;
}

.pl-hero--split .pl-visual {
    margin: 0;
    padding: 24px;
    border-radius: 20px;
}

.pl-wide-visual {
    margin-top: 32px;
    padding: 24px;
    background: var(--pl-frame);
    border-radius: 20px;
}

a.pl-card--link {
    text-decoration: none;
    transition: border-color var(--dur-fast, 150ms) ease, transform var(--dur-fast, 150ms) ease;
}

a.pl-card--link:hover {
    border-color: var(--pl-accent);
    transform: translateY(-2px);
}

.pl-section--tight {
    padding-block: 32px;
}

.pl-h2--sm {
    font-size: var(--text-xl);
}

.pl-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pl-chip {
    padding: 8px 16px;
    border: 1px solid var(--pl-line);
    border-radius: var(--radius-pill);
    background: var(--pl-card);
    font-size: var(--text-xs);
    color: var(--pl-text);
}

/* Hero video (a product walkthrough recording) */
.pl-video {
    position: relative;
    max-width: 960px;
    margin: 16px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: var(--midnight-navy);
    box-shadow: 0 30px 60px rgba(5, 9, 17, 0.18);
}

.pl-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-video-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--midnight-navy);
    display: grid;
    place-items: center;
    font-size: 12px;
    cursor: pointer;
}

.pl-video-toggle:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Journey: alternating copy + animated screen rows */
.pl-journey {
    display: grid;
    gap: 72px;
}

.pl-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
}

.pl-row--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.pl-row--flip .pl-row-copy {
    order: 2;
}

.pl-row-stage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--pl-accent);
    margin-bottom: 12px;
}

.pl-row-stage b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pl-accent-soft);
    font-size: 11px;
}

.pl-row-copy h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 30px;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--pl-text);
    margin: 0 0 12px;
}

.pl-row-copy p {
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
    color: var(--pl-muted);
    margin: 0 0 16px;
}

.pl-row-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.pl-row-copy li {
    display: flex;
    gap: 10px;
    font-size: var(--text-xs);
    color: var(--pl-text);
}

.pl-row-copy li i {
    color: var(--pl-accent);
    margin-top: 3px;
}

.pl-stage-frame {
    background: var(--pl-frame);
    border-radius: 20px;
    padding: 28px;
}

/* Dark band (benchmark insight) */
.pl-dark {
    background: var(--midnight-navy);
    color: var(--white);
}

[data-bs-theme="dark"] .pl-dark,
[data-bs-theme="dark"] .pl-stats {
    background: #141c2e;
}

.pl-dark .pl-h2 {
    color: var(--white);
}

.pl-dark .pl-eyebrow,
.pl-dark .pl-row-copy p {
    color: rgba(255, 255, 255, 0.7);
}

.pl-dark .pl-row-copy h3,
.pl-dark .pl-row-copy li {
    color: var(--white);
}

.pl-dark .pl-row-stage {
    color: var(--light-blue);
}

.pl-dark .pl-row-stage b {
    background: rgba(133, 169, 227, 0.16);
}

/* ============================================================
    Facsimiles — static replicas of real screens, sample data
    ============================================================ */

.fx {
    position: relative;
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(5, 9, 17, 0.08);
    padding: 20px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--pl-text);
    pointer-events: none;
    user-select: none;
}

.fx + .fx {
    margin-top: 12px;
}

.fx-eyebrow {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--pl-accent);
    margin-bottom: 4px;
}

.fx-title {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 20px;
    letter-spacing: var(--tracking-tight);
    color: var(--pl-text);
    margin-bottom: 4px;
}

.fx-muted {
    color: var(--pl-muted);
}

.fx-meta {
    display: block;
    font-size: 11px;
    color: var(--pl-faint);
}

.fx-meta--strong {
    font-size: 12px;
    color: var(--pl-muted);
}

.fx-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.fx-input {
    border: 2px solid var(--pl-accent);
    border-radius: 12px;
    padding: 12px;
    min-height: 86px;
    color: var(--pl-text);
    line-height: var(--lh-normal);
    margin: 12px 0 0;
}

.fx-input-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--pl-line);
    font-size: 12px;
    color: var(--pl-text);
    white-space: nowrap;
}

.fx-btn--primary {
    background: var(--cobalt-blue);
    border-color: var(--cobalt-blue);
    color: var(--white);
}

.fx-spacer {
    flex: 1;
}

.fx-lex {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--fw-semibold);
    font-size: 12px;
    margin-bottom: 6px;
}

.fx-lex i {
    color: var(--pl-accent);
}

.fx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.fx-chip {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--pl-frame);
    font-size: 11px;
    color: var(--pl-muted);
}

.fx-chip b {
    color: var(--pl-text);
    font-weight: var(--fw-semibold);
    margin-left: 4px;
}

.fx-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    background: var(--pl-frame);
    color: var(--pl-muted);
    white-space: nowrap;
}

.fx-badge--ok {
    background: #E4F3EA;
    color: #1E7A47;
}

.fx-badge--accent {
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
}

.fx-badge--warn {
    background: #FBEFD6;
    color: #8A5A12;
}

[data-bs-theme="dark"] .fx-badge--ok {
    background: rgba(46, 160, 94, 0.16);
    color: #7fd6a1;
}

[data-bs-theme="dark"] .fx-badge--warn {
    background: rgba(214, 158, 46, 0.16);
    color: #f0c674;
}

/* Grid table (Compare Proposals, firms table) */
.fx-table {
    display: grid;
    font-size: 12px;
}

.fx-tr {
    display: grid;
    grid-template-columns: var(--fx-cols);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--pl-line);
}

.fx-tr--head {
    border-top: 0;
    padding-top: 0;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--pl-faint);
}

.fx-strong {
    font-weight: var(--fw-semibold);
    color: var(--pl-text);
}

.fx-link {
    font-weight: var(--fw-semibold);
    color: var(--pl-accent);
}

.fx-right {
    text-align: right;
}

.fx-good {
    color: #1E7A47;
    font-weight: var(--fw-semibold);
}

.fx-bad {
    color: #B42318;
    font-weight: var(--fw-semibold);
}

[data-bs-theme="dark"] .fx-good { color: #7fd6a1; }
[data-bs-theme="dark"] .fx-bad { color: #f19a8f; }

.fx-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e0f2fe;
    color: #1d4ed8;
    font-weight: var(--fw-bold);
    font-size: 11px;
}

.fx-avatar--round {
    border-radius: 50%;
    width: 38px;
    height: 38px;
}

.fx-who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Contacts (Select Vendors & Send) */
.fx-firms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fx-firm {
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 10px;
}

.fx-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0 0;
    font-size: 12px;
}

.fx-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--pl-line);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 8px;
    color: transparent;
    flex: 0 0 auto;
}

.fx-toast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: #1E7A47;
    color: var(--white);
    font-weight: var(--fw-semibold);
    font-size: 12px;
}

/* Stepper (RFP show page) */
.fx-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 4px 0 16px;
    font-size: 11px;
    color: var(--pl-faint);
}

.fx-step {
    position: relative;
    padding-top: 16px;
}

.fx-step::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pl-line);
}

.fx-step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pl-line);
}

.fx-step.is-done::before,
.fx-step.is-done::after,
.fx-step.is-current::after {
    background: var(--cobalt-blue);
}

.fx-step.is-current {
    color: var(--pl-text);
    font-weight: var(--fw-semibold);
}

/* Firm progress track */
.fx-track {
    display: grid;
    grid-template-columns: 130px 1fr 86px;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid var(--pl-line);
    font-size: 12px;
}

.fx-bar {
    position: relative;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--pl-frame);
    overflow: hidden;
}

.fx-bar > i {
    position: absolute;
    inset: 0;
    width: var(--w);
    border-radius: inherit;
    background: var(--cobalt-blue);
    transform-origin: left center;
}

.fx-callout {
    margin: 12px 0 0 auto;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    box-shadow: 0 12px 30px rgba(5, 9, 17, 0.14);
    font-size: 11px;
}

/* Award banner */
.fx-award {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fx-award-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #E4F3EA;
    color: #1E7A47;
    flex: 0 0 auto;
}

.fx-ticks {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 4px;
    font-size: 11px;
    color: var(--pl-muted);
}

.fx-ticks i {
    color: #1E7A47;
    margin-right: 6px;
}

/* KPI cards (benchmark) */
.fx-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.fx-kpi {
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 12px;
    font-size: 11px;
    color: var(--pl-muted);
}

.fx-kpi-value {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--pl-text);
    letter-spacing: var(--tracking-tight);
    margin: 4px 0 2px;
}

.fx-insight {
    border-left: 3px solid var(--cobalt-blue);
    padding: 4px 0 4px 12px;
    line-height: var(--lh-relaxed);
    min-height: 88px;
}

/* Candidate card (My Jobs) */
.fx-candidates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fx-candidate {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 14px;
    background: var(--pl-card);
}

.fx-candidate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.fx-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid var(--pl-line);
    padding-top: 12px;
}

.fx-fact {
    font-size: 12px;
    font-weight: var(--fw-semibold);
}

.fx-fact span {
    display: block;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--pl-faint);
}

/* Anchored to the bottom of the card behind a divider, so side-by-side cards
   of different heights line their buttons up. */
.fx-candidate-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pl-line);
}

.fx-candidate-actions .fx-btn {
    flex: 1;
    justify-content: center;
}

.fx-facts {
    margin-bottom: 12px;
}

.fx-skeleton {
    border: 1px dashed var(--pl-line);
    border-radius: 10px;
    padding: 14px;
    display: grid;
    gap: 8px;
    align-content: center;
    color: var(--pl-faint);
    font-size: 12px;
}

.fx-shimmer {
    height: 8px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--pl-frame) 0%, var(--pl-line) 50%, var(--pl-frame) 100%);
    background-size: 200% 100%;
}

/* Form tiles (BYOT request form) */
.fx-label {
    font-family: var(--font-display);
    font-size: 15px;
    margin: 14px 0 8px;
}

.fx-label:first-of-type {
    margin-top: 0;
}

.fx-label em {
    color: #B42318;
    font-style: normal;
}

.fx-field {
    border: 1px solid var(--pl-line);
    border-radius: 8px;
    padding: 9px 12px;
    min-height: 38px;
    color: var(--pl-text);
}

.fx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.fx-pills span {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
    font-size: 11px;
}

.fx-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fx-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: var(--fw-semibold);
}

.fx-tile i {
    color: var(--pl-accent);
    font-size: 16px;
}

.fx-tile small {
    display: block;
    font-weight: var(--fw-regular);
    color: var(--pl-faint);
    font-size: 10px;
}

.fx-caret::after {
    content: "";
    display: inline-block;
    width: 1.5px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--pl-accent);
    animation: fx-blink 1s steps(1) infinite;
}

/* ============================================================
    Scene motion — `.pl-motion-ready` (JS running) sets the
    starting states; `.is-playing` runs them with per-element
    delays (--d). `.is-static` is the reduced-motion end state.
    ============================================================ */

.pl-motion-ready .pl-scene:not(.is-playing) .fx-in {
    opacity: 0;
}

.pl-scene.is-playing .fx-in {
    animation: fx-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both;
}

.pl-scene.is-playing .fx-bar > i {
    animation: fx-grow 1s cubic-bezier(0.3, 0.7, 0.2, 1) var(--d, 0s) both;
}

.pl-scene.is-playing .fx-pick {
    animation: fx-pick 0.3s ease var(--d, 0s) both;
}

.pl-scene.is-playing .fx-tick-on .fx-box {
    animation: fx-tick 0.3s ease var(--d, 0s) both;
}

.pl-scene.is-playing .fx-shimmer {
    animation: fx-shimmer 1.4s linear infinite;
}

.pl-scene.is-playing .fx-pulse {
    animation: fx-pulse 1.8s ease-in-out var(--d, 0s) 2;
}

.pl-scene.is-static *,
.pl-scene.is-static *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
}

@keyframes fx-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fx-grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes fx-pick {
    from {
        background: transparent;
        border-color: var(--pl-line);
    }

    to {
        background: var(--pl-accent-soft);
        border-color: var(--pl-accent);
    }
}

@keyframes fx-tick {
    from {
        background: transparent;
        border-color: var(--pl-line);
        color: transparent;
    }

    to {
        background: var(--cobalt-blue);
        border-color: var(--cobalt-blue);
        color: var(--white);
    }
}

@keyframes fx-shimmer {
    to {
        background-position: -200% 0;
    }
}

@keyframes fx-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 37, 222, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 37, 222, 0.12);
    }
}

@keyframes fx-blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .pl-hero--split,
    .pl-row,
    .pl-row--flip {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .pl-row--flip .pl-row-copy {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .pl-hero--split .pl-visual,
    .pl-stage-frame,
    .pl-wide-visual {
        padding: 14px;
    }

    .pl-journey {
        gap: 48px;
    }

    .pl-row-copy h3 {
        font-size: 24px;
    }

    .fx {
        padding: 14px;
    }

    .fx-firms,
    .fx-candidates,
    .fx-tiles {
        grid-template-columns: 1fr;
    }

    .fx-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .fx-kpis > :nth-child(3) {
        display: none;
    }

    .fx-tr {
        grid-template-columns: var(--fx-cols-sm, var(--fx-cols));
    }

    .fx-tr > .fx-hide-sm {
        display: none;
    }

    .fx-track {
        grid-template-columns: 100px 1fr 72px;
    }

    .fx-callout {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-caret::after {
        animation: none;
    }
}
/* Custom styles migrated from shared/_custom_css.html.slim */

:root {
    --lg-tertiary-bg: #faf9f7;
    --lg-tertiary-bg-rgb: 250, 249, 247;
    --lg-secondary-bg: #f1f2ed;
    --lg-secondary-bg-rgb: 241, 242, 237;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0b1020;
    --bs-body-bg-rgb: 11, 16, 32;
    --bs-body-color: #e5e7eb;
    --bs-body-color-rgb: 229, 231, 235;
    --bs-emphasis-color: #f8fafc;
    --bs-emphasis-color-rgb: 248, 250, 252;
    --bs-secondary-bg: #111827;
    --bs-secondary-bg-rgb: 17, 24, 39;
    --bs-tertiary-bg: #0f172a;
    --bs-tertiary-bg-rgb: 15, 23, 42;
    --bs-border-color: #263244;
    --bs-border-color-translucent: rgba(148, 163, 184, 0.18);
    --bs-card-bg: #111827;
    --bs-card-border-color: #263244;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] main,
[data-bs-theme="dark"] .main-content {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .bg-body {
    background-color: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .bg-body-secondary {
    background-color: var(--bs-secondary-bg) !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: var(--bs-tertiary-bg) !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .list-group-item {
    background-color: #111827;
    border-color: #263244;
}

[data-bs-theme="dark"] .navbar,
[data-bs-theme="dark"] .sidebar-wrapper {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-secondary-bg) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: var(--bs-emphasis-color) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

[data-bs-theme="dark"] .navbar-actions .btn-light,
[data-bs-theme="dark"] .navbar-mobile-actions .btn-light.mobile-action-button {
    background-color: transparent !important;
    border-color: rgba(248, 250, 252, 0.35) !important;
    color: var(--bs-emphasis-color) !important;
}

[data-bs-theme="dark"] .navbar-actions .btn-light:hover,
[data-bs-theme="dark"] .navbar-mobile-actions .btn-light.mobile-action-button:hover {
    background-color: rgba(248, 250, 252, 0.08) !important;
    border-color: rgba(248, 250, 252, 0.55) !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: #111827;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: #141d2f;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.1);
    --bs-table-hover-color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    border-bottom-color: var(--bs-table-border-color);
    color: var(--bs-table-color);
}

[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table .bg-body-tertiary {
    background-color: #172033 !important;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: var(--bs-table-hover-bg);
}

[data-bs-theme="dark"] .table tbody tr:hover > * {
    background-color: var(--bs-table-hover-bg);
}

.rfp-progress-container {
    /* Half a marker (10px) plus breathing room, so endpoint markers and their
       centered labels never clip the container. Steps and the track both
       derive their geometry from this one value. */
    --rfp-track-inset: 12px;
    position: relative;
    height: 56px;
}

.rfp-progress-container .progress {
    height: 4px !important;
    position: absolute;
    top: 9px;
    left: var(--rfp-track-inset);
    right: var(--rfp-track-inset);
    z-index: 1;
    background-color: #e9ecef;
}

/* One step (marker + label), centered on its track fraction — the same
   fraction the fill width uses, keeping bar and markers aligned. */
.rfp-step-abs {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.rfp-step-abs .rfp-step-label {
    white-space: nowrap;
}

/* Edge steps anchor flush to the track ends instead of centering, so their
   nowrap labels can't overflow the container at narrow widths. The half-marker
   negative margin keeps the marker itself centered on the track joint. */
.rfp-step-abs-first {
    transform: none;
    text-align: left;
}

.rfp-step-abs-first .rfp-step-marker {
    margin-left: -10px;
}

.rfp-step-abs-last {
    transform: translateX(-100%);
    text-align: right;
}

.rfp-step-abs-last .rfp-step-marker {
    margin-right: -10px;
}

/* On the narrowest phones the nowrap labels can still collide (worst case:
   the vendor stepper's six stages); shrink them just enough to keep clear. */
@media (max-width: 400px) {
    .rfp-step-abs .rfp-step-label {
        font-size: 10px !important;
        letter-spacing: -0.01em;
    }
}

.rfp-progress-container .progress-bar {
    height: 4px !important;
    z-index: 2;
    background-color: var(--bs-primary);
}

.rfp-step-wrapper {
    flex: 1;
    z-index: 3;
    position: relative;
}

.rfp-step-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #adb5bd;
    border: 3px solid #ffffff;
    margin: 0 auto;
    position: relative;
}

.rfp-step-marker.completed,
.rfp-step-marker.active {
    background-color: var(--bs-primary);
}

.rfp-step-marker.active {
    animation: rfp-progress-pulse 2s infinite;
}

.rfp-step-label {
    color: #6c757d;
    white-space: nowrap;
}

.rfp-step-label.active-text {
    font-weight: 700;
    color: #000000;
}

@keyframes rfp-progress-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

[data-bs-theme="dark"] .rfp-progress-container .progress {
    background-color: #263244 !important;
}

[data-bs-theme="dark"] .rfp-progress-container .progress-bar {
    background-color: #60a5fa !important;
}

[data-bs-theme="dark"] .rfp-step-marker {
    background-color: #475569 !important;
    border-color: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .rfp-step-marker.completed,
[data-bs-theme="dark"] .rfp-step-marker.active {
    background-color: #60a5fa !important;
}

[data-bs-theme="dark"] .rfp-step-label {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .rfp-step-label.active-text {
    color: var(--bs-emphasis-color) !important;
}

/* Hover-lift card treatment + clamped compact-card text, shared by the RFP
   index cards (light-mode base; the dark-mode hover override follows). */
.interactive-card {
    transition: all 0.15s ease-in-out;
}

.interactive-card:hover {
    border-color: #007bff;
    background-color: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.compact-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.compact-card-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

[data-bs-theme="dark"] .interactive-card:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

[data-bs-theme="dark"] .card.cursor-pointer,
[data-bs-theme="dark"] .template-card {
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .card.cursor-pointer:hover,
[data-bs-theme="dark"] .template-card:hover {
    background-color: #172033 !important;
    border-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .card.selected,
[data-bs-theme="dark"] .template-card.selected {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: #3b82f6 !important;
    color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .card.selected .text-muted,
[data-bs-theme="dark"] .template-card.selected .text-muted {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.bg-body-secondary.text-muted,
[data-bs-theme="dark"] .badge.bg-info-subtle.text-primary {
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.bg-body-secondary.text-muted:hover,
[data-bs-theme="dark"] .badge.bg-info-subtle.text-primary:hover {
    background-color: #172033 !important;
    border-color: #3b82f6 !important;
    color: var(--bs-emphasis-color) !important;
}

[data-bs-theme="dark"] #welcome-lex-link,
[data-bs-theme="dark"] .welcome-secondary-card {
    background-color: var(--bs-secondary-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] #welcome-lex-link:hover,
[data-bs-theme="dark"] .welcome-secondary-card:hover {
    background-color: #172033 !important;
    border-color: #3b82f6 !important;
}

@font-face {
    font-family: "Legalio";
    src: url(/fonts/Legalio-Medium.otf) format("opentype"),
         url(/fonts/Legalio-Medium.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.card-title, .font-title, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.02em;
}

.masthead-title {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.04em;
    font-size: 3.25rem;
    line-height: 100%;
}

.masthead-subtitle {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.04em;
    font-size: 2.5rem;
    line-height: 100%;
}

@media (max-width: 1200px) {
    .masthead-title {
        font-size: 3rem;
    }
    .masthead-subtitle {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .masthead-title {
        font-size: 2.5rem;
    }
    .masthead-subtitle {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .masthead-title {
        font-size: 2rem;
    }
    .masthead-subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================================
   Legal.io — Design System v2 foundation
   Namespaced tokens (:root custom properties) + .ds-* component
   classes translated from the DS React primitives. Safe app-wide:
   the tokens do nothing until a .ds-* class (or an opted-in page)
   references them, and every class is prefixed .ds-.

   Source: design_system_v2 tokens/ + components/.
   Fonts: display uses the already-loaded "Legalio" face (byte-
   identical to the DS "Lay Grotesk"); body uses "Inter".
   ============================================================ */

:root {
    /* ---- Brand ---- */
    --midnight-navy: #050911;
    --cobalt-blue:   #0025DE;
    --light-blue:    #85A9E3;
    --white:         #FFFFFF;

    /* ---- Beige (warm neutrals) ---- */
    --beige-01: #FAF9F7;
    --beige-02: #F1F2EE;
    --beige-03: #DAD5D1;
    --beige-04: #B6B0A6;

    /* ---- Gray ramp (1 = lightest, 10 = darkest) ---- */
    --gray-1:  #F5F6F5;
    --gray-2:  #EAEBEA;
    --gray-3:  #DCDDDC;
    --gray-4:  #C8C9C8;
    --gray-5:  #A3A3A3;
    --gray-6:  #818281;
    --gray-7:  #5A5B5A;
    --gray-8:  #484948;
    --gray-9:  #2B2B2B;
    --gray-10: #080908;

    /* ---- Cobalt tints (hover/press/fills) ---- */
    --cobalt-hover: #0020BE;
    --cobalt-050:   #EAEEFF;
    --cobalt-100:   #D3DBFF;

    /* ---- Surfaces ---- */
    --surface-page:    var(--beige-01);
    --surface-card:    var(--white);
    --surface-raised:  var(--white);
    --surface-sunken:  var(--beige-02);
    --surface-inverse: var(--midnight-navy);
    --surface-accent:  var(--cobalt-blue);

    /* ---- Text ---- */
    --text-primary:   var(--midnight-navy);
    --text-secondary: var(--gray-7);
    --text-tertiary:  var(--gray-6);
    --text-disabled:  var(--gray-5);
    --text-inverse:   var(--white);
    --text-accent:    var(--cobalt-blue);
    --text-on-accent: var(--white);

    /* ---- Borders / lines ---- */
    --border-subtle:  var(--gray-3);
    --border-default: var(--gray-4);
    --border-strong:  var(--gray-6);
    --border-inverse: rgba(255, 255, 255, 0.16);
    --border-accent:  var(--cobalt-blue);

    /* ---- Action ---- */
    --action-primary:       var(--cobalt-blue);
    --action-primary-hover: var(--cobalt-hover);
    --action-secondary:     var(--midnight-navy);
    --focus-ring:           var(--cobalt-blue);

    /* ---- Type families ---- */
    --font-display: "Legalio", "Helvetica Neue", Arial, sans-serif;
    --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

    /* ---- Weights ---- */
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;

    /* ---- Display sizes ---- */
    --text-display-xl: 88px;
    --text-display-lg: 64px;
    --text-display-md: 48px;
    --text-display-sm: 36px;

    /* ---- Text sizes ---- */
    --text-xl:  24px;
    --text-lg:  20px;
    --text-md:  17px;
    --text-sm:  15px;
    --text-xs:  14px;
    --text-2xs: 12px;

    /* ---- Line heights ---- */
    --lh-display: 0.98;
    --lh-tight:   1.1;
    --lh-snug:    1.2;
    --lh-normal:  1.5;
    --lh-relaxed: 1.6;

    /* ---- Letter-spacing ---- */
    --tracking-eyebrow:  0.03em;
    --tracking-display: -0.04em;
    --tracking-body:    -0.03em;
    --tracking-tight:   -0.02em;

    /* ---- Semantic type roles ---- */
    --type-eyebrow-size:    var(--text-xs);
    --type-eyebrow-weight:  var(--fw-semibold);
    --type-eyebrow-spacing: var(--tracking-eyebrow);
    --type-cta-size:        var(--text-lg);
    --type-cta-weight:      var(--fw-medium);
    --type-cta-spacing:     var(--tracking-body);

    /* ---- Spacing (8pt scale) ---- */
    --space-0:  0;
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* ---- Layout ---- */
    --container-max: 1240px;
    --container-pad: 24px;
    --section-gap:   96px;
    --grid-gutter:   24px;

    /* ---- Radius ---- */
    --radius-xs:   4px;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-2xl:  32px;
    --radius-pill: 999px;

    /* ---- Border widths ---- */
    --border-width:       1px;
    --border-width-thick: 1.5px;

    /* ---- Shadows (soft, cool-neutral) ---- */
    --shadow-xs: 0 1px 2px rgba(5, 9, 17, 0.05);
    --shadow-sm: 0 1px 3px rgba(5, 9, 17, 0.06), 0 1px 2px rgba(5, 9, 17, 0.04);
    --shadow-md: 0 4px 12px rgba(5, 9, 17, 0.07), 0 2px 4px rgba(5, 9, 17, 0.04);
    --shadow-lg: 0 12px 32px rgba(5, 9, 17, 0.10), 0 4px 8px rgba(5, 9, 17, 0.04);
    --shadow-xl: 0 24px 60px rgba(5, 9, 17, 0.14);

    /* ---- Focus ---- */
    --focus-ring-width: 3px;
    --focus-ring-color: rgba(0, 37, 222, 0.35);

    /* ---- Motion ---- */
    --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast:      120ms;
    --dur-normal:    200ms;
    --dur-slow:      360ms;
}

/* ============================================================
   Type helpers
   ============================================================ */
.ds-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--cobalt-blue);
    display: inline-block;
}

.ds-display-md {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-display-md);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.ds-display-sm {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-display-sm);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.ds-h2 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.ds-h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-lg);
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

.ds-body {
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-body);
    color: var(--text-secondary);
}

.ds-text-muted { color: var(--text-tertiary); }

/* ============================================================
   Button — pill, display-font label, cobalt primary
   ============================================================ */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-md);
    letter-spacing: var(--tracking-body);
    line-height: 1;
    border-radius: var(--radius-pill);
    border: var(--border-width-thick) solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard),
                color var(--dur-fast) var(--ease-standard),
                transform var(--dur-fast) var(--ease-standard);
}
.ds-btn:active { transform: scale(0.97); }
.ds-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
}

/* Sizes */
.ds-btn--sm { height: 36px; padding: 0 16px; font-size: var(--text-sm); gap: 8px; }
.ds-btn--md { height: 46px; padding: 0 22px; font-size: var(--text-md); gap: 9px; }
.ds-btn--lg { height: 56px; padding: 0 30px; font-size: var(--text-lg); gap: 10px; }

/* Variants */
.ds-btn--primary {
    background: var(--cobalt-blue);
    color: var(--white);
    border-color: var(--cobalt-blue);
}
.ds-btn--primary:hover {
    background: var(--cobalt-hover);
    border-color: var(--cobalt-hover);
    color: var(--white);
}
.ds-btn--secondary {
    background: var(--white);
    color: var(--midnight-navy);
    border-color: var(--gray-4);
}
.ds-btn--secondary:hover { background: var(--beige-01); color: var(--midnight-navy); }
.ds-btn--ghost {
    background: transparent;
    color: var(--midnight-navy);
    border-color: transparent;
}
.ds-btn--ghost:hover { background: var(--beige-02); color: var(--midnight-navy); }
.ds-btn--inverse {
    background: var(--white);
    color: var(--midnight-navy);
    border-color: var(--white);
}
.ds-btn--inverse:hover { background: var(--beige-01); color: var(--midnight-navy); }

/* ============================================================
   Card — white surface, subtle border, soft shadow, hover lift
   ============================================================ */
.ds-card {
    background: var(--white);
    border: var(--border-width) solid var(--gray-3);
    box-shadow: var(--shadow-md);
    color: var(--midnight-navy);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: box-shadow var(--dur-normal) var(--ease-standard),
                transform var(--dur-normal) var(--ease-standard);
}
.ds-card--flat { box-shadow: none; }
.ds-card--beige {
    background: var(--beige-02);
    border-color: var(--beige-03);
    box-shadow: none;
}
.ds-card--navy {
    background: var(--midnight-navy);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}
.ds-card--hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================================
   Tag — feature/category pill
   ============================================================ */
.ds-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--text-sm);
    letter-spacing: -0.01em;
    line-height: 1;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    background: var(--white);
    color: var(--midnight-navy);
    border: var(--border-width) solid var(--gray-4);
}
.ds-tag--sm { font-size: 13px; padding: 5px 12px; gap: 6px; }
.ds-tag--solid { background: var(--cobalt-blue); color: var(--white); border-color: var(--cobalt-blue); }
.ds-tag--soft  { background: var(--cobalt-050); color: var(--cobalt-blue); border-color: transparent; }
.ds-tag--navy  { background: var(--midnight-navy); color: var(--white); border-color: var(--midnight-navy); }

/* ============================================================
   Badge — small status chip
   ============================================================ */
.ds-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: 12px;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 5px 9px;
    border-radius: var(--radius-xs);
    background: var(--gray-2);
    color: var(--gray-8);
}
.ds-badge--accent  { background: var(--cobalt-050); color: var(--cobalt-blue); }
.ds-badge--success { background: #E4F3EA; color: #1E7A47; }
.ds-badge--warning { background: #FBEFD6; color: #8A5A12; }
.ds-badge--inverse { background: var(--midnight-navy); color: var(--white); }

/* ============================================================
   Stat — big-number statistic block
   ============================================================ */
.ds-stat__value {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 80px;
    line-height: 0.95;
    letter-spacing: var(--tracking-display);
    color: var(--midnight-navy);
}
.ds-stat--md .ds-stat__value { font-size: 56px; }
.ds-stat--sm .ds-stat__value { font-size: 40px; }
.ds-stat__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    letter-spacing: -0.01em;
    color: var(--gray-7);
}

/* ============================================================
   Input / Select — 1.5px gray-4 border, cobalt focus ring
   ============================================================ */
.ds-input,
.ds-select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--midnight-navy);
    background: var(--white);
    border: var(--border-width-thick) solid var(--gray-4);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-fast) var(--ease-standard);
}
.ds-select {
    padding: 0 40px 0 14px;
    appearance: none;
    cursor: pointer;
}
.ds-input:focus,
.ds-select:focus {
    border-color: var(--cobalt-blue);
    box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.ds-input--sm,
.ds-select--sm { height: 38px; }
.ds-input--lg,
.ds-select--lg { height: 54px; }
/* Styles scoped to the Admin Matters New page */
.admin-matters-new .template-card {
    transition: all 0.2s ease-in-out;
}

.admin-matters-new .template-card:hover {
    border: 1px solid #007bff; /* Blue border */
    background-color: #e7f1ff; /* Light blue background */
}

.admin-matters-new .template-card.selected,
.admin-matters-new .card.selected {
    border: 1px solid #007bff; /* Thin blue border */
    background-color: #e7f1ff; /* Ensure light blue background */
}

.admin-matters-new .templates-modal .modal-dialog {
    max-width: 900px;
}

.admin-matters-new .see-more-link {
    color: #007bff;
    cursor: pointer;
}

.admin-matters-new .see-more-link:hover {
    text-decoration: underline;
}

/* Job Description Tools Styles */
.admin-matters-new #aiJobDescriptionContent {
    max-height: 300px;
    overflow-y: auto;
}

.admin-matters-new #aiJobDescriptionContent h4 {
    color: #007bff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.admin-matters-new #aiJobDescriptionContent ul {
    padding-left: 1.5rem;
}

.admin-matters-new #aiJobDescriptionContent li {
    margin-bottom: 0.25rem;
}

.admin-upload-inline-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    line-height: 1;
    vertical-align: text-bottom;
}

.admin-mapping-card {
    border: 1px solid #e6edf5;
    border-radius: 12px;
}

.admin-mapping-card--mapped {
    border: 2px solid #b8f0c2 !important;
    box-shadow: 0 0 0 3px rgba(184, 240, 194, 0.25) !important;
}

.admin-mapping-auto-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.admin-mapping-auto-pill__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d6f3db;
    color: #2e7d32;
    font-size: 12px;
    line-height: 1;
}

.admin-mapping-required-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #f7c26a;
    background: #fff8ea;
    color: #b35b00;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.admin-mapping-samples {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.admin-mapping-samples li {
    margin-bottom: 4px;
}

.admin-mapping-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.admin-mapping-select {
    border-radius: 8px;
    border-color: #e6edf5;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 44px;
    min-height: 48px;
}

.admin-mapping-select.admin-mapping-select--mapped {
    border-color: #b8f0c2 !important;
    border-width: 2px !important;
    border-style: solid !important;
    background-color: #f4fff6 !important;
    padding-left: 62px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    color: #1f4d2b;
    box-shadow: 0 0 0 2px rgba(184, 240, 194, 0.25);
}

.admin-mapping-select,
.admin-mapping-select:focus {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
}

.admin-mapping-select-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.admin-expiry-card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 12px;
}
.rates-by-role-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(280px, 1.7fr) minmax(160px, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.rates-by-role-header {
    padding: 0.5rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rates-by-role-row {
    min-height: 64px;
    padding: 0.625rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

.rates-by-level-row {
    position: relative;
    width: 100%;
    padding-right: 3rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: var(--bs-body-bg);
    color: inherit;
    text-align: inherit;
    opacity: 1;
}

.rates-by-level-row:not(:disabled):hover {
    background: var(--bs-tertiary-bg);
}

.rates-by-level-row:not(:disabled):focus-visible {
    z-index: 1;
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.rates-by-role-range {
    --p10: 0%;
    --p25: 0%;
    --median: 0%;
    --p75: 0%;
    --p90: 0%;
    position: relative;
    height: 26px;
}

.rates-by-role-whisker {
    position: absolute;
    top: 50%;
    left: var(--p10);
    width: calc(var(--p90) - var(--p10));
    height: 1px;
    background: var(--bs-border-color);
}

.rates-by-role-cap {
    position: absolute;
    top: calc(50% - 6px);
    width: 1px;
    height: 12px;
    background: var(--bs-border-color);
}

.rates-by-role-cap-start {
    left: var(--p10);
}

.rates-by-role-cap-end {
    left: var(--p90);
}

.rates-by-role-band {
    position: absolute;
    top: 4px;
    left: var(--p25);
    width: calc(var(--p75) - var(--p25));
    height: 18px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rates-by-role-median {
    position: absolute;
    top: 2px;
    left: var(--median);
    width: 2px;
    height: 22px;
    background: var(--bs-emphasis-color);
    transform: translateX(-1px);
}

.rates-by-role-firm-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--firm);
    width: 11px;
    height: 11px;
    background: #101828;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rates-by-role-legend-band {
    width: 24px;
    height: 12px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rates-by-role-legend-median {
    width: 2px;
    height: 16px;
    background: var(--bs-emphasis-color);
}

.rates-by-role-legend-firm-marker {
    width: 11px;
    height: 11px;
    background: #101828;
    transform: rotate(45deg);
}

.rates-by-role-year-swatch {
    width: 24px;
    height: 12px;
    border: 1px solid var(--role-year-border);
    background: var(--role-year-bg);
}

.rates-by-role-trend-firm-marker {
    width: 11px;
    height: 11px;
    background: #101828;
    transform: rotate(45deg);
}

.rates-by-role-axis-row {
    padding: 0.25rem 1.25rem 0.625rem;
    border-top: 1px solid var(--bs-border-color);
}

.rates-by-role-axis {
    display: flex;
    justify-content: space-between;
}

.rates-by-practice-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(280px, 1.7fr) minmax(160px, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.rates-by-practice-header {
    padding: 0.5rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rates-by-practice-row {
    position: relative;
    width: 100%;
    min-height: 64px;
    padding: 0.625rem 3rem 0.625rem 1.25rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: inherit;
    text-align: inherit;
    opacity: 1;
}

.rates-by-practice-row:not(:disabled):hover {
    background: var(--bs-tertiary-bg);
}

.rates-by-practice-row:not(:disabled):focus-visible {
    z-index: 1;
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.rates-by-practice-chevron,
.rates-by-level-chevron {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
}

@media (min-width: 992px) {
    .rates-by-practice-name .fw-semibold {
        white-space: nowrap;
    }
}

.rates-by-practice-visual {
    min-width: 0;
}

.rate-roster-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(145px, 0.75fr) minmax(140px, 0.7fr) minmax(260px, 1.5fr) minmax(145px, 0.75fr) minmax(150px, 0.75fr);
    gap: 1rem;
    align-items: center;
}

.rate-roster-grid-table {
    grid-template-columns: minmax(210px, 1.1fr) minmax(145px, 0.8fr) minmax(140px, 0.75fr) minmax(145px, 0.8fr) minmax(150px, 0.8fr);
}

.rate-roster-header {
    padding: 0.5rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rate-roster-practice {
    padding: 0.65rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.rate-roster-row {
    min-height: 64px;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.rate-roster-row:last-child {
    border-bottom: 0;
}

.rate-roster-range {
    position: relative;
    height: 26px;
}

.rate-roster-range-grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(480px, 2.3fr);
    gap: 1.5rem;
    align-items: center;
    min-height: 64px;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.rate-roster-range-grid:last-of-type {
    border-bottom: 0;
}

.rate-roster-range-axis {
    display: flex;
    justify-content: space-between;
    margin-left: calc(210px + 2.75rem);
    padding: 0.25rem 1.25rem 0.625rem 0;
    border-top: 1px solid var(--bs-border-color);
}

.rate-roster-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--bs-border-color);
}

.rate-roster-band {
    position: absolute;
    top: 4px;
    left: var(--firm-p25);
    width: calc(var(--firm-p75) - var(--firm-p25));
    min-width: 3px;
    height: 18px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rate-roster-firm-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--firm-median);
    width: 11px;
    height: 11px;
    background: #101828;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rate-roster-market-marker {
    position: absolute;
    z-index: 1;
    top: 2px;
    left: var(--market-median);
    width: 2px;
    height: 22px;
    background: var(--bs-success);
    transform: translateX(-1px);
}

.rate-roster-legend-band {
    width: 24px;
    height: 12px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rate-roster-legend-firm-marker {
    width: 11px;
    height: 11px;
    background: #101828;
    transform: rotate(45deg);
}

.rate-roster-legend-market {
    width: 2px;
    height: 16px;
    background: var(--bs-success);
}

[data-bs-theme="dark"] .rates-by-role-band {
    border-color: #44558f;
    background: #26355f;
}

[data-bs-theme="dark"] .rates-by-role-legend-band {
    border-color: #44558f;
    background: #26355f;
}

@media (max-width: 991.98px) {
    .rates-by-role-grid {
        grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr) minmax(250px, 1.8fr) minmax(150px, 0.8fr);
        gap: 1rem;
    }

    .rates-by-practice-grid {
        grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr) minmax(250px, 1.8fr) minmax(150px, 0.8fr);
    }

    .rate-roster-grid {
        grid-template-columns: minmax(130px, 0.8fr) minmax(125px, 0.7fr) minmax(120px, 0.65fr) minmax(220px, 1.3fr) minmax(125px, 0.7fr) minmax(130px, 0.7fr);
    }

    .rate-roster-grid-table {
        grid-template-columns: minmax(180px, 1fr) minmax(125px, 0.75fr) minmax(120px, 0.7fr) minmax(125px, 0.75fr) minmax(130px, 0.75fr);
    }
}

@media (max-width: 767.98px) {
    .rates-by-role-header,
    .rates-by-role-axis-row,
    .rates-by-practice-header,
    .rate-roster-header {
        display: none;
    }

    .rates-by-role-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .rates-by-role-range {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rates-by-role-change {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left !important;
    }

    .rates-by-role-difference {
        grid-column: 1 / -1;
        grid-row: 4;
        text-align: left !important;
    }

    .rates-by-practice-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .rates-by-practice-name {
        grid-column: 1 / -1;
    }

    .rates-by-practice-visual {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rates-by-practice-market,
    .rates-by-practice-change,
    .rates-by-practice-firm {
        text-align: left !important;
    }

    .rate-roster-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .rate-roster-range-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .rate-roster-range-axis {
        margin-left: 0;
        padding-left: 1.25rem;
    }

    .rate-roster-role {
        grid-column: 1 / -1;
    }

    .rate-roster-range {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rate-roster-firm,
    .rate-roster-change,
    .rate-roster-market,
    .rate-roster-difference {
        text-align: left !important;
    }
}

[data-bs-theme="dark"] .rate-roster-band,
[data-bs-theme="dark"] .rate-roster-legend-band {
    border-color: #44558f;
    background: #26355f;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

label[required]:after {
    content: ' *';
    color: #EF4444;
}

.bg-legalio {
    background: linear-gradient(135deg, #1b2430, #1a1e27) !important;
}

.bg-legalio-dark {
    background: linear-gradient(135deg, #1b2430, #1a1e27) !important;
}

.sidebar {
    width: 60px !important;
}

.sidebar-wrapper {
    width: 60px;
    z-index: 1040;
    transition: width 0.2s ease;
    will-change: width;
}

.sidebar-wrapper.expanded,
.sidebar-wrapper.hover-expanded {
    width: 244px !important;
}

.main-content {
    transition: margin-left 0.2s ease;
    margin-left: 244px;
    /* Default to expanded state to match sidebar */
    will-change: margin-left;
}

/* Collapsed state - only when sidebar is not expanded */
.main-content.sidebar-collapsed {
    margin-left: 60px;
}

.main-content.no-transition,
.main-content.no-transition * {
    transition: none !important;
}

.sidebar-wrapper.no-transition,
.sidebar-wrapper.no-transition * {
    transition: none !important;
}

/* Prevent flash of unstyled content during initialization */
.sidebar-wrapper.expanded {
    width: 244px !important;
}

.sidebar-wrapper.expanded .sidebar {
    width: 244px !important;
}

@media (max-width: 1199.98px) {
    .sidebar-wrapper {
        width: 244px !important;
        transform: translateX(-100%);
    }

    .main-content,
    .main-content.sidebar-collapsed {
        margin-left: 0 !important;
    }
}

.text-primary {
    color: #007bff;
}

.text-dark {
    color: #333;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 0.25rem;
}

.p-3 {
    padding: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
}

.bg-success-subtle {
    background-color: #e8f5e9 !important;
}

/* Keep navbar dropdowns within viewport on small screens */
@media (max-width: 576px) {
    .navbar .dropdown-menu {
        max-width: calc(100vw - 16px);
        width: max-content;
        /* shrink to content but not exceed viewport */
    }

    .navbar .dropdown-menu .dropdown-item,
    .navbar .dropdown-menu .dropdown-header,
    .navbar .dropdown-menu span,
    .navbar .dropdown-menu small {
        white-space: normal;
        /* allow wrapping */
        overflow-wrap: anywhere;
        /* break long words/emails */
        word-break: break-word;
    }
}

/* RFP Share modal: remove black outline on input focus */
#shareRfpModal input#shareInput:focus,
#shareRfpModal input#shareInput:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #dee2e6 !important; /* keep neutral border, avoid dark/black */
    background-color: inherit !important; /* avoid forced focus bg */
}

.bg-warning-subtle {
    background-color: #fff3e0 !important;
}

.text-success {
    color: #2e7d32 !important;
}

.text-warning {
    color: #f57c00 !important;
}

/* Admin AI Evals: ensure long preformatted blocks wrap instead of clipping. */
.lex-eval-prewrap {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Matter index specific styles */
.table> :not(caption)>*>* {
    padding: 1rem 0.75rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.progress {
    background-color: #e9ecef;
    border-radius: 1rem;
}

.progress-bar {
    border-radius: 1rem;
}

.form-select,
.form-control {
    border-color: #dee2e6;
}

.input-group-text {
    border-color: #dee2e6;
}

.table>thead.table-light {
    background-color: #f8f9fa;
}

.table>thead.table-light th {
    font-weight: 500;
    color: #6c757d;
    border-bottom-width: 1px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--bs-nav-pills-link-active-bg) !important;
    color: var(--bs-nav-pills-link-active-color) !important;
}

.nav-pills .nav-link.active {
    background-color: rgb(219 234 254) !important;
    color: rgb(37 99 235) !important;
}

.bg-linear-gradient-light {
    background: linear-gradient(to bottom, #ebf5ff, #ffffff);
}

[data-bs-theme=dark] .bg-linear-gradient-light {
    background: linear-gradient(to bottom, #1a1e27, #1c212b);
}

.opacity-0 {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rate Obfuscation Styles for Non-Customers */
.obfuscated-rate {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.obfuscated-range {
    filter: blur(2px);
    -webkit-filter: blur(2px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.role-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-card {
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: scale(1.02);
}

/* Utility: hover red-100 background (Tailwind-ish) */
.hover-bg-red-100:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1)) !important;
}

.ais-Breadcrumb-list,
.ais-CurrentRefinements-list,
.ais-HierarchicalMenu-list,
.ais-Hits-list,
.ais-InfiniteHits-list,
.ais-InfiniteResults-list,
.ais-Menu-list,
.ais-NumericMenu-list,
.ais-Pagination-list,
.ais-RatingMenu-list,
.ais-RefinementList-list,
.ais-Results-list,
.ais-ToggleRefinement-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.ais-ClearRefinements-button,
.ais-CurrentRefinements-delete,
.ais-CurrentRefinements-reset,
.ais-GeoSearch-redo,
.ais-GeoSearch-reset,
.ais-HierarchicalMenu-showMore,
.ais-InfiniteHits-loadMore,
.ais-InfiniteHits-loadPrevious,
.ais-InfiniteResults-loadMore,
.ais-Menu-showMore,
.ais-RangeInput-submit,
.ais-RefinementList-showMore,
.ais-SearchBox-reset,
.ais-SearchBox-submit,
.ais-VoiceSearch-button {
    padding: 0;
    overflow: visible;
    font: inherit;
    line-height: normal;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.ais-ClearRefinements-button::-moz-focus-inner,
.ais-CurrentRefinements-delete::-moz-focus-inner,
.ais-CurrentRefinements-reset::-moz-focus-inner,
.ais-GeoSearch-redo::-moz-focus-inner,
.ais-GeoSearch-reset::-moz-focus-inner,
.ais-HierarchicalMenu-showMore::-moz-focus-inner,
.ais-InfiniteHits-loadMore::-moz-focus-inner,
.ais-InfiniteHits-loadPrevious::-moz-focus-inner,
.ais-InfiniteResults-loadMore::-moz-focus-inner,
.ais-Menu-showMore::-moz-focus-inner,
.ais-RangeInput-submit::-moz-focus-inner,
.ais-RefinementList-showMore::-moz-focus-inner,
.ais-SearchBox-reset::-moz-focus-inner,
.ais-SearchBox-submit::-moz-focus-inner,
.ais-VoiceSearch-button::-moz-focus-inner {
    padding: 0;
    border: 0
}

.ais-ClearRefinements-button[disabled],
.ais-CurrentRefinements-delete[disabled],
.ais-CurrentRefinements-reset[disabled],
.ais-GeoSearch-redo[disabled],
.ais-GeoSearch-reset[disabled],
.ais-HierarchicalMenu-showMore[disabled],
.ais-InfiniteHits-loadMore[disabled],
.ais-InfiniteHits-loadPrevious[disabled],
.ais-InfiniteResults-loadMore[disabled],
.ais-Menu-showMore[disabled],
.ais-RangeInput-submit[disabled],
.ais-RefinementList-showMore[disabled],
.ais-SearchBox-reset[disabled],
.ais-SearchBox-submit[disabled],
.ais-VoiceSearch-button[disabled] {
    cursor: default
}

.ais-HierarchicalMenu-showMore,
.ais-InfiniteHits-loadMore,
.ais-InfiniteHits-loadPrevious,
.ais-Menu-showMore,
.ais-RefinementList-showMore {
    overflow-anchor: none
}

.ais-Breadcrumb-item,
.ais-Breadcrumb-list,
.ais-Pagination-list,
.ais-PoweredBy,
.ais-RangeInput-form,
.ais-RatingMenu-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.ais-GeoSearch,
.ais-GeoSearch-map {
    height: 100%
}

.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list {
    margin-left: 1em
}

.ais-PoweredBy-logo {
    display: block;
    height: 1.2em;
    width: auto
}

.ais-RatingMenu-starIcon {
    display: block;
    width: 20px;
    height: 20px
}

.ais-SearchBox-input::-ms-clear,
.ais-SearchBox-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0
}

.ais-SearchBox-input::-webkit-search-cancel-button,
.ais-SearchBox-input::-webkit-search-decoration,
.ais-SearchBox-input::-webkit-search-results-button,
.ais-SearchBox-input::-webkit-search-results-decoration {
    display: none
}

.ais-RangeSlider .rheostat {
    overflow: visible;
    margin-top: 40px;
    margin-bottom: 40px
}

.ais-RangeSlider .rheostat-background {
    height: 6px;
    top: 0;
    width: 100%
}

.ais-RangeSlider .rheostat-handle {
    margin-left: -12px;
    top: -7px
}

.ais-RangeSlider .rheostat-background {
    position: relative;
    background-color: #fff;
    border: 1px solid #aaa
}

.ais-RangeSlider .rheostat-progress {
    position: absolute;
    top: 1px;
    height: 4px;
    background-color: #333
}

.rheostat-handle {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: grab
}

.rheostat-marker {
    margin-left: -1px;
    position: absolute;
    width: 1px;
    height: 5px;
    background-color: #aaa
}

.rheostat-marker--large {
    height: 9px
}

.rheostat-value {
    padding-top: 15px
}

.rheostat-tooltip,
.rheostat-value {
    margin-left: 50%;
    position: absolute;
    text-align: center;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
}

.rheostat-tooltip {
    top: -22px
}
