/* hm388-008: the Modifications Studio's stylesheet — DepotMod's
   depotmod.css carried over whole (the .dm-* vocabulary the 5,500-line
   Studio view is written against). Literal colours by design: this is
   the documented exception to hm118 for the ported 3D tool, scoped to
   the Studio window only — theme.css never loads here and these
   classes never appear on the tenant shell. */
:root {
  --dm-bg: #f4f6f8;
  --dm-ink: #0f172a;
  --dm-muted: #64748b;
  --dm-navy: #1e3a5f;
  --dm-line: #e2e8f0;
  --dm-accent: #2563eb;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--dm-bg); color: var(--dm-ink); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.dm-top { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 1.25rem; background: var(--dm-navy); color: #fff; }
.dm-brand { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: .3px; }
.dm-nav { display: flex; gap: 1rem; }
.dm-nav a { color: #cbd5e1; text-decoration: none; font-size: .9rem; }
.dm-nav a:hover { color: #fff; }
.dm-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dm-top__close { background: none; border: 1px solid #55627a; color: #cfd8e3; border-radius: 5px; padding: 4px 10px; cursor: pointer; font-size: 12.5px; }
.dm-top__close:hover { color: #fff; border-color: #cfd8e3; }

.dm-main { padding: 1.25rem; }
.dm-card { background: #fff; border: 1px solid var(--dm-line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1.25rem; max-width: 1100px; }
.dm-card h1 { margin: 0 0 .25rem; }
.dm-muted { color: var(--dm-muted); }
.dm-small { font-size: .8rem; }

.dm-btn { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--dm-line); border-radius: 6px; background: #fff; color: var(--dm-ink); text-decoration: none; cursor: pointer; font-size: .88rem; }
.dm-btn:hover { background: #f1f5f9; }
.dm-btn-primary { background: var(--dm-accent); color: #fff; border-color: var(--dm-accent); }
.dm-btn-danger { background: #fff; color: #b91c1c; border-color: #f0b8b8; }
.dm-btn-danger:hover { background: #fef2f2; border-color: #dc2626; }

/* studio */
.dm-studio { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; height: calc(100vh - 110px); }
.dm-palette { background: #fff; border: 1px solid var(--dm-line); border-radius: 10px; padding: 1rem; overflow: auto; }
.dm-palette h3 { margin: 0 0 .15rem; }
.dm-palette h4 { margin: 1rem 0 .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--dm-muted); }
.dm-palette-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.dm-chip { padding: .35rem .55rem; border: 1px solid var(--dm-line); border-radius: 6px; background: #f8fafc; cursor: pointer; font-size: .8rem; }
.dm-chip:hover { background: #e2e8f0; }
.dm-studio-actions { margin-top: 1.25rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.dm-stage { position: relative; background: #202831; border: 1px solid var(--dm-line); border-radius: 10px; overflow: hidden; }
#dm-host { width: 100%; height: 100%; }
#dm-host canvas { display: block; }
#dm-hint { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); color: #cbd5e1; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; }
