:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color:#e7eef0;
  background:#0f1921;
  --panel:#15242d;
  --line:#2d414c;
  --accent:#93ddd1;
  --muted:#a5b9c0;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;min-height:100dvh}
button,input,textarea,select {font:inherit}
button,input,select,textarea {
  color:inherit;background:#1b303b;border:1px solid var(--line);border-radius:7px;
}
button {min-height:39px;padding:7px 11px;cursor:pointer}
button:disabled {opacity:.45;cursor:default}
:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
[aria-pressed=true] {background:#294c54;border-color:#6da9a0}
.toolbar {
  min-height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;
  padding:8px 16px;background:#11212a;border-bottom:1px solid var(--line);
}
.identity,.toolbar-actions,.devices {display:flex;align-items:center;gap:7px}
.identity {gap:10px}
.identity strong,.identity small {display:block}
.identity small,.preview-origin,.hint,#part-kind {color:var(--muted);font-size:.78rem}
.brand-mark {width:35px;height:35px;display:grid;place-items:center;border-radius:8px;background:#28434d;color:var(--accent);font-family:Georgia,serif;font-size:1.35rem}
.toolbar-actions {justify-content:end}
.primary {background:var(--accent);color:#12302c;font-weight:700}
.workspace {display:grid;grid-template-columns:minmax(0,1fr) minmax(264px,326px);min-height:calc(100dvh - 64px)}
.preview {min-width:0;display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:16px;gap:8px}
.preview-bar {display:flex;align-items:center;gap:7px;color:#d0dde0;font-size:.86rem;align-self:start}
.preview-origin {margin-left:5px}
.page-dot {width:7px;height:7px;background:var(--accent);border-radius:50%}
iframe {display:block;width:min(100%,var(--device-width,1440px));height:max(440px,calc(100dvh - 122px));border:1px solid var(--line);border-radius:9px;background:#ebf1f2}
.inspector {padding:17px;background:var(--panel);border-left:1px solid var(--line)}
label {display:grid;gap:6px;font-size:.84rem;color:#c5d6dc}
.editor-fields>label {margin-top:14px}
input,select,textarea {width:100%;padding:8px;min-height:39px}
.picker-label {margin-bottom:5px}
textarea {resize:vertical}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}
h1 {font-size:1rem;margin:0}
#part-kind {flex-shrink:0}
.control-row {display:flex;gap:9px;margin-top:13px}
.control-row>* {flex:1}
[type=color] {padding:4px}
[type=range] {accent-color:var(--accent)}
.check-label {display:flex;align-items:center}
.check-label input {width:18px;min-height:auto;accent-color:var(--accent)}
.quiet {margin-top:15px;background:transparent}
#status {min-height:20px;color:var(--accent);font-size:.85rem}
@media (max-width:720px) {
  .toolbar {grid-template-columns:1fr auto;padding:8px 10px;gap:8px}
  .devices {grid-row:2;grid-column:1/-1;justify-content:center}
  .workspace {grid-template-columns:1fr}
  .preview {padding:10px}
  iframe {height:55dvh;min-height:300px}
  .inspector {border-left:0;border-top:1px solid var(--line)}
}
