/* ==========================================================================
   静仪直充 · 管理后台样式
   风格：冷静专业（深色侧栏 + 浅灰内容区 + 细边框 + 克制动效）
   ========================================================================== */

:root {
    /* 中性色阶 */
    --bg: #f6f7f9;
    --surface: #ffffff;
    --sidebar: #14161a;
    --sidebar-hover: #1d2026;
    --sidebar-active: #262a32;
    --line: #e6e8ec;
    --line-strong: #d5d9e0;

    /* 文字 */
    --text: #16181d;
    --text-2: #5c636e;
    --text-3: #8f96a1;
    --text-inv: #f2f4f7;

    /* 强调色：低饱和蓝，避免刺眼 */
    --accent: #3b6ef5;
    --accent-soft: #eef2fe;
    --accent-line: #c9d8fd;

    /* 语义色 */
    --ok: #14875a;
    --ok-soft: #e8f5ef;
    --warn: #a8730a;
    --warn-soft: #fdf4e3;
    --danger: #c0392b;
    --danger-soft: #fdeceb;

    /* 阴影：只用极淡两层，避免"浮夸卡片" */
    --shadow-1: 0 1px 2px rgba(16, 20, 28, .04);
    --shadow-2: 0 4px 16px rgba(16, 20, 28, .07);

    --radius: 10px;
    --radius-lg: 14px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* 数字统一用等宽，表格对齐更整齐 */
.num, .metric-value, td.cell-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ───────────────────────── 布局 ───────────────────────── */

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* 侧栏 */
.sidebar {
    width: 232px;
    flex: 0 0 232px;
    background: var(--sidebar);
    color: var(--text-inv);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 18px;
}

/* 抽屉关闭按钮：桌面隐藏，窄屏显示 */
.drawer-close {
    display: none;
    margin-left: auto;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9aa1ad;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
}

.drawer-close:hover {
    background: #262a32;
    color: #e8eaee;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(145deg, #4b7bf7, #2f57d0);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    flex: 0 0 30px;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    font-size: 11px;
    color: #7c838f;
    margin-top: 1px;
}

.nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px 16px;
}

.nav-group-label {
    font-size: 11px;
    color: #8f96a4;
    padding: 15px 9px 7px;
    letter-spacing: .05em;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ccd1d9;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: background .16s var(--ease), color .16s var(--ease);
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: #ffffff;
    font-weight: 550;
}

/* 激活指示条：左侧细亮条，比整块高亮更克制 */
.nav-item.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    border-radius: 2px;
    background: var(--accent);
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    opacity: .85;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.sidebar-foot {
    padding: 12px;
    border-top: 1px solid #23262d;
}

.who {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 8px;
    min-width: 0;
}

.who-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2b3038;
    color: #d6dae1;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    flex: 0 0 26px;
}

.who-name {
    font-size: 12.5px;
    color: #d6dae1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.btn-logout {
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid #2b3038;
    border-radius: 8px;
    background: transparent;
    color: #9aa1ad;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all .16s var(--ease);
}

.btn-logout:hover {
    background: #24191a;
    border-color: #4a2a2c;
    color: #e8908c;
}

/* 主内容区 */
.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
    margin: 0;
}

.page-desc {
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 1px;
}

.content {
    padding: 22px 26px 48px;
    flex: 1;
    min-width: 0;
}

/* ───────────────────────── 卡片与网格 ───────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

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

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 18px;
}

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

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 15px 17px;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
}

.metric-label {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 7px;
}

.metric-value {
    font-size: 23px;
    font-weight: 620;
    letter-spacing: -.015em;
    line-height: 1.15;
}

.metric-foot {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 5px;
}

/* ───────────────────────── 按钮 ───────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s var(--ease), transform .08s var(--ease),
        box-shadow .15s var(--ease), border-color .15s var(--ease);
}

.btn:hover { background: #2f5fe0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn.ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text-2);
}

.btn.ghost:hover {
    background: #fafbfc;
    border-color: #c2c7d0;
    color: var(--text);
}

.btn.danger {
    background: var(--surface);
    border-color: #efc9c5;
    color: var(--danger);
}

.btn.danger:hover {
    background: var(--danger-soft);
    border-color: #e3a9a3;
}

.btn.small {
    padding: 4px 9px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ───────────────────────── 表单 ───────────────────────── */

.input, .select, .textarea {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 110, 245, .12);
}

.textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 1.6;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field-label {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

.field-hint {
    font-size: 11.5px;
    color: var(--text-3);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

/* ───────────────────────── 表格 ───────────────────────── */

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: .03em;
    padding: 10px 14px;
    background: #fafbfc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f3f6;
    color: var(--text-2);
    vertical-align: middle;
}

.table tbody tr {
    transition: background .13s var(--ease);
}

.table tbody tr:hover td {
    background: #fafbfd;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.cell-strong {
    color: var(--text);
    font-weight: 550;
}

.cell-mono {
    font-size: 12px;
    color: var(--text-3);
}

.row-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

/* ───────────────────────── 徽标 / 状态 ───────────────────────── */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.7;
    white-space: nowrap;
}

.tag::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}

.tag.plain::before { display: none; }

.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.neutral { background: #f1f3f6; color: var(--text-2); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }

/* ───────────────────────── 分页 / 工具条 ───────────────────────── */

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}

.toolbar .spacer { flex: 1; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-3);
}

/* ───────────────────────── 空态 / 加载 ───────────────────────── */

.empty {
    padding: 52px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f3f6 25%, #e8ebef 37%, #f1f3f6 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ───────────────────────── 动效 ───────────────────────── */

/* 页面切换：轻微上移 + 淡入，不用夸张位移 */
.page-enter-active {
    transition: opacity .26s var(--ease), transform .26s var(--ease);
}

.page-leave-active {
    transition: opacity .12s var(--ease);
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.page-enter-from {
    opacity: 0;
    transform: translateY(6px);
}

.page-leave-to {
    opacity: 0;
}

/* 列表逐项入场 */
.rise-enter-active {
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.rise-enter-from {
    opacity: 0;
    transform: translateY(8px);
}

/* 弹窗 */
.modal-enter-active, .modal-leave-active {
    transition: opacity .2s var(--ease);
}

.modal-enter-active .modal-panel,
.modal-leave-active .modal-panel {
    transition: transform .24s var(--ease), opacity .2s var(--ease);
}

.modal-enter-from, .modal-leave-to {
    opacity: 0;
}

.modal-enter-from .modal-panel,
.modal-leave-to .modal-panel {
    transform: translateY(10px) scale(.985);
    opacity: 0;
}

/* 提示条 */
.toast-enter-active, .toast-leave-active {
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.toast-enter-from, .toast-leave-to {
    opacity: 0;
    transform: translateY(-8px);
}

/* 尊重系统"减少动态效果"偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ───────────────────────── 弹窗 ───────────────────────── */

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(16, 20, 28, .38);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 100;
}

.modal-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(16, 20, 28, .18);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.modal-title {
    font-size: 14.5px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    border: 0;
    background: transparent;
    color: var(--text-3);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all .15s var(--ease);
}

.modal-close:hover {
    background: #f1f3f6;
    color: var(--text);
}

.modal-body {
    padding: 18px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
}

/* ───────────────────────── 提示条 ───────────────────────── */

.toast-host {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.toast {
    padding: 8px 15px;
    border-radius: 9px;
    background: #1d2027;
    color: #f2f4f7;
    font-size: 13px;
    box-shadow: var(--shadow-2);
    max-width: 70vw;
}

.toast.err { background: #8f2b22; }
.toast.ok { background: #14624a; }

/* ───────────────────────── 登录页 ───────────────────────── */

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 480px at 50% -12%, #eef2fe 0%, transparent 62%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 372px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16, 20, 28, .08);
    padding: 30px 28px 26px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-title {
    font-size: 17px;
    font-weight: 620;
    letter-spacing: -.01em;
    margin: 0 0 3px;
}

.auth-sub {
    font-size: 12.5px;
    color: var(--text-3);
    margin: 0 0 22px;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-error {
    margin-top: 12px;
    padding: 8px 11px;
    border-radius: 8px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 12.5px;
}

/* ───────────────────────── 其它 ───────────────────────── */

.muted { color: var(--text-3); }
.spin {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.divider {
    height: 1px;
    background: var(--line);
    margin: 16px 0;
}

.link-plain {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.link-plain:hover { text-decoration: underline; }

/* 图标预览 */
.icon-preview {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--text-3);
    font-size: 11px;
    overflow: hidden;
    flex: 0 0 44px;
}

.icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.inline-row .input { flex: 1; min-width: 0; }

/* 响应式：窄屏收起侧栏为顶部横向导航 */
/* 窄屏：侧栏收为抽屉，避免十几个菜单横向挤成一条看不全 */
@media (max-width: 1024px) {
    .app-shell { flex-direction: column; }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 264px;
        height: 100%;
        flex: none;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, .3);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .sidebar.open { transform: translateX(0); }

    /* 抽屉遮罩 */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 12, 16, .46);
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s var(--ease);
        z-index: 55;
    }

    .sidebar-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    .main { width: 100%; }

    /* 顶栏汉堡按钮 */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border: 1px solid var(--line-strong);
        border-radius: 9px;
        background: var(--surface);
        color: var(--text-2);
        cursor: pointer;
        transition: background .15s var(--ease), border-color .15s var(--ease);
    }

    .menu-toggle:active {
        background: #f1f3f6;
    }

    .topbar { padding: 12px 16px; gap: 12px; }
    .topbar-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .content { padding: 16px 16px 40px; }
    .metrics { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
    .metric-value { font-size: 20px; }

    .drawer-close { display: grid; place-items: center; }

    /* 抽屉里菜单项加大，方便点按 */
    .nav-item { padding: 11px 12px; font-size: 14px; }
    .nav { padding: 4px 10px 12px; }

    /* 表格在窄屏可横向滚动，不撑破布局 */
    .table-wrap { -webkit-overflow-scrolling: touch; }
}

/* 桌面：固定侧栏，不显示汉堡按钮 */
@media (min-width: 1025px) {
    .menu-toggle { display: none; }
    .sidebar-backdrop { display: none; }
    .topbar-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
}

/* ==========================================================================
   扩展组件（Vue 版后台：趋势图 / 上传网格 / 详情弹窗等）
   ========================================================================== */

/* 双栏卡片（仪表盘最新订单/用户） */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

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

/* 7 日趋势柱状图（纯 CSS，与旧版一致的双柱：总订单 + 成功） */
.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 6px 6px 0;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 96px;
}

.bar {
    width: 16px;
    border-radius: 4px 4px 2px 2px;
    transition: height .3s var(--ease);
}

.bar.total { background: #c9d8fd; }
.bar.ok { background: var(--accent); }

.bar-label {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.trend-legend {
    display: flex;
    gap: 16px;
    margin-left: auto;
    align-self: flex-start;
    padding-top: 2px;
    font-size: 11.5px;
    color: var(--text-3);
    white-space: nowrap;
}

.trend-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: -1px;
}

.trend-legend .dot.total { background: #c9d8fd; }
.trend-legend .dot.ok { background: var(--accent); }

@media (max-width: 720px) {
    .trend-chart { flex-wrap: wrap; gap: 10px; }
    .bar { width: 12px; }
    .trend-legend { display: none; }
}

/* 详情弹窗两列信息 */
.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

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

/* 弹窗内子标签页 */
.subtabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    margin: 16px 0 10px;
}

.subtab {
    border: 0;
    background: transparent;
    padding: 7px 11px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text-2);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s var(--ease), border-color .15s var(--ease);
}

.subtab:hover { color: var(--text); }

.subtab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 550;
}

/* 紧凑列表（用户详情里的流水/订单/卡密/配额） */
.mini-list {
    max-height: 230px;
    overflow-y: auto;
    padding: 2px;
}

.mini-list .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 12.5px;
    color: var(--text-2);
    border-bottom: 1px dashed #f0f2f5;
}

.mini-list .row:last-child { border-bottom: 0; }

/* 行内代码（卡密等） */
.code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-size: 12px;
    background: #f6f7f9;
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 6px;
    color: #3d434d;
    user-select: all;
}

/* 省略文本（日志详情） */
.ellipsis {
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    cursor: pointer;
}

.ellipsis:hover { color: var(--accent); }

/* 日志详情 JSON */
.json-view {
    margin: 0;
    padding: 12px 14px;
    background: #f6f7f9;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #3d434d;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 380px;
    overflow-y: auto;
}

/* 上传文件网格 */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 14px;
}

.upload-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
    transition: box-shadow .16s var(--ease), border-color .16s var(--ease);
}

.upload-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}

.upload-item .thumb {
    height: 108px;
    background: #f6f7f9;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.upload-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.upload-item .meta {
    padding: 9px 11px 11px;
    font-size: 11.5px;
    color: var(--text-3);
    word-break: break-all;
}

.upload-item .meta b {
    display: block;
    color: var(--text);
    font-size: 12.5px;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 可关闭的标签（卡密批次筛选） */
.tag .tag-x {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 13px;
    line-height: 1;
    padding: 0 0 0 2px;
    cursor: pointer;
    opacity: .7;
}

.tag .tag-x:hover { opacity: 1; }

/* ==========================================================================
   视觉升级层 · 控制台质感
   ========================================================================== */

/* 文本选择与焦点环 */
::selection { background: rgba(59, 110, 245, .18); }

:focus-visible {
    outline: 2px solid rgba(59, 110, 245, .55);
    outline-offset: 2px;
}

/* 细滚动条：侧栏 / 内容区 / 弹窗 / 列表 */
.nav::-webkit-scrollbar,
.content::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar,
.mini-list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }

.nav::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.modal-panel::-webkit-scrollbar-thumb,
.mini-list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(120, 128, 140, .28);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); background-clip: padding-box; }

.nav::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.modal-panel::-webkit-scrollbar-track { background: transparent; }

/* ── 按钮质感：主按钮渐变 + 投影，新增文本链接按钮 ── */
.btn {
    background: linear-gradient(180deg, #4a76f6, #3561e8);
    box-shadow: 0 1px 2px rgba(47, 87, 208, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.btn:hover { background: linear-gradient(180deg, #3f6ef3, #2f59dd); }

.btn.ghost, .btn.danger { box-shadow: none; }

.btn-link {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background .15s var(--ease);
}

.btn-link:hover { background: var(--accent-soft); }

/* ── 顶栏：折叠钮 / 面包屑 / 全局搜索 / 头像菜单 ── */
.rail-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    transition: all .15s var(--ease);
}

.rail-toggle:hover {
    background: #f1f3f6;
    color: var(--text);
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    color: var(--text-3);
    white-space: nowrap;
}

.crumbs .crumb-sep { color: #c8cdd6; }

.crumbs .crumb-root { color: var(--text-3); }

.crumbs .crumb-cur {
    color: var(--text);
    font-weight: 560;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    max-width: 34vw;
    padding: 0 10px 0 12px;
    height: 36px;
    border-radius: 999px;
    background: #f2f3f6;
    border: 1px solid transparent;
    transition: all .18s var(--ease);
}

.search-box:hover { background: #eef0f4; }

.search-box:focus-within {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 110, 245, .12);
}

.search-box .search-ico {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--text-3);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
}

.search-box input::placeholder { color: #a6adb8; }

.kbd {
    flex: 0 0 auto;
    font-size: 10.5px;
    color: var(--text-3);
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 5px;
    letter-spacing: .04em;
    user-select: none;
}

.search-box:focus-within .kbd { display: none; }

/* 头像菜单 */
.avatar-menu { position: relative; }

.avatar-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(145deg, #4b7bf7, #2f57d0);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(47, 87, 208, .35);
    transition: transform .12s var(--ease), box-shadow .15s var(--ease);
}

.avatar-btn:hover { box-shadow: 0 2px 8px rgba(47, 87, 208, .4); }
.avatar-btn:active { transform: scale(.96); }

.avatar-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c07a;
    border: 2px solid var(--surface);
}

.pop {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 216px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 14px 38px rgba(16, 20, 28, .14);
    padding: 6px;
    z-index: 60;
}

.pop-enter-active { transition: opacity .16s var(--ease), transform .16s var(--ease); }
.pop-enter-from { opacity: 0; transform: translateY(-5px) scale(.97); }
.pop-leave-active { transition: opacity .1s; }
.pop-leave-to { opacity: 0; }

.pop-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 11px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.pop-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4b7bf7, #2f57d0);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 650;
}

.pop-name {
    font-size: 13.5px;
    font-weight: 560;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-role { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

.pop-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    font-family: inherit;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .13s var(--ease), color .13s var(--ease);
}

.pop-item:hover { background: #f4f6f9; color: var(--text); }

.pop-item.pop-danger { color: var(--danger); }
.pop-item.pop-danger:hover { background: var(--danger-soft); }

/* ── 侧栏：用户信息升级 + 折叠（图标栏）模式 ── */
.who-meta { min-width: 0; flex: 1; }

.who-name { font-size: 12.5px; }

.who-role {
    font-size: 10.5px;
    color: #87909e;
    margin-top: 1px;
    letter-spacing: .02em;
}

@media (min-width: 1025px) {
    .sidebar {
        transition: width .22s var(--ease), flex-basis .22s var(--ease);
    }

    /* 折叠为图标栏 */
    .sidebar.rail { width: 70px; flex: 0 0 70px; }

    .sidebar.rail .brand { justify-content: center; padding: 20px 0 16px; }
    .sidebar.rail .brand-text,
    .sidebar.rail .nav-group-label,
    .sidebar.rail .nav-item span,
    .sidebar.rail .who-meta,
    .sidebar.rail .btn-logout { display: none; }

    .sidebar.rail .nav { padding: 4px 8px 12px; }

    .sidebar.rail .nav-item {
        justify-content: center;
        padding: 10px 0;
    }

    .sidebar.rail .nav-item.active::before { left: -8px; }

    .sidebar.rail .sidebar-foot { padding: 12px 8px; }

    .sidebar.rail .who { justify-content: center; padding: 6px 0; }

    .rail-toggle { display: inline-flex; }
}

/* ── 指标卡：图标芯片 + 悬浮微升 ── */
.metric {
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    border-color: var(--line-strong);
}

.metric-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.metric-top .metric-label { margin-bottom: 0; }

.metric-ico {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
}

.metric-ico .nav-icon { width: 15px; height: 15px; }

.metric-ico.blue   { background: #eef2fe; color: #3b6ef5; }
.metric-ico.green  { background: #e8f5ef; color: #14875a; }
.metric-ico.gold   { background: #fdf4e3; color: #b07a0a; }
.metric-ico.violet { background: #f3f0fe; color: #7a5af5; }
.metric-ico.cyan   { background: #e6f7fa; color: #0e93ad; }
.metric-ico.rose   { background: #fdeef2; color: #d84f79; }
.metric-ico.indigo { background: #ecf0fd; color: #5566e0; }

/* ── 卡片：圆角裁切 + 副标题 ── */
.card { overflow: hidden; }

.card-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ── SVG 趋势图 ── */
.svg-chart-wrap {
    width: 100%;
}

.svg-chart-wrap .trend-legend {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 0 0 2px;
    font-size: 11.5px;
    color: var(--text-3);
}

.svg-chart {
    display: block;
    width: 100%;
    height: auto;
}

.svg-chart .grid-line {
    stroke: #eef0f4;
    stroke-width: 1;
}

.svg-chart .grid-num {
    font-size: 10px;
    fill: #a6adb8;
}

.svg-chart .line-main {
    fill: none;
    stroke: #3b6ef5;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-chart .line-sub {
    fill: none;
    stroke: #9db4f9;
    stroke-width: 1.7;
    stroke-dasharray: 1 0;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .85;
}

.svg-chart .dot-main {
    fill: #fff;
    stroke: #3b6ef5;
    stroke-width: 2;
}

.svg-chart .axis-label {
    font-size: 11px;
    fill: #8f96a1;
}

/* ── 用户行：头像 ── */
.user-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.row-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef0f4;
    border: 1px solid var(--line);
}

.row-avatar-letter {
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 620;
    color: #5b7fd6;
    background: linear-gradient(145deg, #eef2fe, #e3eafc);
    border-color: #dbe5fb;
}

/* ── 空态插画 ── */
.empty { padding: 40px 20px; }

.empty-illus {
    width: 128px;
    height: 92px;
    display: block;
    margin: 0 auto 8px;
}

.empty-text {
    font-size: 13px;
    color: var(--text-3);
}

/* ── 弹窗质感 ── */
.modal-panel {
    border: 1px solid rgba(230, 232, 236, .9);
}

.modal-mask {
    backdrop-filter: blur(3px);
    background: rgba(15, 18, 24, .42);
}

/* ── 登录页：光感背景 ── */
.auth-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.auth-wrap::before,
.auth-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.auth-wrap::before {
    width: 480px;
    height: 480px;
    left: -140px;
    top: -160px;
    background: radial-gradient(circle, rgba(75, 123, 247, .18), transparent 65%);
}

.auth-wrap::after {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(34, 192, 122, .13), transparent 65%);
}

.auth-card {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(16, 20, 28, .1), 0 2px 8px rgba(16, 20, 28, .04);
}

.auth-card .btn[type="submit"],
.auth-fields .btn {
    background: linear-gradient(180deg, #4a76f6, #3561e8);
    box-shadow: 0 2px 6px rgba(47, 87, 208, .3);
}

.auth-card .btn[type="submit"]:hover,
.auth-fields .btn:hover {
    background: linear-gradient(180deg, #3f6ef3, #2f59dd);
}

.brand-mark {
    box-shadow: 0 2px 8px rgba(47, 87, 208, .35);
}

/* ── 响应式补充 ── */
@media (max-width: 900px) {
    .search-box { display: none; }
}

@media (max-width: 1024px) {
    .rail-toggle { display: none !important; }
    .crumbs .crumb-root, .crumbs .crumb-sep { display: none; }
}

/* ==========================================================================
   动效层 · 启动画面 / 进场编排 / 图表生长
   ========================================================================== */

/* ── 启动画面（splash） ── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background:
        radial-gradient(720px 420px at 50% -8%, #eef2fe 0%, transparent 62%),
        var(--bg);
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.splash-logo {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 19px;
    background: linear-gradient(145deg, #4b7bf7, #2f57d0);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(47, 87, 208, .35);
    animation: splash-pop .5s var(--ease) both;
}

.splash-ring {
    position: absolute;
    inset: -9px;
    border-radius: 24px;
    border: 2px solid rgba(59, 110, 245, .35);
    animation: ring-pulse 1.6s var(--ease) infinite;
}

.splash-ring-2 { animation-delay: .5s; }

@keyframes ring-pulse {
    0%   { transform: scale(.92); opacity: .9; }
    70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

@keyframes splash-pop {
    from { transform: scale(.6) translateY(8px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.splash-name {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 620;
    letter-spacing: .01em;
    color: var(--text);
    animation: fade-up .5s .12s var(--ease) both;
}

.splash-sub {
    font-size: 12px;
    color: var(--text-3);
    animation: fade-up .5s .2s var(--ease) both;
}

.splash-bar {
    width: 176px;
    height: 3px;
    border-radius: 99px;
    background: #e8ebf1;
    overflow: hidden;
    margin-top: 18px;
    animation: fade-up .5s .26s var(--ease) both;
}

.splash-bar i {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4b7bf7, #2f57d0);
    animation: bar-slide 1s var(--ease) infinite;
}

@keyframes bar-slide {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(300%); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 揭幕：整层淡出 + 轻微放大 */
.splash-leave-active {
    transition: opacity .38s var(--ease);
}

.splash-leave-active .splash-inner {
    transition: transform .38s var(--ease), opacity .3s var(--ease);
    transform: scale(1.05);
}

.splash-leave-to { opacity: 0; }

/* ── 应用外壳进场编排（booted 之后依次登场） ── */
/* 注意：侧栏进场动画只作用于桌面端；手机端侧栏是抽屉（transform 被动画
   fill 模式覆盖会导致抽屉卡在展开态），这里不能动它。 */
/* 兜底机制：opacity:0 只保持 1.2 秒，之后强制显示。这样即使加载的是
   没有揭幕逻辑的旧版脚本，页面也绝不会一直空白。 */
.app-shell .topbar,
.app-shell .content {
    opacity: 0;
    animation: force-show .3s 1.2s var(--ease) forwards;
}

@keyframes force-show {
    to { opacity: 1; }
}

.app-shell.booted .topbar {
    animation: topbar-in .45s .16s var(--ease) both;
}

@media (min-width: 1025px) {
    .app-shell .sidebar {
        opacity: 0;
        animation: force-show .3s 1.2s var(--ease) forwards;
    }
    .app-shell.booted .sidebar {
        animation: shell-in .5s .05s var(--ease) both;
    }
}

.app-shell.booted .topbar {
    animation: topbar-in .45s .16s var(--ease) both;
}

.app-shell.booted .content {
    animation: fade-up .5s .26s var(--ease) both;
}

@keyframes shell-in {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes topbar-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 侧栏菜单逐项滑入 */
.app-shell.booted .nav-item {
    animation: nav-in .4s var(--ease) both;
    animation-delay: calc(.1s + var(--i, 0) * 35ms);
}

@keyframes nav-in {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── 仪表盘：指标卡错峰升起 + 数字滚动 ── */
.content .metric {
    animation: rise-in .5s var(--ease) both;
    animation-delay: calc(.15s + var(--i, 0) * 55ms);
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.metric-prefix {
    font-size: 15px;
    font-weight: 560;
    color: var(--text-2);
    margin-right: 1px;
}

/* ── 表格行渐入（仅新建节点时触发） ── */
.table tbody tr {
    animation: row-in .3s var(--ease) both;
}

@keyframes row-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 趋势图生长动画 ── */
.chart-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: chart-draw 1s .25s var(--ease) forwards;
}

.chart-draw-sub {
    animation-duration: .8s;
    animation-delay: .45s;
}

@keyframes chart-draw {
    to { stroke-dashoffset: 0; }
}

.chart-area {
    animation: fade-in .7s .55s var(--ease) both;
}

.chart-dot {
    animation: dot-pop .35s var(--ease) both;
    animation-delay: calc(.35s + var(--i, 0) * 70ms);
}

.chart-axis {
    animation: fade-in .5s .5s var(--ease) both;
}

@keyframes dot-pop {
    from { opacity: 0; transform: scale(0); transform-origin: center; transform-box: fill-box; }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── 登录卡进场 ── */
.auth-card {
    animation: rise-in .55s var(--ease) both;
}

.auth-brand .brand-mark {
    animation: splash-pop .5s var(--ease) both;
}

/* 页面切换时内容块轻移（原有 page 过渡之上补充） */
.content > main { position: relative; }

/* ── 手机端小屏适配（≤640px） ── */
@media (max-width: 640px) {
    .content { padding: 12px 10px 36px; }

    .topbar { padding: 10px 12px; }
    .topbar-main { gap: 9px; }
    .crumbs { font-size: 12.5px; }
    .avatar-btn { width: 32px; height: 32px; }

    /* 卡片与表格收紧留白，行高更紧凑 */
    .card-head { padding: 12px 13px; }
    .card-body { padding: 13px; }
    .toolbar { padding: 10px 12px; gap: 8px; }
    .table th { padding: 8px 10px; font-size: 11px; }
    .table td { padding: 9px 10px; font-size: 12.5px; }
    .cell-mono { font-size: 11px; }

    .metric { padding: 13px 14px; }
    .metric-value { font-size: 19px; }
    .metric-ico { width: 26px; height: 26px; border-radius: 8px; }

    .pager { flex-wrap: wrap; gap: 8px; }

    /* 弹窗占满小屏 */
    .modal-mask { padding: 10px; }
    .modal-panel { max-width: 100%; border-radius: 13px; }
    .modal-body { padding: 14px; }
    .form-grid { grid-template-columns: 1fr; }

    .svg-chart-wrap .trend-legend { gap: 10px; }

    .user-cell .row-avatar { width: 26px; height: 26px; flex-basis: 26px; }

    .splash-logo { width: 56px; height: 56px; font-size: 24px; border-radius: 17px; }
    .splash-name { font-size: 15.5px; }

    .btn { padding: 7px 12px; }
    .btn.small { padding: 5px 9px; }

    .row-actions { flex-wrap: wrap; gap: 4px; }
}
