:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #0e1729;
  --ink-2: #334155;
  --muted: #6b7a90;
  --line: #e5e9f2;
  --line-2: #eef1f7;
  --brand: #16a34a;
  --brand-600: #15803d;
  --brand-soft: #e8f7ed;
  --navy: #0c1526;
  --navy-2: #111d33;
  --accent: #4f6bed;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy);
  color: #c3cddd;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 14px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px -6px rgba(34, 197, 94, .8);
}
.brand-text strong { display: block; color: #fff; font-size: 14px; letter-spacing: .02em; }
.brand-text span { font-size: 11px; color: #7d8ba3; letter-spacing: .08em; text-transform: uppercase; }

.nav { padding: 8px 10px 16px; overflow-y: auto; flex: 1; }
.nav-group { margin: 14px 8px 6px; font-size: 10.5px; letter-spacing: .14em; color: #5b6a83; text-transform: uppercase; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin: 1px 0; border-radius: 9px;
  color: #b9c5d6; font-size: 13.5px; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(34, 197, 94, .18), rgba(34, 197, 94, .04)); color: #fff; }
.nav a.active .ico { color: #4ade80; }
.nav-parent { display: flex; align-items: center; gap: 10px; padding: 8px 10px 4px; color: #8fa0b8; font-size: 13px; }
.nav-parent .ico { width: 17px; height: 17px; display: grid; place-items: center; color: #6b7a90; }
.nav a.sub { padding-left: 30px; font-size: 12.5px; opacity: .92; }
.nav .ico { width: 17px; height: 17px; display: grid; place-items: center; color: #7d8ba3; }
.nav .badge-dot { margin-left: auto; background: #22c55e; color: #052e16; font-size: 10.5px; padding: 1px 6px; border-radius: 99px; font-weight: 600; }

.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-user { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.side-user:hover { background: rgba(255, 255, 255, .05); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #1f2f4a; display: grid; place-items: center; color: #cbd5e1; font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; white-space: nowrap; }
.crumb { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.env-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand-600);
  border: 1px solid #cdebd8; border-radius: 99px; padding: 4px 10px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.content { padding: 20px 22px 40px; max-width: 1560px; width: 100%; margin: 0 auto; }

/* ---------- primitives ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 14px; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.kpi { padding: 16px; }
.kpi .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 27px; font-weight: 650; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .meta { color: var(--muted); font-size: 12px; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.kpi .meta .up { color: var(--brand-600); }
.kpi .meta .down { color: var(--danger); }
.kpi .spark { height: 34px; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #cfd8e6; background: #f8fafc; }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #eef2f8; }
.btn.danger { color: var(--danger); border-color: #f3d1d1; background: #fff5f5; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.icon { width: 32px; padding: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s; font-size: 13px;
}
.textarea { height: auto; min-height: 84px; padding: 9px 10px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: #9fd9b3; box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.right { margin-left: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 99px; background: #f1f5f9; color: #475569; font-size: 11.5px; white-space: nowrap;
}
.chip.green { background: var(--brand-soft); color: var(--brand-600); }
.chip.amber { background: #fef3e2; color: #b45309; }
.chip.red { background: #fdecec; color: #b91c1c; }
.chip.blue { background: #eaf0ff; color: #3b52d4; }
.chip.gray { background: #f1f5f9; color: #64748b; }
.chip.outline { background: #fff; border: 1px solid var(--line); color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status.online i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.status.qr i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.status.offline i { background: #94a3b8; }
.status.banned i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }

.table-wrap { overflow: auto; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
thead th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px;
  padding: 10px 14px; background: #fbfcfe; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1; white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
tbody tr:hover { background: #fafcff; }
tbody tr.picked { background: #f0fbf4; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.progress { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 99px; }
.progress.blue > span { background: linear-gradient(90deg, #60a5fa, #4f6bed); }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 4px; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.toolbar .input, .toolbar .select { height: 32px; width: auto; min-width: 120px; }
.toolbar .input.search { width: 220px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; color: var(--muted); font-size: 12.5px; }

/* ---------- charts ---------- */
.chart { width: 100%; overflow: visible; }
.chart .grid-line { stroke: #eef2f7; stroke-width: 1; }
.chart .axis { fill: #94a3b8; font-size: 10.5px; }
.chart .area { fill: url(#areaFill); }
.chart .line { fill: none; stroke: #16a34a; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line2 { fill: none; stroke: #4f6bed; stroke-width: 2; stroke-dasharray: 4 4; }
.chart .pt { fill: #16a34a; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

.donut { display: flex; align-items: center; gap: 18px; }
.donut svg { flex: none; }
.donut .legend { flex-direction: column; gap: 7px; }

/* ---------- chat ---------- */
.chat-layout { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 128px); min-height: 520px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.chat-list .toolbar { padding: 10px 12px; }
.chat-items { overflow-y: auto; flex: 1; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.chat-item:hover { background: #fafcff; }
.chat-item.active { background: #f0fbf4; box-shadow: inset 3px 0 0 var(--brand); }
.chat-item .name { font-weight: 500; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.chat-item .preview { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.chat-item .when { margin-left: auto; font-size: 11px; color: #9aa7ba; white-space: nowrap; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; background: #f7f9fc; }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 66%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; box-shadow: 0 1px 1px rgba(15, 23, 42, .04); }
.msg.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: #dcf8e3; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .t { display: block; font-size: 10.5px; color: #7c8a9e; margin-top: 4px; text-align: right; }
.msg.failed { background: #fdecec; border: 1px solid #f5c7c7; }
.composer { background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-end; }
.composer .textarea { min-height: 40px; max-height: 120px; }
.composer .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- modal / drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12, 21, 38, .42); backdrop-filter: blur(2px); z-index: 60; display: none; }
.overlay.show { display: block; }
.modal {
  position: fixed; z-index: 61; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.98);
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 80px);
  background: #fff; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(12, 21, 38, .45);
  display: none; flex-direction: column; opacity: 0; transition: .18s;
}
.modal.show { display: flex; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; }
.x { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, .5); animation: slide .2s ease;
}
.toast.err { background: #b91c1c; }
.toast.ok { background: #14532d; }
@keyframes slide { from { opacity: 0; transform: translateY(6px); } }

/* ---------- misc ---------- */
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 12px; }
.section-title h2 { font-size: 15px; }
.section-title .muted { font-size: 12.5px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.list-row:last-child { border-bottom: 0; }
.stat-inline { display: flex; gap: 20px; flex-wrap: wrap; }
.stat-inline b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat-inline span { color: var(--muted); font-size: 12px; }

.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.port-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; cursor: pointer; transition: .15s; }
.port-card:hover { border-color: #b9e6c8; box-shadow: 0 8px 18px -12px rgba(22, 163, 74, .5); }
.port-card .code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.port-card .phone { font-size: 13px; margin: 4px 0 6px; }
.port-card .bar { height: 4px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.port-card .bar i { display: block; height: 100%; background: var(--brand); }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.tabs button { border: 0; background: transparent; padding: 11px 12px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 500; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-art {
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(34, 197, 94, .28), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(79, 107, 237, .28), transparent 55%),
    #08111f;
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.login-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.login-art h2 { font-size: 30px; line-height: 1.25; max-width: 460px; position: relative; z-index: 2; }
.login-art p { color: #93a3bb; max-width: 440px; position: relative; z-index: 2; }
.login-points { display: grid; gap: 12px; position: relative; z-index: 2; }
.login-points div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #c7d2e2; }
.login-points b { color: #4ade80; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-form { width: min(380px, 100%); }
.login-form h1 { font-size: 22px; margin-bottom: 6px; }
.login-form .muted { margin-bottom: 26px; display: block; }
.login-form .field { margin-bottom: 14px; }
.login-form .btn { width: 100%; height: 40px; margin-top: 8px; }
.login-tip { margin-top: 18px; font-size: 12px; color: var(--muted); background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.login-error { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-top: 8px; }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; } .login-art { display: none; } }

.top-menu { display: flex; gap: 2px; align-items: center; margin-left: 8px; flex-wrap: nowrap; }
.top-menu a { padding: 6px 8px; border-radius: 6px; color: #475569; font-size: 12px; white-space: nowrap; }
.top-menu a:hover { background: #eef2f8; color: #0f172a; }
.top-menu a.active { background: #e8f7ed; color: #15803d; font-weight: 500; }
@media (max-width: 900px) { .top-menu { display: none; } }

/* 左侧手风琴收纳 */
.nav { padding: 6px 8px 16px; }
.nav-section { margin: 2px 0; border-radius: 10px; }
.nav-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border: 0; border-radius: 10px; background: transparent;
  color: #8fa0b8; font-size: 12.5px; letter-spacing: .04em; cursor: pointer;
}
.nav-head:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.nav-section.open .nav-head { color: #fff; background: rgba(255,255,255,.04); }
.nav-meta { display: flex; align-items: center; gap: 8px; }
.nav-meta b { font-size: 10.5px; font-weight: 500; color: #5b6a83; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 99px; }
.nav-section.open .nav-meta b { color: #86efac; background: rgba(34,197,94,.15); }
.chev { font-style: normal; font-size: 10px; color: #5b6a83; transition: transform .15s; }
.nav-section.open .chev { transform: rotate(90deg); color: #86efac; }
.nav-items { display: none; padding: 4px 0 6px; }
.nav-section.open .nav-items { display: block; }
.nav-items a { padding-left: 14px; }
.nav-items a.sub { padding-left: 30px; }

/* 平台样式：模块大行 + 展开子项 */
.nav { padding: 8px 10px 16px; }
.nav-module, .nav-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  height: 52px; padding: 0 14px; margin: 2px 0;
  border: 0; border-radius: 8px; background: transparent;
  color: #cbd5e1; font-size: 14px; text-align: left; cursor: pointer;
}
.nav-module:hover, .nav-head:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-module.active, .nav-section.open > .nav-head { color: #fff; background: rgba(255,255,255,.06); }
.m-ico { width: 20px; text-align: center; font-size: 15px; color: #94a3b8; }
.nav-module.active .m-ico, .nav-section.open .m-ico { color: #4ade80; }
.m-label { flex: 1; font-size: 14px; letter-spacing: .01em; }
.chev { font-style: normal; font-size: 11px; color: #64748b; transition: transform .15s; }
.nav-section.open .chev { transform: rotate(180deg); color: #94a3b8; }
.nav-items { display: none; padding: 2px 0 8px; }
.nav-section.open .nav-items { display: block; }
.nav-items a {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px 0 46px; border-radius: 8px;
  color: #b6c2d4; font-size: 13px;
}
.nav-items a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-items a.active { background: #1e2c46; color: #fff; }
.nav-items a .ico { width: 16px; text-align: center; font-size: 12px; color: #7d8ba3; }
.nav-parent { padding: 8px 14px 4px 46px; font-size: 11.5px; color: #64748b; letter-spacing: .06em; }

body.side-collapsed .shell { grid-template-columns: 0 1fr; }
body.side-collapsed .sidebar { display: none; }

.nav-side-item { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; color: #475569; font-size: 13px; margin-bottom: 2px; }
.nav-side-item:hover { background: #f1f5f9; }
.nav-side-item.active { background: #e8f7ed; color: #15803d; font-weight: 500; }

.switch-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.switch-row:last-child { border-bottom: 0; }
.switch-label { font-size: 13.5px; color: var(--ink); }
.switch { flex: none; width: 42px; height: 24px; border-radius: 99px; border: 0; background: #e2e8f0; position: relative; cursor: pointer; transition: background .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: #16a34a; }
.switch.on i { transform: translateX(18px); }
.switch[disabled] { opacity: .5; cursor: not-allowed; }
