.redact{gap:16px;display:grid}.redact-error{background:var(--error-bg);color:var(--error);border-radius:14px;padding:14px 18px;font-weight:500;line-height:1.5}.redact-grid{align-items:start;gap:20px;display:grid}@media (width>=960px){.redact-grid{grid-template-columns:340px minmax(0,1fr)}.redact-side{max-height:calc(100vh - 32px);position:sticky;top:16px;overflow:auto}}.redact-side{gap:16px;display:grid}.redact-rules,.redact-marks,.redact-done{background:var(--card);border:1px solid var(--line);border-radius:16px;gap:14px;padding:20px;display:grid}.redact-rules h2,.redact-marks h2{margin:0;font-size:20px}.redact-rules textarea{font:inherit;resize:vertical;min-height:96px;color:var(--ink);background:var(--card);border:2px solid #cfcfc7;border-radius:10px;padding:10px 12px;font-size:16px}.redact-hint{color:var(--muted);margin:0;font-size:14px;font-weight:400;line-height:1.45}.redact-patterns{border:0;gap:2px;margin:0;padding:0;display:grid}.redact-patterns legend{margin-bottom:6px;padding:0;font-size:14px;font-weight:600}.check{cursor:pointer;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0 0;font-size:15px;display:flex}.check input{width:20px;height:20px;accent-color:var(--accent);flex:none;margin:0}.redact-more summary{cursor:pointer;align-items:center;min-height:44px;font-size:15px;font-weight:600;display:flex}.redact-more[open]{gap:8px;display:grid}.redact-saved{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.btn-small{min-height:44px;padding:0 14px;font-size:14px}.btn .badge{padding:2px 6px;font-size:10px}.btn[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--ground)}.redact-marks-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.redact-mark-list{max-height:360px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.redact-mark-list li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding:4px 0;font-size:14px;display:flex}.redact-mark-list li:first-child{border-top:0}.redact-mark-list .mark-text{overflow-wrap:anywhere}.redact-mark-list .mark-page{color:var(--muted);white-space:nowrap}.redact-mark-list button{font:inherit;min-width:44px;min-height:44px;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0 10px;font-size:14px;text-decoration:underline}.redact-main{gap:16px;min-width:0;display:grid}.redact-batch-hint{background:var(--pro-bg);max-width:520px;color:var(--pro);border-radius:12px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;margin:4px 0 0;padding:10px 14px;font-size:15px;font-weight:500;line-height:1.45;display:flex}.redact-batch-hint a{color:var(--pro);align-items:center;min-height:44px;font-weight:600;display:inline-flex}.redact-batch-hint.is-pro{background:var(--free-bg);color:var(--free)}.redact-loading{color:var(--muted);align-items:center;gap:12px;margin:0;display:flex}.redact-bar{background:var(--card);border:1px solid var(--line);border-radius:16px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;display:flex}.redact-bar-actions{flex-wrap:wrap;gap:8px;display:flex}.redact-doc{gap:12px;display:grid}.redact-pages{gap:20px;margin:0;padding:0;list-style:none;display:grid}.redact-page-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;font-size:14px;font-weight:600;display:flex}.redact-sheet{width:100%;box-shadow:0 1px 2px #15181c1f, 0 0 0 1px var(--line);background:#fff;border-radius:2px;position:relative;overflow:hidden}.redact-sheet canvas{width:100%;height:100%;position:absolute;inset:0}.redact-overlay{cursor:crosshair;touch-action:pan-x pan-y pinch-zoom;-webkit-user-select:none;user-select:none;position:absolute;inset:0}.redact[data-drawing=true] .redact-overlay{touch-action:none}.redact-box{opacity:.82;cursor:pointer;background:#000;outline:2px solid #e8b400;position:absolute}.redact-box:hover{opacity:.65}.redact-box.is-draft{cursor:crosshair;background:#00000059;outline-style:dashed}.redact-apply{z-index:2;background:var(--card);border:2px solid var(--ink);border-radius:16px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-weight:600;display:flex;position:sticky;bottom:0}.redact-apply progress{flex:120px}.redact-done{border:2px solid var(--free)}.redact-done h2{margin:0;font-size:24px}.redact-checks{gap:8px;margin:0;padding:0;font-size:16px;line-height:1.45;list-style:none;display:grid}.redact-checks li{align-items:flex-start;gap:10px;display:flex}.redact-checks li:before{content:"";background:var(--free-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5E2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;border-radius:999px;flex:none;width:22px;height:22px}.redact-checks li.is-warn:before{background:var(--pro-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A3B0A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v9 M12 19h.01'/%3E%3C/svg%3E") center / 14px no-repeat}.redact-leaks{background:var(--pro-bg);color:var(--pro);border-radius:12px;gap:8px;padding:14px 16px;display:grid}.redact-leaks p{margin:0}.redact-leaks .redact-hint{color:var(--pro)}.redact-done-actions{flex-wrap:wrap;gap:8px;display:flex}
