/* Sign-up & Fraud Guard cabinet (gd-*). Tokens only. */
.gd-grid { align-items: start; }
.gd-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gd-kpi-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gd-bump { animation: gd-bump 0.5s ease; }

.gd-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--good-text); }
.gd-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: gd-pulse 1.6s ease-in-out infinite; }
.gd-live.is-paused { color: var(--muted); }
.gd-live.is-paused i { background: var(--muted); animation: none; }

.gd-scroll { max-height: 640px; overflow-y: auto; }
.gd-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.gd-row { cursor: pointer; transition: background 0.3s; }
.gd-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gd-row td { vertical-align: top; }
.gd-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-who { min-width: 0; }
.gd-email { font-weight: 600; overflow-wrap: anywhere; }
.gd-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; overflow-wrap: anywhere; }
.gd-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.95em; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gd-chip { font-size: 11.5px; line-height: 1.4; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
.gd-chip-off { text-decoration: line-through; color: var(--muted); background: transparent; border-style: dashed; }
.gd-chip-none { background: transparent; color: var(--muted); border-color: transparent; padding-left: 0; }
.gd-manual { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.gd-risk { display: flex; align-items: center; gap: 8px; }
.gd-risk b { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 22px; }
.gd-risk-bar { width: 52px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; flex: none; }
.gd-risk-bar i { display: block; height: 100%; border-radius: 999px; transition: width 0.4s ease, background 0.4s; }
.gd-lvl-clean { background: var(--good); }
.gd-lvl-review { background: var(--warning); }
.gd-lvl-blocked { background: var(--critical); }

.gd-new { animation: gd-in 0.5s ease; }
.gd-new td { animation: gd-flash 1.6s ease; }
.gd-flash td { animation: gd-flash 1.4s ease; }

.gd-rules { display: flex; flex-direction: column; }
.gd-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gd-rule:first-child { padding-top: 0; }
.gd-rule-name { font-size: 14px; font-weight: 600; }
.gd-weight { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.gd-rule .dm-sub { font-size: 12.5px; }
.gd-thr { padding-top: 14px; }
.gd-thr .dm-label { display: flex; justify-content: space-between; }
.gd-range { width: 100%; accent-color: var(--accent); margin: 4px 0 6px; cursor: pointer; }

.gd-tg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.gd-pop { animation: gd-in 0.45s ease; }
.gd-tg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.gd-tg-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: none; }
.gd-tg-tag { font-size: 11px; color: var(--muted); background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.gd-tg-msg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 12px 18px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.gd-tg-msg > b:first-child { display: block; margin-bottom: 2px; }
.gd-tg-time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--muted); }
.gd-tg-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.gd-tg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.gd-tg-btns button { border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 600; padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.gd-tg-btns button:hover:not([disabled]) { background: var(--accent-soft); }
.gd-tg-btns button[disabled] { color: var(--muted); cursor: not-allowed; }

.gd-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.gd-modal-head h3 { font-size: 19px; }
.gd-dl { margin: 0 0 14px; display: grid; gap: 0; }
.gd-dl-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.gd-dl dt { color: var(--muted); }
.gd-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.gd-linked-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.gd-linked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gd-linked li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.gd-linked li > span:first-child { overflow-wrap: anywhere; }
.gd-linked small { display: block; color: var(--muted); font-size: 12px; }
.gd-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

@keyframes gd-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes gd-flash { from { background: var(--accent-soft); } to { background: transparent; } }
@keyframes gd-bump { 40% { color: var(--accent); } }
@keyframes gd-pulse { 50% { opacity: 0.35; } }

@media (max-width: 560px) {
  .gd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gd-kpis .dm-kpi { padding: 12px 14px; }
  .gd-kpis .dm-kpi-value { font-size: 22px; }
  .gd-table .gd-time { display: none; }
  .gd-risk-bar { width: 36px; }
  .gd-table td, .gd-table th { padding-left: 6px; padding-right: 6px; }
}
