@charset "UTF-8";
.context-menu {
  position: fixed;
  z-index: 100;
  width: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px #0008;
}
.context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  background: transparent;
}
.context-menu button:hover:not(:disabled),
.context-menu button:focus-visible { background: #86acff20; outline: 1px solid var(--accent); outline-offset: -1px; }
.context-menu button.danger { color: #ffaaa6; }
.context-menu [role=separator] { height: 1px; margin: 5px; background: var(--line); }
:root {
  color-scheme: dark;
  --bg: #181b20;
  --panel: #202329;
  --field: #171a1f;
  --line: #34383f;
  --muted: #999fae;
  --text: #e9ecf2;
  --accent: #86acff;
  --blue: #447af0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #ffffff0b;
}
button:disabled {
  opacity: 0.32;
  cursor: default;
}
button.primary {
  background: var(--blue);
  color: #fff;
  border-color: #739aff33;
}
button.primary:hover {
  background: #5589ff;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.125em;
  font-size: 20px;
  line-height: 1;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 5px;
  color: var(--text);
  padding: 8px 9px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
input[type="color"] {
  height: 33px;
  padding: 4px;
  cursor: pointer;
}
input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}
input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
  height: 19px;
  border: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.editor {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 302px;
  flex: 1;
  min-height: 0;
}
.tools {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px;
  background: #1c1f24;
}
.tools button {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}
.tools .icon {
  font-size: 25px;
}
.tools button[aria-pressed="true"] {
  background: #2d3b55;
  color: #9bbbff;
  border: 1px solid #486597;
}
.tool-divider {
  height: 1px;
  width: 22px;
  background: var(--line);
  margin: 4px;
}
.tools .tool-help {
  margin-top: auto;
}
.workspace {
  position: relative;
  overflow: hidden;
  background-color: #14171b;
  background-image: radial-gradient(#333942 0.65px, transparent 0.65px);
  background-size: 16px 16px;
  touch-action: none;
  user-select: none;
  outline: none;
}
.workspace.hand {
  cursor: grab;
}
.workspace.dragging {
  cursor: grabbing;
}
.workspace.drop-active {
  box-shadow: inset 0 0 0 3px var(--accent);
}
.stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  box-shadow: 0 12px 64px #0005;
  background-color: #252930;
  background-image:
    linear-gradient(45deg, #2d323b 25%, transparent 25%), linear-gradient(-45deg, #2d323b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2d323b 75%), linear-gradient(-45deg, transparent 75%, #2d323b 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
#overlay [data-handle],
#overlay [data-rotate] {
  pointer-events: all;
}
#overlay [data-rotate] {
  cursor: crosshair;
}
.zoom-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #202329ed;
  border-radius: 8px;
  box-shadow: 0 5px 18px #0003;
  z-index: 2;
}
.zoom-controls > span {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 3px;
}
.zoom-controls button {
  height: 29px;
  min-width: 29px;
  padding: 5px;
}
.zoom-controls #zoom-value {
  font-size: 12px;
  min-width: 53px;
}
.processing {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 12px;
  border-radius: 5px;
  z-index: 2;
  color: var(--muted);
}
.inspector {
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.inspector-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  height: 47px;
  padding: 0 15px;
  gap: 20px;
}
.inspector-tabs button {
  border-radius: 0;
  border: 0;
  padding: 0 3px;
  font-size: 12px;
  color: var(--muted);
}
.inspector-tabs button[aria-selected="true"] {
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}
#effect-count,
.panel-heading h2 span {
  font-size: 10px;
  color: #8b97ad;
  background: #ffffff08;
  padding: 2px 5px;
  border-radius: 3px;
}
.settings-scroll {
  overflow: auto;
  min-height: 80px;
  flex: 1;
}
.property-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 8px;
}
.section-heading h3 {
  margin: 0;
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 600;
  color: #bdc3cf;
}
.section-heading .icon {
  color: #6d7789;
  font-size: 14px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 12px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.field-grid input[type="number"] {
  font-variant-numeric: tabular-nums;
}
.field-full {
  margin: 13px 0;
}
.inline-check {
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
.layer-property-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}
.property-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.property-action-buttons button {
  background: var(--field);
  border: 1px solid #596273;
  padding: 6px 12px;
  font-weight: 500;
}
.property-action-buttons button:hover:not(:disabled) {
  background: #343b47;
  border-color: var(--accent);
}
.button-row {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.button-row button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--field);
  font-size: 10px;
}
.property-note {
  font-size: 12px;
  color: #7e8799;
  line-height: 1.7;
  margin: 12px 0 0;
}
.effects-heading {
  margin: 20px 18px 10px;
  color: #858e9e;
  font-size: 9px;
  letter-spacing: 1.3px;
}
.effect-card {
  margin: 0 10px 5px;
  border: 1px solid transparent;
  border-bottom-color: #34383f;
  border-radius: 5px;
}
.effect-card[open] {
  background: #1b1e24;
  border-color: #353b46;
  margin-bottom: 10px;
}
.effect-card summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.effect-card summary::-webkit-details-marker {
  display: none;
}
.effect-card summary::after {
  content: "+";
  margin-left: auto;
  color: #8490a2;
}
.effect-card[open] summary::after {
  content: "−";
}
.effect-card summary .icon {
  font-size: 20px;
  color: #98a4bc;
}
.effect-card summary input {
  margin: 0 2px;
}
.effect-body {
  padding: 0 12px 12px;
}
.effect-body .field-grid {
  gap: 12px;
}
.effect-body button {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  padding-left: 0;
}
.range-field > span {
  display: flex;
  justify-content: space-between;
}
.range-field output {
  color: #cbd6ea;
  font-variant-numeric: tabular-nums;
}
.layers-panel {
  height: var(--layers-height, 32%);
  min-height: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.panel-heading {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 0 18px;
  flex-shrink: 0;
}
.panel-heading h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-heading > div {
  display: flex;
  gap: 0;
}
.panel-heading button {
  padding: 6px;
}
.panel-heading .icon {
  font-size: 20px;
}
.layer-list {
  overflow: auto;
  flex: 1;
  padding: 0 8px;
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  margin: 2px 0;
  min-height: 42px;
}
.layer-row.selected {
  background: #2b3952;
  border-color: #425b86;
}
.layer-row.hidden-layer .layer-select {
  opacity: 0.45;
}
.layer-row.drop-target {
  border-top-color: var(--accent);
}
.layer-row > .layer-select {
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
  text-align: left;
  padding: 4px;
  gap: 9px;
}
.layer-thumb {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #181e2a;
  border: 1px solid #ffffff0b;
  border-radius: 4px;
  flex-shrink: 0;
  color: #a8b9d5;
}
.layer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.layer-row > button:not(.layer-select) {
  padding: 5px;
  color: #98a3b7;
}
.layer-row > button:not(.layer-select) .icon {
  font-size: 20px;
}

.layer-footer {
  padding: 5px 10px 5px 18px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.layer-footer button {
  padding: 5px;
}
.layer-footer .icon {
  font-size: 12px;
}

.panel-toggle {
  display: none;
}
dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px;
  border: 1px solid #404753;
  border-radius: 14px;
  background: #20242b;
  color: var(--text);
  box-shadow: 0 28px 100px #0009;
}
dialog::backdrop {
  background: #080c14b5;
  backdrop-filter: blur(7px);
}
dialog h1 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.65px;
  line-height: 1.3;
  margin: 24px 0 8px;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 24px;
}
dialog label {
  margin-bottom: 16px;
}
#new-form select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
#swap-dimensions { border-color: var(--line); margin: -4px 0 10px; }
#preset-note { font-size: 12px; line-height: 1.5; margin-bottom: 16px; }
dialog .field-grid label {
  margin: 0 0 16px;
}
.dialog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9baccc;
}
.dialog-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
}
.dialog-actions button {
  font-size: 12px;
}
.dialog-actions button:first-child:not(:last-child) {
  margin-right: auto;
}
.error {
  color: #ff9d9d !important;
  min-height: 0;
  margin: 0 0 10px !important;
}
.project-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  padding: 15px;
  margin: 8px 0;
  text-align: left;
}
.project-card > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.project-card small {
  color: var(--muted);
  font-size: 10px;
}
.shortcuts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  font-size: 12px;
}
.shortcuts dt {
  color: var(--muted);
}
.shortcuts dd {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  padding: 12px 18px;
  background: #29354a;
  border: 1px solid #536681;
  border-radius: 8px;
  box-shadow: 0 5px 25px #0005;
  z-index: 20;
  font-size: 12px;
  line-height: 1.5;
}
#toast.error {
  background: #492c32;
  border-color: #87535c;
}
[hidden] {
  display: none !important;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #424957;
  border-radius: 5px;
}
::selection {
  background: #447af077;
}
@media (min-width: 1500px) {
  .editor {
    grid-template-columns: 60px minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1050px) {
  .editor {
    grid-template-columns: 50px minmax(0, 1fr) 280px;
  }
}
@media (max-width: 760px) {
  .editor {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .inspector {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 285px;
    z-index: 5;
    box-shadow: -15px 0 30px #0004;
  }
  .inspector.mobile-open {
    display: flex;
  }
  .panel-toggle {
    display: inline-flex;
  }

  .tools {
    padding: 12px 3px;
  }
  .tools button {
    width: 34px;
  }
  .shortcuts {
    font-size: 10px;
    gap: 12px;
  }
  dialog {
    padding: 23px;
  }
}

/* Native disclosure controls keep every property section keyboard accessible. */
.property-section > summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
}
.property-section > summary::-webkit-details-marker {
  display: none;
}
.property-section > summary > span {
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 600;
  color: #bdc3cf;
}
.property-section > summary .icon {
  font-size: 12px;
  transition: transform 0.15s ease;
}
.property-section:not([open]) > summary .icon {
  transform: rotate(-90deg);
}
.property-body {
  padding-top: 15px;
}

.layer-footer {
  justify-content: flex-end;
}
#new-dialog h1 {
  margin: 16px 0 18px;
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
}
.about-link:hover {
  text-decoration: underline;
}
.about-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
#help-dialog h1 {
  font-size: 20px;
  margin-top: 28px;
}

.tools {
  overflow-y: auto;
  overflow-x: hidden;
}
.tool-utilities {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.tools .panel-toggle {
  display: none;
}
.inspector-tabs {
  gap: 16px;
}
.document-menu-toggle {
  position: relative;
}
.document-menu-toggle.has-update::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
#document-menu {
  position: fixed;
  inset: 12px auto auto 64px;
  margin: 0;
  padding: 6px;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 8px 30px #0006;
}
#document-menu button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 10px;
  gap: 12px;
}
#open-dialog h1 {
  margin: 16px 0 18px;
}
#open-dialog .dialog-actions {
  border-top: 0;
  margin-top: 16px;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.history-entry {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  white-space: normal;
  margin: 2px 0;
  padding: 11px 9px;
  border: 1px solid transparent;
}
.history-entry[aria-current] {
  background: #2b3952;
  border-color: #425b86;
}
.history-entry.undone {
  opacity: 0.5;
}
.history-marker {
  color: var(--muted);
}
.history-label {
  flex: 1;
  overflow-wrap: anywhere;
}
.history-entry small {
  font-size: 9px;
  color: var(--accent);
}
@media (max-width: 760px) {
  .tools .panel-toggle {
    display: inline-flex;
  }
  #document-menu {
    left: 54px;
  }
  .inspector {
    max-width: calc(100vw - 48px);
  }
}

.history-actions {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0;
}
.history-actions button {
  flex: 1;
  border: 1px solid var(--line);
}
#toast {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: auto;
  transform: none;
  max-width: min(600px, calc(100% - 32px));
  pointer-events: none;
}

#properties > .property-section:last-child,
#properties > fieldset > .property-section:last-child {
  border-bottom: 0;
}
.inspector-empty {
  margin: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

#layers-resizer {
  height: 6px;
  flex-shrink: 0;
  cursor: row-resize;
  touch-action: none;
  background: linear-gradient(var(--line), var(--line)) center/100% 1px no-repeat;
}
#layers-resizer:hover,
#layers-resizer:focus-visible {
  background: var(--accent);
  outline: none;
}
.resizing-panels,
.resizing-panels * {
  cursor: row-resize !important;
  user-select: none !important;
}

.workspace.pixel-tool {
  cursor: crosshair;
}
.pixel-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  z-index: 3;
  cursor: default;
  box-shadow: 0 4px 16px #0003;
}
.pixel-actions button {
  width: 32px;
  height: 32px;
  padding: 0;
}
#selection-hint {
  color: var(--muted);
  font-size: 12px;
  padding: 0 8px;
}
#selection-hint:empty {
  display: none;
}

/* Drawing tools remain available on short and narrow workspaces. */
.tools { overflow-y: auto; min-height: 0; }
.tools > button, .tools > .tool-divider { flex-shrink: 0; }
#tool-options { position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #242830f2; max-height: 35%; overflow: auto; font-size: 12px; cursor: default; }
#tool-options[hidden] { display: none; }
#tool-options label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; white-space: nowrap; color: var(--muted); }
#tool-options input[type=number] { width: 68px; height: 30px; padding: 4px 6px; }
#tool-options input[type=color] { width: 34px; height: 30px; padding: 2px; }
#tool-options select { width: auto; height: 30px; padding: 4px 22px 4px 6px; }
#tool-options input[type=range] { width: 88px; min-width: 60px; padding: 0; accent-color: var(--accent); cursor: pointer; }
#tool-options output { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
#tool-options button { min-height: 30px; padding: 4px 8px; border: 1px solid #505864; background: #353c46; box-shadow: 0 1px 2px #0003; }
#tool-options button:hover:not(:disabled) { background: #454f5d; border-color: var(--accent); }
#tool-options button:active:not(:disabled) { background: #25364e; }
#tool-options button .icon { font-size: 16px; }
#selection-tool-toggle { position: relative; }
#selection-tool-toggle .tool-menu-caret { position: absolute; width: 10px; height: 10px; right: 1px; bottom: 1px; }
#selection-tool-menu { position: fixed; inset: auto; margin: 0; padding: 6px; width: 265px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: 0 8px 30px #0006; }
#selection-tool-menu button { display: flex; width: 100%; justify-content: flex-start; padding: 10px; gap: 10px; }
#selection-tool-menu button[aria-pressed=true] { background: #86acff20; color: var(--accent); border-color: #86acff55; }
#selection-tool-menu kbd { margin-left: auto; color: var(--muted); font: inherit; font-size: 11px; }

.workspace.drawing-tool { cursor: crosshair; }

#tool-options .pen-style-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; border: 0; padding: 0; margin: 0; min-width: 0; max-width: 100%; }
#tool-options .pen-stroke-options { border-left: 1px solid #505864; padding-left: 12px; }

#tool-options .pen-path-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-left: 1px solid #505864; padding-left: 12px; max-width: 100%; }

#tool-options .gradient-options { display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; border:0; padding:0; margin:0; min-width:0; }
#tool-options .gradient-stops { display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; border-left:1px solid #505864; padding-left:12px; }
#tool-options .gradient-stop { display:flex; align-items:center; gap:6px; white-space:nowrap; color:var(--muted); }
#tool-options .gradient-add { border-left:1px solid #505864; padding-left:12px; }
#tool-options .gradient-swatch, #tool-options .gradient-swatch:hover:not(:disabled), #tool-options .gradient-swatch:active:not(:disabled) { width:34px; height:30px; padding:3px; background:repeating-conic-gradient(#bbb 0% 25%, #fff 0% 50%) 50% / 10px 10px; }
#tool-options .gradient-swatch span { display:block; width:100%; height:100%; background:var(--stop-colour); opacity:var(--stop-opacity); border-radius:2px; }
#tool-options .gradient-colour-editor { position:fixed; inset:auto; margin:0; padding:12px; width:260px; max-width:calc(100vw - 16px); border:1px solid var(--line); border-radius:8px; background:var(--panel, #242830); color:var(--text); box-shadow:0 8px 28px #0008; }
#tool-options .gradient-colour-editor:popover-open { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
#tool-options .gradient-colour-editor input[type=range] { width:110px; }
[data-gradient-stop]:focus-visible { outline:none; stroke:var(--accent); }
