/* BSC METAL Ajustador de Etiquetas v1.8.2 — CSS BEM */
:root{
  --yellow:#ffc400;--black:#111;--ink:#151515;--muted:#65707c;--bg:#eef1f4;
  --line:#d7dde3;--soft:#f7f8f9;--green:#16794a;--red:#b42318;--orange:#9a6700;
  --shadow:0 14px 38px rgba(15,23,42,.08)
}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
button,input,textarea,select{font:inherit}
.app-header{background:linear-gradient(115deg,#101010 0%,#181818 64%,#222 100%);color:#fff;border-bottom:4px solid var(--yellow)}
.app-header__inner{width:min(1180px,calc(100% - 40px));min-height:118px;margin:auto;padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:22px}
.app-header__brand{display:flex;align-items:center;gap:16px;min-width:0}.app-header__logo-frame{width:112px;height:62px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:7px 10px;box-shadow:0 7px 20px rgba(0,0,0,.2);flex:0 0 auto}.app-header__logo{max-width:100%;max-height:100%;object-fit:contain}
.app-header__brand h1{font-size:clamp(23px,2.7vw,33px);line-height:1.05;margin:0;font-weight:850;letter-spacing:-.35px}.app-header__brand p{margin:7px 0 0;color:#d7d7d7;font-size:14px}
.app-header__badge{color:var(--yellow);border:1px solid #505050;background:rgba(0,0,0,.24);padding:9px 13px;border-radius:11px;font-weight:800;font-size:13px;white-space:nowrap}
.app-main{width:min(1180px,calc(100% - 40px));margin:28px auto 34px}
.adjuster{background:#fff;border:1px solid #e0e5e9;border-radius:20px;box-shadow:var(--shadow);padding:26px}
.adjuster__tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}
.adjuster__tab{border:1px solid #cfd6dc;background:#fff;border-radius:11px;padding:14px 16px;font-weight:850;color:#38424c;cursor:pointer;font-size:16px;box-shadow:0 2px 5px rgba(15,23,42,.04);transition:.15s}.adjuster__tab:hover{border-color:#aeb7c0;background:#f8f9fa}.adjuster__tab.is-active{background:#111;color:#fff;border-color:#111;box-shadow:0 3px 9px rgba(0,0,0,.18)}
.adjuster__tab.is-active .adjuster__tab-accent{color:inherit}
.adjuster__panel{display:none}.adjuster__panel.is-active{display:block}
.adjuster__intro{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.adjuster__intro h2{font-size:22px;margin:0 0 7px}.adjuster__intro p{margin:0;color:var(--muted);line-height:1.45;max-width:780px}.adjuster__pill{border:1px solid #d8dde2;background:#f7f8f9;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;white-space:nowrap}
.upload-zone{display:flex;width:100%;min-height:142px;border:2px dashed #9ca8b5;border-radius:15px;padding:28px 22px;text-align:center;background:#fbfbfc;cursor:pointer;transition:.15s;flex-direction:column;align-items:center;justify-content:center;gap:6px;clear:both;position:relative;overflow:hidden}.upload-zone.is-dragging{border-color:var(--yellow);background:#fffaf0}.upload-zone strong{display:block;font-size:18px;line-height:1.25}.upload-zone span{display:block;color:var(--muted);font-size:13px;line-height:1.4;margin:0;max-width:720px}.upload-zone input{display:none}
.upload-file{display:none;align-items:center;justify-content:space-between;gap:15px;margin-top:14px;padding:13px 14px;border:1px solid var(--line);background:#f7f8f9;border-radius:12px}.upload-file.is-visible{display:flex}.upload-file__name{font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-file__meta{font-size:12px;color:var(--muted);margin-top:3px}.upload-file__remove{border:0;background:transparent;color:#53606d;cursor:pointer;text-decoration:underline;font-weight:700}
.adjuster__grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.card__title{padding:14px 16px;background:#f5f6f7;border-bottom:1px solid var(--line);font-weight:850}.card__body{padding:16px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.metrics__item{background:#f7f8f9;border:1px solid #e2e6ea;border-radius:11px;padding:12px}.metrics__item b{display:block;font-size:19px}.metrics__item span{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.3px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-field{margin-bottom:13px}.form-field label{display:block;font-weight:800;font-size:13px;margin-bottom:6px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #cbd3da;border-radius:10px;background:#fff;padding:11px 12px;color:#111;outline:none}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#dda900;box-shadow:0 0 0 3px rgba(255,196,0,.17)}.form-field textarea{min-height:125px;resize:vertical;font-family:Consolas,monospace;font-size:12px;line-height:1.45}
.notice{border-radius:10px;padding:11px 13px;font-size:13px;line-height:1.4;margin-top:12px}.notice.notice--info{background:#fff8df;border:1px solid #ecd38a}.notice.notice--ok{background:#eef9f2;border:1px solid #b8dfc6;color:#0f653d}.notice.notice--error{background:#fff0ef;border:1px solid #f1c0bc;color:#9b1c14}.notice.notice--warning{background:#fff8e8;border:1px solid #efd39a;color:#785200}
.action-group{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.button{border:0;border-radius:10px;padding:12px 16px;font-weight:850;cursor:pointer}.button.button--primary{background:var(--yellow);color:#111}.button.button--dark{background:#111;color:#fff}.button.button--ghost{background:#f1f3f5;color:#20252a;border:1px solid #d3d9df}.button:disabled{opacity:.45;cursor:not-allowed}
.advanced-settings{border:1px solid var(--line);border-radius:11px;background:#fafafa;margin-top:13px}.advanced-settings__summary{cursor:pointer;padding:12px 14px;font-weight:800}.advanced-settings__body{padding:2px 14px 14px}
.data-table__wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{border-bottom:1px solid #e3e6e9;padding:9px 10px;text-align:left;vertical-align:top;font-size:12px}.data-table th{background:#f5f6f7;font-size:11px;text-transform:uppercase;color:#59636d}.data-table tr:last-child td{border-bottom:0}.data-table input,.data-table select{width:100%;border:1px solid #ccd3d9;border-radius:7px;padding:7px 8px;background:#fff}.data-table input[readonly]{background:#f4f6f8;color:#4f5965;border-color:#dce1e6;cursor:default}.status--good{color:var(--green);font-weight:800}.status--bad{color:var(--red);font-weight:800}.status--warn{color:var(--orange);font-weight:800}
.code-output{min-height:180px;font-family:Consolas,monospace;font-size:11px;line-height:1.4;white-space:pre-wrap;word-break:break-all;background:#111;color:#e8e8e8;border-radius:10px;padding:13px;overflow:auto;max-height:330px}
.report-output{font-family:Consolas,monospace;font-size:12px;white-space:pre-wrap;line-height:1.55;background:#f8f9fa;border:1px solid var(--line);border-radius:10px;padding:13px}
.app-footer{background:#070707;color:#d9dde1;border-top:1px solid #2a2a2a}.app-footer__inner{width:min(1110px,calc(100% - 40px));min-height:80px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:28px;font-size:13px}.app-footer__credit{margin-left:auto;white-space:nowrap}.app-footer__link{color:#ff2b93;text-decoration:none;font-weight:850}.app-footer__link:hover{text-decoration:underline}
.is-hidden{display:none!important}
@media(max-width:860px){.app-header__inner,.app-main{width:calc(100% - 28px)}.adjuster__grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.adjuster__intro{flex-direction:column}.app-footer__inner{width:calc(100% - 28px)}}
@media(max-width:600px){
  html,body{max-width:100%;overflow-x:hidden}
  .upload-zone{min-height:126px;padding:24px 14px}
  .app-header__inner{width:calc(100% - 24px);min-height:auto;padding:12px 0;align-items:center;flex-direction:row;gap:0;overflow:hidden}
  .app-header__brand{width:100%;gap:9px;align-items:center;min-width:0}
  .app-header__logo-frame{width:80px;height:50px;border-radius:9px;padding:6px 8px;flex:0 0 80px}
  .app-header__brand>div:last-child{min-width:0;flex:1;overflow:hidden}
  .app-header__brand h1{font-size:clamp(11.5px,3.45vw,13px);line-height:1.08;letter-spacing:-.18px;white-space:nowrap;margin:0;max-width:100%;overflow:hidden;text-overflow:clip}
  .app-header__brand p{font-size:9.5px;line-height:1.18;margin:4px 0 0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .app-header__badge{display:none}
  .adjuster{padding:15px;min-width:0}
  .adjuster__tabs{grid-template-columns:1fr 1fr;gap:8px}
  .adjuster__tab{padding:12px 8px;font-size:13px;line-height:1.15;min-width:0}
  .adjuster__intro{min-width:0}
  .adjuster__intro h2{font-size:19px;line-height:1.15}
  .adjuster__pill{max-width:100%;white-space:normal}
  .form-row{grid-template-columns:1fr}
  .metrics{grid-template-columns:1fr 1fr}
  .card,.card__body,.advanced-settings{min-width:0}
  .advanced-settings__summary{width:100%}
  .action-group{display:grid;grid-template-columns:1fr;width:100%}
  .action-group .button{width:100%;min-width:0}
  .form-field input,.form-field select,.form-field textarea{min-width:0;max-width:100%}
  .app-footer__inner{min-height:auto;padding:16px 0;flex-direction:column;text-align:center;gap:6px}
  .app-footer__credit{margin-left:0;white-space:normal}
}


/* Ajustes estruturais BEM */
.card--spaced{margin-top:18px}
.form-row--spaced{margin-top:13px}
.form-field--spaced{margin-top:10px}
.checkbox-field{display:flex;gap:9px;align-items:flex-start;font-size:13px}
.checkbox-field--spaced{margin:8px 0 12px}
.checkbox-field__input{margin-top:2px}
.compare__label{font-weight:800;font-size:13px;margin-bottom:7px}
.app-footer__copyright{white-space:nowrap}
.form-field select{text-align:left;text-align-last:left;padding-right:38px}
.form-field select option{text-align:left;padding:7px 10px}
