.cd-desk {display:grid;gap:12px;min-width:0;color:var(--ink,#241e2a)}
.cd-desk [hidden] {display:none!important}
.cd-desk .cd-actions,.cd-desk .cd-entry-controls {display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.cd-desk .cd-actions strong {margin-right:auto}
.cd-desk .cd-btn,.cd-desk select,.cd-desk input:not([type=checkbox]),.cd-desk textarea {font:inherit;color:inherit;background:white;border:1px solid var(--line,#ded9e4);border-radius:8px;padding:7px 10px;max-width:100%;min-width:0}
.cd-desk .cd-btn {font-size:13px;line-height:1.25;min-height:34px;cursor:pointer}
.cd-desk .cd-btn:hover:not(:disabled) {border-color:#8b65bd;background:#f7f1ff}
.cd-desk .cd-btn:disabled {opacity:.4;cursor:default}
.cd-desk button:focus-visible,.cd-desk select:focus-visible,.cd-desk input:focus-visible,.cd-desk summary:focus-visible {outline:3px solid #8e56d6;outline-offset:2px}
.cd-desk .cd-thumbs {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(138px,100%),1fr));gap:8px}
.cd-desk .cd-tile {position:relative;min-width:0;border:1px solid var(--line,#ded9e4);border-radius:10px;padding:7px;display:grid;gap:4px;align-content:start;background:#fff}
.cd-desk .cd-thumb {height:112px;overflow:hidden;background:#f1eef4;display:grid;place-items:center;border-radius:5px;font-size:12px;text-align:center}
.cd-desk .cd-thumb canvas {max-width:96%;max-height:105px;width:auto;height:auto;background:#fff;box-shadow:0 1px 4px #33263c25}
.cd-desk .cd-tile small,.cd-desk .cd-help,.cd-desk .cd-page-label,.cd-desk .cd-status {font-size:13px;color:#534962;overflow-wrap:anywhere}
.cd-desk .cd-status:empty,.cd-desk .cd-field-host:empty,.cd-desk .cd-entry-controls:empty {display:none}
.cd-desk .cd-file-title {font-size:14px;font-weight:600;overflow-wrap:anywhere}
.cd-desk .cd-tile-tools {display:grid;grid-template-columns:repeat(4,1fr);gap:2px}
.cd-desk .cd-tile-tools button {font-size:16px;padding:2px;min-height:32px}
.cd-desk .cd-page-view {background:#efedf1;border-radius:10px;padding:8px;min-height:140px;display:grid;place-items:center;min-width:0}
.cd-desk .cd-page-canvas {width:auto;height:auto;max-width:100%;max-height: min(70vh,690px);background:white;box-shadow:0 1px 5px #372d4022;touch-action:none;cursor:crosshair;display:block}
.cd-desk .cd-field {display:grid;gap:3px;min-width:0;flex:1 1 105px;font-size:13px}
.cd-desk .cd-field span {font-weight:600;color:#483f50}
.cd-desk select,.cd-desk .cd-field input:not([type=checkbox]),.cd-desk textarea {width:100%;font-size:14px}
.cd-desk .cd-actions select {width:auto;flex:1 1 130px}
.cd-desk summary {cursor:pointer;font-size:14px;font-weight:600}
.cd-desk .cd-coord-grid,.cd-desk .cd-form-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0}
.cd-desk .cd-form-list {grid-template-columns:1fr}
.cd-desk .cd-form-list input[type=checkbox] {width:19px;height:19px;margin:4px 0}
.cd-desk .cd-signature {display:grid;gap:7px}.cd-desk .cd-signature .cd-btn{justify-self:start}
.cd-desk .cd-pad {width:100%;height:auto;max-height:160px;background:white;border:1px dashed #b4a7c3;border-radius:6px;touch-action:none}
@media(min-width:800px) {
  .workspace-layout:has(.cd-desk) {grid-template-columns:minmax(235px,.86fr) minmax(390px,1.14fr)}
  .workspace-layout:has(.cd-desk) .settings-panel {position:static}
}
@media(pointer:coarse){.cd-desk .cd-btn,.cd-desk select {min-height:44px}.cd-desk .cd-tile-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
