/* ==========================================================================
   政企服务事业部 · 员工全生命周期管理系统
   原生 CSS，无任何 CDN 依赖；浅色主题；响应式（适配手机扫码/报备场景）
   ========================================================================== */

:root {
    --c-bg: #f4f6fa;
    --c-surface: #ffffff;
    --c-border: #dde3ec;
    --c-border-strong: #c3cddc;
    --c-text: #1c2733;
    --c-text-soft: #5b6b7d;
    --c-text-mute: #8b98a8;
    --c-primary: #1f4e79;
    --c-primary-soft: #e8f0f8;
    --c-accent: #2d7dd2;
    --c-danger: #c0392b;
    --c-warn: #e67e22;
    --c-caution: #d4a017;
    --c-ok: #2e9e5b;
    --c-sidebar: #16324f;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(23, 43, 77, 0.08), 0 4px 14px rgba(23, 43, 77, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--c-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------------- 布局 ---------------- */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 216px;
    flex: 0 0 216px;
    background: var(--c-sidebar);
    color: #cddcec;
    padding: 0 0 24px;
}

.brand {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand .b1 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.brand .b2 {
    font-size: 11px;
    color: #8fb0cf;
    margin-top: 2px;
}

.nav-group {
    padding: 14px 18px 6px;
    font-size: 11px;
    color: #7d9dbb;
    letter-spacing: 1px;
}

.nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    color: #cddcec;
    font-size: 13.5px;
    border-left: 3px solid transparent;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: #fff;
}

.nav a.on {
    background: rgba(45, 125, 210, 0.22);
    border-left-color: var(--c-accent);
    color: #fff;
    font-weight: 600;
}

.nav .pill {
    background: var(--c-danger);
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    padding: 0 6px;
    min-width: 18px;
    text-align: center;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.topbar h1 {
    font-size: 17px;
    margin: 0;
    font-weight: 700;
}

.topbar .sub {
    font-size: 12px;
    color: var(--c-text-mute);
    margin-top: 2px;
}

.who {
    font-size: 13px;
    color: var(--c-text-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.content {
    padding: 20px 24px 48px;
    flex: 1;
}

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}

.card-head {
    padding: 13px 18px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-head h2 {
    font-size: 14.5px;
    margin: 0;
    font-weight: 700;
}

.card-head .hint {
    font-size: 12px;
    color: var(--c-text-mute);
    font-weight: 400;
}

.card-body {
    padding: 16px 18px;
}

.card-body.tight {
    padding: 0;
}

/* ---------------- 指标块 ---------------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.tile {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.tile::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--c-accent);
}

.tile.danger::after {
    background: var(--c-danger);
}

.tile.warn::after {
    background: var(--c-warn);
}

.tile.caution::after {
    background: var(--c-caution);
}

.tile.ok::after {
    background: var(--c-ok);
}

.tile .k {
    font-size: 12px;
    color: var(--c-text-mute);
}

.tile .v {
    font-size: 25px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.25;
}

.tile .v small {
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-mute);
    margin-left: 3px;
}

.tile .foot {
    font-size: 11.5px;
    color: var(--c-text-mute);
}

/* ---------------- 表格 ---------------- */
table.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.grid th {
    background: #f7f9fc;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--c-text-soft);
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
    font-size: 12.5px;
}

table.grid td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

table.grid tr:hover td {
    background: #fafcfe;
}

table.grid tr.row-danger td {
    background: #fdf3f2;
}

table.grid tr.row-warn td {
    background: #fef8f1;
}

.empty {
    padding: 34px 16px;
    text-align: center;
    color: var(--c-text-mute);
    font-size: 13px;
}

/* ---------------- 徽标 ---------------- */
.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 18px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge.solid {
    color: #fff;
}

.badge.grey {
    background: #eef1f5;
    color: var(--c-text-soft);
}

.badge.blue {
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.badge.green {
    background: #e8f7ee;
    color: #1e7a44;
}

.badge.orange {
    background: #fdf1e3;
    color: #aa5a13;
}

.badge.red {
    background: #fbeceb;
    color: #a3271c;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

/* ---------------- 表单 ---------------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field.wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 12.5px;
    color: var(--c-text-soft);
    font-weight: 600;
}

.field .req {
    color: var(--c-danger);
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--c-border-strong);
    border-radius: 7px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--c-text);
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.13);
}

textarea.form-input {
    resize: vertical;
}

.field .help {
    font-size: 11.5px;
    color: var(--c-text-mute);
}

.field .err {
    font-size: 12px;
    color: var(--c-danger);
}

.field-with-add {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-with-add .form-input,
.field-with-add select {
    flex: 1 1 auto;
    width: auto;
}

.field-with-add .add-link {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 7px;
    border: 1px solid var(--c-border-strong);
    background: #fff;
    color: var(--c-text);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
}

.btn:hover {
    background: #f3f6fa;
    text-decoration: none;
}

.btn.primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.btn.primary:hover {
    background: #1a4266;
}

.btn.accent {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

.btn.accent:hover {
    background: #2569b3;
}

.btn.danger {
    background: var(--c-danger);
    border-color: var(--c-danger);
    color: #fff;
}

.btn.danger:hover {
    background: #a3271c;
}

.btn.ghost {
    background: transparent;
}

.btn.sm {
    padding: 5px 11px;
    font-size: 12.5px;
}

.btn.link {
    border: none;
    background: none;
    color: var(--c-accent);
    padding: 0;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filters .field {
    min-width: 150px;
}

/* ---------------- 消息条 ---------------- */
.msgs {
    margin-bottom: 16px;
}

.msg {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13.5px;
    border-left: 4px solid;
}

.msg.success {
    background: #eaf8f0;
    border-color: var(--c-ok);
    color: #1d6b3e;
}

.msg.warning {
    background: #fdf6e8;
    border-color: var(--c-caution);
    color: #8a6412;
}

.msg.error {
    background: #fbedeb;
    border-color: var(--c-danger);
    color: #92281d;
}

.msg.info {
    background: var(--c-primary-soft);
    border-color: var(--c-accent);
    color: #1c4a77;
}

/* ---------------- 提示块 ---------------- */
.note {
    background: #f7f9fc;
    border: 1px dashed var(--c-border-strong);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--c-text-soft);
}

.note.warn {
    background: #fdf6e8;
    border-color: #e8cf8f;
    color: #7d5c11;
}

.note.danger {
    background: #fbedeb;
    border-color: #e8aca4;
    color: #8d2619;
}

.note ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

/* ---------------- 键值列表 ---------------- */
.kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px 20px;
}

.kv .row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    border-bottom: 1px dotted #eaeff5;
    padding-bottom: 6px;
}

.kv .row .k {
    color: var(--c-text-mute);
    flex: 0 0 86px;
}

.kv .row .v {
    color: var(--c-text);
    font-weight: 500;
    word-break: break-all;
    flex: 1;
}

/* ---------------- 时间线（项目留痕） ---------------- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    position: relative;
    padding: 0 0 16px 20px;
    border-left: 2px solid var(--c-border);
    margin-left: 5px;
}

.timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c-accent);
}

.timeline .t {
    font-size: 13.5px;
    font-weight: 600;
}

.timeline .d {
    font-size: 11.5px;
    color: var(--c-text-mute);
    margin-bottom: 3px;
}

.timeline .x {
    font-size: 12.5px;
    color: var(--c-text-soft);
}

/* ---------------- 分页 ---------------- */
.pager {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--c-text-mute);
}

.pager a,
.pager span.cur {
    padding: 4px 10px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: #fff;
    color: var(--c-text-soft);
}

.pager span.cur {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* ---------------- 凭证 ---------------- */
.voucher {
    background: #fff;
    border: 2px solid var(--c-primary);
    border-radius: var(--radius);
    padding: 30px 34px;
    max-width: 760px;
    margin: 0 auto;
}

.voucher h1 {
    text-align: center;
    font-size: 21px;
    letter-spacing: 4px;
    margin: 0 0 6px;
    color: var(--c-primary);
}

.voucher .no {
    text-align: center;
    font-size: 12.5px;
    color: var(--c-text-mute);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.voucher .stmt {
    font-size: 14px;
    line-height: 2.1;
    text-indent: 2em;
    margin: 18px 0;
}

.voucher .sign {
    display: flex;
    justify-content: space-between;
    margin-top: 34px;
    font-size: 13px;
    color: var(--c-text-soft);
}

.voucher .seal {
    color: var(--c-danger);
    border: 2px solid var(--c-danger);
    border-radius: 50%;
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    transform: rotate(-12deg);
    opacity: .72;
    font-weight: 700;
}

/* ---------------- 公开页（手机优先） ---------------- */
.public-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 22px 16px 60px;
}

.public-head {
    background: linear-gradient(135deg, #1f4e79, #2d7dd2);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 20px;
    margin-bottom: 16px;
}

.public-head h1 {
    font-size: 18px;
    margin: 0 0 6px;
}

.public-head p {
    margin: 0;
    font-size: 12.5px;
    opacity: .9;
}

.steps {
    counter-reset: s;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 12.5px;
    color: var(--c-text-soft);
}

.steps li {
    counter-increment: s;
    padding-left: 24px;
    position: relative;
    margin-bottom: 4px;
}

.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 11px;
    text-align: center;
    line-height: 17px;
    font-weight: 700;
}

/* ---------------- 登录页 ---------------- */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(135deg, #16324f 0%, #2d7dd2 100%);
}

.login-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.login-card h1 {
    font-size: 19px;
    margin: 0 0 4px;
    color: var(--c-primary);
}

.login-card .sub {
    font-size: 12.5px;
    color: var(--c-text-mute);
    margin-bottom: 20px;
}

.demo-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--c-border);
    font-size: 12.5px;
}

.demo-list .t {
    color: var(--c-text-mute);
    margin-bottom: 6px;
}

.demo-list a {
    display: block;
    padding: 5px 0;
    color: var(--c-accent);
}

/* ---------------- 身份证拍照组件 ---------------- */
.idcap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.idcap-slot {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #fbfcfe;
    padding: 10px;
}

.idcap-frame {
    position: relative;
    height: 118px;
    border: 1.5px dashed var(--c-border-strong);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    text-align: center;
}

.idcap-frame[data-empty] {
    background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 8px, #f4f6fa 8px, #f4f6fa 16px);
}

.idcap-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idcap-frame .idcap-hint {
    font-size: 12.5px;
    color: var(--c-text-soft);
    font-weight: 600;
}

.idcap-frame .idcap-sub {
    font-size: 11px;
    color: var(--c-text-mute);
    padding: 0 8px;
}

.idcap-frame .idcap-size {
    position: absolute;
    right: 4px;
    bottom: 4px;
    background: rgba(22, 50, 79, .72);
    color: #fff;
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 4px;
}

.idcap-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.idcap-actions .btn {
    flex: 1;
    text-align: center;
}

.idcap-note {
    margin-top: 6px;
    color: var(--c-text-mute);
    min-height: 16px;
    word-break: break-all;
}

.idcap-busy {
    display: none;
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 12.5px;
}

.idcap-filled-tip {
    display: none;
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #1d6b3e;
    background: #eaf8f0;
    border-left: 3px solid var(--c-ok);
    padding: 8px 12px;
    border-radius: 6px;
}

.form-input.idcap-filled {
    background: #f2fbf6;
    border-color: #9fd8ba;
}

/* ---------------- 身份证照片展示 ---------------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.photo-card {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.photo-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: #f0f2f6;
}

.photo-card .meta {
    padding: 7px 10px;
    font-size: 11.5px;
    color: var(--c-text-soft);
}

.photo-card .meta .t {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--c-text);
    margin-bottom: 2px;
}

@media (max-width: 600px) {
    .idcap {
        grid-template-columns: 1fr;
    }
}

/* ---------------- 工具类 ---------------- */
.flex {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.between {
    justify-content: space-between;
}

.right {
    text-align: right;
}

.nowrap {
    white-space: nowrap;
}

.muted {
    color: var(--c-text-mute);
}

.small {
    font-size: 12px;
}

.mt0 {
    margin-top: 0;
}

.mb0 {
    margin-bottom: 0;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.progress {
    height: 8px;
    background: #eef2f7;
    border-radius: 6px;
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    background: var(--c-ok);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .grid2,
    .grid3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex: none;
        padding-bottom: 8px;
    }

    .nav {
        display: flex;
        overflow-x: auto;
        gap: 2px;
        padding: 0 8px 8px;
    }

    .nav-group {
        display: none;
    }

    .nav a {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 9px 12px;
    }

    .nav a.on {
        border-left: none;
        border-bottom-color: var(--c-accent);
    }

    .content {
        padding: 14px 12px 40px;
    }

    .topbar {
        padding: 10px 14px;
    }

    table.grid {
        font-size: 12.5px;
    }

    table.grid th,
    table.grid td {
        padding: 8px 9px;
    }

    .voucher {
        padding: 20px 16px;
    }
}

/* ---------------- 看板图表（纯 CSS 手绘，零第三方依赖） ---------------- */
.sec {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 12px;
}
.sec h2 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
}
.sec .hint {
    font-size: 12px;
    color: var(--c-text-mute);
    font-weight: 400;
}
.sec .line {
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 132px;
}
.bars .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    height: 100%;
}
.bars .col .val {
    font-size: 11px;
    color: var(--c-text-mute);
    flex: none;
}
.bars .col .bar {
    width: 100%;
    background: #bcd8f0;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
}
.bars .col .bar.strong {
    background: var(--c-accent);
}
.bars .col .lb {
    font-size: 11px;
    color: var(--c-text-mute);
    flex: none;
}
.bars .col .pair {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    /* 关键：必须给 .pair 一个确定高度，否则子元素 i 的 height:xx% 无处可依
       （父元素高度 auto 时百分比高度会被解析成 auto → 退化为 0），柱状图整片空白 */
    flex: 1;
    min-height: 0;
}
.bars .col .pair i {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}
.bars.dual .col .pair i.up {
    background: #4bb37a;
}
.bars.dual .col .pair i.down {
    background: #d97a6c;
}
.bars.dual .col .pair i.cg {
    background: #bcd8f0;
}
.bars.dual .col .pair i.cn {
    background: var(--c-accent);
}

.stack {
    display: flex;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef2f7;
}
.stack .seg {
    height: 100%;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 13px;
}
.legend .item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}
.legend .item .nm {
    flex: 1;
}
.legend .item .pc {
    color: var(--c-text-mute);
    width: 48px;
    text-align: right;
}
.legend .item .amt {
    width: 86px;
    text-align: right;
}
.sw {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex: none;
}

.rank {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.rank .row .top {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 4px;
}
.rank .row .top .vv {
    color: var(--c-text-soft);
}
.hbar {
    height: 8px;
    background: #eef2f7;
    border-radius: 4px;
    overflow: hidden;
}
.hbar > i {
    display: block;
    height: 100%;
    background: var(--c-accent);
    border-radius: 4px;
}
.hbar.green > i {
    background: #2e9e5b;
}

.chart-note {
    font-size: 11.5px;
    color: var(--c-text-mute);
    margin-top: 10px;
}

.tile .v .unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-mute);
    margin-left: 3px;
}
.tile.money .v {
    font-size: 22px;
}
.tile.people::after {
    background: var(--c-primary);
}
.tile.cost::after {
    background: var(--c-accent);
}

@media (max-width: 560px) {
    .bars {
        height: 112px;
        gap: 6px;
    }
}
