
    .menu-row[data-window-panel].is-checked::before,
    .menu-row[data-precision-menu].is-checked::before {
      content: "✓";
    }

    .menu-row.muted { color: rgba(255, 255, 255, .42); }
    .menu-row.is-disabled {
      color: rgba(255, 255, 255, .38);
      cursor: default;
    }

    .menu-row.is-disabled:hover {
      background: transparent;
    }

    .menu-sep { height: 1px; margin: 7px 14px; background: rgba(255, 255, 255, .18); }

    .top-icons {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #ececec;
      font-size: 18px;
      white-space: nowrap;
    }

    .menu-actions button,
    .doc-actions button {
      min-height: 27px;
      padding: 3px 8px;
    }

    .toolbar {
      width: 46px;
      min-width: 0;
      max-width: 46px;
      justify-self: start;
      gap: 2px;
      border-right-color: #2f2f2f;
      background: #535353;
      padding: 6px 3px;
      overflow: visible;
      scrollbar-width: none;
    }

    .toolbar::-webkit-scrollbar { width: 0; height: 0; }

    .tool-btn {
      width: 32px;
      height: 31px;
      min-height: 31px;
      position: relative;
      border-color: transparent;
      background: transparent;
      color: #ededed;
      font-size: 0;
      line-height: 1;
      border-radius: 2px;
    }

    .tool-btn::before {
      content: attr(data-glyph);
      display: grid;
      place-items: center;
      width: 22px;
      height: 22px;
      border-radius: 3px;
      color: #ececec;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: 0;
    }

    .tool-btn::after {
      content: "";
      position: absolute;
      right: 3px;
      bottom: 3px;
      display: none;
      width: 5px;
      height: 5px;
      border-right: 1px solid rgba(255, 255, 255, .76);
      border-bottom: 1px solid rgba(255, 255, 255, .76);
    }

    .tool-btn[data-tool-group]::after,
    .tool-group-primary::after {
      display: block;
    }

    .tool-flyout .tool-btn::after {
      display: none;
    }

    .tool-btn:hover::before,
    .tool-btn.active::before {
      background: rgba(255, 255, 255, .08);
    }

    .tool-btn:hover,
    .tool-btn.active {
      border-color: #777;
      background: #454545;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    }

    .tool-slot {
      position: relative;
      display: grid;
      place-items: center;
      width: 34px;
      min-height: 33px;
    }

    .tool-flyout {
      position: absolute;
      z-index: 70;
      left: 34px;
      top: 0;
      display: none;
      grid-template-columns: repeat(2, 32px);
      gap: 2px;
      border: 1px solid #2b2b2b;
      border-radius: 4px;
      background: rgba(75, 75, 75, .98);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
      padding: 4px;
    }

    .tool-slot:hover .tool-flyout,
    .tool-slot:focus-within .tool-flyout,
    .tool-slot.is-open .tool-flyout {
      display: grid;
    }

    .tool-flyout .tool-btn {
      background: #555;
    }

    .tool-flyout .tool-btn:hover,
    .tool-flyout .tool-btn.active {
      background: #444;
    }

    .tool-sep { width: 28px; background: #6a6a6a; }

    .contextbar {
      border-bottom-color: #2f2f2f;
      background: #565656;
      min-height: 38px;
      padding: 5px 8px;
      gap: 6px;
    }

    .control { color: #d0d0d0; font-size: 12px; }
    .control strong { color: #f3f3f3; font-size: 13px; }
    .control input[type="range"] { width: 92px; }
    .control select { width: 112px; }
    .control input[type="number"] { width: 58px; }
    .brush-preset-btn { background: #4a4a4a; border-color: #6a6a6a; }
    .option-group {
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: max-content;
    }

    .transform-actions {
      flex-wrap: wrap;
      min-width: 0;
    }

    .transform-actions button {
      flex: 1 1 64px;
    }

    .transform-snap-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #d0d0d0;
      font-size: 12px;
      white-space: nowrap;
    }

    .transform-snap-chip input[type="number"] {
      width: 58px;
    }
    .option-group.is-hidden,
    .control.is-hidden,
    .brush-presets.is-hidden {
      display: none;
    }
    .mini-icon-btn {
      width: 30px;
      min-width: 30px;
      padding: 0;
      font-weight: 800;
    }
    .option-chip {
      min-height: 26px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      border: 1px solid #686868;
      border-radius: 3px;
      background: #4b4b4b;
      padding: 3px 6px;
      color: #f1f1f1;
      font-size: 11px;
      font-weight: 700;
    }
    .option-chip input {
      margin: 0;
      accent-color: #2ba7e2;
    }

    .stage { background: #282828; }
    .canvas-shell { inset: auto; }
    .canvas-viewport { box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }

    .document-tabs {
      grid-row: 1;
      z-index: 3;
      height: 34px;
      display: flex;
      align-items: stretch;
      border-bottom: 1px solid #2f2f2f;
      background: #424242;
      overflow: hidden;
    }

    .doc-tab {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 250px;
      max-width: 420px;
      padding: 0 12px;
      border-right: 1px solid #333;
      background: #505050;
      color: #e7e7e7;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      cursor: pointer;
    }

    .doc-tab.secondary {
      opacity: .72;
      background: #444;
      font-weight: 600;
    }

    .doc-tab.active {
      background: #545454;
      color: #fff;
    }

    .doc-tab-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .doc-close {
      width: 18px;
      min-width: 18px;
      height: 18px;
      min-height: 18px;
      display: grid;
      place-items: center;
      border: 0;
      background: transparent;
      padding: 0;
      color: #ddd;
      font-size: 14px;
    }

    .doc-close:hover {
      background: #686868;
    }

    .quick-actions {
      grid-row: 3;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 5px;
      justify-self: stretch;
      width: 100%;
      min-width: 0;
      min-height: 38px;
      padding: 5px 8px;
      border: 1px solid #555;
      border-inline: 0;
      border-radius: 3px;
      background: rgba(84, 84, 84, .96);
      box-shadow: 0 7px 18px rgba(0, 0, 0, .35);
      transform: none;
      overflow-x: auto;
      overflow-y: hidden;
    }

    .quick-actions::before {
      content: "";
      width: 5px;
      height: 26px;
      border-top: 4px dotted #d0d0d0;
      border-bottom: 4px dotted #d0d0d0;
    }

    .quick-actions button {
      flex: 0 0 auto;
      min-height: 27px;
      border-color: #777;
      background: #626262;
      color: #f2f2f2;
      font-weight: 700;
      white-space: nowrap;
    }

    .quick-actions select,
    .quick-actions input {
      flex: 0 0 auto;
    }

    .quick-actions button.active,
    .option-group button.active {
      border-color: #4fc3b1;
      background: #2f7f76;
      color: #fff;
    }

    .context-taskbar {
      gap: 4px;
      padding-inline: 5px;
      border-inline-color: rgba(255, 255, 255, .12);
      opacity: .92;
    }

    .context-task-label {
      padding-inline: 3px;
      color: #d8d8d8;
      font-size: 10px;
    }

    .context-taskbar button,
    .contextbar button {
      min-height: 26px;
      padding: 3px 7px;
      border-radius: 3px;
      font-size: 11px;
      font-weight: 800;
    }

    .context-taskbar input[type="range"] {
      width: 72px;
    }

    .context-taskbar select {
      width: 92px;
    }

    .context-taskbar input[type="text"] {
      width: 132px;
    }

    .rightbar {
      border-left-color: #2f2f2f;
      background: #4a4a4a;
      position: relative;
    }

    .rightbar-resize-handle {
      position: absolute;
      z-index: 15;
      left: 0;
      top: 0;
      bottom: 0;
      width: 7px;
      cursor: col-resize;
      background: transparent;
    }

    .rightbar-resize-handle:hover,
    body.is-resizing-columns .rightbar-resize-handle {
      background: rgba(43, 167, 226, .32);
    }

    .dock-resize-handle {
      flex: 0 0 7px;
      cursor: row-resize;
      border-top: 1px solid rgba(255, 255, 255, .08);
      border-bottom: 1px solid rgba(0, 0, 0, .28);
      background: #444;
    }

    .dock-resize-handle:hover,
    body.is-resizing-rows .dock-resize-handle.active {
      background: #2b7e9e;
    }

    body.is-resizing-columns,
    body.is-resizing-columns * {
      cursor: col-resize !important;
      user-select: none !important;
    }

    body.is-resizing-rows,
    body.is-resizing-rows * {
      cursor: row-resize !important;
      user-select: none !important;
    }

    .dock-group {
      border-bottom: 1px solid #333;
      background: #535353;
    }

    .dock-group[hidden],
    .dock-group[hidden] + .dock-resize-handle {
      display: none !important;
    }

    .color-dock { flex: 0 0 150px; }
    .props-dock { flex: 0 0 220px; overflow: auto; }
    .layers-dock {
      flex: 1 1 330px;
      min-height: 280px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .history-dock {
      flex: 0 0 150px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .dock-tabs {
      display: flex;
      height: 36px;
      border-bottom: 1px solid #383838;
      background: #444;
    }

    .dock-tab {
      width: auto;
      min-width: 82px;
      height: 36px;
      border-top: 0;
      border-bottom: 0;
      border-left: 0;
      border-right: 1px solid #3a3a3a;
      border-radius: 0;
      background: #454545;
      color: #c9c9c9;
      font-weight: 700;
    }
