:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-weak: #eff6ff;
  --danger: #dc2626;
  --danger-weak: #fef2f2;
  --success: #16a34a;
  --success-weak: #f0fdf4;
  --warn: #d97706;
  --warn-weak: #fffbeb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
a { color: var(--primary); text-decoration: none; }
.boot { padding: 60px; text-align: center; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); border-color: #9ca3af; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-danger { background: var(--surface); border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: var(--danger-weak); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-weak); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.list-title .btn-ghost { margin-left: 6px; padding: 2px 8px; font-size: 11px; vertical-align: middle; }

.metric-more { margin-top: 10px; }
.metric-more > summary { cursor: pointer; color: var(--primary); font-size: 13px; padding: 6px 0; list-style: none; user-select: none; }
.metric-more > summary::-webkit-details-marker { display: none; }
.metric-more > summary::before { content: '▸ '; }
.metric-more[open] > summary::before { content: '▾ '; }
.metric-more > .metric-grid { margin-top: 10px; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: #111827; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .42);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 90;
}
.modal {
  width: 100%; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.16);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.confirm-text { margin: 0; line-height: 1.7; }
.code-reveal {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px;
  letter-spacing: 2px; text-align: center; padding: 16px; margin: 12px 0;
  background: var(--primary-weak); border: 1px dashed #93c5fd; border-radius: 8px;
  color: #1e40af; user-select: all;
}

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.field .hint { margin-top: 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
textarea { resize: vertical; min-height: 76px; }
input[type=file] { padding: 7px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.muted { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px; background: var(--surface-2); border-radius: 8px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.7; background: #f3f4f6; color: #4b5563; }
.tag-ok { background: var(--success-weak); color: #15803d; }
.tag-warn { background: var(--warn-weak); color: #b45309; }
.tag-off { background: #f3f4f6; color: #9ca3af; }
.tag-danger { background: var(--danger-weak); color: var(--danger); }

.entry-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.entry-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.brand { text-align: center; margin-bottom: 22px; }
.brand h1 { font-size: 19px; letter-spacing: .5px; }
.brand p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.entry-tabs { display: flex; gap: 6px; background: #f3f4f6; padding: 4px; border-radius: 9px; margin-bottom: 22px; }
.entry-tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 7px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.entry-tabs button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.entry-foot { margin-top: 16px; text-align: center; }

.shell { min-height: 100vh; }
.topbar {
  height: 56px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-brand { font-size: 15px; font-weight: 600; }
.topbar-brand span { color: var(--primary); }
/* 车商端标题随录入的客户名称变化，长名称不撑破顶栏。 */
.topbar-brand.viewer-brand { min-width: 0; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 56px); }
.sidebar { width: 196px; flex: 0 0 196px; background: var(--surface); border-right: 1px solid var(--border); padding: 14px 10px; }
.side-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; color: #4b5563; font: inherit; font-size: 13px; cursor: pointer; margin-bottom: 2px; }
.side-item:hover { background: var(--surface-2); }
.side-item.active { background: var(--primary-weak); color: #1d4ed8; font-weight: 600; }
.main { flex: 1; min-width: 0; padding: 20px 24px 48px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title h2 { font-size: 18px; }
.page-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { font-size: 14px; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat-num { font-size: 22px; font-weight: 600; line-height: 1.3; }
.stat-label { color: var(--muted); font-size: 12px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); color: #4b5563; padding: 6px 13px; border-radius: 999px; font: inherit; font-size: 12px; cursor: pointer; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 180px; }
.list-title { font-size: 13px; font-weight: 500; }
.list-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.code-mask { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; color: #1e40af; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 13px; }
.kv .k { color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-value { font-size: 18px; font-weight: 600; line-height: 1.4; }
.metric-value small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.record-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.record-head strong { font-size: 13px; }
.day-label { margin: 20px 0 10px; font-size: 13px; font-weight: 600; color: #374151; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.note-box { margin-top: 10px; font-size: 13px; color: #4b5563; background: var(--surface-2); padding: 8px 10px; border-radius: 6px; white-space: pre-wrap; }
.scope-box { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; max-height: 150px; overflow-y: auto; display: grid; gap: 6px; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; word-break: break-all; white-space: pre-wrap; }

/* ---------- 车商端 · 时间筛选 / KPI / 柱状图 / 罗盘 ---------- */
.filter-card { padding: 12px 16px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-row:last-of-type { margin-bottom: 0; }
.filter-label { color: var(--muted); font-size: 12px; flex: 0 0 62px; }
.filter-tilde { color: var(--muted); }
.filter-row input[type=date] { width: auto; min-width: 140px; font-size: 13px; }
.seg { display: inline-flex; background: #f3f4f6; padding: 3px; border-radius: 9px; gap: 2px; }
.seg-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }
.period-nav { display: flex; gap: 6px; margin-left: auto; }
.filter-accounts { margin: 0; }
.filter-summary { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); line-height: 1.9; }
.filter-summary strong { color: var(--primary); margin-right: 8px; }
.filter-summary b { color: var(--text); font-weight: 500; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.kpi-q, .compass-q { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; border: 1px solid currentColor; font-size: 9px; line-height: 1; opacity: .6; cursor: help; }
.kpi-line { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 6px; flex-wrap: wrap; }
.kpi-num { font-size: 27px; font-weight: 650; line-height: 1.15; letter-spacing: -.5px; word-break: break-all; }
.kpi-unit { font-size: 12px; color: var(--muted); }
.kpi-sub { margin-left: auto; align-self: flex-end; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.35; white-space: nowrap; }
.kpi-sub em { font-style: normal; font-size: 11px; color: var(--muted); }
.kpi-sub b { font-size: 14px; font-weight: 600; color: var(--primary); }
.kpi-delta { display: inline-block; font-size: 11px; color: var(--muted); }
.kpi-delta.up { color: #15803d; }
.kpi-delta.down { color: #dc2626; }
.kpi-delta.flat { color: #9ca3af; }

.section-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 12px; font-size: 14px; font-weight: 600; }
.section-title span { font-size: 12px; font-weight: 400; color: var(--muted); }

.chart-subtitle { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.dot.cur { background: var(--primary); }
.dot.prev { background: rgba(37, 99, 235, .25); }
.dot.ref { background: #f59e0b; height: 3px; border-radius: 0; }
.chart-stats { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.chart-stat b { color: var(--text); }
.chart-stats .kpi-delta { align-self: center; }
.chart-scroll { overflow-x: auto; padding-bottom: 4px; }
.chart-inner { width: 100%; }
.chart-area {
  position: relative; height: 180px; border-bottom: 1px solid var(--border);
  background-image: repeating-linear-gradient(to top, rgba(148,163,184,.18) 0 1px, transparent 1px 25%);
  background-size: 100% 100%;
}
.chart-ymax { position: absolute; top: 2px; right: 2px; font-size: 10px; color: #9ca3af; background: rgba(255,255,255,.8); padding: 0 3px; }
.chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.bar-slot { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 2px; }
.bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; height: 100%; }
.bar { display: block; width: 45%; max-width: 11px; border-radius: 3px 3px 0 0; transition: height .2s; }
.bar-cur { background: var(--primary); }
.bar-prev { background: rgba(37, 99, 235, .25); }
.chart-ref { position: absolute; left: 0; right: 0; border-top: 1px dashed #f59e0b; pointer-events: none; }
.chart-ref span { position: absolute; right: 0; top: -17px; font-size: 10px; color: #b45309; background: #fffbeb; padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.chart-axis { display: flex; padding-top: 6px; }
.chart-axis .bar-slot { height: auto; align-items: flex-start; }
.bar-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.chart-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.compass {
  border-radius: 12px; overflow: hidden; margin-bottom: 16px; color: #fff;
  background: radial-gradient(130% 90% at 18% 0%, #5480ff 0%, #2f5cf3 42%, #1e3fd4 100%);
  box-shadow: 0 6px 20px rgba(30, 63, 212, .18);
}
.compass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; cursor: pointer; list-style: none; }
.compass-head::-webkit-details-marker { display: none; }
.compass-head-text { display: flex; flex-direction: column; gap: 3px; }
.compass-head-text strong { font-size: 15px; letter-spacing: .3px; }
.compass-head-text span { font-size: 11px; color: rgba(255,255,255,.72); }
.compass-fold { font-size: 0; color: rgba(255,255,255,.85); white-space: nowrap; }
.compass-fold::after { content: '展开 ∨'; font-size: 12px; }
.compass[open] .compass-fold::after { content: '收起 ∧'; }
.compass-body { padding: 8px 20px 18px; }
.compass-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 0 22px; }
.compass-hero-item { text-align: center; padding: 12px 6px 14px; }
.compass-hero-item .compass-item-label { font-size: 12px; justify-content: center; }
.compass-hero-item .compass-item-value { font-size: 28px; margin: 8px 0 6px; }
.compass-hero-item .compass-item-value small { font-size: 13px; }
.compass-group { padding: 14px 0 8px; border-top: 1px solid rgba(255,255,255,.16); }
.compass-group-title { font-size: 12px; color: rgba(255,255,255,.92); margin-bottom: 10px; letter-spacing: 1px; }
.compass-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.compass-item { text-align: center; min-width: 0; }
.compass-item-label { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compass-item-value { font-size: 22px; font-weight: 600; line-height: 1.5; margin: 3px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compass-item-value small { font-size: 11px; font-weight: 400; margin-left: 2px; opacity: .8; }
.compass-item-sub { display: inline-block; font-size: 10px; color: #fff; background: rgba(255,255,255,.22); border-radius: 4px; padding: 1px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compass-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); font-size: 11px; color: rgba(255,255,255,.68); }

/* 管理端 / 老师端「客户数据」浏览页：复用 card / form-grid / stat-grid / table / chart / compass，只补排版。 */
.data-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.data-actions .hint { margin-left: auto; }
.data-stat .card-body { padding: 14px 16px; }
.data-stat .stat-num { margin: 4px 0 2px; }
.data-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 24px; }
.data-jump { align-items: center; justify-content: flex-end; }
/* v0.7.1：日期相关控件（快捷按钮 + 起止日期）全部收在筛选卡第一行，复用车商端的 .filter-row / .seg。 */
.data-date-row { flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; }
.data-date-row .seg { flex: 0 0 auto; }
.data-date-row .seg-btn { padding: 6px 11px; white-space: nowrap; }
.data-date-row input[type=date] { flex: 0 0 auto; min-width: 138px; }
.filter-card .filter-summary { margin-top: 10px; padding-top: 8px; }

@media (max-width: 900px) {
  .data-date-row { flex-wrap: wrap; }
  .data-actions .hint { margin-left: 0; width: 100%; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex: none; border-right: 0; border-bottom: 1px solid var(--border); display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; }
  .side-item { width: auto; white-space: nowrap; margin: 0; }
  .main { padding: 16px 14px 40px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compass-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-nav { margin-left: 0; }
}
@media (max-width: 560px) {
  .filter-label { flex-basis: 100%; }
  .filter-row input[type=date] { flex: 1; min-width: 120px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-num { font-size: 24px; }
  .compass-body { padding: 8px 12px 16px; }
  .compass-head { padding: 14px 12px 8px; }
  .compass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .compass-item-value { font-size: 19px; }
  .seg-btn { padding: 6px 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .topbar-right .who { display: none; }
  .topbar-brand.viewer-brand { max-width: 52%; font-size: 13px; }
  .page-head { flex-direction: column; }
  .page-actions { width: 100%; }
  .card-body { padding: 12px; }
  .entry-card { padding: 20px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px; }
  table { min-width: 520px; }
}
