/* ============ 主题变量（浅色主题） ============ */
:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --card-sub: #f8fafc;
  --text: #111827;
  --text-sub: #4b5563;
  --muted: #8b95a5;
  --border: #e5e7eb;
  --border-soft: #f1f5f9;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* ============ 基础（未完成登录验证前默认隐藏主界面 .wrap） ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 14px 56px;
  display: none !important;
}
body.auth-verified .wrap {
  display: block !important;
}
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  position: relative;
}

/* ============ 启动自检横幅 ============ */
.boot-banner {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.boot-banner b { font-size: 14px; }
.boot-banner .boot-msg { margin-top: 6px; word-break: break-all; }
.boot-banner .boot-tip { margin-top: 6px; opacity: 0.9; font-size: 12px; line-height: 1.7; }

/* ============ 顶栏 ============ */
.topbar { padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 13px; padding-right: 112px; }
.app-icon {
  width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 52%, #4f46e5 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.26), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.app-icon .brand-svg {
  width: 30px; height: 30px; display: block;
}
.brand-text h1 { font-size: 20px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ver {
  font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-soft);
  border-radius: 999px; padding: 2px 9px; vertical-align: middle;
  white-space: nowrap;
}
.brand-text p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.top-actions {
  position: absolute; top: 16px; right: 16px;
  display: flex; gap: 6px; align-items: center;
}
.icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-sub); font-size: 15px; cursor: pointer; color: var(--text-sub);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.accounts { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
/* 标签页内的账号切换卡片：去掉 .accounts 的顶部外边距 */
.accounts-card .accounts { margin-top: 0; }
.chip {
  border: 1px solid var(--border); background: var(--card-sub); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; cursor: pointer; color: var(--text-sub);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s ease;
}
.chip.on {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}
.chip.add { border-style: dashed; color: var(--muted); }
.chip.add:hover { border-color: var(--primary); color: var(--primary); }
.cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.cdot.off { background: var(--muted); }

/* ============ 状态区 & KPI 面板 ============ */
.status { padding: 10px 18px 16px; }
.status-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; padding: 9px 0;
}
.status-row + .status-row { border-top: 1px solid var(--border-soft); }
.status-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.dot.gray { background: var(--muted); }
.login-btn {
  border: none; background: none; color: var(--primary); font-size: 13.5px;
  font-weight: 600; cursor: pointer; padding: 0;
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft);
}
.kpi-box {
  background: var(--card-sub); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 6px; text-align: center;
  transition: all 0.15s ease;
}
.kpi-box.clickable { cursor: pointer; user-select: none; }
.kpi-box.clickable:hover { transform: translateY(-1px); border-color: var(--primary); }
.kpi-box.clickable:active { transform: scale(0.98); }
.kpi-box.ok { background: var(--success-soft); border-color: rgba(22, 163, 74, 0.22); }
.kpi-box.warn { background: var(--warning-soft); border-color: rgba(217, 119, 6, 0.25); }
.kpi-box.muted { background: var(--card-sub); border-color: var(--border); }
.kpi-box.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.kpi-box.ok.active {
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22);
}
.kpi-box.warn.active {
  border-color: var(--warning);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}
.kpi-val { display: block; font-size: 17px; font-weight: 700; color: var(--text); }
.kpi-box.ok .kpi-val { color: var(--success); }
.kpi-box.warn .kpi-val { color: var(--warning); }
.kpi-box.muted .kpi-val { color: var(--muted); }
.kpi-lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============ 分区标题 ============ */
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-head .bdot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.sec-head h2 { font-size: 16px; font-weight: 700; }
.sec-head .count { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: auto; }

/* ============ 按钮 ============ */
.actions { display: flex; gap: 8px; margin-bottom: 10px; }
.actions.sub { flex-wrap: wrap; }
.actions.sub .btn { flex: 1 1 21%; padding: 9px 8px; font-size: 13px; }
.btn {
  border: none; border-radius: 11px; padding: 11px 14px;
  font-size: 14px; cursor: pointer; text-align: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.actions > .btn.blue { flex: 1; }
.btn.gray { background: var(--card-sub); color: var(--text-sub); border: 1px solid var(--border); }
.btn.blue { background: var(--primary); color: #fff; font-weight: 600; }
.btn.blue:hover { background: var(--primary-hover); }
.btn:active { opacity: 0.85; transform: scale(0.99); }
.btn.full { width: 100%; }
.danger-text { color: var(--danger) !important; }

/* ============ 筛选栏 ============ */
.filter-bar {
  display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 10px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
}
.filter-actions {
  display: inline-flex; gap: 6px; align-items: center; margin-left: auto;
}
.filter-actions .mini {
  padding: 5px 10px; font-size: 12.5px; border-radius: 8px;
}
.filter-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 2px;
  background: var(--card-sub); border-radius: 9px; padding: 3px; border: 1px solid var(--border);
}
.ftab {
  border: none; background: transparent; color: var(--text-sub);
  font-size: 12px; padding: 5px 8px; border-radius: 7px; cursor: pointer;
  white-space: nowrap;
}
.ftab.on { background: var(--primary); color: #fff; font-weight: 600; }
.filter-input {
  flex: 1; min-width: 130px; border: 1px solid var(--border); border-radius: 9px;
  padding: 6px 10px; font-size: 12.5px; outline: none; background: var(--card-sub); color: var(--text);
}
.filter-input:focus { border-color: var(--primary); }

/* ============ 群组与网站列表（单行状态时间 + 详情入口 + 默认收起暂停/删除） ============ */
.group {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}
.group:first-of-type { border-top: none; }
.g-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--primary); overflow: hidden; position: relative;
}
.g-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g-avatar .on {
  position: absolute; right: 0; bottom: 0; width: 10px; height: 10px;
  border-radius: 50%; background: var(--success); border: 2px solid var(--card);
}
.g-avatar .on.off { background: var(--muted); }
.g-info { flex: 1; min-width: 0; }
.g-info .t {
  font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.g-info .t .t-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0;
}
/* 本地备注名旁边展示的真实名称（次级弱化显示） */
.t-orig {
  font-size: 11.5px; font-weight: 400; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0;
}
.g-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.g-tag {
  font-size: 11px; padding: 1px 6px; border-radius: 5px;
  background: var(--card-sub); color: var(--text-sub); border: 1px solid var(--border);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.g-tag.clickable-tag { cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.g-tag.clickable-tag:hover { border-color: var(--primary); color: var(--primary); }
/* 状态与时间强制单行不换行 */
.g-status-line {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-size: 12px; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.st-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.st-text.ok { color: var(--success); font-weight: 500; }
.st-text.warn { color: var(--warning); font-weight: 500; }
.st-text.err { color: var(--danger); font-weight: 500; }
.detail-link {
  border: none; background: var(--primary-soft); color: var(--primary);
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  cursor: pointer; flex-shrink: 0; white-space: nowrap; line-height: 1.5;
}
.detail-link:hover { opacity: 0.85; }

.g-ops {
  display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap;
  justify-content: flex-end; align-items: center; max-width: 176px;
}
.g-ops-more {
  display: none; gap: 5px; width: 100%; justify-content: flex-end; margin-top: 2px;
}
.g-ops.open .g-ops-more {
  display: flex;
}
.mini {
  border: 1px solid var(--border); background: var(--card-sub); color: var(--text-sub);
  font-size: 12px; padding: 4px 9px; border-radius: 7px; cursor: pointer;
  transition: all 0.15s ease; white-space: nowrap;
}
.mini:hover { border-color: var(--primary); color: var(--primary); }
.mini.primary { background: var(--primary-soft); border-color: rgba(37, 99, 235, 0.3); color: var(--primary); font-weight: 600; }
.mini.danger { color: var(--danger); }
.mini.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.mini.more-toggle {
  padding: 4px 7px; font-weight: 700; color: var(--muted);
}
.g-ops.open .mini.more-toggle {
  background: var(--primary-soft); color: var(--primary); border-color: rgba(37, 99, 235, 0.3);
}

/* ============ 表单 ============ */
.add-row { display: flex; gap: 8px; align-items: stretch; }
.add-input {
  flex: 1; width: 100%; border: 1px solid var(--border); border-radius: 11px;
  padding: 11px 12px; font-size: 14px; outline: none; background: var(--card-sub); color: var(--text);
}
.add-input:focus { border-color: var(--primary); }
.add-submit { flex-shrink: 0; white-space: nowrap; padding: 0 18px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.hint code, .cmd-tip-box code {
  background: var(--card-sub); padding: 1px 5px; border-radius: 5px;
  border: 1px solid var(--border); font-size: 11.5px; color: var(--primary);
}
.empty-tip { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }
.sub-hint { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ============ 弹窗 ============ */
.mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 50;
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
#m-dialogs { z-index: 110; }
#m-forgot-pw, #m-change-pw { z-index: 1200; }
.mask.show { display: flex; }
.sheet {
  background: var(--card); color: var(--text);
  width: 100%; max-width: 540px; border-radius: 20px 20px 0 0;
  padding: 18px 18px 28px; max-height: 85vh; overflow-y: auto;
  animation: up 0.2s ease-out;
  border-top: 1px solid var(--border);
}
@media (min-width: 600px) {
  .mask { align-items: center; padding: 20px; }
  .sheet { border-radius: 18px; border: 1px solid var(--border); padding: 20px 22px 24px; }
}
@keyframes up { from { transform: translateY(28px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet h3 { font-size: 17px; font-weight: 700; margin: 0; }
.sheet-close {
  border: none; background: var(--card-sub); color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.sheet-close:hover { background: var(--border); color: var(--text); }
.sheet label { font-size: 12.5px; color: var(--text-sub); display: block; margin: 11px 0 5px; font-weight: 500; }
.sheet input:not([type=checkbox]), .sheet select {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; box-sizing: border-box;
  background: var(--card-sub); color: var(--text);
}
.sheet input:not([type=checkbox]):focus, .sheet select:focus, .sheet textarea:focus { border-color: var(--primary); }
.sheet textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; outline: none; box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical;
  background: var(--card-sub); color: var(--text);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label {
  min-height: 20px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 5px;
}
.date-quick-bar {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}
.date-quick-bar .mini {
  flex: 1;
  padding: 3px 0;
  font-size: 11.5px;
  text-align: center;
}
.sheet .btn { margin-top: 12px; padding: 11px 0; font-size: 14.5px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; margin-top: 0; }
.link { color: var(--primary); font-size: 12px; text-decoration: none; margin-left: 6px; }
.dlg-toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dlg-toolbar .search { flex: 1; margin: 0; }
#dialog-list, #history-list, #detail-history-list { max-height: 45vh; overflow-y: auto; padding-right: 2px; }
.dlg-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  border-top: 1px solid var(--border-soft); cursor: pointer;
}
.dlg-item:first-child { border-top: none; }
.dlg-item .t { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg-item input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }

/* ============ 签到详情弹窗样式 ============ */
.detail-latest-box {
  background: var(--card-sub); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.detail-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.detail-result { font-size: 13.5px; line-height: 1.6; color: var(--text); word-break: break-word; }
.detail-hist-title { font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
.cmd-tip-box {
  background: var(--primary-soft); border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--text-sub); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; line-height: 1.6; margin-bottom: 8px;
}

/* ============ toast / 历史 ============ */
.toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92); color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px; z-index: 2000; display: none;
  max-width: 90%; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.spin { display: inline-block; animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.h-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-soft); align-items: flex-start; }
.h-item:first-child { border-top: none; }
.h-ok { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.h-info { flex: 1; min-width: 0; }
.h-info .t { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.h-attempt {
  font-size: 11px; color: var(--muted); font-weight: 400;
  background: var(--card-sub); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border);
}
.h-info .s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.55; word-break: break-all; }

/* ============ 高级折叠区 & 商用过盾配置框 ============ */
.adv-details {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--card-sub);
}
.adv-details summary {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.adv-details[open] summary {
  margin-bottom: 6px;
}
.captcha-cfg-box {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-sub);
}
.captcha-cfg-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.auth-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.auth-toggle-row input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.captcha-test-res {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  background: var(--primary-soft);
  color: var(--text-sub);
  border: 1px solid rgba(37, 99, 235, 0.22);
  word-break: break-all;
}
.captcha-test-res.ok {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.25);
}
.captcha-test-res.err {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.25);
}

/* ============ 主标签页（TG 签到 / Emby 抢注 / 网站签到） ============ */
.main-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.mtab {
  flex: 1;
  padding: 9px 4px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--card-sub);
  color: var(--text-sub);
  transition: all .15s ease;
  text-align: center;
  white-space: nowrap;
}
.mtab.on {
  background: var(--primary-soft);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary);
}
.tab-panel { animation: tabfade .18s ease; }
@keyframes tabfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============ 全屏访问认证锁屏层（不透明背景，严禁透出底层内容） ============ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: authfade .2s ease-out;
}
body.auth-verified .auth-overlay {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@keyframes authfade { from { opacity: 0; } to { opacity: 1; } }
.auth-card {
  position: relative;
  background: var(--card);
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  border: 1px solid var(--border);
  text-align: center;
}
.auth-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
}
.auth-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.pw-input-wrap input,
.sheet .pw-input-wrap input:not([type=checkbox]) {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 42px 11px 14px;
  font-size: 14.5px;
  outline: none;
  background: var(--card-sub);
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pw-input-wrap input:focus,
.sheet .pw-input-wrap input:not([type=checkbox]):focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pw-eye-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.pw-eye-btn:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

