/* v1.9 · Báo lỗi (feedback190.js) */
.fb19-modal{position:fixed;inset:0;z-index:9000;background:rgba(15,23,42,.45);display:grid;place-items:center;padding:16px}
.fb19-modal.hidden{display:none}
.fb19-modal.fb19-hide{visibility:hidden}
.fb19-card{width:min(720px,100%);max-height:calc(var(--vh100,100vh) - 32px);display:flex;flex-direction:column;background:#fff;color:#0f172a;border-radius:16px;box-shadow:0 24px 80px rgba(15,23,42,.3);overflow:hidden}
.fb19-head{display:flex;align-items:center;gap:12px;padding:12px 14px 10px 18px;border-bottom:1px solid #e2e8f0}
.fb19-head h3{margin:0;font-size:17px;white-space:nowrap}
.fb19-tabs{display:flex;gap:4px;flex:1;min-width:0}
.fb19-tabs button{border:0;background:none;padding:6px 10px;border-radius:8px;font:inherit;font-size:13.5px;color:#475569;cursor:pointer}
.fb19-tabs button.active{background:#eff6ff;color:#1d4ed8;font-weight:700}
.fb19-body{padding:14px 18px 16px;overflow:auto;flex:1;min-height:0}
.fb19-form{display:flex;flex-direction:column;gap:8px}
.fb19-lbl{font-weight:700;font-size:13.5px}
.fb19-lbl small{font-weight:400;color:#64748b}
.fb19-form textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:96px;font:inherit;font-size:14px;padding:9px 11px;border:1px solid #cbd5e1;border-radius:10px}
.fb19-ctx{font-size:12.5px;color:#475569}
.fb19-imgs{display:flex;flex-wrap:wrap;gap:10px}
.fb19-img{position:relative;width:200px;max-width:calc(50% - 5px);border:1px solid #dbe4f0;border-radius:10px;overflow:hidden;background:#f8fafc}
.fb19-img img{display:block;width:100%;height:120px;object-fit:cover;object-position:top left;cursor:zoom-in}
.fb19-img-act{display:flex;justify-content:space-between;gap:6px;padding:5px}
.fb19-img-act .small,.fb19-imgbar .small{padding:3px 9px;font-size:12px}
.fb19-wait{height:156px;display:grid;place-items:center;font-size:12.5px;color:#64748b}
.fb19-wait span::before{content:'';display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-2px;border:2px solid #93c5fd;border-top-color:#2563eb;border-radius:50%;animation:fb19spin .8s linear infinite}
@keyframes fb19spin{to{transform:rotate(360deg)}}
.fb19-none{font-size:12.5px;color:#94a3b8;padding:6px 0}
.fb19-imgbar{display:flex;gap:8px;flex-wrap:wrap}
.fb19-target{font-size:12.5px;color:#475569;margin-top:2px}
.fb19-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
/* cover editor */
.fb19-ed{position:fixed;inset:0;z-index:9001;background:rgba(15,23,42,.7);display:grid;place-items:center;padding:12px}
.fb19-ed.hidden,.fb19-zoom.hidden{display:none}
.fb19-ed-card{background:#fff;color:#0f172a;border-radius:14px;max-width:min(1100px,100%);max-height:calc(var(--vh100,100vh) - 24px);display:flex;flex-direction:column;overflow:hidden}
.fb19-ed-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding:10px 14px}
.fb19-ed-head small{color:#64748b}
.fb19-ed-stage{overflow:auto;min-height:0;flex:1;background:#0f172a;display:grid;place-items:center}
.fb19-ed-stage canvas{display:block;max-width:100%;max-height:calc(var(--vh100,100vh) - 140px);cursor:crosshair;touch-action:none}
.fb19-ed-foot{display:flex;align-items:center;gap:8px;padding:10px 14px}
.fb19-ed-foot span{flex:1}
.fb19-zoom{position:fixed;inset:0;z-index:9002;background:rgba(15,23,42,.85);display:grid;place-items:center;padding:16px;cursor:zoom-out}
.fb19-zoom img{max-width:100%;max-height:calc(var(--vh100,100vh) - 32px);border-radius:8px;background:#fff}
.fb19-zoom .icon-btn{position:absolute;top:12px;right:12px}
/* list */
.fb19-settings{display:flex;flex-direction:column;gap:5px;padding:10px 12px;margin-bottom:12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc;font-size:13px}
.fb19-settings label{font-weight:700}
.fb19-setrow{display:flex;gap:8px}
.fb19-setrow select{flex:1;min-width:0}
.fb19-warn{color:#b45309}
.fb19-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.fb19-chip{border:1px solid #dbe4f0;background:#fff;border-radius:999px;padding:4px 11px;font:inherit;font-size:12.5px;cursor:pointer;color:#334155}
.fb19-chip.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.fb19-chip em{font-style:normal;opacity:.75;margin-left:2px}
.fb19-list{display:flex;flex-direction:column;gap:10px}
.fb19-item{border:1px solid #e2e8f0;border-left:4px solid #f59e0b;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.fb19-item.st-in_progress{border-left-color:#2563eb}.fb19-item.st-done{border-left-color:#16a34a}.fb19-item.st-wontfix{border-left-color:#94a3b8}
.fb19-item.fb19-flash{animation:fb19flash 1.6s ease-out}
@keyframes fb19flash{0%{background:#fef9c3}100%{background:transparent}}
.fb19-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fb19-st{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#92400e}
.fb19-st.st-in_progress{background:#dbeafe;color:#1e40af}.fb19-st.st-done{background:#dcfce7;color:#166534}.fb19-st.st-wontfix{background:#f1f5f9;color:#475569}
.fb19-meta{font-size:12px;color:#64748b}
.fb19-text{white-space:pre-wrap;word-break:break-word;font-size:13.5px}
.fb19-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.fb19-thumbs img{width:120px;height:80px;object-fit:cover;object-position:top left;border:1px solid #dbe4f0;border-radius:8px;background:#f1f5f9;cursor:zoom-in}
.fb19-admin{display:flex;gap:6px;flex-wrap:wrap}
.fb19-admin input{flex:1;min-width:160px}
.fb19-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fb19-zalo{font-size:12px;color:#64748b}.fb19-zalo.ok{color:#15803d}.fb19-zalo.bad{color:#b91c1c}
.fb19-note{font-size:13px;background:#eff6ff;border-radius:8px;padding:6px 9px}
@media (max-width:640px){
  .fb19-modal{padding:0;place-items:stretch}
  .fb19-card{width:100%;max-height:none;height:var(--vh100,100vh);border-radius:0}
  .fb19-head{flex-wrap:wrap;padding:10px 12px}
  .fb19-tabs{order:3;flex-basis:100%}
  .fb19-head .icon-btn{margin-left:auto}
  .fb19-body{padding:12px}
  .fb19-img{width:calc(50% - 5px)}
}
html[data-zsc-scheme="dark"] .fb19-card,html[data-zsc-scheme="dark"] .fb19-ed-card{background:#0f172a;color:#e2e8f0}
html[data-zsc-scheme="dark"] .fb19-head{border-color:#1e293b}
html[data-zsc-scheme="dark"] .fb19-tabs button{color:#94a3b8}
html[data-zsc-scheme="dark"] .fb19-tabs button.active{background:#1e3a8a;color:#dbeafe}
html[data-zsc-scheme="dark"] .fb19-form textarea{background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-zsc-scheme="dark"] :is(.fb19-img,.fb19-settings,.fb19-chip){background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-zsc-scheme="dark"] .fb19-chip.active{background:#2563eb;border-color:#2563eb;color:#fff}
html[data-zsc-scheme="dark"] .fb19-item{border-color:#334155}
html[data-zsc-scheme="dark"] :is(.fb19-ctx,.fb19-target,.fb19-meta,.fb19-lbl small,.fb19-ed-head small){color:#94a3b8}
html[data-zsc-scheme="dark"] .fb19-note{background:#1e3a8a;color:#dbeafe}
html[data-zsc-scheme="dark"] .fb19-warn{color:#fbbf24}
/* the "new user" invite / mascot bubble must not cover the dialog */
body.mf18-feedback-open #pt18Invite{display:none!important}
.fb19-admin select,.fb19-admin input,.fb19-setrow select{height:34px;min-height:0;padding:4px 9px;font-size:13px;border-radius:8px;box-sizing:border-box}
.fb19-admin select{width:auto;flex:none}
.fb19-admin .small,.fb19-setrow .small,.fb19-line .small{height:34px;padding:0 12px;font-size:12.5px}
.fb19-line .small{height:30px}
/* tools in the picture editor: ring / box around the problem, black cover */
.fb19-tools{display:flex;gap:6px;flex-wrap:wrap}
.fb19-tool{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:4px 11px;font:inherit;font-size:12.5px;cursor:pointer;color:#334155}
.fb19-tool.active{background:#fee2e2;border-color:#ef4444;color:#b91c1c;font-weight:700}
.fb19-tool[data-tool="cover"].active{background:#0f172a;border-color:#0f172a;color:#fff}
.fb19-ed-head{align-items:center}
html[data-zsc-scheme="dark"] .fb19-tool{background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-zsc-scheme="dark"] .fb19-tool.active{background:#7f1d1d;border-color:#ef4444;color:#fee2e2}
