/* =====================================================================
   SeeB4Coding - Online PDF Compressor
   Design tokens mirror the SeeB4Coding tool suite (brand #0800ff/#8e00e7).
   ===================================================================== */

*,*::before,*::after{box-sizing:border-box}

/* Class selectors below (.field, .total-pill) set display and would otherwise
   outrank the user-agent [hidden] rule, leaving hidden panels on screen. */
[hidden]{display:none!important}

:root{
  --brand-1:#0800ff;
  --brand-2:#8e00e7;
  --grad:linear-gradient(120deg,#0800ff,#8e00e7);
  --bg:#f6f7fb;
  --bg-soft:#eef0f7;
  --surface:#ffffff;
  --surface-2:#f8f9fc;
  --surface-3:#f1f3f9;
  --text:#12142b;
  --text-muted:#5b6076;
  --text-faint:#878ca3;
  --border:#e3e6f0;
  --border-strong:#c9cfe2;
  --ok:#0f9d58;
  --ok-bg:#e7f6ee;
  --warn:#b25c00;
  --warn-bg:#fdf0e0;
  --danger:#c62828;
  --danger-bg:#fdecec;
  --shadow-sm:0 1px 2px rgba(18,20,43,.06),0 2px 8px rgba(18,20,43,.05);
  --shadow-md:0 4px 12px rgba(18,20,43,.07),0 12px 32px rgba(18,20,43,.07);
  --shadow-lg:0 8px 24px rgba(18,20,43,.10),0 24px 56px rgba(18,20,43,.10);
  --radius:14px;
  --radius-sm:10px;
  --radius-lg:20px;
  --wrap:1180px;
  --header-h:60px;
}

html[data-theme="dark"]{
  --bg:#0b0b14;
  --bg-soft:#10101c;
  --surface:#15162a;
  --surface-2:#1b1c33;
  --surface-3:#22243f;
  --text:#eceefb;
  --text-muted:#a2a7c4;
  --text-faint:#7d82a0;
  --border:#2a2c4a;
  --border-strong:#3a3d63;
  --ok:#4ade80;
  --ok-bg:#12301f;
  --warn:#fbbf24;
  --warn-bg:#33260a;
  --danger:#f87171;
  --danger-bg:#3a1414;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.3);
  --shadow-md:0 4px 12px rgba(0,0,0,.45),0 12px 32px rgba(0,0,0,.35);
  --shadow-lg:0 8px 24px rgba(0,0,0,.5),0 24px 56px rgba(0,0,0,.45);
}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:break-word;
}

a{color:var(--brand-2);text-decoration:none}
a:hover{text-decoration:underline}
html[data-theme="dark"] a{color:#b98bff}

h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em;font-weight:750;letter-spacing:-.02em}

img,canvas{max-width:100%;display:block}

:focus-visible{outline:3px solid var(--brand-2);outline-offset:2px;border-radius:6px}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--surface);color:var(--text);
  padding:12px 18px;border-radius:0 0 var(--radius-sm) 0;
  box-shadow:var(--shadow-md);font-weight:600;
}
.skip:focus{left:0}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ----------------------------------------------------------------- header */

.site-header{
  position:sticky;top:0;z-index:60;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  .site-header{
    background:color-mix(in srgb,var(--surface) 86%,transparent);
    backdrop-filter:saturate(180%) blur(14px);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
  }
}
.site-header .wrap{
  height:var(--header-h);
  display:flex;align-items:center;gap:14px;
}
.back-link{
  display:grid;place-items:center;
  width:38px;height:38px;flex:0 0 auto;
  border-radius:11px;color:var(--text-muted);
  border:1px solid var(--border);background:var(--surface);
  transition:color .15s,border-color .15s,transform .15s;
}
.back-link:hover{color:var(--brand-2);border-color:var(--border-strong);transform:translateX(-2px);text-decoration:none}
.back-link svg{width:19px;height:19px}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{height:30px;width:auto}
html[data-theme="dark"] .brand img{filter:brightness(0) invert(1)}
.header-spacer{flex:1 1 auto}

.icon-btn{
  display:grid;place-items:center;
  width:38px;height:38px;flex:0 0 auto;
  border-radius:11px;cursor:pointer;
  color:var(--text-muted);
  border:1px solid var(--border);background:var(--surface);
  transition:color .15s,border-color .15s,background .15s;
}
.icon-btn:hover{color:var(--brand-2);border-color:var(--border-strong);background:var(--surface-2)}
.icon-btn svg{width:19px;height:19px}
.icon-btn .moon{display:none}
html[data-theme="dark"] .icon-btn .sun{display:none}
html[data-theme="dark"] .icon-btn .moon{display:block}

/* ------------------------------------------------------------------- hero */

.hero{padding:44px 0 26px;text-align:center}
.hero h1{
  font-size:clamp(1.9rem,4.6vw,3rem);
  background:var(--grad);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  margin-bottom:.35em;
}
.hero .lede{
  font-size:clamp(1rem,2.1vw,1.15rem);
  color:var(--text-muted);
  max-width:64ch;margin:0 auto 22px;
}
.badges{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 13px;border-radius:999px;
  background:var(--surface);border:1px solid var(--border);
  font-size:.8rem;font-weight:600;color:var(--text-muted);
  box-shadow:var(--shadow-sm);
}
.badge svg{width:14px;height:14px;color:var(--ok);flex:0 0 auto}

/* ------------------------------------------------------------------- card */

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:22px;
  margin-bottom:26px;
}

/* --------------------------------------------------------------- dropzone */

.dropzone{
  position:relative;
  border:2px dashed var(--border-strong);
  border-radius:var(--radius);
  background:var(--surface-2);
  padding:40px 22px;
  text-align:center;
  cursor:pointer;
  transition:border-color .18s,background .18s,transform .18s;
}
.dropzone:hover{border-color:var(--brand-2);background:var(--surface-3)}
.dropzone.is-over{
  border-color:var(--brand-2);
  background:color-mix(in srgb,var(--brand-2) 8%,var(--surface-2));
  transform:scale(1.008);
}
.dropzone input[type="file"]{
  position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;
}
.dz-icon{
  width:56px;height:56px;margin:0 auto 14px;
  display:grid;place-items:center;border-radius:16px;
  background:var(--grad);color:#fff;
  box-shadow:0 8px 20px rgba(142,0,231,.32);
}
.dz-icon svg{width:27px;height:27px}
.dz-title{font-size:1.12rem;font-weight:700;margin:0 0 5px}
.dz-sub{font-size:.88rem;color:var(--text-muted);margin:0}
.dz-sub kbd{
  font:inherit;font-size:.8rem;padding:1px 6px;border-radius:5px;
  background:var(--surface);border:1px solid var(--border);
  box-shadow:0 1px 0 var(--border-strong);
}

/* --------------------------------------------------------------- controls */

.settings{margin-top:22px}
.settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px 22px;
}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
/* :not(.switch-row) so toggle captions keep sentence case */
.field > label:not(.switch-row),.field-label{
  font-size:.78rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--text-faint);
}
/* Four mode names need more room than one auto-fit track gives them. */
.field-mode{grid-column:span 2}
@media (max-width:640px){.field-mode{grid-column:auto}}
.hint{font-size:.79rem;color:var(--text-muted);margin:0}

.seg{
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;
  gap:4px;padding:4px;
  background:var(--surface-3);border-radius:12px;
  border:1px solid var(--border);
}
.seg button{
  font:inherit;font-size:.85rem;font-weight:650;
  padding:9px 6px;border:0;border-radius:9px;cursor:pointer;
  background:transparent;color:var(--text-muted);
  transition:background .15s,color .15s,box-shadow .15s;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.seg button:hover{color:var(--text)}
.seg button[aria-pressed="true"]{
  background:var(--surface);color:var(--brand-2);
  box-shadow:var(--shadow-sm);
}
html[data-theme="dark"] .seg button[aria-pressed="true"]{color:#b98bff}

input[type="text"],input[type="number"],select{
  font:inherit;font-size:.92rem;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--surface);color:var(--text);
  width:100%;min-width:0;
  transition:border-color .15s,box-shadow .15s;
}
input[type="text"]:focus,input[type="number"]:focus,select:focus{
  outline:none;border-color:var(--brand-2);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-2) 18%,transparent);
}
input[type="range"]{
  width:100%;accent-color:var(--brand-2);height:22px;cursor:pointer;
}
.range-row{display:flex;align-items:center;gap:12px}
.range-val{
  flex:0 0 auto;min-width:52px;text-align:right;
  font-variant-numeric:tabular-nums;font-weight:700;font-size:.9rem;
  color:var(--brand-2);
}
html[data-theme="dark"] .range-val{color:#b98bff}

.switch-row{
  display:flex;align-items:flex-start;gap:11px;
  padding:9px 0;cursor:pointer;
}
.switch-row input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  flex:0 0 auto;position:relative;
  width:40px;height:23px;margin:1px 0 0;border-radius:999px;
  background:var(--border-strong);cursor:pointer;
  transition:background .18s;
}
.switch-row input[type="checkbox"]::after{
  content:"";position:absolute;top:3px;left:3px;
  width:17px;height:17px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);
  transition:transform .18s;
}
.switch-row input[type="checkbox"]:checked{background:var(--brand-2)}
.switch-row input[type="checkbox"]:checked::after{transform:translateX(17px)}
.switch-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.switch-text b{font-size:.9rem;font-weight:650}
.switch-text span{font-size:.79rem;color:var(--text-muted)}

.mode-note{
  margin-top:14px;padding:11px 14px;
  border-radius:var(--radius-sm);
  background:var(--surface-3);
  border-left:3px solid var(--brand-2);
  font-size:.85rem;color:var(--text-muted);
}
.mode-note b{color:var(--text)}

.advanced{margin-top:18px;border-top:1px solid var(--border);padding-top:4px}
.advanced summary{
  cursor:pointer;list-style:none;padding:12px 0;
  font-size:.86rem;font-weight:650;color:var(--text-muted);
  display:flex;align-items:center;gap:9px;
}
.advanced summary::-webkit-details-marker{display:none}
.advanced summary::before{
  content:"";width:7px;height:7px;flex:0 0 auto;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg);transition:transform .18s;margin-left:3px;
}
.advanced[open] summary::before{transform:rotate(45deg)}
.advanced summary:hover{color:var(--brand-2)}

/* ---------------------------------------------------------------- buttons */

.btn{
  font:inherit;font-weight:700;font-size:.94rem;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 20px;border-radius:var(--radius-sm);
  border:1px solid transparent;cursor:pointer;
  transition:transform .12s,box-shadow .15s,background .15s,color .15s,opacity .15s;
  white-space:nowrap;
}
.btn svg{width:17px;height:17px;flex:0 0 auto}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}

.btn-primary{background:var(--grad);color:#fff;box-shadow:0 4px 14px rgba(142,0,231,.3)}
.btn-primary:hover:not(:disabled){box-shadow:0 7px 22px rgba(142,0,231,.42)}

.btn-ghost{background:var(--surface);color:var(--text);border-color:var(--border)}
.btn-ghost:hover:not(:disabled){border-color:var(--border-strong);background:var(--surface-2)}

.btn-quiet{background:transparent;color:var(--text-muted);border-color:transparent;padding:11px 14px}
.btn-quiet:hover:not(:disabled){color:var(--danger);background:var(--danger-bg)}

.btn-sm{padding:7px 13px;font-size:.84rem}
.btn-sm svg{width:15px;height:15px}

.actions-row{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin-top:22px;padding-top:20px;border-top:1px solid var(--border);
}
.actions-row .grow{flex:1 1 auto}

/* ------------------------------------------------------------------ files */

.file-summary{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;
  margin-bottom:14px;
}
.file-summary h2{margin:0;font-size:1.05rem}
.total-pill{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 14px;border-radius:999px;
  background:var(--ok-bg);color:var(--ok);
  font-weight:750;font-size:.86rem;
}

.file-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}

.file-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:14px;align-items:center;
  padding:13px 15px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius);
  transition:border-color .15s,box-shadow .15s;
}
.file-row:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.file-row.is-error{border-color:var(--danger);background:var(--danger-bg)}
.file-row.is-done{border-color:color-mix(in srgb,var(--ok) 45%,var(--border))}

.thumb{
  width:52px;height:66px;flex:0 0 auto;
  border-radius:7px;overflow:hidden;
  background:var(--surface-3);
  border:1px solid var(--border);
  display:grid;place-items:center;
  color:var(--text-faint);
}
.thumb canvas,.thumb img{width:100%;height:100%;object-fit:cover}
.thumb svg{width:20px;height:20px}

.file-main{min-width:0}
.file-name{
  font-weight:650;font-size:.94rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  margin:0 0 4px;
}
.file-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;
  font-size:.83rem;color:var(--text-muted);
  font-variant-numeric:tabular-nums;
}
.file-meta .arrow{color:var(--text-faint)}
.file-meta .new-size{font-weight:700;color:var(--text)}
.save-pill{
  padding:2px 9px;border-radius:999px;
  font-size:.77rem;font-weight:750;
  background:var(--ok-bg);color:var(--ok);
}
.save-pill.is-flat{background:var(--warn-bg);color:var(--warn)}
.err-text{color:var(--danger);font-weight:600;font-size:.83rem}

.bar{
  height:5px;border-radius:999px;margin-top:8px;
  background:var(--border);overflow:hidden;
}
.bar > i{
  display:block;height:100%;width:0;border-radius:999px;
  background:var(--grad);
  transition:width .25s ease;
}
.file-row[data-state="idle"] .bar,
.file-row[data-state="done"] .bar,
.file-row[data-state="error"] .bar{display:none}

.file-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}

/* ---------------------------------------------------------------- compare */

.compare{margin-top:12px;border-top:1px dashed var(--border);padding-top:12px}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.compare-cell{text-align:center;min-width:0}
.compare-cell h4{
  font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;
  color:var(--text-faint);margin:0 0 7px;
}
.compare-cell canvas{
  width:100%;height:auto;border-radius:8px;
  border:1px solid var(--border);background:#fff;
}
.compare-cell .ph{
  display:grid;place-items:center;min-height:120px;
  border:1px dashed var(--border);border-radius:8px;
  color:var(--text-faint);font-size:.82rem;
}

/* ------------------------------------------------------------ page picker */

.pagepick{margin-top:12px;border-top:1px dashed var(--border);padding-top:12px}
.pagepick-bar{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;
  font-size:.83rem;color:var(--text-muted);
}
.pagepick-bar .spacer{flex:1 1 auto}
.pagepick-grid{
  display:grid;gap:9px;
  grid-template-columns:repeat(auto-fill,minmax(74px,1fr));
  max-height:330px;overflow-y:auto;padding:2px;
}
.pagepick-item{
  position:relative;padding:0;border:2px solid var(--border);
  border-radius:8px;overflow:hidden;cursor:pointer;background:var(--surface);
  aspect-ratio:3/4;transition:border-color .15s,opacity .15s;
}
.pagepick-item canvas{width:100%;height:100%;object-fit:cover;display:block}
.pagepick-item .no{
  position:absolute;left:3px;bottom:3px;
  background:rgba(0,0,0,.68);color:#fff;
  font-size:.66rem;font-weight:700;
  padding:1px 5px;border-radius:4px;line-height:1.5;
}
.pagepick-item[aria-pressed="true"]{border-color:var(--brand-2)}
/* Fade the page itself, not the overlay - filtering the whole button would
   desaturate the strike-through along with it. */
.pagepick-item[aria-pressed="false"] canvas{opacity:.3;filter:grayscale(1)}
.pagepick-item[aria-pressed="false"] .no{background:var(--danger)}
.pagepick-item[aria-pressed="false"]::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom right,
    transparent calc(50% - 1px), var(--danger) calc(50% - 1px),
    var(--danger) calc(50% + 1px), transparent calc(50% + 1px));
}

/* ------------------------------------------------------------------ prose */

.content{margin:0 auto 34px;max-width:var(--wrap)}
.content h2{font-size:clamp(1.35rem,2.6vw,1.75rem);margin-top:0}
.content h3{font-size:1.06rem;margin-top:1.5em}
.content p,.content li{color:var(--text-muted);max-width:78ch}
.content li{margin-bottom:.4em}

.answer-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-left:4px solid var(--brand-2);
  border-radius:var(--radius);
  padding:20px 22px;margin-bottom:30px;
  box-shadow:var(--shadow-sm);
}
.answer-box h2{font-size:1.15rem;margin-bottom:.5em}
.answer-box p{margin:0 0 .8em}
.answer-box p:last-child{margin-bottom:0}

.steps{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  list-style:none;padding:0;margin:0;counter-reset:step;
}
.steps li{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:18px;
  box-shadow:var(--shadow-sm);counter-increment:step;
}
.steps li::before{
  content:counter(step);
  display:grid;place-items:center;
  width:30px;height:30px;margin-bottom:10px;
  border-radius:9px;background:var(--grad);color:#fff;
  font-weight:800;font-size:.9rem;
}
.steps li b{display:block;color:var(--text);margin-bottom:4px}

.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:16px 0}
table{
  width:100%;border-collapse:collapse;min-width:560px;
  font-size:.9rem;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;
}
th,td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--border)}
th{background:var(--surface-2);font-weight:700;font-size:.82rem;
   text-transform:uppercase;letter-spacing:.03em;color:var(--text-faint)}
tbody tr:last-child td{border-bottom:0}
td{color:var(--text-muted)}
td:first-child{color:var(--text);font-weight:600}

details.faq{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);margin-bottom:9px;overflow:hidden;
}
details.faq summary{
  cursor:pointer;list-style:none;padding:15px 18px;
  font-weight:650;font-size:.95rem;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-size:1.3rem;color:var(--text-muted);line-height:1;flex:0 0 auto}
details.faq[open] summary::after{content:"\2212"}
details.faq summary:hover{background:var(--surface-2)}
details.faq .answer{padding:0 18px 16px;margin:0;font-size:.91rem;color:var(--text-muted);max-width:78ch}

.tool-links{display:flex;flex-wrap:wrap;gap:9px}
.tool-links a{
  padding:8px 15px;border-radius:999px;
  background:var(--surface);border:1px solid var(--border);
  font-size:.87rem;font-weight:600;color:var(--text-muted);
  box-shadow:var(--shadow-sm);
  transition:color .15s,border-color .15s,transform .15s;
}
.tool-links a:hover{color:var(--brand-2);border-color:var(--border-strong);transform:translateY(-1px);text-decoration:none}

/* --------------------------------------------------------------- ad slots */

.ad-slot{margin:0 auto 30px;max-width:var(--wrap);min-height:1px;text-align:center}

/* ----------------------------------------------------------------- footer */

.site-footer{
  border-top:1px solid var(--border);
  background:var(--surface);
  padding:26px 0;margin-top:20px;
}
.site-footer p{margin:0;font-size:.87rem;color:var(--text-muted);text-align:center}

/* ----------------------------------------------------------------- toasts */

#toasts{
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);
  z-index:120;display:flex;flex-direction:column;gap:8px;
  align-items:center;pointer-events:none;width:calc(100% - 32px);max-width:440px;
}
.toast{
  background:var(--text);color:var(--bg);
  padding:11px 18px;border-radius:999px;
  font-size:.88rem;font-weight:600;
  box-shadow:var(--shadow-lg);
  animation:toastIn .22s ease;
  max-width:100%;text-align:center;
}
.toast.is-error{background:var(--danger);color:#fff}
.toast.is-ok{background:var(--ok);color:#fff}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* --------------------------------------------------------------- noscript */

.noscript{
  background:var(--warn-bg);color:var(--warn);
  border:1px solid currentColor;border-radius:var(--radius);
  padding:16px 18px;margin-bottom:22px;font-weight:600;
}

/* ------------------------------------------------------------- responsive */

@media (max-width:820px){
  .compare-grid{grid-template-columns:1fr}
}

@media (max-width:640px){
  :root{--header-h:56px}
  .wrap{padding:0 14px}
  .hero{padding:30px 0 20px}
  .card{padding:16px;border-radius:var(--radius)}
  .dropzone{padding:28px 14px}
  .dz-icon{width:48px;height:48px}
  .seg{grid-auto-flow:row;grid-auto-columns:auto}
  .file-row{
    grid-template-columns:44px minmax(0,1fr);
    grid-template-areas:"thumb main" "actions actions";
    row-gap:10px;
  }
  .thumb{grid-area:thumb;width:44px;height:56px}
  .file-main{grid-area:main}
  .file-actions{grid-area:actions;justify-content:flex-end;flex-wrap:wrap}
  .actions-row .btn{flex:1 1 auto}
  .brand img{height:26px}
}

@media (max-width:400px){
  .badge{font-size:.74rem;padding:5px 10px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important;
  }
}

@media print{
  .site-header,.dropzone,.settings,.actions-row,.file-actions,
  #toasts,.site-footer,.ad-slot,.badges{display:none!important}
  .card{box-shadow:none;border:0}
  body{background:#fff}
}
