/* Light, indigo-primary palette with magenta used sparingly. No dark mode. */
:root {
  color-scheme: light only;
  --bg: #fafafc;
  --surface: #ffffff;
  --surface-2: #f3f4fb;
  --text: #16162e;
  --body: #4b4b66;
  --muted: #6b6b86;
  --border: #e7e7f0;
  --border-2: #d6d6e6;
  --primary: #4449a6;
  --primary-hover: #343884;
  --primary-soft: #eef0fa;
  --accent: #c026d3;
  --success: #178a50;
  --danger: #dc2626;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(22, 22, 46, .05), 0 4px 16px rgba(22, 22, 46, .05);
  --shadow-2: 0 12px 32px rgba(22, 22, 46, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Footer always at the bottom of the window, even on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -.022em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, canvas, video { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(22, 22, 46, .07); }
.header-inner { display: flex; align-items: center; gap: 8px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--body);
  padding: 9px 13px; border-radius: 9px; cursor: pointer;
}
.nav-link:hover, .nav-item:focus-within .nav-link { color: var(--text); background: var(--primary-soft); text-decoration: none; }
.caret { font-size: .75em; color: var(--muted); }
.nav-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-2); padding: 6px;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { display: block; }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--body); }
.nav-menu a:hover { background: var(--primary-soft); color: var(--text); text-decoration: none; }
.main-nav .nav-cta { margin-left: 10px; padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.nav-toggle {
  display: none; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2);
    padding: 10px 18px 18px; max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-link { width: 100%; text-align: left; padding: 13px 10px; font-size: 15.5px; }
  .main-nav .nav-cta { margin: 10px 0 0; }
  .nav-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-item.open .nav-menu { display: block; }
  .nav-item:hover .nav-menu { display: none; }
  .nav-item.open:hover .nav-menu { display: block; }
}

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(1000px 400px at 50% -10%, var(--primary-soft), transparent); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; margin: 0 auto 1.2em; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.badge { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }

/* Sections */
.section { padding: 40px 16px; }
.section-title { font-size: 1.8rem; text-align: center; margin-bottom: 28px; }
.band { background: var(--surface); border-block: 1px solid var(--border); padding: 56px 0; }
.cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.cat-head h2 { margin: 0; font-size: 1.5rem; }
.cat-head p { margin: 0; color: var(--muted); }
.cat-icon { font-size: 2rem; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.tool-tile span:last-child { color: var(--muted); font-size: .92rem; }
.tile-icon { font-size: 1.6rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.section .feature { background: var(--surface); }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }
.flow-title { text-align: center; margin-top: 40px; }
.flow { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.flow li { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); background: var(--primary-soft); }
.flow span { color: var(--muted); }
.cta { text-align: center; padding-bottom: 72px; }
.cta p { color: var(--muted); }

/* Ecosystem orbit (homepage hero) */
.eco-board { position: relative; min-height: 420px; overflow: hidden; }
.orbit-ring { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); width: 310px; height: 310px; border: 1.5px dashed var(--border-2); border-radius: 50%; }
.orbit-center { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; }
.orbit-node {
  position: absolute; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap; min-width: 85px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow); color: var(--text); font-weight: 600; font-size: 13px;
}
.orbit-node:hover { text-decoration: none; }
.orbit-node .orbit-ico { color: var(--acc); display: inline-flex; }
.eco-note { position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
@media (max-width: 1000px) { .eco-board { min-height: 380px; } }
@media (max-width: 640px) { .eco-board { min-height: 330px; } .orbit-ring { width: 240px; height: 240px; } .orbit-center img { width: 56px; height: 56px; } }

.eco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.eco-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.eco-card:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }
.eco-card span:last-child { color: var(--muted); font-size: .9rem; }
.cat-hero-icon { font-size: 2.6rem; margin-bottom: 6px; }
.tool-search { max-width: 520px; margin: 0 auto 8px; }
.tool-search input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 12px 20px; }
.tool-section { margin-top: 32px; }
.group-title { font-size: 1.3rem; margin-bottom: 14px; }
.preset-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preset-links .chip:hover { text-decoration: none; }
.cat-link { color: var(--text); }
.coming-soon { text-align: center; padding: 48px 24px; }
.nav-all { font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; color: var(--primary) !important; }
.footer-grid h4 a { color: var(--text); }

/* Buttons & form controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15px; border-radius: 12px; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn-primary.btn-lg:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(68, 73, 166, .28); }
.btn-sm { padding: 6px 10px; font-size: .88rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

label { font-weight: 500; font-size: .93rem; }
input[type=text], input[type=number], input[type=password], select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* Tool page */
.tool-hero { padding: 32px 0 8px; text-align: center; }
.tool-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.tool-wrap { max-width: 900px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.privacy-note { text-align: center; color: var(--muted); font-size: .9rem; }
.related { padding: 32px 16px 56px; }
.related h2 { font-size: 1.4rem; }
.prose { max-width: 760px; margin-bottom: 56px; line-height: 1.7; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 16px;
  text-align: center; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-icon { font-size: 2.4rem; }
.dropzone .dz-hint { color: var(--muted); font-size: .9rem; }
.dropzone input { display: none; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.error { color: var(--danger); font-weight: 500; }
.ok { color: var(--success); font-weight: 600; }
.status { margin-top: 12px; min-height: 1.4em; }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.preview { background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.preview img, .preview canvas, .preview video { max-height: 340px; border-radius: 8px; display: block; margin: 0 auto 8px; }
.preview .meta { font-size: .88rem; color: var(--muted); }

.result {
  margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--primary-soft);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.result img { max-height: 120px; border-radius: 8px; }
.result .r-info { flex: 1; min-width: 180px; }

.file-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.file-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface-2); border-radius: 10px;
}
.file-list li .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.icon-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.icon-btn:hover { border-color: var(--primary); }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .2s; }

.output-box { position: relative; }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.hash-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hash-row:last-child { border-bottom: 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.crop-stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; }
.crop-stage img { display: block; max-height: 460px; max-width: 100%; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; }
.crop-box .handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; background: #fff; border-radius: 50%; cursor: nwse-resize; border: 2px solid var(--primary); }
.crop-wrap { text-align: center; overflow: hidden; }

.wave-wrap { position: relative; margin-top: 16px; user-select: none; touch-action: none; }
.wave-wrap canvas { width: 100%; height: 140px; display: block; background: var(--surface-2); border-radius: 10px; }
.sel { position: absolute; top: 0; bottom: 0; background: rgba(79, 70, 229, .18); border-left: 3px solid var(--primary); border-right: 3px solid var(--primary); pointer-events: none; }
.sel.cut { background: rgba(220, 38, 38, .18); border-color: #dc2626; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); pointer-events: none; }

.strength { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.strength > div { height: 100%; transition: width .2s, background .2s; }
.pw-out { font-size: 1.3rem; padding: 14px; background: var(--surface-2); border-radius: 10px; min-height: 58px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a { font-size: 14px; color: var(--body); }
.site-footer a:hover { color: var(--primary); text-decoration: none; }
.footer-brand .brand { font-size: 20px; color: var(--text); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .card { padding: 16px; } .hash-row { grid-template-columns: 1fr auto; } .hash-row > :first-child { grid-column: 1 / -1; } }
.see-all { margin-top: 14px; font-weight: 600; }
.crop-stage .lasso { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.draw-canvas { display: block; max-width: 100%; height: auto; cursor: crosshair; touch-action: none; border-radius: 8px; }
.layer-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.picked { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.swatch { width: 96px; height: 96px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); flex: none; }
.picked-values { flex: 1; min-width: 240px; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-family: ui-monospace, Consolas, monospace; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.color-chip span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.dpi-report { margin-top: 12px; }
.meta-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 12px; }
.meta-table th, .meta-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }
.meta-table th { width: 38%; color: var(--muted); font-weight: 500; }
.sig-pad-wrap { background: #fff; border: 2px dashed var(--border); border-radius: 12px; overflow: hidden; }
.sig-pad { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.sig-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.sig-font { font-size: 2rem; padding: 14px; background: #fff; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-font.active, .sig-font:hover { border-color: var(--primary); }
.icon-previews { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; padding: 18px; border-radius: 12px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.icon-prev { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.preview.checker canvas { background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.layout-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.layout-btn { position: relative; width: 64px; height: 64px; padding: 0; border: 2px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; overflow: hidden; }
.layout-btn span { position: absolute; box-sizing: border-box; border: 2px solid var(--surface); background: var(--muted); opacity: .45; }
.layout-btn.active { border-color: var(--primary); }
.layout-btn.active span { background: var(--primary); opacity: .7; }

/* ---------- Landing page ---------- */
.ico { flex: none; display: inline-block; vertical-align: middle; }
.section-lg { padding-block: clamp(3.4rem, 7.5vw, 6rem); }
.section-lg.pt-0 { padding-top: 0; }
.home-hero {
  background: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 1.5px) 0 0 / 24px 24px, var(--surface);
  padding: clamp(3.4rem, 7vw, 5.6rem) 0 clamp(2.6rem, 5vw, 4rem);
}
.home-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 4.6vw + .6rem, 3.55rem); font-weight: 800; max-width: 14ch; margin: 0; }
.home-hero .accent { color: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--body); box-shadow: var(--shadow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.lead-left { color: var(--body); font-size: 17.5px; max-width: 33rem; margin: 20px 0 30px; }
.hero-note { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 13.5px; max-width: 30rem; margin: 24px 0 0; }
.hero-note .ico { color: var(--success); margin-top: 3px; }

.sec-head { max-width: 640px; margin-bottom: 46px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .h2-left { font-size: clamp(1.6rem, 2.6vw + .5rem, 2.25rem); font-weight: 800; margin: 0; }
.sec-head > p:not(.eyebrow) { margin: 14px 0 0; font-size: 16.5px; color: var(--body); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow.center { justify-content: center; }
.sub-left { color: var(--body); margin: 14px 0 22px; }

.ico-tile { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--acc, var(--primary)); background: color-mix(in srgb, var(--acc, var(--primary)) 12%, transparent); flex: none; }
.eco-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-card2 { display: flex; flex-direction: column; gap: 9px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.eco-card2:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-2); }
.eco-card2 .ico-tile { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); margin-bottom: 4px; }
.eco-card2 strong { font-size: 16.5px; font-weight: 700; }
.eco-card2 code { font-size: 12px; color: var(--muted); }
.eco-desc { color: var(--body); font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.explore { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 13.5px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; transition: color .16s ease; }
.explore .ico { transition: transform .16s ease; }
.eco-card2:hover .explore { color: var(--primary); }
.eco-card2:hover .explore .ico { transform: translateX(3px); }

.stats-band { background: var(--surface-2); border-block: 1px solid var(--border); }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.home-stats strong { display: block; font-size: clamp(2rem, 3.6vw + .6rem, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.2; }
.home-stats span { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.home-stats small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--body); }
.checks li:last-child { border-bottom: 0; }
.checks li .ico { color: var(--success); margin-top: 3px; }
.checks strong { color: var(--text); font-weight: 600; }
.life-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.life-head { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.life-head .ico { color: var(--primary); }
.life-card ol { list-style: none; padding: 0; margin: 0; }
.life-card li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.life-card li:last-child { padding-bottom: 0; }
.life-card li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; background: var(--border); }
.life-card li div { display: flex; flex-direction: column; }
.life-card li strong { font-size: 14.5px; font-weight: 700; }
.life-card small { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.step-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border); flex: none; }
.life-card li:last-child .step-ico { background: #eafaf1; color: var(--success); }

.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pop-item { display: flex; align-items: flex-start; gap: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.pop-item:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-2); }
.pop-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--bg); border: 1px solid var(--border); color: var(--acc); font-size: 20px; }
.pop-text { flex: 1; display: flex; flex-direction: column; }
.pop-text strong { font-size: 15.5px; font-weight: 700; transition: color .16s ease; }
.pop-text small { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.pop-arrow { align-self: center; color: var(--muted); transition: color .16s ease, transform .16s ease; }
.pop-item:hover .pop-text strong, .pop-item:hover .pop-arrow { color: var(--primary); }
.pop-item:hover .pop-arrow { transform: translateX(3px); }

.promises { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.promises div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.why-ico { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.promises strong { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.promises small { font-size: 13px; color: var(--muted); }

.cta-band { text-align: center; padding: clamp(2.6rem, 5vw, 4rem) 24px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw + .4rem, 2.1rem); font-weight: 800; max-width: 24ch; margin: 0 auto; }
.cta-band p { color: var(--body); max-width: 40ch; margin: 12px auto 26px; }

@media (max-width: 1000px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .eco-cards, .pop-grid { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .eco-cards, .pop-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
}
.bi { line-height: 1; vertical-align: -0.125em; }
.ico { display: inline-block; line-height: 1; }
.dz-icon .bi { font-size: 2.6rem; color: var(--primary); }
.tile-icon .bi, .cat-icon .bi, .cat-hero-icon .bi { color: var(--primary); }
.caret { font-size: .7em; color: var(--muted); margin-left: 2px; }
.icon-btn .bi { font-size: .9rem; }

/* ---------- Category landing ---------- */
.cat-hero2 { text-align: center; padding: 40px 0 36px; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--border); }
.cat-hero2 h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 10px; }
.ico-tile.big { width: 64px; height: 64px; border-radius: 18px; font-size: 1.9rem; }
.ico-tile .bi { font-size: 1.15rem; }
.ico-tile.big .bi { font-size: 1.9rem; }
.cat-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 6px 0 22px; }
.cat-stats strong { color: var(--text); }
.cat-stats .bi { color: var(--success); }
.search-box { display: flex; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; padding: 0 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); cursor: text; }
.search-box:focus-within { border-color: var(--acc); }
.search-box .bi { color: var(--muted); font-size: 1.1rem; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 15px 0; min-width: 0; }

.section-nav { position: sticky; top: 64px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.section-nav-inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); border: 1px solid transparent; }
.section-nav a:hover { text-decoration: none; color: var(--text); background: var(--surface); border-color: var(--border); }

.cat-body { padding-top: 8px; padding-bottom: 56px; }
.cat-body .tool-section { margin-top: 0; padding-top: 36px; scroll-margin-top: 120px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 1.3rem; margin: 0; }
.section-head .count { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.section-head .ico-tile { width: 36px; height: 36px; }

.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tool-card2 { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card2:hover { text-decoration: none; border-color: var(--acc); box-shadow: var(--shadow); transform: translateY(-1px); }
.tc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-text small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.tc-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.tool-card2:hover .tc-arrow { color: var(--acc); transform: translateX(3px); }

.preset-panel { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); }
.preset-label { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 6px; }
.preset-label .bi { color: #d97706; }
.preset-panel .preset-links { margin-top: 0; gap: 6px; }
.preset-panel .preset-links a { font-size: .84rem; padding: 5px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.preset-panel .preset-links a:hover { text-decoration: none; border-color: var(--acc); color: var(--acc); }
.no-results { text-align: center; padding: 48px 0; color: var(--muted); }
.no-results .bi { font-size: 2rem; }
.coming-soon .bi { font-size: 2.4rem; color: var(--primary); }
@media (max-width: 640px) { .preset-panel { flex-direction: column; gap: 8px; } .preset-label { padding-top: 0; } }

/* ---------- Category directory (folder landing) ---------- */
.cat-bar { background: var(--acc); color: #fff; }
.cat-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.cat-bar-title { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.cat-bar-title:hover { text-decoration: none; }
.cat-bar-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.cat-bar-links a { color: #fff; font-weight: 600; font-size: .9rem; padding: 2px 12px; border-left: 1px solid rgba(255,255,255,.35); }
.cat-bar-links a:first-child { border-left: 0; }
.cat-bar-links a:hover { text-decoration: underline; }

.dir-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding-top: 18px; padding-bottom: 48px; align-items: start; }
.dir-main { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 22px 28px; }
.dir-main h1 { font-size: 1.35rem; margin-bottom: 14px; }
.dir-main h1 .muted { font-size: .95rem; font-weight: 400; }
.dir-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 3px solid color-mix(in srgb, var(--acc) 18%, transparent); border-radius: 8px; background: var(--surface); margin-bottom: 8px; cursor: text; }
.dir-search:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.dir-search .bi { color: var(--muted); }
.dir-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 9px 0; min-width: 0; }
.dir-section { margin-top: 18px; }
.dir-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.dir-section h2 .bi { color: var(--acc); }
.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.dir-link { display: block; text-align: center; padding: 7px 8px; font-size: .86rem; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 55%, var(--border)); border-radius: 3px; background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s, color .12s; }
.dir-link:hover { text-decoration: none; background: var(--acc); color: #fff; }

.dir-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 78px; }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.side-box h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 6px 8px; }
.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.side-grid a { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: .84rem; padding: 9px 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--acc, var(--primary)); }
.side-grid a:hover { text-decoration: none; border-color: var(--acc, var(--primary)); background: var(--surface-2); }
.side-note { display: flex; gap: 10px; padding: 14px; font-size: .88rem; color: var(--muted); }
.side-note .bi { color: var(--success); font-size: 1.3rem; }
.side-note p { margin: 0; }
.dir-main .coming-soon { text-align: center; padding: 48px 12px; }

@media (max-width: 1100px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .dir-wrap { grid-template-columns: 1fr; }
  .dir-side { position: static; }
  .cat-bar-links { display: none; }
}
@media (max-width: 640px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dir-main { padding: 16px; } }
.dir-link { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; display: flex; align-items: center; justify-content: center; min-height: 38px; }

/* ---- PDF tools ---- */
.pv-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 10px; }
.pv-num { font-size: .92rem; color: var(--muted); min-width: 110px; text-align: center; }
.pv-stage { position: relative; overflow: hidden; display: inline-block; max-width: 100%; touch-action: none; user-select: none; box-shadow: var(--shadow); line-height: 0; }
.pv-stage canvas { display: block; max-width: 100%; }
.pv-wrap { text-align: center; }
.draw-rect { position: absolute; border: 2px dashed var(--primary); background: rgba(79, 70, 229, .12); pointer-events: none; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 16px; }
.page-thumb { position: relative; background: var(--surface-2); border: 2px solid transparent; border-radius: 10px; padding: 8px; text-align: center; cursor: grab; }
.page-thumb.dragging { opacity: .4; }
.page-thumb.drop-before { border-left-color: var(--primary); }
.page-thumb.sel { border-color: var(--primary); }
.page-thumb.removed { opacity: .35; }
.page-thumb.removed .pt-img { filter: grayscale(1); }
.page-thumb .pt-img { display: flex; align-items: center; justify-content: center; height: 150px; }
.page-thumb canvas { max-width: 100%; max-height: 150px; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; background: #fff; }
.page-thumb .pt-label { font-size: .8rem; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-thumb .pt-tools { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.page-thumb .pt-tools .icon-btn { width: 28px; height: 28px; }
.page-thumb .pt-check { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; }
.ed-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ed-tools .chip .bi { margin-right: 4px; }
.ed-obj { position: absolute; border: 1px dashed transparent; cursor: move; line-height: 1.2; white-space: pre; }
.ed-obj:hover, .ed-obj.active { border-color: var(--primary); }
.ed-obj img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ed-obj .handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: nwse-resize; display: none; }
.ed-obj .del { position: absolute; right: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-size: 12px; line-height: 20px; padding: 0; cursor: pointer; display: none; }
.ed-obj.active .handle, .ed-obj.active .del { display: block; }
.ed-obj[contenteditable="true"] { cursor: text; outline: none; }
.ed-obj.kind-highlight { mix-blend-mode: multiply; }
.ed-obj.kind-redact { background: #000; }
.ed-obj.kind-whiteout { background: #fff; border-color: #cbd5e1; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 560px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 12px; }
.text-out { width: 100%; min-height: 260px; font: .92rem/1.5 ui-monospace, Consolas, monospace; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.stat-row > div { background: var(--surface-2); border-radius: 12px; padding: 14px; text-align: center; }
.stat-row strong { display: block; font-size: 1.5rem; }
.stat-row span { color: var(--muted); font-size: .85rem; }
.form-fields { display: grid; gap: 12px; margin-top: 12px; }
.form-fields .field label { word-break: break-word; }
.slide-view { background: #000; border-radius: 10px; overflow: hidden; text-align: center; }
.slide-view canvas { max-width: 100%; display: block; margin: 0 auto; }
.slide-view:fullscreen { display: flex; align-items: center; justify-content: center; }
.slide-view:fullscreen canvas { max-height: 100vh; }
.notes { background: var(--surface-2); border-radius: 10px; padding: 12px; margin-top: 10px; white-space: pre-wrap; font-size: .92rem; min-height: 2em; }

/* Audio tools */
.au-wave canvas { cursor: pointer; }
.au-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.au-time { font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-left: auto; }
.seg button { font: inherit; font-size: .88rem; padding: 6px 14px; border: 0; background: var(--surface); color: var(--text); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: var(--primary); color: #fff; }
.au-export { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.au-export .field { min-width: 210px; }
.au-result-media { flex-basis: 100%; width: 100%; }
.au-section { margin-top: 18px; }
.au-section > h3 { font-size: 1rem; margin: 0 0 8px; }
.range-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 12px; align-items: center; margin-top: 10px; }
.range-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.eq-bands { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 12px; text-align: center; }
.eq-band { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.eq-band input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 28px; height: 150px; }
.eq-band output { font-variant-numeric: tabular-nums; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); }
.track-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.track-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.track-list .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.track-list .t-btns { display: flex; gap: 6px; }
.track-list .t-trim { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .88rem; }
.track-list .t-trim input { width: 96px; padding: 5px 8px; }
.rec-panel { text-align: center; padding: 10px 0; }
.rec-time { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); margin-right: 8px; vertical-align: middle; animation: rec-blink 1s infinite; }
@keyframes rec-blink { 50% { opacity: .2; } }
.rec-scope { width: 100%; height: 90px; display: block; background: var(--surface-2); border-radius: 10px; margin-top: 12px; }
.big-num { font-size: 3.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.beat-dots { display: flex; justify-content: center; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.beat-dots span { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); transition: background .05s; }
.beat-dots span.on { background: var(--primary); border-color: var(--primary); }
.beat-dots span.accent { border-color: var(--primary); }
.tag-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-top: 14px; }
.tag-card header { display: flex; gap: 12px; align-items: center; }
.tag-card header .fname { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-cover { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; flex-shrink: 0; }
.mb-results { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mb-results button { width: 100%; text-align: left; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.mb-results button:hover { border-color: var(--primary); }
.media-preview { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; margin: 12px auto 0; background: #000; }
@media (max-width: 600px) {
  .range-row { grid-template-columns: 1fr 60px; }
  .range-row label { grid-column: 1 / -1; }
  .eq-band input[type=range] { height: 120px; width: 22px; }
  .seg { margin-left: 0; }
}

/* Bulk image resizer */
.bk-settings { background: var(--surface-2); border-radius: 12px; padding: 16px; }
.bk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.bk-row:first-child { margin-top: 0; }
.bk-row .seg { margin-left: 0; }
.bk-row input[type=text] { flex: 1; min-width: 200px; width: auto; }
.bk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.bk-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-tip { margin: 8px 0 0; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.bk-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.bk-card.done { border-color: var(--success); }
.bk-thumb { height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.bk-thumb img { max-width: 100%; max-height: 120px; }
.bk-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; }
.bk-card input { padding: 5px 8px; font-size: .88rem; }
.bk-size { display: flex; align-items: center; gap: 4px; }
.bk-size span { color: var(--muted); }
.bk-meta { word-break: break-word; font-size: .8rem; }
.bk-dl { width: 100%; }
@media (max-width: 520px) { .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Base64 tools */
.b64-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.b64-file-info { flex: 1; min-width: 160px; word-break: break-word; }
.b64-prev { width: 88px; height: 88px; flex: none; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); font-size: 2rem; color: var(--muted); }
.b64-prev img, .b64-prev video { max-width: 100%; max-height: 100%; object-fit: contain; }
.b64-prev.wide { width: 300px; max-width: 100%; height: auto; padding: 8px; }
.b64-prev audio { width: 100%; }
.b64-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.b64-blocks { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.b64-block-head { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.b64-block-head h3 { font-size: 1rem; margin: 0; }
.b64-block-btns { display: flex; gap: 6px; margin-left: auto; }
.b64-block textarea { width: 100%; min-height: 96px; word-break: break-all; }
.b64-block p { margin: 6px 0 0; }
.b64-checker { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--border); border-radius: 12px; }
.b64-svg-top { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; margin-top: 16px; }
.b64-svg-top .b64-checker { width: 140px; height: 140px; display: grid; place-items: center; padding: 10px; flex: none; }
.b64-svg-top .b64-checker img { max-width: 100%; max-height: 100%; }
.b64-view { margin-top: 16px; text-align: center; }
.b64-view.b64-checker { padding: 14px; }
.b64-view img { max-width: 100%; max-height: 420px; }
.b64-view iframe { width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.b64-view audio { width: 100%; }
.b64-view video { max-width: 100%; max-height: 420px; border-radius: 12px; }
.b64-text { text-align: left; max-height: 300px; overflow: auto; padding: 12px; background: var(--surface-2); border-radius: 10px; white-space: pre-wrap; word-break: break-word; margin: 0; }
.b64-verdict { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.b64-verdict > i { font-size: 1.4rem; line-height: 1; }
.b64-verdict.good { border-color: var(--success); color: var(--success); }
.b64-verdict.bad { border-color: var(--danger); color: var(--danger); }
.b64-verdict div { color: var(--text); }
.b64-table-wrap { overflow-x: auto; margin-top: 14px; }
.b64-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.b64-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }
.b64-table td:first-child { white-space: nowrap; font-weight: 600; font-size: .8rem; width: 1%; }
.b64-table td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.b64-table .pass td:first-child { color: var(--success); }
.b64-table .fail td:first-child { color: var(--danger); }
.b64-table .info td:first-child { color: var(--muted); }
.b64-table code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 520px) { .b64-table td:nth-child(2) { white-space: normal; } .b64-view iframe { height: 380px; } }

/* ---------- Category landing: coloured sub-site theme ---------- */
body.cat-theme { background: #eff0fa; color: #262626; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.cat-theme main { display: block; }
.cat-header { position: relative; background: var(--acc); border: 0; box-shadow: 0 4px 5px -1px rgba(0, 0, 0, .25); backdrop-filter: none; -webkit-backdrop-filter: none; }
.cat-header .header-inner { height: auto; min-height: 62px; padding: 10px 1vw 10px 14px; }
.cat-header .brand { gap: 9px; color: #fff; }
.cat-header .brand b { font-size: 25px; letter-spacing: 0; }
.cat-header .main-nav { gap: 0; flex-wrap: wrap; justify-content: flex-end; }
.cat-header .nav-link { color: #fff; font-weight: 700; font-size: min(1.2vw, 16px); padding: 0 .6vw; line-height: 43px; border-radius: 0; background: none; border-right: 1px solid rgba(213, 213, 213, .66); }
.cat-header .main-nav > :last-child, .cat-header .main-nav > :last-child .nav-link { border-right: 0; }
.cat-header .nav-link:hover, .cat-header .nav-item:focus-within .nav-link { color: #ffeb3b; background: none; }
.cat-header .mob-only { display: none; }
.cat-header .nav-menu { left: 0; right: auto; min-width: 230px; margin-top: -6px; padding: 5px 10px; border: 0; border-top: 3px solid #d31b5a; border-radius: 0; box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0; z-index: 6; }
.cat-header .nav-menu a { margin: 5px; padding: 5px; font-size: 15px; color: #505050; }
.cat-header .nav-menu a:hover { color: #4449a6; background: #eff0fa; border-radius: 5px; }
.cat-header .arrow { display: inline-block; padding: 3px; margin: 0 2px; position: relative; top: -2px; border: solid #ccc; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cat-header .arrow.right { border-color: #505050; transform: rotate(-45deg); top: -1px; }
.cat-header .nav-menu a:hover .arrow { border-color: #4449a6; }
.cat-header .nav-toggle { border: 0; background: none; width: auto; height: auto; padding: 4px; display: none; }
.cat-header .nav-toggle span { display: block; width: 35px; height: 5px; margin: 6px 0; background: #fff; transition: .4s; }
.cat-header .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(-45deg) translate(-9px, 6px); }
.cat-header .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cat-header .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(45deg) translate(-8px, -8px); }

.cp-wrap { display: flex; align-items: flex-start; gap: 8px; padding: 1%; }
.cp-main { flex: 0 0 70%; min-width: 0; background: #fff; padding: 1% 0; }
.cp-index { padding: .5vw 1.2vw; }
.cp-index h1 { font-size: x-large; margin: 0; letter-spacing: 0; }
.cp-index h3 { font-size: 17px; margin: 18px 0 6px; letter-spacing: 0; }
.cp-search { background: #eff0fa; padding: 8px; margin: 20px 0; border-radius: 5px; }
.cp-search label { position: relative; display: flex; align-items: center; }
.cp-search .bi { position: absolute; left: 10px; font-size: 15px; opacity: .8; }
.cp-search input { width: 100%; border: 0; outline: none; border-radius: 3px; padding: 7px 7px 7px 33px; font: inherit; font-size: 15px; background: #fff; }
.cp-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 6px; }
.cp-tools a { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 8px; border: 1px solid; border-radius: 2px; color: var(--acc); font-size: 15px; line-height: 1.3; }
.cp-tools a:hover { text-decoration: none; background: #eff0fa; }
.cp-index .no-results { padding: 30px 0; }

.cp-side { flex: 1; min-width: 0; background: #fff; position: sticky; top: 12px; }
.cp-side-btns { display: flex; flex-wrap: wrap; justify-content: space-around; padding: 7px 3px 3px; background: #eff0fa; }
.cp-btn { width: calc(50% - 12px); margin-bottom: 4px; padding: 10px 4px; background: #fff; border-radius: 1px; text-align: center; font-size: 15px; color: #2a3ea9; }
.cp-btn:hover { text-decoration: none; color: var(--acc); }
.cp-btn.full { width: calc(100% - 14px); }
.cp-btn.hl { color: #3f51b5; font-weight: 700; }
.cp-btn.hl::before { content: "•"; position: relative; top: 4px; margin-right: 4px; font-size: 29px; line-height: 6px; color: #e95b5e; }
.cp-btn.bold { font-weight: 700; }
.cp-side-note { display: flex; gap: 10px; padding: 16px; font-size: 14px; color: #505050; }
.cp-side-note .bi { color: var(--success); font-size: 1.3rem; }
.cp-side-note p { margin: 0; }

.cat-footer { margin-top: 20px; padding: 1.4% 2% 1%; background: var(--acc); color: #fff; }
.cat-footer a { color: #fff; display: inline-block; margin: 2px; }
.cat-footer a:hover { color: #ffeb3b; text-decoration: none; }
.cat-foot-cols { display: flex; flex-wrap: wrap; }
.cat-foot-col { width: 25%; padding-right: 16px; }
.cat-foot-col ul { list-style: none; padding: 0; margin: 0; }
.cat-foot-col li { margin-top: 8px; }
.cat-foot-col p { font-size: 15px; line-height: 1.5; }
.cat-foot-brand { display: inline-flex !important; align-items: center; gap: 10px; margin-top: 6px !important; }
.cat-foot-brand b { font-size: 22px; }
.cat-foot-h { font-weight: 700; margin: 7px 2px; }
.cat-foot-extra { margin-top: 3%; font-size: 15px; }
.cat-foot-copy { display: block; margin-top: 8px; opacity: .8; font-size: 14px; }
.foot-badge { position: fixed; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; padding: 5px 8px; background: var(--acc); color: #fff; font-size: small; border-top-left-radius: 12px; }
.foot-badge a { color: #fff; }

@media (min-width: 900px) and (max-width: 1080px) { .cat-header .main-nav > :last-child { display: none; } }
@media (max-width: 900px) {
  .cat-header .header-inner { padding: 13px 1rem; }
  .cat-header .nav-toggle { display: block; }
  /* The general menu collapses at 860px; the coloured header already does at 900px. */
  .cat-header .main-nav { display: none; position: absolute; left: 0; right: 0; flex-direction: column; align-items: stretch; top: 100%; padding: 8px 0 16px; background: var(--acc); border: 0; box-shadow: 0 8px 16px rgba(0, 0, 0, .2); }
  .cat-header .main-nav.open { display: flex; }
  .cat-header .nav-menu { display: none; }
  .cat-header .nav-item.open .nav-menu { display: block; }
  .cat-header .nav-link { width: 100%; font-size: 16px; line-height: 40px; padding: 0 0 0 9px; margin-left: 30px; border-right: 0; border-left: 2px solid #fff; }
  .cat-header .mob-only { display: flex; }
  .cat-header .nav-menu { position: static; margin: 0 0 0 40px; box-shadow: none; border-top: 0; background: rgba(255, 255, 255, .95); }
  .cp-wrap { flex-wrap: wrap; }
  .cp-main { flex-basis: 100%; padding: 5% 2%; }
  .cp-side { display: none; }
  .cp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-foot-col { width: 50%; margin-bottom: 14px; }
  .foot-badge { display: none; }
}
.cat-header .brand { flex: none; white-space: nowrap; }
@media (min-width: 901px) {
  /* One row like the original: links that don't fit are clipped. Menus are
     positioned against the header (items stay static) so the clip can't cut them. */
  .cat-header .main-nav { flex: 1; min-width: 0; max-height: 43px; overflow: hidden; }
  .cat-header .nav-item { position: static; }
  .cat-header .nav-link { white-space: nowrap; }
  /* Auto offsets = static position, so the menu drops right under its own button. */
  .cat-header .nav-menu { top: auto; left: auto; right: auto; margin-top: 0; }
}

/* Category landing, cards layout (PDF) */
.cp-index.cards h1 { text-align: center; }
.cp-index.cards .cp-search { margin: 20px 15px; }
.cp-cards { display: flex; flex-wrap: wrap; justify-content: space-evenly; }
.cp-cards a { display: flex; flex-direction: column; align-items: center; width: 28%; margin: 1%; padding: 1%; border: 2px solid var(--acc); border-radius: 5px; text-align: center; color: var(--acc); }
.cp-cards a:hover { text-decoration: none; background: #eff0fa; }
.cp-cards h2 { margin: 5px 0; font-size: 20px; letter-spacing: 0; }
.cp-cards p { margin: 10px 0; color: #505050; font-weight: 500; line-height: 1.35; }
.cp-open { margin-top: auto; padding: 7pt 10pt; background: var(--acc); color: #fff; font-weight: 700; }
@media (max-width: 900px) { .cp-cards a { width: 96%; padding: 3% 2%; } }

/* Category landing: intro text (audio, GIF) */
.cp-intro { margin: 14px 0 26px; font-size: 15px; line-height: 1.6; color: #4d4d4d; }
.cp-index.cat-audio h1 { margin-top: 10px; }
.cp-index.cat-audio .cp-intro { text-align: left; }
.cp-index.cat-audio .cp-cards { justify-content: flex-start; padding: 0 15px; }
.cp-index.cat-audio .cp-cards a { width: calc(31% + 1px); border-width: 1px; border-radius: 2px; }
.cp-index.cat-audio .cp-cards p { text-align: justify; font-size: 15px; font-weight: 400; }
.cp-index.cat-audio .cp-open { padding: 6px 10pt; font-size: 14px; font-weight: 400; border-radius: 2px; }

/* Category landing, ranked layout (GIF) */
.cp-index.ranked { max-width: 1080px; margin: 0 auto; }
.cp-index.ranked h1 { font-size: 26px; line-height: 1.3; margin-bottom: 14px; color: #262626; }
.cp-index.ranked .cp-intro { margin: 0 0 30px; }
.cp-index.ranked h2 { font-size: 19px; color: #262626; margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 1px solid #e2e4f0; letter-spacing: 0; }
.cp-sub { margin: 0 0 16px; font-size: 15px; color: #4d4d4d; }
.cp-top, .cp-views { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.cp-top { grid-template-columns: repeat(3, 1fr); }
.cp-views { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cp-top li, .cp-views li { border: 1px solid #d5d8ea; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cp-top li:hover, .cp-views li:hover { background: #f7f8ff; border-color: var(--acc); box-shadow: 0 3px 10px rgba(73, 86, 165, .13); transform: translateY(-2px); }
.cp-top a, .cp-views a { position: relative; display: block; height: 100%; text-align: left; }
.cp-top a:hover, .cp-views a:hover { text-decoration: none; }
.cp-top a { padding: 13px 14px 13px 50px; }
.cp-views a { padding: 16px 18px; }
.cp-rank { position: absolute; left: 13px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 26px; text-align: center; }
.cp-top b, .cp-views b { display: block; color: var(--acc); }
.cp-top b { font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.cp-views b { font-size: 16px; margin-bottom: 7px; }
.cp-top p, .cp-views p { margin: 0; color: #4d4d4d; line-height: 1.5; }
.cp-top p { font-size: 13.5px; }
.cp-views p { font-size: 14px; }
@media (max-width: 900px) {
  .cp-index.ranked h1 { font-size: 23px; }
  .cp-top { grid-template-columns: repeat(2, 1fr); }
  .cp-index.cat-audio .cp-cards a { width: calc(50% - 16px); }
}
@media (max-width: 600px) {
  .cp-views { grid-template-columns: 1fr; gap: 10px; }
  .cp-top { gap: 8px; }
  .cp-top a { padding: 40px 10px 11px; }
  .cp-rank { left: 10px; top: 9px; }
  .cp-index.cat-audio .cp-cards a { width: 100%; }
}

/* Category landing, views layout (Base64) */
.cp-index.views { max-width: 1080px; margin: 0 auto; }
.cp-index.views h1 { text-align: center; font-size: x-large; margin-top: 10px; }
.cp-index.views .cp-intro { margin: 8px 0 30px; }
.cp-index.views h2 { font-size: 19px; color: #262626; margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 1px solid #e2e4f0; letter-spacing: 0; }

/* Category landing, tool layout (Bulk resizer) */
body.cat-layout-tool { background: #f8f8f8; }
.bt-header { position: relative; display: flex; justify-content: center; padding: 14px 16px 0; margin-bottom: 30px; }
.bt-logo { display: inline-flex; align-items: center; gap: 10px; color: #262626; }
.bt-logo:hover { text-decoration: none; }
.bt-logo img { border-radius: 16px; }
.bt-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.bt-logo b { font-size: 24px; letter-spacing: -.01em; }
.bt-logo small { font-size: 14px; letter-spacing: .45em; color: var(--acc); font-weight: 600; }
.bt-all { position: absolute; right: 14px; top: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #262626; font-size: 22px; }
.bt-all:hover { background: #eff0fa; text-decoration: none; }

.bt-hero { margin-bottom: 40px; }
.bt-wave { display: block; width: 100%; height: 60px; fill: #eff0fa; }
.bt-band { background: #eff0fa; padding: 10px 16px; text-align: center; }
.bt-tool { max-width: 1020px; margin: 0 auto; }
.bt-tool .dropzone { background: transparent; border: 0; padding: 24px 16px 8px; gap: 8px; }
.bt-tool .dropzone:hover, .bt-tool .dropzone.drag { background: rgba(255, 255, 255, .5); }
.bt-tool .dz-icon { display: none; }
.bt-tool .dropzone .btn-primary { background: #057891; border-color: #057891; padding: 10px 14px; font-size: 17px; font-weight: 700; border-radius: 3px; }
.bt-tool .dropzone .btn-primary:hover { box-shadow: rgba(0, 0, 0, .24) 0 3px 8px; }
.bt-tool .dz-hint { color: #5b5b5b; font-size: 14px; }
.bt-tool #work { text-align: left; background: #fff; border-radius: 10px; padding: 20px; box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0; margin: 10px 0; }
.bt-tool .btn-primary { background: var(--acc); border-color: var(--acc); }
.bt-tool .seg button.active, .bt-tool .chip.active { background: var(--acc); border-color: var(--acc); color: #fff; }
.bt-note { margin: 34px 0 0; font-size: 14px; color: #262626; opacity: .7; }

.bt-card { max-width: 1020px; margin: 0 auto 30px; padding: 26px 30px; background: #fff; border-radius: 10px; box-shadow: rgba(100, 100, 111, .12) 0 4px 20px 0; }
.bt-card h2, .bt-article h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: 0; }
.bt-rate { text-align: center; }
.bt-rate h2 { color: #3b3270; }
.bt-rate > p { color: #262626; line-height: 1.6; }
.bt-stars { display: inline-flex; gap: 4px; margin-top: 8px; }
.bt-stars button { border: 0; background: none; padding: 2px; font-size: 24px; line-height: 1; color: #262626; cursor: pointer; }
.bt-stars .bi-star-fill { color: #f5a623; }
.bt-rate-thanks { margin: 8px 0 0; color: #16a34a; font-weight: 600; }
/* Article of the bulk site: plain text in a narrow column, picture on top. */
.bt-article { max-width: 760px; margin: 50px auto 40px; padding: 0 16px; }
.bt-article .tp-article { margin: 0; padding: 0; background: none; font-size: 15.5px; }
.bt-article .tp-figure { margin: 0 auto 36px; max-width: 620px; }
.bt-article .tp-figure img { border: 0; padding: 0; background: none; }
.bt-card > p { color: #5b5b5b; margin: 0 0 6px; }
.bt-card h3 { font-size: 16px; margin: 20px 0 10px; letter-spacing: 0; }
.bt-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bt-links a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 8px; border: 1px solid var(--acc); border-radius: 3px; color: #045d81; font-size: 14.5px; line-height: 1.3; }
.bt-links a:hover { text-decoration: none; background: var(--acc); color: #fff; }
.bt-article { color: #333; line-height: 1.7; }
.bt-article h2 { font-size: 19px; margin: 28px 0 8px; letter-spacing: 0; }
.bt-article ol { padding-left: 22px; }
.bt-article li { margin-bottom: 6px; }
.bt-article li::marker { color: var(--acc); font-weight: 700; }
.bt-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px 34px; text-align: center; font-size: 15px; color: #5b5b5b; border-top: 1px solid #e4e4ea; background: #fff; }
.bt-footer a { color: var(--acc); }
@media (max-width: 900px) { .bt-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-card { margin-inline: 12px; padding: 20px 18px; } }
@media (max-width: 520px) { .bt-logo b { font-size: 19px; } .bt-logo img { width: 46px; height: 46px; } .bt-all { top: 10px; } }

/* Tool pages of themed categories (image): white main column + sidebar */
.tp-main { padding: 1% 1.2vw 24px; }
.tp-main h1 { text-align: center; font-size: x-large; margin: 10px 0 0; letter-spacing: 0; }
.tp-sub { text-align: center; margin: 4px 0 0; color: dimgrey; font-size: 15px; }
.tp-tool { margin: 21px 0 0; color: #262626; }
.tp-tool .dropzone { width: 60%; min-height: 142px; margin: 0 auto; padding: 22px 12px 26px; gap: 10px; background: #fff; border: 3px dashed #9da0d9; border-radius: 4px; }
.tp-tool .dropzone:hover, .tp-tool .dropzone.drag { background: #fff; border: 3px solid rgba(68, 73, 166, .956); }
.tp-tool .dropzone .dz-icon .bi { font-size: 2rem; color: #9da0d9; }
.tp-tool .dropzone .btn-primary { background: #047e73; border-color: #047e73; color: #fff; padding: 10px 15px; border-radius: 2px; font-weight: 700; }
.tp-tool .dropzone .dz-hint { color: #6e6e6e; font-size: 15px; }
.tp-tool .btn { border-radius: 3px; }
.tp-tool .btn-primary { background: #4956a5; border-color: #4956a5; font-weight: 700; box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0; }
.tp-tool .btn-primary:hover { background: #3c4791; border-color: #3c4791; box-shadow: rgba(0, 0, 0, .24) 0 3px 8px; }
.tp-tool .chip.active, .tp-tool .chip:hover { border-color: #4956a5; background: #eff0fa; color: #4956a5; }
.tp-tool .seg button.active { background: #4956a5; color: #fff; }
.tp-tool input[type=text], .tp-tool input[type=number], .tp-tool select, .tp-tool textarea { border-radius: 3px; border-color: #c9cbe0; }
.tp-tool input:focus, .tp-tool select:focus, .tp-tool textarea:focus { outline-color: #4956a5; }
.tp-tool .result { background: #eff0fa; border-radius: 4px; }
.tp-tool .preview, .tp-tool .file-list li { background: #f5f6fc; }
.tp-tool #work { max-width: 860px; margin: 0 auto; }
.tp-privacy { text-align: center; color: #6e6e6e; font-size: 14px; margin: 18px 0 0; }
.tp-more { margin: 26px 0 0; padding: 18px 1.2vw 8px; background: #f7f7f7; border-radius: 2px; }
.tp-more h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: 0; }
@media (max-width: 900px) {
  .tp-main { padding: 5% 3%; }
  .tp-tool .dropzone { width: 90%; }
  .tp-more { padding: 14px 3% 6px; }
}

/* Picture at the top of a tool article (tool-article.php) */
.tp-figure { margin: 18px auto; max-width: 860px; }
.tp-figure img { display: block; width: 100%; height: auto; padding: 6px; background: #fff; border: 1px solid #dcdfe8; border-radius: 8px; box-sizing: border-box; }
.tpf-art { position: relative; container-type: inline-size; aspect-ratio: 780 / 457; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px;
  background: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--acc) 30%, #fff) 0 14%, transparent 15%), radial-gradient(circle at 90% 85%, color-mix(in srgb, var(--acc) 22%, #fff) 0 18%, transparent 19%), linear-gradient(135deg, color-mix(in srgb, var(--acc) 12%, #fff), color-mix(in srgb, var(--acc) 28%, #fff)); }
.tpf-win { width: 80%; background: #fff; border-radius: 1.6cqw; box-shadow: 0 2.4cqw 6cqw rgba(30, 34, 90, .18); overflow: hidden; }
.tpf-bar { display: flex; align-items: center; gap: .9cqw; padding: 1.4cqw 2cqw; background: var(--acc); }
.tpf-bar i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.tpf-bar span { margin-left: auto; color: #fff; font-weight: 700; font-size: 1.8cqw; }
.tpf-body { display: flex; align-items: center; gap: 4cqw; padding: 5cqw 4.5cqw; }
.tpf-ico { flex: none; display: grid; place-items: center; width: 17cqw; height: 17cqw; border-radius: 3cqw; background: color-mix(in srgb, var(--acc) 12%, #fff); color: var(--acc); font-size: 9cqw; }
.tpf-text { min-width: 0; display: flex; flex-direction: column; gap: 1.4cqw; text-align: left; }
.tpf-text strong { font-size: 4.2cqw; line-height: 1.15; color: #1f2244; }
.tpf-text small { font-size: 2.1cqw; line-height: 1.35; color: #5a5d75; }
.tpf-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 1cqw; margin-top: 1cqw; font-size: 1.8cqw; color: #9aa0bf; }
.tpf-steps span { padding: .7cqw 1.4cqw; border-radius: 99px; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); font-weight: 700; white-space: nowrap; }
.tpf-badge { position: absolute; bottom: 3.2cqw; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .8cqw 2cqw; border-radius: 99px; background: rgba(255, 255, 255, .85); color: #2f3350; font-size: 1.8cqw; font-weight: 600; }

/* Long-form article under a themed tool */
.tp-article { margin: 26px 0 0; padding: 1.5vw 1.8vw; background: #f7f7f7; border-radius: 2px; line-height: 1.6; color: #262626; font-size: 15.5px; }
.tp-article > p:first-child { margin-top: 6px; }
.tp-article p { text-align: justify; }
.tp-article h2 { font-size: 20px; margin: 26px 0 10px; letter-spacing: 0; }
.tp-article ol, .tp-article ul { padding-left: 0; list-style-position: inside; }
.tp-article li { margin-top: 10px; }
.tp-article a { color: #2a3ea9; }
.tp-article-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-article-links a { padding: 4px 10px; border: 1px solid #3f51b5; border-radius: 3px; font-weight: 700; color: #3f51b5; }
.tp-article-links a:hover { background: #3f51b5; color: #fff; text-decoration: none; }
@media (max-width: 900px) { .tp-article { padding: 4% 3%; } .tp-article p { text-align: left; } }

/* FAQ under a themed tool */
.tp-faq { margin: 26px 0 0; }
.tp-faq h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: 0; }
.tp-faq details { border: 1px solid #d5d8ea; border-radius: 6px; background: #fff; margin-bottom: 10px; }
.tp-faq details[open] { border-color: #9da0d9; }
.tp-faq summary { position: relative; padding: 13px 44px 13px 16px; font-weight: 700; font-size: 15.5px; color: #262626; cursor: pointer; list-style: none; }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; line-height: 1; color: #4956a5; }
.tp-faq details[open] summary::after { content: "−"; }
.tp-faq summary:hover { color: #4956a5; }
.tp-faq-a { padding: 0 16px 14px; color: #4d4d4d; font-size: 15px; line-height: 1.6; }
.tp-faq-a a { color: #2a3ea9; }

/* PDF Compressor: size + unit field, advanced options */
.pc-size { display: flex; align-items: center; gap: 10px; }
.pc-size input { flex: 1; min-width: 0; }
.pc-size .seg { margin-left: 0; flex: none; }
.pc-adv { margin-top: 16px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; }
.pc-adv summary { cursor: pointer; font-weight: 600; }
.pc-adv[open] summary { margin-bottom: 4px; }

/* Article text below a tool: tables and the non-themed page wrapper */
.tool-text { margin-bottom: 30px; }
.tp-article .tp-table-wrap { overflow-x: auto; }
.tp-article table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; font-size: 15px; }
.tp-article th, .tp-article td { border: 1px solid #d5d8ea; padding: 9px 12px; text-align: left; vertical-align: top; }
.tp-article thead th { background: #eff0fa; }
.tp-article code { padding: 1px 5px; background: #fff; border: 1px solid #e3e4ee; border-radius: 3px; font-size: 13.5px; }
.tp-article pre { margin: 12px 0; padding: 12px 14px; overflow-x: auto; background: #fff; border: 1px solid #d5d8ea; border-radius: 3px; line-height: 1.5; }
.tp-article pre code { padding: 0; border: 0; }

/* GIF maker: one row per file, edit / write / effect popups */
.gm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.gm-all { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.gm-all input { width: 80px; }
.gm-rows { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.gm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.gm-thumb { width: 72px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: repeating-conic-gradient(#eceef6 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; }
.gm-thumb canvas { max-width: 100%; max-height: 100%; display: block; }
.gm-info { flex: 1 1 160px; min-width: 0; }
.gm-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.gm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gm-tags span { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.gm-time { display: flex; flex-direction: column; gap: 2px; width: 100px; font-size: .8rem; color: var(--muted); }
.gm-time input { width: 100%; }
.gm-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-move { display: flex; gap: 4px; }
.gm-make { margin-top: 18px; text-align: center; }
.gm-uneven { margin-bottom: 12px; }
.gm-uneven p { margin: 0 0 6px; }
.gm-radios { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.gm-opts { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; font-size: .92rem; }
.gm-opts label { display: flex; align-items: center; gap: 6px; }
.gm-out { margin-top: 22px; text-align: center; }
.gm-out-box { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.gm-out-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); text-align: left; }
.gm-out-head b { margin-right: auto; }
.gm-out-box img { display: block; max-width: 100%; max-height: 520px; margin: 14px auto; background: repeating-conic-gradient(#eceef6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.gm-out-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px 14px; border-top: 1px solid var(--border); font-size: .92rem; }
.gm-danger { color: var(--danger); }
.gm-danger:hover { border-color: var(--danger); }
.gm-modal { position: relative; max-width: 900px; }
.gm-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--danger); cursor: pointer; z-index: 2; }
.gm-pop { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gm-pop h3 { margin: 0 0 12px; padding-right: 36px; }
.gm-pop h4 { margin: 16px 0 8px; font-size: .98rem; }
.gm-pop h4:first-child { margin-top: 0; }
.gm-canvas { text-align: center; }
.gm-canvas canvas, .gm-stage canvas { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; background: repeating-conic-gradient(#eceef6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
#wCv { cursor: move; touch-action: none; }
.gm-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gm-tools button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; font: inherit; font-size: .82rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.gm-tools button .bi { font-size: 1.3rem; color: var(--primary); }
.gm-tools button:hover, .gm-tools button.active { border-color: var(--primary); background: var(--primary-soft); }
.gm-space { margin-bottom: 8px; }
.gm-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.gm-inline .field { flex: 1 1 100px; }
.gm-space .gm-inline { margin: 6px 0 0 26px; align-items: center; }
.gm-space input[type=number] { width: 80px; }
.gm-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; padding: 2px; }
.gm-frames label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; font-size: .78rem; cursor: pointer; }
.gm-frames label:has(input:checked) { border-color: var(--danger); background: #fef2f2; }
.gm-frames input { position: absolute; top: 6px; left: 6px; }
.gm-frames canvas { max-width: 100%; height: 64px; object-fit: contain; }
.gm-trim-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; }
.gm-trim-bar .btn-row { margin-top: 0; }
@media (max-width: 720px) {
  .gm-pop { grid-template-columns: 1fr; }
  .gm-acts { flex: 1 1 100%; }
  .gm-acts .btn { flex: 1 1 auto; }
}

/* Privacy policy / terms: plain text section on a lavender page */
body:has(.legal) { background: #eff0fa; }
.legal { margin: 1%; padding: 45px; overflow-wrap: anywhere; font: 16px/normal "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #262626; letter-spacing: normal; }
.legal h1 { margin: 0; text-align: center; font-size: x-large; font-weight: 700; line-height: normal; letter-spacing: normal; color: #5b5b5b; }
.legal h2 { margin: .83em 0; font-size: 1.5em; font-weight: 700; line-height: normal; letter-spacing: normal; color: #262626; }
.legal h3 { margin: 1em 0; font-size: 1.17em; font-weight: 700; line-height: normal; color: #262626; }
.legal p, .legal li { margin: 0 0 1em; line-height: 1.6; }
.legal li { margin: 0; }
.legal ul { margin: 1em 0; padding-left: 40px; list-style: disc; }
.legal a { color: #3f51b5; font-weight: 700; text-decoration: none; }
.legal .muted { color: #5b5b5b; }
@media (max-width: 600px) { .legal { padding: 22px 16px; } }

/* Share buttons and "link to this tool" code under every tool (share.php) */
.share-box { margin: 18px auto 0; max-width: 860px; text-align: center; }
.share-title { margin: 0 0 10px; color: #4d4d4d; font-size: 15px; }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-btns a, .share-btns button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sc); color: #fff; font-size: 18px; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.share-btns a:hover, .share-btns button:hover { transform: translateY(-2px); opacity: .9; text-decoration: none; }
.share-embed { margin: 12px auto 0; max-width: 560px; text-align: left; font-size: 14px; }
.share-embed summary { cursor: pointer; color: #4956a5; font-weight: 600; text-align: center; }
.share-embed textarea { display: block; width: 100%; margin: 10px 0 8px; padding: 8px; box-sizing: border-box; border: 1px solid #c9cbe0; border-radius: 3px; font: 13px/1.4 monospace; resize: none; }

/* Main site info pages (page.php): tinted heading band, then a white card over it */
.info-hero { padding: 56px 0 104px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.info-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--primary); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.info-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.info-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
.info-lead { margin: 0; max-width: 680px; color: var(--body); font-size: 1.05rem; }
.info-card { margin: -64px 0 64px; padding: 48px 52px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-2); color: var(--body); line-height: 1.7; overflow-wrap: anywhere; }
.info-card > * { max-width: 720px; }
.info-card .info-intro { font-size: 1.05rem; }
.info-card h2 { margin: 36px 0 10px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.info-card h3 { margin: 22px 0 6px; font-size: 1.05rem; color: var(--text); }
.info-card ul { margin: 0 0 14px; padding-left: 22px; }
.info-card li { margin-bottom: 6px; }
.info-card li::marker { color: var(--primary); }
.info-card a { color: var(--primary); font-weight: 600; }
.info-legal > .muted:first-child + h2, .info-legal > h2:first-child { margin-top: 12px; }
@media (max-width: 700px) {
  .info-hero { padding: 36px 0 88px; }
  .info-card { padding: 28px 20px; }
}

/* Contact page card */
.info-card .contact-box { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-ico { display: block; font-size: 30px; color: var(--text); }
.info-card .contact-box h2 { margin: 18px 0 12px; padding: 0; border: 0; font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 800; }
.contact-box > p { margin: 0 auto 26px; }
.contact-mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px 10px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); text-align: left; }
.contact-mail span { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.contact-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--body); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.contact-copy:hover { background: var(--primary-soft); color: var(--primary); }
.info-card .contact-open { display: flex; justify-content: center; width: 100%; margin: 14px 0 32px; color: #fff; }
.info-card .contact-open:hover { color: #fff; }
.info-card .contact-tips { margin: 0 0 26px; padding: 0; list-style: none; text-align: left; }
.contact-tips li { display: flex; gap: 10px; }
.contact-tips i { color: var(--primary); }
.contact-foot { margin: 0; color: var(--muted); font-size: 14px; }
