/* 志洋科技 · 租赁设备管理系统 —— 样式表
   版式参照志洋版：左侧边栏 + 顶栏 + 卡片化内容区
   品牌色：主蓝 #0A3D91 / 亮蓝 #1E6FFF / 绿点 #07C160 */

:root {
  --blue: #1e6fff;
  --navy: #0a3d91;
  --green: #07c160;
  --red: #e5484d;
  --orange: #e6a23c;
  --ink: #1f2d3d;
  --ink2: #5a6b80;
  --grey: #67788f;
  --line: #e6ebf4;
  --bg: #f3f6fa;
  --card-shadow: 0 3px 14px rgba(16, 45, 96, .06);
  --side-w: 252px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性必须真正生效：防止组件 display 样式覆盖 hidden 导致登录页出现侧边栏 */
[hidden] { display: none !important; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

/* ---------------- 整体布局：侧边栏 + 主区 ---------------- */
body.app-shell { display: flex; min-height: 100vh; }

.side {
  width: var(--side-w); flex: none; background: linear-gradient(180deg, #0d2f66, var(--navy));
  color: #c9d8f5; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.side-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.side-brand .logo-dot { width: 44px; height: 44px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.side-brand .brand-txt b {
  display: block; color: #fff; font-size: 16px; font-weight: 800;
  letter-spacing: .5px; line-height: 1.3; white-space: nowrap;
}
.side-brand .brand-txt small {
  display: block; margin-top: 3px; font-size: 10px; color: #8fa9d8;
  letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap;
}
.side nav { flex: 1; padding: 12px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-group {
  margin: 10px 6px 2px; font-size: 10.5px; letter-spacing: 3px;
  color: #6480b5; text-transform: uppercase;
}
.nav-group:not(:first-child) { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.side nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: none; color: #c9d8f5;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.side nav .nav-ico { font-size: 15px; flex: none; width: 20px; text-align: center; }
.side nav .nav-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav button:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side nav button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
/* 菜单角标：待办数量（抄表到期 / 待确认等） */
.nav-badge {
  flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red, #e5484d); color: #fff; font-size: 10.5px; font-weight: 700;
  line-height: 18px; text-align: center;
}
.side nav button.on .nav-badge { background: var(--navy); }
/* 顶栏铃铛 */
.bell { position: relative; font-size: 15px; line-height: 1; padding: 6px 9px; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--red, #e5484d); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
/* 待办提醒弹窗 */
.todo-total {
  display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px;
  background: #fdecec; color: var(--red, #e5484d); font-size: 12px; font-weight: 700; vertical-align: 2px;
}
.todo-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; max-height: 52vh; overflow-y: auto; }
.todo-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; cursor: pointer; font-size: 13.5px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.todo-item:hover { border-color: var(--navy); background: #eef3fc; }
.todo-ico { font-size: 19px; flex: none; }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-main b { font-size: 13.5px; color: var(--ink); }
.todo-count {
  display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px;
  background: var(--red, #e5484d); color: #fff; font-size: 11px; line-height: 17px; vertical-align: 1px;
}
.todo-main small { color: var(--grey); font-size: 12px; }
.todo-main small.todo-samples {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9aa7bd; font-size: 11.5px;
}
.todo-arrow { flex: none; color: #b3bfd2; font-size: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.side-foot {
  padding: 12px 18px 14px; font-size: 11.5px; color: #7e97c4;
  line-height: 1.9; border-top: 1px solid rgba(255, 255, 255, .08);
}
.side-foot .foot-cloud { letter-spacing: .5px; }
.side-foot .foot-user { color: #b7c8e8; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-ver {
  display: inline-block; margin-right: 4px; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  color: #b7c8e8; font-size: 10.5px; line-height: 16px; letter-spacing: .5px; vertical-align: 1px; white-space: nowrap;
}

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

.logo-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: #fff url('../logo.png') center / 88% no-repeat;
  box-shadow: 0 1px 4px rgba(9, 55, 120, .25);
}

/* ---------------- 顶栏 ---------------- */
header {
  background: #fff; color: var(--ink);
  padding: 13px 26px; display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header h2 { font-size: 16.5px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header .beta {
  font-size: 11px; background: #eef3fc; color: var(--navy);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

.top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.userchip { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; white-space: nowrap; }
.userchip b { color: var(--ink); }
.userchip .tag { font-size: 11px; }
.userchip button { padding: 5px 12px; font-size: 12.5px; }

/* ---------------- 内容区 ---------------- */
main { flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; padding: 22px 26px 80px; }
/* 页面标题已上移到顶栏（#page-title），正文内的大标题不再重复显示 */
#app h2.page { display: none; }
h2.page { font-size: 20px; margin-bottom: 4px; }
p.sub { color: var(--grey); margin-bottom: 18px; font-size: 13px; line-height: 1.7; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: 14px; padding: 15px 17px; box-shadow: var(--card-shadow); }
.stat span { color: var(--grey); font-size: 12.5px; }
.stat b { display: block; font-size: 25px; margin-top: 4px; word-break: break-all; }
.stat .up { color: var(--green); font-size: 12px; }

.card { background: #fff; border-radius: 14px; box-shadow: var(--card-shadow); padding: 18px 20px; margin-bottom: 18px; }
.card > h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card > h3 small { color: var(--grey); font-weight: 400; font-size: 12.5px; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; color: var(--grey); font-weight: 500; font-size: 12.5px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd;
}
td { padding: 10px; border-bottom: 1px solid #f0f3f9; vertical-align: middle; }
tr:hover td { background: #f8fafd; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------- 标签 / 徽章 ---------------- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.t-run { background: #e6f9ef; color: #069550; }
.t-stop { background: #f2f4f8; color: #8a97ac; }
.t-fix { background: #fff2e3; color: #c07a12; }
.t-out { background: #fdeaea; color: #c53538; }
.t-wait { background: #fff4e0; color: #b97d0e; }
.t-paid { background: #e6f9ef; color: #069550; }
.t-doing { background: #e8f0ff; color: var(--blue); }
.t-cat { background: #e8f0fe; color: var(--navy); }
.t-danger { background: #fdeaea; color: #c53538; }
.t-done { background: #e6f9ef; color: #069550; }

/* ---------------- 按钮 ---------------- */
.btn {
  border: none; border-radius: 9px; padding: 9px 16px; cursor: pointer;
  font-size: 13.5px; background: var(--blue); color: #fff; transition: background .15s;
}
.btn:hover { background: #1856d6; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #eef3fc; color: var(--navy); }
.btn.ghost:hover { background: #e0eaf9; }
.btn.green { background: var(--green); }
.btn.green:hover { background: #06a850; }
.btn.danger { background: #fdeaea; color: #c53538; }
.btn.danger:hover { background: #fbdcdc; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.sm + .btn.sm { margin-left: 6px; }

/* ---------------- 工具栏 ---------------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13.5px; background: #fff; outline: none; font-family: inherit;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--blue); }
.toolbar .spacer { flex: 1; }

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

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(12, 24, 48, .45);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 24px; width: 480px;
  max-width: 100%; max-height: 90vh; overflow: auto;
}
.modal h3 { margin-bottom: 16px; font-size: 17px; }
.modal p.modal-sub { color: var(--grey); font-size: 13px; margin: -8px 0 14px; }
.modal.wide { width: min(980px, 94vw); }
.modal.wide .table-wrap { margin: 4px 0 12px; }
.modal.wide table { width: 100%; }
.modal.wide td, .modal.wide th { padding: 8px 10px; white-space: nowrap; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--grey); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; font-family: inherit; outline: none; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field .hint { font-size: 12px; color: var(--grey); margin-top: 5px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rowbtn { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ---------------- 设备卡片（客户门户） ---------------- */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.dev {
  background: #fff; border-radius: 14px; padding: 18px;
  box-shadow: var(--card-shadow); border-top: 3px solid var(--blue);
}
.dev.fix { border-top-color: var(--orange); }
.dev.stop { border-top-color: #aab4c5; }
.dev.out { border-top-color: #e07f82; }
.dev h4 { font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #eef2f8; font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--grey); flex: none; }
.kv b { font-weight: 600; text-align: right; }
.live b { color: var(--green); }
.live-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.money { font-weight: 700; color: var(--navy); }
.warn { color: var(--red); font-weight: 600; }
.muted { color: var(--grey); }
code { background: #eef2fa; color: var(--navy); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; }

/* ---------------- 图表 ---------------- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 22px 4px 0; }
.chart .bar { flex: 1; background: linear-gradient(180deg, var(--blue), var(--navy)); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; }
.chart .bar i { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-style: normal; color: var(--grey); white-space: nowrap; }
.chart .bar em { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-style: normal; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 环形图（设备构成） */
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; min-width: 180px; }
.donut-legend .li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-legend .li b { margin-left: auto; }
.donut-legend .pc { color: var(--grey); font-size: 11.5px; margin-left: 5px; }

.empty { text-align: center; color: var(--grey); padding: 28px 0; }
.footer-note { margin-top: 30px; text-align: center; color: #9aa8bd; font-size: 12px; line-height: 1.8; }

/* ---------------- 登录页（左横幅 + 右卡片） ---------------- */
/* 登录态：去掉主区留白与宽度限制，登录页占满一屏且不出现滚动条 */
body.login-mode .main-wrap { display: block; }
body.login-mode main { max-width: none; padding: 0; }
.login-page { display: flex; min-height: 100vh; min-height: 100dvh; align-items: stretch; }
.login-banner {
  flex: 1.15; background: linear-gradient(150deg, #0d2f66 0%, var(--navy) 55%, #1e5fc4 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 42px 48px; min-height: 100vh; min-height: 100dvh;
}
.login-banner .brand { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
/* 登录横幅品牌图标:白色圆形底 + 蓝渐变标志(与履约保证金系统一致) */
.login-banner .brand .logo-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff url('../logo.png') center / 88% no-repeat;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}
.banner-ver {
  align-self: center; white-space: nowrap;
  font-size: 11px; letter-spacing: 1.5px; color: #d5e3ff;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24);
  padding: 3px 11px; border-radius: 999px;
}
.login-banner .brand b { font-size: 18px; letter-spacing: 1px; display: block; }
.login-banner .brand small { color: #8fa9d8; letter-spacing: 3px; font-size: 11px; }
.banner-mid h1 { font-size: 30px; line-height: 1.45; margin-bottom: 14px; }
.banner-mid p { color: #b9cbee; font-size: 13.5px; line-height: 1.9; max-width: 460px; }
.banner-feats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.banner-feats > div { font-size: 12.5px; color: #b9cbee; line-height: 2; }
.banner-feats b { display: block; color: #fff; font-size: 14px; }
.banner-foot { color: #7e97c4; font-size: 12px; }
.login-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.login-col { width: 400px; max-width: 100%; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; box-shadow: 0 14px 40px rgba(10, 61, 145, .1); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-brand .logo-dot { width: 44px; height: 44px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.login-card h2 { font-size: 19px; color: var(--navy); margin: 0; }
.login-card p.sub { margin: 6px 0 18px; }
.login-err { color: var(--red); font-size: 13px; margin: 8px 0 0; min-height: 18px; }
.demo-accounts { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.demo-accounts h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--grey); font-weight: 400; }
.demo-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 加载 ---------------- */
.boot { text-align: center; padding: 18vh 0; color: var(--grey); }
.boot-spinner {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 提示条 ---------------- */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  background: #fff; border-radius: 12px; padding: 12px 16px; font-size: 13.5px;
  box-shadow: 0 8px 28px rgba(12, 24, 48, .16); border-left: 4px solid var(--blue);
  animation: slidein .22s ease-out; line-height: 1.7; word-break: break-word;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--orange); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------------- 提醒条 ---------------- */
.notice {
  border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
  background: #fff8ec; border: 1px solid #f7e2bb; border-left: 4px solid var(--orange);
}
.notice h3 { font-size: 14.5px; margin-bottom: 8px; color: #a86a10; }
.notice .kv span, .notice .kv b { font-size: 13px; }

/* ---------------- 设计说明 ---------------- */
.doc p, .doc li { line-height: 1.95; color: #3a4a66; font-size: 13.5px; }
.doc h4 { font-size: 13.5px; margin: 14px 0 6px; color: var(--navy); }
.doc ul { padding-left: 20px; }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 920px) {
  body.app-shell { display: block; }
  .side { width: 100%; height: auto; position: static; }
  .side-brand { padding: 14px 16px 12px; }
  .side-brand .logo-dot { width: 36px; height: 36px; }
  .side-brand .brand-txt b { font-size: 14.5px; }
  .side-brand .brand-txt small { font-size: 9px; letter-spacing: 2px; }
  .side nav { flex-direction: row; overflow-x: auto; padding: 8px 10px; }
  .side nav .nav-group { display: none; }
  .side nav button { width: auto; white-space: nowrap; }
  .side-foot { display: none; }
  .login-page { flex-direction: column; }
  /* 手机竖屏：横幅收窄为品牌条，保证登录卡片一屏内完整可见（不再需要滑动） */
  .login-banner { min-height: auto; padding: 22px 20px; gap: 12px; }
  .banner-mid h1 { font-size: 20px; margin-bottom: 0; }
  .banner-mid p, .banner-feats, .banner-foot { display: none; }
  .login-side { padding: 22px 16px 30px; }
  header { padding: 10px 14px; }
  main { padding: 16px 12px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .stat b { font-size: 21px; }
}

/* 横屏手机 / 极矮屏幕：登录横幅只保留品牌一行 */
@media (max-width: 920px) and (max-height: 660px) {
  .banner-mid { display: none; }
}

/* 横屏矮屏再压缩：卡片收边，保证输入框和登录按钮一屏可见 */
@media (max-width: 920px) and (max-height: 500px) {
  .login-banner { padding: 10px 20px; }
  .login-side { padding: 10px 16px 12px; }
  .login-card { padding: 16px 20px; }
  .login-card p.sub { margin: 4px 0 12px; }
  .login-err { min-height: 0; margin: 4px 0 0; }
}

/* 桌面矮窗口：收紧横幅留白，避免登录页出现滚动条 */
@media (min-width: 921px) and (max-height: 800px) {
  .login-banner { padding: 26px 34px; }
  .banner-mid h1 { font-size: 25px; }
  .banner-mid p { font-size: 12.5px; line-height: 1.75; }
  .banner-feats { margin-top: 18px; }
  .login-side { padding: 26px 24px; }
}

/* 运维工单处理结果勾选组 */
.svc-results { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-check {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; cursor: pointer; user-select: none; background: var(--card, #fff);
}
.svc-check:has(input:checked) { border-color: var(--blue, #1e6fff); background: rgba(30, 111, 255, .08); color: var(--blue, #1e6fff); font-weight: 600; }
.svc-check input { margin: 0; accent-color: var(--blue, #1e6fff); }

/* 用户管理：功能授权自由勾选 */
.perm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.perm-quick .btn.sm { font-size: 12px; padding: 3px 10px; }
.perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft, #f7f9fc);
}
.perm-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px;
  background: var(--card, #fff); border: 1px solid var(--line);
  font-size: 12.5px; cursor: pointer; user-select: none; transition: .15s;
}
.perm-item:has(input:checked) { border-color: var(--blue, #1e6fff); background: rgba(30, 111, 255, .07); color: var(--blue, #1e6fff); font-weight: 600; }
.perm-item input { margin: 0; accent-color: var(--blue, #1e6fff); }
.perm-summary { font-size: 12px; line-height: 1.55; }
.perm-summary .tag { margin: 0 3px 3px 0; display: inline-block; }
