.fb{--fb-primary:#3d5ee1;--fb-line:#e9edf4;--fb-muted:#6a7287;color:#202c4b;font-family:Tahoma,Arial,sans-serif;line-height:1.7}
.fb *{box-sizing:border-box}
.fb a{color:var(--fb-primary)}
.fb-shell{margin:0;background:#f2f5ff;min-height:100vh}
.fb-header{background:var(--fb-primary);color:white;padding:24px max(20px,calc((100% - 760px)/2));}
.fb-header h1{font-size:27px;margin:18px 0 4px;color:white}
.fb-header p{color:#edf1ff;margin:0}
.fb-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.fb-header a{color:white;text-decoration:none}
.fb-main{max-width:800px;margin:24px auto;padding:0 18px 40px}
.fb-card{background:white;border:1px solid var(--fb-line);border-radius:17px;padding:22px;margin-bottom:18px;min-inline-size:0}
.fb h2{font-size:20px;margin:0 0 16px}
.fb label,.fb legend{font-size:15px;font-weight:600;margin-bottom:8px;display:block}
.fb input:not([type=radio]):not([type=checkbox]),.fb select,.fb textarea{font:inherit;color:inherit;background:#fafbfe;border:1px solid #d8dfeb;border-radius:11px;padding:11px 13px;width:100%;max-width:100%}
.fb textarea{min-height:190px;resize:vertical}
.fb input:focus,.fb select:focus,.fb textarea:focus{outline:2px solid #3d5ee1;outline-offset:2px}
.fb .fb-choice input:focus-visible+span{outline:3px solid #3d5ee1;outline-offset:2px}
.fb-help{font-size:13px;color:var(--fb-muted);margin:9px 0}
.fb-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.fb-types{grid-template-columns:repeat(2,minmax(0,1fr))}
.fb-choice{position:relative;margin:0!important;cursor:pointer}
.fb-choice input{position:absolute;opacity:0;width:1px;height:1px}
.fb-choice span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:46px;padding:8px;border:1px solid #d8dfeb;border-radius:11px;background:white;font-weight:400}
.fb-choice input:checked+span{border:2px solid var(--fb-primary);padding:7px;background:#eef1fc;font-weight:600;color:var(--fb-primary)}
.fb-btn{font:inherit;display:inline-block;text-decoration:none!important;border:0;border-radius:11px;background:var(--fb-primary);color:white!important;padding:12px 20px;cursor:pointer;text-align:center}
.fb-btn:disabled{opacity:.6;cursor:wait}
.fb-btn-wide{width:100%;font-weight:bold}
.fb-btn-light{background:#eef1fc;color:var(--fb-primary)!important}
.fb-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.fb-errors{color:#8c2929;background:#fff0ee;border:1px solid #dfb4ac;padding:16px;border-radius:12px;margin-bottom:18px}
.fb-errors ul{margin:0;padding-inline-start:22px}
.fb-radio{display:flex!important;gap:12px;align-items:center;font-weight:400!important;padding:8px 0}
.fb-radio input{accent-color:var(--fb-primary);width:19px;height:19px}
.fb-badge{display:inline-block;border-radius:20px;padding:3px 11px;font-size:13px;background:#eef1fc;color:var(--fb-primary);white-space:nowrap}
.fb-badge-new{background:#edf2fb;color:#33547e}
.fb-badge-processing{background:#fff3e3;color:#805222}
.fb-badge-replied{background:#e6eff7;color:#365970}
.fb-muted{color:var(--fb-muted)}
.fb-ref{font-size:28px;font-weight:700;letter-spacing:1px;overflow-wrap:anywhere}
.fb-success{text-align:center;padding-top:35px}
.fb-success-icon{border-radius:50%;background:#eef1fc;width:82px;height:82px;display:grid;place-items:center;margin:0 auto 18px;font-size:40px;color:var(--fb-primary)}
.fb-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.fb-meta dt{color:var(--fb-muted)}
.fb-meta dd{margin:0;text-align:end;overflow-wrap:anywhere}
.fb-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fc;border-radius:11px;padding:16px}
.fb-field{margin:16px 0}
.fb-table-wrap{overflow-x:auto}
.fb table{width:100%;border-collapse:collapse;font-size:14px}
.fb th,.fb td{padding:14px;text-align:start;border-bottom:1px solid #e9edf4;vertical-align:top}
.fb th{color:var(--fb-muted);background:#f8f9fc;font-weight:400}
.fb-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.fb-counts .fb-card{margin:0}
.fb-counts strong{font-size:30px;display:block}
.fb-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fb-history{border-inline-start:2px solid #d1daf9;padding-inline-start:18px;margin:18px 0}
.fb-history p{margin:4px 0}
.fb-honeypot{position:absolute;inset-inline-start:0;inset-block-start:0;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.fb-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.fb [hidden]{display:none!important}
.fb-pagination{margin:18px 0}
.fb-pagination svg{width:20px;height:20px}
.fb small{font-size:12px}
@media(max-width:600px){.fb-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.fb-card{padding:18px}
.fb-counts,.fb-grid{grid-template-columns:1fr 1fr}
.fb-filters{grid-template-columns:1fr 1fr}
.fb-header h1{font-size:24px}
.fb-grid{display:block}
.fb-ref{font-size:24px}
}
@media print{.fb-header,.fb-no-print{display:none!important}
.fb-main{max-width:none;margin:0;padding:0}
.fb-shell{background:white}
.fb-card{break-inside:avoid}
.fb th,.fb td{padding:7px}
.fb table{font-size:11px}
}
.fb-brand{display:flex;align-items:center;gap:14px;font-weight:700;min-width:0}
.fb-brand-logo{display:grid;place-items:center;flex-shrink:0;width:76px;height:76px;background:#fff;border:1px solid #e9edf4;border-radius:14px;padding:6px}
.fb-brand-logo img{display:block;width:100%;height:100%;object-fit:contain}
.fb-btn:hover{background:#3354ce}.fb-btn-light:hover{background:#dfe5fb}
@media(max-width:600px){.fb-brand-logo{width:64px;height:64px}.fb-nav>.fb-actions{width:100%}}

.fb-dashboard{font-family:inherit}.fb-dashboard .fb-card{border-radius:12px}.fb-dashboard .fb-success{padding-top:12px}
