/* ============================================================
   AFP-web5-admin - shared admin stylesheet (WordPress-flavoured)
   ============================================================ */
:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --sidebar: #1d2327;
  --sidebar-hover: #2c3338;
  --accent: #ff6a00;
  --accent-dark: #e04f00;
  --danger: #d63638;
  --warn: #996800;
  --ok: #00a32a;
  --text: #1d2327;
  --muted: #646970;
  --border: #c3c4c7;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
}

/* ---------- layout ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; background: var(--sidebar); color: #c3c4c7;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0;
}
.sidebar .brand {
  padding: 12px 14px; font-size: 15px; font-weight: 700; color: #fff;
  border-bottom: 1px solid #2c3338; white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
}
.sidebar .brand-logo {
  width: 40px; height: auto; flex-shrink: 0;
  background: #ffffff; border-radius: 8px; padding: 4px 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.sidebar .brand-text {
  color: #fff; overflow: hidden; text-overflow: ellipsis;
  font-weight: 800; letter-spacing: .02em;
}
.sidebar .role-badge {
  margin: 10px 16px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9ec2e6;
}
.sidebar nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar nav a {
  display: block; padding: 10px 16px; color: #c3c4c7; text-decoration: none;
  border-left: 3px solid transparent; font-size: 13.5px;
}
.sidebar nav a:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar nav a.active { background: var(--sidebar-hover); color: #fff; border-left-color: var(--accent); }
.sidebar nav a [data-badge] {
  float: right; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px;
  margin-top: -1px; text-align: center; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--danger); border-radius: 10px;
}
.sidebar .user-foot {
  padding: 14px 16px; border-top: 1px solid #2c3338; font-size: 12.5px;
}
.sidebar .user-foot .u { color: #fff; margin-bottom: 6px; }
.sidebar .logout-btn {
  background: transparent; border: 1px solid #50575e; color: #c3c4c7; cursor: pointer;
  padding: 5px 10px; border-radius: 3px; font-size: 12px;
}
.sidebar .logout-btn:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.content { flex: 1; padding: 24px 28px; min-width: 0; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 23px; margin: 0 0 4px; font-weight: 600; }
.page-head .sub { color: var(--muted); font-size: 13px; }

/* ---------- cards & stats ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 20px;
}
.card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat .value.ok { color: var(--ok); } .stat .value.warn { color: var(--warn); } .stat .value.danger { color: var(--danger); }
.stat.stat-click { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.stat.stat-click:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17,24,39,.10); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data th { background: #f6f7f7; font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.data tr:hover td { background: #f9f9f9; }
.pill {
  display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600;
}
.pill.active, .pill.approved, .pill.paid, .pill.admin { background: #edfaef; color: var(--ok); }
.pill.pending { background: #fcf9e8; color: var(--warn); }
.pill.suspended, .pill.rejected, .pill.refunded { background: #fcf0f1; color: var(--danger); }
.pill.power { background: #e6f0f9; color: var(--accent); }
.pill.super_admin { background: #ece5ff; color: #6b3fd6; }
.pill.client { background: #f0f0f1; color: var(--muted); }
.pill.hidden { background: #fcf0f1; color: var(--danger); }
.pill.expired { background: #f1f5f9; color: #475569; }
.pill.revoked { background: #fcf0f1; color: var(--danger); font-weight: 700; }
/* "Coming soon" readiness marker: white block, red lettering, outlined so it stays
   readable on the white table. */
.pill.notready { background: #ffffff; color: #e02d2d; border: 1px solid rgba(224,45,45,.35); font-weight: 700; }
.pill.processed, .pill.closed { background: #e6f0f9; color: var(--accent); }
/* A request the customer withdrew before a decision was made: no money moves, the uses it
   claimed go back to the customer's balance, and it can no longer be approved. */
.pill.withdrawn { background: #f1f5f9; color: #475569; font-weight: 700; }
.grant-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.grant-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; padding: 6px 8px; border-bottom: 1px solid #e2e5ea; }
.grant-table td { padding: 6px 8px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.grant-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag-chip {
  display: inline-block; background: #f0f0f1; color: #3c434a; border-radius: 4px;
  padding: 1px 7px; margin: 1px 2px 1px 0; font-size: 11.5px;
}

/* ---------- app icon tiles ---------- */
.app-icon { width:44px; height:44px; border-radius:10px; background:#eef2f7; color:var(--accent);
  display:inline-flex; align-items:center; justify-content:center; font-size:16px; font-weight:800;
  overflow:hidden; flex:none; }
.app-icon.sm { width:38px; height:38px; }
.app-icon img, .pi-cell img { width:100%; height:100%; object-fit:contain; display:block; }
.pi-cell { white-space:nowrap; }
.pi-cell .app-icon { margin-right:10px; vertical-align:middle; }

/* ---------- running cards ---------- */
.run-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.run-card { border:1px solid #e7eaef; border-radius:12px; padding:14px; background:#fff; }
.rc-head { display:flex; align-items:center; gap:12px; }
.rc-name { font-weight:700; }
.rc-expiry { margin-top:12px; padding:6px 10px; border-radius:8px; font-weight:700; font-size:13px; }
.rc-expiry.ok { background:#edfaef; color:var(--ok); }
.rc-expiry.warn { background:#fcf0f1; color:var(--danger); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 6px 14px; border-radius: 3px; cursor: pointer; font-size: 13px; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn.ghost:hover { background: #f0f6fc; }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.ok { background: #fff; color: var(--ok); border-color: var(--ok); }
.btn.ok:hover { background: var(--ok); color: #fff; }

/* Data Settings manager: allow/deny toggle + live status chips */
.ds-toggle {
  display:inline-flex; align-items:center; gap:9px; padding:7px 18px; min-width:150px;
  background:#fff; color:var(--danger); border:1.5px solid var(--danger); border-radius:8px;
  font-weight:700; font-size:13px; cursor:pointer; transition:all .15s ease;
}
.ds-toggle .dst-dot { width:11px; height:11px; border-radius:50%; background:var(--danger); box-shadow:0 0 0 3px rgba(239,68,68,.18); }
.ds-toggle:hover { background:#fef2f2; }
.ds-toggle.on { color:var(--ok); border-color:var(--ok); background:#f0fdf4; }
.ds-toggle.on .dst-dot { background:var(--ok); box-shadow:0 0 0 3px rgba(0,163,42,.18); }
.ds-live { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:11px 14px;
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:9px; }
.ds-live .dsl-title { font-weight:700; color:#334155; font-size:13px; }
.ds-chip { display:inline-flex; align-items:center; font-size:12px; font-weight:600;
  padding:4px 11px; border-radius:20px; background:#eef2f7; color:#475569; }
.ds-chip.on { background:#dcfce7; color:var(--ok); }
.ds-chip.ok { background:#dcfce7; color:#166534; }
.ds-chip.off { background:#fee2e2; color:var(--danger); }
.ds-chip.muted { background:#f1f5f9; color:#64748b; }
/* storage cell next to Upload in admin users list */
.stg { min-width:112px; }
.stg b { font-size:12px; color:#1a202c; font-variant-numeric:tabular-nums; }
.stg-bar { height:4px; width:100%; background:#eef2f7; border-radius:3px; margin-top:5px; overflow:hidden; }
.stg-bar i { display:block; height:100%; background:linear-gradient(90deg,#10b981,#06b6d4); border-radius:3px; }
.stg-bar.hot i { background:linear-gradient(90deg,#f59e0b,#ef4444); }
.stg .muted { color:#94a3b8; }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { margin-top: 6px; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 8px 10px; border: 1px solid #8c8f94; border-radius: var(--radius);
  font-size: 13.5px; font-family: inherit; background: #fff;
}
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
textarea.input { min-height: 90px; resize: vertical; }
input.input.mono { font-family: var(--mono); letter-spacing: .02em; }
/* Star rating picker (admin sets it, both sites read apps.score) */
.star-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.star { position: relative; font-size: 19px; line-height: 1; color: #d7d9dc; }
.star.full { color: var(--accent); }
.star.half::after { content: '\2605'; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--accent); }
.star .sh { position: absolute; top: 0; width: 50%; height: 100%; border: 0; background: none; padding: 0; cursor: pointer; }
.star .sh.left { left: 0; }
.star .sh.right { left: 50%; }
.star .sh:hover { background: rgba(255, 106, 0, .14); }
.star .sh:focus-visible { outline: 1px solid var(--accent); }
/* Password reveal (eye icon) on the login form */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .input { padding-right: 34px; }
.pw-eye {
  position: absolute; right: 8px; width: 22px; height: 22px; padding: 0;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pw-eye:hover { color: var(--accent); }
.pw-eye svg { width: 18px; height: 18px; }
.pw-eye .eye-off { display: none; }
.pw-eye[aria-pressed="true"] .eye-on { display: none; }
.pw-eye[aria-pressed="true"] .eye-off { display: block; }
.admin-captcha { display: flex; gap: 10px; align-items: center; }
.captcha-image {
  flex-shrink: 0; min-width: 112px; height: 38px; padding: 0 10px;
  background: var(--sidebar); color: #fff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; user-select: none;
}
.captcha-image span { display: inline-block; }
.captcha-image svg { width: 16px; height: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 7px; margin-right: 16px; }
.icon-preview { margin-top: 8px; }
.icon-preview img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 10px;
  border: 1px solid var(--border); background: #1d2327; display: block;
}

/* ---------- list head + filter chips ---------- */
.list-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.list-head h2 { border: none; padding: 0; margin: 0; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  background: #f0f0f1; color: #374151; border: 1px solid #8c8f94; border-radius: 14px;
  font-size: 12.5px; padding: 4px 12px; cursor: pointer; line-height: 1.4;
}
.chip:hover { background: #e5e5e6; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters .input { width: 220px; }

/* ---------- modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; width: 640px; max-width: 94vw; max-height: 92vh; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); display: flex; flex-direction: column;
}
.modal .m-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal .m-head h3 { margin: 0; font-size: 16px; }
.modal .m-body { padding: 18px 20px; overflow-y: auto; }
.modal .m-foot { padding: 12px 20px; border-top: 1px solid var(--border); text-align: right; background: #f6f7f7; border-radius: 0 0 6px 6px; }
.modal .close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }

/* ---------- feed / messages ---------- */
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { border-bottom: 1px solid var(--border); padding: 12px 4px; cursor: pointer; }
.msg-list li:hover { background: #fafafa; }
.msg-list .s { font-weight: 600; }
.msg-list .meta { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.msg-list .preview { color: var(--muted); font-size: 13px; }
.thread { white-space: pre-wrap; background: #f6f7f7; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin: 10px 0; }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #1d2327; color: #fff; padding: 11px 18px; border-radius: 4px;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 200;
  font-size: 13.5px; max-width: 84vw;
}
#toast.show { opacity: 1; }
#toast.err { background: var(--danger); }
#toast.ok { background: var(--ok); }

/* inline error shown next to the control that caused it */
.near-err {
  color: #fff; background: var(--danger);
  padding: 3px 9px; border-radius: 4px; font-size: 12px; margin-left: 8px;
  max-width: 260px; white-space: normal; line-height: 1.3; font-weight: 500;
}

/* confirmation card and the result notice, both opened at the control the admin clicked.
   A destructive action is confirmed here, and the outcome is reported in the same card, so
   the question and the answer are both next to the button that caused them. The bottom toast
   is the fallback only when the control is no longer on the page. */
.near-pop {
  position: fixed; z-index: 400; width: 340px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--danger);
  border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.18);
  padding: 13px 15px; font-size: 13px; color: var(--text);
}
.near-pop.ok { border-left-color: var(--ok); }
.near-pop .np-caret {
  position: absolute; width: 11px; height: 11px; background: var(--surface);
  border: 1px solid var(--border); transform: rotate(45deg);
}
.near-pop .np-caret.above { top: -6px; }
.near-pop .np-caret.below { bottom: -6px; }
.near-pop .np-x {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted);
}
.near-pop .np-title { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; padding-right: 20px; }
.near-pop .np-lines { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.near-pop .np-lines li { padding: 2px 0; line-height: 1.45; }
.near-pop .np-message { color: var(--muted); line-height: 1.45; }
.near-pop.ok .np-message, .near-pop.err .np-message { color: var(--text); }
.near-pop .np-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- disabled/hidden ---------- */
[hidden] { display: none !important; }
.small { font-size: 12px; color: var(--muted); }

/* ---------- login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 34px 40px; width: 400px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card .sub { color: var(--muted); margin-bottom: 22px; font-size: 13px; }
.login-error { color: var(--danger); font-size: 13px; margin: 10px 0; }

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pg-info { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pg-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn { min-width: 34px; height: 34px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all .15s; }
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--accent); color: var(--accent); background: rgba(34,113,177,.06); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(34,113,177,.25); }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-ell { align-self: center; padding: 0 4px; color: var(--muted); font-weight: 700; }
.msg-pagination, .table-pagination { margin-top: 4px; }

/* moved from admin-forum.html : CSP allows only stylesheets loaded from self */
.statgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:18px; }
  .statcard { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; box-shadow:0 1px 3px rgba(16,24,40,.05); }
  .statcard .v { font-size:24px; font-weight:750; color:var(--ink); }
  .statcard .l { font-size:12px; color:var(--muted); margin-top:2px; text-transform:uppercase; letter-spacing:.04em; }
  .rolepick { display:inline-flex; gap:4px; align-items:center; }
  .rolepick select { width:auto; padding:4px 8px; font-size:12px; border-radius:8px; border:1px solid var(--line); }

/* moved from admin-messages.html : CSP allows only stylesheets loaded from self */
.msg-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
  .msg-tab {
    padding:8px 15px; border-radius:9px; border:1px solid #e2e6ec; background:#fff; cursor:pointer;
    font-size:13px; font-weight:600; color:#3c434a; white-space:nowrap; transition:all .15s;
  }
  .msg-tab:hover { border-color:#c2c9d3; background:#fafbfc; }
  .msg-tab.active { background:#1a1a2e; color:#fff; border-color:#1a1a2e; box-shadow:0 2px 8px rgba(26,26,46,.18); }
  .msg-tab .n { display:inline-block; margin-left:6px; font-size:11px; padding:1px 7px; border-radius:10px; background:#eef0f3; color:#6b7280; }
  .msg-tab.active .n { background:rgba(255,255,255,.2); color:#fff; }
  .cat-chip { display:inline-block; padding:1px 9px; border-radius:10px; font-size:11px; font-weight:700; }
  .cat-hosting  { background:#e8f6ec; color:#1a7d3a; }
  .cat-research { background:#fff1e6; color:#c2410c; }
  .cat-general  { background:#f0f0f1; color:#3c434a; }
  .cat-system   { background:#eef2ff; color:#3730a3; }
  .tab-sep { width:1px; align-self:stretch; margin:4px 4px; background:#e2e6ec; }

/* moved from admin-services.html : CSP allows only stylesheets loaded from self */
.svc-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
  .svc-tab {
    padding:10px 18px; border-radius:10px; border:1px solid #e2e6ec; background:#fff; cursor:pointer;
    font-size:14px; font-weight:600; color:#3c434a; transition:all .15s;
  }
  .svc-tab:hover { border-color:#c2c9d3; background:#fafbfc; }
  .svc-tab.active { background:#1a1a2e; color:#fff; border-color:#1a1a2e; box-shadow:0 2px 8px rgba(26,26,46,.18); }
  .svc-tab .n { display:inline-block; margin-left:7px; font-size:11px; padding:1px 8px; border-radius:10px; background:#eef0f3; color:#6b7280; }
  .svc-tab.active .n { background:rgba(255,255,255,.2); color:#fff; }
  .req-card {
    border:1px solid #eef1f5; border-radius:12px; padding:14px 16px; margin-bottom:10px; cursor:pointer; transition:all .15s; background:#fff;
  }
  .req-card:hover { border-color:#c2c9d3; box-shadow:0 2px 10px rgba(17,24,39,.06); }
  .req-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
  .req-sub { font-size:13px; color:#3c434a; font-weight:600; }
  .req-meta { font-size:12px; color:#6b7280; }
  .fld-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1px; background:#eef1f5; border:1px solid #eef1f5; border-radius:10px; overflow:hidden; }
  .fld { background:#fff; padding:9px 12px; }
  .fld .k { font-size:11px; color:#6b7280; font-weight:700; letter-spacing:.03em; text-transform:uppercase; }
  .fld .v { font-size:13px; color:#111827; margin-top:2px; word-break:break-word; white-space:pre-wrap; }
  .pick-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 16px; }
  .pick-chip { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; border-radius:9px;
    background:#eef3fb; border:1px solid #cdddf3; color:#111827; font-size:13px; font-weight:600; }
  .pick-chip .idx { display:inline-flex; width:18px; height:18px; border-radius:50%; background:#1a1a2e; color:#fff;
    align-items:center; justify-content:center; font-size:11px; }
  .pick-chip .rm { cursor:pointer; color:#6b7280; font-size:15px; line-height:1; padding:0 2px; border:none; background:none; }
  .pick-chip .rm:hover { color:#dc2626; }
  .pick-empty { font-size:13px; color:#6b7280; }
