/* ============================================================
   Sistema Millena R. — Design System v2 "Premium SaaS"
   Sidebar escura (tinta) · superfícies claras · acento índigo
   Tipografia: Inter (UI) · Playfair só na marca/login
   ============================================================ */

:root {
    /* Acento da marca (índigo premium) */
    --accent: #4F46E5;
    --accent-strong: #4338CA;
    --accent-soft: rgba(79, 70, 229, 0.09);
    --accent-soft-strong: rgba(79, 70, 229, 0.18);

    /* Aliases de compatibilidade (nomes antigos ainda usados em pontos isolados) */
    --terracotta: var(--accent);
    --terracotta-dark: var(--accent-strong);
    --terracotta-tint: var(--accent-soft);
    --terracotta-tint-strong: var(--accent-soft-strong);

    /* Tinta escura (sidebar, botões escuros, login) */
    --graphite: #16171D;
    --graphite-dark: #0E0F13;

    /* Sidebar (escura nos dois temas) */
    --sb-bg: #141519;
    --sb-hover: rgba(255, 255, 255, 0.06);
    --sb-active: rgba(255, 255, 255, 0.09);
    --sb-text: #A9AEBC;
    --sb-ink: #F4F5F9;
    --sb-section: #62677A;
    --sb-border: rgba(255, 255, 255, 0.08);
    --sb-accent: #8B87F7;

    /* Neutros */
    --ink: #131523;
    --muted: #5A6072;
    --muted-soft: #989FB0;

    /* Cores semânticas (status) */
    --success: #17935C;        --success-tint: rgba(23, 147, 92, 0.11);
    --warning: #D97706;        --warning-tint: rgba(217, 119, 6, 0.12);
    --danger:  #D92D20;        --danger-tint:  rgba(217, 45, 32, 0.10);
    --info:    #2E90FA;        --info-tint:    rgba(46, 144, 250, 0.11);
    --neutral: #5A6072;        --neutral-tint: rgba(90, 96, 114, 0.10);

    /* Superfícies */
    --page: #F7F8FA;
    --surface: #FFFFFF;
    --surface-2: #F2F4F7;

    /* Bordas e sombras */
    --border: #DCDFE7;
    --border-soft: #E9EBF0;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 16px -4px rgba(16, 24, 40, 0.10), 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, 0.20);

    /* Tipografia */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Geometria */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-w: 256px;
    --topbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--page);
    color: var(--ink);
    line-height: 1.55;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Utilitários */
.d-block { display: block; }
@media (max-width: 768px) { .d-none-mobile { display: none !important; } }

/* ---------- LAYOUT / SHELL ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--sb-bg);
    border-right: 1px solid var(--sb-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--sb-border);
    text-align: center;
}
.sidebar__brand-link { display: inline-block; }
.sidebar__logo { height: 30px; width: auto; margin: 0 auto; }
/* Sidebar é escura nos dois temas → logo clara sempre */
.sidebar__logo--on-light { display: none; }
.sidebar__logo--on-dark { display: inline-block; }

.sidebar__nav {
    flex: 1;
    padding: 14px 12px 18px;
    overflow-y: auto;
}
.sidebar__nav::-webkit-scrollbar { width: 8px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.nav-section {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sb-section);
    padding: 0 10px;
    margin: 18px 0 6px;
}
.nav-section:first-child { margin-top: 4px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
    color: var(--sb-text);
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-link i { font-size: 16px; width: 18px; text-align: center; opacity: 0.9; }
.nav-link:hover { background: var(--sb-hover); color: var(--sb-ink); }

.nav-link--active {
    background: var(--sb-active);
    color: #FFFFFF;
    font-weight: 600;
}
.nav-link--active i { color: var(--sb-accent); opacity: 1; }
.nav-link--active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--sb-accent);
}

/* Grupos de navegação (expansíveis) */
.nav-group__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
    color: var(--sb-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-group__toggle .nav-ico { font-size: 16px; width: 18px; text-align: center; opacity: 0.9; }
.nav-group__toggle:hover { background: var(--sb-hover); color: var(--sb-ink); }
.nav-group__chevron { margin-left: auto; font-size: 11px; opacity: 0.7; transition: transform 0.2s ease; }
.nav-group.is-expanded .nav-group__chevron { transform: rotate(90deg); }
.nav-sub { display: none; margin: 2px 0 6px 24px; padding-left: 10px; border-left: 1px solid var(--sb-border); }
.nav-group.is-expanded .nav-sub { display: block; }
.nav-sub .nav-link { font-size: 13px; padding: 7px 10px; }
.nav-sub .nav-link i { font-size: 14px; }
.nav-sub .nav-link--active::before { left: -11px; height: 16px; }

.sidebar__footer {
    padding: 14px;
    border-top: 1px solid var(--sb-border);
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
}
.user-chip__avatar {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D68F5 0%, var(--accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.user-chip__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-chip__name {
    font-size: 13.5px; font-weight: 600; color: var(--sb-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-chip__role { font-size: 12px; color: var(--sb-text); }
.user-chip__logout {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    color: var(--sb-text);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: background 0.15s ease, color 0.15s ease;
}
.user-chip__logout:hover { background: var(--sb-hover); color: var(--sb-ink); }

/* ---------- MAIN ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar__left { display: flex; align-items: center; gap: 14px; }
.topbar__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.topbar__toggle { display: none; font-size: 22px; color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__meta {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 13px;
}
.topbar__right { display: flex; align-items: center; gap: 6px; }

/* Botões de ícone na topbar (sino, tema) */
.topbar__icon-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}
.topbar__icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.topbar__icon-btn .dot-badge {
    position: absolute; top: 7px; right: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--surface);
}

/* Menu do usuário (bolinha + dropdown) */
.user-menu { position: relative; }
.user-menu__trigger {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D68F5 0%, var(--accent) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
    border: 2px solid transparent;
    transition: box-shadow 0.15s ease;
}
.user-menu__trigger:focus-visible,
.user-menu.is-open .user-menu__trigger { outline: none; box-shadow: 0 0 0 3px var(--accent-soft-strong); }

.user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 50;
}
.user-menu.is-open .user-menu__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.user-menu__header { padding: 10px 12px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; }
.user-menu__name { font-weight: 600; font-size: 14px; }
.user-menu__role { font-size: 12px; color: var(--muted); }
.user-menu__panel form { margin: 0; }
.user-menu__item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}
.user-menu__item i { font-size: 15px; width: 18px; text-align: center; color: var(--muted); }
.user-menu__item:hover { background: var(--surface-2); }
.user-menu__item--danger { color: var(--danger); }
.user-menu__item--danger i { color: var(--danger); }
.user-menu__item--danger:hover { background: var(--danger-tint); }

.content { padding: 28px 32px 56px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------- BOTÕES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn i { font-size: 15px; }
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.16);
}
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn--sm { padding: 6px 12px; font-size: 13px; }

/* ---------- CABEÇALHO DE PÁGINA (substitui o hero) ---------- */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-head__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted-soft);
    margin-bottom: 4px;
}
.page-head__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.page-head__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- HERO (legado — mantido para páginas que ainda usam) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.hero__title {
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.hero__subtitle { color: var(--muted); font-size: 14.5px; max-width: 560px; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__monogram { display: none; }

/* ---------- KPIs ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.kpi-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }
.kpi-card__icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
/* Tons por métrica — cor é informação, dá vida ao painel */
.kpi-card__icon--indigo { background: rgba(79, 70, 229, 0.10);  color: #4F46E5; }
.kpi-card__icon--teal   { background: rgba(13, 148, 136, 0.11); color: #0D9488; }
.kpi-card__icon--blue   { background: rgba(46, 144, 250, 0.11); color: #1570CD; }
.kpi-card__icon--amber  { background: rgba(217, 119, 6, 0.12);  color: #C2700B; }
.kpi-card__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-card__value {
    font-size: 26px; font-weight: 700; line-height: 1.15; margin: 2px 0;
    letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.kpi-card__hint { font-size: 12px; color: var(--muted-soft); }

/* ---------- GRID DE CONTEÚDO ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-head--spaced { margin-top: 28px; }
.section-title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.section-link { color: var(--accent); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--accent-strong); }
.section-aside { color: var(--muted-soft); font-size: 13px; }

/* Atalhos */
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.shortcut-card {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.shortcut-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-soft-strong); }
.shortcut-card__icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.shortcut-card__title { font-weight: 600; font-size: 14px; }
.shortcut-card__desc { font-size: 12.5px; color: var(--muted); }
.shortcut-card__arrow { margin-left: auto; color: var(--muted-soft); font-size: 16px; transition: transform 0.18s ease, color 0.18s ease; }
.shortcut-card:hover .shortcut-card__arrow { transform: translate(2px, -2px); color: var(--accent); }

/* Painéis */
.panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.empty-state { text-align: center; padding: 28px 18px; }
.empty-state__icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.empty-state__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.empty-state__msg { color: var(--muted); font-size: 13px; max-width: 340px; margin: 0 auto; }

/* Atividade */
.activity-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.activity-item { display: flex; gap: 12px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-soft); margin-top: 6px; flex-shrink: 0; }
.activity-dot--accent { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.activity-text { font-size: 13px; }
.activity-time { font-size: 12px; color: var(--muted-soft); margin-top: 2px; }
.activity-muted .activity-text { color: var(--muted); }

.tips-card {
    margin-top: 20px;
    background: linear-gradient(140deg, #312E81 0%, #4338CA 60%, #4F46E5 100%);
    color: #fff;
    border: none;
}
.tips-card .tips-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.tips-card .tips-title { font-weight: 650; font-size: 16px; margin-bottom: 6px; }
.tips-card .tips-msg { font-size: 13px; color: rgba(255,255,255,0.82); margin-bottom: 16px; }
.tips-card .btn--primary { background: #fff; color: var(--accent-strong); box-shadow: none; }
.tips-card .btn--primary:hover { background: #EEF0FF; }

/* ---------- PLACEHOLDER ---------- */
.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.placeholder__icon {
    width: 64px; height: 64px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
}
.placeholder__title { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.placeholder__msg { color: var(--muted); max-width: 420px; }

/* ---------- LOGIN ---------- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 80% 10%, rgba(109, 104, 245, 0.20), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(79, 70, 229, 0.12), transparent 50%),
        linear-gradient(165deg, #14151A 0%, #0E0F13 100%);
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 44px 38px;
    box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 30px; }
.login-logo { height: 40px; width: auto; margin: 0 auto 16px; }
.login-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; }
.login-subtitle { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.form-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-block { width: 100%; margin-top: 6px; }
.login-alert {
    background: var(--danger-tint);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    text-align: center;
}
.login-foot { text-align: center; color: var(--muted-soft); font-size: 12px; margin-top: 24px; }

/* ---------- BACKDROP (mobile) ---------- */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.5);
    z-index: 30;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-backdrop.is-open { display: block; }
    .topbar__toggle { display: block; }
    .content { padding: 20px 18px 40px; }
    .hero { padding: 26px 22px; }
    .page-head__title { font-size: 21px; }
}

/* ============================================================
   COMPONENTES — formulários, tabelas, badges, alertas, paginação
   ============================================================ */

/* ---------- FORMULÁRIOS ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field__label .req { color: var(--danger); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="datetime-local"],
.field select,
.field textarea,
.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6072' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-soft); }

.field__help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field__error { font-size: 12px; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--danger); }
.field--error input:focus { box-shadow: 0 0 0 3px var(--danger-tint); }
.field--success input { border-color: var(--success); }
.field--success input:focus { box-shadow: 0 0 0 3px var(--success-tint); }

.check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ---------- TABELAS ---------- */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
    background: var(--surface-2);
}
.table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table__name { font-weight: 600; }
.table__sub { font-size: 12.5px; color: var(--muted); }
.table__actions { display: flex; gap: 4px; justify-content: flex-end; }

.icon-btn {
    width: 30px; height: 30px;
    border-radius: 7px;
    color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: background 0.12s ease, color 0.12s ease;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-strong); }
.icon-btn--danger:hover { background: var(--danger-tint); color: var(--danger); }

.table-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px; color: var(--muted);
}

/* ---------- BADGES / STATUS ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--success-tint); color: var(--success); }
.badge--warning { background: var(--warning-tint); color: var(--warning); }
.badge--danger  { background: var(--danger-tint);  color: var(--danger); }
.badge--info    { background: var(--info-tint);    color: #1570CD; }
.badge--neutral { background: var(--neutral-tint); color: var(--neutral); }
.badge--primary { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- ALERTAS / MENSAGENS ---------- */
.messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    border: 1px solid;
}
.alert--success { background: #F2FBF6; color: #116141; border-color: rgba(23, 147, 92, 0.30); }
.alert--error,
.alert--danger  { background: #FEF4F3; color: #A02018; border-color: rgba(217, 45, 32, 0.28); }
.alert--warning { background: #FEF8EE; color: #9A5508; border-color: rgba(217, 119, 6, 0.30); }
.alert--info    { background: #F2F8FE; color: #155F9E; border-color: rgba(46, 144, 250, 0.28); }

/* ---------- PAGINAÇÃO ---------- */
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination a, .pagination span {
    min-width: 32px; height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500;
    color: var(--muted);
    border: 1px solid transparent;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.pagination a:hover { background: var(--surface-2); color: var(--ink); }
.pagination .is-active { background: var(--accent); color: #fff; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- STYLE GUIDE (página Componentes) ---------- */
.sg-intro { margin-bottom: 32px; }
.sg-section { margin-bottom: 44px; }
.sg-section__title {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.sg-section__desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.sg-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.sg-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 12px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.demo-stack { display: flex; flex-direction: column; gap: 12px; }
.demo-divider { height: 1px; background: var(--border-soft); margin: 24px 0; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch__chip { height: 64px; border-radius: var(--radius-sm); border: 1px solid var(--border-soft); }
.swatch__name { font-size: 13px; font-weight: 600; margin-top: 8px; }
.swatch__hex { font-size: 12px; color: var(--muted); font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }

.type-sample { margin-bottom: 16px; }
.type-sample__meta { font-size: 12px; color: var(--muted-soft); margin-top: 2px; }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MÓDULO CLIENTES
   ============================================================ */

/* Lista: barra de filtros */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field { margin-bottom: 0; }
.toolbar__search { flex: 1 1 240px; }
.toolbar__spacer { margin-left: auto; }
.list-meta { color: var(--muted); font-size: 13px; margin: 0 2px 14px; }

/* Formulário: rodapé de ações */
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-section-title { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; margin: 6px 0 14px; }
.form-section-title:not(:first-child) { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-soft); }

/* Ficha do cliente */
.ficha-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.info-row { display: flex; flex-direction: column; gap: 2px; }
.info-row--full { grid-column: 1 / -1; }
.info-label { font-size: 11px; color: var(--muted-soft); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.info-value { font-size: 14px; }
.info-value--empty { color: var(--muted-soft); }

/* Barra de cota (uso da API do Google em Configurações) */
.quota-bar{ height:6px; border-radius:999px; background:var(--surface-2); margin-top:6px; overflow:hidden; }
.quota-bar__fill{ height:100%; border-radius:999px; background:var(--success); transition:width .3s ease; }

/* Documentos (na ficha) */
.doc-add { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.doc-add .field { margin-bottom: 0; }
.doc-add__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.doc-vencido { color: var(--danger); font-weight: 600; }

@media (max-width: 1024px) { .ficha-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

/* ============================================================
   NOTIFICAÇÕES (sininho)
   ============================================================ */
.notif-badge{
    position:absolute; top:2px; right:2px;
    min-width:16px; height:16px; padding:0 4px;
    border-radius:999px; background:var(--danger); color:#fff;
    font-size:10px; font-weight:700;
    display:flex; align-items:center; justify-content:center;
    border:2px solid var(--surface);
}
.notif-panel{ min-width:320px; max-width:380px; }
.notif-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 12px 10px; border-bottom:1px solid var(--border-soft); margin-bottom:6px;
}
.notif-head form button{ font-size:12px; color:var(--accent); font-weight:600; }
.notif-head form button:hover{ color:var(--accent-strong); text-decoration:underline; }
.notif-item{ display:block; padding:10px 12px; border-radius:var(--radius-sm); font-size:13px; color:var(--ink); }
.notif-item:hover{ background:var(--surface-2); }
.notif-item__time{ font-size:11.5px; color:var(--muted-soft); margin-top:2px; }
.notif-empty{ padding:20px 12px; text-align:center; color:var(--muted-soft); font-size:13px; line-height:1.8; }

/* ============================================================
   AGENDA (FullCalendar) — tela cheia
   ============================================================ */
/* Página em largura total (sem o max-width padrão) */
.content--full { max-width: none; padding: 18px 22px 16px; }

.agenda-shell{ display:flex; flex-direction:column; height:calc(100vh - var(--topbar-h) - 86px); min-height:540px; }
.agenda-wrap{
    flex:1; min-height:0;
    background:var(--surface); border:1px solid var(--border-soft);
    border-radius:var(--radius-lg); padding:18px 20px 16px; box-shadow:var(--shadow-sm);
    display:flex; flex-direction:column;
}
#calendario{ flex:1; min-height:0;
    --fc-border-color: var(--border-soft); --fc-page-bg-color: transparent;
    --fc-today-bg-color: var(--accent-soft);
    --fc-now-indicator-color: var(--danger);
    --fc-event-text-color: #fff;
    font-family: var(--font-sans); }

/* Toolbar premium */
#calendario .fc-header-toolbar{ margin-bottom:14px !important; gap:12px; }
#calendario .fc-toolbar-title{ font-weight:700; letter-spacing:-0.01em; font-size:17px; text-transform:capitalize; }
#calendario .fc-button{
    background:var(--surface); border:1px solid var(--border); color:var(--ink);
    border-radius:8px; font-size:13px; font-weight:600; padding:6px 12px;
    text-transform:capitalize; box-shadow:var(--shadow-sm);
    transition:background .12s ease, color .12s ease;
}
#calendario .fc-button:hover{ background:var(--surface-2); }
#calendario .fc-button:focus,
#calendario .fc-button:focus-visible{ box-shadow:0 0 0 3px var(--accent-soft); outline:none; }
#calendario .fc-button:disabled{ background:var(--surface); color:var(--muted-soft); }
#calendario .fc-prev-button, #calendario .fc-next-button{ padding:6px 9px; }
#calendario .fc-icon{ font-size:1.1em; }
/* Seletor de visão: segmented control */
#calendario .fc-button-group{ background:var(--surface-2); border-radius:9px; padding:3px; gap:2px; }
#calendario .fc-button-group .fc-button{
    background:transparent; border:none; box-shadow:none; color:var(--muted); border-radius:6px;
}
#calendario .fc-button-group .fc-button:hover{ color:var(--ink); }
#calendario .fc-button-group .fc-button-active{
    background:var(--surface) !important; color:var(--ink) !important; box-shadow:var(--shadow-sm) !important;
}

/* Células */
#calendario .fc-daygrid-day-number, #calendario .fc-col-header-cell-cushion{ color:var(--ink); padding:6px 8px; }
#calendario .fc-col-header-cell-cushion{ font-size:11.5px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
#calendario .fc-day-today .fc-daygrid-day-number{
    background:var(--accent); color:#fff; border-radius:8px; min-width:26px; text-align:center;
    font-weight:600; margin:3px;
}
#calendario .fc-daygrid-more-link{ font-size:11.5px; color:var(--accent); font-weight:600; }
#calendario .fc-popover{ border:1px solid var(--border-soft); border-radius:10px; box-shadow:var(--shadow-lg); background:var(--surface); }
#calendario .fc-popover-header{ background:var(--surface-2); font-size:13px; }

/* Eventos (semana/dia: blocos coloridos) */
#calendario .fc-event{ border-radius:6px; border:none; padding:1px 5px; font-size:12.5px; cursor:pointer; }
#calendario .fc-event.is-done{ opacity:.7; }
#calendario .fc-event.is-done .fc-event-title, #calendario .fc-event.is-done .ev-title{ text-decoration:line-through; }

/* Eventos na visão de mês: chips neutros com bolinha colorida */
#calendario .fc-daygrid-event.ev-chip{
    background:transparent !important; border:none !important; color:var(--ink);
    border-radius:6px; padding:1px 4px;
}
#calendario .fc-daygrid-event.ev-chip:hover{ background:var(--surface-2) !important; }
.ev-chip__inner{ display:flex; align-items:center; gap:6px; min-width:0; font-size:12.5px; }
.ev-chip__inner .ev-dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.ev-chip__inner .ev-time{ color:var(--muted); font-size:11.5px; font-variant-numeric:tabular-nums; flex-shrink:0; }
.ev-chip__inner .ev-title{ font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Rodapé (legenda + dica) */
.agenda-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:10px; }
.agenda-legenda{ display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--muted); }
.agenda-legenda .dot{ display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.agenda-hint{ font-size:12px; color:var(--muted-soft); }

/* Popup do dia (hover demorado sobre um dia na visão de mês) */
.daypop{
    position:fixed; z-index:65; width:300px;
    background:var(--surface); border:1px solid var(--border-soft);
    border-radius:var(--radius); box-shadow:var(--shadow-lg); padding:12px;
}
.daypop__head{ display:flex; flex-direction:column; gap:1px; padding:2px 4px 10px; border-bottom:1px solid var(--border-soft); margin-bottom:8px; }
.daypop__data{ font-weight:650; font-size:13.5px; text-transform:capitalize; }
.daypop__resumo{ font-size:12px; color:var(--muted); }
.daypop__lista{ display:flex; flex-direction:column; }
.daypop__item{
    display:flex; align-items:center; gap:8px;
    padding:6px 6px; border-radius:7px; font-size:13px; min-width:0;
}
.daypop__item:hover{ background:var(--surface-2); }
.daypop__item.is-done .daypop__titulo{ text-decoration:line-through; color:var(--muted-soft); }
.daypop__item .ev-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.daypop__hora{ font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; flex-shrink:0; min-width:44px; }
.daypop__titulo{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:500; }
.daypop__mais{ font-size:12px; color:var(--muted-soft); padding:4px 6px 0; }
.daypop__novo{
    display:flex; align-items:center; gap:6px;
    margin-top:8px; padding:7px 6px 2px; border-top:1px solid var(--border-soft);
    font-size:12.5px; font-weight:600; color:var(--accent);
}
.daypop__novo:hover{ color:var(--accent-strong); }

/* Popover de detalhes do evento */
.evpop{
    position:fixed; z-index:70; width:320px;
    background:var(--surface); border:1px solid var(--border-soft);
    border-radius:var(--radius); box-shadow:var(--shadow-lg); padding:14px;
}
.evpop__head{ display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; }
.evpop__dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:6px; }
.evpop__heading{ flex:1; min-width:0; }
.evpop__title{ font-weight:650; font-size:14.5px; line-height:1.3; }
.evpop__tipo{ font-size:12px; color:var(--muted); margin-top:1px; }
.evpop__close{
    width:26px; height:26px; border-radius:6px; color:var(--muted-soft); flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:12px;
}
.evpop__close:hover{ background:var(--surface-2); color:var(--ink); }
.evpop__body{ display:flex; flex-direction:column; gap:7px; margin-bottom:12px; }
.evpop__row{ display:flex; gap:9px; font-size:13px; color:var(--ink); }
.evpop__row i{ color:var(--muted-soft); font-size:13px; width:16px; text-align:center; flex-shrink:0; margin-top:1px; }
.evpop__foot{ display:flex; gap:8px; align-items:center; padding-top:11px; border-top:1px solid var(--border-soft); }
.evpop__del{ margin-left:auto; }

/* ============================================================
   PROPOSTAS / WIZARD / EDITOR
   ============================================================ */
.wizard-steps { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: 8px; color: var(--muted-soft); font-size: 13px; font-weight: 500; }
.wizard-step__num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.wizard-step.is-active { color: var(--ink); }
.wizard-step.is-active .wizard-step__num { background: var(--accent); color: #fff; }
.wizard-step.is-done .wizard-step__num { background: var(--accent-soft); color: var(--accent-strong); }
.wizard-sep { color: var(--muted-soft); }

.modelo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.modelo-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.modelo-card:hover { border-color: var(--accent-soft-strong); box-shadow: var(--shadow-md); }
.modelo-card input { margin-right: 8px; accent-color: var(--accent); }
.modelo-card__nome { font-weight: 600; }
.modelo-card__tipo { font-size: 12.5px; color: var(--muted); }

.editor-frame { height: calc(100vh - var(--topbar-h) - 130px); min-height: 480px; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

/* ============================================================
   ATIVIDADES (audit log)
   ============================================================ */
.activity-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.activity-item .activity-fonte {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    margin-left: 6px;
}

/* ============================================================
   TEMA ESCURO  (ativado via [data-theme="dark"] no <html>)
   Sidebar continua escura; superfícies escurecem; acento clareia.
   ============================================================ */
[data-theme="dark"] {
    --accent: #6D68F5;
    --accent-strong: #807CF7;
    --accent-soft: rgba(109, 104, 245, 0.16);
    --accent-soft-strong: rgba(109, 104, 245, 0.28);

    --graphite: #26272E;
    --graphite-dark: #1B1C22;

    --sb-bg: #101116;
    --sb-hover: rgba(255, 255, 255, 0.05);
    --sb-active: rgba(255, 255, 255, 0.08);

    --ink: #F0F1F5;
    --muted: #A0A6B5;
    --muted-soft: #6D7384;
    --page: #0E0F12;
    --surface: #16171C;
    --surface-2: #1F2027;
    --border: rgba(255, 255, 255, 0.13);
    --border-soft: rgba(255, 255, 255, 0.07);

    --success-tint: rgba(46, 164, 110, 0.18);
    --warning-tint: rgba(232, 144, 30, 0.18);
    --danger-tint:  rgba(240, 68, 56, 0.16);
    --info-tint:    rgba(84, 167, 250, 0.16);
    --neutral-tint: rgba(160, 166, 181, 0.14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .topbar { background: rgba(14, 15, 18, 0.85); }
[data-theme="dark"] body { background: var(--page); }

/* Texto de status e acentos legíveis no escuro */
[data-theme="dark"] .field__error,
[data-theme="dark"] .user-menu__item--danger,
[data-theme="dark"] .user-menu__item--danger i { color: #F97066; }
[data-theme="dark"] .alert--success { background: rgba(46, 164, 110, 0.12); color: #75DBA8; border-color: rgba(46, 164, 110, 0.35); }
[data-theme="dark"] .alert--error,
[data-theme="dark"] .alert--danger { background: rgba(240, 68, 56, 0.12); color: #FDA29B; border-color: rgba(240, 68, 56, 0.35); }
[data-theme="dark"] .alert--warning { background: rgba(232, 144, 30, 0.12); color: #FEC84B; border-color: rgba(232, 144, 30, 0.35); }
[data-theme="dark"] .alert--info { background: rgba(84, 167, 250, 0.12); color: #84CAFF; border-color: rgba(84, 167, 250, 0.35); }
[data-theme="dark"] .badge--success { color: #75DBA8; }
[data-theme="dark"] .badge--warning { color: #FEC84B; }
[data-theme="dark"] .badge--danger  { color: #FDA29B; }
[data-theme="dark"] .badge--info    { color: #84CAFF; }
[data-theme="dark"] .badge--neutral { color: #C5C9D4; }
[data-theme="dark"] .badge--primary { color: #B3B0FA; }
[data-theme="dark"] .kpi-card__icon--indigo { background: rgba(109, 104, 245, 0.18); color: #B3B0FA; }
[data-theme="dark"] .kpi-card__icon--teal   { background: rgba(45, 212, 191, 0.14);  color: #5EEAD4; }
[data-theme="dark"] .kpi-card__icon--blue   { background: rgba(84, 167, 250, 0.14);  color: #84CAFF; }
[data-theme="dark"] .kpi-card__icon--amber  { background: rgba(251, 191, 36, 0.13);  color: #FCD34D; }
[data-theme="dark"] .tips-card { background: linear-gradient(140deg, #26244F 0%, #353198 100%); }
[data-theme="dark"] .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A0A6B5' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
}
