/* =========================================================
   SPK Kualitas Cengkeh — Agri Intelligence Control Center
   STRUCTURAL DESIGN SYSTEM
   ========================================================= */

:root {
    --deep-forest: #143D34;
    --forest: #1D5547;
    --forest-soft: #1E5547;
    --emerald: #1B8F6A;
    --emerald-700: #177A5C;
    --copper: #C4773E;
    --amber: #D99A2B;
    --amber-100: #FFF3D8;
    --warm-ivory: #F5F1E9;
    --warm-panel: #F0EAE1;
    --card: #FFFFFF;
    --charcoal: #1F2A27;
    --text-secondary: #56635F;
    --text-muted: #72807A;
    --border: #E2DDD4;
    --border-strong: #D2CCC2;
    --red: #C64A3C;
    --red-100: #FDE9E5;
    --blue: #286D9C;
    --blue-100: #E8F3FB;
    --shadow-sm: 0 1px 3px rgba(30, 60, 50, 0.04);
    --shadow-md: 0 6px 24px rgba(30, 60, 50, 0.06);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --sidebar-width: 232px;
    --topbar-height: 58px;
    --ease: 160ms ease;

    /* aliases for older class names */
    --forest-900: var(--deep-forest);
    --forest-800: var(--forest);
    --emerald-600: var(--emerald);
    --emerald-500: #35A77A;
    --copper-600: var(--copper);
    --copper-700: #A85C2E;
    --amber-500: var(--amber);
    --amber-600: var(--amber);
    --red-600: var(--red);
    --blue-600: var(--blue);
    --bg-page: var(--warm-ivory);
    --bg-soft: var(--warm-panel);
    --bg-card: var(--card);
    --bg-muted: #FAF7F1;
    --text-primary: var(--charcoal);
    --navy-900: var(--deep-forest);
    --navy-800: var(--forest);
    --navy-700: var(--deep-forest);
    --surface-page: var(--warm-ivory);
    --surface-card: var(--card);
    --surface-soft: var(--bg-muted);
    --input-border: var(--border-strong);
    --danger: var(--red);
    --success: var(--emerald);
    --warning: var(--amber);
    --info: var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    font-size: 16px;
    /* Prevent layout jump when page scrollbar appears/disappears (Data pages vs Dashboard) */
    scrollbar-gutter: stable;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--charcoal);
    background: var(--warm-ivory);
    overflow-x: hidden;
}
a { color: var(--emerald); }
a:hover { color: var(--emerald-700); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

h1, h2, h3, .page-title, .command-title, .bento-title, .section-title,
.workspace-title, .criteria-editorial-name, .metric-value, .kpi-value, .empty-title {
    font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-title { font-size: 32px; font-weight: 800; color: var(--charcoal); margin: 0; line-height: 1.2; }
.page-subtitle { font-size: 17px; color: var(--text-secondary); margin: 6px 0 0; }
.section-title { font-size: 22px; font-weight: 700; color: var(--charcoal); margin: 0; }
.section-sub { font-size: 15px; color: var(--text-secondary); margin: 4px 0 0; }

/* ===== APP SHELL ===== */
.app-shell { display: flex; min-height: 100vh; background: var(--warm-ivory); }
/* Single responsive sidebar (offcanvas below xl, static above xl) */
.app-sidebar {
    --bs-offcanvas-width: var(--sidebar-width);
    background: var(--deep-forest) !important;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.app-sidebar .offcanvas-title { color: #fff; font-size: 16px; font-weight: 700; }
.app-sidebar-mobile-header {
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 16px 18px;
}
.app-sidebar-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.sidebar-root {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 1200px) {
    /*
     * Fixed desktop sidebar:
     * Halaman Dataset/Kriteria/Users/Model sering mengubah ada/tidaknya
     * scrollbar konten. Sidebar fixed + main margin mencegah kedipan reflow.
     */
    .app-shell {
        display: block;
        min-height: 100vh;
    }
    .app-sidebar.offcanvas-xl {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
        max-width: var(--sidebar-width) !important;
        height: 100vh !important;
        visibility: visible !important;
        transform: none !important;
        background: var(--deep-forest) !important;
        border-right: 1px solid rgba(255,255,255,.06) !important;
        z-index: 1030 !important;
        overflow: hidden;
    }
    .app-sidebar.offcanvas-xl .app-sidebar-mobile-header {
        display: none !important;
    }
    .app-sidebar.offcanvas-xl .app-sidebar-body {
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .app-main {
        margin-left: var(--sidebar-width);
        width: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1199.98px) {
    .app-sidebar {
        z-index: 1080;
    }
    .app-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
}
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-main-body { flex: 1; }
.content-wrap {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 28px 36px;
}

/* ===== SIDEBAR ===== */
.brand-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 20px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(145deg, var(--emerald), var(--copper));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.brand-title {
    font-family: Manrope, Inter, sans-serif;
    font-size: 15px; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.brand-tagline { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.72); margin-top: 2px; }
.brand-place { font-size: 12px; font-weight: 600; color: var(--copper); margin-top: 2px; }


.brand-emblem {
    position: relative;
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: #0A0A0A;
    color: #F3D2B0; font-size: 18px; flex-shrink: 0;
    box-shadow: 0 0 0 1.5px rgba(218,166,83,.55), 0 4px 12px rgba(0,0,0,.28);
}
.brand-emblem-ring { display: none; }
.brand-emblem picture,
.login-brand-emblem picture,
.login-card-emblem picture,
.auth-emblem picture {
    width: 100%;
    height: 100%;
    display: block;
    line-height: 0;
}
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}
.brand-mark { display: none; }
.sidebar-nav { padding: 10px 10px 16px; }
.menu-section { margin-bottom: 8px; }
.menu-label {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.45);
    margin: 14px 10px 8px;
}
.nav-link-app {
    position: relative;
    display: flex; align-items: center; gap: 11px;
    min-height: 44px; padding: 0 12px 0 14px;
    border-radius: 10px; color: rgba(255,255,255,.88);
    text-decoration: none; font-size: 15px; font-weight: 600;
    border: 0; background: transparent; width: 100%;
    /* No transform — avoids flicker when active state changes on navigation */
    transition: background 120ms ease, color 120ms ease;
}
.nav-ico {
    width: 30px; height: 30px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); font-size: 15px; flex-shrink: 0;
    transition: none;
}
.nav-ico i {
    display: block;
    line-height: 1;
}
.nav-link-app:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link-app:active { background: rgba(255,255,255,.12); color: #fff; }
.nav-link-app.active {
    background: rgba(255,255,255,.10);
    color: #fff; font-weight: 700;
    transition: none;
}
.nav-link-app.active::before {
    content: "";
    position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--copper);
}
.nav-link-app.active .nav-ico {
    background: var(--emerald);
    color: #fff;
    transition: none;
}
.nav-link-logout { color: rgba(255,255,255,.75); }
.nav-link-logout:hover { background: rgba(198,74,60,.22); color: #fff; }
.nav-link-logout .nav-ico { color: #ffb4aa; }
.sidebar-footer { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }

/* ===== TOPBAR ===== */
.app-topbar {
    height: var(--topbar-height);
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px 0 24px;
    backdrop-filter: blur(8px);
}
.topbar-context {
    display: flex; align-items: center; gap: 8px;
    min-width: 0; font-size: 14px; font-weight: 600;
}
.topbar-crumb { color: var(--text-muted); white-space: nowrap; }
.topbar-crumb.current { color: var(--charcoal); }
.topbar-sep { color: var(--border-strong); }
.btn-topbar-menu, .app-offcanvas-trigger {
    min-width: 40px; min-height: 40px; width: 40px; padding: 0;
    background: var(--deep-forest); border: 0; color: #fff; border-radius: 10px;
}
.btn-topbar-menu:hover { background: var(--forest); color: #fff; }
.btn-user-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--warm-ivory); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 12px 4px 4px; color: var(--charcoal);
}
.btn-user-chip:hover, .btn-user-chip:focus { background: #fff; color: var(--charcoal); }
.user-avatar, .avatar-initial {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--deep-forest); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.avatar-initial.sm { width: 34px; height: 34px; font-size: 13px; }
.user-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.user-role { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* ===== TOOLBAR / WORKSPACE ===== */
.page-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: flex-start; gap: 16px; margin-bottom: 18px;
}
.page-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-bottom: 16px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.filter-search { flex: 1 1 220px; min-width: 180px; }
.filter-select { flex: 0 1 160px; min-width: 140px; }
.toolbar-reset { font-size: 15px; font-weight: 600; color: var(--deep-forest); text-decoration: none; }
.toolbar-reset:hover { color: var(--emerald); }
.data-workspace {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 18px 20px 20px;
}
.workspace-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.workspace-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--charcoal); }
.workspace-count { font-size: 14px; font-weight: 650; color: var(--text-muted); }
.workspace-foot { margin-top: 16px; }
.summary-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
}
.summary-cell { padding: 18px 22px; border-right: 1px solid var(--border); }
.summary-cell:last-child { border-right: 0; }
.summary-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.summary-value { font-family: Manrope, Inter, sans-serif; font-size: 28px; font-weight: 800; color: var(--charcoal); margin-top: 4px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell-name { display: block; font-weight: 700; color: var(--charcoal); }
.user-cell-username { display: block; font-size: 14px; color: var(--text-muted); }

/* ===== COMMAND HEADER / DASHBOARD ===== */
.aicc-dashboard { display: flex; flex-direction: column; gap: 18px; }
.command-header, .ml-command-header {
    display: grid; grid-template-columns: 1.6fr .9fr; gap: 20px;
    min-height: 190px; padding: 28px 30px;
    border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, #143D34, #1E5547);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.command-header::after, .ml-command-header::after {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(196, 119, 62, .18);
}
.command-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 750; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 10px;
}
.command-accent {
    width: 18px; height: 3px; border-radius: 99px; background: var(--copper);
    display: inline-block;
}
.command-title {
    font-size: 34px; font-weight: 800; margin: 0 0 8px; line-height: 1.15; color: #fff;
}
.command-desc { font-size: 16px; color: rgba(255,255,255,.78); margin: 0 0 14px; max-width: 560px; }
.command-status {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 18px;
}
.command-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-command-primary {
    background: var(--emerald); border: 0; color: #fff; min-height: 44px;
    border-radius: 10px; padding: 0 18px; font-weight: 700;
}
.btn-command-primary:hover { background: #16785a; color: #fff; }
.btn-command-ghost {
    background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff;
    min-height: 44px; border-radius: 10px; padding: 0 18px; font-weight: 700;
}
.btn-command-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.command-header-aside { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.mini-flow {
    background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 16px 22px; min-width: 160px; text-align: center;
}
.mini-flow-node { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.88); }
.mini-flow-node.accent { color: #F0C090; }
.mini-flow-arrow { color: rgba(255,255,255,.4); font-size: 12px; line-height: 1.4; }

/* KPI STRIP */
.kpi-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); overflow: hidden;
}
.kpi-cell { padding: 22px 26px; border-right: 1px solid var(--border); }
.kpi-cell:last-child { border-right: 0; }
.kpi-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-muted);
}
.kpi-value { font-size: 36px; font-weight: 800; color: var(--charcoal); margin-top: 6px; line-height: 1; }

/* BENTO */
.bento-grid {
    display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px;
}
.bento-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 22px 24px;
}
.bento-model { background: var(--warm-panel); border-color: #E4D9CC; }
.bento-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 18px;
}
.bento-title { font-size: 22px; font-weight: 750; margin: 0; color: var(--charcoal); }
.bento-sub { font-size: 15px; color: var(--text-secondary); margin: 4px 0 0; }
.bento-link { font-size: 15px; font-weight: 700; color: var(--emerald); text-decoration: none; white-space: nowrap; }
.bento-link:hover { color: var(--emerald-700); }
.bento-chip {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(196,119,62,.16); color: var(--copper);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.class-counters {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.class-counter {
    background: var(--warm-ivory); border-radius: 12px; padding: 14px 16px;
    position: relative; overflow: hidden;
}
.class-counter-label { font-size: 12px; font-weight: 750; letter-spacing: .06em; color: var(--text-muted); }
.class-counter-value { font-size: 30px; font-weight: 800; color: var(--charcoal); margin-top: 4px; }
.class-counter-dot {
    position: absolute; right: 14px; top: 16px;
    width: 10px; height: 10px; border-radius: 50%;
}
.tone-emerald .class-counter-dot { background: var(--emerald); }
.tone-amber .class-counter-dot { background: var(--amber); }
.tone-danger .class-counter-dot { background: var(--red); }
.readiness-meta, .model-intel-metrics {
    display: flex; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 16px;
}
.meta-label { display: block; font-size: 13px; font-weight: 650; color: var(--text-muted); }
.model-intel-status { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.model-intel-note { font-size: 15px; color: var(--text-secondary); margin: 0 0 16px; }

/* PIPELINE */
.pipeline-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 22px 24px;
}
.pipeline-head { margin-bottom: 18px; }
.pipeline-track {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap;
}
.pipeline-step {
    display: flex; align-items: center; flex: 1; min-width: 0;
}
.pipeline-node {
    background: var(--warm-ivory); border-radius: 12px; padding: 14px 12px;
    text-align: center; width: 100%;
}
.pipeline-index {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 13px; font-weight: 800; margin-bottom: 6px;
}
.pipeline-label { display: block; font-size: 14px; font-weight: 750; color: var(--charcoal); }
.pipeline-state-text { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.pipeline-connector {
    width: 28px; height: 2px; background: var(--border-strong); flex-shrink: 0; margin: 0 4px;
}
.state-complete .pipeline-index { background: rgba(27,143,106,.15); color: var(--emerald); }
.state-complete .pipeline-state-text { color: var(--emerald); }
.state-current .pipeline-node { background: #F8EDE3; }
.state-current .pipeline-index { background: var(--copper); color: #fff; }
.state-current .pipeline-state-text { color: var(--copper); }
.state-pending .pipeline-index { background: #E8E4DC; color: #8A918C; }

/* ===== CRITERIA EDITORIAL ===== */
.criteria-editorial {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.criteria-editorial-card {
    position: relative; overflow: hidden;
    min-height: 200px; padding: 24px 26px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.criteria-editorial-card::before {
    content: ""; position: absolute; top: 0; right: 0;
    width: 64px; height: 4px; background: var(--copper); border-radius: 0 16px 0 8px;
}
.criteria-watermark {
    position: absolute; right: 16px; bottom: 4px;
    font-family: Manrope, Inter, sans-serif;
    font-size: 84px; font-weight: 800; line-height: 1;
    color: rgba(20,61,52,.06); pointer-events: none;
}
.criteria-editorial-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; z-index: 1; }
.criteria-editorial-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--warm-ivory); color: var(--deep-forest);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.tone-k2 .criteria-editorial-icon { color: var(--blue); }
.tone-k3 .criteria-editorial-icon { color: var(--copper); }
.tone-k4 .criteria-editorial-icon { color: var(--emerald); }
.criteria-editorial-code { font-size: 13px; font-weight: 750; letter-spacing: .08em; color: var(--text-muted); }
.criteria-editorial-name {
    font-size: 22px; font-weight: 800; margin: 0 0 10px; color: var(--charcoal);
    position: relative; z-index: 1;
    text-transform: uppercase; letter-spacing: .02em;
}
.criteria-editorial-meta {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; position: relative; z-index: 1;
}
.criteria-editorial-meta span {
    font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
    background: var(--warm-ivory); color: var(--text-secondary);
    border-radius: 999px; padding: 5px 10px;
}
.criteria-editorial-desc {
    font-size: 15px; color: var(--text-secondary); margin: 0; max-width: 90%;
    position: relative; z-index: 1;
}

/* ===== ML CONSOLE ===== */
.ml-console { display: flex; flex-direction: column; gap: 16px; }
.ml-command-header { min-height: 170px; }
.ml-command-visual { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.ml-cpu-orb {
    width: 88px; height: 88px; border-radius: 24px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 36px; color: #F0C090;
}
.ml-status-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.ml-status-cell { padding: 18px 22px; border-right: 1px solid var(--border); }
.ml-status-cell:last-child { border-right: 0; }
.ml-status-value {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 800; color: var(--charcoal); margin-top: 4px;
}
.ml-readiness-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 16px; }
.ml-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 22px 24px;
}
.ml-config { background: var(--warm-panel); border-color: #E4D9CC; }
.ready-steps { list-style: none; margin: 0; padding: 0; }
.ready-step {
    display: grid; grid-template-columns: 36px 1fr 24px; gap: 10px;
    align-items: center; min-height: 44px;
    border-bottom: 1px solid var(--border); padding: 6px 0;
}
.ready-step:last-child { border-bottom: 0; }
.ready-num { font-size: 13px; font-weight: 800; color: var(--text-muted); }
.ready-label { font-size: 16px; font-weight: 600; color: var(--charcoal); }
.ready-step.is-ok .ready-icon { color: var(--emerald); }
.ready-step.is-pending .ready-icon { color: var(--text-muted); }
.config-list { margin: 0; }
.config-list > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.config-list > div:last-child { border-bottom: 0; }
.config-list dt { font-size: 14px; font-weight: 650; color: var(--text-muted); margin: 0; }
.config-list dd { font-size: 15px; font-weight: 750; color: var(--charcoal); margin: 0; }
.ml-train-action {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 20px 24px; text-align: center;
}
.btn-train { min-width: 260px; min-height: 50px; font-size: 16px; font-weight: 750; }
.train-hint { font-size: 15px; color: var(--text-secondary); margin: 12px 0 0; }
.ml-eval-area {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 20px 22px;
}
.eval-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px;
}
.eval-metric {
    background: var(--warm-ivory); border-radius: 12px; padding: 16px 18px;
}
.eval-matrix-block { margin-top: 8px; }

/* ===== BUTTONS ===== */
.btn {
    min-height: 46px; padding: 0 18px; border-radius: 10px;
    font-size: 16px; font-weight: 650;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 15px; font-weight: 600; }
.btn-primary, .btn-primary-app {
    background: var(--emerald); border: 1.5px solid var(--emerald); color: #fff;
}
.btn-primary:hover, .btn-primary-app:hover { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.btn-navy, .btn-secondary, .btn-secondary-app, .btn-outline-navy {
    background: #fff; border: 1.5px solid var(--deep-forest); color: var(--deep-forest);
}
.btn-navy:hover, .btn-secondary:hover, .btn-outline-navy:hover, .btn-secondary-app:hover {
    background: var(--deep-forest); border-color: var(--deep-forest); color: #fff;
}
.btn-danger, .btn-danger-app { background: var(--red); border: 1.5px solid var(--red); color: #fff; }
.btn-ghost-app, .btn-ghost { background: transparent; border: 1.5px solid transparent; color: var(--deep-forest); }
.btn-ghost-app:hover { background: var(--warm-ivory); }
.btn-soft-app {
    background: #F8EDE3; border: 1.5px solid #E8D4C4; color: var(--copper-700);
}
.btn-soft-app:hover { background: var(--amber-100); color: var(--deep-forest); }
.btn:disabled, .btn.disabled, .btn-model-disabled {
    background: #D8DFD9 !important; border-color: #D8DFD9 !important;
    color: #7C8A85 !important; cursor: not-allowed; opacity: 1; box-shadow: none;
}
.btn-icon { width: 36px; min-height: 36px; padding: 0; border-radius: 8px; }
.btn-hero { min-height: 46px; }

/* ===== CARDS / FORMS / TABLES ===== */
.card, .card-app {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.card-app { padding: 22px 24px; }
.form-label { font-size: 16px; font-weight: 600; color: var(--charcoal); margin-bottom: 7px; }
.form-text { font-size: 14px; color: var(--text-secondary); }
.form-control, .form-select {
    min-height: 48px; font-size: 16px; color: var(--charcoal);
    border: 1.5px solid var(--input-border); border-radius: 10px; background: #fff;
}
textarea.form-control { min-height: 100px; }
.form-control:focus, .form-select:focus {
    border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(27,143,106,.14);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--red); }
.invalid-feedback { font-size: 15px; }
.search-wrap { position: relative; }
.search-wrap .bi-search {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.search-wrap .form-control { padding-left: 40px; }
.form-page { max-width: 1040px; }

.table { font-size: 15px; margin: 0; border-collapse: separate; border-spacing: 0; }
.table thead th {
    background: var(--bg-muted); color: var(--charcoal); font-weight: 650; font-size: 14px;
    height: 48px; vertical-align: middle; border-bottom: 1px solid var(--border); border-top: 0; white-space: nowrap;
}
.table tbody td {
    height: 56px; vertical-align: middle; border-bottom: 1px solid var(--border); border-top: 0;
}
.table tbody tr:hover { background: #F7F3EB; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.matrix-table th, .matrix-table td { text-align: center; }

.badge-app, .badge-success, .badge-warning, .badge-danger, .badge-neutral, .badge-info {
    display: inline-flex; align-items: center; min-height: 28px;
    padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.badge-baik, .badge-success, .badge-validated, .badge-active { background: #E6F4EE; color: var(--emerald-700); }
.badge-sedang, .badge-warning, .badge-pending { background: var(--amber-100); color: #9A6B10; }
.badge-buruk, .badge-danger { background: var(--red-100); color: var(--red); }
.badge-inactive, .badge-neutral { background: var(--warm-panel); color: var(--text-secondary); }
.badge-info { background: var(--blue-100); color: var(--blue); }

.empty-state {
    text-align: center; min-height: 220px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px 16px;
}
.empty-state.compact { min-height: 200px; }
.empty-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--warm-ivory); color: var(--deep-forest);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 12px;
}
.empty-title { font-size: 20px; font-weight: 750; margin: 0; color: var(--charcoal); }
.empty-text { font-size: 15px; color: var(--text-secondary); margin: 8px 0 0; max-width: 420px; }

.alert {
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid transparent; border-left-width: 4px;
    background: #fff; color: var(--charcoal); font-size: 16px;
}
.alert-success { background: #F1FAF6; border-color: #B7E4D4; border-left-color: var(--emerald); }
.alert-warning { background: #FFF8EA; border-color: #F3D58A; border-left-color: var(--amber); }
.alert-danger { background: #FDF4F3; border-color: #F3C3BD; border-left-color: var(--red); }
.status-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.status-dot.online { background: var(--emerald); }
.status-dot.offline { background: var(--red); }
.status-dot.warn { background: var(--amber); }

.pagination .page-link {
    min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center;
    color: var(--deep-forest); border-color: var(--border); font-size: 15px;
}
.pagination .page-item.active .page-link {
    background: var(--emerald); border-color: var(--emerald); color: #fff;
}
.modal-title { font-size: 20px; font-weight: 700; color: var(--charcoal); }
.modal-body { font-size: 16px; }
.text-emerald { color: var(--emerald) !important; }
.text-amber { color: var(--amber) !important; }
.text-danger { color: var(--red) !important; }
.detail-label { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.detail-value { font-size: 16px; font-weight: 600; color: var(--charcoal); }
.detail-value-lg { font-size: 18px; font-weight: 700; color: var(--deep-forest); }
.metric-label { font-size: 14px; font-weight: 650; color: var(--text-secondary); }
.metric-value { font-size: 30px; font-weight: 800; color: var(--charcoal); margin-top: 4px; }

/* auth — register (centered card) */
.auth-page:not(.auth-split) {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
    background:
        radial-gradient(1100px 480px at 8% -8%, rgba(196,119,62,.16), transparent 50%),
        radial-gradient(900px 420px at 100% 0%, rgba(27,143,106,.14), transparent 45%),
        var(--warm-ivory);
}
.auth-card {
    width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow-md); padding: 32px; position: relative; overflow: hidden;
}
.auth-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--deep-forest), var(--emerald), var(--copper));
}
.auth-page:not(.auth-split) .auth-brand {
    font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--copper);
}
.auth-card h1 { font-size: 28px; margin: 8px 0 0; }

/* auth — login split (photo + ivory form) */
.login-shell {
    min-height: 100vh; min-height: 100dvh;
    display: grid; grid-template-columns: minmax(0, 66%) minmax(0, 34%);
    background: #EFE2D0; overflow-x: hidden;
    font-family: Inter, system-ui, sans-serif;
}
.login-visual {
    position: relative; overflow: hidden; color: #fff;
    display: flex; align-items: stretch;
}
.login-visual-photo {
    position: absolute; inset: 0;
    background-image: url("../images/auth/cengkeh-login.png");
    background-image:
        image-set(
            url("../images/auth/cengkeh-login.webp") type("image/webp"),
            url("../images/auth/cengkeh-login.png") type("image/png")
        );
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}
.login-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 18% 20%, rgba(8, 28, 22, .35) 0%, transparent 70%),
        linear-gradient(
            90deg,
            rgba(10, 37, 30, 0.96) 0%,
            rgba(15, 61, 50, 0.88) 42%,
            rgba(34, 27, 18, 0.25) 100%
        );
    pointer-events: none;
}
.login-deco {
    position: absolute; inset: 0; pointer-events: none; opacity: .14;
    background-image:
        radial-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
        linear-gradient(115deg, transparent 48%, rgba(218,166,83,.18) 49%, transparent 51%);
    background-size: 26px 26px, 100% 100%;
}
.login-deco::after {
    content: "";
    position: absolute; right: 8%; bottom: 12%;
    width: 180px; height: 180px; border-radius: 50%;
    border: 1px solid rgba(218,166,83,.35);
    box-shadow: 0 0 0 28px rgba(218,166,83,.06);
    opacity: .55;
}
.login-visual-content {
    position: relative; z-index: 1;
    width: 100%; max-width: 720px;
    padding: 44px 48px 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    animation: loginFadeUp .28s ease both;
}
.login-brand {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px;
}
.login-brand-emblem {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; overflow: hidden;
    background: #0A0A0A;
    border: 1.5px solid rgba(218,166,83,.65);
    box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
.login-brand-emblem .brand-logo-img,
.login-brand-emblem picture {
    width: 100%; height: 100%;
    display: block;
}
.login-brand-name {
    font-family: Manrope, Inter, sans-serif;
    font-size: 15px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(255,255,255,.92);
}
.login-brand-app {
    margin-top: 4px;
    font-family: Manrope, Inter, sans-serif;
    font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff;
}
.login-brand-place {
    margin-top: 6px; font-size: 14px; font-weight: 600;
    color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: 6px;
}
.login-brand-place i { color: #DCA05D; }
.login-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: #DCA05D; margin-bottom: 14px;
}
.login-eyebrow-line {
    width: 28px; height: 2px; border-radius: 2px; background: #DCA05D;
}
.login-hero h1 {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(40px, 3.3vw, 58px); font-weight: 700; line-height: 1.08;
    margin: 0 0 18px; letter-spacing: -.02em; color: #fff;
}
.login-hero h1 em {
    font-style: normal; color: #E3A45F;
}
.login-hero-desc {
    margin: 0 0 28px; max-width: 660px;
    font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,.84); font-weight: 500;
}
.login-hero-desc strong {
    color: #A8E6C5; font-weight: 700;
}
.login-process {
    display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap;
}
.login-process-card {
    flex: 1 1 140px; min-width: 0;
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(20, 40, 28, .60);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(215,158,83,.45);
    border-radius: 14px; padding: 16px 18px;
}
.login-process-ico {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(196,119,62,.22); color: #E3A45F; font-size: 16px;
}
.login-process-card strong {
    display: block; font-size: 13.5px; font-weight: 750;
    letter-spacing: .02em; color: #fff; margin-bottom: 2px;
}
.login-process-card span {
    display: block; font-size: 12.5px; line-height: 1.4;
    color: rgba(255,255,255,.78); font-weight: 500;
}
.login-process-arrow {
    display: grid; place-items: center;
    color: rgba(227,164,95,.85); font-size: 16px; padding: 0 2px;
}
.login-mobile-tagline { display: none; }

.login-panel {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px;
    background:
        radial-gradient(520px 280px at 78% 8%, rgba(196,119,62,.14), transparent 62%),
        radial-gradient(420px 240px at 12% 100%, rgba(23,77,59,.08), transparent 58%),
        linear-gradient(180deg, #F4E9D6 0%, #EAD9C0 100%);
}
.login-card {
    position: relative;
    width: min(100%, 420px);
    max-width: 420px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 4px 0;
    box-shadow: none;
    animation: loginFadeUp .28s ease both;
}
.login-mark {
    position: relative;
    width: 140px; height: 110px;
    margin: 0 auto 8px;
    display: grid; place-items: center;
}
.login-mark-watermark {
    position: absolute; inset: 0; width: 100%; height: 100%;
    color: rgba(120, 86, 48, .28);
    pointer-events: none;
}
.login-card-emblem {
    position: relative; z-index: 1;
    width: 92px; height: 92px;
    border-radius: 50%;
    display: grid; place-items: center;
    overflow: hidden;
    background: #0A0A0A;
    border: 2px solid rgba(196,119,62,.55);
    box-shadow:
        0 14px 32px rgba(70, 40, 16, .18),
        0 0 0 4px rgba(196,119,62,.10);
}
.login-card-emblem .brand-logo-img,
.login-card-emblem picture {
    width: 100%; height: 100%;
    display: block;
}
.login-heading { text-align: center; margin-bottom: 28px; }
.login-heading-eyebrow {
    font-size: 11.5px; font-weight: 750; letter-spacing: .24em;
    text-transform: uppercase; color: #1A4338; margin-bottom: 12px;
}
.login-heading h2 {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(34px, 2.6vw, 40px); font-weight: 750;
    color: #2A170E; margin: 0 0 12px; letter-spacing: -.025em;
}
.login-heading p,
.login-heading-desc {
    margin: 0 auto; max-width: 320px;
    font-size: 15.5px; line-height: 1.55; color: #5F4C3A; font-weight: 550;
}
.login-heading-desc--compact { display: none; }
.login-mobile-chips { display: none; }
.login-heading-rule {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    color: rgba(196,119,62,.55);
    font-size: 12px;
}
.login-heading-rule span {
    width: 36px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,119,62,.55), transparent);
}
.login-alert {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
    margin: 0 0 18px; padding: 12px 14px; border-radius: 14px;
    background: #FDEBE6; border-left: 4px solid #C64A3C;
    color: #8B3128; font-size: 14.5px; font-weight: 600; line-height: 1.4;
}
.login-alert i { color: #C64A3C; margin-top: 2px; }
.login-form { display: grid; gap: 18px; }
.login-field label {
    display: block; margin-bottom: 8px;
    font-size: 15px; font-weight: 700; color: #2A170E;
}
.login-input-wrap { position: relative; }
.login-input-ico {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: #7A624C; font-size: 17px; pointer-events: none;
}
.login-field input[type="text"],
.login-field input[type="password"] {
    width: 100%; height: 56px; border-radius: 999px;
    border: 1.5px solid #CDB79A;
    background: #FFF9F0;
    padding: 0 48px 0 50px;
    font-size: 15.5px; color: #2A170E; font-weight: 550;
    box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 6px 16px rgba(80,50,20,.06);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-field input::placeholder { color: #8F7864; }
.login-field input:focus {
    outline: none; border-color: #1B8F6A;
    box-shadow: 0 0 0 4px rgba(27,143,106,.14);
    background: #fff;
}
.login-field input.is-invalid {
    border-color: #C64A3C;
    box-shadow: 0 0 0 4px rgba(198,74,60,.10);
}
.login-password-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; min-width: 40px; border: 0; border-radius: 999px;
    background: transparent; color: #6F5846; display: grid; place-items: center;
    cursor: pointer; transition: color .18s ease, background .18s ease;
}
.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: #143D34; background: rgba(23,77,59,.08); outline: none;
}
.login-field-error {
    margin-top: 6px; font-size: 14.5px; font-weight: 600; color: #C64A3C;
}
.login-submit {
    width: 100%; height: 56px; min-height: 44px; margin-top: 6px;
    border: 0; border-radius: 999px;
    background: linear-gradient(180deg, #1F6A52 0%, #164A39 52%, #0F3428 100%);
    color: #fff; font-size: 16px; font-weight: 750;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 14px 28px rgba(15,52,40,.28);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #24785D 0%, #1A5642 52%, #134033 100%);
    box-shadow: 0 16px 32px rgba(15,52,40,.34);
}
.login-submit:active:not(:disabled) { transform: translateY(0); }
.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(27,143,106,.18), 0 14px 28px rgba(15,52,40,.28);
}
.login-submit:disabled { opacity: .88; cursor: wait; transform: none; }
.login-submit-label,
.login-submit-loading {
    display: inline-flex; align-items: center; gap: 8px;
}
.login-submit-label i { font-size: 15px; opacity: .95; }
.login-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: loginSpin .7s linear infinite;
}
.login-security {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 20px; font-size: 13.5px; font-weight: 600; color: #5F4C3A; text-align: center;
}
.login-security i { color: #1B5A45; font-size: 15px; }

.login-footer {
    display: flex; align-items: center; justify-content: center;
    margin-top: 14px; padding-top: 16px;
    border-top: 1px dashed rgba(31,106,82,.22);
    font-size: 14px; font-weight: 600; color: #5F4C3A; text-align: center;
}
.login-register-link {
    color: #1B5A45; font-weight: 750;
    text-decoration: none; border-bottom: 1px solid rgba(27,90,69,.4);
    transition: color .18s ease, border-color .18s ease;
}
.login-register-link:hover {
    color: #24785D; border-bottom-color: currentColor;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes loginSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .login-visual-content, .login-card { animation: none; }
    .login-spinner { animation: none; border-top-color: rgba(255,255,255,.8); }
    .login-submit:hover:not(:disabled) { transform: none; }
}

@media (max-width: 991.98px) {
    .login-shell { grid-template-columns: minmax(0, 48%) minmax(0, 52%); }
    .login-visual-content { padding: 32px 28px; }
    .login-hero h1 { font-size: clamp(32px, 4vw, 38px); }
    .login-hero-desc { font-size: 16px; margin-bottom: 20px; }
    .login-process-arrow { display: none; }
    .login-process { gap: 8px; }
    .login-process-card { padding: 12px 14px; }
    .login-card { width: min(100%, 380px); padding: 0; }
    .login-panel { padding: 32px 24px; }
}
@media (max-width: 767.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 100vh;
        min-height: 100dvh;
        background:
            radial-gradient(120% 60% at 50% 0%, #2A4A3C 0%, #152820 45%, #0F1C18 100%);
    }
    .login-visual {
        min-height: 0;
        height: auto;
        max-height: none;
        isolation: isolate;
    }
    .login-visual-photo {
        background-position: center 30%;
        filter: saturate(1.18) contrast(1.1) brightness(.9);
        transform: scale(1.04);
    }
    .login-overlay {
        background:
            radial-gradient(ellipse 80% 55% at 80% 20%, rgba(196,119,62,.22) 0%, transparent 55%),
            linear-gradient(
                180deg,
                rgba(8, 22, 18, 0.45) 0%,
                rgba(10, 30, 24, 0.68) 42%,
                rgba(12, 26, 22, 0.96) 100%
            );
    }
    .login-deco {
        display: block;
        opacity: .12;
        background-image:
            radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
        background-size: 18px 18px;
    }
    .login-deco::after {
        display: block;
        right: -20px; top: -30px; bottom: auto;
        width: 140px; height: 140px;
        border-color: rgba(227,164,95,.35);
        box-shadow: 0 0 0 18px rgba(227,164,95,.06);
        opacity: .7;
    }
    .login-visual-content {
        padding: 16px 16px 22px;
        justify-content: flex-start;
        max-width: none;
        gap: 8px;
    }
    .login-brand {
        margin-bottom: 2px;
        align-items: center;
        gap: 11px;
    }
    .login-brand-emblem {
        width: 44px; height: 44px;
        border: 1.5px solid rgba(240,192,144,.85);
        box-shadow:
            0 0 0 3px rgba(196,119,62,.18),
            0 6px 14px rgba(0,0,0,.35);
    }
    .login-brand-name {
        font-size: 10.5px; letter-spacing: .14em;
        color: #F0C090;
    }
    .login-brand-app {
        font-size: 17px; margin-top: 1px;
        text-shadow: 0 2px 10px rgba(0,0,0,.45);
    }
    .login-brand-place {
        font-size: 12px; margin-top: 3px;
        color: rgba(255,255,255,.88);
    }
    .login-brand-place i { color: #E3A45F; }
    .login-eyebrow,
    .login-hero,
    .login-hero-desc,
    .login-process { display: none; }
    .login-mobile-tagline {
        display: block;
        margin: 4px 0 0;
        padding: 0 2px;
        font-family: Manrope, Inter, sans-serif;
        font-size: 17px;
        font-weight: 750;
        line-height: 1.28;
        letter-spacing: -.015em;
        color: #fff;
        text-shadow: 0 2px 12px rgba(0,0,0,.4);
    }
    .login-mobile-tagline em {
        font-style: normal;
        color: #E8B06A;
    }
    .login-mobile-tagline::after { display: none; }
    .login-mobile-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }
    .login-mobile-chips span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: .02em;
        color: #F6E2C4;
        background: rgba(20, 40, 28, .55);
        border: 1px solid rgba(215,158,83,.42);
        backdrop-filter: blur(6px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }
    .login-mobile-chips i {
        font-size: 12px;
        color: #E3A45F;
    }
    .login-panel {
        position: relative;
        padding: 0 12px max(12px, env(safe-area-inset-bottom));
        align-items: stretch;
        min-height: 0;
        background:
            radial-gradient(120% 80% at 50% 0%, #3A5A48 0%, transparent 42%),
            linear-gradient(180deg, #1A2E27 0%, #E9D5B6 18%, #E4CFAF 100%);
    }
    .login-card {
        position: relative;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 100%;
        margin: -14px 0 0;
        padding: 20px 16px 16px;
        border-radius: 24px;
        background:
            radial-gradient(120px 80px at 50% 0%, rgba(196,119,62,.14), transparent 70%),
            linear-gradient(180deg, #FFF8EE 0%, #F4E4CC 100%);
        border: 1px solid rgba(196,119,62,.28);
        box-shadow:
            0 18px 40px rgba(12, 24, 20, .28),
            0 2px 0 rgba(255,255,255,.55) inset;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
    .login-card::before {
        content: "";
        position: absolute;
        left: 18px; right: 18px; top: 0;
        height: 3px;
        border-radius: 0 0 8px 8px;
        background: linear-gradient(90deg, #174D3B, #C4773E, #174D3B);
        opacity: .9;
    }
    .login-mark {
        position: relative;
        width: 84px; height: 84px;
        margin: 0 auto 6px;
    }
    .login-mark::before {
        content: "";
        position: absolute;
        inset: 6px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(196,119,62,.28) 0%, transparent 70%);
        filter: blur(2px);
        z-index: 0;
    }
    .login-mark-watermark {
        display: block;
        color: rgba(140, 100, 55, .22);
        transform: scale(1.15);
    }
    .login-card-emblem {
        width: 72px; height: 72px;
        border-width: 2px;
        border-color: rgba(196, 119, 62, .7);
        box-shadow:
            0 10px 22px rgba(40, 24, 10, .22),
            0 0 0 4px rgba(196,119,62,.10);
    }
    .login-heading { margin-bottom: 12px; }
    .login-heading-eyebrow {
        font-size: 10.5px;
        letter-spacing: .2em;
        margin-bottom: 6px;
        color: #174D3B;
    }
    .login-heading h2 {
        font-size: 28px;
        margin-bottom: 6px;
        color: #1A0F08;
        letter-spacing: -.03em;
    }
    .login-heading-desc--full { display: none; }
    .login-heading-desc--compact {
        display: block;
        font-size: 13.5px;
        line-height: 1.4;
        color: #5A4534;
        max-width: 280px;
    }
    .login-heading-rule { display: flex; margin-top: 10px; }
    .login-form { gap: 12px; }
    .login-field label {
        font-size: 13.5px;
        margin-bottom: 6px;
        color: #1A0F08;
    }
    .login-field input[type="text"],
    .login-field input[type="password"] {
        height: 50px;
        border-color: #C9AF8C;
        background: #FFFCF7;
        font-size: 15px;
        box-shadow:
            0 1px 0 rgba(255,255,255,.8) inset,
            0 4px 12px rgba(70,40,16,.08);
    }
    .login-field input:focus {
        border-color: #1B8F6A;
        box-shadow: 0 0 0 4px rgba(27,143,106,.14), 0 4px 12px rgba(70,40,16,.06);
    }
    .login-input-ico {
        left: 16px;
        font-size: 16px;
        color: #7A5E45;
    }
    .login-field input[type="text"],
    .login-field input[type="password"] {
        padding: 0 44px 0 46px;
    }
    .login-password-toggle { color: #6F5846; }
    .login-submit {
        height: 50px;
        margin-top: 4px;
        font-size: 15.5px;
        letter-spacing: .01em;
        background: linear-gradient(180deg, #227A5D 0%, #164A39 52%, #0E3227 100%);
        box-shadow:
            0 12px 24px rgba(13,46,36,.30),
            inset 0 1px 0 rgba(255,255,255,.14);
    }
    .login-security {
        margin-top: 12px;
        padding: 8px 10px;
        border-radius: 999px;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        color: #5A4534;
        font-size: 12px;
        gap: 6px;
        background: rgba(255,255,255,.45);
        border: 1px solid rgba(185,153,111,.28);
    }
    .login-security i { color: #164A39; font-size: 14px; }
}
/* Short phones / DevTools docked: keep login in one viewport */
@media (max-width: 767.98px) and (max-height: 780px) {
    .login-visual-content { padding: 12px 14px 16px; gap: 6px; }
    .login-brand-emblem { width: 38px; height: 38px; }
    .login-brand-app { font-size: 15.5px; }
    .login-brand-place { display: none; }
    .login-mobile-tagline { font-size: 15px; }
    .login-mobile-chips span { padding: 4px 9px; font-size: 11px; }
    .login-panel { padding: 0 10px max(10px, env(safe-area-inset-bottom)); }
    .login-card {
        margin-top: -12px;
        padding: 16px 14px 12px;
        border-radius: 20px;
    }
    .login-mark { width: 68px; height: 68px; margin-bottom: 2px; }
    .login-card-emblem { width: 58px; height: 58px; }
    .login-heading { margin-bottom: 8px; }
    .login-heading-eyebrow { margin-bottom: 4px; font-size: 10px; }
    .login-heading h2 { font-size: 24px; margin-bottom: 4px; }
    .login-heading-desc--compact { font-size: 12.5px; }
    .login-heading-rule { margin-top: 8px; }
    .login-form { gap: 9px; }
    .login-field label { font-size: 13px; margin-bottom: 4px; }
    .login-field input[type="text"],
    .login-field input[type="password"],
    .login-submit { height: 46px; }
    .login-security { margin-top: 10px; font-size: 11.5px; padding: 6px 9px; }
}
@media (max-width: 767.98px) and (max-height: 680px) {
    .login-mobile-chips { display: none; }
    .login-heading-desc--compact { display: none; }
    .login-heading-rule { display: none; }
    .login-mark { width: 52px; height: 52px; margin-bottom: 2px; }
    .login-card-emblem { width: 46px; height: 46px; }
    .login-card { padding: 12px 12px 10px; margin-top: -10px; }
    .login-heading { margin-bottom: 6px; }
    .login-heading-eyebrow { display: none; }
    .login-heading h2 { font-size: 22px; margin-bottom: 0; }
    .login-mobile-tagline { font-size: 13.5px; }
}
@media (max-width: 389.98px) {
    .login-visual-content { padding: 12px 14px 16px; }
    .login-panel { padding-left: 8px; padding-right: 8px; }
    .login-card { padding: 14px 12px 12px; }
    .login-heading h2 { font-size: 24px; }
    .login-mobile-tagline { font-size: 15px; }
}
@media (min-width: 1280px) and (max-height: 900px) {
    .login-visual-content { padding: 32px 40px 28px; }
    .login-hero h1 { font-size: clamp(36px, 2.8vw, 46px); margin-bottom: 12px; }
    .login-hero-desc { font-size: 16px; margin-bottom: 18px; line-height: 1.55; }
    .login-brand { margin-bottom: 18px; }
    .login-process-card { padding: 12px 14px; }
    .login-panel { padding: 28px 32px; }
    .login-heading { margin-bottom: 18px; }
    .login-heading h2 { font-size: 34px; }
    .login-card-emblem { width: 76px; height: 76px; }
    .login-field input[type="text"],
    .login-field input[type="password"],
    .login-submit { height: 50px; }
    .login-form { gap: 14px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .command-header, .ml-command-header { grid-template-columns: 1fr; min-height: 0; }
    .command-header-aside, .ml-command-visual { display: none; }
    .bento-grid, .ml-readiness-grid, .criteria-editorial { grid-template-columns: 1fr; }
    .pipeline-track { flex-direction: column; gap: 10px; }
    .pipeline-connector { width: 2px; height: 16px; margin: 0 auto; }
    .pipeline-step { flex-direction: column; }
}
@media (max-width: 991.98px) {
    .content-wrap { padding: 18px 14px 28px; }
    .page-title, .command-title { font-size: 28px; }
    .kpi-strip, .summary-strip { grid-template-columns: 1fr 1fr; }
    .kpi-cell, .summary-cell { border-right: 0; border-bottom: 1px solid var(--border); }
    .kpi-cell:nth-child(odd), .summary-cell:nth-child(odd) { border-right: 1px solid var(--border); }
    .eval-metrics { grid-template-columns: 1fr 1fr; }
    .ml-status-strip { grid-template-columns: 1fr; }
    .ml-status-cell { border-right: 0; border-bottom: 1px solid var(--border); }
    .page-toolbar-actions .btn, .filter-bar .btn { width: 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-select { width: 100%; min-width: 0; }
}
@media (max-width: 575.98px) {
    .class-counters { grid-template-columns: 1fr; }
    .kpi-value { font-size: 30px; }
    .criteria-editorial-card { min-height: 180px; }
}
@media (min-width: 1280px) and (max-width: 1512px) {
    .command-title { font-size: 30px; }
    .kpi-value { font-size: 32px; }
    .content-wrap { padding: 22px 24px 32px; }
}


/* ===== USER / PREDICT RETAINED ===== */
.dash-hero {
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}
.dash-hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--emerald-600), var(--copper-600));
}
.dash-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-700); }
.dash-hero-title { font-size: 30px; font-weight: 800; color: var(--charcoal); margin: 8px 0 12px; line-height: 1.2; }
.dash-hero-desc { font-size: 16px; color: var(--text-secondary); max-width: 640px; }
.dash-hero-note { font-size: 15px; color: var(--text-secondary); }

.dash-flow {
    background: var(--warm-ivory);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
.dash-flow-node, .dash-flow-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
}
.dash-flow-node.accent { color: var(--emerald-700); }
.dash-flow-arrow { color: var(--text-muted); font-size: 14px; padding-left: 6px; }

.param-card { padding: 20px; }
.param-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.param-num { font-size: 13px; font-weight: 700; color: var(--emerald-600); letter-spacing: .06em; }
.param-title { font-size: 17px; font-weight: 700; color: var(--charcoal); margin: 0 0 6px; }
.param-desc { font-size: 15px; color: var(--text-secondary); }

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
}
.step-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.step-num { font-size: 13px; font-weight: 700; color: var(--emerald-600); }
.step-title { font-size: 17px; font-weight: 700; margin: 8px 0 6px; color: var(--charcoal); }
.step-desc { font-size: 15px; color: var(--text-secondary); }
.step-arrow { color: var(--text-muted); font-size: 20px; }

.predict-page, .result-page { max-width: 1040px; }
.history-page { max-width: none; }

.predict-model-status {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.predict-model-title { font-size: 17px; font-weight: 700; color: var(--charcoal); }
.predict-model-status p { font-size: 15px; color: var(--text-secondary); margin: 4px 0 0; }

.predict-card { padding: 24px 26px; }
.predict-card-title { font-size: 20px; font-weight: 700; color: var(--charcoal); margin: 0; }
.predict-card-sub { font-size: 15px; color: var(--text-secondary); margin: 4px 0 20px; }
.predict-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.predict-fieldset:disabled { opacity: .6; }
.predict-field { margin-bottom: 0; }
.predict-num {
    font-size: 12px; font-weight: 750; letter-spacing: .08em;
    color: var(--emerald); margin-bottom: 6px; text-transform: uppercase;
}

/* Shared form shell (dataset create/edit ↔ prediction) */
.form-shell, .predict-shell {
    display: grid;
    grid-template-columns: 1.7fr .85fr;
    gap: 16px;
    align-items: start;
}
.form-main, .predict-main {
    padding: 22px 24px;
}
.form-aside, .predict-aside {
    padding: 20px 22px;
    background: var(--warm-panel);
    border-color: #E5D8C8;
}
.form-page { max-width: 1100px; }
.dataset-form-page .form-actions,
.form-main .form-actions {
    justify-content: flex-start;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.input-group-text {
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-forest);
    background: var(--warm-ivory);
    border: 1.5px solid var(--input-border);
    border-left: 0;
}
.input-group .form-control {
    border-right: 0;
}
.input-group .form-control:focus {
    border-right: 0;
    z-index: 2;
}
.input-group .form-control:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--emerald);
}

.radio-card-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.radio-card-grid-2 { grid-template-columns: 1fr 1fr; }
.radio-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.radio-card { margin: 0; cursor: pointer; position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--charcoal);
    font-size: 15px;
    font-weight: 650;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.radio-card:hover .radio-card-body {
    border-color: var(--border-strong);
    background: var(--warm-ivory);
}
.quality-recommend {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(27, 143, 106, .28);
    background: linear-gradient(180deg, rgba(27,143,106,.08), rgba(255,255,255,.65));
}
.quality-recommend-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 14.5px; color: #1F2A27; margin-bottom: 8px;
}
.quality-recommend-head i { color: #1B8F6A; font-size: 16px; }
.quality-recommend-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .04em;
    background: #E8E4DC; color: #3B2417;
}
.quality-recommend-badge.is-baik { background: rgba(27,143,106,.16); color: #145A44; }
.quality-recommend-badge.is-sedang { background: rgba(196,119,62,.16); color: #8A4E1A; }
.quality-recommend-badge.is-buruk { background: rgba(198,74,60,.14); color: #8B3128; }
.quality-recommend-badge.is-pending { background: #EEE8DE; color: #6B5B4B; }
.quality-recommend-reasons {
    margin: 0 0 8px; padding-left: 18px;
    font-size: 13.5px; line-height: 1.45; color: #4A3B2F;
}
.quality-recommend-note {
    font-size: 12.5px; color: #6B5B4B; font-weight: 550;
}
.radio-card.is-recommended .radio-card-body {
    border-color: rgba(27,143,106,.55);
    box-shadow: 0 0 0 3px rgba(27,143,106,.10);
}
.quality-option-label { display: block; }
.quality-option-suggest {
    display: block; margin-top: 4px;
    font-size: 11px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: #1B8F6A;
}
.radio-card input:checked + .radio-card-body {
    border: 2px solid var(--emerald);
    background: rgba(27, 143, 106, .08);
    color: var(--deep-forest);
}

.predict-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.predict-actions .btn, .result-actions .btn { min-height: 46px; font-size: 16px; }
.btn-predict { min-height: 48px; }

.result-hero { padding: 24px; }
.result-class-label { font-size: 15px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.result-class-value { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 6px 0 12px; }
.result-hero-baik .result-class-value { color: var(--emerald-600); }
.result-hero-sedang .result-class-value { color: var(--amber-500); }
.result-hero-buruk .result-class-value { color: var(--red-600); }
.result-params-title { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 12px; }
.result-param-label { font-size: 14px; color: var(--text-muted); }
.result-param-value { font-size: 19px; font-weight: 700; color: var(--charcoal); }
.result-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.result-meta-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.result-meta-value { font-size: 15px; font-weight: 600; }
.result-note { font-size: 16px; color: var(--text-secondary); margin: 16px 0; }

.dataset-count { font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; }

.detail-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}
.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.detail-value-lg {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-900);
}

@media (min-width: 768px) {
    .radio-card-grid:not(.radio-card-grid-3) { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1199.98px) {
    .criteria-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-connector { display: none !important; }
    .model-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991.98px) {
    .content-wrap { padding: 20px 16px 28px; }
    h1, .page-title { font-size: 26px; }
    .dash-hero-title { font-size: 26px; }
    .predict-actions, .result-actions { display: grid; }
    .predict-actions .btn, .result-actions .btn, .page-header-actions .btn { width: 100%; }
    .result-meta { grid-template-columns: 1fr; }
    .filter-btn { width: 100%; min-width: 0; }
}

@media (max-width: 575.98px) {
    .criteria-grid { grid-template-columns: 1fr; }
    .model-meta { grid-template-columns: 1fr; }
    .card-app { padding: 18px; }
    .admin-stat, .dash-stat { min-height: 0; }
}

@media (min-width: 1280px) and (max-width: 1512px) {
    .dash-hero-title { font-size: 28px; }
    .admin-stat-value, .dash-stat-value, .metric-value { font-size: 30px; }
    .content-wrap { padding: 24px 28px 32px; }
}


/* =========================================================
   CLOVE INTELLIGENCE — PRODUCT POLISH LAYER
   ========================================================= */

.content-wrap { padding: 20px 24px 32px; }
.app-topbar { padding: 0 18px 0 22px; background: #fff; }
.topbar-context { font-size: 13px; }
.user-avatar { width: 34px; height: 34px; font-size: 13px; }
.user-name { font-size: 13px; }
.user-role { font-size: 11px; }

.clove-dashboard { display: flex; flex-direction: column; gap: 18px; }

.command-meta-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px;
    margin: 0 0 16px; max-width: 560px;
}
.command-meta-grid span {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 2px;
}
.command-meta-grid strong {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: 14.5px; font-weight: 750; color: #fff;
}
.command-meta-badge {
    font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em;
    border-radius: 999px; padding: 3px 8px;
}
.command-meta-badge.is-demo { background: rgba(240,192,144,.22); color: #F0C090; }
.command-meta-badge.is-field { background: rgba(160,230,190,.18); color: #A8E6C5; }

.kpi-strip .kpi-cell.is-link {
    text-decoration: none; color: inherit; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kpi-strip .kpi-cell.is-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30,60,50,.08);
}
.kpi-hint {
    margin-top: 6px; font-size: 13px; color: var(--text-secondary); font-weight: 550;
}

.ops-insight-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.ops-insight-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 14px 16px;
}
.ops-insight-card.tone-emerald { border-top: 3px solid var(--emerald); }
.ops-insight-card.tone-amber { border-top: 3px solid #E5A63B; }
.ops-insight-card.tone-muted { border-top: 3px solid #C9C1B6; }
.ops-insight-title {
    display: block; font-size: 12px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px;
}
.ops-insight-value {
    display: block; font-size: 18px; font-weight: 800; color: var(--charcoal); line-height: 1.25;
}
.ops-insight-hint {
    margin: 6px 0 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.4;
}

.insight-panel.is-clickable, .ml-status-panel.is-clickable {
    text-decoration: none; color: inherit; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.insight-panel.is-clickable:hover, .ml-status-panel.is-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30,60,50,.09);
}
.class-counter-bar {
    height: 6px; border-radius: 99px; background: rgba(0,0,0,.06); overflow: hidden; margin-top: 8px;
}
.class-counter-bar span { display: block; height: 100%; border-radius: 99px; background: currentColor; opacity: .55; }
.class-counter.tone-emerald { color: var(--emerald); }
.class-counter.tone-amber { color: #C4891A; }
.class-counter.tone-danger { color: #C23B3B; }
.class-counter-pct { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.class-counter-warn { margin-top: 4px; font-size: 12px; font-weight: 700; color: #9A6B10; }
.class-counter.is-empty { opacity: .92; }
.ml-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ml-chip {
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    border-radius: 999px; padding: 4px 9px; border: 1px solid var(--border); background: #fff;
}
.ml-chip.tone-active { background: #E6F4EE; color: var(--emerald-700); border-color: #C9E6D9; }
.ml-chip.tone-demo { background: #F8EDE3; color: var(--copper-700); border-color: #E8D4C4; }
.ml-chip.tone-research { background: #EAF3FF; color: #1F4E79; border-color: #D0E2F5; }
.ml-chip.tone-retrain { background: #FFF4E5; color: #9A6B10; border-color: #F0D9A8; }
.ml-chip.tone-none { background: #F3F1EC; color: #7A7268; }
.ml-note {
    margin: 12px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary);
}
.text-warn { color: #9A6B10 !important; }

.dash-split-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.dash-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 18px 20px;
}
.dash-empty { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.action-priority-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.action-priority-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
    text-decoration: none; color: inherit; background: #FBF9F6;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.action-priority-item:hover {
    border-color: rgba(27,143,106,.35); box-shadow: 0 8px 18px rgba(30,60,50,.06); transform: translateY(-1px);
}
.action-priority-item.tone-primary { border-left: 3px solid var(--emerald); }
.action-priority-ico {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(27,143,106,.1); color: var(--deep-forest); font-size: 16px;
}
.action-priority-copy { display: grid; gap: 2px; min-width: 0; }
.action-priority-copy strong { font-size: 15px; font-weight: 800; color: var(--charcoal); }
.action-priority-copy em { font-style: normal; font-size: 13.5px; color: var(--text-secondary); line-height: 1.35; }
.action-priority-arrow { color: var(--deep-forest); font-weight: 800; }

.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.activity-list li {
    display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
    padding: 10px 0; border-bottom: 1px dashed #E7E0D6;
}
.activity-list li:last-child { border-bottom: 0; }
.activity-dot {
    width: 9px; height: 9px; border-radius: 50%; margin-top: 6px;
    background: var(--emerald); box-shadow: 0 0 0 4px rgba(27,143,106,.12);
}
.activity-copy { display: grid; gap: 2px; min-width: 0; }
.activity-copy strong { font-size: 14.5px; font-weight: 800; color: var(--charcoal); }
.activity-copy span { font-size: 13.5px; color: var(--text-secondary); line-height: 1.35; }
.activity-list time {
    font-size: 12px; font-weight: 700; color: var(--text-secondary); white-space: nowrap;
}

.command-hero {
    display: grid;
    grid-template-columns: 1.7fr .9fr;
    gap: 20px;
    min-height: 0;
    padding: 22px 26px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #143D34 0%, #1B4F43 55%, #1E5547 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.command-hero::after {
    content: "";
    position: absolute; right: -30px; top: -50px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(196,119,62,.14);
}
.command-hero .command-title { font-size: 30px; margin-bottom: 6px; }
.command-hero .command-desc { font-size: 15px; margin-bottom: 12px; max-width: 520px; }
.command-hero .command-status { margin-bottom: 14px; font-size: 14px; }
.command-hero-flow { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.flow-rail {
    width: 100%; max-width: 200px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 14px 16px;
}
.flow-item {
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: rgba(255,255,255,.78);
    text-align: center; padding: 4px 0;
}
.flow-item.is-accent { color: #F0C090; }
.flow-line {
    width: 1px; height: 10px; margin: 0 auto;
    background: rgba(255,255,255,.22);
}

.kpi-strip { border-radius: 14px; }
.kpi-cell { padding: 18px 22px; }
.kpi-ico {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--warm-ivory); color: var(--deep-forest);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.kpi-label { gap: 8px; font-size: 12px; }
.kpi-value { font-size: 32px; margin-top: 8px; }

.intel-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 16px;
}
.insight-panel, .ml-status-panel, .workflow-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 20px 22px;
}
.ml-status-panel {
    background: linear-gradient(180deg, #F7F1E8 0%, #F0EAE1 100%);
    border-color: #E5D8C8;
    display: flex; flex-direction: column;
    position: relative;
}
.ml-status-panel::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--copper), #E5A63B);
}
.insight-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 16px;
}
.insight-title { font-size: 20px; font-weight: 750; margin: 0; color: var(--charcoal); }
.insight-sub { font-size: 14px; color: var(--text-secondary); margin: 4px 0 0; }
.insight-pill {
    font-size: 12px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; border-radius: 999px; padding: 6px 10px;
    white-space: nowrap;
}
.insight-pill.is-ready { background: #E6F4EE; color: var(--emerald-700); }
.insight-pill.is-wait { background: var(--amber-100); color: #9A6B10; }

.insight-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-bottom: 16px;
}
.insight-summary-item {
    background: var(--warm-ivory); border-radius: 12px; padding: 12px 14px;
}
.insight-summary-item strong {
    display: block; margin-top: 4px; font-size: 18px; font-weight: 800; color: var(--charcoal);
}
.class-insight-label {
    font-size: 12px; font-weight: 750; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.class-counters { gap: 10px; margin-bottom: 14px; }
.class-counter {
    border-radius: 12px; padding: 12px 14px;
    background: #FAF7F1; border: 1px solid transparent;
}
.class-counter.tone-emerald { background: #F2F9F5; border-color: #D7EBE2; }
.class-counter.tone-amber { background: #FFF8EB; border-color: #F0E0B8; }
.class-counter.tone-danger { background: #FDF5F3; border-color: #F0D4CF; }
.class-counter-value { font-size: 26px; }
.insight-foot {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.insight-note { font-size: 14px; color: var(--text-secondary); margin: 0; max-width: 70%; }

.ml-orb {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(196,119,62,.16); color: var(--copper);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.ml-status-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.ml-info-list {
    display: flex; flex-direction: column; gap: 0;
    margin-bottom: 16px; border-top: 1px solid rgba(0,0,0,.06);
}
.ml-info-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 14px; color: var(--text-secondary);
}
.ml-info-row strong { color: var(--charcoal); font-weight: 750; }

.workflow-panel { padding: 18px 22px; }
.workflow-head { margin-bottom: 14px; }
.workflow-track {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: flex-start; gap: 0;
}
.workflow-step {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
    text-align: center; min-width: 0; padding: 0 4px;
}
.workflow-circle {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; margin-bottom: 8px;
    background: #E8E4DC; color: #8A918C; z-index: 1;
}
.workflow-label { display: block; font-size: 13px; font-weight: 750; color: var(--charcoal); }
.workflow-state { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.workflow-line {
    position: absolute; top: 16px; left: calc(50% + 20px); right: calc(-50% + 20px);
    height: 2px; background: var(--border-strong); z-index: 0;
}
.workflow-step.state-complete .workflow-circle { background: rgba(27,143,106,.16); color: var(--emerald); }
.workflow-step.state-complete .workflow-state { color: var(--emerald); }
.workflow-step.state-complete .workflow-line { background: rgba(27,143,106,.35); }
.workflow-step.state-current .workflow-circle { background: var(--copper); color: #fff; }
.workflow-step.state-current .workflow-state { color: var(--copper); }

/* Predict / Result polish */
.predict-shell {
    display: grid; grid-template-columns: 1.7fr .85fr; gap: 16px; align-items: start;
}
.predict-main { padding: 22px 24px; }
.predict-aside { padding: 20px 22px; background: var(--warm-panel); border: 1px solid #E5D8C8; border-radius: 16px; }
.predict-aside-title { font-size: 15px; font-weight: 750; color: var(--charcoal); margin-bottom: 10px; }
.predict-aside-list { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 14px; }
.predict-aside-list li { margin-bottom: 8px; }
.predict-model-status {
    border-radius: 14px; padding: 14px 18px; margin-bottom: 16px;
    background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.predict-model-status.is-ready { border-left: 4px solid var(--emerald); }
.predict-model-status.is-offline { border-left: 4px solid var(--amber); }
.radio-card-body { min-height: 52px; border-radius: 12px; }
.btn-predict { min-width: 220px; }

.result-focus {
    text-align: center; background: #fff; border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow-md); padding: 28px 20px 24px;
    margin-bottom: 16px; position: relative; overflow: hidden;
}
.result-focus::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
}
.result-hero-baik.result-focus::before, .result-focus.result-hero-baik::before { background: var(--emerald); }
.result-hero-sedang.result-focus::before, .result-focus.result-hero-sedang::before { background: var(--amber); }
.result-hero-buruk.result-focus::before, .result-focus.result-hero-buruk::before { background: var(--red); }
.result-focus-mark {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
}
.result-hero-baik .result-focus-mark { background: #E6F4EE; color: var(--emerald); }
.result-hero-sedang .result-focus-mark { background: var(--amber-100); color: #9A6B10; }
.result-hero-buruk .result-focus-mark { background: var(--red-100); color: var(--red); }
.result-class-value { font-size: 40px; margin: 4px 0 10px; }
.result-param-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.result-param-block {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.result-meta-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 12px;
}
.empty-hint { font-size: 14px; color: var(--text-muted); margin: 10px 0 0; }

.dash-hero { padding: 20px 22px; }
.dash-hero-title { font-size: 28px; }
.dash-flow.compact { padding: 14px; min-height: 0; gap: 10px; }
.param-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--warm-ivory); color: var(--deep-forest);
    display: inline-flex; align-items: center; justify-content: center;
}
.ml-command-header { min-height: 0; padding: 22px 26px; }
.ml-command-header .command-title { font-size: 28px; }
.eval-metric {
    border: 1px solid var(--border); background: #fff;
    box-shadow: var(--shadow-sm);
}
.filter-bar .filter-search { flex: 1.4 1 260px; }
.criteria-editorial-card { min-height: 210px; }

@media (max-width: 1199.98px) {
    .command-hero, .intel-grid, .predict-shell, .form-shell, .ops-insight-row, .dash-split-grid { grid-template-columns: 1fr 1fr; }
    .command-hero { grid-template-columns: 1fr; }
    .command-hero-flow { display: none; }
    .insight-summary { grid-template-columns: 1fr 1fr; }
    .radio-card-grid-3 { grid-template-columns: 1fr; }
    .workflow-track { flex-wrap: wrap; gap: 14px 0; }
    .workflow-step { flex: 0 0 33.33%; }
    .workflow-line { display: none; }
    .result-param-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
    .insight-summary { grid-template-columns: 1fr; }
    .result-meta-bar { grid-template-columns: 1fr; }
    .workflow-step { flex: 0 0 50%; }
    .intel-grid, .dash-split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .ops-insight-row { grid-template-columns: 1fr; }
    .command-meta-grid { grid-template-columns: 1fr; }
    .activity-list li { grid-template-columns: auto 1fr; }
    .activity-list time { grid-column: 2; }
}
@media (max-width: 575.98px) {
    .command-hero { padding: 18px; }
    .command-hero .command-title { font-size: 24px; }
    .result-param-grid { grid-template-columns: 1fr; }
    .workflow-step { flex: 0 0 100%; align-items: flex-start; text-align: left; flex-direction: row; gap: 12px; }
    .workflow-circle { margin-bottom: 0; }
}
@media (min-width: 1280px) and (max-width: 1512px) {
    .command-hero .command-title { font-size: 28px; }
    .kpi-value { font-size: 30px; }
    .content-wrap { padding: 18px 22px 28px; }
}


/* Continuity polish */
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.page-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-panel { padding: 22px 24px; }

/* ===== Dataset Detail ===== */
.dataset-detail-page { display: grid; gap: 14px; }
.dataset-detail-actions .btn { min-height: 42px; font-weight: 700; }
.dataset-detail-hero {
    display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px;
    border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F4EF 100%);
    box-shadow: var(--shadow-sm);
}
.dataset-detail-hero.is-demo {
    border-color: #E8D4C4;
    background: linear-gradient(135deg, #FFFCF8 0%, #FBF4EC 100%);
}
.dataset-detail-hero.is-field {
    border-color: #C9E6D9;
    background: linear-gradient(135deg, #FFFFFF 0%, #F1F8F4 100%);
}
.dataset-detail-kicker {
    display: block; font-size: 12px; font-weight: 750; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.dataset-detail-code {
    margin: 0 0 12px; font-size: 28px; font-weight: 800; color: var(--deep-forest); letter-spacing: .01em;
}
.dataset-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dataset-detail-status-card {
    height: 100%; border: 1px solid rgba(20,61,52,.08); border-radius: 14px;
    background: rgba(255,255,255,.78); padding: 14px 16px;
}
.dataset-detail-status-label {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.dataset-detail-status-card strong {
    display: block; font-size: 16px; font-weight: 800; color: var(--charcoal); margin-bottom: 6px;
}
.dataset-detail-status-card p {
    margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary);
}
.dataset-detail-notice {
    display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
    border: 1px solid #E8D4C4; border-radius: 14px; background: #FFF9F2; padding: 12px 14px;
}
.dataset-detail-notice i { color: var(--copper-700); font-size: 18px; margin-top: 2px; }
.dataset-detail-notice strong { display: block; font-size: 14px; color: #7A4E24; margin-bottom: 2px; }
.dataset-detail-notice p { margin: 0; font-size: 13.5px; color: #8A6848; line-height: 1.4; }

.dataset-detail-section {
    border: 1px solid var(--border); border-radius: 16px; background: #fff;
    box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.dataset-detail-section-head { margin-bottom: 14px; }
.dataset-detail-section-head h3 {
    margin: 0 0 2px; font-size: 16px; font-weight: 800; color: var(--deep-forest);
}
.dataset-detail-section-head p {
    margin: 0; font-size: 13.5px; color: var(--text-secondary);
}
.dataset-param-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.dataset-param-card {
    border: 1px solid var(--border); border-radius: 14px; background: #FBF9F6;
    padding: 14px 14px 12px; display: grid; gap: 6px;
}
.dataset-param-icon {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(27,143,106,.10); color: var(--deep-forest); font-size: 16px;
}
.dataset-param-label {
    font-size: 12px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-secondary);
}
.dataset-param-card strong {
    font-size: 20px; font-weight: 800; color: var(--charcoal); line-height: 1.2;
}
.dataset-param-card strong small {
    font-size: 13px; font-weight: 700; color: var(--text-secondary);
}

.dataset-detail-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.dataset-meta-list { display: grid; gap: 10px; margin: 0; }
.dataset-meta-list > div {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border-bottom: 1px dashed #E7E0D6; padding-bottom: 10px;
}
.dataset-meta-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dataset-meta-list span {
    font-size: 12px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-secondary);
}
.dataset-meta-list strong {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 15px; font-weight: 750; color: var(--charcoal); text-align: right;
}
.dataset-meta-em {
    font-style: normal; font-size: 12px; font-weight: 650; color: var(--copper-700);
}
.dataset-notes-box {
    border: 1px solid var(--border); border-radius: 12px; background: #FBF9F6; padding: 12px 14px;
}
.dataset-notes-box p {
    margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--charcoal);
}

@media (max-width: 991.98px) {
    .dataset-detail-hero, .dataset-detail-split, .dataset-param-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767.98px) {
    .dataset-detail-hero, .dataset-detail-split, .dataset-param-grid {
        grid-template-columns: 1fr;
    }
    .dataset-detail-code { font-size: 24px; }
    .dataset-meta-list > div { align-items: flex-start; flex-direction: column; }
    .dataset-meta-list strong { text-align: left; }
}

.result-meta-bar-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-cell, .class-counter, .criteria-editorial-card, .insight-panel, .ml-status-panel {
    transition: transform var(--ease), box-shadow var(--ease);
}
.kpi-cell:hover, .class-counter:hover {
    transform: translateY(-1px);
}
.criteria-editorial-card:hover, .insight-panel:hover, .ml-status-panel:hover {
    box-shadow: 0 10px 28px rgba(30, 60, 50, 0.08);
}
.btn, .radio-card-body {
    transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.form-page .card-app { margin-bottom: 14px; }
.form-page .form-shell > .card-app,
.predict-page .predict-shell > .card-app { margin-bottom: 0; }
.form-page .section-title { font-size: 18px; margin-bottom: 14px; }
@media (max-width: 991.98px) {
    .result-meta-bar-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .result-meta-bar-4 { grid-template-columns: 1fr; }
}


/* Auth + form sections + user dash continuity */
.auth-brand-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.auth-emblem { width: 44px; height: 44px; font-size: 18px; }
.auth-page:not(.auth-split) .auth-brand { margin: 0; font-size: 13px; }
.auth-page:not(.auth-split) .auth-brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.auth-page:not(.auth-split) .auth-footer { margin: 20px 0 0; font-size: 15px; color: var(--text-secondary); }
.auth-card .alert { margin-bottom: 16px; }

.form-section {
    padding: 20px 22px;
    margin-bottom: 14px;
}
.form-section-head {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.form-section-num {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--warm-ivory); color: var(--deep-forest);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.form-section .section-title { margin-bottom: 0; font-size: 18px; }

/* Dataset form: measurement vs expert ground-truth */
.dataset-form-section {
    padding: 20px 0 8px;
    margin: 0 0 8px;
    border-top: 1px solid var(--border);
}
.dataset-form-section:first-of-type {
    border-top: 0;
    padding-top: 4px;
}
.dataset-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.dataset-form-section-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(20, 61, 52, 0.08);
    color: var(--deep-forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.dataset-form-section-badge-gt {
    background: rgba(196, 119, 62, 0.16);
    color: #8A4E1A;
}
.dataset-form-section-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--deep-forest);
    font-family: Manrope, Inter, sans-serif;
}
.dataset-form-section-sub {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.dataset-form-section-gt {
    margin-top: 12px;
    padding: 20px 18px 8px;
    border-radius: 18px;
    border: 1px solid rgba(196, 119, 62, 0.28);
    background: linear-gradient(180deg, #FFFBF6 0%, #FFF8F0 100%);
}
.dataset-form-section-gt .dataset-form-section-head { margin-bottom: 14px; }
.dataset-gt-callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(196, 119, 62, 0.1);
    border: 1px solid rgba(196, 119, 62, 0.22);
    color: #5C4030;
    font-size: 14.5px;
    line-height: 1.55;
}
.dataset-gt-callout i {
    color: #C4773E;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.dataset-gt-callout strong { display: block; margin-bottom: 2px; color: #8A4E1A; }

/* Operational RF dataset create — polished layout */
.dataset-ops-page { max-width: 1180px; }
.dataset-ops-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(260px, .8fr);
    gap: 18px;
    align-items: start;
}
.dataset-ops-main {
    padding: 0 !important;
    overflow: hidden;
}
.dataset-ops-intro {
    padding: 24px 26px 20px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(27, 143, 106, 0.1), transparent 55%),
        linear-gradient(180deg, #FBFAF7 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}
.dataset-ops-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(27, 143, 106, 0.12);
    color: #145A44;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.dataset-ops-intro .predict-card-title { font-size: 22px; margin-bottom: 6px; }
.dataset-ops-intro .predict-card-sub { font-size: 15px; line-height: 1.55; max-width: 46rem; }

.dataset-ops-section {
    padding: 22px 26px;
    border-bottom: 1px solid #EDE7DC;
}
.dataset-ops-section:last-of-type { border-bottom: 0; }
.dataset-ops-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.dataset-ops-step {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(20, 61, 52, 0.08);
    color: var(--deep-forest);
}
.dataset-ops-step-analyze {
    background: rgba(27, 143, 106, 0.16);
    color: #145A44;
}
.dataset-ops-section-title {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 800;
    color: var(--deep-forest);
    font-family: Manrope, Inter, sans-serif;
}
.dataset-ops-section-sub {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.dataset-ops-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}
.dataset-ops-field {
    min-width: 0;
    width: 100%;
}
.dataset-ops-field .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.dataset-ops-field-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(27, 143, 106, 0.12);
    color: #1B8F6A;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.dataset-ops-page .form-control,
.dataset-ops-page .form-select,
.dataset-ops-page textarea.form-control {
    width: 100% !important;
    max-width: none !important;
    display: block;
}
.dataset-ops-input-group {
    width: 100%;
    display: flex;
}
.dataset-ops-input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
.dataset-ops-input-group > .input-group-text {
    flex: 0 0 auto;
}
.dataset-ops-notes {
    min-height: 110px !important;
    resize: vertical;
}
.dataset-ops-source {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 48px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    background: #F7F3EB;
    color: var(--text-secondary);
    font-size: 14.5px;
}
.dataset-ops-radio { width: 100%; }
.dataset-ops-radio .radio-card-body {
    min-height: 52px;
    border-radius: 12px;
    font-size: 15px;
}

.dataset-ops-analyze {
    background: linear-gradient(180deg, #F3FBF7 0%, #EEF8F3 100%);
}
.dataset-ops-model {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(27, 143, 106, 0.22);
    background: #fff;
}
.dataset-ops-model.is-offline {
    border-color: rgba(198, 74, 60, 0.28);
    background: #FFF8F7;
}
.dataset-ops-model-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: #1B8F6A;
    box-shadow: 0 0 0 4px rgba(27, 143, 106, 0.16);
}
.dataset-ops-model.is-offline .dataset-ops-model-dot {
    background: #C64A3C;
    box-shadow: 0 0 0 4px rgba(198, 74, 60, 0.14);
}
.dataset-ops-model-copy strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--deep-forest);
}
.dataset-ops-model-copy p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.dataset-ops-analyze-btn {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 750;
}
.dataset-ops-hint {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-emerald {
    background: linear-gradient(135deg, #1B8F6A, #145A44);
    border: 0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(27, 143, 106, 0.28);
}
.btn-emerald:hover, .btn-emerald:focus, .btn-emerald.is-ready:hover {
    background: linear-gradient(135deg, #20A078, #1B8F6A);
    color: #fff;
}
.btn-emerald:disabled,
.btn-emerald:disabled:hover {
    background: #B7C9C0;
    box-shadow: none;
    color: #fff;
    cursor: not-allowed;
}
.btn-emerald.is-ready:not(:disabled) {
    box-shadow: 0 12px 28px rgba(27, 143, 106, 0.34);
}

.dataset-rf-result {
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 28px 20px;
    text-align: center;
    min-height: 200px;
    display: grid;
    place-items: center;
}
.dataset-rf-result.is-empty,
.dataset-rf-result.is-stale { background: #F7F3EB; }
.dataset-rf-result.is-baik {
    border-color: rgba(27, 143, 106, 0.35);
    background: linear-gradient(180deg, #F3FBF7, #E8F6F0);
}
.dataset-rf-result.is-sedang {
    border-color: rgba(196, 119, 62, 0.35);
    background: linear-gradient(180deg, #FFF9F2, #FFF3E6);
}
.dataset-rf-result.is-buruk {
    border-color: rgba(198, 74, 60, 0.3);
    background: linear-gradient(180deg, #FFF6F5, #FDECEA);
}
.dataset-rf-result-empty,
.dataset-rf-result-stale,
.dataset-rf-result-body { width: 100%; max-width: 520px; }
.dataset-rf-empty-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    background: rgba(20, 61, 52, 0.08);
    color: #6B7C74;
    font-size: 22px;
}
.dataset-rf-empty-ico.is-warn {
    background: rgba(196, 119, 62, 0.16);
    color: #C4773E;
}
.dataset-rf-result-empty strong,
.dataset-rf-result-stale strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--deep-forest);
}
.dataset-rf-result-empty p,
.dataset-rf-result-stale p,
.dataset-rf-result-copy {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
}
.dataset-rf-result-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.dataset-rf-result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 26px;
    background: rgba(27, 143, 106, 0.14);
    color: #145A44;
}
.dataset-rf-result.is-sedang .dataset-rf-result-icon {
    background: rgba(196, 119, 62, 0.16);
    color: #8A4E1A;
}
.dataset-rf-result.is-buruk .dataset-rf-result-icon {
    background: rgba(198, 74, 60, 0.14);
    color: #8B3128;
}
.dataset-rf-result-class {
    font-family: Manrope, Inter, sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--deep-forest);
    margin-bottom: 8px;
}
.dataset-rf-result.is-sedang .dataset-rf-result-class { color: #8A4E1A; }
.dataset-rf-result.is-buruk .dataset-rf-result-class { color: #8B3128; }
.dataset-rf-result-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}
.dataset-rf-result-meta > div {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.dataset-rf-result-meta span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.dataset-rf-result-meta strong {
    font-size: 14px;
    color: var(--deep-forest);
}

.dataset-ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 26px 24px;
    border-top: 1px solid var(--border);
    background: #FBFAF7;
}
.dataset-ops-actions .btn { min-height: 48px; }
.dataset-ops-actions .btn-predict { min-width: 180px; }

.dataset-ops-aside {
    position: sticky;
    top: calc(var(--topbar-height) + 16px);
    padding: 22px !important;
}
.dataset-ops-aside-block + .dataset-ops-aside-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #E5D8C8;
}
.dataset-ops-steps-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}
.dataset-ops-steps-list li { margin-bottom: 8px; }

@media (max-width: 991.98px) {
    .dataset-ops-shell { grid-template-columns: 1fr; }
    .dataset-ops-aside { position: static; }
    .dataset-ops-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .dataset-ops-section,
    .dataset-ops-intro,
    .dataset-ops-actions { padding-left: 16px; padding-right: 16px; }
    .dataset-ops-radio.radio-card-grid-3 { grid-template-columns: 1fr; }
    .dataset-rf-result-meta { grid-template-columns: 1fr; }
    .dataset-ops-actions .btn { width: 100%; }
    .dataset-ops-actions .btn-predict { min-width: 0; }
}
.form-actions {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; margin-bottom: 8px;
}

.user-dashboard .kpi-strip { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.kpi-value-sm { font-size: 22px !important; margin-top: 10px; }
.user-param-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.user-param-grid .param-card { padding: 18px; margin: 0; }
.user-flow-track {
    list-style: none; margin: 0; padding: 16px 18px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.user-flow-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 8px 4px;
}
.user-flow-step .workflow-circle {
    background: rgba(27,143,106,.14); color: var(--emerald); margin-bottom: 0;
}
.dash-section { margin-bottom: 20px; }
.dash-section-last { margin-bottom: 0; }

@media (max-width: 1199.98px) {
    .user-param-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
    .user-dashboard .kpi-strip { grid-template-columns: 1fr; }
    .user-flow-track { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .user-param-grid { grid-template-columns: 1fr; }
    .form-actions .btn { width: 100%; }
}


/* =========================================================
   CLOVE INTELLIGENCE — FINAL PRODUCT PASS
   Compact MacBook density · premium hierarchy · calm surfaces
   ========================================================= */

:root {
    --topbar-height: 54px;
}

.content-wrap { padding: 18px 22px 28px; }
.clove-dashboard { gap: 14px; }

/* Sidebar brand refinement */
.brand-block { padding: 18px 14px 16px; }
.brand-title { font-size: 14px; letter-spacing: .06em; }
.brand-tagline { font-size: 11px; letter-spacing: .02em; }
.brand-place {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; margin-top: 4px;
}
.brand-place-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--copper); display: inline-block;
    box-shadow: 0 0 0 3px rgba(196,119,62,.18);
}
.brand-emblem {
    width: 40px; height: 40px; font-size: 17px;
}
.menu-label { margin: 12px 10px 6px; }
.nav-link-app { min-height: 42px; font-size: 14.5px; }

/* Topbar lighter */
.app-topbar {
    height: var(--topbar-height);
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}
.topbar-context { font-size: 12.5px; font-weight: 600; }
.btn-user-chip { padding: 3px 10px 3px 3px; }
.user-avatar { width: 32px; height: 32px; font-size: 12px; }
.user-name { font-size: 12.5px; }
.user-role { font-size: 11px; }

/* Compact command hero */
.command-hero {
    grid-template-columns: 1.75fr .85fr;
    padding: 18px 22px;
    border-radius: 16px;
    min-height: 0;
    align-items: center;
}
.command-hero .command-title {
    font-size: 28px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.command-hero .command-desc {
    font-size: 14.5px;
    margin-bottom: 10px;
    max-width: 480px;
    line-height: 1.45;
}
.command-hero .command-status { margin-bottom: 12px; font-size: 13.5px; }
.command-eyebrow { font-size: 11px; margin-bottom: 8px; }
.btn-command-primary, .btn-command-ghost {
    min-height: 40px; padding: 0 16px; font-size: 14.5px;
}
.flow-rail {
    max-width: 168px; padding: 12px 14px;
    background: rgba(0,0,0,.14);
}
.flow-item { font-size: 11px; padding: 3px 0; }
.flow-line { height: 8px; }

/* KPI denser */
.kpi-cell { padding: 16px 20px; }
.kpi-value { font-size: 30px; margin-top: 6px; }
.kpi-ico {
    width: 26px; height: 26px; font-size: 13px;
    background: #F3EEE4; color: var(--deep-forest);
}
.kpi-label { font-size: 11.5px; }

/* Intelligence panels */
.insight-panel, .ml-status-panel, .workflow-panel {
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(30,60,50,.05);
}
.insight-title { font-size: 18px; }
.insight-sub { font-size: 13.5px; }
.insight-summary { gap: 8px; margin-bottom: 14px; }
.insight-summary-item { padding: 10px 12px; border-radius: 10px; }
.insight-summary-item strong { font-size: 16px; }
.class-counter { padding: 10px 12px; border-radius: 10px; }
.class-counter-value { font-size: 24px; }
.insight-note { font-size: 13.5px; line-height: 1.45; }

.ml-status-panel { min-height: 100%; }
.ml-info-row { padding: 9px 0; font-size: 13.5px; }
.btn-soft-app { min-height: 42px; font-size: 14.5px; }

/* Workflow — slim, not boxy */
.workflow-panel { padding: 16px 20px 14px; }
.workflow-head { margin-bottom: 10px; }
.workflow-circle {
    width: 30px; height: 30px; font-size: 12px; margin-bottom: 6px;
}
.workflow-label { font-size: 12.5px; }
.workflow-state { font-size: 10.5px; }
.workflow-line { top: 14px; height: 2px; }

/* ML console */
.ml-command-header {
    padding: 16px 22px !important;
    min-height: 0 !important;
    align-items: center;
}
.ml-command-header .command-title { font-size: 26px !important; margin-bottom: 4px; }
.ml-command-header .command-desc { margin-bottom: 0; font-size: 14.5px; }
.ml-hero-chip {
    display: flex; align-items: center; gap: 12px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 12px 14px;
    position: relative; z-index: 1;
}
.ml-hero-chip-label {
    font-size: 11px; font-weight: 650; letter-spacing: .04em;
    text-transform: uppercase; color: rgba(255,255,255,.62);
}
.ml-hero-status {
    font-size: 15px; font-weight: 800; color: #F0C090; margin-top: 2px;
}
.ml-cpu-orb {
    width: 48px; height: 48px; border-radius: 14px; font-size: 22px;
}
.ml-status-strip { border-radius: 14px; }
.ml-status-cell { padding: 14px 18px; }
.ml-status-value { font-size: 16px; }
.ml-panel { padding: 18px 20px; }
.ready-check { list-style: none; margin: 0; padding: 0; }
.ready-check-item {
    display: flex; align-items: center; gap: 10px;
    min-height: 40px; padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.ready-check-item:last-child { border-bottom: 0; }
.ready-check-icon { font-size: 18px; line-height: 1; width: 22px; }
.ready-check-item.is-ok .ready-check-icon { color: var(--emerald); }
.ready-check-item.is-pending .ready-check-icon { color: var(--text-muted); }
.ready-check-label { font-weight: 600; color: var(--charcoal); }
.ml-train-action { padding: 16px 20px; }
.btn-train { min-height: 48px; min-width: 280px; }
.eval-metric {
    padding: 16px; border-radius: 12px;
    border-top: 3px solid var(--emerald);
}
.eval-metric:nth-child(2) { border-top-color: var(--copper); }
.eval-metric:nth-child(3) { border-top-color: var(--amber); }
.eval-metric:nth-child(4) { border-top-color: var(--blue); }
.eval-metric .metric-value { font-size: 28px; }
.ml-eval-area { padding: 18px 20px; }

/* Criteria editorial */
.criteria-editorial { gap: 14px; }
.criteria-editorial-card {
    min-height: 200px; padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(30,60,50,.05);
}
.criteria-editorial-name { font-size: 20px; margin-bottom: 8px; }
.criteria-watermark { font-size: 92px; opacity: .9; }

/* Dataset / tables */
.filter-bar {
    padding: 10px 12px; border-radius: 12px; gap: 8px; margin-bottom: 12px;
}
.filter-bar .form-control, .filter-bar .form-select { min-height: 44px; }
.data-workspace { padding: 16px 18px 18px; border-radius: 14px; }
.workspace-title { font-size: 16px; }
.table thead th { height: 44px; font-size: 13px; }
.table tbody td { height: 52px; font-size: 14.5px; }
.badge-app { min-height: 26px; font-size: 12.5px; padding: 5px 9px; }

/* Predict / result */
.predict-shell { gap: 14px; }
.predict-main { padding: 20px 22px; border-radius: 16px; }
.predict-aside { border-radius: 16px; padding: 18px 20px; }
.radio-card-body { min-height: 48px; font-size: 15px; }
.result-focus { padding: 24px 18px 20px; }
.result-class-value { font-size: 36px; }
.result-focus-mark { width: 52px; height: 52px; font-size: 22px; }
.result-param-block { border-radius: 12px; padding: 12px 14px; }
.page-title { font-size: 30px; letter-spacing: -0.02em; }
.page-subtitle { font-size: 15.5px; }
.page-toolbar { margin-bottom: 14px; }

/* User dash */
.dash-hero { padding: 18px 20px; border-radius: 16px; }
.dash-hero-title { font-size: 26px; }
.user-param-grid { gap: 10px; }
.param-card { border-radius: 12px; }
.user-flow-track { padding: 14px 16px; border-radius: 14px; }

/* Soften decorative hover for product calmness */
.kpi-cell:hover, .class-counter:hover { transform: none; }
.criteria-editorial-card:hover, .insight-panel:hover, .ml-status-panel:hover {
    box-shadow: 0 6px 20px rgba(30,60,50,.07);
}

.empty-state.compact { min-height: 200px; padding: 24px 16px; }
.empty-icon { width: 52px; height: 52px; font-size: 22px; }

@media (min-width: 1280px) and (max-width: 1512px) {
    .content-wrap { padding: 16px 20px 24px; }
    .command-hero { padding: 16px 20px; }
    .command-hero .command-title { font-size: 26px; }
    .kpi-value { font-size: 28px; }
    .insight-title { font-size: 17px; }
    .ml-command-header .command-title { font-size: 24px !important; }
}

@media (max-width: 1199.98px) {
    .ml-command-visual { display: flex !important; justify-content: flex-start; margin-top: 12px; }
}

/* ===== Dataset Import ===== */
.badge-source-demo { background: #F8EDE3; color: var(--copper-700); }
.badge-source-field { background: #E6F4EE; color: var(--emerald-700); }
.btn-copper {
    background: #F8EDE3; border: 1.5px solid #E8D4C4; color: var(--copper-700);
    font-weight: 700; min-height: 44px;
}
.btn-copper:hover { background: #F3E0D0; border-color: var(--copper); color: var(--copper-700); }
.import-demo-banner { font-size: 14px; }

.dataset-notice-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 14px;
    align-items: start;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #E8D4C4;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFF9F2 0%, #FBF4EC 100%);
    box-shadow: var(--shadow-sm);
}
.dataset-notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #F8EDE3;
    color: var(--copper-700);
    font-size: 18px;
    flex-shrink: 0;
}
.dataset-notice-body { min-width: 0; }
.dataset-notice-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 800;
    color: #7A4E24;
}
.dataset-notice-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #8A6848;
}
.dataset-notice-callout {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #E8D4C4;
    background: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    line-height: 1.45;
    color: #7A4E24;
}
.dataset-notice-callout strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 800;
}
.dataset-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.dataset-notice-actions .btn {
    min-height: 36px;
    font-weight: 700;
}
@media (max-width: 575.98px) {
    .dataset-notice-panel {
        grid-template-columns: 1fr;
    }
    .dataset-notice-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.import-steps {
    list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 18px;
    flex-wrap: wrap;
}
.import-step {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 14px; color: var(--text-secondary); font-size: 13px; font-weight: 650;
}
.import-step.is-active { border-color: var(--emerald); color: var(--deep-forest); background: rgba(27,143,106,.06); }
.import-step.is-done { border-color: #C9E6D9; color: var(--emerald); }
.import-step-num { font-size: 12px; letter-spacing: .06em; color: var(--emerald); font-weight: 750; }
.import-template-bar {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
    margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.import-template-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.import-help-values {
    background: var(--warm-ivory); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 16px; margin-bottom: 20px;
}
.import-help-title { font-size: 14px; font-weight: 750; color: var(--charcoal); margin-bottom: 8px; }
.import-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 14px; }
.import-help-grid ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-secondary); }
.import-dropzone {
    display: block; border: 1.5px dashed var(--border-strong); border-radius: 14px;
    background: var(--warm-ivory); padding: 28px 20px; text-align: center; cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.import-dropzone.is-dragover, .import-dropzone:hover {
    border-color: var(--emerald); background: rgba(27,143,106,.05);
}
.import-dropzone-idle i { font-size: 32px; color: var(--emerald); display: block; margin-bottom: 8px; }
.import-dropzone-title { font-size: 16px; font-weight: 700; color: var(--charcoal); }
.import-dropzone-sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.import-dropzone-file {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
}
.import-file-name { font-weight: 700; color: var(--charcoal); word-break: break-all; }
.import-file-size { font-size: 13px; color: var(--text-secondary); }
.import-stat-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px;
}
.import-stat { padding: 14px 16px; }
.import-stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--charcoal); line-height: 1.1; margin-top: 4px; }
.text-emerald { color: var(--emerald) !important; }
.import-summary-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 18px;
}
.import-summary-meta .summary-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.import-error-panel { border-left: 4px solid var(--red); }
.import-error-list { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 14px; }
.import-error-list li { margin-bottom: 6px; }
.import-row-invalid { background: rgba(220, 53, 69, .04); }
.import-source-alert { font-size: 14px; }
@media (max-width: 1199.98px) {
    .import-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .import-help-grid, .import-summary-meta, .import-stat-grid { grid-template-columns: 1fr 1fr; }
    .import-dropzone-file { flex-direction: column; align-items: stretch; }
    .import-page .predict-actions .btn { width: 100%; }
}
@media (max-width: 575.98px) {
    .import-stat-grid, .import-summary-meta, .import-help-grid { grid-template-columns: 1fr; }
}

.demo-manage-stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767.98px) {
    .demo-manage-stats { grid-template-columns: 1fr; }
}

/* ===== Train confirm modal ===== */
.train-modal-dialog { max-width: 520px; }
.train-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 61, 52, 0.22);
}
.train-modal-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(196,119,62,.28), transparent 42%),
        linear-gradient(135deg, #143D34 0%, #1B8F6A 72%, #2A9B75 100%);
    color: #fff;
}
.train-modal-hero-main { display: flex; align-items: center; gap: 14px; }
.train-modal-orb {
    width: 48px; height: 48px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
    font-size: 22px; flex-shrink: 0;
}
.train-modal-eyebrow {
    font-size: 11px; font-weight: 750; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 2px;
}
.train-modal-title { color: #fff !important; font-size: 22px; margin: 0; }
.train-modal-close { opacity: .85; margin-top: 2px; }
.train-modal-body { padding: 20px 22px 8px; }
.train-modal-lead {
    font-size: 15px; color: var(--text-secondary); margin: 0 0 16px; line-height: 1.5;
}
.train-modal-source {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--warm-ivory); margin-bottom: 12px;
}
.train-modal-source.is-demo { border-color: #E8D4C4; background: #FBF4EC; }
.train-modal-source.is-field { border-color: #C9E6D9; background: #F1F8F4; }
.train-modal-source-copy .summary-label {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px;
}
.train-modal-source-copy strong { font-size: 17px; color: var(--charcoal); }
.train-modal-note {
    font-size: 13px; color: #9A6B10; background: var(--amber-100);
    border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
}
.train-modal-kpi {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px;
}
.train-kpi {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 10px; text-align: center;
}
.train-kpi .summary-label {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.train-kpi strong { font-size: 22px; font-weight: 800; color: var(--charcoal); line-height: 1; }
.train-kpi.tone-baik { border-top: 3px solid var(--emerald); }
.train-kpi.tone-sedang { border-top: 3px solid var(--amber-500, #E5A63B); }
.train-kpi.tone-buruk { border-top: 3px solid var(--red, #C23B3B); }
.train-modal-config {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px;
}
.train-modal-config span {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 650; color: var(--deep-forest);
    background: rgba(27,143,106,.08); border: 1px solid rgba(27,143,106,.16);
    border-radius: 999px; padding: 6px 10px;
}
.train-modal-footer {
    border-top: 1px solid var(--border); padding: 14px 22px 18px;
    gap: 10px; justify-content: flex-end;
}
.btn-train-confirm { min-height: 46px; min-width: 170px; font-weight: 750; }
@media (max-width: 575.98px) {
    .train-modal-kpi { grid-template-columns: 1fr 1fr; }
    .train-modal-footer { flex-direction: column-reverse; }
    .train-modal-footer .btn, .train-modal-footer form { width: 100%; }
    .btn-train-confirm { width: 100%; }
}

/* ===== Train start animation (GPU-friendly) ===== */
.train-modal { position: relative; }
.train-modal-progress {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: rgba(255,255,255,.12); overflow: hidden; z-index: 2;
    opacity: 0; pointer-events: none;
    transition: opacity 160ms ease;
}
.train-modal.is-training .train-modal-progress { opacity: 1; }
.train-modal-progress-bar {
    display: block; width: 40%; height: 100%;
    background: linear-gradient(90deg, #F3C79A, #fff, #F3C79A);
    transform: translate3d(-120%, 0, 0);
    will-change: transform;
}
.train-modal.is-training .train-modal-progress-bar {
    animation: train-bar-slide 900ms linear infinite;
}
.train-modal.is-training .train-modal-orb {
    animation: train-orb-pulse 900ms ease-in-out infinite;
    will-change: transform;
}
.train-modal.is-training .train-modal-close,
.train-modal.is-training #btnCancelTrain { pointer-events: none; opacity: .45; }
.train-modal-busy {
    display: flex; align-items: center; gap: 14px;
    min-height: 168px; padding: 8px 2px 12px;
}
.train-busy-ring {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    border: 3px solid rgba(27,143,106,.18);
    border-top-color: var(--emerald);
    animation: train-spin 700ms linear infinite;
    will-change: transform;
}
.train-busy-copy { display: grid; gap: 4px; }
.train-busy-copy strong { font-size: 16px; color: var(--charcoal); }
.train-busy-copy span { font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
.btn-train-confirm.is-loading {
    min-width: 190px;
    pointer-events: none;
}
.train-btn-pulse {
    display: inline-block; width: 10px; height: 10px; margin-right: 8px;
    border-radius: 50%; background: #fff; vertical-align: middle;
    animation: train-dot-pulse 700ms ease-in-out infinite;
    will-change: transform, opacity;
}
.btn-train.is-training {
    position: relative; overflow: hidden;
}
.btn-train.is-training::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translate3d(-100%, 0, 0);
    animation: train-btn-shimmer 1.1s linear infinite;
    will-change: transform;
    pointer-events: none;
}

@keyframes train-bar-slide {
    0% { transform: translate3d(-120%, 0, 0); }
    100% { transform: translate3d(320%, 0, 0); }
}
@keyframes train-orb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes train-spin {
    to { transform: rotate(360deg); }
}
@keyframes train-dot-pulse {
    0%, 100% { transform: scale(1); opacity: .55; }
    50% { transform: scale(1.25); opacity: 1; }
}
@keyframes train-btn-shimmer {
    100% { transform: translate3d(100%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .train-modal-progress-bar,
    .train-modal.is-training .train-modal-orb,
    .train-busy-ring,
    .train-btn-pulse,
    .btn-train.is-training::after {
        animation: none !important;
    }
    .train-modal.is-training .train-modal-progress { opacity: 1; }
    .train-busy-ring {
        border-top-color: var(--emerald);
        opacity: .85;
    }
}

/* ===== Research Evaluation Console ===== */
.eval-console { display: flex; flex-direction: column; gap: 16px; }
.eval-hero {
    display: grid; grid-template-columns: 1.7fr .7fr; gap: 18px; align-items: center;
    padding: 24px 28px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 92% 18%, rgba(196,119,62,.30), transparent 40%),
        linear-gradient(135deg, #143D34 0%, #1A6B52 55%, #1B8F6A 100%);
    box-shadow: 0 14px 36px rgba(20, 61, 52, 0.18);
}
.eval-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.72); margin-bottom: 8px;
}
.eval-hero-accent {
    width: 18px; height: 3px; border-radius: 99px; background: var(--copper);
}
.eval-hero-title {
    font-size: 32px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; color: #fff;
}
.eval-hero-sub {
    font-size: 16px; color: rgba(255,255,255,.78); margin: 0 0 14px; max-width: 620px; line-height: 1.5;
}
.eval-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.eval-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.eval-hero-actions .btn-light {
    background: rgba(255,255,255,.92); color: var(--deep-forest); border: 0; font-weight: 700;
}
.eval-hero-actions .btn-light:hover { background: #fff; color: var(--deep-forest); }
.eval-chip {
    display: inline-flex; gap: 6px; align-items: center;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px; padding: 6px 12px; font-size: 13px; color: rgba(255,255,255,.88);
}
.eval-chip strong { color: #fff; font-weight: 750; }
.eval-hero-helper {
    font-size: 13.5px; color: #F8EDE3; margin: 0; max-width: 620px; line-height: 1.45;
}
.eval-hero-aside { display: flex; justify-content: center; }
.eval-hero-orb {
    width: 92px; height: 92px; border-radius: 28px;
    display: grid; place-items: center; font-size: 38px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.eval-demo-warning {
    display: flex; gap: 12px; align-items: flex-start;
    background: #FBF4EC; border: 1px solid #E8D4C4; border-left: 4px solid var(--copper);
    border-radius: 14px; padding: 12px 16px; color: #7A4E24; font-size: 14px; line-height: 1.45;
}
.eval-demo-warning i { color: var(--copper); font-size: 18px; margin-top: 2px; }
.eval-demo-warning strong { display: block; margin-bottom: 2px; color: #6A4018; }

.eval-section-title { font-size: 22px; font-weight: 800; color: var(--charcoal); margin: 0 0 4px; }
.eval-section-sub { font-size: 14.5px; color: var(--text-secondary); margin: 0; line-height: 1.45; }
.eval-section-head { margin-bottom: 14px; }

.eval-source-panel, .eval-score-panel, .eval-matrix-panel, .eval-insight-panel,
.eval-meta-panel, .eval-dist-panel, .eval-academic-card, .eval-empty-panel, .eval-actions {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 18px 20px;
}
.eval-source-head { margin-bottom: 12px; }
.eval-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eval-source-card { margin: 0; cursor: pointer; }
.eval-source-card input { position: absolute; opacity: 0; pointer-events: none; }
.eval-source-card-body {
    display: block; border: 1.5px solid var(--input-border); border-radius: 12px;
    padding: 14px 16px; background: #fff; transition: border-color 120ms ease, background 120ms ease;
}
.eval-source-card.is-active .eval-source-card-body,
.eval-source-card input:checked + .eval-source-card-body {
    border-color: var(--emerald); background: rgba(27,143,106,.06);
}
.eval-source-name { display: block; font-size: 16px; font-weight: 750; color: var(--charcoal); }
.eval-source-meta { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.eval-summary-strip {
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.eval-summary-cell {
    padding: 16px 18px; border-right: 1px solid var(--border);
}
.eval-summary-cell:last-child { border-right: 0; }
.eval-summary-label {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.eval-summary-cell strong {
    font-size: 20px; font-weight: 800; color: var(--charcoal); display: inline-flex; align-items: center; gap: 8px;
}
.eval-service.is-online { color: var(--emerald); }
.eval-service.is-offline { color: var(--amber-500, #C4773E); }

.eval-perf-grid {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: stretch;
}
.eval-score-panel {
    display: flex; gap: 18px; align-items: center;
    background: linear-gradient(160deg, #F4FBF7 0%, #fff 55%);
    border-top: 3px solid var(--emerald); padding: 22px;
}
.eval-score-ring-wrap { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.eval-score-ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.eval-score-track, .eval-score-value {
    fill: none; stroke-width: 7;
}
.eval-score-track { stroke: rgba(27,143,106,.14); }
.eval-score-value {
    stroke: var(--emerald); stroke-linecap: round;
    stroke-dasharray: 201; transition: stroke-dashoffset 400ms ease;
}
.eval-score-ring-label {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 18px; font-weight: 800; color: var(--deep-forest);
}
.eval-score-kicker {
    display: block; font-size: 12px; font-weight: 750; letter-spacing: .06em;
    text-transform: uppercase; color: var(--emerald); margin-bottom: 4px;
}
.eval-score-value-text {
    font-size: 54px; font-weight: 800; line-height: 1; color: var(--deep-forest); margin-bottom: 8px;
}
.eval-score-band {
    display: inline-flex; align-items: center;
    background: rgba(27,143,106,.1); color: var(--deep-forest);
    border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 750;
}
.eval-score-caption { font-size: 14px; color: var(--text-secondary); margin: 10px 0 0; line-height: 1.45; }
.eval-score-panel.band-fair .eval-score-value { stroke: #C4773E; }
.eval-score-panel.band-fair .eval-score-band { background: #F8EDE3; color: var(--copper-700); }
.eval-score-panel.band-needs_improvement .eval-score-value { stroke: #C23B3B; }
.eval-score-panel.band-needs_improvement .eval-score-band { background: #FCE8E8; color: #9B2C2C; }

.eval-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eval-metric-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 16px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--border);
}
.eval-metric-card.tone-precision { border-top-color: var(--copper); }
.eval-metric-card.tone-recall { border-top-color: #E5A63B; }
.eval-metric-card.tone-f1 { border-top-color: #2F6F5E; }
.eval-metric-card.tone-error { border-top-color: #8AA39A; }
.eval-metric-label {
    display: block; font-size: 12px; font-weight: 750; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px;
}
.eval-metric-card strong {
    display: block; font-size: 34px; font-weight: 800; color: var(--charcoal); line-height: 1;
}
.eval-metric-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--text-secondary); }

.eval-matrix-section, .eval-meta-section {
    display: grid; grid-template-columns: 1.35fr .9fr; gap: 14px;
}
.eval-matrix-table {
    width: 100%; border-collapse: separate; border-spacing: 0; min-width: 420px;
}
.eval-matrix-table th, .eval-matrix-table td {
    text-align: center; padding: 14px 12px; border: 1px solid var(--border);
    font-size: 16px; font-weight: 700; color: var(--charcoal);
}
.eval-matrix-table thead th {
    background: var(--warm-ivory); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.eval-matrix-table tbody th {
    background: #F7F4EF; text-align: left; padding-left: 14px; font-size: 13px;
    letter-spacing: .04em; text-transform: uppercase;
}
.eval-matrix-corner { position: relative; min-width: 110px; }
.eval-matrix-corner-actual, .eval-matrix-corner-pred {
    display: block; font-size: 11px; font-weight: 750; color: var(--text-secondary);
}
.eval-matrix-corner-pred { margin-top: 2px; color: var(--deep-forest); }
.eval-matrix-table td.is-diag {
    background: rgba(27,143,106,.12); color: var(--deep-forest); font-size: 20px; font-weight: 800;
}
.eval-matrix-table td.is-miss {
    background: rgba(229,166,59,.14); color: #8A5A10;
}
.eval-matrix-table td.is-zero { color: var(--text-secondary); font-weight: 600; }

.eval-insight-panel {
    background: var(--warm-panel); border-color: #E4D9CC;
}
.eval-insight-list { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 14.5px; }
.eval-insight-list li { margin-bottom: 10px; line-height: 1.45; }
.eval-insight-empty { font-size: 14px; color: var(--text-secondary); margin: 0; }

.eval-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 12px 0 0;
}
.eval-meta-grid div {
    display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px dashed #E7E0D6;
}
.eval-meta-grid dt { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.eval-meta-grid dd { margin: 0; font-size: 15px; font-weight: 750; color: var(--charcoal); }

.eval-dist-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.eval-dist-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.eval-dist-label { font-weight: 750; color: var(--charcoal); }
.eval-dist-bar {
    height: 8px; border-radius: 99px; background: #EDE7DE; overflow: hidden;
}
.eval-dist-fill { display: block; height: 100%; border-radius: 99px; }
.eval-dist-fill.tone-baik { background: var(--emerald); }
.eval-dist-fill.tone-sedang { background: #E5A63B; }
.eval-dist-fill.tone-buruk { background: #C23B3B; }

    .eval-academic-grid {
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    }
.eval-academic-card h3 {
    font-size: 15px; font-weight: 800; color: var(--deep-forest); margin: 0 0 8px;
}
.eval-academic-card p {
    font-size: 14.5px; color: var(--text-secondary); margin: 0; line-height: 1.5;
}

.eval-empty-panel { padding: 28px 22px; text-align: center; }
.eval-empty-cta { margin-top: 16px; display: flex; justify-content: center; }

.eval-actions {
    display: flex; flex-direction: column; gap: 16px;
    background: linear-gradient(180deg, #fff 0%, #F7F4EF 100%);
    border-top: 3px solid var(--emerald);
    padding: 20px 22px 22px;
}
.eval-actions-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.eval-actions-copy { min-width: 0; flex: 1; }
.eval-actions-status {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 750;
    border: 1px solid var(--border); background: #fff; color: var(--charcoal); white-space: nowrap;
}
.eval-actions-status.is-ready {
    background: rgba(27,143,106,.08); border-color: rgba(27,143,106,.22); color: var(--deep-forest);
}
.eval-actions-status.is-blocked {
    background: #FBF4EC; border-color: #E8D4C4; color: #7A4E24;
}
.eval-actions-primary { display: flex; }
.eval-actions-primary .btn-eval-primary {
    min-height: 50px; min-width: 280px; font-size: 16px; font-weight: 750;
    padding-left: 22px; padding-right: 22px;
}
.eval-actions-secondary {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
    padding-top: 14px; border-top: 1px solid #E7E0D6;
}
.btn-eval-secondary {
    min-height: 46px; width: 100%; justify-content: center;
    font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}

@media (max-width: 1199.98px) {
    .eval-hero { grid-template-columns: 1fr; }
    .eval-hero-aside { display: none; }
    .eval-perf-grid, .eval-matrix-section, .eval-meta-section, .eval-academic-grid, .eval-analytics-row, .eval-prep-grid, .eval-active-grid {
        grid-template-columns: 1fr;
    }
    .eval-summary-strip { grid-template-columns: repeat(3, 1fr); }
    .eval-summary-cell:nth-child(3) { border-right: 0; }
    .eval-summary-cell:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 767.98px) {
    .eval-hero-title { font-size: 26px; }
    .eval-score-value-text { font-size: 42px; }
    .eval-metric-card strong { font-size: 28px; }
    .eval-summary-strip, .eval-source-grid, .eval-metric-grid, .eval-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
    .eval-actions-top { flex-direction: column; }
    .eval-actions-primary .btn-eval-primary { width: 100%; min-width: 0; }
    .eval-actions-secondary { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .eval-summary-strip { grid-template-columns: 1fr; }
    .eval-summary-cell { border-right: 0; border-bottom: 1px solid var(--border); }
    .eval-summary-cell:last-child { border-bottom: 0; }
    .eval-score-panel { flex-direction: column; text-align: center; }
}

.eval-matrix-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.eval-matrix-toggle {
    display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
    background: #fff; flex-shrink: 0;
}
.eval-toggle-btn {
    border: 0; background: transparent; padding: 7px 14px; font-size: 12px; font-weight: 750;
    letter-spacing: .03em; text-transform: uppercase; color: var(--text-secondary); cursor: pointer;
}
.eval-toggle-btn.is-active {
    background: var(--deep-forest); color: #fff;
}
.eval-matrix-scroll { overflow-x: auto; }

.eval-active-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.eval-active-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.eval-active-grid div {
    border: 1px solid var(--border); border-radius: 12px; background: #FBF9F6; padding: 10px 12px;
}
.eval-active-grid span {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.eval-active-grid strong { font-size: 15px; font-weight: 800; color: var(--charcoal); }

.eval-train-prep {
    display: grid; gap: 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 18px;
}
.eval-prep-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.eval-prep-card { margin: 0; cursor: pointer; }
.eval-prep-card input { position: absolute; opacity: 0; pointer-events: none; }
.eval-prep-card-inner {
    height: 100%; border: 1.5px solid var(--border); border-radius: 16px;
    background: #fff; padding: 14px 16px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.eval-prep-card.is-selected .eval-prep-card-inner {
    border-color: var(--emerald);
    background: rgba(27,143,106,.05);
    box-shadow: 0 0 0 3px rgba(27,143,106,.10);
}
.eval-prep-card-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.eval-prep-card-top h3 {
    margin: 0; font-size: 16px; font-weight: 800; color: var(--deep-forest);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.eval-prep-status {
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.eval-prep-status.is-ready { background: #E6F4EE; color: var(--emerald-700, #0E6655); }
.eval-prep-status.is-blocked { background: #F5EDE4; color: #8A5A10; }
.eval-prep-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0;
}
.eval-prep-stats div {
    border: 1px dashed #E7E0D6; border-radius: 10px; padding: 8px 10px; background: rgba(255,255,255,.7);
}
.eval-prep-stats dt {
    font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .03em;
}
.eval-prep-stats dd { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: var(--charcoal); }
.eval-prep-helper {
    margin: 10px 0 0; font-size: 13px; color: #8A5A10; line-height: 1.4;
}
.eval-prep-summary {
    border: 1px solid var(--border); border-radius: 14px; background: #FBF9F6; padding: 14px 16px;
}

.eval-analytics-section { display: grid; gap: 14px; }
.eval-analytics-row {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px;
}
.eval-chart-card, .eval-chart-side {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.eval-chart-full { width: 100%; }
.eval-chart-title {
    font-size: 16px; font-weight: 800; color: var(--deep-forest); margin: 0 0 4px;
}
.eval-chart-sub, .eval-chart-note, .eval-chart-disclaimer {
    font-size: 13.5px; color: var(--text-secondary); margin: 0 0 12px; line-height: 1.45;
}
.eval-chart-disclaimer { margin: 12px 0 0; }
.eval-chart-wrap { position: relative; height: 300px; background: #fff; }
.eval-chart-wrap-h { height: 280px; }
.eval-chart-notes { margin-top: 12px; }
.eval-class-metric-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eval-class-metric-list li {
    border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #FBF9F6;
    display: grid; gap: 2px;
}
.eval-class-metric-list strong { font-size: 13px; letter-spacing: .04em; }
.eval-class-metric-list span { font-size: 13.5px; color: var(--text-secondary); }
.eval-cv-stats { display: grid; gap: 10px; margin: 0; }
.eval-cv-stats div {
    display: flex; justify-content: space-between; gap: 12px;
    border-bottom: 1px dashed #E7E0D6; padding-bottom: 8px;
}
.eval-cv-stats dt { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; }
.eval-cv-stats dd { margin: 0; font-size: 16px; font-weight: 800; color: var(--charcoal); }

/* ===== Model verification panel ===== */
.eval-verify-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.eval-verify-head { margin-bottom: 12px; }
.eval-verify-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.eval-verify-item {
    border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
    background: #FBF9F6;
}
.eval-verify-label {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.eval-verify-item strong { font-size: 13px; font-weight: 800; }
.eval-verify-item.tone-pass { border-color: #C9E6D9; background: #F1F8F4; }
.eval-verify-item.tone-pass strong { color: var(--deep-forest); }
.eval-verify-item.tone-fail { border-color: #F0C7C7; background: #FFF5F5; }
.eval-verify-item.tone-fail strong { color: #9B2C2C; }
.eval-verify-item.tone-pending { border-color: #E7E0D6; }
.eval-verify-item.tone-pending strong { color: #8A7A66; }
.eval-verify-hashes {
    margin-top: 12px; display: grid; gap: 8px; font-size: 12px;
}
.eval-verify-hashes span {
    display: block; font-weight: 700; color: var(--text-secondary); margin-bottom: 2px;
}
.eval-verify-hashes code {
    display: block; word-break: break-all; background: var(--warm-ivory);
    border-radius: 8px; padding: 8px 10px; color: var(--charcoal);
}
@media (max-width: 991.98px) {
    .eval-verify-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .eval-verify-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Perhitungan Algoritma
   ========================================================= */
.algo-page { display: flex; flex-direction: column; gap: 16px; }
.algo-hero {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .9fr);
    gap: 16px; padding: 22px 22px 20px; border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 12% 18%, rgba(196, 119, 62, .16), transparent 42%),
        linear-gradient(135deg, #163F36 0%, #1D5547 55%, #245E50 100%);
    color: #F7F3EC; box-shadow: var(--shadow-md);
}
.algo-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(247, 243, 236, .72); margin-bottom: 10px;
}
.algo-hero-accent {
    width: 18px; height: 2px; border-radius: 999px; background: var(--copper); display: inline-block;
}
.algo-hero-title {
    margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800;
}
.algo-hero-sub {
    margin: 0 0 14px; max-width: 54ch; color: rgba(247, 243, 236, .82); font-size: 14px;
}
.algo-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.algo-chip {
    display: inline-flex; gap: 4px; align-items: center; padding: 6px 10px;
    border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    font-size: 12px; color: rgba(247, 243, 236, .88);
}
.algo-chip strong { color: #fff; font-weight: 750; }
.algo-hero-aside {
    align-self: stretch; border-radius: 14px; padding: 16px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.algo-aside-label {
    font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(247, 243, 236, .65); margin-bottom: 10px;
}
.algo-aside-grid { display: grid; gap: 10px; margin: 0; }
.algo-aside-grid dt { font-size: 11px; color: rgba(247, 243, 236, .62); margin: 0 0 2px; }
.algo-aside-grid dd { margin: 0; font-size: 14px; font-weight: 750; color: #fff; }

.algo-overview {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.algo-overview-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 18px; box-shadow: var(--shadow-sm);
}
.algo-overview-card h2 {
    margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--deep-forest);
}
.algo-overview-card p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.algo-formula-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.algo-formula-list li {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: start;
}
.algo-formula-list span {
    font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-muted); padding-top: 4px;
}
.algo-formula-list code {
    display: block; font-size: 12px; background: var(--warm-panel); border-radius: 8px;
    padding: 8px 10px; color: var(--charcoal); word-break: break-word;
}

.algo-toc {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.algo-toc-item {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--card);
    color: var(--charcoal); text-decoration: none; font-size: 13px; font-weight: 650;
}
.algo-toc-item span {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
    background: var(--deep-forest); color: #fff; font-size: 11px; font-weight: 800;
}
.algo-toc-item:hover { border-color: var(--forest); color: var(--deep-forest); }

.algo-steps { display: grid; gap: 12px; }
.algo-step {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 18px; box-shadow: var(--shadow-sm);
}
.algo-step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.algo-step-num {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 800; font-size: 14px;
    background: linear-gradient(160deg, var(--deep-forest), var(--forest)); color: #fff;
}
.algo-step-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--deep-forest); }
.algo-step-summary { margin: 0; color: var(--text-secondary); font-size: 14px; }
.algo-step-details {
    margin: 0; padding-left: 18px; color: var(--charcoal); font-size: 14px;
    display: grid; gap: 6px;
}

.algo-section-head { margin-bottom: 12px; }
.algo-section-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--deep-forest); }
.algo-section-sub { margin: 0; color: var(--text-secondary); font-size: 14px; }

.algo-workbench, .algo-live, .algo-criteria, .algo-empty-panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 18px; box-shadow: var(--shadow-sm);
}
.algo-workbench-grid, .algo-live-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.algo-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.algo-panel {
    border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg-muted);
}
.algo-panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--deep-forest); }
.algo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.algo-table th, .algo-table td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.algo-table th { width: 34%; text-align: left; color: var(--text-secondary); font-weight: 700; }
.algo-table td em { color: var(--text-muted); font-style: normal; font-size: 12px; }
.algo-pill {
    display: inline-flex; margin: 0 4px 4px 0; padding: 3px 8px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border); font-size: 11px; color: var(--text-muted);
}
.algo-pill.is-on { background: #E7F5EE; border-color: #B9DFCC; color: var(--deep-forest); font-weight: 700; }
.algo-note { margin: 10px 0 0; font-size: 12px; color: var(--text-secondary); }

.algo-metric-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px;
}
.algo-metric-strip article {
    border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-muted);
}
.algo-metric-strip span {
    display: block; font-size: 11px; font-weight: 750; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.algo-metric-strip strong { font-size: 24px; font-weight: 800; color: var(--deep-forest); }

.algo-matrix { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.algo-matrix th, .algo-matrix td {
    border: 1px solid var(--border); padding: 8px; text-align: center;
}
.algo-matrix th { background: var(--warm-panel); font-weight: 750; }
.algo-matrix td.is-diag { background: #E8F6EF; font-weight: 800; color: var(--deep-forest); }
.algo-matrix td.is-miss { background: #FFF1E8; font-weight: 700; color: #9A4E1C; }

.algo-importance, .algo-class-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.algo-importance-row, .algo-class-metrics li {
    display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px;
}
.algo-importance-bar {
    height: 8px; border-radius: 999px; background: #E8E2D8; overflow: hidden; margin-top: 6px;
}
.algo-importance-bar span {
    display: block; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--forest), var(--copper));
}
.algo-class-metrics li {
    flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border);
}
.algo-class-metrics strong { min-width: 70px; color: var(--deep-forest); }
.algo-class-metrics span { color: var(--text-secondary); }

.algo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.algo-empty, .algo-empty-panel .empty-state { margin: 0; color: var(--text-secondary); font-size: 14px; }

.algo-criteria-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.algo-criteria-card {
    border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg-muted);
}
.algo-criteria-code {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
    color: var(--copper); margin-bottom: 6px;
}
.algo-criteria-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--deep-forest); }
.algo-criteria-card p { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary); }
.algo-criteria-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.algo-criteria-meta span {
    font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #fff;
    border: 1px solid var(--border); color: var(--text-muted); font-weight: 650;
}

@media (max-width: 991.98px) {
    .algo-hero, .algo-overview, .algo-workbench-grid, .algo-live-grid, .algo-metric-strip, .algo-criteria-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767.98px) {
    .algo-hero, .algo-overview, .algo-workbench-grid, .algo-live-grid, .algo-metric-strip, .algo-criteria-grid {
        grid-template-columns: 1fr;
    }
    .algo-formula-list li { grid-template-columns: 1fr; gap: 4px; }
}
