[data-dimension-feature][hidden] { display:none!important; }
.dn-panel { display:none; position:fixed; z-index:70; flex-direction:column; overflow:hidden; border:1px solid oklch(var(--bc)/.2); border-radius:1rem; background:oklch(var(--b1)); color:oklch(var(--bc)); box-shadow:0 16px 48px #0005; }
.dn-panel.dn-open { display:flex; animation:dn-enter .16s ease-out; }
.dn-header,.dn-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1rem; background:oklch(var(--b2)); }
.dn-header { cursor:move; border-bottom:1px solid oklch(var(--bc)/.12); }
.dn-header h2 { font-size:1rem; font-weight:650; }
.dn-muted { font-size:.75rem; opacity:.65; }
.dn-actions,.dn-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.dn-scroll { flex:1; overflow:auto; padding:1rem; }
.dn-footer { border-top:1px solid oklch(var(--bc)/.12); }
.dn-message:empty { display:none; }
.dn-message { padding:.5rem 1rem; font-size:.85rem; border-bottom:1px solid oklch(var(--bc)/.1); }
.dn-message[data-error=true] { color:oklch(var(--er)); }
.dn-section { margin-bottom:1rem; }
.dn-section h3 { font-weight:600; font-size:.9rem; margin:.75rem 0; }
.dn-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; margin:.6rem 0; }
.dn-field { display:flex; flex-direction:column; gap:.25rem; font-size:.75rem; }
.dn-field input,.dn-field select,.dn-field textarea { width:100%; min-width:0; }
.dn-card { padding:.7rem; margin:.5rem 0; border:1px solid oklch(var(--bc)/.12); border-radius:.6rem; }
.dn-card[data-excluded=true] { opacity:.5; }
.dn-card input[type=number] { font-variant-numeric:tabular-nums; }
.dn-dimensions { grid-template-columns:repeat(3,minmax(0,1fr)); }
.dn-status { font-size:.7rem; border-radius:1rem; padding:.2rem .5rem; background:oklch(var(--b3)); }
.dn-card:focus-within { border-color:oklch(var(--p)/.65); }
.dn-notes { min-height:100px; line-height:1.8; resize:vertical; }
.dn-import { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.5rem 0; border-bottom:1px solid oklch(var(--bc)/.1); font-size:.8rem; }
.dn-preview { overflow:auto; max-height:320px; background:#fff; border-radius:.5rem; margin-top:.5rem; }
.dn-preview svg { display:block; max-width:none; }
.dn-resize { position:absolute; bottom:0; right:0; width:16px; height:16px; cursor:nwse-resize; }
.dn-activity { position:fixed; bottom:1rem; right:1rem; z-index:65; }
.dn-activity-list { width:min(360px,90vw); max-height:300px; overflow:auto; padding:.8rem; background:oklch(var(--b1)); border:1px solid oklch(var(--bc)/.2); border-radius:.6rem; box-shadow:0 8px 30px #0005; }
.dn-activity-list button { display:block; text-align:left; padding:.6rem; width:100%; border-radius:.4rem; }
.dn-activity-list button:hover { background:oklch(var(--b2)); }
.dn-toast { position:fixed; bottom:4.5rem; right:1rem; max-width:340px; padding:1rem; border:1px solid oklch(var(--p)/.4); border-radius:.7rem; background:oklch(var(--b1)); z-index:90; box-shadow:0 8px 24px #0004; }
.dn-empty { padding:1rem 0; font-size:.85rem; opacity:.7; }
@keyframes dn-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:639px) { .dn-panel { inset:auto 0 0!important; width:100%!important; height:85dvh!important; border-radius:1rem 1rem 0 0; }.dn-header { cursor:default; }.dn-resize,[data-dn-maximize] { display:none; }.dn-activity { bottom:.4rem; right:.4rem; } }
@media(prefers-reduced-motion:reduce) { .dn-panel.dn-open { animation:none; } }

.dn-panel [hidden], .dn-activity[hidden], .dn-toast[hidden], .dn-activity [hidden] { display:none!important; }
.dn-header > div:first-child { flex:1; min-width:0; }
.dn-header .dn-actions { flex-wrap:nowrap; }

.dn-layout { width:100%; max-height:300px; margin-top:.5rem; border:1px solid oklch(var(--bc)/.15); border-radius:.5rem; }
