
/* AVAJANG / FIVE-COLOR DESIGN SYSTEM — 2026
   1 Brand #007470 | 2 Navy #121F2E | 3 Warm highlight #FFB547
   4 Primary text #EAF5F4 | 5 Secondary text #A4BDCA
   Other tokens below are tonal/functional variations of the main palette.
*/
:root {
  --ava-primary: #007470;
  --ava-secondary: #121F2E;
  --ava-accent: #FFB547;
  --ava-text: #EAF5F4;
  --ava-muted: #A4BDCA;
  --ava-bg: #0B1621;
  --ava-deep: #0D1D2B;
  --ava-surface: #172A3A;
  --ava-surface-hover: #1C3445;
  --ava-border: #3E596A;
  --ava-teal-hover: #0B8982;
  --ava-amber-hover: #FFCA73;
  --ava-focus: #FFB547;
  --ava-glow: rgba(255,181,71,.14);
  --ava-brand-glow: rgba(0,116,112,.28);
}

/* Avajang Service — restrained, contrast-first product UI */

@font-face {
    font-family: 'YBakh';
    src: url('/Fonts/YekanBakh.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: var(--ava-bg);
    --surface: var(--ava-surface);
    --surface-soft: var(--ava-secondary);
    --ink: var(--ava-text);
    --muted: var(--ava-muted);
    --line: var(--ava-border);
    --line-strong: #557286;
    --brand: var(--ava-primary);
    --brand-soft: rgba(0,116,112,.19);
    --radius-sm: 9px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.13);
    --shadow-md: 0 12px 32px rgba(0,0,0,.18)
}

html {
    color-scheme: dark;
    scroll-behavior: auto
}

body, body.ai-platform {
    color: var(--ink);
    background: #0a121c;
    line-height: 1.7
}

    body.ai-platform::before {
        display: none
    }

.app-shell {
    width: 100%;
    min-height: 100dvh
}

.sidebar {
    background: #101d2b;
    border-color: #2a4051;
    box-shadow: none
}

    .sidebar::before, .sidebar::after {
        display: none
    }

.ai-sidebar-module {
    display: none
}

.side-brand {
    margin-bottom: 10px;
    padding-bottom: 17px
}

.brand-copy span {
    color: #b5cbd2
}

.nav-caption {
    color: #a3b8c3
}

.nav-link {
    border-radius: 9px;
    min-height: 45px;
    color: #c3d5de
}

    .nav-link.active {
        background: #173a42;
        box-shadow: inset -3px 0 0 #30c6ae !important;
        color: #e6fffc
    }

    .nav-link:hover {
        transform: none;
        background: #203849
    }

.nav-ico {
    background: #1b3141;
    color: #bdd7df
}

.side-user {
    background: #172938;
    border-color: #32495a
}

.topbar {
    background: #101e2c;
    border-color: #2b4052;
    height: 69px;
    box-shadow: none;
    padding-inline: clamp(12px,2.6vw,31px)
}

.top-title {
    font-size: 16px;
    color: #f5fbff
}

.top-kicker, .top-ai-emblem {
    display: none
}

.topbar-identity .status-pill {
    background: #163529;
    border-color: #36614f;
    color: #baf0d9;
    font-size: 11px;
    font-family:'Ybakh'
}

.page-content {
    padding: 24px clamp(14px,2.6vw,32px) 54px;
    max-width: 100%
}

.page-head {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 19px !important;
    min-height: 0 !important
}

    .page-head::before, .page-head::after {
        display: none !important
    }

    .page-head h1 {
        font-size: clamp(20px,2vw,25px);
        margin: 0 !important;
        color: #eff8fd;
        font-weight: 800
    }

    .page-head p {
        color: #a9c0ce;
        font-size: 12px
    }

.eyebrow, .top-ai-emblem, .ai-hero-art {
    display: none
}

.card, .acip-card, .table-card {
    background: #121f2e !important;
    border: 1px solid #2d4456 !important;
    border-radius: 13px;
    box-shadow: none !important;
    overflow-wrap: anywhere
}

    .card:hover {
        border-color: #355466 !important
    }

.section-head {
    margin-bottom: 12px
}

    .section-head strong {
        font-weight: 800;
        color: #edf7fd;
        font-size: 14px
    }

    .section-head small, .subtle {
        color: #b5cad5 !important
    }

.metric-grid {
    gap: 12px
}

.metric {
    background: #152535;
    border: 1px solid #315064;
    border-radius: 11px;
    min-height: 100px;
    box-shadow: none
}

    .metric::before {
        width: 3px;
        height: 100%;
        right: 0;
        border-radius: 0;
        background: #24b8a8
    }

    .metric small {
        color: #b8d0d9;
        font-size: 12px
    }

    .metric strong {
        color: #f1f9fd;
        font-size: 23px;
        line-height: 1.5;
        overflow-wrap: anywhere
    }

.btn, .btn.tiny {
    border-radius: 9px;
    font-weight: 700
}

    .btn.primary, .submit-analysis {
        color: #061c1b;
        background: #53decb !important;
        border: 1px solid #68f1d9 !important;
        box-shadow: none !important
    }

        .btn.primary:hover, .submit-analysis:hover {
            background: #84f2e1 !important;
            color: #092622
        }

    .btn.ghost {
        color: #d9ecf5;
        background: #1b3040;
        border: 1px solid #426176
    }

        .btn.ghost:hover {
            background: #294557;
            color: #fff;
            border-color: #64889b
        }

    .btn.danger {
        margin:0.5rem;
        background: #482934 !important;
        border: 1px solid #95516b !important;
        box-shadow: none !important;
    }

        .btn.danger:hover {
            background: #6a3445;
            border-color: #cf6f88;
            color: #fff
        }

a {
    color: #82e6d7
}

    a:hover {
        color: #b2fff2
    }

.field label {
    color: #dbe8f0;
    font-weight: 700;
    font-size: 12px
}

    .field label small, .field-help {
        color: #acbfcc
    }

.field input:not([type="checkbox"]), .field select, .field textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="search"], select, textarea,
.permission-search input, .table-search, .table-page-size {
    background: #0d1a28;
    color: #f0f8ff;
    border: 1px solid #405d71;
    border-radius: 9px;
    min-height: 43px;
    max-width: 100%;
    box-shadow: none
}

    input::placeholder, textarea::placeholder {
        color: #92abba;
        opacity: 1
    }

    input:focus, select:focus, textarea:focus {
        border-color: #6be6d5;
        outline: 2px solid rgba(98,225,207,.23);
        outline-offset: 1px
    }

    input:disabled, select:disabled, textarea:disabled, input[readonly] {
        color: #9cabb9;
        background: #192738;
        border-color: #33485a;
        opacity: 1
    }

*:focus-visible {
    outline: 2px solid #73edda;
    outline-offset: 2px
}

select option {
    color: #e8f2f7;
    background: #15283a
}

.table-card {
    padding: 0 !important;
    overflow: hidden
}

    .table-card .section-head {
        padding: 18px 18px 8px
    }

.table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    scrollbar-width: thin
}

    .table-wrap table {
        width: 100%;
        min-width: 740px;
        border-spacing: 0;
        border-collapse: collapse;
        table-layout: auto
    }

table th {
    background: #1b3041;
    color: #cee4ed;
    font-size: 12px;
    font-weight: 800;
    border-color: #365266;
    padding: 12px 13px;
    text-align: right
}

table td {
    background: transparent;
    color: #d2e3ec;
    font-size: 12px;
    border-color: #2e4658;
    padding: 12px 13px;
    white-space: normal;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: anywhere
}

    table td strong {
        color: #edf6fa
    }

table tbody tr:nth-child(even) {
    background: #162638
}

table tbody tr:hover {
    background: #1e3645
}

table td form {
    max-width: 100%
}

.table-row-hidden {
    display: none !important
}

.table-toolbar {
    padding: 13px 18px;
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #2d485b;
    background: #152538
}

.table-search {
    width: min(230px,100%);
    flex: 1 1 175px;
    min-height: 37px !important;
    padding: 7px 11px;
    font-size: 12px
}

.table-page-size {
    min-height: 37px !important;
    padding: 5px 11px;
    max-width: 110px;
    font-size: 12px
}

.table-total {
    margin-inline-start: auto;
    white-space: nowrap;
    font-size: 12px;
    color: #bbd0dc
}

.table-pager {
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    padding: 9px 12px;
    border-top: 1px solid #30485b
}

    .table-pager[hidden] {
        display: none
    }

.table-page-number {
    font-size: 12px;
    color: #bbd0dc
}

.table-pager button:disabled {
    opacity: .4;
    cursor: not-allowed
}

.table-toolbar .btn {
    min-height: 35px
}

.status, .role-badge {
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.4;
    padding: 6px 9px
}

.status-completed, .status-approved, .status-duplicatereused {
    color: #adf3d8;
    background: #163b34;
    border-color: #386f5f
}

.status-processing, .status-queued {
    color: #b9eaff;
    background: #1a394b;
    border-color: #386c87
}

.status-failed, .status-rejected {
    color: #ffbfc8;
    background: #4e2838;
    border-color: #985569
}

.alert, .flash, .inline-message {
    background: #1b3444;
    color: #dcf4fa;
    border-color: #426176;
    border-radius: 10px
}

    .flash.success, .alert.success {
        background: #143d33;
        color: #c5ffdf;
        border-color: #31715c
    }

    .flash.danger, .alert.danger {
        background: #4b2736;
        color: #ffd4df;
        border-color: #905369
    }

.ai-hero {
    background: #112738;
    border: 1px solid #36596a;
    box-shadow: none !important;
    min-height: 175px
}

    .ai-hero::after {
        opacity: .16;
        background-size: 38px 38px
    }

    .ai-hero h1 {
        font-size: clamp(23px,3vw,35px)
    }

        .ai-hero h1 em {
            color: #84e9d8;
            text-shadow: none
        }

    .ai-hero p {
        color: #c4d9e1
    }

.ai-hero-eyebrow {
    border: none;
    background: none;
    padding: 0;
    color: #80dbc9;
    font-family:'Ybakh'
}

.hero-action {
    background: #173b48 !important;
    color: #d4f8ef !important;
    border-color: #426878 !important
}

.ai-hero-caption {
    display: none
}

.api-state {
    background: #17372f;
    color: #b8efd6;
    border-color: #336753
}

.serial-input-shell {
    border-color: #405e71
}

.serial-input {
    color: #ecf8ff !important
}

.photo-tile {
    border-color: #4b6371;
    background: #102131;
    border-radius: 11px
}

    .photo-tile.has-image {
        border-color: #76e5d5
    }

.photo-placeholder strong {
    color: #ecf5fb
}

.photo-placeholder small {
    color: #acc6d3
}

.ai-upload-guidance {
    background: #152c37;
    border-color: #345567;
    color: #d5e8f1
}

    .ai-upload-guidance b {
        color: #b9ffea
    }

.warranty-summary {
    background: #18343d;
    border-color: #35626b
}

    .warranty-summary strong {
        color: #eafaff
    }

.modal-card {
    background: #142536;
    border-color: #416073
}

.modal-head {
    background: #142536 !important
}

.confirm-action-card {
    border-color: #80546b
}

.marketing-carousel {
    border-radius: 12px
}
/* One coherent switch design across Marketing, Create, Permissions, and Representative. */
.check, .field label.check, .permission-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0
}

    .check input[type="checkbox"], .permission-switch input[type="checkbox"], .switch-field .check input[type="checkbox"], .switch-auto-form input[type="checkbox"], .banner-actions .check input[type="checkbox"] {
        display: inline-block !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        flex: 0 0 46px !important;
        min-width: 46px !important;
        width: 46px !important;
        height: 26px !important;
        min-height: 26px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #5e7888 !important;
        border-radius: 99px !important;
        background: #263c4d !important;
        box-shadow: none !important;
        outline-offset: 2px !important;
        position: relative !important;
        vertical-align: middle;
        cursor: pointer;
        transition: background .15s,border-color .15s
    }

        .check input[type="checkbox"]::before, .permission-switch input[type="checkbox"]::before {
            content: "" !important;
            display: block !important;
            position: absolute !important;
            inset: auto !important;
            top: 3px !important;
            right: 3px !important;
            left: auto !important;
            width: 18px !important;
            height: 18px !important;
            border: 0 !important;
            border-radius: 50% !important;
            background: #eaf4f8 !important;
            box-shadow: 0 1px 3px rgba(0,0,0,.28) !important;
            transform: none !important;
            transition: transform .15s
        }

        .check input[type="checkbox"]::after, .permission-switch input[type="checkbox"]::after {
            content: none !important;
            display: none !important
        }

        .check input[type="checkbox"]:checked, .permission-switch input[type="checkbox"]:checked {
            background: #147f75 !important;
            border-color: #56d9c6 !important
        }

            .check input[type="checkbox"]:checked::before, .permission-switch input[type="checkbox"]:checked::before {
                transform: translateX(-20px) !important;
                background: #fff !important
            }

        .check input[type="checkbox"]:disabled {
            opacity: .52 !important;
            cursor: not-allowed
        }
/* Analytics: data-first charts, no decorative gradients */
.analytics-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 20px
}

    .analytics-entry > div {
        display: grid;
        gap: 4px
    }

    .analytics-entry strong {
        color: #e8f7fd;
        font-size: 16px
    }

    .analytics-entry span {
        color: #b1c9d5;
        font-size: 12px
    }

.analytics-card {
    min-width: 0
}

    .analytics-card .table-wrap table {
        min-width: 540px
    }

.analytics-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.analytics-filter {
    display: flex;
    align-items: center;
    gap: 8px
}

    .analytics-filter label {
        font-size: 12px;
        color: #bed1dc
    }

    .analytics-filter select {
        min-width: 160px;
        padding: 7px 10px
    }

.analytics-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start
}

    .analytics-pair .card {
        min-width: 0
    }

.daily-chart {
    height: 155px;
    display: flex;
    align-items: stretch;
    gap: 3px;
    direction: ltr;
    padding: 12px 4px 0;
    border-bottom: 1px solid #476274
}

.daily-column {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.daily-bar {
    min-height: 2px;
    width: 100%;
    background: #36bcae;
    border-radius: 3px 3px 0 0;
    opacity: .88
}

.daily-column:hover .daily-bar {
    background: #9cf9df
}

.chart-axis {
    display: flex;
    direction: ltr;
    justify-content: space-between;
    color: #a4bdca;
    font-size: 11px;
    margin-top: 8px
}

.rank-badge {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    border: 1px solid #487075;
    background: #18353b;
    border-radius: 7px;
    color: #c0f5ec
}

.mini-bar-track {
    height: 9px;
    min-width: 52px;
    width: 100%;
    background: #293f4f;
    border-radius: 20px;
    overflow: hidden
}

    .mini-bar-track span {
        height: 100%;
        display: block;
        background: #38bcae;
        border-radius: 20px
    }

.section-footnote {
    font-size: 11px;
    padding: 9px 16px;
    color: #b1c7d2;
    border-top: 1px solid #30495b
}

.sms-status-line {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center
}

    .sms-status-line small, .sms-error {
        font-size: 12px;
        color: #cbdde6
    }

.sms-error {
    margin-top: 12px;
    color: #ffbfc9
}
/* Mobile: tables become true labeled cards instead of horizontal-scroll-only grids */
@media(max-width:900px) {
    .topbar {
        height: 62px
    }

    .page-content {
        padding: 16px 12px 36px
    }

    .analytics-pair {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .page-content {
        padding-inline: 10px
    }

    .page-head h1 {
        font-size: 21px
    }

    .page-head {
        gap: 10px
    }

    .topbar {
        padding-inline: 12px
    }

    .top-title {
        font-size: 14px
    }

    .card, .acip-card {
        border-radius: 11px;
        padding: 15px
    }

    .table-card {
        padding: 0 !important
    }

    .metric-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 9px
    }

    .metric {
        min-height: 90px;
        padding: 12px
    }

        .metric strong {
            font-size: 19px
        }

    .table-toolbar {
        padding: 11px;
        gap: 7px
    }

    .table-search {
        flex: 1 1 100%;
        width: 100%
    }

    .table-total {
        margin-inline-start: 0
    }

    .table-wrap {
        overflow: visible !important;
        padding: 0 10px;
        margin: 0 !important
    }

        .table-wrap table.adaptive-table {
            min-width: 0 !important;
            width: 100% !important;
            display: block;
            table-layout: auto
        }

    .adaptive-table thead {
        display: none
    }

    .adaptive-table tbody {
        display: block
    }

    .adaptive-table tr {
        display: block !important;
        border: 1px solid #375065;
        background: #162739 !important;
        margin: 10px 0;
        padding: 4px 10px;
        border-radius: 10px;
        min-width: 0;
        box-shadow: none
    }

        .adaptive-table tr.table-row-hidden {
            display: none !important
        }

    .adaptive-table td {
        display: grid !important;
        grid-template-columns: minmax(85px,36%) minmax(0,1fr);
        align-items: start;
        gap: 10px;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100%;
        border: 0;
        border-bottom: 1px solid #324859 !important;
        padding: 10px 2px;
        white-space: normal !important;
        overflow-wrap: anywhere
    }

        .adaptive-table td:last-child {
            border-bottom: 0 !important
        }

        .adaptive-table td::before {
            content: attr(data-label);
            color: #a8c2d1;
            font-weight: 700;
            line-height: 1.7;
            font-size: 11px
        }

        .adaptive-table td[colspan] {
            grid-template-columns: 1fr
        }

            .adaptive-table td[colspan]::before {
                margin-bottom: 6px
            }

        .adaptive-table td:has(.table-actions), .adaptive-table td:has(form) {
            align-items: center
        }

        .adaptive-table td :is(input,select,textarea) {
            max-width: 100%
        }

        .adaptive-table td .inline-edit-form {
            min-width: 0;
            flex-wrap: wrap;
            gap: 6px
        }

        .adaptive-table td form {
            max-width: 100%;
            min-width: 0
        }

        .adaptive-table td small {
            display: block;
            color: #b3c8d2
        }

    .analytics-card .table-wrap table {
        min-width: 0
    }

    .daily-chart {
        height: 120px;
        gap: 2px
    }

    .auth-experience {
        box-shadow: none
    }

    .form-actions .btn {
        width: 100%
    }
}

@media(max-width:420px) {
    .metric-grid {
        grid-template-columns: 1fr 1fr !important
    }

    .metric strong {
        font-size: 18px
    }

    .status-pill {
        font-size: 10px;
        padding: 6px 8px
    }

    .topbar-identity {
        display: none
    }

    .adaptive-table td {
        grid-template-columns: minmax(76px,33%) minmax(0,1fr)
    }
}

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

/* ===== AVAJANG FIVE-COLOR COHERENCE LAYER ===== */
:root { --bg: var(--ava-bg); --surface: var(--ava-surface); --surface-soft: var(--ava-secondary); --ink: var(--ava-text); --muted: var(--ava-muted); --line: var(--ava-border); --line-strong: #557286; --brand: var(--ava-primary); --brand-soft: rgba(0,116,112,.18); }
body, body.ai-platform { background: var(--ava-bg); color: var(--ava-text); }
.sidebar { background: var(--ava-secondary); border-color: var(--ava-border); }
.topbar { background: #111F2D; border-color: var(--ava-border); }
.nav-link.active { background: rgba(0,116,112,.3); box-shadow: inset -3px 0 0 var(--ava-accent) !important; color: var(--ava-text); }
.nav-link.active .nav-ico { background: rgba(0,116,112,.45); color: var(--ava-text); }
.metric, .side-user { background: var(--ava-secondary); border-color: var(--ava-border); }
.card,.acip-card,.table-card { background: var(--ava-surface) !important; border-color: var(--ava-border) !important; }
.card h1,.card h2,.card h3,.card strong,.section-head strong,.top-title { color: var(--ava-text); }
.page-head p,.section-head small,.metric small,.field-help,.subtle,.muted,.table-total { color: var(--ava-muted) !important; }
.btn.primary, .submit-analysis { background: var(--ava-primary) !important; border: 1px solid #178C83 !important; color: #fff !important; }
.btn.primary:hover, .submit-analysis:hover { background: var(--ava-teal-hover) !important; color: #fff !important; }
.btn.ghost { background: var(--ava-surface) !important; color: var(--ava-text) !important; border-color: var(--ava-border) !important; }
.btn.ghost:hover { background: var(--ava-surface-hover) !important; }
.field input:not([type=checkbox]), .field select, .field textarea,
input[type="text"],input[type="search"],input[type="password"],input[type="email"],input[type="tel"],input[type="number"],select,textarea,
.permission-search input,.table-search,.table-page-size {
 background: var(--ava-deep); color: var(--ava-text); border: 1px solid var(--ava-border); color-scheme: dark;
}
input::placeholder,textarea::placeholder { color: var(--ava-muted); opacity: 1; }
input:focus, select:focus, textarea:focus, .search-select:focus-within { border-color: var(--ava-accent); outline-color: rgba(255,181,71,.38); }
*:focus-visible { outline: 2px solid var(--ava-accent); outline-offset: 2px; }
.table-toolbar { background: var(--ava-secondary); border-color: var(--ava-border); }
table th { background: #203748; color: var(--ava-text); border-color: var(--ava-border); }
table td { color: var(--ava-text); border-color: var(--ava-border); }
table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
table tbody tr:hover { background: var(--ava-surface-hover); }
.table-pagination .active, .table-page.active { background: var(--ava-primary); color:#fff; }
.table-pagination button:focus-visible { outline-color: var(--ava-accent); }
.alert.warning,.flash.warning,.status-pending { background: #40331F; border-color: #94743B; color: #FFE3AF; }
.status-completed,.status-approved { background: #153C31; border-color: #36745D; color: #BBF5D9; }
.status-failed,.status-rejected,.status-expired { background: #432733; border-color: #95566B; color: #FFD0D8; }
.status-processing,.status-queued { background: #213748; border-color: #55778A; color: #D7EEF8; }
@media(max-width:700px) {
 .adaptive-table tr { background: var(--ava-secondary) !important; border-color: var(--ava-border); }
 .adaptive-table td { border-bottom-color: var(--ava-border) !important; }
 .adaptive-table td::before { color: var(--ava-muted); }
}

/* ===== AVAJANG AURORA CIRCUIT • V6 | product surfaces ===== */
/* Avoid the flat-card feel by separating information density from actions. */
body.ai-platform .card,body.ai-platform .table-card,
body.ai-platform .acip-card {
  background:linear-gradient(145deg,#192D3F 0%,#142637 85%)!important;
  border:1px solid #395668!important;
  border-radius:17px!important;
  box-shadow:0 11px 34px rgba(0,7,17,.18),inset 0 1px 0 rgba(231,255,250,.045)!important;
}
body.ai-platform .card:hover,body.ai-platform .acip-card:hover {
  border-color:#507585!important;
}
body.ai-platform .section-head strong,body.ai-platform .step-title strong {
  color:var(--ava-text);font-size:clamp(14px,1.2vw,16px);font-weight:850;
}
body.ai-platform .section-head small,body.ai-platform .page-head p,
body.ai-platform .field-help,body.ai-platform .subtle {color:var(--ava-muted)!important}
/* Distinct KPI treatment; semantic colors stay reserved for statuses. */
body.ai-platform .metric {
  position:relative; overflow:hidden;
  background:linear-gradient(136deg,#1D3746,#132738)!important;
  border:1px solid #3B6270!important;border-radius:16px!important;
  min-height:120px;box-shadow:0 11px 29px rgba(0,8,20,.17),inset 0 1px 0 rgba(235,255,253,.04)!important;
  padding:21px 20px;
}
body.ai-platform .metric::before {
  content:""; position:absolute;right:0;top:0;bottom:0;width:4px;height:auto;
  background:linear-gradient(#FFB547,#007470);border-radius:0;
}
body.ai-platform .metric::after {
  content:"";position:absolute;left:-26px;top:-32px;width:125px;height:125px;
  border-radius:50%;background:radial-gradient(circle,rgba(255,181,71,.085),transparent 68%);
  pointer-events:none;
}
body.ai-platform .metric:nth-child(2n)::before {background:linear-gradient(#10A196,#007470)}
body.ai-platform .metric strong {font-size:clamp(25px,2.4vw,34px);font-weight:900;color:#fff}
body.ai-platform .metric small {color:#BED6DE!important;font-size:12px}
/* Prominent CTAs: contrast checked against text; only primary action has sheen. */
body.ai-platform .btn.primary,body.ai-platform .submit-analysis,
body.ai-platform .lookup-action {
  background:linear-gradient(125deg,#007470 0%,#078A80 100%)!important;
  border:1px solid #36A79A!important;color:#fff!important;
  border-radius:11px!important;font-weight:800;
  box-shadow:0 7px 20px rgba(0,116,112,.23),inset 0 1px 0 rgba(255,255,255,.14)!important;
  transition:transform .17s ease,filter .17s ease,box-shadow .17s ease;
}
body.ai-platform .btn.primary:hover,body.ai-platform .submit-analysis:hover,
body.ai-platform .lookup-action:hover {
  background:linear-gradient(125deg,#0B8F85,#149D90)!important;
  transform:translateY(-1px);
  box-shadow:0 9px 23px rgba(0,116,112,.30)!important;
}
body.ai-platform .btn.ghost {background:#1D3546!important;border:1px solid #517180!important;
 color:#EAF5F4!important;border-radius:11px!important}
body.ai-platform .btn.ghost:hover {background:#294757!important;border-color:#7EA3AF!important}
body.ai-platform .btn:disabled,body.ai-platform button:disabled {filter:saturate(.5);box-shadow:none!important;transform:none}
/* Inputs: clear boundaries and visible focus with no bright backgrounds. */
body.ai-platform .field input:not([type="checkbox"]),body.ai-platform .field select,
body.ai-platform .field textarea,body.ai-platform .table-search,
body.ai-platform .permission-search input {
  background:#0C1D2D!important;color:var(--ava-text)!important;
  border:1px solid #547184!important;border-radius:11px!important;
  min-height:46px;
}
body.ai-platform input::placeholder,body.ai-platform textarea::placeholder {
  color:#A4BDCA!important;opacity:1;
}
body.ai-platform input:focus,body.ai-platform select:focus,body.ai-platform textarea:focus {
  border-color:#FFB547!important;box-shadow:0 0 0 3px rgba(255,181,71,.13)!important;
}
body.ai-platform input:focus-visible,body.ai-platform button:focus-visible,
body.ai-platform a:focus-visible,body.ai-platform select:focus-visible {
  outline:2px solid var(--ava-accent);outline-offset:3px;
}
/* Tables remain horizontal-scroll capable; adaptive table mobile rules are preserved. */
body.ai-platform .table-card {overflow:hidden}
body.ai-platform .table-card .section-head {padding:20px 22px 15px}
body.ai-platform .table-wrap {max-width:100%;overflow-x:auto!important;scrollbar-color:#4C7681 #182F3F}
body.ai-platform table th {
  background:#203C4C!important;color:#F0F7F7!important;
  font-weight:850;border-color:#466678!important;padding:14px 16px;
}
body.ai-platform table td {color:#DFEDF2!important;border-color:#355366!important;padding:14px 16px}
body.ai-platform table tbody tr:nth-child(even){background:rgba(140,207,210,.035)!important}
body.ai-platform table tbody tr:hover {background:rgba(0,116,112,.13)!important}
body.ai-platform .table-toolbar {background:#152A3A!important;border-color:#345267!important}
body.ai-platform .table-pagination button,body.ai-platform .table-page {
  border-radius:9px;border-color:#4D6C80;color:#EAF5F4;background:#203A4D;
}
body.ai-platform .table-pagination .active,body.ai-platform .table-page.active {
  background:#007470!important;border-color:#37B0A2!important;color:#fff!important;
}
body.ai-platform .status-completed,body.ai-platform .status-approved {
  background:#123D32!important;border-color:#387E66!important;color:#C2FFE3!important;
}
body.ai-platform .status-processing,body.ai-platform .status-queued {
  background:#283A4B!important;border-color:#557D94!important;color:#E5F6FF!important;
}
body.ai-platform .status-pending {background:#45341E!important;border-color:#9D783C!important;color:#FFE3AE!important}
body.ai-platform .status-failed,body.ai-platform .status-rejected {
  background:#482A37!important;border-color:#AB657C!important;color:#FFD6DE!important;
}
body.ai-platform .request-row {border-color:#3F6071;background:#1B3444}
body.ai-platform .request-row:hover {background:#244658;border-color:#468B8A}
@media (max-width:700px) {
 body.ai-platform .card,body.ai-platform .table-card,body.ai-platform .acip-card{border-radius:14px!important}
 body.ai-platform .metric {min-height:100px;padding:15px 16px}
 body.ai-platform .metric strong{font-size:27px}
 body.ai-platform .adaptive-table tr{background:#1C3445!important;border:1px solid #426477!important}
 body.ai-platform .adaptive-table td{padding:9px 13px!important;border-bottom-color:#3D5767!important}
 body.ai-platform .adaptive-table td::before{color:#B9D0DD!important}
}
@media(prefers-reduced-motion:reduce){
 body.ai-platform .btn.primary,body.ai-platform .submit-analysis,body.ai-platform .lookup-action{transition:none}
}
