:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #d9dce3;
  background: #1b1c20;
  font-size: 12px;
  --accent: #e8a679;
  --muted: #8d929e;
  --line: #373a42;
  --panel: #292b31;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: transparent;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.32;
  cursor: default;
}
button:hover:not(:disabled) {
  background-color: #ffffff0d;
}
button:active:not(:disabled) {
  filter: brightness(0.92);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button[hidden],
[hidden] {
  display: none !important;
}
svg {
  display: block;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
input[type="range"] {
  accent-color: var(--accent);
  height: 16px;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  margin: 0;
}
input[type="color"] {
  cursor: pointer;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  background: none;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}
input,
select {
  min-width: 0;
  background: #202227;
  border: 1px solid #424650;
  border-radius: 4px;
  color: #dde0e6;
  padding: 7px 9px;
}
input[type="number"] {
  appearance: textfield;
}
input::-webkit-inner-spin-button {
  appearance: none;
}
select {
  padding: 6px 7px;
}
.app-header {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
  border-bottom: 1px solid #111216;
  background: #1b1c20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.brand > b {
  font-size: 13px;
  letter-spacing: 2px;
}
.brand-subtitle {
  color: #6e747f;
  font-size: 8px;
  letter-spacing: 1.7px;
  padding-left: 6px;
}
.brand-mark {
  font-family: Georgia, serif;
  color: #1e2025;
  background: var(--accent);
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-content: center;
  font-size: 48px;
  font-weight: 700;
  position: relative;
  line-height: 1;
  padding-bottom: 9px;
}
.brand-mark > span {
  position: absolute;
  right: 8px;
  bottom: -5px;
}
.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 27px;
  padding-bottom: 6px;
}
.brand-mark.small > span {
  right: 3px;
  bottom: -2px;
}
#menu-bar {
  display: flex;
  gap: 0;
  align-items: center;
  height: 100%;
}
#menu-bar > button {
  padding: 8px 9px;
  font-size: 11px;
  border-radius: 4px;
}
#menu-bar > button.active {
  background: #393c45;
}
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-end > .accent {
  gap: 7px;
}
.header-end > #connection {
  font-size: 9px;
  color: #939b9e;
  margin-right: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
#connection i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fae8b;
}
.accent {
  background: var(--accent);
  color: #231d19;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
}
.accent:hover:not(:disabled) {
  background: #edb58f;
}
.secondary {
  background: #3b3f48;
  border: 1px solid #4b505b;
  padding: 8px 15px;
  border-radius: 4px;
  min-height: 32px;
}
.quiet {
  padding: 7px 9px;
  color: #b4b8c2;
  font-size: 11px;
  border-radius: 4px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.icon-button[aria-pressed="true"] {
  background: #514236;
  color: var(--accent);
}
#mobile-menu {
  display: none;
}
.options-bar {
  height: 53px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: #2b2d33;
  border-bottom: 1px solid #18191e;
  overflow: auto;
  white-space: nowrap;
}
.active-tool {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 105px;
}
.active-tool > b {
  font-size: 11px;
  font-weight: 500;
}
.active-tool .divider {
  margin-left: 5px;
}
.divider {
  height: 23px;
  width: 1px;
  display: block;
  background: #444750;
  flex-shrink: 0;
}
.option {
  display: flex;
  align-items: center;
  gap: 9px;
}
.option > label {
  color: #a7acb6;
  font-size: 10px;
}
.option > input[type="range"] {
  width: 84px;
}
.number {
  width: 43px;
  padding: 5px;
  text-align: center;
  font-size: 10px;
}
.unit {
  color: #818893;
  font-size: 10px;
}
.option > span {
  font-size: 10px;
  color: #c1c5ce;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #b9bec8;
  white-space: nowrap;
}
#tool-hint {
  font-size: 9px;
  color: #8c929c;
  margin-left: auto;
}
.documents-bar {
  height: 39px;
  display: flex;
  background: #23252a;
  border-bottom: 1px solid #121318;
  padding-left: 56px;
}
#documents {
  display: flex;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}
#documents .document-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  border-right: 1px solid #16171b;
  color: #999fac;
  white-space: nowrap;
  min-width: 160px;
  max-width: 250px;
  position: relative;
}
#documents .document-tab.active {
  background: #2b2d34;
  color: #e7e8ec;
}
#documents .document-tab.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.document-tab > span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  max-width: 175px;
}
.document-tab > .dirty-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 1px;
}
.document-tab .tab-close {
  color: #8b929d;
  padding: 4px;
  margin-left: auto;
}
.add-document {
  margin: 6px 8px;
  color: #8c929e;
}
#panel-toggle {
  margin: 5px 14px 5px auto;
  color: #a2a8b2;
}
.editor {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  top: 143px;
  bottom: 29px;
}
.tool-strip {
  width: 56px;
  background: #282a30;
  border-right: 1px solid #15161b;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: auto;
  scrollbar-width: thin;
  flex-shrink: 0;
}
.tool-button {
  width: 40px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
  color: #abb1bc;
  flex-shrink: 0;
}
.tool-button.active {
  background: #554236;
  color: #f2ba92;
}
.tool-button.active:before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.tool-button.break-before {
  margin-top: 8px;
  border-top: 1px solid #454951;
  padding-top: 6px;
  height: 42px;
}
.tool-colors {
  position: relative;
  margin: 16px 2px 6px;
  height: 33px;
  flex-shrink: 0;
}
.tool-colors > span {
  width: 23px;
  height: 23px;
  border: 2px solid #282a30;
  border-radius: 3px;
  position: absolute;
  left: 2px;
  top: 0;
  z-index: 1;
}
.tool-colors > span + span {
  left: 14px;
  top: 11px;
  z-index: 0;
}
.canvas-area {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #202125;
}
#viewport {
  position: absolute;
  inset: 22px 0 0 22px;
  overflow: hidden;
  touch-action: none;
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
  cursor: crosshair;
}
#ruler-x {
  position: absolute;
  top: 0;
  left: 22px;
  width: calc(100% - 22px);
  height: 22px;
}
#ruler-y {
  position: absolute;
  top: 22px;
  left: 0;
  width: 22px;
  height: calc(100% - 22px);
}
.ruler-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: #2c2e34;
  border-right: 1px solid #3c4048;
  border-bottom: 1px solid #3c4048;
  color: #696f7c;
  font-size: 8px;
  display: grid;
  place-items: center;
}
#canvas-busy {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #15171de8;
  border: 1px solid #52555c;
  border-radius: 20px;
  padding: 9px 15px;
  font-size: 10px;
  color: #c4c8d0;
  pointer-events: none;
}
#canvas-busy > span {
  height: 10px;
  width: 10px;
  border: 1px solid #6e7682;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#drop-hint {
  position: absolute;
  inset: 40px;
  background: #24262bf2;
  border: 2px dashed #df9e73;
  border-radius: 9px;
  z-index: 8;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #e8ad85;
  pointer-events: none;
}
.inspector {
  width: 286px;
  background: #292b31;
  border-left: 1px solid #13151a;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
  flex-shrink: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 600;
  height: 32px;
}
.panel-heading > .muted {
  font-size: 7px;
  letter-spacing: 1px;
  color: #777f8c;
}
.navigator-section {
  padding: 8px 13px 9px;
  border-bottom: 1px solid #16181d;
}
.navigator-section > canvas {
  display: block;
  width: 100%;
  height: 140px;
  background: #24262b;
  border: 1px solid #393d46;
  border-radius: 3px;
  cursor: crosshair;
}
.zoom-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}
.zoom-row > input {
  flex: 1;
  width: 90px;
}
.zoom-row > .icon-button {
  width: 22px;
}
.zoom-value {
  width: 50px;
  background: #22242a;
  border: 1px solid #3c404a;
  border-radius: 3px;
  font-size: 9px;
  padding: 4px;
}
.color-section {
  padding: 4px 13px 14px;
  border-bottom: 1px solid #181a20;
}
.color-edit {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 12px;
}
.large-color {
  width: 37px;
  height: 37px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #515865;
  flex-shrink: 0;
}
.color-edit > div {
  flex: 1;
}
.color-edit > div > label {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  color: #777f8b;
  margin-bottom: 4px;
}
.color-edit > div > input {
  width: 100%;
  padding: 4px 6px;
  font-size: 10px;
  letter-spacing: 1px;
}
.small-color {
  width: 23px;
  height: 23px;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid #515865;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.swatch {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 3px;
  border: 1px solid #ffffff15;
  padding: 0;
}
.swatch.active {
  outline: 1px solid #e2b28e;
  outline-offset: 2px;
}
.layers-section {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  flex: 1;
}
.panel-tabs {
  display: flex;
  align-items: center;
  background: #24262c;
  border-bottom: 1px solid #181a20;
}
.panel-tabs > button {
  padding: 12px 14px;
  font-size: 10px;
  color: #929aa8;
  position: relative;
}
.panel-tabs > button.active {
  color: #e1e4eb;
}
.panel-tabs > button.active:after {
  position: absolute;
  content: "";
  height: 2px;
  bottom: 0;
  left: 13px;
  right: 13px;
  background: var(--accent);
}
.layer-settings {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 12px 9px;
}
.layer-settings > select {
  flex: 1;
  max-width: 145px;
  font-size: 10px;
}
.layer-settings > label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  white-space: nowrap;
  color: #a4aab7;
}
.layer-settings input {
  width: 29px;
  font-size: 9px;
  padding: 5px 2px;
  text-align: center;
}
.layers {
  padding: 0 7px;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  min-height: 53px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 3px;
}
.layer-row.active {
  background: #45403b;
  border-color: #7e5b41;
}
.layer-row:not(.active):hover {
  background: #34373e;
}
.layer-row .icon-button {
  width: 22px;
  height: 26px;
  color: #b1b7c3;
}
.layer-thumbnail {
  width: 46px;
  height: 34px;
  object-fit: contain;
  background: repeating-conic-gradient(#acacac 0 25%, #e4e4e4 0 50%) 0/10px 10px;
  border: 1px solid #555e69;
  border-radius: 2px;
  flex-shrink: 0;
}
.layer-name {
  flex: 1;
  min-width: 0;
  font-size: 10px;
}
.layer-name b {
  display: block;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 119px;
}
.layer-name small {
  display: block;
  font-size: 8px;
  color: #8e97a5;
  margin-top: 4px;
}
.layer-lock {
  color: #939bab;
}
.layer-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #383c45;
  padding: 5px 7px;
  margin-top: auto;
  color: #a3aab6;
}
.layer-actions > .icon-button {
  height: 29px;
}
.inspector-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  background: #24262b;
  color: #b3baa5;
  font-size: 9px;
  border-top: 1px solid #15171b;
  line-height: 1.8;
}
.inspector-foot small {
  color: #777f8d;
  font-size: 8px;
}
.inspector-foot svg {
  color: #7b917b;
}
#history-panel {
  padding: 9px;
  overflow: auto;
  max-height: 320px;
}
#history-panel > button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 10px;
  color: #9ca5b3;
  padding: 9px;
  border-radius: 4px;
}
#history-panel > button.active {
  background: #494036;
  color: #e7b68e;
}
#history-panel > button.future {
  opacity: 0.45;
}
#histogram-panel {
  padding: 12px;
}
#histogram {
  width: 100%;
  height: 170px;
  background: #22252a;
}
#histogram-note {
  font-size: 9px;
  color: #8d97a6;
  line-height: 1.7;
}
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 29px;
  background: #27292f;
  border-top: 1px solid #14161a;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 13px;
  font-size: 9px;
  color: #8d96a5;
}
.status-bar > .quiet {
  font-size: 9px;
  padding: 3px 7px;
}
#status-message {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a5adba;
}
#document-info {
  color: #b7bec9;
  white-space: nowrap;
}
#cursor-position {
  white-space: nowrap;
  color: #767f8d;
  min-width: 55px;
}
#save-status {
  padding-left: 12px;
  border-left: 1px solid #454953;
  font-size: 8px;
  color: #8caa8b;
  white-space: nowrap;
}
.popup {
  position: fixed;
  z-index: 30;
  min-width: 230px;
  max-width: 320px;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  border: 1px solid #535966;
  background: #2c2f36;
  box-shadow: 0 12px 35px #0006;
  border-radius: 5px;
  padding: 5px;
}
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 3px;
  text-align: left;
  font-size: 11px;
  min-height: 29px;
}
.menu-item:hover:not(:disabled) {
  background: #4b4340;
  color: #f4c19c;
}
.menu-item > small {
  color: #858d9b;
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
}
.menu-separator {
  height: 1px;
  background: #484d57;
  margin: 5px;
}
.modal {
  color: #d9dde5;
  background: #2b2e35;
  border: 1px solid #59616e;
  border-radius: 9px;
  padding: 24px;
  width: min(92vw, 460px);
  max-height: 88dvh;
  box-shadow: 0 20px 90px #0009;
  overflow: auto;
}
.modal::backdrop {
  background: #0b0d135c;
  backdrop-filter: blur(3px);
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #a88a75;
}
.modal h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 7px 0 0;
  letter-spacing: -0.4px;
}
.modal footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #424852;
}
.dialog-fields {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  color: #a6afbd;
}
.form-field > input,
.form-field > select,
.form-field > textarea {
  width: 100%;
  padding: 9px 10px;
  font-size: 12px;
}
.form-field > textarea {
  height: 90px;
  resize: vertical;
}
.form-help {
  font-size: 10px;
  line-height: 1.7;
  color: #8d97a7;
  margin: 0;
}
.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset-row > button {
  padding: 7px 10px;
  border: 1px solid #484f5c;
  border-radius: 4px;
  font-size: 10px;
  background: #333842;
}
.error {
  padding: 10px 12px;
  background: #602f2f55;
  border: 1px solid #b4776b55;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: #edb3a5;
}
.confirm-modal > p {
  font-size: 12px;
  line-height: 1.8;
  color: #acb5c3;
}
.confirm-modal .danger {
  color: #efac99;
}
.filter-modal {
  width: min(94vw, 750px);
  padding: 23px 25px;
}
.filter-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.filter-previews figure {
  margin: 0;
}
.filter-previews figure > div {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: repeating-conic-gradient(#b2b2b2 0 25%, #e3e3e3 0 50%) 0/12px 12px;
  border: 1px solid #515865;
  border-radius: 3px;
}
.filter-previews img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.filter-previews figcaption {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #8e98a9;
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
}
#preview-status {
  font-size: 8px;
  color: #d5a381;
  letter-spacing: 0;
}
.filter-param {
  display: grid;
  grid-template-columns: 150px 1fr 55px;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.filter-param > label {
  font-size: 10px;
  color: #afb8c6;
}
.filter-param > input[type="range"] {
  width: 100%;
}
.filter-param > input[type="number"] {
  width: 55px;
  text-align: center;
  font-size: 11px;
}
.filter-param > select {
  grid-column: 2/-1;
  font-size: 11px;
}
.filter-modal > footer > .check-label {
  margin-right: auto;
  font-size: 10px;
}
.filter-modal > footer > button {
  font-size: 11px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  max-width: min(90vw, 600px);
  z-index: 100;
  background: #3b404a;
  color: #e3e6ec;
  border: 1px solid #737b88;
  box-shadow: 0 6px 30px #0005;
  padding: 12px 19px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #202227;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
#loading h1 {
  font-size: 25px;
  letter-spacing: 1px;
  font-weight: 500;
  margin: 7px 0 0;
}
#loading p {
  font-size: 11px;
  color: #8a95a7;
  margin: 0;
}
.inspector-hidden .inspector {
  display: none;
}
.inspector-hidden .canvas-area {
  flex: 1;
}
@media (max-width: 1250px) {
  .brand-subtitle {
    display: none;
  }
  .app-header {
    gap: 14px;
  }
  #menu-bar > button {
    padding: 8px 6px;
  }
  .header-end > #connection {
    display: none;
  }
  .options-bar {
    gap: 12px;
  }
  #tool-hint {
    display: none;
  }
  .option > input[type="range"] {
    width: 68px;
  }
}
@media (max-width: 1000px) {
  .inspector {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    box-shadow: -8px 0 35px #0005;
  }
  .editor:not(.show-inspector) .inspector {
    display: none;
  }
  .brand > b {
    font-size: 11px;
  }
  .app-header {
    gap: 10px;
  }
  #menu-bar > button {
    font-size: 10px;
    padding: 8px 5px;
  }
  .header-end > .quiet {
    display: none;
  }
  .options-bar {
    gap: 10px;
  }
  .status-bar {
    gap: 10px;
  }
  .navigator-section {
    padding-top: 4px;
  }
}
@media (max-width: 720px) {
  .app-header {
    height: 47px;
    padding: 0 11px;
    gap: 8px;
  }
  .brand > b {
    font-size: 11px;
    letter-spacing: 1.6px;
  }
  #menu-bar {
    display: none;
  }
  #mobile-menu {
    display: flex;
  }
  .header-end {
    gap: 8px;
  }
  .header-end > .accent {
    padding: 7px 10px;
    min-height: 29px;
    font-size: 10px;
  }
  .options-bar {
    height: 47px;
    padding: 0 12px;
    gap: 12px;
  }
  .active-tool {
    min-width: 75px;
  }
  .active-tool > .divider {
    display: none;
  }
  .option > input[type="range"] {
    width: 60px;
  }
  .option > .check-label {
    font-size: 9px;
  }
  .documents-bar {
    height: 36px;
    padding-left: 44px;
  }
  .editor {
    top: 130px;
    bottom: 28px;
  }
  .tool-strip {
    width: 44px;
    padding: 8px 4px;
    gap: 2px;
  }
  .tool-button {
    width: 35px;
    height: 33px;
  }
  .tool-button.active:before {
    left: -4px;
  }
  .tool-colors {
    margin-left: 0;
  }
  .tool-colors > span {
    width: 20px;
    height: 20px;
    left: 0;
  }
  .tool-colors > span + span {
    left: 11px;
    top: 10px;
  }
  #documents .document-tab {
    min-width: 140px;
    padding: 0 8px;
  }
  .document-tab > span {
    font-size: 9px;
    max-width: 140px;
  }
  .add-document {
    margin: 4px;
  }
  #panel-toggle {
    margin: 4px 8px 4px auto;
  }
  .status-bar {
    gap: 8px;
    padding: 0 8px;
    height: 28px;
    font-size: 8px;
  }
  #cursor-position,
  #save-status {
    display: none;
  }
  .status-bar > .quiet {
    font-size: 8px;
    padding: 3px 4px;
  }
  .inspector {
    width: 272px;
  }
  .modal {
    padding: 20px;
  }
  .filter-previews {
    gap: 8px;
    margin-bottom: 16px;
  }
  .filter-previews figure > div {
    height: 145px;
  }
  .filter-param {
    grid-template-columns: 105px 1fr 48px;
    gap: 8px;
  }
  .filter-param > label {
    font-size: 9px;
  }
  .filter-param > input[type="number"] {
    width: 48px;
  }
  .filter-modal footer {
    flex-wrap: wrap;
  }
  .filter-modal footer > .check-label {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
  .modal footer button {
    font-size: 11px;
  }
  .options-bar .number {
    width: 37px;
  }
  .filter-modal h2 {
    font-size: 19px;
  }
  .filter-previews figcaption {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .popup {
    max-width: calc(100vw - 18px);
  }
  #canvas-busy {
    font-size: 9px;
    bottom: 10px;
  }
  .modal header {
    gap: 8px;
  }
  .eyebrow {
    font-size: 6px;
  }
  .inspector-foot {
    font-size: 9px;
  }
}
