@import url("/image-converter/styles.css?v=1");
/* Dev tools: JSON formatter, Base64 decoder, binary converter */
.dk { --k: #c9a0ff; --s: #aef13d; --n: #7cc7ff; --b: #ffb454; --z: #8b90a0; --line: 20px; }
.dk .panel { min-width: 0; }
.dk .row { gap: 8px; }
.dk .row + .row { margin-top: 8px; }
.dk .sel.sm { width: auto; padding: 6px 8px; min-height: 32px; font-size: 12px; }
.dk .btn.sm { min-height: 34px; }
.dk-mono, .dk textarea, .dk input.in { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.dk-grow { flex: 1 1 auto; }
.dk-sp { flex: 1 1 auto; }
.dk-drag { outline: 2px dashed var(--accent); outline-offset: 4px; }
.dk .seg { flex-wrap: wrap; }
.dk .seg button { min-height: 34px; padding: 6px 12px; }
.dk .seg button:focus-visible, .dk [role=tab]:focus-visible, .dk .btn:focus-visible, .dk-vlist:focus-visible, .dk-bit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dk-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dk-tabs [role=tab] { background: transparent; border: 1px solid transparent; border-bottom: 0; color: var(--muted); border-radius: 8px 8px 0 0; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; margin-bottom: -1px; }
.dk-tabs [role=tab][aria-selected="true"] { color: var(--accent); border-color: var(--border); background: var(--panel); }
.dk-msg { font-size: 13px; min-height: 20px; margin: 8px 0 0; }
.dk-msg:empty { display: none; }
.dk-ok { color: var(--good); }
.dk-bad { color: var(--bad); }
.dk-warn { color: var(--warn); }
.dk-pill { display: inline-block; font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--muted); white-space: nowrap; }
.dk-pill.ok { color: var(--good); border-color: #2c4a1f; }
.dk-pill.bad { color: var(--bad); border-color: #4a2626; }
.dk-pill.warn { color: var(--warn); border-color: #4a3b1f; }
.dk-out { width: 100%; resize: vertical; font-size: 13px; line-height: 1.45; }
.dk-field { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dk-field + .dk-field { margin-top: 8px; }
.dk-field .lbl { margin: 0; }
.dk-field .in { min-width: 0; }
.dk-field .in.err { border-color: var(--bad); }
.dk-kv { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 4px 14px; font-size: 13px; margin: 0; }
.dk-kv dt { color: var(--muted); }
.dk-kv dd { margin: 0; overflow-wrap: anywhere; }
.dk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dk-table th, .dk-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.dk-table th { color: var(--muted); font-weight: 600; }
.dk-scroll { overflow-x: auto; max-width: 100%; }
.dk-pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; max-height: 420px; overflow: auto; }
.dk-work { font: 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); overflow-x: auto; }
.dk-work div { white-space: pre; }
.dk-work b { color: var(--text); font-weight: 600; }
.dk-work div.h { white-space: normal; margin-top: 4px; }
.dk-table td.nw { white-space: nowrap; overflow-wrap: normal; }
.dk-sub { font-size: 13px; font-weight: 650; margin: 16px 0 8px; }
.dk-note { font-size: 12px; color: var(--muted); }
.dk .hint { cursor: help; border-bottom: 1px dotted var(--muted); }

/* JSON: editor with line numbers */
.dk-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1000px) { .dk-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dk-editor { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); overflow: hidden; height: min(62vh, 560px); min-height: 240px; }
.dk-editor:focus-within { border-color: var(--accent-dim); }
.dk-gutter { position: relative; overflow: hidden; min-width: 44px; padding: 8px 6px 8px 8px; color: #4e5566; font: 12px/var(--line) ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: right; user-select: none; border-right: 1px solid var(--border); }
.dk-gutter div { height: var(--line); }
.dk-gutter .bad { color: var(--bad); font-weight: 700; }
.dk-editor textarea { border: 0; outline: 0; resize: none; background: transparent; color: var(--text); padding: 8px 10px; font-size: 13px; line-height: var(--line); white-space: pre; overflow: auto; tab-size: 2; height: 100%; width: 100%; }
.dk-big { border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); padding: 10px; }
.dk-big pre { max-height: 50vh; margin: 8px 0 0; overflow: auto; font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.dk-status { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; margin-top: 10px; min-height: 24px; }
.dk-err { border: 1px solid #4a2626; border-radius: 8px; padding: 10px 12px; margin-top: 10px; background: rgba(255, 107, 107, 0.05); }
.dk-err .msg { color: var(--bad); font-size: 13px; font-weight: 600; }
.dk-err pre { margin: 8px 0; font: 12px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; color: var(--text); }
.dk-err .fixline { font-size: 12px; color: var(--muted); }
.dk-list { margin: 8px 0 0; padding-left: 20px; font-size: 12px; color: var(--muted); max-height: 220px; overflow: auto; }
.dk-list li { margin: 2px 0; overflow-wrap: anywhere; }
.dk-list b { color: var(--text); font-weight: 600; }
.dk-list button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* JSON: tree and table (virtual lists) */
.dk-vlist { position: relative; overflow: auto; height: min(62vh, 560px); min-height: 240px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); font: 13px/26px ui-monospace, "SF Mono", Menlo, Consolas, monospace; outline: none; }
.dk-vspace { position: relative; }
.dk-row { position: absolute; left: 0; right: 0; height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; cursor: default; }
.dk-row:hover { background: rgba(255, 255, 255, 0.03); }
.dk-row.sel { background: rgba(149, 214, 0, 0.10); }
.dk-row.hit .k, .dk-row.hit .v { text-decoration: underline; text-decoration-color: var(--warn); }
.dk-row.cur { box-shadow: inset 2px 0 0 var(--warn); }
.dk-tog { display: inline-block; width: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.dk-row .k { color: var(--k); }
.dk-row .s { color: var(--s); }
.dk-row .n { color: var(--n); }
.dk-row .b { color: var(--b); }
.dk-row .z { color: var(--z); }
.dk-row .c { color: var(--muted); font-size: 12px; }
.dk-row .bk { color: var(--muted); }
.dk-pathbar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; font-size: 12px; }
.dk-pathbar code { color: var(--text); overflow-wrap: anywhere; min-width: 0; flex: 1 1 160px; }
.dk-tbl { font-size: 12px; line-height: 28px; }
.dk-trow { position: absolute; left: 0; height: 28px; display: flex; white-space: nowrap; }
.dk-trow > span { flex: 0 0 170px; width: 170px; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; border-right: 1px solid var(--border); border-bottom: 1px solid #1c1e26; }
.dk-trow > span.ix { flex-basis: 64px; width: 64px; color: var(--muted); text-align: right; }
.dk-trow.head { position: sticky; top: 0; z-index: 2; background: var(--panel); color: var(--muted); font-weight: 600; }
.dk-trow .z { color: var(--z); }
.dk-trow .n { color: var(--n); }
.dk-empty { color: var(--muted); font-size: 13px; padding: 14px; }

/* Base64 page */
.dk-input { width: 100%; min-height: 150px; resize: vertical; font-size: 13px; line-height: 1.45; }
.dk-chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; }
.dk-chain .arrow { color: var(--muted); }
.dk-chain button.chip { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.dk-chain button.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(149, 214, 0, 0.06); }
.dk-preview { margin-top: 10px; display: grid; gap: 10px; justify-items: start; }
.dk-preview img { max-width: 100%; max-height: 60vh; border-radius: 6px; background-color: #d8d8d8; background-image: linear-gradient(45deg, #b8b8b8 25%, transparent 25%, transparent 75%, #b8b8b8 75%), linear-gradient(45deg, #b8b8b8 25%, transparent 25%, transparent 75%, #b8b8b8 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.dk-preview canvas { max-width: 100%; height: auto; border-radius: 6px; background: #fff; }
.dk-preview audio, .dk-preview video { max-width: 100%; }
.dk-status-big { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.dk-status-big.ok { color: var(--good); }
.dk-status-big.bad { color: var(--bad); }
.dk-status-big.warn { color: var(--warn); }
.dk-claims td:first-child { white-space: nowrap; }
.dk-claims .key { color: var(--k); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.dk-claims .when { color: var(--muted); font-size: 12px; }
.dk-outrow { margin-top: 12px; }
.dk-outrow .row { margin-bottom: 4px; }

/* Binary page */
.dk-bits { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px 0; }
.dk-bit { width: 22px; height: 30px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel-2); color: var(--text); font: 12px ui-monospace, "SF Mono", Menlo, Consolas, monospace; cursor: pointer; padding: 0; }
.dk-bit.s { border-color: #6b3a8f; }
.dk-bit.e { border-color: #2c5a7a; }
.dk-bit.f { border-color: #3d5a1f; }
.dk-bit[aria-pressed="true"].s { background: #9147ff; color: #fff; }
.dk-bit[aria-pressed="true"].e { background: #2f86c8; color: #fff; }
.dk-bit[aria-pressed="true"].f { background: #95d600; color: #10130a; }
.dk-bitgap { width: 6px; }
.dk-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.dk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.dk-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
@media (max-width: 520px) {
  .dk-field { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .dk-calc { grid-template-columns: minmax(0, 1fr); }
  .dk-tabs [role=tab] { padding: 8px 10px; }
}
@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { position: absolute; left: 0; top: 0; white-space: pre-wrap; color: #000; font: 10pt/1.35 ui-monospace, Consolas, monospace; }
}
#printArea { display: none; }
@media print { #printArea { display: block; } }
.dk-legend .lg-s { background: #9147ff; }
.dk-legend .lg-e { background: #2f86c8; }
.dk-legend .lg-f { background: #95d600; }
