:root {
  --paper: #f7f7f4;
  --ink: #252625;
  --muted: #5e635d;
  --line: #dddfd6;
  --purple: #5944d2;
}
body { background: var(--paper); color: var(--ink); font: 16px/1.65 Inter, "Segoe UI", system-ui, sans-serif; }
.site-header { display:flex; align-items:center; gap:24px; max-width:1160px; margin:auto; padding:16px 24px; }
.site-header .brand { display:flex; align-items:center; gap:8px; color:var(--ink); font-size:14px; letter-spacing:.06em; }
.site-header .brand-icon { color:var(--purple); }
.site-header nav { display:flex; flex-wrap:wrap; gap:4px; }
.site-header nav a { display:inline-flex; align-items:center; min-height:44px; padding:6px 12px; border-radius:8px; text-decoration:none; color:var(--muted); font-size:14px; }
.site-header nav a[aria-current] { background:#eeebfc; color:#4030a4; font-weight:650; }
.site-header nav a:hover { background:#f0eef8; }
.tool-page main, body[data-tool="screenshot"] main { max-width:1160px; margin:auto; padding:32px 24px 0; }
.tool-intro { margin-bottom:24px; }
.tool-intro h1, .document h1 { font-size:clamp(30px, 4vw, 42px); line-height:1.16; margin:0 0 10px; letter-spacing:-.035em; }
.tool-intro p { margin:0; color:var(--muted); }
.tool-page h2, body[data-tool="screenshot"] h2 { font-size:23px; line-height:1.3; }
.workspace, .merge-workspace, .tool { border-radius:14px; }
.workspace { grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); }
.workspace:has(#preview[hidden]) { grid-template-columns:1fr; }
.workspace:has(#preview[hidden]) .source-panel { border:0; }
.workspace:has(#preview[hidden]) .settings-panel { padding-top:0; }
.workspace:has(#preview[hidden]) :is(.section-label, .video-meta, .scrubber, #settings),
.results-section:has(#empty:not([hidden])) { display:none; }
.workspace:has(#preview[hidden]) .settings-panel:not(:has(#error:not([hidden]))) #status:empty { display:none; }
.workspace #drop:has(#preview[hidden]) { aspect-ratio:auto; min-height:275px; background:#f5f3fc; border:1px dashed #b7aedb; }
.workspace #dropContent { padding:24px 16px; }
.workspace #dropContent p { font-size:15px; }
.workspace #dropContent small { font-size:13px; }
.workspace .frame-symbol { color:var(--purple); border-color:#c9c0ea; background:#fff; }
.workspace .section-label, .merge-workspace .panel-top { font-size:14px; letter-spacing:0; }
.workspace :is(label, .range-title, .range-title span, .range-fields label, .timeline-head, output, .status, .plan, .video-meta strong, .video-meta span, .unit-input span),
.merge-workspace :is(.status, .privacy-line, .tested-cap, label, .clip-info strong, .clip-info span), .tool :is(.seek-label, #status) { font-size:14px; line-height:1.5; }
.workspace .field { margin-top:16px; }
.workspace :is(select,input[type=number]), .merge-controls select { height:auto; min-height:46px; font-size:16px; }
.tool-page :is(.primary,.secondary,.choose-button,.download-button), .tool :is(button,.download) { min-height:46px; border-radius:8px; font-size:15px; letter-spacing:0; gap:10px; }
.merge-page .choose-button, .merge-page .download-button, .tool .primary, body[data-tool="screenshot"] .download { background:var(--purple); color:white; border-color:var(--purple); }
.tool-page :is(.text-button,.result-actions a), .tool .text-button { min-height:44px; font-size:14px; }
.tool-page :is(.card-info span,.card-info a) { font-size:13px; }
.results-section #zip:enabled { background:var(--purple); color:white; border-color:var(--purple); }
.tool-page :is(.notes p, summary, .content-section p), .document article p { font-size:16px; line-height:1.72; }
.tool-page .notes { gap:24px; }
.tool-page .ad-disclosure { font-size:13px !important; }
.affiliate-creative { height:104px; align-items:center; }
.affiliate-creative a { display:grid; place-items:center; height:100%; max-width:100%; }
.affiliate-creative img { width:auto; height:auto; max-width:100%; max-height:104px; object-fit:contain; }
.tool-page .site-footer {
  display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap;
  gap:12px 24px; max-width:1160px; margin:32px auto 0; padding:16px 24px;
  border:0; border-top:1px solid var(--line); color:var(--muted); letter-spacing:0;
}
.tool-page .site-footer nav { display:flex; flex-wrap:wrap; gap:0 16px; }
.tool-page .site-footer a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; color:inherit; }
.tool-page .site-footer .footer-brand { font-weight:700; color:var(--ink); text-decoration:none; }
.merge-workspace .drop-zone { background:#f5f3fc; }
.merge-controls { grid-template-columns:1fr; }
.merge-controls label { margin:0; }
.clip-actions button { min-width:44px; min-height:44px; }
.merge-page .drop-zone:focus-within, :is(a,button,input,select,summary,.table-scroll):focus-visible { outline:3px solid var(--purple); outline-offset:3px; }
body[data-tool="screenshot"] .drop { background:#f5f3fc; }
body[data-tool="screenshot"] #scrub { accent-color:var(--purple); }
body[data-tool="screenshot"] article { max-width:76ch; margin:32px auto 0; }
body[data-tool="screenshot"] a { color:var(--purple); }
.document { max-width:900px; }
.document article { overflow-wrap:anywhere; }
.table-scroll { max-width:100%; overflow-x:auto; margin:16px 0; }
.table-scroll table { width:100%; min-width:500px; font-size:14px; }
.guide-group { margin-top:28px; }
.guide-group ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; gap:12px; padding:0; }
.guide-group li { background:#faf9fd; border:1px solid var(--line); border-radius:10px; padding:14px; }
.guide-group li a { display:inline-block; font-weight:650; padding:4px 0; }
.guide-group li p { margin:3px 0 0; font-size:14px; }
@media(max-width:760px) {
  .site-header { display:block; padding:12px 16px; }
  .site-header nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:6px; }
  .site-header nav a { justify-content:center; text-align:center; padding-inline:3px; font-size:13px; line-height:1.2; }
  .tool-page main, body[data-tool="screenshot"] main { padding:22px 16px 0; }
  .tool-intro h1, .document h1 { font-size:30px; }
  .workspace { grid-template-columns:1fr; }
  .workspace :is(.source-panel,.settings-panel), .merge-workspace :is(.upload-panel,.result-panel), .tool { padding:16px; }
  .workspace #drop:has(#preview[hidden]) { min-height:212px; }
  .workspace #choose, .tool-page :is(.extract,#zip), .merge-page :is(.choose-button,.download-button) { min-height:48px; }
  .workspace .timeline-actions .secondary { flex:1; padding-inline:8px; }
  .tool-page .results-heading { align-items:stretch; flex-direction:column; gap:8px; }
  .tool-page .result-actions { flex-direction:column-reverse; align-items:stretch; }
  .tool-page .result-actions .secondary { font-size:15px; }
  .merge-page .panel-top { display:grid; gap:4px; }
  .merge-page .tested-cap { text-align:left; }
  .merge-page .clip-row { grid-template-columns:24px minmax(0,1fr); }
  .merge-page .clip-actions { grid-column:2; gap:8px; }
  .merge-page .clip-info strong { white-space:normal; overflow-wrap:anywhere; }
  body[data-tool="screenshot"] .tool .steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  body[data-tool="screenshot"] .tool .steps label { grid-row:1; grid-column:1/-1; }
  .guide-group ul { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
