/* dot.fm · PNG to Font desain final, dipakai bersama studio-c.css
   Nilai mengikuti section Figma 81:112082 di file KdPpR8tbvzljxKaY2SktRd. */
.i-files { --i: url("icons-c/files.svg"); }
.i-chevron { --i: url("icons-c/chevron.svg"); }
.i-height { --i: url("icons-c/height.svg"); }
.i-baseline { --i: url("icons-c/baseline.svg"); }
.i-rotate { --i: url("icons-c/rotate.svg"); }

#image-layer image { cursor: grab; }

/* ---------- kartu Letters ---------- */
.file-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.file-info b { overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--ink); white-space: nowrap; }
.file-info small { overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 14px; color: var(--text-5); white-space: nowrap; }
.file-info.empty b { color: var(--text-5); }
.tile-img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- huruf belum punya gambar ---------- */
.empty-hint { position: absolute; z-index: 2; left: 50%; top: 53%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; transform: translate(-50%, -50%); border-radius: 12px; text-align: center; white-space: nowrap; cursor: pointer; }
.empty-title { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.empty-title b { font-weight: 500; font-size: 14px; line-height: 20px; }
.empty-hint:hover .empty-title b { text-decoration: underline; }
.empty-hint small { font-size: 12px; line-height: 18px; color: var(--text-5); }

/* ---------- Upload ---------- */
.upload-card { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 11px; overflow: hidden; }
.drops { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.upload-card:has(.name-ref[open]) .drops { flex: none; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1px dashed var(--guide); border-radius: 12px; text-align: center; cursor: pointer; }
.drop:hover, .dropping .drop { border-color: var(--guide-strong); background: var(--page); }
.drop .icon { color: var(--text-4); }
.drop b { font-weight: 500; line-height: 18px; color: var(--ink); }
.drop small { max-width: 264px; font-size: 12px; line-height: 18px; color: var(--text-5); }
.drop-one { flex: 1 1 0; min-height: 120px; }
.drop-one .icon { width: 24px; height: 24px; }
.drop-one b { font-size: 14px; }
.drop-many { flex: 1 1 0; }
.drop-many b { font-size: 12px; }
.dropping .canvas { box-shadow: inset 0 0 0 2px var(--dark); }

.name-ref { flex: none; min-height: 0; }
.name-ref[open] { flex: 1 1 0; overflow-y: auto; scrollbar-width: thin; }
.name-ref summary { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; background: var(--card); list-style: none; font-weight: 500; font-size: 12px; line-height: 18px; color: var(--text-3); cursor: pointer; }
.name-ref summary::-webkit-details-marker { display: none; }
.name-ref summary:hover { color: var(--ink); }
.name-ref .i-chevron { color: var(--text-4); transition: transform 0.15s ease-out; }
.name-ref[open] .i-chevron { transform: rotate(180deg); }
.name-body { padding: 4px; font-size: 12px; line-height: 18px; color: var(--text-3); }
.name-body p + .name-grid { margin-top: 8px; }
.name-body b { font-weight: 500; color: var(--ink); }
.name-body code { padding: 1px 4px; background: var(--chip); border-radius: 4px; font: 400 11px/16px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink-2); white-space: nowrap; }
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); column-gap: 10px; margin-bottom: 8px; }
.name-grid span { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 5px 0; border-top: 1px solid var(--line); }
.name-grid b { flex: 0 0 1.4em; font-size: 14px; text-align: center; }
.name-grid code { padding: 1px 3px; font-size: 10.5px; }

/* ---------- Adjust ---------- */
.adjust-card { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 11px; }
.adjust-help { font-size: 12px; line-height: 18px; color: var(--text-4); }
.adj-fields { display: flex; gap: 8px; }
.adj-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; color: var(--text-5); }
.adj-field .field { flex: none; gap: 6px; padding: 0 8px; }
.field:has(input:disabled) { opacity: 0.6; cursor: default; }
.field:has(input:disabled) .scrub { cursor: default; }
.remove { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; background: var(--chip); border-radius: 10px; font-weight: 500; font-size: 12px; line-height: 18px; color: var(--ink-2); }
.remove:hover:not(:disabled) { background: var(--soft); }
.remove:disabled { opacity: 0.5; cursor: default; }


/* ==========================================================================
   HP: Upload dan Adjust jadi lembar dari tombol mengambang (lihat studio-c.css)
   ========================================================================== */
@media (max-width: 900px) {
  .polish-actions { flex: 0 1 auto; justify-content: flex-end; text-align: right; }
  .empty-hint { top: 50%; }
  .empty-hint small { display: none; }

  .upload-card { overflow: visible; }
  .drops { flex: none; flex-direction: row; }
  .upload-card:has(.name-ref[open]) .drops { flex: none; }
  .drop, .drop-one, .drop-many { flex: 1 1 0; min-width: 0; min-height: 96px; }
  .drop .icon, .drop-one .icon { width: 20px; height: 20px; }
  .drop b, .drop-one b, .drop-many b { font-size: 13px; }
  .drop small { display: none; }
  .name-ref, .name-ref[open] { flex: none; overflow: visible; }
  .name-ref summary { position: static; margin-bottom: -7px; padding: 7px 0; }
  .name-ref[open] summary { margin-bottom: 0; }

  .adj-field .field { gap: 6px; padding: 0 12px; }
  .adj-field .field input { transform-origin: left center; text-align: left; }
  .adjust-help { color: var(--text-5); }
  .remove { height: 40px; font-size: 13px; }

}
