/* 管理后台共享样式 - 合并自 admin.html / school-backend.html / org-backend.html 三套内联样式 */
/* 设计 token 来自 styles.css: --ink --paper --surface --gold --teal --coral --line --r-* --t-* --fs-* --font-* 等 */

.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #13203A; color: #C9CFE0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side__brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-side__brand .crest { background: linear-gradient(150deg, #243156, #16203A); color: var(--gold-soft); }
.admin-side__brand b { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.admin-side__brand span { display: block; font-size: .68rem; color: #8A93AB; }
.admin-side__sch { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-side__sch b { color: #fff; font-size: .9rem; }
.admin-side__sch span { display: block; font-size: .68rem; color: #8A93AB; margin-top: 2px; }
.admin-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.admin-nav__item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 11px 12px; border-radius: var(--r-sm); color: #AAB2C8; font-size: var(--fs-sm); font-weight: 500; font-family: inherit; transition: all var(--t-fast); }
.admin-nav__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav__item.is-active { background: var(--gold); color: #2a1d05; font-weight: 600; }
.admin-nav__item svg { width: 18px; height: 18px; flex: none; }
.admin-nav__badge { margin-left: auto; background: var(--coral); color: #fff; font-size: .66rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.admin-side__foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .72rem; color: #7C86A0; }
.admin-main { background: var(--paper); min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.admin-top h1 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.admin-top__sub { font-size: .76rem; color: var(--text-mute); }
.admin-top__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-top__search { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 8px 12px; font-size: var(--fs-sm); font-family: inherit; background: var(--paper); color: var(--text); width: 220px; }
.admin-top__search:focus { outline: none; border-color: var(--gold); }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-soft); }
.admin-user .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-weight: 700; }
.admin-menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); width: 40px; height: 40px; color: var(--ink); }
.admin-view { padding: 28px; display: none; }
.admin-view.is-active { display: block; animation: fadeIn var(--t-norm); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-row .stat { text-align: left; padding: 18px 20px; }
.stat-row .stat__num { font-size: 2rem; }
.stat__delta { font-size: .72rem; font-weight: 600; margin-top: 4px; }
.stat__delta--up { color: var(--teal); }
.stat__delta--down { color: var(--coral); }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; }
.admin-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.admin-card__hint { font-size: .72rem; color: var(--text-mute); font-weight: 400; margin-left: 6px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .72rem; font-weight: 600; color: var(--text-mute); padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-soft); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--paper-2); }
.admin-table .t-name { color: var(--ink); font-weight: 600; }
.admin-table .t-sub { font-size: .72rem; color: var(--text-mute); }
.pill { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill--wait { background: var(--gold-soft); color: var(--gold-deep); }
.pill--ok { background: var(--teal-soft); color: var(--teal); }
.pill--no { background: var(--coral-soft); color: var(--coral); }
.pill--info { background: #E7EEFB; color: #2F5CA8; }
.row-act { display: flex; gap: 8px; }
.row-act .btn { padding: 7px 14px; font-size: .76rem; }
.seg-admin { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.seg-admin button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-soft); padding: 8px 16px; border-radius: 999px; font-size: var(--fs-sm); cursor: pointer; }
.seg-admin button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-row b { color: var(--ink); font-size: var(--fs-sm); }
.setting-row span { display: block; font-size: .74rem; color: var(--text-mute); margin-top: 3px; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background var(--t-fast); flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--t-fast); }
.switch.is-on { background: var(--teal); }
.switch.is-on::after { transform: translateX(18px); }
.progress { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 999px; }
.progress__meta { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-mute); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .78rem; color: var(--text-soft); font-weight: 500; }
.form-field label .req { color: var(--coral); }
.form-field input, .form-field textarea, .form-field select { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 9px 12px; font-size: var(--fs-sm); font-family: inherit; background: var(--paper); color: var(--text); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-field textarea { min-height: 96px; resize: vertical; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 20px; text-align: center; color: var(--text-mute); cursor: pointer; transition: all var(--t-fast); background: var(--paper-2); }
.dropzone:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.dropzone svg { width: 26px; height: 26px; margin-bottom: 6px; }
.dropzone small { display: block; font-size: .7rem; margin-top: 4px; }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps { display: flex; gap: 0; margin: 8px 0 18px; }
.step { flex: 1; text-align: center; position: relative; }
.step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.step:first-child::before { display: none; }
.step__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line-strong); color: var(--text-mute); display: grid; place-items: center; margin: 0 auto 8px; position: relative; z-index: 1; font-weight: 700; font-size: .82rem; }
.step.is-done .step__dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.step.is-done::before { background: var(--teal); }
.step.is-active .step__dot { background: var(--gold); border-color: var(--gold); color: #2a1d05; }
.step b { display: block; font-size: .78rem; color: var(--ink); }
.step span { font-size: .7rem; color: var(--text-mute); }
.doclist { display: flex; flex-direction: column; gap: 10px; }
.docitem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.docitem__icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--paper-2); display: grid; place-items: center; color: var(--text-mute); flex: none; }
.docitem__icon svg { width: 18px; height: 18px; }
.docitem__main { flex: 1; min-width: 0; }
.docitem__main b { color: var(--ink); font-size: var(--fs-sm); }
.docitem__main span { display: block; font-size: .72rem; color: var(--text-mute); }
.bar-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.bar-row__label { width: 120px; font-size: .76rem; color: var(--text-soft); flex: none; }
.bar-track { flex: 1; height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill--gold { background: var(--gold); }
.bar-fill--ink { background: var(--ink); }
.bar-fill--teal { background: var(--teal); }
.bar-row__val { width: 64px; text-align: right; font-size: .76rem; color: var(--text-soft); font-weight: 600; flex: none; }
.trend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.trend__item { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.trend__item b { font-size: 1.5rem; color: var(--ink); display: block; }
.trend__item span { font-size: .74rem; color: var(--text-mute); }
.trend__spark { height: 34px; margin-top: 10px; display: flex; align-items: flex-end; gap: 4px; }
.trend__spark i { flex: 1; background: var(--gold-soft); border-radius: 3px 3px 0 0; display: block; transition: height var(--t-norm); }
.plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; }
.plan.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.plan h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.plan__price { font-size: 1.6rem; color: var(--gold-deep); font-weight: 700; margin: 6px 0; }
.plan__price small { font-size: .74rem; color: var(--text-mute); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.plan li { font-size: .8rem; color: var(--text-soft); padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.plan li.off { color: var(--text-mute); }
.plan li.off::before { content: "—"; color: var(--text-mute); }
.plan .btn { margin-top: auto; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.todo__icon { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.todo__icon--warn { background: var(--gold-soft); color: var(--gold-deep); }
.todo__icon--info { background: #E7EEFB; color: #2F5CA8; }
.todo__main { flex: 1; }
.todo__main b { color: var(--ink); font-size: var(--fs-sm); }
.todo__main span { display: block; font-size: .72rem; color: var(--text-mute); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: .78rem; color: var(--text-soft); }
.chip button { border: none; background: none; color: var(--text-mute); cursor: pointer; font-size: .9rem; line-height: 1; }
.chip-add { border-style: dashed; cursor: pointer; color: var(--gold-deep); border-color: var(--gold); }
.perm-matrix { width: 100%; border-collapse: collapse; }
.perm-matrix th, .perm-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: var(--fs-sm); }
.perm-matrix th { background: var(--paper-2); font-size: .72rem; color: var(--text-mute); font-weight: 600; }
.perm-matrix td:first-child, .perm-matrix th:first-child { text-align: left; color: var(--ink); font-weight: 600; }
.perm-cell { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; color: var(--text-mute); font-weight: 700; transition: all var(--t-fast); }
.perm-cell.is-on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.perm-cell:hover { border-color: var(--gold); }
.ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ad-plan { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--surface); display: flex; flex-direction: column; }
.ad-plan.is-feature { border-color: var(--gold); box-shadow: var(--shadow-md); }
.ad-plan__tag { position: absolute; top: 14px; right: 14px; background: var(--gold); color: #2a1d05; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ad-plan__name { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.ad-plan__price { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: 6px 0 14px; }
.ad-plan__price span { font-size: .8rem; color: var(--text-mute); font-weight: 400; }
.ad-plan__list { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.ad-plan__list li { font-size: .8rem; color: var(--text-soft); padding: 7px 0 7px 20px; position: relative; border-bottom: 1px solid var(--line); }
.ad-plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.btn--block { width: 100%; }
.tk-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.tk-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding-right: 2px; }
.tk-item { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; cursor: pointer; transition: all var(--t-fast); font-family: inherit; }
.tk-item:hover { border-color: var(--gold); }
.tk-item.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.tk-item__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tk-item__id { font-size: .72rem; color: var(--text-mute); font-weight: 600; font-family: var(--font-mono); }
.tk-item__title { font-size: .92rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.tk-item__meta { font-size: .72rem; color: var(--text-mute); }
.tk-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 560px; }
.tk-detail[hidden] { display: none; }
.tk-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tk-detail__head b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.tk-detail__head span { display: block; font-size: .74rem; color: var(--text-mute); margin-top: 3px; }
.tk-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--paper-2); min-height: 220px; }
.msg { max-width: 78%; }
.msg__who { font-size: .7rem; color: var(--text-mute); margin-bottom: 4px; }
.msg__body { padding: 10px 13px; border-radius: 12px; font-size: .86rem; line-height: 1.5; white-space: pre-wrap; }
.msg__time { font-size: .66rem; color: var(--text-mute); margin-top: 4px; }
.msg--user { align-self: flex-start; }
.msg--user .msg__body { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 3px; color: var(--text-soft); }
.msg--agent { align-self: flex-end; text-align: right; }
.msg--agent .msg__who { text-align: right; }
.msg--agent .msg__body { background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.msg--agent .msg__time { text-align: right; }
.tk-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); }
.tk-quick__chip { font-size: .72rem; border: 1px dashed var(--line-strong); background: var(--paper); color: var(--text-soft); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: all var(--t-fast); }
.tk-quick__chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.tk-reply { display: flex; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.tk-reply__input { flex: 1; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 10px 12px; font-family: inherit; font-size: .86rem; resize: vertical; min-height: 44px; background: var(--paper); color: var(--text); }
.tk-reply__input:focus { outline: none; border-color: var(--gold); }
.ntf-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nf-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.nf-label { font-size: .76rem; color: var(--text-soft); font-weight: 600; }
.admin-input, .admin-select { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 9px 12px; font-size: var(--fs-sm); font-family: inherit; background: var(--paper); color: var(--text); width: 100%; }
.admin-select { cursor: pointer; }
.admin-input:focus, .admin-select:focus { outline: none; border-color: var(--gold); }
.nf-area { min-height: 80px; resize: vertical; }
.nf-channels { display: flex; flex-wrap: wrap; gap: 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-soft); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--gold); }
.audit-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.audit-filter .admin-select, .audit-filter .admin-input { width: auto; }
.tag-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: .78rem; background: var(--gold-soft); color: var(--gold-deep); padding: 5px 12px; border-radius: 999px; }
.tag-add { display: flex; gap: 10px; align-items: center; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 100; transform: translateX(-100%); transition: transform var(--t-norm); }
  .admin-side.is-open { transform: none; }
  .admin-menu-btn { display: grid; place-items: center; }
  .stat-row, .trend, .plan-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .upload-row { grid-template-columns: 1fr; }
  .admin-top__search { width: 130px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .trend { grid-template-columns: repeat(2, 1fr); }
  .ad-grid { grid-template-columns: 1fr; }
  .tk-wrap { grid-template-columns: 1fr; }
  .tk-list { max-height: 260px; }
  .tk-detail { min-height: 460px; }
  .ntf-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-row, .trend, .plan-row { grid-template-columns: 1fr; }
  .trend { grid-template-columns: 1fr; }
}

/* ===== 学校 / 机构后台深化：与平台后台组件库对齐的附加组件（additive） ===== */

/* 两栏栅格助手 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* 快捷入口磁贴 */
.qtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.qtile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; text-align: left; transition: all var(--t-fast); font-family: inherit; }
.qtile:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.qtile__ico { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.qtile b { display: block; font-size: .92rem; color: var(--ink); margin-bottom: 2px; }
.qtile span { font-size: .74rem; color: var(--text-mute); }

/* 流量来源环形图 */
.donut { width: 172px; height: 172px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ''; position: absolute; inset: 30px; border-radius: 50%; background: var(--surface); }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut__center b { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.donut__center span { font-size: .72rem; color: var(--text-mute); margin-top: 4px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.donut-legend__item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-soft); }
.donut-legend__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.donut-legend__val { margin-left: auto; font-weight: 600; color: var(--ink); }

/* 资料质检清单 */
.qcheck { display: flex; flex-direction: column; gap: 12px; }
.qcheck__item { display: flex; align-items: flex-start; gap: 12px; }
.qcheck__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; margin-top: 1px; }
.qcheck__dot--ok { background: var(--teal-soft); color: var(--teal); }
.qcheck__dot--warn { background: rgba(239,68,68,.12); color: var(--coral); }
.qcheck__main b { display: block; color: var(--ink); font-size: .9rem; }
.qcheck__main span { font-size: .8rem; color: var(--text-mute); }

/* 用量条 */
.usage { display: flex; flex-direction: column; gap: 14px; }
.usage__row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 12px; align-items: center; }
.usage__label { font-size: .85rem; color: var(--text-soft); }
.usage__bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.usage__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.usage__val { font-size: .8rem; color: var(--text-mute); text-align: right; }

.mini { font-size: .76rem; color: var(--text-mute); }
.link-go { color: var(--gold-deep); font-size: .82rem; cursor: pointer; background: none; border: none; font-family: inherit; }
.link-go:hover { text-decoration: underline; }

/* 咨询详情抽屉：对话气泡 + 画像 */
.tk-profile { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.tk-profile__k { font-size: .72rem; color: var(--text-mute); margin-bottom: 2px; }
.tk-profile__v { font-size: .9rem; color: var(--ink); font-weight: 600; }
.tk-msg { display: flex; gap: 10px; max-width: 88%; }
.tk-msg__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex: none; }
.tk-msg__bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: .86rem; color: var(--text); line-height: 1.5; }
.tk-msg__time { font-size: .68rem; color: var(--text-mute); margin-top: 4px; }
.tk-msg--me { margin-left: auto; flex-direction: row-reverse; }
.tk-msg--me .tk-msg__bubble { background: var(--gold); color: #fff; border-color: var(--gold); }
