@import url("/image-converter/styles.css?v=1");
/* colour picker from image */
.cp-grid { grid-template-columns: minmax(0, 1fr) 440px; }
@media (max-width: 960px) { .cp-grid { grid-template-columns: 1fr; } .cp-grid .col-right { position: static; } .cp-stage { height: min(48vh, 420px); } }
.cp-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--accent-dim); border-radius: 10px; background: rgba(149,214,0,.06); font-size: 13px; }
.cp-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cp-thumb { position: relative; width: 84px; height: 64px; padding: 0; border: 2px solid var(--border); border-radius: 8px; background: var(--panel-2); cursor: pointer; overflow: hidden; }
.cp-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(149,214,0,.3); }
.cp-thumb-n { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; background: rgba(14,15,18,.85); color: var(--text); border-radius: 999px; padding: 1px 6px; }
.cp-thumb-n:empty { display: none; }
.cp-thumb-x { position: absolute; right: 2px; top: 0; font-size: 15px; line-height: 1; color: #fff; background: rgba(14,15,18,.7); border-radius: 0 6px 0 6px; padding: 1px 5px; }
.cp-thumb-x:hover { background: var(--bad); }
.cp-empty { text-align: center; padding: 26px 12px; border: 1px dashed #3a4150; border-radius: 10px; background: var(--panel-2); }
body.dragging .cp-empty, body.dragging .cp-stage { outline: 2px dashed var(--accent); }
.cp-stage { position: relative; width: 100%; height: min(62vh, 560px); min-height: 280px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0a0b0e repeating-conic-gradient(#16181d 0 25%, #0e1013 0 50%) 0 0 / 24px 24px; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cp-stage canvas.view { width: 100%; height: 100%; display: block; }
.cp-loupe { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0,0,0,.6); pointer-events: none; display: none; overflow: visible; background: #000; z-index: 3; }
.cp-stage { overflow: visible; }
.cp-stage canvas.view { border-radius: 12px; }
.cp-loupe canvas { width: 120px; height: 120px; border-radius: 50%; display: block; image-rendering: pixelated; }
.cp-loupe-out { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid #000; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.cp-flash { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 12px; background: rgba(14,15,18,.9); color: var(--text); border-radius: 999px; padding: 4px 12px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cp-flash.on { opacity: 1; }
.cp-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 12px; }
.cp-zoom { display: inline-flex; gap: 4px; margin-left: auto; }
.cp-icon { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 7px; width: 30px; height: 30px; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.cp-icon:hover { border-color: var(--accent); color: var(--accent); }
/* groups */
.cp-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cp-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); cursor: pointer; }
.cp-group.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(149,214,0,.22); }
.cp-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cp-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cp-name { flex: 1 1 80px; min-width: 60px; background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 13px; font-weight: 700; }
.cp-name:hover, .cp-name:focus { border-color: var(--border); background: var(--panel); outline: none; }
.cp-acts { display: inline-flex; gap: 3px; }
.cp-acts .cp-icon { width: 26px; height: 26px; font-size: 13px; }
.cp-blocks { display: flex; flex-wrap: wrap; gap: 3px; min-height: 40px; }
.cp-sw { position: relative; flex: 1 1 36px; max-width: 72px; height: 40px; border: 2px solid rgba(255,255,255,.08); border-radius: 5px; padding: 0; cursor: grab; }
.cp-sw.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.cp-sw.adjusted::after { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #000; }
.cp-sw.dragging { opacity: .4; }
.cp-sw.over { box-shadow: inset 4px 0 0 var(--accent); }
.cp-sw-n { position: absolute; left: 4px; bottom: 2px; font-size: 10px; font-weight: 700; }
.cp-sw-v { position: absolute; right: 4px; top: 2px; font-size: 10px; font-weight: 700; }
.cp-smooth { height: 22px; border-radius: 5px; margin-top: 6px; border: 1px solid rgba(255,255,255,.08); }
.cp-steps { display: flex; gap: 2px; margin-top: 6px; }
.cp-steps span { flex: 1; height: 16px; border-radius: 3px; border: 1px dashed rgba(255,255,255,.35); }
.cp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cp-hint { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cp-select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 12px; }
/* selected colour */
.cp-detail { display: flex; align-items: center; gap: 12px; }
.cp-dswatch { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.cp-dinfo { font-size: 14px; }
.cp-drow { margin-top: 10px; }
.cp-drow label { display: inline-flex; align-items: center; gap: 6px; }
/* save and sheet */
.cp-h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 650; }
.cp-sheet { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cp-sheet img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.cp-textout { margin-top: 10px; font-size: 12px; }
.cp-print { display: none; }
@media print {
  body > *:not(.cp-print) { display: none !important; }
  .cp-print { display: block; }
  .cp-print img { display: block; width: 8.5in; height: 11in; page-break-after: always; break-after: page; }
  .cp-print.a4 img { width: 210mm; height: 297mm; }
  @page { margin: 0; }
}
.cp-sw-x { position: absolute; right: -1px; top: -1px; width: 16px; height: 16px; border-radius: 0 4px 0 5px; font-size: 12px; line-height: 15px; text-align: center; color: #fff; background: rgba(14,15,18,.75); display: none; }
.cp-sw:hover .cp-sw-x, .cp-sw.selected .cp-sw-x { display: block; }
.cp-sw-x:hover { background: var(--bad); }
.cp-detail-box { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); cursor: default; }
.cp-h3.first { margin-top: 0; }
.cp-dname { font-size: 12px; color: var(--muted); }
.cp-more { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.cp-more summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.cp-more summary:hover { color: var(--text); }
.cp-thumb-add { display: grid; place-items: center; font-size: 28px; color: var(--muted); border-style: dashed; }
.cp-thumb-add:hover { color: var(--accent); border-color: var(--accent); }
