:root {
  --bg: #090a0e;
  --bg-soft: #0e1016;
  --panel: rgba(15, 17, 24, 0.94);
  --panel-2: #141720;
  --panel-3: #1a1e29;
  --line: #252a36;
  --line-strong: #343b4a;
  --text: #f7f8fb;
  --muted: #9aa3b2;
  --muted-2: #687284;
  --accent: #8b5cf6;
  --accent-2: #6d42df;
  --accent-soft: rgba(139, 92, 246, 0.15);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --info: #60a5fa;
  --radius: 14px;
  --radius-sm: 10px;
  --topbar: 64px;
  --left: 308px;
  --right: 352px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, textarea, select { color: var(--text); }
::selection { background: rgba(139, 92, 246, .35); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell {
  display: grid;
  grid-template-columns: var(--left) minmax(0, 1fr) var(--right);
  grid-template-rows: var(--topbar) minmax(0, 1fr);
  height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 92, 246, .08), transparent 30%),
    radial-gradient(circle at 78% 100%, rgba(45, 212, 191, .04), transparent 28%),
    var(--bg);
}

.topbar {
  grid-column: 1 / -1;
  height: var(--topbar);
  display: grid;
  grid-template-columns: var(--left) minmax(200px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 14, .9);
  backdrop-filter: blur(18px);
  z-index: 60;
}
.brand { height: 100%; display: flex; align-items: center; gap: 11px; padding: 0 18px; border-right: 1px solid var(--line); }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 11px; font-weight: 900; font-size: 18px;
  color: #fff; background: linear-gradient(145deg, #a78bfa, #6d42df);
  box-shadow: 0 8px 24px rgba(109, 66, 223, .3), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { font-size: 14px; letter-spacing: -.15px; }
.brand-copy span { margin-top: 4px; color: var(--muted-2); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; }

.project-title-wrap { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; }
.project-title {
  width: min(400px, 70%); min-width: 140px; height: 38px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px; outline: none;
  background: transparent; color: var(--text); text-align: center; font-weight: 650;
}
.project-title:hover { background: rgba(255,255,255,.025); border-color: var(--line); }
.project-title:focus { background: var(--panel-2); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.save-state { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.save-state.dirty { color: var(--warning); }
.save-state.saving { color: var(--info); }

.topbar-actions { display: flex; align-items: center; gap: 7px; padding-right: 14px; }
.btn, .icon-btn, .device-btn, .sidebar-tab, .inspector-tab, .link-btn, .zoom-value {
  border: 0; outline: none; transition: .16s ease;
}
.btn {
  min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 12px; font-weight: 750;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent;
}
.btn.compact { min-height: 36px; padding-inline: 12px; }
.btn.full { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 7px 20px rgba(109, 66, 223, .22); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { color: #d7dbe4; background: var(--panel-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-3); border-color: var(--line-strong); }
.btn-danger { color: #fff; background: #e84f66; }
.btn-danger:hover { background: #f15d73; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); background: transparent; font-size: 18px;
}
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
.mobile-menu-btn, .right-close { display: none; }

.sidebar { min-height: 0; background: var(--panel); backdrop-filter: blur(18px); z-index: 30; }
.sidebar-left { grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar-right { grid-column: 3; grid-row: 2; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar-tabs, .inspector-tabs { display: flex; gap: 5px; padding: 11px; border-bottom: 1px solid var(--line); }
.sidebar-tab, .inspector-tab {
  flex: 1; min-width: 0; padding: 8px 6px; border-radius: 9px; color: var(--muted-2); background: transparent;
  font-size: 11px; font-weight: 800;
}
.sidebar-tab:hover, .inspector-tab:hover { color: var(--text); background: rgba(255,255,255,.025); }
.sidebar-tab.active, .inspector-tab.active { color: #fff; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); }
.sidebar-content { display: none; min-height: 0; overflow: auto; padding: 14px; }
.sidebar-content.active { display: block; }
.sidebar-content::-webkit-scrollbar, .inspector-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-content::-webkit-scrollbar-thumb, .inspector-scroll::-webkit-scrollbar-thumb { background: #2d3340; border-radius: 10px; }

.search-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 10px; background: #11141b; color: var(--muted-2); }
.search-box:focus-within { border-color: #54407d; box-shadow: 0 0 0 3px rgba(139,92,246,.08); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #596273; }

.block-category { margin-bottom: 18px; }
.block-category-title { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; font-size: 10px; color: var(--muted-2); text-transform: uppercase; font-weight: 850; letter-spacing: .8px; }
.block-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.block-tile {
  position: relative; min-height: 78px; padding: 11px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(145deg, #141720, #11131a); color: var(--text); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.block-tile::after { content: ''; position: absolute; right: -22px; bottom: -28px; width: 66px; height: 66px; border-radius: 999px; background: var(--accent-soft); opacity: 0; transform: scale(.7); transition: .2s; }
.block-tile:hover { border-color: #4b3c70; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.block-tile:hover::after { opacity: 1; transform: scale(1); }
.block-tile-icon { font-size: 19px; line-height: 1; }
.block-tile strong { font-size: 11px; letter-spacing: -.1px; }
.block-tile small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; line-height: 1.25; }

.panel-heading { margin-bottom: 13px; }
.panel-heading h2 { margin: 0 0 5px; font-size: 13px; }
.panel-heading p { margin: 0; font-size: 10px; line-height: 1.45; color: var(--muted-2); }
.structure-list { display: flex; flex-direction: column; gap: 7px; }
.structure-item {
  border: 1px solid var(--line); border-radius: 11px; background: #12151c; overflow: hidden;
  display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; min-height: 52px;
  padding: 6px 7px 6px 4px; transition: .15s;
}
.structure-item:hover { border-color: var(--line-strong); }
.structure-item.active { border-color: #624b91; background: linear-gradient(90deg, rgba(139,92,246,.1), #12151c 45%); }
.structure-item.is-hidden { opacity: .55; }
.structure-handle { width: 26px; color: #555e6d; background: transparent; border: 0; font-size: 16px; cursor: grab; }
.structure-copy { min-width: 0; background: transparent; border: 0; color: inherit; text-align: left; padding: 4px; }
.structure-copy strong { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 11px; }
.structure-copy small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.structure-actions { display: flex; gap: 2px; }
.structure-action { width: 25px; height: 25px; border: 0; border-radius: 7px; background: transparent; color: var(--muted-2); font-size: 11px; }
.structure-action:hover { color: #fff; background: var(--panel-3); }
.structure-action.danger:hover { color: var(--danger); }
.structure-drop-before { box-shadow: 0 -2px 0 var(--accent); }
.structure-drop-after { box-shadow: 0 2px 0 var(--accent); }

.template-grid { display: grid; gap: 10px; }
.template-card { border: 1px solid var(--line); background: #12151c; border-radius: 13px; overflow: hidden; }
.template-cover { height: 90px; padding: 12px; display: flex; align-items: flex-end; background: var(--template-bg, linear-gradient(135deg,#382b57,#17131f)); }
.template-cover span { padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.85); font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.template-info { padding: 11px; }
.template-info h3 { margin: 0 0 4px; font-size: 12px; }
.template-info p { margin: 0 0 10px; color: var(--muted-2); font-size: 9.5px; line-height: 1.45; }
.template-info .btn { width: 100%; min-height: 33px; font-size: 10px; }

.sidebar-footer-actions { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); background: rgba(9,10,14,.55); }
.split-actions { margin-top: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.split-actions .btn { min-height: 34px; font-size: 10px; }

.workspace { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; display: grid; grid-template-rows: 50px minmax(0,1fr); background: #0b0d12; }
.workspace-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(15,17,24,.82); }
.device-switch { justify-self: start; display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #10131a; }
.device-btn { height: 29px; padding: 0 9px; border-radius: 6px; color: var(--muted-2); background: transparent; font-size: 10px; font-weight: 800; }
.device-btn:hover { color: var(--text); }
.device-btn.active { color: #fff; background: var(--panel-3); box-shadow: 0 1px 5px rgba(0,0,0,.18); }
.device-btn span { margin-left: 4px; }
.workspace-status { font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.dot-separator { margin: 0 6px; color: #3f4654; }
.link-btn { padding: 3px 0; color: #af9ee2; background: transparent; font-size: 10px; font-weight: 800; }
.link-btn:hover { color: #d2c6f3; }
.zoom-controls { justify-self: end; display: flex; align-items: center; gap: 3px; }
.zoom-value { min-width: 48px; height: 28px; padding: 0 5px; color: var(--muted); background: transparent; border-radius: 7px; font-size: 10px; font-weight: 800; }
.zoom-value:hover { color: #fff; background: var(--panel-2); }

.canvas-area { position: relative; min-height: 0; overflow: auto; padding: 32px; display: flex; justify-content: center; align-items: flex-start; background-color: #0b0d12; background-image: radial-gradient(#252a34 .7px, transparent .7px); background-size: 14px 14px; }
.canvas-frame {
  width: 100%; max-width: 1440px; height: calc(100% - 2px); min-height: 520px; transform-origin: top center;
  background: #fff; border: 1px solid #2b303b; border-radius: 10px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,.35);
  transition: width .24s ease, border-radius .2s ease;
}
.canvas-frame.tablet { width: 820px; }
.canvas-frame.mobile { width: 390px; border-radius: 24px; }
.canvas-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.inspector-header { min-height: 68px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.eyebrow { display: block; margin-bottom: 4px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .9px; font-weight: 900; }
.inspector-header h2 { margin: 0; font-size: 13px; letter-spacing: -.15px; }
.inspector-tabs { padding: 8px 10px; }
.inspector-tab { padding-block: 7px; font-size: 10px; }
.inspector-scroll { min-height: 0; flex: 1; overflow: auto; padding: 13px; }
.inspector-empty { padding: 35px 20px; text-align: center; color: var(--muted); }
.inspector-empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid #433663; border-radius: 14px; background: var(--accent-soft); color: #c6b5f3; font-size: 20px; }
.inspector-empty h3 { margin: 0 0 7px; color: #fff; font-size: 13px; }
.inspector-empty p { margin: 0; font-size: 10px; line-height: 1.55; color: var(--muted-2); }

.inspector-section { margin-bottom: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,21,28,.78); }
.inspector-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.inspector-section-title h3 { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: #bac1cd; }
.inspector-section-title small { color: var(--muted-2); font-size: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field label, .field-label { color: #aeb6c3; font-size: 9px; font-weight: 750; }
.field-help { margin-top: -1px; color: var(--muted-2); font-size: 8.5px; line-height: 1.4; }
.text-input, .text-area, .select-input, .number-input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #0f1218; color: #f5f6f8; font-size: 10px;
}
.text-input, .select-input, .number-input { height: 36px; padding: 0 10px; }
.text-area { min-height: 76px; resize: vertical; padding: 9px 10px; line-height: 1.5; }
.text-input:focus, .text-area:focus, .select-input:focus, .number-input:focus { border-color: #6b50a0; box-shadow: 0 0 0 3px rgba(139,92,246,.08); }
.color-input-wrap { height: 36px; display: grid; grid-template-columns: 34px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #0f1218; }
.color-input { width: 34px; height: 34px; padding: 4px; border: 0; background: transparent; }
.color-text { min-width: 0; border: 0; outline: 0; padding: 0 8px; color: #d9dde5; background: transparent; font-size: 9px; text-transform: uppercase; }
.toggle-row { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-copy strong { display: block; font-size: 9.5px; }
.toggle-copy small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; line-height: 1.35; }
.toggle { position: relative; width: 37px; height: 21px; flex: 0 0 auto; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; border-radius: 999px; background: #303642; transition: .18s; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #aeb5c1; transition: .18s; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); background: #fff; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0f1218; }
.segmented button { flex: 1; min-height: 29px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-2); font-size: 9px; font-weight: 800; }
.segmented button:hover { color: #fff; }
.segmented button.active { background: var(--panel-3); color: #fff; }
.range-row { display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: center; gap: 8px; }
.range-input { width: 100%; accent-color: var(--accent); }
.range-value { height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #c7cdd6; font-size: 8.5px; background: #0f1218; }
.repeat-list { display: flex; flex-direction: column; gap: 8px; }
.repeat-card { border: 1px solid var(--line); border-radius: 10px; background: #0f1218; overflow: hidden; }
.repeat-card-head { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-bottom: 1px solid #202530; }
.repeat-card-head strong { min-width: 0; flex: 1; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repeat-card-body { padding: 8px; }
.mini-action { width: 25px; height: 25px; border: 0; border-radius: 6px; color: var(--muted-2); background: transparent; font-size: 10px; }
.mini-action:hover { color: #fff; background: #1b202a; }
.mini-action.danger:hover { color: var(--danger); }
.add-item-btn { width: 100%; min-height: 34px; border: 1px dashed #343c4b; border-radius: 9px; color: #aeb7c6; background: transparent; font-size: 9px; font-weight: 800; }
.add-item-btn:hover { border-color: #6c54a0; color: #d2c5f2; background: rgba(139,92,246,.05); }
.inspector-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.inspector-actions .btn { min-height: 34px; font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(2,3,6,.72); backdrop-filter: blur(8px); }
.modal { position: fixed; z-index: 110; left: 50%; top: 50%; width: min(620px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); transform: translate(-50%,-50%); border: 1px solid #2d3340; border-radius: 18px; background: #0f1218; box-shadow: 0 35px 120px rgba(0,0,0,.56); overflow: hidden; }
.modal[hidden], .modal-backdrop[hidden] { display: none; }
.modal-wide { width: min(1240px, calc(100vw - 28px)); height: min(850px, calc(100vh - 28px)); }
.modal-header { min-height: 68px; padding: 12px 15px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 15px; }
.modal-header-actions { display: flex; align-items: center; gap: 7px; }
.modal-body { max-height: calc(100vh - 120px); overflow: auto; padding: 18px; }
.project-modal-actions { display: flex; align-items: center; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.project-modal-actions p { margin: 0; color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.saved-projects { display: grid; gap: 8px; margin-top: 14px; }
.saved-project { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #12151c; }
.saved-project.active { border-color: #60498f; background: linear-gradient(90deg, rgba(139,92,246,.08), #12151c 40%); }
.saved-project h3 { margin: 0 0 4px; font-size: 11px; }
.saved-project p { margin: 0; color: var(--muted-2); font-size: 8.5px; }
.saved-project-actions { display: flex; gap: 4px; }
.saved-project-actions .btn { min-height: 30px; padding: 0 9px; font-size: 8px; }
.preview-modal-body { height: calc(100% - 68px); background: #fff; }
.preview-modal-body iframe { width: 100%; height: 100%; border: 0; }
.confirm-copy { color: #c1c7d0; font-size: 11px; line-height: 1.6; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 200; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 11px 13px; border: 1px solid #303747; border-radius: 11px; background: rgba(18,21,28,.95); color: #e7eaf0; box-shadow: 0 16px 40px rgba(0,0,0,.28); animation: toast-in .22s ease; }
.toast-row { display: flex; align-items: flex-start; gap: 9px; }
.toast-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #242a36; font-size: 11px; }
.toast-copy { min-width: 0; flex: 1; }
.toast-copy strong { display: block; font-size: 10px; }
.toast-copy span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8.5px; line-height: 1.4; }
.toast.success .toast-icon { color: var(--success); background: rgba(52,211,153,.09); }
.toast.warning .toast-icon { color: var(--warning); background: rgba(251,191,36,.09); }
.toast.error .toast-icon { color: var(--danger); background: rgba(251,113,133,.09); }
@keyframes toast-in { from { opacity:0; transform: translateY(8px) scale(.98); } to { opacity:1; transform:none; } }

@media (max-width: 1240px) {
  :root { --left: 270px; --right: 320px; }
  .brand-copy span { display:none; }
  .device-btn span { display:none; }
}

@media (max-width: 980px) {
  :root { --right: 310px; }
  .app-shell { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .topbar { grid-template-columns: 58px minmax(120px,1fr) auto; }
  .brand { padding: 0 11px; border-right: 0; }
  .brand-copy { display: none; }
  .sidebar-left, .sidebar-right {
    position: fixed; top: var(--topbar); bottom: 0; width: min(330px, 88vw); z-index: 80; box-shadow: 20px 0 70px rgba(0,0,0,.42);
    transition: transform .2s ease;
  }
  .sidebar-left { left:0; transform: translateX(-102%); }
  .sidebar-left.open { transform: translateX(0); }
  .sidebar-right { right:0; transform: translateX(102%); box-shadow: -20px 0 70px rgba(0,0,0,.42); }
  .sidebar-right.open { transform: translateX(0); }
  .workspace { grid-column: 2; }
  .mobile-menu-btn, .right-close { display: grid; }
  .topbar-actions .btn-ghost { display:none; }
}

@media (max-width: 660px) {
  :root { --topbar: 58px; }
  .topbar { grid-template-columns: 48px minmax(0,1fr) auto; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 15px; }
  .project-title-wrap { padding: 0 5px; }
  .project-title { width: 100%; padding-inline: 5px; font-size: 11px; }
  .save-state { display:none; }
  .topbar-actions { gap: 2px; padding-right: 6px; }
  .topbar-actions > .icon-btn:not(.mobile-menu-btn) { display:none; }
  .topbar-actions .btn-primary { min-height: 32px; padding-inline: 9px; font-size: 9px; }
  .workspace-toolbar { grid-template-columns: auto 1fr auto; padding: 0 7px; }
  .workspace-status { text-align:center; }
  .workspace-status #blockCount, .dot-separator { display:none; }
  .canvas-area { padding: 14px 8px 22px; }
  .canvas-frame { min-height: 570px; }
  .modal { border-radius: 14px; }
  .project-modal-actions { align-items:flex-start; flex-direction: column; }
}
