/* Dodatki do style.css dla edytora zdjęć i PDF. Każde narzędzie ma swój kolor. */
:root { --accent: #6d3fe0; --accent-soft: #f0eafe; }
body.c-home   { --accent: #6d3fe0; --accent-soft: #f0eafe; }
body.c-photo  { --accent: #c81e63; --accent-soft: #fde9f1; }
body.c-pdf    { --accent: #6d3fe0; --accent-soft: #f0eafe; }
body.c-office { --accent: #1d4ed8; --accent-soft: #e8efff; }
body.c-other  { --accent: #0f766e; --accent-soft: #e3f6f3; }

/* Menu narzędzi pod nagłówkiem */
.toolnav { padding: 14px 0 10px; background: var(--panel); border-bottom: 1px solid var(--rule); }
.toolnav .wrap { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.toolnav .wrap::-webkit-scrollbar { display: none; }
.tn {
  display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.tn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tn); }
.tn:hover { border-color: var(--tn); }
.tn[aria-current="page"] { background: var(--tn); border-color: var(--tn); color: #ffffff; }
.tn[aria-current="page"]::before { background: #ffffff; }
.tn { --tn: var(--muted); }
.tn-photo  { --tn: #c81e63; }
.tn-pdf    { --tn: #6d3fe0; }
.tn-office { --tn: #1d4ed8; }
.tn-other  { --tn: #0f766e; }
.tn:not([class*="tn-"])::before { border-radius: 2px; }

/* Strona główna: kafelki narzędzi */
.cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 4px 0 8px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; align-items: start;
  padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel);
  color: var(--ink); text-decoration: none;
  box-shadow: 0 2px 4px rgba(40, 30, 90, 0.05), 0 16px 40px rgba(40, 30, 90, 0.07);
}
.card:hover { border-color: var(--tn); }
.card-icon {
  grid-row: span 3; display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 18px; background: var(--tn); color: #ffffff;
}
.card-icon svg { width: 38px; height: 38px; }
.card h3 { margin: 2px 0 0; font: 800 1.25rem/1.2 var(--display); }
.cat { margin: 34px 0 0; }
.hero + .cat { margin-top: 8px; }
.cat-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 1.5rem/1.2 var(--display); scroll-margin-top: 16px; }
.cat-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tn); }
.card p { margin: 0; color: var(--muted); }
.card-go {
  justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; margin-top: 10px;
  border-radius: 999px; background: var(--tn); color: #ffffff; font-weight: 700;
}
.perks { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.perks li { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.perks strong { display: block; margin-bottom: 2px; }


.tool-area { max-width: 900px; }

/* Pole wrzucania zdjęć */
.drop {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  background: var(--accent-soft); border: 2px dashed var(--accent); border-radius: var(--radius);
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 18px 24px; }
.drop-title { margin: 0; font: 800 clamp(1.6rem, 6vw, 2.2rem)/1.1 var(--display); }
.drop-sub { margin: 0; color: var(--muted); }
.drop-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; margin-top: 4px;
  border-radius: 999px; background: var(--accent); color: #ffffff; font-weight: 700;
}
.drop:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.drop:hover .drop-btn { filter: brightness(1.08); }
.drop.over { border-style: solid; }

/* Ustawienia */
.opts { margin-top: 22px; }
.settings output { font-weight: 700; }
.settings input[type="range"] { width: 100%; height: 48px; accent-color: var(--blue); }
.settings select:disabled, .settings input:disabled { opacity: 0.5; }

/* Lista wyników */
.results { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; }
.results-head h2 { margin: 0; font: 800 1.4rem/1.2 var(--display); }
.total { margin: 6px 0 0; font-size: 1rem; }
.total strong { font: 800 1.25rem/1.2 var(--display); }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }

.files { margin: 10px 0 0; padding: 0; list-style: none; }
.file {
  display: grid; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--rule);
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas: "thumb info" "thumb act";
}
.file:last-child { border-bottom: 1px solid var(--rule); }
.thumb {
  grid-area: thumb; width: 72px; height: 72px; object-fit: cover;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--rule);
}
.file-info { grid-area: info; min-width: 0; }
.file-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.file-meta { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.file-meta strong { color: var(--ink); font: 700 1.05rem/1.2 var(--display); }
.file-warn { margin: 6px 0 0; padding: 6px 10px; border-left: 4px solid var(--amber); border-radius: 0 6px 6px 0; background: var(--amber-soft); font-size: 0.9rem; }
.file-act { grid-area: act; }
.file.error .file-meta { color: var(--ink); }

@media (min-width: 700px) {
  .file { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb info act"; align-items: center; }
}


/* Narzędzia PDF */

.plist { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: p; }
.pitem {
  display: grid; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--rule);
  grid-template-columns: minmax(0, 1fr); counter-increment: p;
}
.pitem:last-child { border-bottom: 1px solid var(--rule); }
.pitem-info { min-width: 0; padding-left: 38px; position: relative; }
.pitem-info::before {
  content: counter(p); position: absolute; left: 0; top: 2px;
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue); font: 700 1rem/1 var(--display);
}
.pitem.error .pitem-info::before { background: var(--amber-soft); color: var(--ink); }
.pitem-act { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 38px; }
.pitem-act .btn[disabled] { opacity: 0.35; }
@media (min-width: 700px) {
  .pitem { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .pitem-act { padding-left: 0; }
}
.pmsg { min-height: 1.5em; margin: 12px 0 0; }
.pfile { margin: 12px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.mode[hidden], .opts[hidden] { display: none; }

/* Wspólne elementy nowych narzędzi */
.panel { margin: 18px 0 0; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .sep { width: 1px; height: 28px; background: var(--rule); }
.btn.on { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-icon { min-width: 44px; padding: 0 12px; }
.hint { color: var(--muted); font-size: 0.9rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.swatch { width: 32px; height: 32px; padding: 0; border: 2px solid var(--panel); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 1rem var(--body);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
dialog.dlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(40, 30, 90, 0.3); }
dialog.dlg::backdrop { background: rgba(29, 27, 51, 0.45); }
.dlg-body { padding: 20px; }
.dlg-body h2 { margin: 0 0 14px; font: 800 1.3rem/1.2 var(--display); }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* Edytor PDF */
.pe-app { margin-top: 16px; }
.pe-bar {
  position: sticky; top: 0; z-index: 5; margin: 0 -20px; padding: 10px 20px;
  background: rgba(251, 250, 255, 0.96); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pe-zoom { min-width: 52px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pe-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.pe-selbar[hidden] { display: none; }
.pe-msg { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.pe-pages { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 22px 0 10px; overflow-x: auto; }
.pe-page { position: relative; flex: none; }
.pe-page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 0.92rem; color: var(--muted); }
.pe-sheet { position: relative; background: #ffffff; box-shadow: 0 2px 6px rgba(40, 30, 90, 0.12), 0 12px 30px rgba(40, 30, 90, 0.1); }
.pe-sheet canvas.pe-render { display: block; width: 100%; height: 100%; }
.pe-overlay { position: absolute; inset: 0; touch-action: pan-y pinch-zoom; }
.pe-app[data-tool="draw"] .pe-overlay, .pe-app[data-tool="mark"] .pe-overlay { touch-action: none; cursor: crosshair; }
.pe-app[data-tool="text"] .pe-overlay, .pe-app[data-tool="sign"] .pe-overlay, .pe-app[data-tool="image"] .pe-overlay { cursor: copy; }
.pe-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pe-ann { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; transform-origin: 0 100%; touch-action: none; }
.pe-app[data-tool="select"] .pe-ann { cursor: move; }
.pe-ann.sel { outline: 2px dashed var(--accent); outline-offset: 2px; }
.pe-handle {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #ffffff;
  border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); touch-action: none; cursor: nwse-resize;
}
.pe-rect { position: absolute; background: rgba(255, 221, 0, 0.38); pointer-events: none; }
.pe-page.deleted .pe-sheet { opacity: 0.35; }
.pe-page.deleted .pe-sheet::after {
  content: "Strona zostanie usunięta"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink); font: 800 1.4rem/1.2 var(--display);
}
.pe-pad { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; border: 2px dashed var(--line); border-radius: 12px; background: #ffffff; touch-action: none; }
.pe-text-opts { align-items: flex-end; margin-top: 12px; }
.pe-check { min-height: 46px; font-weight: 600; }
.pe-check input { width: 20px; height: 20px; accent-color: var(--accent); }
@media (max-width: 760px) {
  .pe-bar .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pe-bar .toolbar::-webkit-scrollbar { display: none; }
  .pe-bar .toolbar > * { flex: none; }
  .pe-bar .toolbar .row { flex-wrap: nowrap; }
}
.drop.compact .drop-title, .drop.compact .drop-sub { display: none; }
.drop.compact .drop-body { padding: 12px 14px; }
.drop.compact .drop-btn { margin: 0; }

/* Skaner dokumentów */
.sc-btn { cursor: pointer; }
.sc-btn-alt { background: var(--panel); color: var(--accent); border: 2px solid var(--accent); }
.sc-h { margin: 0 0 6px; font: 800 1.3rem/1.2 var(--display); }
.sc-stage { position: relative; margin: 12px auto 0; touch-action: none; user-select: none; }
.sc-stage canvas { display: block; border-radius: 8px; }
.sc-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sc-lines polygon { fill: rgba(200, 30, 99, 0.12); stroke: var(--accent); stroke-width: 2.5; }
.sc-h-pt {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0;
  border: 3px solid #ffffff; border-radius: 50%; background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); cursor: grab; touch-action: none;
}
.sc-h-pt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sc-opts { margin-top: 14px; }
.sc-pages { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 12px 0 0; padding: 0; list-style: none; }
.sc-page { padding: 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.sc-page img { display: block; width: 100%; height: 180px; object-fit: contain; background: #f2f2f2; border-radius: 6px; }
.sc-page .hint { margin: 6px 0; }
.sc-page .row { gap: 6px; }

/* Zdjęcie do dowodu */
.dw-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 760px) { .dw-layout { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }
.dw-frame-wrap { max-width: 320px; margin: 0 auto; width: 100%; }
.dw-frame { display: block; width: 100%; height: auto; aspect-ratio: 35 / 45; border: 1px solid var(--line); border-radius: 6px; touch-action: none; cursor: grab; background: #ffffff; }
.dw-controls { display: flex; flex-direction: column; gap: 14px; }
.dw-controls input[type="range"] { min-height: 40px; padding: 0; border: 0; accent-color: var(--accent); }

/* Edytor Excel */
.xl-start { display: block; }
.xl-drop .drop-btn { margin: 0; }
.xl-drop .row { gap: 10px; }
.xl-app { margin-top: 14px; }
.xl-warn { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--amber-soft); font-size: 0.92rem; }
.xl-fbar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 0;
  background: var(--bg);
}
.xl-ref { flex: none; min-width: 56px; padding: 0 8px; font-weight: 800; text-align: center; color: var(--accent); }
#xl-input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 1rem var(--body); }
.xl-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.xl-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.xl-grid { width: auto; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.xl-grid th, .xl-grid td { padding: 0 8px; height: 32px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; }
.xl-grid td { min-width: 96px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; cursor: cell; }
.xl-grid td.xl-n { text-align: right; font-variant-numeric: tabular-nums; }
.xl-grid td.err { color: #b42318; }
.xl-grid td.sel { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.xl-grid thead th { position: sticky; top: 0; z-index: 2; background: #f3f2fa; color: var(--muted); font-weight: 600; text-align: center; }
.xl-grid tbody th { position: sticky; left: 0; z-index: 1; min-width: 44px; background: #f3f2fa; color: var(--muted); font-weight: 600; text-align: center; }
.xl-grid .xl-corner { left: 0; z-index: 3; }
.xl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Edytor Word */
.wd-app { margin-top: 14px; }
.wd-bar { position: sticky; top: 0; z-index: 4; display: flex; flex-direction: column; gap: 8px; margin: 0 -20px; padding: 10px 20px; background: rgba(251, 250, 255, 0.96); border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) {
  .wd-bar .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wd-bar .toolbar::-webkit-scrollbar { display: none; }
  .wd-bar .toolbar > * { flex: none; }
}
.wd-b { font-weight: 800; }
.wd-i { font-style: italic; font-family: Georgia, serif; }
.wd-u { text-decoration: underline; }
.wd-page {
  max-width: 820px; min-height: 60vh; margin: 18px auto 0; padding: 56px 64px;
  background: #ffffff; color: #1a1a1a; border-radius: 4px; outline: none;
  box-shadow: 0 2px 6px rgba(40, 30, 90, 0.12), 0 12px 30px rgba(40, 30, 90, 0.1);
  font: 11pt/1.5 Calibri, Carlito, "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere;
}
@media (max-width: 600px) { .wd-page { padding: 24px 18px; } }
.wd-page:focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 12px 30px rgba(40, 30, 90, 0.1); }
.wd-page p { margin: 0 0 8pt; }
.wd-page h1 { margin: 14pt 0 6pt; font: 700 16pt/1.25 Calibri, Carlito, Arial, sans-serif; color: #1f3864; }
.wd-page h2 { margin: 12pt 0 6pt; font: 700 13pt/1.25 Calibri, Carlito, Arial, sans-serif; color: #1f3864; }
.wd-page h3 { margin: 10pt 0 4pt; font: 700 12pt/1.25 Calibri, Carlito, Arial, sans-serif; color: #1f3864; }
.wd-page ul, .wd-page ol { margin: 0 0 8pt; padding-left: 2em; }
.wd-page li { margin: 0 0 2pt; }
.wd-page .wd-table, .wd-page table { width: 100%; margin: 0 0 8pt; border-collapse: collapse; }
.wd-page td, .wd-page th { min-width: 40px; padding: 4px 6px; border: 1px solid #555; vertical-align: top; }
.wd-page td p { margin: 0; }
.al-center { text-align: center; }
.al-right { text-align: right; }
.al-justify { text-align: justify; }
@media print {
  body.c-office .top, body.c-office .toolnav, body.c-office .foot, body.c-office .wd-noprint, body.c-office .wd-bar { display: none !important; }
  body.c-office { background: #ffffff; padding: 0; }
  body.c-office .wrap { max-width: none; padding: 0; }
  body.c-office .wd-page { max-width: none; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  body.c-office .top::after { display: none; }
}

/* Kod QR */
.qr-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .qr-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .qr-preview { position: sticky; top: 16px; } }
.qr-layout .panel { margin: 0; }
.qr-form .field, .qr-preview .field { margin-top: 12px; }
.qr-types { margin: 4px 0 6px; }
.qr-types span { font-size: 0.95rem; }
.qr-two { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .qr-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qr-opts { margin-top: 6px; }
.field input[type="color"] { height: 46px; padding: 4px; cursor: pointer; }
#qr-canvas { display: block; width: 100%; height: auto; max-width: 340px; margin: 8px auto 0; border-radius: 8px; image-rendering: pixelated; border: 1px solid var(--rule); }

/* ZIP */
.zp-list { margin: 10px 0 0; padding: 0; list-style: none; }
.zp-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.zp-item:last-child { border-bottom: 1px solid var(--rule); }
#zp-make-list .zp-item { grid-template-columns: minmax(0, 1fr) auto auto; }
.zp-item input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.zp-name { min-width: 0; overflow-wrap: anywhere; }
.zp-dir { color: var(--muted); }

/* Dyktafon */
.dk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.dk-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px 0 20px;
  border: 0; border-radius: 999px; background: var(--accent); color: #ffffff; font: 800 1.15rem/1 var(--display); cursor: pointer;
}
.dk-btn[disabled] { opacity: 0.45; cursor: default; }
.dk-dot { width: 18px; height: 18px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.dk-btn.on { background: #b42318; }
.dk-btn.on .dk-dot { border-radius: 4px; background: #ffffff; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .dk-btn.on .dk-dot { animation: dk-pulse 1.2s ease-in-out infinite; } }
@keyframes dk-pulse { 50% { opacity: 0.5; } }
.dk-time { font: 800 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.dk-level { display: block; width: 100%; height: 14px; margin-top: 14px; border-radius: 7px; }
.dk-list { margin: 10px 0 0; padding: 0; list-style: none; }
.dk-item { padding: 12px 0; border-top: 1px solid var(--rule); }
.dk-item audio { display: block; width: 100%; max-width: 520px; margin: 6px 0 8px; }
.dk-item .row { gap: 6px; }
.dk-trim .drop { margin-top: 8px; }
.compact-drop .drop-body { padding: 14px 16px; }
.dk-wave { display: block; width: 100%; height: 110px; margin: 10px 0 4px; border-radius: 10px; }
.dk-trim input[type="range"] { min-height: 40px; padding: 0; border: 0; accent-color: var(--accent); }

/* Tekst */
.tx-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; }
@media (min-width: 700px) { .tx-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tx-stats div { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.tx-stats dt { color: var(--muted); font-size: 0.82rem; }
.tx-stats dd { margin: 2px 0 0; font: 800 1.45rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tx-groups { display: grid; gap: 14px; margin-top: 18px; }
.tx-h { margin: 0 0 6px; font: 700 1rem/1.2 var(--body); color: var(--muted); }
.tx-group .row { gap: 6px; }
.tx-inline { flex-direction: row; align-items: center; gap: 8px; }
.tx-inline select { width: auto; }
.tx-out { min-height: 80px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.tx-out ins, .tx-legend-ins { background: #d6f5e3; color: #0b5d34; text-decoration: none; border-radius: 3px; }
.tx-out del, .tx-legend-del { background: #fde2e2; color: #9b1c1c; border-radius: 3px; }
.tx-legend-del { text-decoration: line-through; }
.perks-end { margin-top: 36px; }

/* Hasło do archiwum */
.zp-pass { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); }
.zp-pass form { align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.zp-pass label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; flex: 1 1 220px; }
.zp-pass input { min-height: 44px; }
.zp-pass-err { color: #b91c1c; margin: 8px 0 0; }
.zp-pass-err:empty { display: none; }

/* Tekst ze zdjęcia */
.oc-pick { display: grid; gap: 10px; }
.oc-camera { justify-self: start; }
@media (hover: hover) and (pointer: fine) { .oc-camera { display: none; } }
.drop.busy { opacity: 0.6; pointer-events: none; }
.oc-progress { margin: 4px 0 12px; }
.oc-status { margin: 0 0 6px; font-weight: 600; }
.oc-bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.oc-bar span { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.2s; }
@media (prefers-reduced-motion: reduce) { .oc-bar span { transition: none; } }
.oc-work textarea { min-height: 280px; font-size: 1rem; }
.oc-opts { justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.oc-quality:empty { display: none; }

.btn[hidden], [hidden] { display: none !important; }
