/* ============================================================
   雫中枢 · Shizuku Hub —— 后台样式（小雫口吻版 🐾）
   纯手写 CSS，无框架无构建，老婆随时能改
   ============================================================ */

:root {
    --pink:        #ff8fb1;
    --pink-deep:   #f0668f;
    --pink-soft:   #ffe6ef;
    --purple:      #b79cf0;
    --purple-deep: #8b6bd6;
    --milk:        #fff8fc;
    --ink:         #46384f;
    --ink-soft:    #85738f;
    --line:        #f2dfe9;
    --white:       #ffffff;
    --ok:          #4fc48a;
    --warn:        #ffb454;
    --err:         #ff6b7f;
    --radius:      18px;
    --radius-sm:   12px;
    --shadow:      0 12px 32px rgba(255, 143, 177, .18);
    --shadow-sm:   0 4px 14px rgba(180, 130, 170, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--ink);
    background: var(--milk);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-deep); text-decoration: none; }
a:hover { color: var(--pink-deep); }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f7eef5;
    border-radius: 6px;
    padding: 1px 6px;
    font-size: .88em;
}
h1, h2, h3 { line-height: 1.35; margin: 0 0 .4em; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
    background: linear-gradient(120deg, var(--pink) 0%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(240, 102, 143, .28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(240, 102, 143, .36); transform: translateY(-1px); color:#fff; }
.btn-ghost {
    background: #fff;
    color: var(--purple-deep);
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-deep); }
.btn-block { width: 100%; }

/* ---------------- 提示条 ---------------- */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin: 0 0 16px;
}
.alert-error  { background: #ffeef1; color: #b62e46; border: 1px solid #ffd3db; }
.alert-notice { background: #eef8f2; color: #2b7a55; border: 1px solid #cdeedd; }

.toast {
    margin: 0 28px 8px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, #fff0f6, #f3ecff);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    animation: pop .35s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   登录页
   ============================================================ */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 15% 10%, #ffe9f2 0%, transparent 60%),
                radial-gradient(900px 500px at 85% 90%, #ece4ff 0%, transparent 55%),
                linear-gradient(160deg, #fff8fc 0%, #fdf3ff 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-bubbles { position: fixed; inset: 0; pointer-events: none; }
.login-bubbles span {
    position: absolute;
    font-size: 26px;
    opacity: .35;
    animation: float 9s ease-in-out infinite;
}
.login-bubbles span:nth-child(1) { left: 8%;  top: 18%; animation-delay: 0s; }
.login-bubbles span:nth-child(2) { left: 82%; top: 12%; animation-delay: 1.2s; }
.login-bubbles span:nth-child(3) { left: 16%; top: 76%; animation-delay: 2.1s; }
.login-bubbles span:nth-child(4) { left: 74%; top: 68%; animation-delay: .6s; }
.login-bubbles span:nth-child(5) { left: 46%; top: 88%; animation-delay: 1.7s; }
.login-bubbles span:nth-child(6) { left: 56%; top: 8%;  animation-delay: 2.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(8deg); }
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-radius: 26px;
    padding: 46px 34px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .8);
    animation: pop .45s ease;
}

.neko-ears { position: absolute; top: -26px; left: 0; right: 0; display: flex; justify-content: center; gap: 120px; }
.neko-ears i {
    display: block;
    width: 46px; height: 46px;
    background: linear-gradient(140deg, var(--pink) 0%, var(--purple) 100%);
    border-radius: 50% 50% 8px 8px;
    transform: rotate(-18deg);
    box-shadow: 0 6px 14px rgba(240, 102, 143, .25);
}
.neko-ears i:last-child { transform: rotate(18deg); }

.login-head { text-align: center; margin-bottom: 22px; }
.login-avatar {
    font-size: 40px;
    width: 74px; height: 74px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, #fff0f6, #f1e8ff);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #fff, var(--shadow-sm);
}
.login-head h1 { font-size: 23px; margin-bottom: 4px; }
.login-head p  { margin: 0; color: var(--ink-soft); font-size: 14px; }

.login-form { margin-top: 8px; }

.field { display: block; margin-bottom: 14px; }
.field-sm { max-width: 130px; }
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fffdfe;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 143, 177, .16);
}
.field input::placeholder { color: #c3b3c9; }

.login-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: #b8a6bf;
}
.login-foot .dot { margin: 0 6px; }

/* ============================================================
   后台主体
   ============================================================ */
.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 258px;
    flex: 0 0 258px;
    background: linear-gradient(180deg, #ffffff 0%, #fff6fb 100%);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.brand-ears {
    font-size: 26px;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, #ffe3ee, #ece2ff);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.brand-text strong { display: block; font-size: 17px; }
.brand-text small  { display: block; font-size: 11px; color: var(--ink-soft); }

.nav { flex: 1; }
.nav-group { margin-bottom: 16px; }
.nav-group-title {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    color: #c0aec8;
    padding: 0 10px 6px;
    text-transform: uppercase;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 14.5px;
    margin-bottom: 3px;
    transition: background .16s ease, color .16s ease;
}
.nav-item:hover { background: #fff0f7; color: var(--pink-deep); }
.nav-item.is-active {
    background: linear-gradient(120deg, var(--pink) 0%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(240, 102, 143, .25);
}
.nav-item.is-active .nav-label { font-weight: 600; }
.nav-item.is-soon { opacity: .55; cursor: default; }
.nav-icon { font-size: 16px; }
.nav-label { flex: 1; }
.nav-soon {
    font-size: 10px;
    background: #f4ecfa;
    color: #a58cbe;
    border-radius: 999px;
    padding: 1px 7px;
}

.sidebar-footer {
    padding: 14px 10px 4px;
    font-size: 11px;
    color: #c2b1c9;
    border-top: 1px dashed var(--line);
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 14px;
    gap: 16px;
}
.topbar h1 { font-size: 21px; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.who { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--pink), var(--purple));
    color: #fff;
    font-weight: 700;
}
.who-text strong { display: block; font-size: 14px; }
.who-text small  { display: block; font-size: 11px; color: var(--ink-soft); }

.content { flex: 1; padding: 4px 28px 28px; }
.footer { padding: 0 28px 22px; font-size: 12px; color: #c2b1c9; }

/* ---------------- 欢迎卡 ---------------- */
.welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, #fff2f8 0%, #f1e9ff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.welcome-text h2 { font-size: 20px; margin-bottom: 4px; }
.welcome-text p  { margin: 0; color: var(--ink-soft); font-size: 14px; }
.welcome-cat { font-size: 44px; animation: float 5s ease-in-out infinite; }

/* ---------------- 统计卡 ---------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { font-size: 24px; }
.stat-label { display: block; font-size: 12px; color: var(--ink-soft); }
.stat-value { display: block; font-size: 24px; line-height: 1.2; }
.stat-hint  { display: block; font-size: 11px; color: #bfaec6; }

/* ---------------- 面板 ---------------- */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.panel-title { font-size: 15px; margin-bottom: 14px; }

.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.kv-list li:last-child { border-bottom: none; }
.kv-list li > span { color: var(--ink-soft); }

.log-list, .provider-list, .todo-list { list-style: none; margin: 0; padding: 0; }
.log-list li, .provider-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.log-list li:last-child, .provider-list li:last-child { border-bottom: none; }
.log-who { font-weight: 600; min-width: 74px; }
.log-ip { color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: 12px; flex: 1; }
.log-result { font-size: 12px; }
.log-success .log-result { color: var(--ok); }
.log-failed  .log-result { color: var(--err); }
.log-locked  .log-result { color: var(--warn); }
.log-time { color: #c2b1c9; font-size: 12px; }

.provider-list .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.ok  { background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 196, 138, .18); }
.dot.off { background: #d9cfe0; }
.provider-list small { color: var(--ink-soft); }
.provider-calls { margin-left: auto; color: var(--ink-soft); font-size: 12px; }

.todo-list li {
    padding: 7px 0 7px 22px;
    position: relative;
    font-size: 13.5px;
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--line);
}
.todo-list li:last-child { border-bottom: none; }
.todo-list li::before { content: '○'; position: absolute; left: 2px; color: #d9cfe0; }
.todo-list li.done { color: var(--ink); }
.todo-list li.done::before { content: '●'; color: var(--ok); }

.empty { color: #bfaec6; font-size: 13.5px; margin: 0; }

/* ============================================================
   通用页面（安装、错误页、提示页）
   ============================================================ */
.plain-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1000px 500px at 20% 0%, #ffeef6 0%, transparent 60%),
                linear-gradient(160deg, #fff9fc 0%, #f7f1ff 100%);
    padding: 40px 20px;
}
.plain-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px 32px;
    box-shadow: var(--shadow);
}
.plain-card-center { text-align: center; }
.install-card { max-width: 640px; }
.plain-head { margin-bottom: 20px; }
.plain-head h1 { font-size: 22px; margin-bottom: 6px; }
.plain-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.plain-emoji { font-size: 34px; display: block; margin-bottom: 8px; }
.plain-emoji.big { font-size: 56px; }
.path-note { color: var(--ink-soft); }

.trace {
    text-align: left;
    background: #fff5f7;
    border: 1px solid #ffd9e2;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 12px;
    overflow-x: auto;
    color: #b62e46;
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.check-list li:last-child { border-bottom: none; }
.check-mark { font-weight: 700; }
.check-list li.ok .check-mark { color: var(--ok); }
.check-list li.bad .check-mark { color: var(--err); }
.check-label { flex: 1; }
.check-note { font-size: 11px; color: var(--ink-soft); }
.hint-warn { color: var(--warn); font-size: 13px; }

.install-checks { margin-bottom: 20px; }
.install-checks h3 { font-size: 14px; color: var(--ink-soft); }

.install-form fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px 6px;
    margin: 0 0 16px;
}
.install-form legend { font-size: 13px; font-weight: 600; color: var(--purple-deep); padding: 0 6px; }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

/* ============================================================
   首页
   ============================================================ */
.home-body {
    min-height: 100vh;
    padding: 64px 24px 40px;
    background: linear-gradient(170deg, #fff9fd 0%, #f6f1ff 100%);
    position: relative;
    overflow-x: hidden;
}
.home-glow {
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 620px;
    background: radial-gradient(600px 300px at 30% 20%, rgba(255, 143, 177, .35) 0%, transparent 70%),
                radial-gradient(600px 320px at 75% 10%, rgba(183, 156, 240, .32) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.home-hero { position: relative; text-align: center; max-width: 760px; margin: 0 auto 46px; }
.home-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--purple-deep);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.home-hero h1 {
    font-size: 46px;
    margin-bottom: 12px;
    background: linear-gradient(120deg, var(--pink-deep), var(--purple-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-slogan { color: var(--ink-soft); font-size: 16px; margin: 0 0 26px; }
.home-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.home-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 40px;
}
.feature {
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.home-footer {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #b8a6bf;
    flex-wrap: wrap;
}

/* ============================================================
   工具栏 / 表格 / 徽章 / 分页（用户管理等列表页）
   ============================================================ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-input,
.filter-select {
    padding: 9px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
.filter-input { min-width: 190px; }
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 143, 177, .16);
}
.btn-link { font-size: 13px; color: var(--ink-soft); }
.btn-link:hover { color: var(--pink-deep); }

.panel.table-panel { padding: 6px 8px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table tbody td {
    padding: 12px;
    border-bottom: 1px dashed var(--line);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fffafd; }
.row-self { background: #fff7fb; }
.col-id { color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: 12px; }
.col-email { color: var(--ink-soft); font-size: 13px; }
.col-time { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; }
.col-actions { white-space: nowrap; }
.col-actions .inline { display: inline; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
}
.badge-admin   { background: #efe6ff; color: #6b46c1; }
.badge-user    { background: #eef4ff; color: #3b6fb6; }
.badge-ok      { background: #e9f8f0; color: #2b7a55; }
.badge-banned  { background: #ffeef1; color: #b62e46; }
.badge-self    { background: #ffe6ef; color: var(--pink-deep); margin-left: 6px; }

.btn-mini {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--purple-deep);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    margin-right: 4px;
    transition: all .16s ease;
}
.btn-mini:hover { border-color: var(--pink); color: var(--pink-deep); }
.btn-mini.danger { color: #b62e46; }
.btn-mini.danger:hover { border-color: #ffb3c1; background: #fff5f7; }
.btn-mini.ok { color: #2b7a55; }
.btn-mini.ok:hover { border-color: #9ddcbb; background: #f3fdf8; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pager-info { font-size: 13px; color: var(--ink-soft); }
.pager-buttons { display: flex; gap: 6px; }

.form-panel { max-width: 760px; }
.stack-form .form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.field-error { display: block; margin-top: 5px; color: #b62e46; font-size: 12px; }
.empty-panel { text-align: center; padding: 34px 20px; }

.sub-text { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.mono-small { font-size: 11.5px; }
.cred-panel {
    border: 1.5px dashed var(--pink);
    background: linear-gradient(120deg, #fff6fa, #f7f2ff);
    margin-bottom: 18px;
}
.cred-panel .kv-list li > span { min-width: 110px; }
.copyable { cursor: pointer; user-select: all; }

.field-check .switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}
.field-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pink-deep); }

.field input[type="file"] {
    padding: 10px 12px;
    background: #fffdfe;
    font-size: 13.5px;
}
.field textarea {
    resize: vertical;
    line-height: 1.6;
}

/* ============================================================
   OAuth2 授权页
   ============================================================ */
.oauth-card { max-width: 540px; }

.oauth-app {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, #fff7fb, #f7f2ff);
    margin-bottom: 14px;
}
.oauth-app-avatar {
    width: 46px; height: 46px;
    flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.oauth-app-info strong { display: block; font-size: 15px; }
.oauth-app-info small { display: block; color: var(--ink-soft); font-size: 12px; margin: 2px 0 4px; }
.oauth-app-info code { font-size: 11px; }

.oauth-as {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.oauth-as strong { color: var(--ink); }

.oauth-scope-title { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

.scope-list { list-style: none; margin: 0 0 20px; padding: 0; }
.scope-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.scope-list li:last-child { border-bottom: none; }
.scope-check { color: var(--ok); font-weight: 700; }
.scope-text { flex: 1; }
.scope-code { color: var(--ink-soft); }

.oauth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.oauth-actions .btn { flex: 1; min-width: 160px; }

.oauth-note {
    margin: 18px 0 0;
    font-size: 12px;
    color: #b8a6bf;
    line-height: 1.7;
    border-top: 1px dashed var(--line);
    padding-top: 14px;
}

.consent-list { list-style: none; margin: 0 0 18px; padding: 0; }
.consent-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}
.consent-list li:last-child { border-bottom: none; }
.consent-info strong { display: block; font-size: 14.5px; }
.consent-info small { display: block; color: var(--ink-soft); font-size: 12px; margin: 2px 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 860px) {
    .admin-shell { flex-direction: column; }
    .sidebar {
        width: 100%;
        flex: none;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
    .nav-group { margin-bottom: 8px; }
    .content, .topbar, .footer, .toast { padding-left: 16px; padding-right: 16px; }
    .toast { margin-left: 16px; margin-right: 16px; }
    .home-hero h1 { font-size: 34px; }
    .form-row { flex-direction: column; gap: 0; }
    .field-sm { max-width: none; }
}
