/* Bulk Rename — br- prefixed. Matches the studio panel/step aesthetic. */
.br-app .panel{padding:22px}   /* global section{padding:30px 0} would hug the card borders otherwise */

/* hero */
.br-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  background:linear-gradient(135deg,#fffbeb,#fff 60%);border:1px solid #fde68a}
.br-hero-left{flex:1;min-width:280px}
.br-hero h2{margin:0 0 4px;font-size:1.5rem;font-weight:800;color:#1f2733}
.br-hero-sub{margin:0 0 8px;font-weight:700;color:#475063}
.br-hero-sub .accent{color:#b45309}
.br-hero-note{margin:0 0 12px;color:#5b6577;font-size:.92rem;line-height:1.5;max-width:60ch}
.br-hero-badges{display:flex;flex-wrap:wrap;gap:8px}
.br-hero-badges span{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;color:#92400e;
  background:#fef3c7;border:1px solid #fde68a;border-radius:20px;padding:4px 10px}
.br-hero-art{display:flex;align-items:center;gap:10px}
.br-art-card{display:flex;flex-direction:column;align-items:center;gap:4px;width:84px;padding:12px 8px;border-radius:12px;
  background:#fff;border:1px solid #e7ecf3;box-shadow:0 4px 14px -8px rgba(20,30,60,.3)}
.br-art-card i{font-size:1.2rem;color:#b45309}
.br-art-card span{font-size:.66rem;font-weight:700;color:#64748b;font-family:ui-monospace,Menlo,monospace;word-break:break-all;text-align:center}
.br-art-card.out span{color:#0a7c4a}
.br-art-arrow{color:#d97706;font-size:1.05rem}

/* steps */
.br-steps{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.br-step-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.br-num{flex:none;width:28px;height:28px;border-radius:9px;background:#d97706;color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;font-size:.92rem}
.br-step-head h2{margin:0;font-size:1.06rem;font-weight:800;color:#1f2733}
.br-step-head p{margin:2px 0 0;color:#6b7484;font-size:.85rem}

/* file list */
.br-file-list{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.br-file{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid #eef1f6;border-radius:10px;background:#fbfcfe}
.br-file-thumb{width:30px;height:30px;border-radius:6px;object-fit:cover;background:#eef1f6;flex:none}
.br-file-ic{width:30px;height:30px;border-radius:6px;background:#fef3c7;color:#b45309;display:flex;align-items:center;justify-content:center;flex:none}
.br-file-name{flex:1;min-width:0;font-size:.86rem;font-weight:600;color:#27303f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.br-file-meta{font-size:.74rem;color:#8a93a3;font-variant-numeric:tabular-nums;white-space:nowrap}
.br-file-x{flex:none;border:0;background:#f1f3f7;color:#7b8494;width:24px;height:24px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.br-file-x:hover{background:#fee2e2;color:#dc2626}

/* rule controls */
.br-rules{display:flex;flex-direction:column;gap:16px}
.br-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:680px){.br-row2{grid-template-columns:1fr}}
.br-field{display:flex;flex-direction:column;gap:5px}
.br-field>label{font-size:.78rem;font-weight:700;color:#3a4456}
.br-field>label .br-hint{font-weight:500;color:#94a0b2}
.br-input{border:1px solid #dde3ec;border-radius:9px;padding:9px 11px;font-size:.88rem;color:#222b39;background:#fff;width:100%}
.br-input:focus{outline:none;border-color:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.14)}
.br-input.mono{font-family:ui-monospace,Menlo,monospace}
.br-num-input{width:84px}

.br-tokens{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.br-token{border:1px dashed #d8b87a;background:#fffaf0;color:#92400e;font-family:ui-monospace,Menlo,monospace;
  font-size:.74rem;font-weight:700;border-radius:7px;padding:3px 8px;cursor:pointer}
.br-token:hover{background:#fef3c7;border-style:solid}
.br-token small{font-family:inherit;opacity:.6;font-weight:600;margin-left:4px}

.br-check{display:inline-flex;align-items:center;gap:7px;font-size:.82rem;font-weight:600;color:#3a4456;cursor:pointer;user-select:none}
.br-check input{width:16px;height:16px;accent-color:#d97706;cursor:pointer}
.br-checks{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.br-regex-err{color:#dc2626;font-size:.76rem;font-weight:700;margin-top:2px}
.br-regex-err[hidden]{display:none}

/* segmented */
.br-seg{display:inline-flex;background:#f1f3f7;border:1px solid #e5e9f0;border-radius:9px;padding:3px;gap:2px;flex-wrap:wrap}
.br-seg-btn{border:0;background:transparent;color:#5b6575;font-size:.8rem;font-weight:700;padding:6px 11px;border-radius:6px;cursor:pointer;white-space:nowrap}
.br-seg-btn:hover{color:#2c3543}
.br-seg-btn.active{background:#fff;color:#b45309;box-shadow:0 1px 3px rgba(20,30,60,.16)}

/* numbering sub-fields collapse until enabled */
.br-num-fields{display:none;gap:14px;flex-wrap:wrap;align-items:flex-end;margin-top:10px;
  padding:12px;border:1px dashed #e3e8f1;border-radius:10px;background:#fbfcfe}
.br-num-fields.on{display:flex}

/* presets */
.br-presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.br-preset{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e6eaf1;border-radius:10px;
  background:#fff;padding:9px 11px;cursor:pointer;transition:border-color .14s,transform .14s,box-shadow .14s}
.br-preset:hover{border-color:#fbbf24;transform:translateY(-1px);box-shadow:0 6px 14px -8px rgba(180,120,10,.4)}
.br-preset i{flex:none;width:28px;height:28px;border-radius:8px;background:#fef3c7;color:#b45309;display:flex;align-items:center;justify-content:center;font-size:.82rem}
.br-preset span{display:flex;flex-direction:column;min-width:0}
.br-preset strong{font-size:.84rem;color:#27303f}
.br-preset small{font-size:.72rem;color:#8a93a3}

/* results / live preview */
.br-results[hidden]{display:none}
.br-results-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.br-summary{font-size:.95rem;color:#3a4456}
.br-summary strong{color:#1f2733}
.br-conflict-pill{display:inline-flex;align-items:center;gap:5px;font-size:.74rem;font-weight:700;color:#7c2d12;
  background:#ffedd5;border:1px solid #fed7aa;border-radius:20px;padding:2px 9px;margin-left:4px}
.br-results-actions{display:flex;gap:8px;flex-wrap:wrap}
.br-btn-ghost{border:1px solid #dde3ec;background:#fff;color:#475063;font-weight:700;font-size:.82rem;border-radius:9px;padding:8px 13px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.br-btn-ghost:hover{border-color:#c7cfdc;background:#f7f9fc}
.br-dlzip{border:0;background:linear-gradient(180deg,#f59e0b,#d97706);color:#fff;font-weight:800;font-size:.86rem;border-radius:9px;padding:9px 16px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;box-shadow:0 6px 16px -8px rgba(217,119,6,.7)}
.br-dlzip:hover{filter:brightness(1.04)}
.br-dlzip:disabled{opacity:.7;cursor:default}
.br-free-pill{font-size:.66rem;font-weight:800;background:rgba(255,255,255,.28);border-radius:20px;padding:1px 7px}

.br-plan-note{display:flex;gap:9px;align-items:flex-start;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 13px;margin-bottom:12px;font-size:.85rem;color:#854d0e}
.br-plan-note[hidden]{display:none}
.br-plan-note i{color:#d97706;margin-top:2px}
.br-plan-link{border:0;background:none;color:#b45309;font-weight:800;cursor:pointer;text-decoration:underline;padding:0;font:inherit}

.br-table-wrap{border:1px solid #eef1f6;border-radius:12px;overflow:hidden;max-height:560px;overflow-y:auto}
.br-table{width:100%;border-collapse:collapse;font-size:.85rem}
.br-table th{position:sticky;top:0;background:#f7f9fc;text-align:left;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#8a93a3;font-weight:800;padding:8px 12px;border-bottom:1px solid #eef1f6;z-index:1}
.br-table td{padding:7px 12px;border-bottom:1px solid #f2f4f8;vertical-align:middle}
.br-table tr:last-child td{border-bottom:0}
.br-c-file{display:flex;align-items:center;gap:8px}
.br-row-thumb{width:26px;height:26px;border-radius:5px;object-fit:cover;background:#eef1f6;flex:none}
.br-row-ic{width:26px;height:26px;border-radius:5px;background:#f1f3f7;color:#8a93a3;display:flex;align-items:center;justify-content:center;flex:none;font-size:.8rem}
.br-old{color:#8a93a3;font-family:ui-monospace,Menlo,monospace;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34ch}
.br-c-arrow{color:#cbd2de;width:24px;text-align:center}
.br-c-new{width:46%}
.br-new{color:#0a7c4a;font-weight:700;font-family:ui-monospace,Menlo,monospace;font-size:.82rem;word-break:break-all}
.br-new.br-same{color:#9aa3b2;font-weight:500}

/* dark mode */
html.dark .br-hero{background:linear-gradient(135deg,#2a2410,#1b1c20 60%);border-color:#5a4718}
html.dark .br-hero h2,html.dark .br-step-head h2,html.dark .br-summary strong{color:#f1f3f7}
html.dark .br-hero-note,html.dark .br-step-head p{color:#9aa3b2}
html.dark .br-art-card{background:#23262d;border-color:#343943}
html.dark .br-file,html.dark .br-num-fields{background:#1f2228;border-color:#333842}
html.dark .br-file-name{color:#d7dbe2}
html.dark .br-input{background:#1b1e24;border-color:#343b46;color:#e5e8ee}
html.dark .br-field>label{color:#c2c9d4}
html.dark .br-seg{background:#23262d;border-color:#343943}
html.dark .br-seg-btn{color:#9aa3b2}
html.dark .br-seg-btn.active{background:#33373f;color:#fbbf24}
html.dark .br-preset{background:#1f2228;border-color:#333842}
html.dark .br-preset strong{color:#e5e8ee}
html.dark .br-btn-ghost{background:#23262d;border-color:#343943;color:#c2c9d4}
html.dark .br-table-wrap{border-color:#2b2f37}
html.dark .br-table th{background:#1f2228;color:#8a93a3;border-color:#2b2f37}
html.dark .br-table td{border-color:#262a31}
html.dark .br-old{color:#7d8694}
html.dark .br-new{color:#34d399}
