/* Hallmark v2.0.0 · established AnnotatePics system · scope: tool page · signature: real solid-cover export */
/* Critique: keep the upload action first and make the distinction between redaction and blur explicit. */
html:has(.redact-page),body.redact-page{overflow-x:clip}
.redact-page .hero h1{font-size:clamp(28px,3.2vw,40px);font-weight:600;line-height:1.2;overflow-wrap:break-word;min-width:0;text-wrap:balance}
body.redact-page:not(.editor-mode) .hero h1{margin-bottom:12px;font-size:clamp(28px,3.2vw,40px);font-weight:600}
.redact-page .hero>.redact-lead{text-align:center;margin:0 auto 28px;max-width:60ch;font-size:17px;line-height:1.6}
.redact-page .editor.awaiting-image .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.redact-page .editor.awaiting-image .empty-state{margin:24px;padding:12px 0}
.redact-page .empty-state .upload-heading{font-size:21px;font-weight:600;margin-bottom:16px}
.redact-page .format-note{display:block;margin-top:12px}
.redact-page .upload-limits{display:block;max-width:38ch;margin-top:8px;padding-inline:12px;color:var(--muted);font-size:12px;line-height:1.6}
.redact-page .paste-hint{margin-top:12px}
.redact-page .upload-shortcuts{gap:8px 20px;margin-top:16px}
.redact-page .upload-shortcut,.redact-page .entry-sample-hero{border:0;background:transparent;margin-top:0;padding:8px 0;font-weight:400;text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:4px;min-height:44px}
.redact-page .upload-shortcut:hover,.redact-page .entry-sample-hero:hover{background:transparent;color:var(--ink)}
.redact-page .entry-preview{padding:24px;gap:12px}
.redact-page .entry-preview figcaption{font-size:12px;max-width:60ch}
.redact-format-help{width:fit-content;max-width:100%;margin:12px auto 0;text-align:left;font-size:12px;color:var(--muted)}
.redact-format-help summary{cursor:pointer;width:fit-content;margin-inline:auto}
.redact-format-help .heic-note{display:block!important;max-width:54ch;margin:8px 0 0;font-size:12px;text-align:left}
.redact-page .redact-how{margin-top:48px}
.redact-page .faq-section{padding-top:24px}
.redact-page .faq-section>h2{font-size:28px;font-weight:600}
.redact-more{padding-bottom:48px;border-bottom:1px solid var(--line)}
.redact-more h2{font-size:24px;font-weight:600;margin:0 0 16px}
.redact-more p{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0}
.redact-more a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.redact-page :is(a,button,summary):focus-visible{outline:2px solid var(--ink);outline-offset:4px}
body.redact-page.editor-mode .redact-format-help{display:none}
body.redact-page.editor-mode #hide-setting small{max-width:38ch}
@media(max-width:860px){
 .redact-page .redact-lead{font-size:16px;margin-bottom:24px;max-width:34ch}
 .redact-page .editor.awaiting-image .workspace{grid-template-columns:minmax(0,1fr)}
 .redact-page .editor.awaiting-image .empty-state{margin:20px;padding:4px 0}
 .redact-page .empty-state .upload-heading{font-size:20px}
 .redact-page .upload-shortcuts{margin-top:12px}
 .redact-page .entry-preview{padding:16px;gap:12px}
 .redact-page .redact-how{margin-top:36px}
  }

.redact-page:not(.editor-mode) :is(button,a,summary):active{opacity:.75}

body.redact-page.editor-mode .tool-btn{order:0}
/* Primary redaction tools stay visible; secondary actions have a real menu. */
body.redact-page.editor-mode .toolbar{position:relative;overflow:visible;z-index:10;mask-image:none;-webkit-mask-image:none}
body.redact-page.editor-mode .tool-overflow{display:contents}
body.redact-page.editor-mode .tool-overflow>summary{display:none}
body.redact-page.editor-mode .tool-overflow-menu{display:flex;align-items:center;gap:0}
body.redact-page.editor-mode .tool-overflow-menu .tool-grid{display:flex}
body.redact-page.editor-mode .tool-overflow-menu .tool-btn{order:0}
@media(max-width:860px){
 body.redact-page.editor-mode .toolbar{gap:2px;padding-inline:8px}
 body.redact-page.editor-mode .toolbar>.tool-grid{flex:1 1 auto;gap:2px}
 body.redact-page.editor-mode .toolbar>.tool-grid>.tool-btn{flex:1 1 0;width:auto;min-width:44px}
 body.redact-page.editor-mode .select-tool#select-tool{order:0;min-width:44px;width:52px;margin:0}
 body.redact-page.editor-mode .tool-overflow{display:block;flex:0 0 52px}
 body.redact-page.editor-mode .tool-overflow>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:58px;padding:8px 4px;border:1px solid transparent;border-radius:8px;color:var(--editor-muted);font:500 11px/1.15 var(--editor-font);list-style:none;cursor:pointer}
 body.redact-page.editor-mode .tool-overflow>summary::-webkit-details-marker{display:none}
 body.redact-page.editor-mode .tool-overflow>summary svg{width:20px;height:20px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
 body.redact-page.editor-mode .tool-overflow[open]>summary,body.redact-page.editor-mode .tool-overflow:has(.active)>summary{background:var(--editor-accent);color:var(--editor-ink)}
 body.redact-page.editor-mode .tool-overflow-menu{position:absolute;top:calc(100% + 4px);right:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(300px,calc(100% - 16px));max-height:calc(100dvh - 220px);padding:12px;overflow-y:auto;border-radius:12px;background:var(--editor-paper);box-shadow:var(--editor-menu-shadow)}
 body.redact-page.editor-mode .tool-overflow:not([open])>.tool-overflow-menu{display:none}
 body.redact-page.editor-mode .tool-overflow-menu .tool-grid{display:contents}
 body.redact-page.editor-mode .tool-overflow-menu :is(.tool-btn,.select-tool){order:0;min-width:44px;width:100%;min-height:58px;height:58px;border:0}
 body.redact-page.editor-mode .inspector>.toolbar-heading{display:none}
}
/* Keep visually hidden setting hints inside the horizontal settings scroller. */
body.redact-page.editor-mode .setting{position:relative}

/* Extend the existing tool-page sections without changing the shared visual system. */
.redact-step-image{display:block;width:100%;height:auto;aspect-ratio:50/31;object-fit:contain;margin-bottom:24px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--paper)}
.redact-page :is(.redact-scenarios,.redact-comparison,.redact-privacy,.redact-mobile)>h2{font-size:28px;font-weight:600;line-height:1.25;text-wrap:balance;margin:0 0 28px}
.redact-page .redact-scenarios{padding-block:48px}
.redact-page .redact-scenarios .use-grid{gap:20px}
.redact-comparison{padding-block:32px 48px}
.redact-comparison>p{max-width:75ch;margin:16px 0 24px}
.comparison-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);scrollbar-width:thin}
.comparison-scroll:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.comparison-scroll table{width:100%;border-collapse:collapse;min-width:660px;table-layout:fixed;text-align:left;font-size:15px}
.comparison-scroll caption{text-align:left;padding:16px 20px;font-size:14px;color:var(--muted);background:var(--surface)}
.comparison-scroll th,.comparison-scroll td{padding:20px;vertical-align:top;border-top:1px solid var(--line)}
.comparison-scroll th{font-size:17px;font-weight:600;color:var(--ink)}
.comparison-scroll td{color:var(--muted)}
.comparison-scroll th+th,.comparison-scroll td+td{border-left:1px solid var(--line)}
.redact-comparison .redact-export-note{padding:20px;background:var(--surface);border-radius:var(--radius-card);max-width:none;font-size:15px}
.redact-page .redact-privacy>h2{text-align:left}
.redact-privacy p{max-width:75ch;margin:16px 0;font-size:16px}
.redact-privacy a{text-decoration:underline;text-underline-offset:4px}
.redact-mobile{padding-block:36px 48px}
.redact-mobile p{max-width:75ch;font-size:16px}
.redact-page .redact-more{margin-bottom:32px;border:0}
.redact-page .redact-more p{justify-content:center;gap:8px 28px}
body.redact-page.editor-mode .inspector .setting:has(#swatches){min-width:120px}
body.redact-page.editor-mode .swatch[data-color="#ffffff"]{border:1px solid var(--editor-muted)}
@media(max-width:860px){
 .redact-page :is(.redact-scenarios,.redact-comparison,.redact-privacy,.redact-mobile)>h2{font-size:25px;margin-bottom:24px}
 .redact-page .redact-scenarios,.redact-mobile{padding-block:36px}
 .redact-comparison{padding-block:24px 36px}
 .redact-step-image{margin-bottom:20px}
 .comparison-scroll table{font-size:14px}
 .comparison-scroll th,.comparison-scroll td{padding:16px}
}
