/* ============================================================
   文澜书阁 · 后台样式
   ============================================================ */

:root {
    --side-bg: #1e2622;
    --side-bg-2: #172019;
    --side-ink: #9fb0a6;
    --side-active: #2f6b5e;
    --bg: #f4f6f5;
    --surface: #fff;
    --ink: #1f2621;
    --ink-2: #4d564f;
    --ink-3: #8b948d;
    --line: #e4e9e6;
    --brand: #2f6b5e;
    --brand-soft: #e8f1ee;
    --danger: #c0503f;
    --warn: #c98b2e;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(24, 33, 27, .05), 0 2px 8px rgba(24, 33, 27, .04);
    --shadow-md: 0 8px 26px rgba(24, 33, 27, .1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ------------------------------ 登录页 ------------------------------ */
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #1e2622, #2f6b5e 130%);
    padding: 24px;
}
.admin-login-card {
    width: 100%;
    max-width: 392px;
    background: #fff;
    border-radius: 18px;
    padding: 38px 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.admin-login-card .brand { text-align: center; margin-bottom: 26px; }
.admin-login-card .brand .mark {
    width: 52px; height: 52px; margin: 0 auto 12px;
    border-radius: 15px;
    background: linear-gradient(150deg, var(--brand), #5aa08b);
    color: #fff; display: grid; place-items: center;
    font-size: 24px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(47, 107, 94, .34);
}
.admin-login-card .brand h1 { font-size: 21px; letter-spacing: 2px; }
.admin-login-card .brand p { font-size: 13px; color: var(--ink-3); margin: 3px 0 0; }

/* ------------------------------ 布局 ------------------------------ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-side {
    width: 220px;
    flex-shrink: 0;
    background: var(--side-bg);
    color: var(--side-ink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    padding: 21px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.admin-brand .mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(150deg, #3f8a77, #2f6b5e);
    display: grid; place-items: center; font-size: 15px;
}

.admin-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.admin-nav .group { font-size: 11.5px; letter-spacing: 1px; color: #64756b; padding: 14px 10px 7px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    margin-bottom: 2px;
    transition: .16s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.active { background: var(--side-active); color: #fff; font-weight: 500; box-shadow: 0 4px 12px rgba(47, 107, 94, .34); }
.admin-nav a .ic { width: 17px; text-align: center; font-size: 14px; opacity: .9; }

.admin-side-foot { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12.5px; color: #64756b; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-top {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.admin-top h2 { font-size: 16.5px; }
.admin-top .right { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); }
.admin-top .who { display: flex; align-items: center; gap: 8px; }
.admin-top .avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(140deg, var(--brand), #61a791);
    color: #fff; display: grid; place-items: center; font-size: 13px;
}

.admin-body { padding: 22px 24px 44px; }

/* ------------------------------ 卡片 / 表格 ------------------------------ */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.card-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--brand); }
.card-body { padding: 20px; }
.card-body.p0 { padding: 0; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: #fafcfb; font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: #fafcfb; }
.table tbody tr:last-child td { border-bottom: none; }
.table .nowrap { white-space: nowrap; }
.table .muted { color: var(--ink-3); font-size: 13px; }
.table .title-cell { font-weight: 600; }
.table .ops { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------ 按钮 / 徽标 ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    transition: .16s;
    white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(47, 107, 94, .22); }
.btn-primary:hover { background: #24544a; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: #fdf2f0; color: var(--danger); border: 1px solid #f3ddd8; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; height: 42px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; line-height: 1.6; }
.badge-ok { background: var(--brand-soft); color: var(--brand); }
.badge-off { background: #f2f4f3; color: var(--ink-3); }
.badge-warn { background: #fdf5e6; color: var(--warn); }
.badge-vip { background: #fbf0e2; color: #b5803a; }

/* ------------------------------ 表单 ------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item { margin-bottom: 17px; }
.form-item label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.form-item .req { color: var(--danger); }
.input, .select, .textarea {
    width: 100%;
    padding: 10px 13px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fbfcfc;
    outline: none;
    font-size: 14px;
    transition: .16s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 94, .1); }
.textarea { resize: vertical; line-height: 1.75; min-height: 100px; }
.textarea.big { min-height: 340px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 15px; line-height: 1.9; }
.form-tip { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.checkbox-line { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.checkbox-line input { width: 15px; height: 15px; accent-color: var(--brand); }

/* ------------------------------ 统计 ------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 19px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat-card .label { font-size: 13px; color: var(--ink-3); margin-bottom: 7px; }
.stat-card .num { font-size: 27px; font-weight: 700; letter-spacing: -.5px; }
.stat-card .unit { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.stat-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--brand)); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ------------------------------ 检索条 ------------------------------ */
.filter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-form .input, .filter-form .select { width: auto; min-width: 150px; }

/* ------------------------------ 分页 ------------------------------ */
.pagination { display: flex; justify-content: center; padding: 18px; gap: 6px; flex-wrap: wrap; margin: 0; }
.pagination li { list-style: none; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 33px; height: 33px; padding: 0 10px;
    border-radius: 8px; border: 1px solid var(--line);
    background: #fff; font-size: 13.5px; color: var(--ink-2);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled span { opacity: .45; }

/* ------------------------------ 提示 ------------------------------ */
.toast {
    position: fixed; left: 50%; top: 24px; transform: translate(-50%, -12px);
    z-index: 200; padding: 11px 22px; border-radius: 10px;
    background: #1f2621; color: #fff; font-size: 13.5px;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: .26s;
    max-width: 80vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.ok { background: var(--brand); }
.toast.err { background: var(--danger); }

/* ------------------------------ 弹层 ------------------------------ */
.modal-mask {
    position: fixed; inset: 0; background: rgba(20, 26, 22, .5);
    z-index: 150; display: none; align-items: flex-start; justify-content: center;
    padding: 60px 20px 20px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
    width: 100%; max-width: 520px; background: #fff;
    border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
    animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 17px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 16px; }
.modal-head .close { font-size: 21px; line-height: 1; color: var(--ink-3); }
.modal-head .close:hover { color: var(--ink); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.empty { text-align: center; padding: 54px 20px; color: var(--ink-3); font-size: 14px; }

/* ------------------------------ 广告管理 ------------------------------ */
.ad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chip {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 13px; border-radius: 20px;
    background: #f4f7f6; border: 1px solid var(--line);
    font-size: 13px; color: var(--ink-2); transition: .16s;
}
.ad-chip:hover { border-color: var(--brand); color: var(--brand); }
.ad-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.ad-chip b { font-weight: 600; opacity: .72; }
.ad-chip.active b { opacity: .92; }
.ad-preview {
    display: inline-block; max-width: 380px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}

/* ------------------------------ 系统设置 ------------------------------ */
.setting-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 20px; align-items: start; }

.setting-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 8px;
    position: sticky;
    top: 76px;
}
.setting-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 2px;
    transition: .16s;
}
.setting-menu a:hover { background: #f6f8f7; color: var(--ink); }
.setting-menu a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.setting-menu a .ic { width: 16px; text-align: center; font-size: 13px; opacity: .85; }

.setting-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px 4px;
    min-height: 380px;
}

.setting-panel { display: none; }
.setting-panel.active { display: block; animation: panelIn .2s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.setting-panel .panel-head { padding-bottom: 15px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); }
.setting-panel .panel-head h3 { font-size: 16px; }
.setting-panel .panel-head p { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }

.setting-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 13px 18px;
}
.setting-bar .tip { font-size: 13px; color: var(--ink-3); }

@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .setting-layout { grid-template-columns: 1fr; }
    .setting-menu { position: static; display: flex; gap: 6px; overflow-x: auto; }
    .setting-menu a { margin-bottom: 0; white-space: nowrap; }
}

@media (max-width: 820px) {
    .admin-side { display: none; }
    .admin-body { padding: 16px 14px 34px; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ------------------------------ AI 创作 ------------------------------ */
.ai-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ai-notice p { margin: 5px 0 0; color: var(--ink-3); font-size: 13px; }
.ai-notice a { color: var(--brand); font-weight: 600; }

.ai-layout {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.ai-platforms { display: grid; gap: 10px; }
.ai-platform {
    position: relative;
    display: block;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s, box-shadow .16s;
}
.ai-platform:hover { border-color: #cfdcd7; }
.ai-platform.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 94, .1); }
.ai-platform.disabled { opacity: .62; }
.ai-platform input { position: absolute; opacity: 0; pointer-events: none; }
.ai-platform-body { display: flex; align-items: center; gap: 10px; }
.ai-platform-name { font-weight: 600; }
.ai-platform-model { font-size: 12.5px; color: var(--ink-3); }
.ai-platform-state { margin-left: auto; padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.ai-platform-state.ok { background: var(--brand-soft); color: var(--brand); }
.ai-platform-state.off { background: #f2f4f3; color: var(--ink-3); }

.ai-advanced {
    padding: 14px;
    margin-bottom: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafcfb;
}
.ai-advanced .form-item:last-child { margin-bottom: 0; }

.ai-result { min-height: 320px; }
.ai-result-meta { font-size: 12.5px; color: var(--ink-3); }
.ai-result-actions { margin-top: 12px; }

.ai-save { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.ai-save-head { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

@media (max-width: 1180px) {
    .ai-layout { grid-template-columns: 1fr; }
}

/* ------------------------------ AI 创作 · 模式选项卡 ------------------------------ */
[hidden] { display: none !important; }

.tabs {
    display: flex;
    gap: 6px;
    width: fit-content;
    margin-top: 20px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.tab {
    padding: 8px 18px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, color .16s;
}
.tab:hover { background: var(--brand-soft); color: var(--brand); }
.tab.active { background: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ai-platforms-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ai-inline-tip { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.ai-plan-chapters { font-size: 13px; line-height: 1.75; }
.ai-notice code { padding: 2px 6px; border-radius: 5px; background: #f2f4f3; font-size: 12.5px; }

.ai-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.ai-checkbox input { width: 15px; height: 15px; accent-color: var(--brand); }

.ai-write-status { margin-top: 12px; }
.ai-write-status:not(:empty) {
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
}

/* 章节进度列表 */
.ai-chapter-list {
    display: grid;
    gap: 10px;
    max-height: 620px;
    padding-right: 4px;
    overflow-y: auto;
}
.ai-chapter {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s;
}
.ai-chapter:hover { border-color: #cfdcd7; }
.ai-chapter-main { flex: 1; min-width: 0; }
.ai-chapter-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.ai-chapter-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f2f4f3;
    color: var(--ink-3);
    font-size: 11.5px;
    font-weight: 700;
}
.ai-chapter-outline { margin-top: 5px; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.ai-chapter-side { display: flex; flex-shrink: 0; align-items: center; gap: 10px; }
.ai-chapter-words { color: var(--ink-3); font-size: 12.5px; }

/* 题材选择器 */
.genre-picker { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.genre-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.genre-tab { padding: 4px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink-2); font-size: 12.5px; cursor: pointer; transition: all .2s; }
.genre-tab:hover { border-color: var(--brand); color: var(--brand); }
.genre-tab.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.genre-chips { display: none; flex-wrap: wrap; gap: 8px; }
.genre-chips.active { display: flex; }
.genre-chip { padding: 4px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 12.5px; cursor: pointer; transition: all .2s; }
.genre-chip:hover { border-color: var(--brand); color: var(--brand); }
.genre-chip.picked { border-style: solid; border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.genre-tip { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; }
.genre-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.genre-actions .input { flex: 1; min-width: 240px; }
.genre-actions .btn { flex-shrink: 0; }

.ai-chip { padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.ai-chip.todo { background: #f2f4f3; color: var(--ink-3); }
.ai-chip.draft { background: #fff4e5; color: #b26a00; }
.ai-chip.done { background: var(--brand-soft); color: var(--brand); }

@media (max-width: 1180px) {
    .ai-platforms-row { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
}

/* ------------------------------ 后台页脚 ------------------------------ */
.admin-foot {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 14px 24px 16px;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.7;
    box-shadow: 0 -1px 0 rgba(24, 33, 27, .03);
}
.admin-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-foot-row.main { font-weight: 500; color: var(--ink-2); }
.admin-foot-row.sub  { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.admin-foot-row .col { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.admin-foot-row .col.left   { flex: 1 1 auto; }
.admin-foot-row .col.center { flex: 1 1 auto; justify-content: center; }
.admin-foot-row .col.right  { flex: 0 0 auto; }
.admin-foot-row .sep { color: var(--line); }
.admin-foot-row .copyright strong { color: var(--brand); font-weight: 700; }
.admin-foot-row .icp { padding: 1px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fafcfa; color: var(--ink-3); font-size: 11.5px; }
.admin-foot-row .extra { color: var(--ink-3); }
.admin-foot-row .brand strong { color: var(--brand); font-weight: 700; }
.admin-foot-row .stack, .admin-foot-row .runtime { color: var(--ink-3); }
.admin-foot-row .clock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-weight: 600; }
.admin-foot-row .clock .ic { font-size: 13px; }
.admin-foot-row.sub .security { color: var(--brand); font-weight: 600; }
.admin-foot-row.sub .muted    { color: var(--ink-3); margin-left: 12px; }

@media (max-width: 820px) {
    .admin-foot { padding: 12px 14px 14px; }
    .admin-foot-row { gap: 8px; }
    .admin-foot-row .col.center { justify-content: flex-start; }
    .admin-foot-row .col.right  { width: 100%; justify-content: flex-start; }
    .admin-foot-row.sub .muted { margin-left: 0; }
}
