.r2g-section{margin-bottom:2rem;}
.r2g-presets{margin-bottom:1.25rem;}
.r2g-presets-label{display:block;font-size:0.8rem;font-weight:600;color:var(--text-muted,#6b7280);text-transform:uppercase;letter-spacing:0.04em;margin-bottom:0.5rem;}
.r2g-presets-list{display:flex;flex-wrap:wrap;gap:8px;}
.r2g-preset{padding:8px 14px;font-size:0.875rem;font-weight:500;border-radius:999px;border:1px solid var(--border,rgba(0,0,0,.12));background:var(--surface,#fff);color:var(--text-main,#111);cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease;-webkit-tap-highlight-color:transparent;}
.r2g-preset:hover{background:var(--surface-muted,rgba(0,0,0,.04));border-color:var(--border,rgba(0,0,0,.2));}
.r2g-preset[aria-pressed="true"]{background:var(--primary,#2563eb);color:#fff;border-color:var(--primary,#2563eb);}
.r2g-layout{display:flex;flex-direction:column;gap:1.5rem;}
.r2g-config{display:flex;flex-direction:column;gap:1rem;}
.r2g-block{background:var(--surface,#fff);border:1px solid var(--border,rgba(0,0,0,.08));border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04);}
.r2g-block-head{font-size:0.95rem;font-weight:600;color:var(--text-main,#111);margin:0;padding:12px 14px;background:var(--surface-muted,rgba(0,0,0,.02));border-bottom:1px solid var(--border,rgba(0,0,0,.08));}
.r2g-block-body{padding:14px;}
.r2g-label{display:block;font-size:0.8rem;font-weight:500;color:var(--text-muted,#6b7280);margin-bottom:6px;}
.r2g-input,.r2g-select{width:100%;padding:10px 12px;font-size:0.9rem;border:1px solid var(--border,rgba(0,0,0,.15));border-radius:8px;background:var(--surface,#fff);color:var(--text-main,#111);transition:border-color .2s ease;}
.r2g-input:focus,.r2g-select:focus{outline:none;border-color:var(--primary,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.15);}
.r2g-input-row{display:flex;gap:8px;margin-bottom:10px;}
.r2g-input-row .r2g-input{flex:1;min-width:0;}
.r2g-add{flex-shrink:0;padding:10px 16px;font-size:0.875rem;font-weight:500;border-radius:8px;border:1px solid var(--border,rgba(0,0,0,.12));background:var(--surface-muted,rgba(0,0,0,.04));color:var(--text-main,#111);cursor:pointer;transition:background .2s ease;-webkit-tap-highlight-color:transparent;}
.r2g-add:hover{background:var(--surface-muted,rgba(0,0,0,.08));}
.r2g-custom-wrap{margin-top:10px;}
.r2g-hint{display:block;font-size:0.75rem;color:var(--text-muted,#6b7280);margin-top:6px;}
.r2g-rule-list{list-style:none;margin:0;padding:0;}
.r2g-rule-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;margin-bottom:6px;border-radius:8px;font-size:0.85rem;border-left:4px solid transparent;}
.r2g-rule-item.disallow{background:rgba(220,38,38,.06);border-left-color:#dc2626;}
.r2g-rule-item.allow{background:rgba(22,163,74,.06);border-left-color:#16a34a;}
.r2g-rule-item.sitemap{background:var(--surface-muted,rgba(0,0,0,.03));}
.r2g-rule-text{flex:1;min-width:0;word-break:break-all;}
.r2g-rule-remove{flex-shrink:0;width:28px;height:28px;padding:0;border:none;border-radius:6px;background:rgba(0,0,0,.06);color:var(--text-muted,#6b7280);font-size:1.1rem;line-height:1;cursor:pointer;transition:background .2s ease,color .2s ease;-webkit-tap-highlight-color:transparent;}
.r2g-rule-remove:hover{background:rgba(220,38,38,.12);color:#dc2626;}
.r2g-output-card{background:var(--surface,#fff);border:1px solid var(--border,rgba(0,0,0,.08));border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.06);}
.r2g-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;background:var(--surface-muted,rgba(0,0,0,.03));border-bottom:1px solid var(--border,rgba(0,0,0,.08));}
.r2g-btn{padding:10px 16px;font-size:0.875rem;font-weight:500;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease;-webkit-tap-highlight-color:transparent;}
.r2g-btn-primary{background:var(--primary,#2563eb);color:#fff;}
.r2g-btn-primary:hover{background:var(--primary-dark,#1d4ed8);box-shadow:0 4px 12px rgba(37,99,235,.25);}
.r2g-btn-ghost{background:transparent;color:var(--text-main,#111);border-color:var(--border,rgba(0,0,0,.12));}
.r2g-btn-ghost:hover{background:var(--surface-muted,rgba(0,0,0,.05));}
.r2g-notice{display:block;font-size:0.875rem;padding:10px 14px;margin:0 14px 10px;border-radius:8px;}
.r2g-notice[hidden]{display:none;}
.r2g-notice.is-success{background:rgba(22,163,74,.1);color:#166534;}
.r2g-notice.is-error{background:rgba(220,38,38,.1);color:#b91c1c;}
.r2g-editor{display:block;width:100%;min-height:280px;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.875rem;line-height:1.5;border:none;background:var(--surface-muted,rgba(0,0,0,.02));color:var(--text-main,#111);resize:vertical;}
.r2g-editor:focus{outline:none;}
@media (min-width:768px){.r2g-layout{display:grid;grid-template-columns:minmax(280px,360px) 1fr;gap:1.5rem;align-items:start;}
.r2g-block-head{padding:14px 16px;}
.r2g-block-body{padding:16px;}
.r2g-toolbar{padding:14px 16px;}
.r2g-editor{min-height:420px;}
}
@media (max-width:479px){.r2g-toolbar{flex-direction:column;}
.r2g-btn{flex:1;min-width:0;}
.r2g-input-row{flex-direction:column;}
.r2g-add{width:100%;}
}
