.dfd-catalog, .dfd-cab, .dfd-game, .dfd-admin { font-family: Tahoma, Verdana, sans-serif; font-size: 11px; color: #000; }
.dfd-catalog *, .dfd-cab *, .dfd-game *, .dfd-admin * { border-radius: 0 !important; box-sizing: border-box; }
.dfd-loading { padding: 16px; color: #555; }
.dfd-err { padding: 10px; background: #fff0f0; border: 1px solid #c33; color: #900; }
.dfd-muted { color: #5b5b48; }
.dfd-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; margin-bottom: 10px; background: #ffffe1; border: 1px solid #c9c27a; line-height: 1.45; }
.dfd-h { margin: 14px 0 6px; font-size: 12px; color: #0b3d91; border-bottom: 1px solid #c3c3b0; padding-bottom: 3px; }

.dfd-cat-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.dfd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.dfd-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: #fff; border: 1px solid #a5a597;
    color: #000 !important; text-decoration: none !important; text-align: center; position: relative; min-height: 130px; }
.dfd-card:hover { background: #e8f0ff; border-color: #316ac5; }
.dfd-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #ece9d8; border: 1px solid #c3c3b0; overflow: hidden; }
.dfd-icon img { width: 100%; height: 100%; object-fit: cover; }
.dfd-icon-sdo { background: #3c5a1e; }
.dfd-card-t { font-weight: bold; font-size: 11px; line-height: 1.25; }
.dfd-card-d { font-size: 10px; color: #5b5b48; line-height: 1.3; }
.dfd-card .dfd-badge { position: absolute; top: 4px; right: 4px; }
.dfd-foot, .dfd-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.dfd-foot .btn, .dfd-actions .btn { text-decoration: none; }

.dfd-badge { display: inline-block; padding: 1px 5px; font-size: 10px; font-weight: bold; border: 1px solid; }
.dfd-st-test { background: #ffe680; border-color: #c9a400; color: #4a3b00; }
.dfd-st-review { background: #dbe8ff; border-color: #316ac5; color: #0b3d91; }
.dfd-st-live { background: #d8f5cf; border-color: #3a8a2a; color: #1c4f13; }
.dfd-st-blocked { background: #ffd6d6; border-color: #c33; color: #900; }
.dfd-test { color: #8a6d00; font-weight: bold; }

.dfd-tabs { margin: 0 0 8px; }
.dfd-pane { min-height: 120px; }
.dfd-field { display: block; margin: 0 0 8px; }
.dfd-field > span { display: block; font-weight: bold; margin-bottom: 2px; }
.dfd-field input, .dfd-field textarea, .dfd-field select, .dfd-actions select, .dfd-pct {
    width: 100%; font: 11px Tahoma, sans-serif; padding: 3px 4px; border: 1px solid #7f9db9; background: #fff; }
.dfd-pct { width: 52px; }
.dfd-field input[readonly] { background: #f4f3ee; color: #444; }
.dfd-field small { display: block; color: #5b5b48; margin-top: 2px; line-height: 1.35; }
.dfd-actions select { width: auto; }
.dfd-row { display: flex; gap: 6px; align-items: flex-end; }
.dfd-row .dfd-field { flex: 1; margin: 0; }

.dfd-table { width: 100%; border-collapse: collapse; background: #fff; margin-top: 6px; }
.dfd-table th, .dfd-table td { border: 1px solid #c3c3b0; padding: 4px 6px; vertical-align: top; text-align: left; }
.dfd-table th { background: #ece9d8; font-weight: bold; }
.dfd-table .btn { margin: 1px; }
.dfd-r { text-align: right !important; white-space: nowrap; }
.dfd-dim td { color: #888; }
.dfd-table code, .dfd-keybox code, .dfd-secret code { font: 11px Consolas, "Courier New", monospace; word-break: break-all; }
.dfd-keybox { margin-top: 8px; padding: 8px; background: #ffffe1; border: 1px solid #c9c27a; }
.dfd-secret { display: block; padding: 4px; background: #f4f3ee; border: 1px solid #c3c3b0; }

.dfd-checks { list-style: none; margin: 0; padding: 0; }
.dfd-checks li { padding: 3px 0; }
.dfd-light { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border: 1px solid #555; vertical-align: -1px; }
.dfd-light.on { background: #3cbf2a; }
.dfd-light.off { background: #c9c9c0; }

.dfd-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-bottom: 8px; }
.dfd-sum > div { background: #fff; border: 1px solid #c3c3b0; padding: 6px 8px; }
.dfd-sum small { display: block; color: #5b5b48; }
.dfd-sum b { font-size: 14px; }
.dfd-sum .dfd-sum-main { background: #e8f0ff; border-color: #316ac5; }

.dfd-fallback-win { position: fixed; z-index: 3000; left: 50%; top: 40px; transform: translateX(-50%); width: min(760px, calc(100% - 16px));
    max-height: calc(100% - 60px); display: flex; flex-direction: column; background: #ece9d8; border: 1px solid #0831d9; }
.dfd-fb-title { display: flex; justify-content: space-between; padding: 4px 8px; color: #fff; font-weight: bold;
    background: linear-gradient(to bottom, #0058e6, #3a93ff 8%, #288eff 40%, #0054e3 88%); }
.dfd-fb-body { padding: 10px; overflow: auto; }

@media (max-width: 600px) {
    .dfd-orders th:nth-child(6), .dfd-orders td:nth-child(6) { display: none; }
    .dfd-grid { grid-template-columns: repeat(2, 1fr); }
}
