/* FileKosh — design system */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(../fonts/inter-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --border: #e3e6ef;
  --text: #121826;
  --muted: #5d667a;
  --brand: #5b3df5;
  --brand-2: #8b5cf6;
  --brand-soft: #efeaff;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --c-pdf: #e5484d;
  --c-image: #0f9f8f;
  --c-convert: #3e63dd;
  --c-text: #d97706;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 24, 38, .05), 0 8px 24px -12px rgba(18, 24, 38, .12);
  --shadow-lg: 0 20px 50px -20px rgba(91, 61, 245, .35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1017;
  --surface: #151a24;
  --surface-2: #1b2130;
  --border: #283044;
  --text: #e8ebf3;
  --muted: #9aa3b8;
  --brand: #8b74ff;
  --brand-2: #a78bfa;
  --brand-soft: #231d45;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 50px -20px rgba(139, 116, 255, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1017; --surface: #151a24; --surface-2: #1b2130; --border: #283044;
    --text: #e8ebf3; --muted: #9aa3b8; --brand: #8b74ff; --brand-2: #a78bfa; --brand-soft: #231d45;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    --shadow-lg: 0 20px 50px -20px rgba(139,116,255,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.ic { flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.02em; flex: none; }
.brand img { border-radius: 9px; }
.brand b { color: var(--brand); font-weight: 800; }
.search { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; height: 42px; color: var(--muted); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; color: var(--text); }
.icon-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .search { margin-left: 0; }
}

/* ---------- home ---------- */
.hero { padding: 48px 0 26px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -.035em; margin: 0 auto 14px; max-width: 19ch; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(100deg, var(--brand), #e5484d 60%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; margin: 0 auto 22px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--text); }
.badge .ic { color: var(--brand); }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; justify-content: center; }
.cats::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { .cats { justify-content: flex-start; } }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.section-h { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.section-h h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-h span { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cc) 45%, var(--border)); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--cc) 60%, transparent); }
.card .tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.card h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -.01em; }
.card .txt { display: block; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card .new { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.how { margin: 40px 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.how > div { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.how h3 { margin: 10px 0 6px; font-size: 16px; }
.how p { margin: 0; color: var(--muted); font-size: 14.5px; }
.how .ic { color: var(--brand); }

/* ---------- tool page ---------- */
.tool { padding: 22px 0 40px; max-width: 900px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; min-height: 40px; }
.back:hover { color: var(--brand); }
.tool-h { display: flex; gap: 14px; align-items: center; margin: 8px 0 6px; }
.tool-h .tile { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); flex: none; }
.tool-h h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.tool-desc { color: var(--muted); margin: 6px 0 16px; max-width: 64ch; }
.private { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel h2 { font-size: 16px; margin: 0 0 12px; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 38px 18px; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.drop .up { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-lg); }
.drop strong { font-size: 17px; }
.drop small { color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.compact { padding: 16px; flex-direction: row; gap: 12px; }
.drop.compact .up { width: 40px; height: 40px; box-shadow: none; }

.files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.file .thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--surface); flex: none; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.file .meta { flex: 1; min-width: 0; }
.file .name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .size { color: var(--muted); font-size: 13px; }
.mini { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--muted); flex: none; }
.mini:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.mini:disabled { opacity: .35; cursor: default; }
.mini.danger:hover { color: var(--err); border-color: var(--err); }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); outline: 0;
}
.field textarea { height: auto; min-height: 160px; padding: 12px; resize: vertical; font-size: 14.5px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }
.field input[type="color"] { width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); padding: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 9px; align-items: center; font-size: 14.5px; cursor: pointer; min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--text); margin-top: 12px; }
.note .ic { color: var(--warn); margin-top: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--text); }
.btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.actions .btn.primary { flex: 1 1 220px; }

.progress { margin-top: 14px; display: none; }
.progress.on { display: block; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s; }
.progress p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.results { display: grid; gap: 10px; }
.result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--border)); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.result .meta { flex: 1; min-width: 0; }
.result .name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .size { font-size: 13px; color: var(--muted); }
.saving { color: var(--ok); font-weight: 700; }
.grow { color: var(--warn); font-weight: 700; }

.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 14px; }
.pg { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pg canvas, .pg img { width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .2s; }
.pg .n { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pg .row { gap: 4px; justify-content: center; }
.pg .mini { width: 30px; height: 30px; border-radius: 8px; }
.pg.sel { outline: 3px solid var(--brand); }
.pg.del { opacity: .35; }

.preview { display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 20px 20px; border-radius: 12px; border: 1px solid var(--border); padding: 10px; overflow: hidden; }
.preview img, .preview canvas { max-height: 60vh; width: auto; max-width: 100%; }

/* crop & editor stages */
.stage { position: relative; display: inline-block; touch-action: none; user-select: none; max-width: 100%; }
.stage > canvas, .stage > img { display: block; max-width: 100%; height: auto; }
.cropbox { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; }
.cropbox i { position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; border: 3px solid var(--brand); }
.cropbox i.tl { left: -11px; top: -11px; cursor: nwse-resize; }
.cropbox i.tr { right: -11px; top: -11px; cursor: nesw-resize; }
.cropbox i.bl { left: -11px; bottom: -11px; cursor: nesw-resize; }
.cropbox i.br { right: -11px; bottom: -11px; cursor: nwse-resize; }
.ed-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 12px; text-align: center; }
.ed-el { position: absolute; cursor: move; line-height: 1.15; white-space: pre; z-index: 3; }
.ed-el.sel { box-shadow: 0 0 0 1.5px var(--brand); }
.ed-el img { width: 100%; height: 100%; pointer-events: none; }
.ed-el.box { background: #fff; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pad { width: 100%; height: 200px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; touch-action: none; }

dialog { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); padding: 18px; width: min(560px, 94vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10, 12, 20, .55); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(120px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; z-index: 60; transition: transform .25s, opacity .25s; max-width: 92vw; opacity: 0; pointer-events: none; }
.toast.on { transform: translateX(-50%) translateY(0); opacity: 1; }

.foot { margin-top: auto; border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--brand); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 26px; }
.prose li { margin-bottom: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ed-el .rs { position: absolute; right: -10px; bottom: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; display: none; cursor: nwse-resize; box-shadow: 0 1px 4px rgba(0,0,0,.3); touch-action: none; }
.ed-el.sel .rs { display: block; }
.ed-el { touch-action: none; padding: 0; }
.ed-el > span { display: block; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; font-weight: 600; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: color-mix(in srgb, var(--err) 10%, transparent); margin: 10px 0; }
.alert .ic { color: var(--err); margin-top: 2px; }
.okbox { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: color-mix(in srgb, var(--ok) 10%, transparent); margin: 10px 0; }
.okbox .ic { color: var(--ok); margin-top: 2px; }
.hero h1, .tool-h h1 { text-wrap: balance; }
@media (max-width: 560px) {
  .hero { padding: 30px 0 14px; }
  .grid { gap: 10px; }
  .card { flex-direction: row; align-items: center; gap: 13px; padding: 13px 14px; }
  .card .tile { width: 42px; height: 42px; flex: none; }
  .card .txt { flex: 1; }
  .card h3 { font-size: 15.5px; margin: 0; }
  .card p { font-size: 13px; margin-top: 2px; }
  .card .new { top: 8px; right: 10px; font-size: 10px; padding: 2px 7px; }
  .card:hover { transform: none; }
  .tool { padding-top: 12px; }
  .panel { padding: 14px; }
}
.compare .preview img { max-height: 300px; }
@media (max-width: 720px) {
  .ed-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px !important; }
  .ed-tools::-webkit-scrollbar { display: none; }
  .ed-tools .btn { flex: none; }
  .ed-wrap { padding: 6px; }
}
.app-only { display: none; }
.in-app .web-only { display: none !important; }
.in-app .app-only { display: block; }

/* PDF editor */
.ed-sticky { position: sticky; top: 64px; z-index: 8; background: var(--surface); margin: -18px -18px 0; padding: 10px 18px 8px; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.ed-tools { margin: 0; align-items: center; }
.ed-zoom { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ed-zoom b { font-size: 13px; min-width: 42px; text-align: center; }
.ed-zoom .mini { font-size: 20px; font-weight: 700; }
.ed-props { margin-top: 8px; }
.ed-props select, .ed-props input[type=number] { height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); padding: 0 8px; }
.ed-props input[type=color] { height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); }
.mini.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ed-wrap { overflow-x: auto; overflow-y: hidden; padding: 12px 8px; border-radius: 0 0 12px 12px; }
.ed-stage { display: block; max-width: none; margin: 0 auto 14px; background: #fff; box-shadow: var(--shadow); touch-action: pan-x pan-y pinch-zoom; }
.ed-wrap.armed .ed-stage { cursor: crosshair; }
.tx-line { position: absolute; cursor: text; border-radius: 2px; z-index: 1; }
.tx-line:hover { background: rgba(91, 61, 245, .10); box-shadow: 0 0 0 1px rgba(91, 61, 245, .55); }
@media (hover: none) { .tx-line { background: rgba(91, 61, 245, .05); } }
.ed-wrap.armed .tx-line { pointer-events: none; }
.ed-cover { position: absolute; z-index: 2; pointer-events: none; }
.ed-el .tx { display: block; outline: none; min-width: 4px; }
.ed-el.editing { cursor: text; box-shadow: 0 0 0 2px var(--brand); background: rgba(255,255,255,.0); }
.ed-el.editing .tx { cursor: text; caret-color: var(--brand); }
@media (max-width: 720px) { .ed-sticky { margin: -14px -14px 0; padding: 8px 14px; } .ed-zoom { margin-left: 4px; } }

.rename { display: flex; align-items: center; gap: 2px; min-width: 0; }
.rename input { flex: 1; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-weight: 600; font-size: 14.5px; outline: 0; }
.rename input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rename span { color: var(--muted); font-weight: 600; font-size: 14px; flex: none; }
.result .meta .size { margin-top: 3px; }

@media (max-width: 720px) {
  .ed-prow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ed-prow::-webkit-scrollbar { display: none; }
  .ed-prow > * { flex: none; }
  .ed-prow select { width: 118px; }
  .ed-prow .lbl { display: none; }
  .ed-prow .btn.small { padding: 0 11px; }
}

/* Help text and tool links under each page (also read by search engines) */
.seo { padding: 10px 20px 40px; max-width: 900px; color: var(--text); }
.seo h2 { font-size: 22px; letter-spacing: -.02em; margin: 26px 0 8px; }
.seo h3 { font-size: 17px; margin: 22px 0 8px; }
.seo p, .seo li { color: var(--muted); font-size: 15px; }
.seo ol { padding-left: 22px; }
.seo details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 12px 14px; margin-bottom: 8px; }
.seo summary { cursor: pointer; font-weight: 600; }
.seo details p { margin: 8px 0 0; }
.all-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 6px 20px; }
.all-tools h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.all-tools ul { list-style: none; margin: 0; padding: 0; }
.all-tools li { margin: 0; }
.all-tools a { display: inline-block; padding: 5px 0; font-size: 14.5px; color: var(--text); text-decoration: none; }
.all-tools a:hover, .all-tools a[aria-current] { color: var(--brand); text-decoration: underline; }
.in-app .seo { display: none; }
