:root{--text:#111111;--muted:#6b7280;--primary:#111111;--primary-dark:#000000;--border:#e5e7eb;--success:#087443;--danger:#b42318;--warn:#8a5a00;--page:#f5f5f7;--surface:#ffffff;--surface-alt:#fafafa;--shadow:0 16px 40px rgba(17,17,17,.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.6}.container{width:min(1180px,calc(100% - 30px));margin:auto}header{padding:22px 0}.nav{display:flex;justify-content:space-between;align-items:center}.logo{font-size:22px;font-weight:850}.logo span{color:inherit}.nerato-logo{display:inline-flex;align-items:center;gap:0;font-size:22px;font-weight:900;letter-spacing:.08em}.nerato-r-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}.nerato-r{position:relative;z-index:1}.redaction-bar{position:absolute;z-index:2;left:-2px;right:-2px;height:.52em;background:#000;border-radius:2px;top:50%;transform:translateY(-50%)}.nav-badge,.pill{font-size:13px;padding:8px 12px;border-radius:999px;background:#f0f0f0;color:#333;font-weight:700;border:1px solid #e4e4e4}.hero{text-align:center;padding:52px 0 25px}.eyebrow{display:inline-flex;background:#eef2ff;color:#2948bb;padding:8px 13px;border-radius:999px;font-size:13px;font-weight:750}h1{font-size:clamp(38px,6vw,68px);line-height:1.03;letter-spacing:-2.8px;margin:22px auto 18px;max-width:880px}.hero>p{font-size:clamp(17px,2.1vw,21px);color:var(--muted);max-width:760px;margin:auto}.tool-card,.workspace{background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.tool-card{max-width:850px;margin:34px auto 18px;padding:14px}.dropzone{min-height:300px;border:2px dashed #c9c9c9;border-radius:15px;display:flex;align-items:center;justify-content:center;text-align:center;padding:32px;background:#fcfcfc;cursor:pointer}.dropzone:hover,.dropzone.dragover{border-color:#111;background:#f8f8f8}.drop-icon{font-size:48px}.drop-title{font-size:22px;font-weight:780}.drop-sub{color:var(--muted);margin-top:5px}.file-info{display:none;margin-top:14px;padding:14px 16px;background:#f7f7f7;border:1px solid #e3e3e3;border-radius:12px;text-align:left}.file-info.show{display:flex;align-items:center;justify-content:space-between;gap:12px}.file-name{font-weight:750;word-break:break-word}.file-size{font-size:13px;color:var(--muted)}button{border:0;border-radius:12px;background:var(--primary);color:#fff;font-size:15px;font-weight:760;padding:13px 20px;cursor:pointer}button:hover{background:var(--primary-dark)}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#fff;color:#111;border:1px solid #d7d7d7}.danger-soft{background:#fff5f4;color:var(--danger);border:1px solid #ffd2cc}.actions{text-align:center;margin-top:16px}.status{text-align:center;min-height:25px;margin:14px 0 2px;font-weight:650}.success{color:var(--success)}.error{color:var(--danger)}.warning{color:var(--warn)}.trust{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:13px;margin:18px 0 42px}.workspace{display:none;margin:25px auto 55px;padding:18px;text-align:left}.workspace.show{display:block}.workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:8px 4px 18px}.workspace-head h2{margin:0;font-size:29px}.workspace-head p{margin:4px 0 0;color:var(--muted)}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:18px}.preview-panel,.review-panel{border:1px solid var(--border);border-radius:16px;background:#f7f7f7;overflow:hidden}.panel-head{padding:14px 15px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head span{color:var(--muted);font-size:13px}.preview-scroll{max-height:78vh;overflow:auto;padding:16px}.pdf-page{position:relative;margin:0 auto 20px;max-width:100%;background:white;box-shadow:0 7px 24px rgba(17,30,58,.12);user-select:none}.pdf-page img{display:block;width:100%;height:auto;pointer-events:none}.overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.auto-box{fill:rgba(49,91,234,.14);stroke:#315bea;stroke-width:1.4;vector-effect:non-scaling-stroke}.auto-box.off{display:none}.manual-box{fill:rgba(180,35,24,.16);stroke:#b42318;stroke-width:1.6;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.draw-box{fill:rgba(180,35,24,.12);stroke:#b42318;stroke-width:1.6;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.manual-mode .overlay{cursor:crosshair}.page-label{text-align:center;color:var(--muted);font-size:12px;margin:-12px 0 18px}.review-panel{background:var(--surface)}.review-scroll{max-height:65vh;overflow:auto;padding:12px}.detected-item{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:12px;margin-bottom:9px;cursor:pointer}.detected-item input{width:19px;height:19px;accent-color:var(--primary)}.item-type{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#536075;font-weight:850}.item-value{font-weight:700;word-break:break-word;font-size:14px}.item-page{font-size:12px;color:var(--muted)}.review-tools{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.manual-list{padding:10px 12px}.manual-chip{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 10px;background:#fff6f5;border:1px solid #ffd7d3;border-radius:10px;margin-top:7px;font-size:13px}.manual-chip button{padding:6px 9px;font-size:12px}.selection-summary{padding:12px;color:var(--muted);font-size:13px;background:#f7f7f7;border-top:1px solid var(--border)}.final-actions{padding:14px;text-align:center}.ocr-note{padding:10px 12px;background:#fff8e6;border:1px solid #f4dd9b;border-radius:10px;margin:0 0 12px;font-size:13px;color:#74500a}.empty{padding:22px;color:var(--muted);text-align:center}.section{padding:54px 0}.section h2{text-align:center;font-size:clamp(28px,4vw,40px);margin:0 0 12px}.section-intro{text-align:center;color:var(--muted);max-width:760px;margin:0 auto 30px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:25px}.card p{margin:0;color:var(--muted);font-size:15px}.step{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff;font-weight:850;margin-bottom:14px}.seo-copy{max-width:880px;margin:auto;color:#536075}.seo-copy h2{text-align:left;margin-top:38px}.seo-copy h3{margin-top:27px;color:var(--text)}.faq{max-width:880px;margin:auto}details{border-bottom:1px solid var(--border);padding:18px 0}summary{font-weight:750;cursor:pointer}footer{border-top:1px solid var(--border);padding:32px 0 50px;text-align:center;color:var(--muted);font-size:13px}@media(max-width:900px){.workspace-grid{grid-template-columns:1fr}.preview-scroll,.review-scroll{max-height:none}.workspace-head{display:block}.workspace-head .pill{display:inline-block;margin-top:10px}}@media(max-width:760px){.container{width:min(100% - 20px,1180px)}.nav-badge{display:none}.hero{padding-top:31px}h1{letter-spacing:-1.7px}.dropzone{min-height:235px;padding:22px 14px}.tool-card{padding:9px}.grid{grid-template-columns:1fr}.workspace{padding:9px}.detected-item{grid-template-columns:auto 1fr}.item-page{grid-column:2}}
\n
/* NERATO 7A.2 visual refinement */

header{
  padding:20px 0;
}

.nav{
  min-height:40px;
}

.nerato-logo{
  font-size:clamp(25px,2.4vw,30px);
  font-weight:900;
  letter-spacing:.10em;
  line-height:1;
}

.nerato-r-wrap{
  margin:0 .01em;
}

.redaction-bar{
  left:-3px;
  right:-3px;
  height:.60em;
  border-radius:2px;
  transform-origin:left center;
  animation:nerato-redact 3.2s ease-in-out infinite;
}

@keyframes nerato-redact{
  0%,22%{
    opacity:0;
    transform:translateY(-50%) scaleX(.18);
  }
  31%,69%{
    opacity:1;
    transform:translateY(-50%) scaleX(1);
  }
  78%,100%{
    opacity:0;
    transform:translateY(-50%) scaleX(.18);
  }
}

.eyebrow{
  background:#ececec;
  color:#333;
  border:1px solid #dfdfdf;
}

.hero{
  padding:28px 0 14px;
}

.hero h1{
  max-width:830px;
  font-weight:850;
}

.hero>p{
  max-width:720px;
}

.tool-card{
  max-width:820px;
  padding:10px;
  border-radius:24px;
  margin-top:22px;
}

.dropzone{
  min-height:220px;
  border-radius:18px;
  background:#fafafa;
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.dropzone:hover,
.dropzone.dragover{
  background:#fff;
  border-color:#111;
}

.drop-icon{
  font-size:44px;
  filter:grayscale(1);
}

.actions button{
  min-width:150px;
}

.trust{
  gap:9px;
  margin:16px 0 46px;
}

.trust span{
  padding:6px 10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
}

.section{
  padding:clamp(42px,6vw,64px) 0;
}

.card{
  border-radius:20px;
  box-shadow:0 8px 24px rgba(17,17,17,.035);
}

.workspace{
  border-radius:24px;
}

.preview-panel,
.review-panel{
  border-radius:18px;
}

.auto-box{
  fill:rgba(17,17,17,.12);
  stroke:#111;
}

.detected-item input{
  accent-color:#111;
}

.item-type{
  color:#555;
}

@media(max-width:760px){
  header{
    padding:16px 0;
  }

  .nerato-logo{
    font-size:24px;
  }

  .hero{
    padding:28px 0 18px;
  }

  .tool-card{
    margin-top:26px;
    border-radius:18px;
  }

  .dropzone{
    min-height:210px;
  }

  .trust{
    gap:7px;
    margin-bottom:34px;
  }

  .trust span{
    font-size:12px;
    padding:5px 8px;
  }
}

@media(prefers-reduced-motion:reduce){
  .redaction-bar{
    animation:none;
    opacity:1;
    transform:translateY(-50%) scaleX(1);
  }

  .dropzone{
    transition:none;
  }
}


/* NERATO 7A.3 interaction polish */

button{
  transition:
    background-color .16s ease,
    color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    transform .08s ease;
}

button:not(:disabled):hover{
  background:#242424;
  color:#fff;
}

button:not(:disabled):active{
  transform:translateY(1px);
}

button:focus-visible{
  outline:3px solid rgba(17,17,17,.14);
  outline-offset:3px;
}

.secondary{
  background:#fff;
  color:#111;
  border-color:#d7d7d7;
}

.secondary:not(:disabled):hover{
  background:#f1f1f1;
  color:#111;
  border-color:#bdbdbd;
}

.secondary:not(:disabled):active{
  background:#e9e9e9;
}

.danger-soft{
  background:#fff5f4;
  color:var(--danger);
  border-color:#ffd2cc;
}

.danger-soft:not(:disabled):hover{
  background:#ffe9e6;
  color:#971a10;
  border-color:#f4b6ae;
}

.status.success,
.success{
  color:var(--success);
}

.status.error,
.error{
  color:var(--danger);
}

.status.warning,
.warning{
  color:var(--warn);
}

.file-info.show{
  box-shadow:inset 0 0 0 1px rgba(17,17,17,.02);
}

.detected-item{
  transition:
    border-color .15s ease,
    background-color .15s ease,
    box-shadow .15s ease;
}

.detected-item:hover{
  border-color:#c9c9c9;
  background:#fafafa;
  box-shadow:0 3px 12px rgba(17,17,17,.035);
}

.auto-check{
  cursor:pointer;
}

.manual-chip{
  transition:
    background-color .15s ease,
    border-color .15s ease;
}

.manual-chip:hover{
  background:#fff0ee;
  border-color:#f3bdb7;
}

@media(hover:none){
  button:hover,
  .secondary:hover,
  .danger-soft:hover,
  .detected-item:hover,
  .manual-chip:hover{
    box-shadow:none;
  }
}

@media(prefers-reduced-motion:reduce){
  button,
  .detected-item,
  .manual-chip{
    transition:none;
  }
}


/* NERATO 7B.1 homepage structure */

.brand-link{
  color:inherit;
  text-decoration:none;
  display:inline-flex;
  flex-shrink:0;
}

.main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  margin-left:auto;
  margin-right:24px;
}

.main-nav a{
  color:#555;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  transition:color .15s ease;
}

.main-nav a:hover{
  color:#111;
}

.main-nav a:focus-visible,
.brand-link:focus-visible{
  outline:3px solid rgba(17,17,17,.12);
  outline-offset:5px;
  border-radius:5px;
}

header{
  position:relative;
  z-index:10;
}

.hero{
  max-width:1100px;
}

.hero .eyebrow{
  letter-spacing:.01em;
}

.trust{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.trust span{
  white-space:nowrap;
}

#privacy,
#how-it-works,
#faq{
  scroll-margin-top:30px;
}

footer strong{
  color:#111;
  font-weight:850;
}

@media(max-width:900px){
  .main-nav{
    gap:16px;
    margin-right:16px;
  }

  .main-nav a{
    font-size:13px;
  }
}

@media(max-width:760px){
  .main-nav{
    display:none;
  }

  .nav{
    gap:12px;
  }

  .nav-badge{
    display:inline-flex;
    font-size:11px;
    padding:6px 9px;
    white-space:nowrap;
  }

  .trust span{
    white-space:normal;
  }
}

@media(max-width:420px){
  .nav-badge{
    display:none;
  }
}


/* NERATO 7B.2 privacy block */

.privacy-section{
  max-width:1000px;
}

.privacy-card{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:24px;
  align-items:start;
  background:#111;
  color:#fff;
  border-radius:24px;
  padding:clamp(24px,4vw,38px);
  box-shadow:0 14px 36px rgba(17,17,17,.10);
}

.privacy-mark{
  width:54px;
  height:18px;
  background:#fff;
  border-radius:3px;
  margin-top:8px;
}

.privacy-kicker{
  display:inline-block;
  color:#bdbdbd;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.10em;
  margin-bottom:7px;
}

.privacy-card h2{
  color:#fff;
  text-align:left;
  margin:0 0 12px;
  font-size:clamp(27px,4vw,38px);
  line-height:1.12;
}

.privacy-card p{
  margin:0;
  color:#d0d0d0;
  max-width:760px;
}

.privacy-points{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}

.privacy-points span{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #3a3a3a;
  color:#e7e7e7;
  font-size:12px;
  font-weight:650;
}

@media(max-width:600px){
  .privacy-card{
    grid-template-columns:1fr;
    gap:16px;
  }

  .privacy-mark{
    width:46px;
  }
}


/* NERATO 7D.1 English master final */

.nerato-positioning{
  max-width:1100px;
}

.positioning-intro{
  max-width:760px;
  margin:0 auto 28px;
  text-align:center;
}

.section-kicker{
  display:inline-block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:850;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#777;
}

.positioning-intro h2{
  margin:0 0 10px;
}

.positioning-intro p{
  margin:0;
  color:#626262;
  font-size:16px;
  line-height:1.65;
}

.positioning-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.positioning-card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:18px;
  padding:22px;
  box-shadow:0 8px 24px rgba(17,17,17,.035);
}

.positioning-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:25px;
  padding:0 8px;
  margin-bottom:15px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:800;
}

.positioning-card h3{
  margin:0 0 8px;
  color:#111;
  font-size:17px;
}

.positioning-card p{
  margin:0;
  color:#666;
  font-size:14px;
  line-height:1.6;
}

@media(max-width:760px){
  .positioning-grid{
    grid-template-columns:1fr;
  }
}


/* NERATO 7E.3 language SEO shell */

.language-switcher{
  display:flex;
  align-items:center;
  margin-right:10px;
}

.language-switcher select{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid #dedede;
  background:#fff;
  color:#222;
  border-radius:999px;
  padding:7px 27px 7px 10px;
  font:inherit;
  font-size:12px;
  font-weight:750;
  line-height:1;
  cursor:pointer;
  background-image:
    linear-gradient(45deg,transparent 50%,#666 50%),
    linear-gradient(135deg,#666 50%,transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 8px) 50%;
  background-size:4px 4px,4px 4px;
  background-repeat:no-repeat;
}

.language-switcher select:hover{
  border-color:#bdbdbd;
}

.language-switcher select:focus-visible{
  outline:3px solid rgba(17,17,17,.12);
  outline-offset:3px;
}

@media(max-width:760px){
  .language-switcher{
    margin-left:auto;
    margin-right:0;
  }
}

@media(max-width:420px){
  .language-switcher select{
    padding:6px 25px 6px 9px;
    font-size:11px;
  }
}



.hero h1{
  font-size:clamp(34px,5vw,58px);
  line-height:1.04;
  margin:0 auto 12px;
}

.hero>p{
  font-size:clamp(16px,1.8vw,19px);
  line-height:1.55;
}

.hero .eyebrow{
  margin-bottom:12px;
}

@media(max-width:760px){
  .hero{
    padding:20px 0 10px;
  }

  .hero h1{
    font-size:clamp(32px,9vw,44px);
    letter-spacing:-1.4px;
    margin-bottom:10px;
  }

  .hero>p{
    font-size:16px;
  }

  .tool-card{
    margin-top:18px;
  }

  .dropzone{
    min-height:190px;
    padding:20px 14px;
  }
}

/* NERATO P3.1 CSP hardening */
.manual-list-title{
  font-size:13px;
}

.inherit-link{
  color:inherit;
}

.footer-link{
  color:inherit;
  text-decoration:none;
}

.manual-empty{
  color:#637087;
  font-size:13px;
  margin-top:7px;
}

.auto-box.is-focused{
  stroke-width:3;
}

/* NERATO P5.1 Search & Redact */
.search-redact-box{
  padding:12px;
  border-bottom:1px solid var(--border);
  background:#fafafa;
}

.search-redact-head{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-bottom:10px;
}

.search-redact-head span{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.search-terms{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.search-term-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
}

.search-term-input{
  width:100%;
  min-width:0;
  border:1px solid #d7d7d7;
  border-radius:10px;
  padding:10px 11px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:14px;
}

.search-term-input:focus{
  outline:2px solid rgba(17,17,17,.12);
  outline-offset:1px;
  border-color:#aaa;
}

.search-term-remove{
  padding:8px 11px;
  font-size:16px;
  line-height:1;
}

.search-redact-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}

.search-redact-actions button{
  padding:9px 12px;
  font-size:13px;
}

.search-status{
  min-height:19px;
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

/* NERATO P6.2 Search review refinement */
.detected-item.search-item{
  border-left:3px solid #111;
  background:#fcfcfc;
}

.detected-item.search-item .item-type{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:2px 6px;
  border-radius:999px;
  background:#eeeeee;
  color:#333;
}

.search-status.success,
.search-status.warning,
.search-status.error{
  padding:8px 10px;
  border-radius:9px;
  border:1px solid var(--border);
  background:#fff;
  line-height:1.4;
}

.search-status.success{
  color:var(--success);
  background:#f5fbf8;
}

.search-status.warning{
  color:var(--warn);
  background:#fffaf0;
}

.search-status.error{
  color:var(--danger);
  background:#fff6f5;
}

/* NERATO P6.3 Upload / Analyze feedback */
.dropzone.is-busy{
  opacity:.68;
  cursor:progress;
}

.status.working{
  color:#333;
  background:#f7f7f7;
  border:1px solid var(--border);
  border-radius:10px;
  padding:9px 11px;
}

.tool-card[aria-busy="true"] button,
form[aria-busy="true"] button{
  cursor:progress;
}

/* NERATO P6.4 Redaction / Download UX */
.selection-counts{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.selection-counts span{
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 8px;
  color:#444;
  font-weight:700;
}

.selection-total{
  margin-top:8px;
  font-weight:800;
  color:var(--text);
}

.selection-permanent-note{
  margin-top:7px;
  line-height:1.45;
}

.final-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.final-actions #redactAnotherBtn{
  width:auto;
}

.final-actions .status.working{
  width:100%;
}

/* NERATO P6.4 Search match selection refinement */
.search-selection-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:7px;
}

.search-selection-actions button{
  padding:7px 10px;
  font-size:12px;
}


/* NERATO P6.5 Mobile UX */
@media(max-width:600px){
  .workspace{
    padding:7px;
    margin-top:18px;
    border-radius:18px;
  }

  .workspace-head{
    padding:8px 5px 14px;
  }

  .workspace-head h2{
    font-size:24px;
    line-height:1.15;
  }

  .preview-panel,
  .review-panel{
    border-radius:14px;
    min-width:0;
  }

  .panel-head{
    flex-wrap:wrap;
    align-items:flex-start;
    padding:12px;
  }

  .panel-head > div{
    min-width:0;
    flex:1 1 180px;
  }

  .panel-head button{
    min-height:44px;
  }

  .preview-scroll{
    padding:10px;
    overflow-x:hidden;
  }

  .pdf-page{
    margin-bottom:16px;
  }

  .review-scroll{
    padding:9px;
  }

  .detected-item{
    gap:9px;
    padding:11px 10px;
    min-width:0;
  }

  .detected-item input{
    width:22px;
    height:22px;
  }

  .item-value{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .search-redact-box{
    padding:10px;
  }

  .search-redact-actions,
  .search-selection-actions,
  .review-tools{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .search-redact-actions button,
  .search-selection-actions button,
  .review-tools button{
    width:100%;
    min-width:0;
    min-height:44px;
    white-space:normal;
    line-height:1.25;
  }

  .search-term-input{
    min-height:44px;
  }

  .search-term-remove{
    min-width:44px;
    min-height:44px;
    padding:8px;
  }

  .manual-chip{
    flex-wrap:wrap;
  }

  .manual-chip button{
    min-height:40px;
  }

  .selection-counts{
    gap:6px;
  }

  .selection-counts span{
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .final-actions{
    align-items:stretch;
    padding:12px;
  }

  .final-actions #redactBtn,
  .final-actions #redactAnotherBtn{
    width:100%;
    min-height:48px;
  }

  .file-info.show{
    flex-wrap:wrap;
  }

  .file-info.show > div{
    min-width:0;
    flex:1 1 180px;
  }

  .file-info.show button{
    min-height:44px;
  }
}

/* Allow normal vertical page scrolling on touch devices.
   Manual-redaction mode intentionally takes exclusive touch control. */
@media(pointer:coarse){
  .overlay{
    touch-action:pan-y;
  }

  .manual-mode .overlay{
    touch-action:none;
  }
}


/* NERATO P6.5-C Mobile preview internal scroll */
@media(max-width:600px){
  .preview-scroll{
    max-height:68vh;
    max-height:68svh;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
  }
}


/* NERATO P6.6 Accessibility */
.search-term-input:focus-visible,
.language-switcher select:focus-visible{
  outline:3px solid rgba(17,17,17,.18);
  outline-offset:3px;
}

.dropzone:focus-visible,
.dropzone:focus-within{
  border-color:#111;
  box-shadow:0 0 0 3px rgba(17,17,17,.10);
  outline:none;
}

@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }
}


/* NERATO P6.7-C Multilingual action grids */
.search-redact-actions,
.search-selection-actions,
.review-tools{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.search-redact-actions button,
.search-selection-actions button,
.review-tools button{
  width:100%;
  min-width:0;
  white-space:normal;
  line-height:1.25;
}

@media(max-width:420px){
  .search-redact-actions,
  .search-selection-actions,
  .review-tools{
    grid-template-columns:1fr;
  }
}
