:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #dc2626;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
button { font-family: inherit; }

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 16px; }
.tabs { display: flex; gap: 4px; }
.tab {
  border: none; background: transparent; padding: 8px 16px;
  border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted);
}
.tab:hover { background: #f0f2f5; }
.tab.active { background: #eef2ff; color: var(--primary); font-weight: 600; }
.top-actions { margin-left: auto; }

.view { display: none; padding: 20px 24px; max-width: 1280px; margin: 0 auto; }
.view.active { display: block; }

.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.toolbar .left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

input[type=text], input[type=url], input[type=search], textarea, select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
#search { width: 280px; }

.btn {
  border: none; background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.btn:hover { background: var(--primary-dark); }
.btn.primary { background: var(--primary); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: #f3f4f6; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger-ghost { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.btn.danger-ghost:hover { background: #fef2f2; }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.muted { color: var(--muted); font-size: 13px; }

.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafafa; white-space: nowrap; }
td { font-size: 13px; }
tbody tr:hover { background: #fafbfc; }
.col-check { width: 36px; }
.col-stat { text-align: right; white-space: nowrap; }
.col-op { white-space: nowrap; text-align: right; }
.stat-cell .today { color: var(--primary); font-weight: 600; }
.stat-cell .total { color: var(--text); }
.stat-cell small { display: block; color: var(--muted); font-size: 11px; }

.tag { display: inline-block; background: #eef2ff; color: var(--primary); border-radius: 4px; padding: 1px 7px; font-size: 12px; margin: 1px 2px 1px 0; }
.badge { display: inline-block; border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.badge.active { background: #dcfce7; color: var(--green); }
.badge.disabled { background: #fee2e2; color: var(--danger); }
.badge.pending { background: #fef3c7; color: var(--amber); }
.badge.verified { background: #dcfce7; color: var(--green); }
.badge.invalid { background: #fee2e2; color: var(--danger); }

.poster-thumb { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; background: #eee; display: block; }
.poster-none { width: 36px; height: 48px; border-radius: 4px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 18px; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

.op-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.op-link:hover { text-decoration: underline; }
.op-link.danger { color: var(--danger); }
.disabled-reason { color: var(--danger); font-size: 12px; }

.short-link { color: var(--primary); text-decoration: none; word-break: break-all; }
.short-link:hover { text-decoration: underline; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-mask[hidden] { display: none; }
.modal { background: #fff; border-radius: 12px; padding: 24px; width: 520px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal.wide { width: 680px; }
.modal h3 { margin: 0 0 16px; font-size: 17px; }
.form label { display: block; margin-bottom: 12px; font-size: 13px; color: #374151; }
.form input, .form textarea, .form select { width: 100%; margin-top: 4px; }
.form .req { color: var(--danger); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.poster-field { margin-bottom: 12px; }
.label-text { font-size: 13px; color: #374151; display: block; margin-bottom: 6px; }
.poster-drop { border: 2px dashed var(--border); border-radius: 8px; padding: 16px; text-align: center; cursor: pointer; background: #fafafa; transition: .15s; }
.poster-drop:hover, .poster-drop.drag { border-color: var(--primary); background: #eef2ff; }
.poster-drop img { max-height: 120px; border-radius: 6px; }
.poster-hint { color: var(--muted); font-size: 13px; }

.seg { display: flex; gap: 4px; background: #f3f4f6; border-radius: 8px; padding: 4px; margin-bottom: 12px; }
.seg-btn { border: none; background: transparent; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.seg-btn.active { background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.help { font-size: 12px; color: var(--muted); background: #f9fafb; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; white-space: pre-wrap; line-height: 1.7; }
.import-result { font-size: 13px; padding: 12px; border-radius: 8px; margin-top: 12px; }
.import-result.ok { background: #f0fdf4; color: var(--green); }
.import-result.warn { background: #fef3c7; color: var(--amber); }

/* V9：Excel 文件导入预览 */
.import-preview { margin-top: 12px; max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.import-summary { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border); background: #f9fafb; }
.import-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.import-table th, .import-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.import-table th { position: sticky; top: 0; background: #fff; z-index: 1; color: var(--muted); font-weight: 600; }
.import-table td.break { word-break: break-all; }
.import-table .row-invalid { background: #fff5f5; }
.import-table .err { color: var(--danger); }
.import-table .ok { color: var(--green); }
.import-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
#import-file { margin-top: 12px; }
#import-file input[type="file"] { margin-bottom: 8px; font-size: 13px; }

.pick-list { border: 1px solid var(--border); border-radius: 8px; max-height: 260px; overflow-y: auto; margin: 8px 0 12px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pick-item:hover { background: #f9fafb; }
.pick-item .meta { flex: 1; min-width: 0; }
.pick-item .meta .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-item .meta .s { color: var(--muted); font-size: 12px; }
.pick-item.disabled-item { opacity: .45; }

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 14px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--green); }

/* ===================== 两步向导 ===================== */
.wizard-sub { color: var(--muted); font-size: 13px; margin: -8px 0 16px; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: #f3f4f6; color: var(--muted); font-size: 13px; }
.step-dot { width: 22px; height: 22px; border-radius: 50%; background: #e5e7eb; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.step.active { background: #eef2ff; color: var(--primary); font-weight: 600; }
.step.active .step-dot { background: var(--primary); color: #fff; }
.step.done { background: #ecfdf5; color: var(--green); }
.step.done .step-dot { background: var(--green); color: #fff; }

.wiz-section-title { font-size: 13px; font-weight: 700; color: #374151; margin: 16px 0 8px; }
.wiz-section-title:first-child { margin-top: 0; }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card { position: relative; border: 2px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: .15s; }
.mode-card:hover { border-color: #c7d2fe; }
.mode-card.active { border-color: var(--primary); background: #f5f7ff; }
.mode-check { position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; font-size: 12px; }
.mode-card.active .mode-check { display: flex; }
.mode-name { font-weight: 700; font-size: 15px; }
.mode-desc { color: var(--muted); font-size: 12px; margin-top: 4px; }

.wiz-name-fold { margin-top: 12px; font-size: 13px; color: #374151; }
.wiz-name-fold summary { cursor: pointer; color: var(--muted); }
.wiz-name-fold input { width: 100%; margin-top: 8px; }

.wiz-pick-toolbar { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.pick-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pick-count b { color: var(--primary); font-size: 15px; }
.wiz-pick-toolbar input { flex: 1; min-width: 0; margin-top: 0; }

.tag-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag-chip { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 999px; padding: 3px 12px; font-size: 12px; cursor: pointer; }
.tag-chip:hover { background: #f3f4f6; }
.tag-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-chip .cnt { opacity: .7; margin-left: 3px; }

.wiz-pick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wiz-pick-head select { width: auto; margin-top: 0; padding: 5px 10px; font-size: 13px; }

.pick-list.cards { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; border: none; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: .12s; }
.link-card:hover { border-color: #c7d2fe; background: #fafbff; }
.link-card.checked { border-color: var(--primary); background: #f5f7ff; }
.link-card input { width: 16px; height: 16px; flex: none; }
.link-card .lc-main { flex: 1; min-width: 0; }
.link-card .lc-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card .lc-url { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card .lc-tags { margin-top: 2px; }
.link-card .lc-stats { flex: none; text-align: right; font-size: 12px; color: var(--muted); }
.link-card .lc-stats b { display: block; font-size: 14px; color: var(--text); }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.pager button { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pg-info { font-size: 12px; color: var(--muted); }

/* ===================== 确认页 ===================== */
.confirm-block { border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px; }
.confirm-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row > span { flex: none; width: 72px; color: var(--muted); }
.confirm-row b { font-weight: 600; }
.confirm-row select { width: auto; margin-top: 0; }
.confirm-list { flex: 1; display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; }
.confirm-list .cl-item { font-size: 13px; color: var(--text); }
.confirm-list .cl-item .s { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* ===================== 数据面板 ===================== */
.data-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.data-name { color: var(--muted); font-size: 13px; margin-top: 4px; }
.data-link { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.data-link .short-link { font-size: 13px; }
.modal h4 { margin: 20px 0 6px; font-size: 14px; }
.chart-note { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.data-chart { width: 100%; overflow-x: auto; }
.data-chart svg { display: block; }

.target-sort { display: flex; gap: 4px; margin-bottom: 10px; }
.data-targets { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.target-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.target-row .tr-seq { flex: none; width: 20px; color: var(--muted); text-align: center; }
.target-row .tr-main { flex: none; width: 200px; min-width: 0; }
.target-row .tr-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-row .tr-domain { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-row .tr-bar { flex: 1; height: 8px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.target-row .tr-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.target-row .tr-pct { flex: none; width: 52px; text-align: right; font-weight: 600; color: var(--primary); }
.target-row .tr-hits { flex: none; width: 60px; text-align: right; color: var(--muted); }
.data-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .view { padding: 12px; }
  .mode-cards { grid-template-columns: 1fr; }
  .wiz-pick-toolbar { flex-wrap: wrap; }
  /* V6 归并展示窄屏降级 */
  .glink { flex-wrap: wrap; }
  .glink-url { max-width: 100%; }
  .glink-ops { margin-left: 0; }
}

/* ===================== T9 连通性徽标 ===================== */
.badge.chk-ok { background: #dcfce7; color: var(--green); }
.badge.chk-warn { background: #fef3c7; color: var(--amber); }
.badge.chk-fail { background: #fee2e2; color: var(--danger); }
.status-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-line .disabled-reason { font-size: 11px; }

/* V6 源链接归并展示：组内链接横向排列 */
.col-links { min-width: 320px; }
.glink { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.glink + .glink { border-top: 1px dashed var(--border); }
.glink-disabled { opacity: 0.55; }
.glink-account { font-weight: 600; flex-shrink: 0; color: var(--muted); }
.glink-url { color: var(--primary); text-decoration: none; word-break: break-all; max-width: 260px; }
.glink-url:hover { text-decoration: underline; }
.glink-ops { margin-left: auto; flex-shrink: 0; }
.muted.small { font-size: 11px; }

/* ===================== T13 域名角色标签 ===================== */
.role-chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.role-chip.main { background: #dbeafe; color: var(--primary); }
.role-chip.backup { background: #f3f4f6; color: #6b7280; }

/* ===================== T16 数据看板 ===================== */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.dash-card .dc-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.2; }
.dash-card .dc-label { font-size: 13px; color: var(--text); margin-top: 4px; font-weight: 600; }
.dash-card .dc-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dash-panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.dash-panel h4 { margin: 0 0 10px; font-size: 14px; }
.dash-chart svg { display: block; width: 100%; }

.dash-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.dash-row:last-child { border-bottom: none; }
.dash-row .dr-seq { flex: none; width: 20px; color: var(--muted); text-align: center; }
.dash-row .dr-main { flex: 1; min-width: 0; }
.dash-row .dr-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row .dr-sub2 { color: var(--muted); font-size: 11px; }
.dash-row .dr-bar { height: 6px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.dash-row .dr-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.dash-row .dr-val { flex: none; width: 56px; text-align: right; font-weight: 600; color: var(--primary); }
.dash-row .dr-sub { flex: none; width: 52px; text-align: right; color: var(--muted); font-size: 12px; }
.dash-foot { font-size: 12px; color: var(--muted); padding: 4px 2px; }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .45);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.mask.open { display: flex; }
.modal {
  background: var(--card); border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  width: 100%; max-width: 540px; max-height: 90vh; overflow: auto;
}
.modal-head { padding: 18px 20px 0; }
.modal-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.modal-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.modal-body { padding: 16px 20px; }
.modal-foot { padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: #f3f4f6; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], .field select { width: 100%; }

/* ---------- DNS 配置卡片 ---------- */
.dns-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dns-card table { width: 100%; border-collapse: collapse; }
.dns-card th, .dns-card td { padding: 9px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dns-card tr:last-child th, .dns-card tr:last-child td { border-bottom: none; }
.dns-card th { width: 86px; background: #f9fafb; color: var(--muted); font-weight: 500; white-space: nowrap; }
.dns-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f3f4f6; padding: 2px 6px; border-radius: 5px; font-size: 13px;
}
.copy-btn {
  border: none; background: transparent; color: var(--primary);
  cursor: pointer; font-size: 12px; padding: 3px 7px;
  border-radius: 5px; margin-left: 8px; font-family: inherit;
}
.copy-btn:hover { background: #eef2ff; }
.copy-line { display: flex; align-items: center; gap: 12px; background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.copy-line .short-link { flex: 1; font-size: 14px; }
.copy-line .copy-btn { flex-shrink: 0; margin-left: 0; }

/* V5.6：弹层右上角「× 关闭」按钮 */
.modal { position: relative; }
.modal-x {
  position: absolute; top: 12px; right: 14px;
  border: none; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
  padding: 2px 8px; border-radius: 6px; font-family: inherit;
}
.modal-x:hover { background: #f3f4f6; color: var(--text); }
.hint {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.6;
}
.hint.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.hint.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.hint + .hint { margin-top: 10px; }
.domain-status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }

/* ===== V7 P0-1: 登录页与改密弹窗 ===== */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 32px 36px; width: 360px; max-width: calc(100% - 32px); }
.login-card .brand { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); }
.login-form input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; }
.login-form input:focus { border-color: var(--primary); }
.login-card .foot { margin-top: 18px; }
.form-err { color: var(--danger); font-size: 13px; margin-top: 8px; }
.block { display: block; width: 100%; }

.modal { background: var(--card); border-radius: 12px; padding: 24px 28px; width: 420px; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 12px; font-size: 16px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.modal input { padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.modal .row { display: flex; align-items: center; }
.modal .gap { gap: 10px; }
.modal .end { justify-content: flex-end; }

#user-indicator a { color: var(--primary); text-decoration: none; margin-left: 6px; }
#user-indicator a:hover { text-decoration: underline; }
