* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Manrope, Arial, sans-serif;
    background: #f4f7fb;
    color: #102033
}

button,
input,
textarea,
select {
    font: inherit
}

button {
    cursor: pointer
}

.hidden {
    display: none !important
}

/* Acesso ao RH */
.login-wrap { min-height: 100vh; min-height: 100dvh; background: #f7f8f9; }
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .94fr); }
.login-intro { display: flex; flex-direction: column; align-items: flex-start; padding: 48px 10%; background: #0b2945; color: #fff; }
.login-brand { padding: 7px 0; }
.login-brand img, .login-mobile-brand img { display: block; object-fit: contain; }
.login-intro-content { max-width: 460px; margin: auto 0; padding: 90px 0; }
.login-intro-label { margin: 0 0 24px; color: #d9e6ef; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.login-intro h2 { margin: 0; max-width: 450px; font-size: 40px; line-height: 1.18; letter-spacing: -.025em; font-weight: 650; text-wrap: balance; }
.login-intro-content > p:last-child { max-width: 330px; margin: 24px 0 0; color: #d0dce6; font-size: 16px; line-height: 1.65; }
.login-intro-footer { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid #ffffff38; color: #d0dce6; font-size: 12px; }
.login-card { position: relative; display: grid; place-items: center; padding: 80px 48px 110px; background: #fff; }
.login-card-inner { width: min(100%, 370px); min-width: 0; }
.login-mobile-brand { display: none; }
.login-heading { margin-bottom: 38px; }
.login-heading h1 { margin: 0 0 10px; color: #102b43; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.login-heading p { margin: 0; color: #536577; font-size: 15px; line-height: 1.55; }
.login-card label { display: block; margin: 22px 0 9px; color: #243b50; font-size: 14px; font-weight: 650; }
.login-card input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #b9c5cf; border-radius: 5px; color: #102b43; background: #fff; caret-color: #0757a6; transition: border-color .15s, box-shadow .15s; }
.login-card input::placeholder { color: #667789; opacity: 1; }
.login-card input:focus { outline: none; border-color: #0757a6; box-shadow: 0 0 0 3px #0757a626; }
.login-card .login-submit { display: flex; justify-content: space-between; align-items: center; min-height: 52px; margin-top: 30px; padding: 0 18px; border-radius: 5px; background: #0757a6; font-size: 15px; font-weight: 700; transition: background .15s; }
.login-card .login-submit:hover { background: #034782; }
.login-card .login-submit:focus-visible { outline: 3px solid #73a9d9; outline-offset: 3px; }
.login-card .login-submit:disabled { cursor: wait; opacity: .7; }
.login-card .error:empty { display: none; }
.login-card .error { line-height: 1.5; }
.login-note { margin: 28px 0 0; color: #536577; font-size: 13px; line-height: 1.5; }
.login-card-footer { position: absolute; bottom: 34px; left: 48px; right: 48px; margin: 0; color: #667789; font-size: 12px; text-align: center; }
.login-card-footer span { padding: 0 4px; }
.login-wrap ::selection { background: #f6d84f; color: #102b43; }
@media (max-width: 760px) {
 .login-shell { display: block; }
 .login-intro { display: none; }
 .login-card { min-height: 100vh; min-height: 100dvh; padding: 48px 24px 100px; }
 .login-mobile-brand { display: inline-block; margin-bottom: 48px; padding: 6px 12px; background: #0b2945; }
 .login-heading { margin-bottom: 32px; }
 .login-card-footer { left: 24px; right: 24px; bottom: 28px; }
}

.brand,
.side-brand {
    display: flex;
    gap: 12px;
    align-items: center
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffd21c;
    color: #0757A6;
    font-weight: 900;
    display: grid;
    place-items: center
}

.brand span,
.side-brand span {
    display: block;
    color: #66768a;
    font-size: 12px;
    margin-top: 2px
}

.muted {
    color: #66768a
}

.modal label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 18px 0
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 12px;
    background: #fff
}

.primary {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px;
    background: #0757A6;
    color: #fff;
    font-weight: 800;
    margin-top: 10px
}

.error {
    color: #b42318;
    margin-top: 12px;
    font-size: 13px
}

.app {
    min-height: 100vh;
    display: flex
}

.sidebar {
    width: 250px;
    background: #102033;
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column
}

.side-brand {
    padding: 4px 8px 30px
}

.side-brand strong {
    font-size: 16px
}

.sidebar nav {
    display: grid;
    gap: 6px
}

.nav,
.logout {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    padding: 12px;
    border-radius: 10px
}

.nav:hover,
.nav.active {
    background: #ffffff12;
    color: #fff
}

.nav.active {
    border-left: 3px solid #ffd21c
}

.logout {
    margin-top: auto;
    color: #fff
}

.main {
    flex: 1;
    min-width: 0
}

.top {
    height: 92px;
    background: #fff;
    border-bottom: 1px solid #e5ebf2;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #1688E8;
    font-weight: 900
}

.top h2 {
    margin: 4px 0;
    font-size: 24px
}

.userbox {
    text-align: right
}

.userbox small {
    display: block;
    color: #66768a
}

.page {
    padding: 30px;
    max-width: 1400px;
    margin: auto
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.card,
.panel {
    background: #fff;
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 35px #0d2b4c0b
}

.metric small {
    color: #66768a
}

.metric strong {
    font-size: 32px;
    display: block;
    margin-top: 8px
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px
}

.toolbar input,
.toolbar select {
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 10px;
    background: #fff
}

.primary.small {
    width: auto;
    padding: 10px 15px;
    margin: 0
}

.table-wrap {
    overflow: auto
}

.table {
    width: 100%;
    border-collapse: collapse
}

.table th,
.table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #edf1f5;
    white-space: nowrap
}

.table th {
    font-size: 11px;
    color: #66768a;
    text-transform: uppercase
}

.badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: #eef3f8
}

.badge.active {
    background: #e8f7ee;
    color: #16733b
}

.badge.closed {
    background: #f1f3f5;
    color: #66768a
}

.badge.draft {
    background: #fff6d9;
    color: #7a5a00
}

.actions {
    display: flex;
    gap: 6px
}

.btn {
    border: 1px solid #dfe6ee;
    background: #fff;
    padding: 7px 10px;
    border-radius: 8px
}

.btn:hover {
    background: #f4f7fb
}

.btn.danger {
    color: #b42318
}

.empty {
    padding: 35px;
    text-align: center;
    color: #66768a
}

.modal-bg {
    position: fixed;
    inset: 0;
    background: #10203380;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 20
}

.modal {
    background: #fff;
    border-radius: 18px;
    width: min(700px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 26px
}

.modal-head {
    display: flex;
    justify-content: space-between
}

.modal textarea {
    min-height: 100px;
    resize: vertical
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: #102033;
    color: #fff;
    padding: 13px 17px;
    border-radius: 10px;
    display: none;
    z-index: 30
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.candidate {
    border: 1px solid #e5ebf2;
    border-radius: 13px;
    padding: 15px;
    background: #fff
}

.candidate strong {
    display: block
}

.candidate small {
    color: #66768a
}

.candidate select {
    margin-top: 12px;
    width: 100%;
    padding: 8px;
    border: 1px solid #dfe6ee;
    border-radius: 8px
}

@media(max-width:900px) {
    .sidebar {
        width: 70px
    }

    .side-brand div:not(.brand-mark),
    .nav span {
        display: none
    }

    .nav {
        text-align: center
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    .sidebar {
        display: none
    }

    .top {
        padding: 15px
    }

    .page {
        padding: 15px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .userbox {
        display: none
    }
}

/* Gestão de RH: navegação, candidaturas e estados compartilhados. */
body { background: #f3f6fa; color: #172b41; }
.sidebar { background: #073967; }
.side-brand { padding: 0 8px 25px; }
.side-brand img { display: block; object-fit: contain; }
.side-brand div:not(.brand-mark) { display: block; }
.nav { display: flex; align-items: center; gap: 11px; font-weight: 650; color: #d2e2ef; transition: background-color .18s, color .18s; }
.nav i, .logout i { font-size: 18px; }
.nav.active { border: 0; background: #1e5684; }
.nav span { color: inherit; }
.logout { display: flex; align-items: center; gap: 10px; }
.logout:hover { background: #ffffff16; }
.top { height: auto; min-height: 92px; }
.top h2 { color: #112c47; font-size: 26px; letter-spacing: -.03em; }
.today { display: block; color: #60788b; font-size: 12px; text-transform: capitalize; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #d7e2eb; border-radius: 9px; background: #fff; color: #264760; font-size: 13px; font-weight: 700; }
.theme-toggle:hover { background: #edf5fb; }
.theme-toggle i { font-size: 16px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-intro h3, .candidate-panel-head h3 { margin: 0; color: #16334d; font-size: 20px; }
.page-intro p, .candidate-panel-head p { margin: 6px 0 0; color: #60788b; font-size: 14px; }
.primary.small { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border-radius: 9px; transition: background-color .18s, transform .18s; }
.primary.small:hover { background: #064887; transform: translateY(-1px); }
.candidate-summary { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 20px; border: 1px solid #dbe5ee; border-radius: 14px; overflow: hidden; background: #fff; }
.candidate-summary div { display: flex; flex-direction: column; gap: 6px; padding: 19px 22px; border-right: 1px solid #e8eef3; }
.candidate-summary div:last-child { border: 0; }
.candidate-summary span { color: #5f7587; font-size: 12px; font-weight: 650; }
.candidate-summary strong { font-size: 25px; font-variant-numeric: tabular-nums; color: #1d3850; }
.candidates-panel { padding: 26px; border-color: #dbe5ee; border-radius: 14px; }
.candidate-filters { display: grid; grid-template-columns: minmax(0,1fr) 185px; gap: 10px; margin: 22px 0; }
.candidate-filters label { position: relative; }
.candidate-filters label i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #61798c; pointer-events: none; }
.candidate-filters input, .candidate-filters select { width: 100%; height: 43px; padding: 9px 12px; border: 1px solid #d1dce6; border-radius: 8px; background: #fff; color: #243d52; }
.candidate-filters input { padding-left: 39px; }
.candidate-grid { grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); perspective: 1100px; }
.candidate { padding: 18px; border-color: #dce6ed; border-radius: 11px; transform-origin: center bottom; transition: border-color .22s, box-shadow .22s, transform .22s; }
@media (hover: hover) and (pointer: fine) { .candidate:hover { border-color: #adc9dd; box-shadow: 0 14px 25px rgba(24,57,86,.15); transform: translateY(-4px) rotateX(3deg); } }
.candidate-top { display: flex; align-items: center; gap: 12px; }
.candidate-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 10px; background: #e9f2f9; color: #0757a6; font-size: 22px; }
.candidate-identity { min-width: 0; }
.candidate-identity strong, .candidate-identity span { display: block; overflow-wrap: anywhere; }
.candidate-identity span { margin-top: 2px; color: #60788b; font-size: 13px; }
.candidate-contact { display: grid; gap: 7px; margin: 18px 0; color: #5d7488; font-size: 12px; overflow-wrap: anywhere; }
.candidate-contact i { margin-right: 5px; color: #537b99; }
.candidate-footer { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid #e7eef3; }
.candidate-footer label { flex: 1; min-width: 0; }
.candidate-footer select { width: 100%; min-height: 38px; margin: 0; padding: 7px; color: #29465f; background: #fff; }
.candidate-footer .btn { display: inline-flex; gap: 5px; align-items: center; min-height: 38px; }
.candidate-footer .btn:disabled { cursor: wait; opacity: .6; }
.candidate-footer .btn.danger { transition: background-color .18s, border-color .18s, color .18s; }
.candidate-footer .btn.danger:not(:disabled):hover { background: #a6231a; border-color: #a6231a; color: #fff; }
.candidate-footer .btn.danger:not(:disabled):active { background: #841a13; border-color: #841a13; }
.candidate-empty { grid-column: 1 / -1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #e8bb12; outline-offset: 2px; }
html[data-theme=dark] { color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) {
  html.theme-switching body,
  html.theme-switching body *,
  html.theme-switching body *::before,
  html.theme-switching body *::after {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
}
html[data-theme=dark] body { background: #101c29; color: #e6eef6; }
html[data-theme=dark] .sidebar { background: #09233b; }
html[data-theme=dark] .top, html[data-theme=dark] .card, html[data-theme=dark] .panel, html[data-theme=dark] .candidate-summary, html[data-theme=dark] .candidate, html[data-theme=dark] .modal { background: #1b2c3e; border-color: #394f64; color: #e6eef6; }
html[data-theme=dark] .top h2, html[data-theme=dark] .page-intro h3, html[data-theme=dark] .candidate-panel-head h3, html[data-theme=dark] .candidate-summary strong { color: #f1f6fa; }
html[data-theme=dark] .today, html[data-theme=dark] .muted, html[data-theme=dark] .page-intro p, html[data-theme=dark] .candidate-panel-head p, html[data-theme=dark] .candidate-summary span, html[data-theme=dark] .candidate-identity span, html[data-theme=dark] .candidate-contact, html[data-theme=dark] .metric small, html[data-theme=dark] .userbox small { color: #b3c3d2; }
html[data-theme=dark] .candidate-summary div, html[data-theme=dark] .candidate-footer, html[data-theme=dark] .table th, html[data-theme=dark] .table td { border-color: #394f64; }
html[data-theme=dark] .candidate-avatar { background: #29465f; color: #9bd3fc; }
html[data-theme=dark] .theme-toggle, html[data-theme=dark] .btn, html[data-theme=dark] .candidate-filters input, html[data-theme=dark] .candidate-filters select, html[data-theme=dark] .candidate select, html[data-theme=dark] .toolbar input, html[data-theme=dark] .toolbar select, html[data-theme=dark] .modal input, html[data-theme=dark] .modal select, html[data-theme=dark] .modal textarea { background: #132435; color: #eef5fa; border-color: #50677a; }
html[data-theme=dark] .btn.danger { color: #ffb5af; }
html[data-theme=dark] .candidate-footer .btn.danger:not(:disabled):hover { background: #b63b32; border-color: #d96b62; color: #fff; }
html[data-theme=dark] .candidate-footer .btn.danger:not(:disabled):active { background: #922b24; }
html[data-theme=dark] .badge { background: #344b5d; color: #e1ebf2; }
html[data-theme=dark] .badge.active { background: #194d38; color: #a1edc0; }
html[data-theme=dark] .badge.draft { background: #594b24; color: #ffe29a; }
@media(max-width:900px) { .sidebar { width: 72px; padding-inline: 8px; } .side-brand { padding: 0 0 24px; } .side-brand img { width: 56px; height: 45px; } .nav { justify-content: center; } }
@media(max-width:600px) { .app { display: flex; flex-direction: column; } .sidebar { display: flex; width: 100%; padding: 8px 12px; flex-direction: row; align-items: center; gap: 8px; } .side-brand { padding: 0; } .side-brand img { width: 60px; height: 45px; } .sidebar nav { display: flex; flex: 1; justify-content: space-around; gap: 2px; } .nav { padding: 10px; } .nav span { display: none; } .logout { margin: 0; padding: 8px; font-size: 0; } .logout i { font-size: 19px; } .top { min-height: 78px; } .top h2 { font-size: 21px; } .top-actions { gap: 8px; } .theme-toggle span { display: none; } .page-intro { align-items: flex-start; flex-direction: column; } .candidate-summary { grid-template-columns: repeat(2,1fr); } .candidate-summary div:nth-child(2) { border-right: 0; } .candidate-summary div:nth-child(-n+2) { border-bottom: 1px solid #e8eef3; } .candidate-filters { grid-template-columns: 1fr; } .candidates-panel { padding: 18px; } }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

.confirm-dialog { width: min(440px, calc(100% - 32px)); max-width: none; padding: 28px; border: 1px solid #dbe5ee; border-radius: 16px; background: #fff; color: #172b41; box-shadow: 0 24px 70px rgba(9,30,48,.28); }
.confirm-dialog::backdrop { background: rgba(9,27,43,.65); }
.confirm-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 17px; border-radius: 12px; background: #fff0ee; color: #b42318; font-size: 21px; }
.confirm-dialog h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
.confirm-dialog p { margin: 0; color: #425c71; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.confirm-dialog .confirm-detail { margin-top: 13px; padding: 12px; border-radius: 8px; background: #f4f7fa; color: #536b7f; font-size: 13px; }
.confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.confirm-actions button { min-height: 42px; padding: 9px 15px; border-radius: 8px; font-weight: 700; }
.confirm-danger { border: 1px solid #a3231b; background: #b42318; color: #fff; }
.confirm-danger:hover { background: #921c14; }
.confirm-actions button:focus-visible { outline: 3px solid #e8bb12; outline-offset: 2px; }
.toast.toast-error { background: #8e211b; }
.modal button:disabled { cursor: wait; opacity: .65; }
html[data-theme=dark] .confirm-dialog { background: #1b2c3e; border-color: #50677a; color: #f1f6fa; }
html[data-theme=dark] .confirm-dialog p { color: #d0dce6; }
html[data-theme=dark] .confirm-dialog .confirm-detail { background: #263f54; color: #d0dce6; }
html[data-theme=dark] .confirm-icon { background: #593134; color: #ffbeb8; }
@media(max-width:480px) { .confirm-dialog { padding: 22px; } .confirm-actions { display: grid; grid-template-columns: 1fr; } .confirm-actions .confirm-danger { grid-row: 1; } }

/* Seletor de etapa da candidatura */
.candidate:focus-within { position: relative; z-index: 2; }
.status-picker { position: relative; flex: 1; min-width: 0; }
.status-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #d1dce6; border-radius: 8px; background: #fff; color: #29465f; font: inherit; font-size: 13px; font-weight: 650; text-align: left; transition: border-color .18s, box-shadow .18s, background-color .18s; }
.status-trigger:hover, .status-trigger[aria-expanded=true] { border-color: #8fb8d5; background: #f6fafe; }
.status-trigger:disabled { cursor: wait; opacity: .7; }
.status-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-trigger .bi-chevron-down { font-size: 11px; transition: transform .18s; }
.status-trigger[aria-expanded=true] .bi-chevron-down { transform: rotate(180deg); }
.status-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #8192a2; }
.status-new { background: #438bc3; } .status-screening { background: #997d24; } .status-interview { background: #805bbb; } .status-approved { background: #218a59; } .status-rejected { background: #b45858; }
.status-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: max(100%, 180px); padding: 5px; border: 1px solid #dbe5ee; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(16,42,63,.18); }
.status-menu[hidden] { display: none; }
.status-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #29465f; font: inherit; font-size: 13px; text-align: left; }
.status-option:hover, .status-option:focus-visible { background: #edf5fb; }
.status-option.is-selected { color: #0757a6; font-weight: 700; }
.status-option .bi-check2 { margin-left: auto; font-size: 16px; }
.status-readonly { flex: 1; color: #536b7f; font-size: 13px; font-weight: 700; }
html[data-theme=dark] .status-trigger, html[data-theme=dark] .status-menu { background: #132435; border-color: #50677a; color: #eef5fa; }
html[data-theme=dark] .status-trigger:hover, html[data-theme=dark] .status-trigger[aria-expanded=true], html[data-theme=dark] .status-option:hover, html[data-theme=dark] .status-option:focus-visible { background: #29465f; }
html[data-theme=dark] .status-option { color: #e6eef6; }
html[data-theme=dark] .status-option.is-selected { color: #a6d8ff; }
html[data-theme=dark] .status-readonly { color: #cedce7; }
.filter-picker { position: relative; min-width: 0; }
.filter-picker:focus-within { z-index: 3; }
.filter-trigger { min-height: 43px; }
.filter-trigger > .bi-funnel { color: #61798c; font-size: 15px; }
.filter-menu { right: 0; left: auto; width: max(100%, 190px); }
html[data-theme=dark] .filter-trigger > .bi-funnel { color: #b3c3d2; }

/* Foto do perfil */
.profile { display: flex; align-items: center; gap: 12px; }
.avatar-button { position: relative; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 2px solid #d9e7f1; border-radius: 50%; background: #e6f1f9; color: #195982; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.avatar-button:hover { border-color: #87badb; box-shadow: 0 3px 10px rgba(7,87,166,.16); }
.avatar-button:disabled { opacity: .65; cursor: wait; }
.avatar-fallback, .avatar-button img { width: 100%; height: 100%; border-radius: 50%; }
.avatar-fallback { display: grid; place-items: center; font-size: 24px; }
.avatar-button img { display: block; object-fit: cover; }
.avatar-fallback[hidden], .avatar-button img[hidden] { display: none; }
.avatar-edit { position: absolute; display: grid; place-items: center; width: 18px; height: 18px; right: -4px; bottom: -3px; border: 2px solid #fff; border-radius: 50%; background: #0757a6; color: #fff; font-size: 9px; }
html[data-theme=dark] .avatar-button { background: #29465f; border-color: #587b95; color: #d9efff; }
html[data-theme=dark] .avatar-edit { border-color: #1b2c3e; }
@media(max-width:600px) { .profile { gap: 0; } .avatar-button { flex-basis: 40px; width: 40px; height: 40px; } }

/* Mascote: uma sacola que cumprimenta a equipe. */
.rh-mascot { display: block; flex: 0 0 62px; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; transition: background-color .2s, transform .2s; }
.rh-mascot:hover { background: #eaf4fb; transform: translateY(-2px); }
.rh-mascot:active { transform: translateY(0) scale(.97); }
.rh-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot-float { transform-origin: 50% 90%; animation: mascot-float 5s ease-in-out infinite; }
.mascot-wave { transform-origin: 74px 42px; animation: mascot-wave 6s ease-in-out infinite; }
.mascot-blink { transform-origin: 50px 51px; animation: mascot-blink 6s infinite; }
.rh-mascot:hover .mascot-wave, .rh-mascot:focus-visible .mascot-wave { animation: mascot-wave-hello .65s ease-in-out 2; }
@keyframes mascot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mascot-wave { 0%, 72%, 100% { transform: rotate(0); } 78%, 90% { transform: rotate(-15deg); } 84%, 96% { transform: rotate(8deg); } }
@keyframes mascot-blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes mascot-wave-hello { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-22deg); } 70% { transform: rotate(12deg); } }
html[data-theme=dark] .rh-mascot { filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
html[data-theme=dark] .rh-mascot:hover { background: #29465f; }
@media(max-width:600px) { .rh-mascot { flex-basis: 46px; width: 46px; height: 46px; } }
@media(prefers-reduced-motion: reduce) { .mascot-float, .mascot-wave, .mascot-blink, .rh-mascot:hover .mascot-wave, .rh-mascot:focus-visible .mascot-wave { animation: none; } .rh-mascot:hover, .rh-mascot:active { transform: none; } }
@media(prefers-reduced-motion: reduce) { .candidate { transition: none; } .candidate:hover { transform: none; } }

.top-actions { gap: 13px; }
.rh-mascot { margin-right: -8px; }
.mascot-message { position: relative; width: 182px; padding: 9px 12px; border: 1px solid #d8e6ef; border-radius: 10px; background: #f5faff; color: #264760; font-size: 12px; line-height: 1.35; }
.mascot-message strong, .mascot-message span { display: block; }
.mascot-message strong { margin-bottom: 2px; color: #0757a6; }
.mascot-message span { color: #496579; }
.mascot-message .mascot-hint { margin-top: 5px; color: #58748a; font-size: 10px; }
html[data-theme=dark] .mascot-message { background: #203b50; border-color: #42627a; color: #e6eef6; }
html[data-theme=dark] .mascot-message strong { color: #9ad4ff; }
html[data-theme=dark] .mascot-message span { color: #d0dce6; }
html[data-theme=dark] .mascot-message .mascot-hint { color: #b1c6d6; }
@media(max-width: 1050px) { .mascot-message { width: 155px; } .top-actions { gap: 9px; } }
@media(max-width: 600px) { .top { flex-wrap: wrap; gap: 8px; } .top-actions { width: 100%; justify-content: flex-end; gap: 8px; } .rh-mascot { margin-right: -5px; } .mascot-message { flex: 1; width: auto; max-width: 205px; padding: 7px 9px; } }

/* Altura consistente mesmo quando a mensagem do mascote muda. */
.top { height: 100px; min-height: 0; }
.mascot-message { height: 72px; display: flex; flex-direction: column; justify-content: center; }
.mascot-message .mascot-hint { display: none; }
.mascot-message #mascotTip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mascot-message.is-typing #mascotTip::after { content: '▏'; color: #0757a6; }
html[data-theme=dark] .mascot-message.is-typing #mascotTip::after { color: #9ad4ff; }
@media(max-width: 800px) {
 .top { height: 142px; min-height: 0; padding: 10px 15px; flex-wrap: wrap; gap: 4px; }
 .top-actions { width: 100%; justify-content: flex-end; gap: 8px; }
 .mascot-message { flex: 1; max-width: 205px; height: 64px; padding: 7px 9px; }
}

/* Estado inicial enquanto a sess?o ? verificada. */
.startup-view { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 24px; background: #f3f7fa; }
.startup-view.hidden { display: none; }
.startup-card { display: flex; flex-direction: column; align-items: center; gap: 20px; color: #31526b; text-align: center; }
.startup-card img { display: block; object-fit: contain; }
.startup-card p { margin: 0; font-size: 14px; font-weight: 600; }
.startup-spinner { width: 28px; height: 28px; border: 3px solid #d5e4ef; border-top-color: #0757a6; border-radius: 50%; animation: startup-spin .8s linear infinite; }
.startup-noscript { padding: 16px; color: #7d2923; text-align: center; }
@keyframes startup-spin { to { transform: rotate(360deg); } }
html[data-theme=dark] .startup-view { background: #101c29; }
html[data-theme=dark] .startup-card { color: #d7e7f2; }
html[data-theme=dark] .startup-spinner { border-color: #40586e; border-top-color: #8fc8ff; }
@media (prefers-reduced-motion: reduce) { .startup-spinner { animation: none; border-color: #0757a6; } html[data-theme=dark] .startup-spinner { border-color: #8fc8ff; } }

.startup-retry { min-height: 42px; padding: 9px 18px; border: 0; border-radius: 8px; background: #0757a6; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.startup-retry:hover { background: #064887; }
.startup-retry:focus-visible { outline: 3px solid #e2aa00; outline-offset: 3px; }
.startup-retry[hidden] { display: none; }
.startup-card:has(.startup-retry:not([hidden])) .startup-spinner { animation: none; border-color: #aabecd; }
html[data-theme=dark] .startup-retry { background: #8fc8ff; color: #092743; }

/* Superfícies e ações do painel de RH. */
body { background: #f2f5f9; color: #192c40; }
.sidebar { background: #102b46; }
.nav { min-height: 46px; border: 1px solid transparent; color: #c7d8e8; }
.nav:hover { background: #ffffff12; }
.nav.active { background: #244a6e; border-color: #ffffff12; color: #fff; }
.nav.active i { color: #ffdc68; }
.top { background: #fff; border-color: #e2eaf2; }
.top h2 { color: #17324e; }
.page { padding-top: 34px; }
.page-intro h3 { font-size: 22px; letter-spacing: -.025em; }
.page-intro p { color: #526a80; }
.card, .panel, .candidate-summary, .candidate { border-color: #dfe7f0; box-shadow: 0 5px 20px rgba(22, 49, 77, .045); }
.cards { gap: 16px; }
.metric { position: relative; min-height: 150px; padding: 23px; }
.metric small { display: block; padding-right: 48px; color: #526a80; font-size: 13px; font-weight: 650; line-height: 1.35; }
.metric strong { margin-top: 19px; color: #183650; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-icon { position: absolute; top: 19px; right: 19px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8f1fc; color: #1c5b9a; font-size: 18px; }
.metric-icon-muted { background: #edf1f5; color: #516b80; }
.metric-icon-violet { background: #f0edf9; color: #67539c; }
.metric-icon-green { background: #e6f5ef; color: #197553; }
.dashboard-welcome { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 23px; }
.dashboard-welcome h3 { margin: 0; color: #183650; font-size: 17px; }
.dashboard-welcome p { margin: 5px 0 0; color: #526a80; font-size: 14px; line-height: 1.5; }
.welcome-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: #fff3cb; color: #805d00; font-size: 20px; }
.primary.small { background: #175f9f; box-shadow: 0 3px 9px rgba(23,95,159,.18); }
.primary.small:hover { background: #104d86; }
.primary.small:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.jobs-panel { padding: 22px; }
.job-search { position: relative; display: block; width: min(100%, 380px); }
.job-search > i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #526d84; pointer-events: none; }
.toolbar .job-search input { width: 100%; min-height: 43px; padding-left: 39px; color: #203a52; border-color: #d2dee9; }
.table th { color: #526c82; letter-spacing: .035em; }
.table td { color: #344e65; font-size: 14px; }
.table td strong { color: #193851; }
.actions { align-items: center; flex-wrap: wrap; }
.table td.actions { display: table-cell; white-space: nowrap; }
.table td.actions .btn + .btn { margin-left: 6px; }
.jobs-panel .table { min-width: 740px; }
.table-scroll-hint { display: none; margin: 12px 0 0; color: #526a80; font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-color: #cfdce8; color: #294c67; font-size: 13px; font-weight: 650; }
.btn:hover { background: #eaf2f9; border-color: #b7cbde; }
.btn.danger { color: #a92722; border-color: #efd7d5; }
.btn.danger:hover { color: #fff; background: #a92722; border-color: #a92722; }
.btn:disabled { opacity: .6; cursor: wait; }
.candidate-summary { box-shadow: 0 5px 20px rgba(22,49,77,.045); }
.candidate-summary span { color: #526a80; }
.candidate { background: #fff; }
html[data-theme=dark] body { background: #101d2b; color: #e9f0f7; }
html[data-theme=dark] .sidebar { background: #0b2136; }
html[data-theme=dark] .nav.active { background: #244865; border-color: #ffffff12; }
html[data-theme=dark] .top, html[data-theme=dark] .card, html[data-theme=dark] .panel, html[data-theme=dark] .candidate-summary, html[data-theme=dark] .candidate { background: #1a2d40; border-color: #3a5369; }
html[data-theme=dark] .metric strong, html[data-theme=dark] .dashboard-welcome h3, html[data-theme=dark] .table td strong { color: #f0f6fb; }
html[data-theme=dark] .dashboard-welcome p, html[data-theme=dark] .table td, html[data-theme=dark] .table th { color: #c1d1de; }
html[data-theme=dark] .table-scroll-hint { color: #b3c3d2; }
html[data-theme=dark] .metric-icon { background: #294861; color: #a5d3f7; }
html[data-theme=dark] .metric-icon-violet { background: #3b3755; color: #d9c9ff; }
html[data-theme=dark] .metric-icon-green { background: #264b42; color: #a4e6c6; }
html[data-theme=dark] .welcome-icon { background: #504825; color: #ffe292; }
html[data-theme=dark] .btn:hover { background: #294b66; border-color: #67859d; }
html[data-theme=dark] .btn.danger:hover { color: #fff; background: #9c332e; border-color: #d96b62; }
@media (max-width: 900px) { .metric { min-height: 140px; } }
@media (max-width: 600px) {
  .page { padding: 20px 15px 28px; }
  .metric { min-height: 130px; padding: 19px; }
  .metric-icon { top: 15px; right: 15px; }
  .jobs-panel { padding: 16px; }
  .job-search { width: 100%; }
  .table-scroll-hint { display: block; }
  .page-intro .primary.small { width: 100%; }
}
