/* Web Awesome 3.14 Studio surface. Canvas geometry and editor state stay in
   the original controllers; these rules only define component presentation. */
body.studio-webawesome {
  height: 100dvh;
  overflow: hidden;
  --ink: #252a28;
  --muted: #626b65;
  --subtle: #747c76;
  --line: #dfe3db;
  --panel: #fffefa;
  --paper: #f7f7f1;
  --blue: #4354e8;
  --blue-dark: #3343cb;
  --blue-pale: #eef0ff;
  --studio-surface: #fffefa;
  --studio-surface-soft: #f2f4ed;
  --studio-border: #d9dfd4;
  --studio-border-strong: #c2c9bf;
  --studio-focus: #4354e8;
  --studio-danger: #ad3a40;
  --wa-font-family-body: Inter, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --wa-color-surface-default: var(--studio-surface);
  --wa-color-surface-raised: var(--studio-surface);
  --wa-color-surface-border: var(--studio-border);
  --wa-color-text-normal: var(--ink);
  --wa-color-text-quiet: var(--muted);
  --wa-color-text-link: var(--blue-dark);
  --wa-color-focus: var(--studio-focus);
  --wa-color-brand-fill-quiet: #f2f3ff;
  --wa-color-brand-fill-normal: #e9ecff;
  --wa-color-brand-fill-loud: var(--blue);
  --wa-color-brand-border-quiet: #e0e4ff;
  --wa-color-brand-border-normal: #c3cbf8;
  --wa-color-brand-border-loud: var(--blue);
  --wa-color-brand-on-quiet: var(--blue-dark);
  --wa-color-brand-on-normal: var(--blue-dark);
  --wa-color-brand-on-loud: #fff;
  --wa-border-radius-s: 5px;
  --wa-border-radius-m: 7px;
  --wa-border-radius-l: 12px;
  --wa-form-control-border-radius: 7px;
  --wa-transition-fast: 0ms;
  --wa-transition-normal: 0ms;
  --wa-transition-slow: 0ms;
  --show-duration: 0ms;
  --hide-duration: 0ms;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}

/* Backing controls retain the original IDs, event listeners and value contract.
   The adapter mirrors their hidden/disabled/selected state onto the WA host. */
body.studio-webawesome .studio-native-control { display: none !important; }
body.studio-webawesome .studio-control[hidden] { display: none !important; }
body.studio-webawesome .studio-control { font-family: var(--wa-font-family-body); font-synthesis: none; }
body.studio-webawesome .studio-control::part(button),
body.studio-webawesome .studio-control::part(input-wrapper),
body.studio-webawesome .studio-control::part(combobox),
body.studio-webawesome .studio-control::part(control),
body.studio-webawesome .studio-control::part(thumb),
body.studio-webawesome .studio-control::part(track),
body.studio-webawesome .studio-control::part(listbox) { animation: none !important; transition: none !important; }

body.studio-webawesome .editor-header { background: var(--studio-surface); border-bottom-color: var(--line); }
body.studio-webawesome .editor-title h1 { font-weight: 680; color: var(--ink); letter-spacing: -.025em; }
body.studio-webawesome .brand { color: var(--ink); }
body.studio-webawesome .brand-mark { color: var(--blue); }
body.studio-webawesome .prototype-badge { background: #edf0e7; color: #626d60; border-color: #dce2d6; border-radius: 4px; }
body.studio-webawesome :is(.header-divider, .tool-divider, .zoom-divider, .layer-toolbar-divider) { background: var(--line); }
body.studio-webawesome .history-actions { border-color: var(--line); }
body.studio-webawesome .stitch-nav-link { color: #525d55; background: #fff; border-color: var(--studio-border); border-radius: 7px; }
body.studio-webawesome .stitch-nav-link:hover { color: var(--blue-dark); background: var(--blue-pale); border-color: #c3cbf8; }
body.studio-webawesome .editor-more>summary { color: var(--muted); border-radius: 7px; }
body.studio-webawesome .editor-more[open]>summary,
body.studio-webawesome .editor-more>summary:hover { color: var(--blue-dark); background: var(--blue-pale); }
body.studio-webawesome .editor-more-panel { background: var(--studio-surface); border-color: var(--studio-border); border-radius: 10px; box-shadow: 0 12px 36px #2331251c; }

body.studio-webawesome .toolrail { background: var(--studio-surface); border-right-color: var(--line); }
body.studio-webawesome .workspace { background: #e8ece7; }
body.studio-webawesome .canvas-stage { background-color: #e8ece7; background-image: none; }
body.studio-webawesome .workspace-toolbar,
body.studio-webawesome .workspace-status { background: #f4f6ef; border-color: var(--line); }
body.studio-webawesome :is(.document-info, #zoom-value, .local-note, .canvas-hint) { color: var(--muted); }
body.studio-webawesome .document-dot { background: #98a596; }
body.studio-webawesome .canvas-wrap { box-shadow: 0 14px 40px #24302613, 0 1px 4px #24302616; }
body.studio-webawesome .image-drop-overlay { color: var(--blue-dark); border-color: var(--blue); background: #f2f4ffed; border-radius: 12px; }
body.studio-webawesome .stitch-session-note { color: #4a587d; background: #eeeffb; }

/* WA buttons receive the same semantic classes as their backing button. Keep
   outer layout sizing intact and place the visual box in the component part. */
body.studio-webawesome .studio-button {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
  min-width: 0;
}
body.studio-webawesome .studio-button::part(button) {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--studio-border);
  border-radius: 7px;
  background: #fff;
  color: #515d55;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 580;
  line-height: 1.5;
  letter-spacing: -.01em;
}
body.studio-webawesome .studio-button::part(label) { display: flex; align-items: center; justify-content: center; gap: 7px; white-space: normal; }
body.studio-webawesome .studio-button-content { display: contents; }
body.studio-webawesome .studio-button:not([disabled]):hover::part(button) { border-color: #c4ccf7; color: var(--blue-dark); background: var(--blue-pale); }
body.studio-webawesome .studio-button[disabled]::part(button) { opacity: .45; cursor: not-allowed; }
body.studio-webawesome .studio-button:focus-within::part(button) { outline: 2px solid var(--studio-focus); outline-offset: 2px; }
body.studio-webawesome .studio-button:is(.is-active, [aria-pressed="true"])::part(button) { color: var(--blue-dark); border-color: #b9c3f9; background: var(--blue-pale); }
body.studio-webawesome .studio-button:is(.primary-button, .photo-button-primary, .project-button-primary, .save-button-primary, .selection-png-primary, .crop-floating-apply, .editor-start-photo)::part(button) { color: #fff; border-color: var(--blue); background: var(--blue); }
body.studio-webawesome .studio-button:is(.primary-button, .photo-button-primary, .project-button-primary, .save-button-primary, .selection-png-primary, .crop-floating-apply, .editor-start-photo):not([disabled]):hover::part(button) { color: #fff; border-color: var(--blue-dark); background: var(--blue-dark); }
body.studio-webawesome .studio-button:is(.danger-button, .is-danger):not([disabled]):hover::part(button) { color: var(--studio-danger); border-color: #e8bec0; background: #fff0ef; }
body.studio-webawesome .studio-button:is(.icon-button, .editor-help-button, .language-button, .reset-button, .fit-button, .group-toggle)::part(button) { background: transparent; border-color: transparent; }
body.studio-webawesome .studio-button:is(.icon-button, .group-toggle)::part(button) { padding: 0; min-width: 44px; }
body.studio-webawesome .studio-button:is(.icon-button, .editor-help-button, .language-button, .reset-button, .fit-button, .group-toggle):not([disabled]):hover::part(button) { color: var(--blue-dark); border-color: transparent; background: var(--blue-pale); }
body.studio-webawesome .studio-button:is(.project-menu-button, .primary-button, .editor-help-button)::part(label) { white-space: nowrap; }
body.studio-webawesome .studio-button:is(.project-menu-button, .primary-button, .editor-help-button)::part(button) { font-size: 12px; }
body.studio-webawesome .studio-button:is(.project-close, .save-icon-close, .editor-help-close, .selection-png-close)::part(button) { padding: 0; min-width: 44px; font-size: 24px; font-weight: 400; border-color: transparent; background: transparent; color: var(--muted); }

body.studio-webawesome .studio-button.tool-button { min-width: 52px; }
body.studio-webawesome .studio-button.tool-button::part(button) { min-height: 58px; padding: 8px 4px; border-color: transparent; color: var(--muted); background: transparent; }
body.studio-webawesome .studio-button.tool-button::part(label) { flex-direction: column; gap: 4px; }
body.studio-webawesome .studio-button.tool-button:is(.is-active, [aria-pressed="true"])::part(button) { color: var(--blue-dark); background: var(--blue-pale); border-color: #d7ddfa; }
body.studio-webawesome .studio-button.tool-button:not([disabled]):hover::part(button) { color: var(--blue-dark); background: #f2f4ff; }
body.studio-webawesome .studio-button.smart-guides-toggle[aria-pressed="true"]::part(button) { color: #73548b; background: #f1ecf6; border-color: #dcd1e7; }
body.studio-webawesome .studio-button.selection-png-open::part(button) { color: var(--blue-dark); background: #f2f3ff; border-color: #d8def9; }

/* Form controls stay narrow enough for the existing two-column inspector. */
body.studio-webawesome :is(.studio-input, .studio-select) { display: block; min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; }
body.studio-webawesome .studio-input::part(input-wrapper),
body.studio-webawesome .studio-select::part(combobox) { min-height: 44px; border: 1px solid var(--studio-border); border-radius: 7px; background: #fff; box-shadow: none; color: var(--ink); }
body.studio-webawesome .studio-input::part(input),
body.studio-webawesome .studio-select::part(display-input) { padding: 10px 11px; min-width: 0; color: #3f4b43; font: 12px/1.5 var(--wa-font-family-body); font-variant-numeric: tabular-nums; }
/* The adapter uses WA's official label API for shadow-root accessibility.
   The original visible label remains beside the control; keep its internal
   counterpart available to accessibility APIs without duplicating it visually. */
body.studio-webawesome :is(.studio-input, .studio-select)::part(form-control-label) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.studio-webawesome .studio-select::part(combobox) { padding-inline: 0 10px; }
body.studio-webawesome .studio-select::part(expand-icon) { color: #7a847b; }
body.studio-webawesome :is(.studio-input, .studio-select):focus-within::part(input-wrapper),
body.studio-webawesome .studio-select:focus-within::part(combobox) { border-color: var(--studio-focus); outline: 2px solid #4354e829; outline-offset: 1px; box-shadow: none; }
body.studio-webawesome .studio-select::part(listbox) { color: var(--ink); background: var(--studio-surface); border: 1px solid var(--studio-border); border-radius: 9px; box-shadow: 0 9px 30px #24302620; padding: 4px; }
body.studio-webawesome .studio-select wa-option { --wa-color-brand-fill-loud: var(--blue); min-height: 38px; border-radius: 5px; font: 12px/1.5 var(--wa-font-family-body); }
body.studio-webawesome :is(.studio-input, .studio-select)[disabled] { opacity: .5; }
body.studio-webawesome .unit-field { background: #fff; border-color: var(--studio-border); border-radius: 7px; }
body.studio-webawesome .unit-field .studio-input { min-width: 0; flex: 1; width: 0; }
body.studio-webawesome .unit-field .studio-input::part(input-wrapper) { border: 0; background: transparent; min-height: 42px; }
body.studio-webawesome .unit-field .studio-input::part(input) { padding-inline: 0; text-align: right; }
body.studio-webawesome .unit-field .studio-input:focus-within::part(input-wrapper) { outline: none; }
body.studio-webawesome .unit-field:focus-within { border-color: var(--studio-focus); outline: 2px solid #4354e829; outline-offset: 1px; }
body.studio-webawesome :is(.size-field, .frame-field, .brush-field, .gradient-field, .layer-effect-field) .studio-input { width: 100%; }
body.studio-webawesome .multi-selection-target .studio-select { flex: 1; width: 0; }
body.studio-webawesome .text-line-height-field .studio-input { flex: 1; width: 0; }
body.studio-webawesome .studio-checkbox { display: inline-flex; flex: none; vertical-align: middle; margin: 0; color: var(--muted); }
body.studio-webawesome .studio-checkbox::part(control) { width: 18px; height: 18px; border: 1px solid var(--studio-border-strong); border-radius: 4px; background: #fff; }
body.studio-webawesome .studio-checkbox[checked]::part(control),
body.studio-webawesome .studio-checkbox:state(checked)::part(control) { background: var(--blue); border-color: var(--blue); color: #fff; }
body.studio-webawesome .studio-checkbox::part(checked-icon),
body.studio-webawesome .studio-checkbox::part(indeterminate-icon) { color: #fff; }
body.studio-webawesome .studio-checkbox:focus-within::part(control) { outline: 2px solid var(--studio-focus); outline-offset: 3px; }
body.studio-webawesome .studio-checkbox::part(label) { color: var(--ink); font-size: 12px; line-height: 1.6; }
/* Native ranges keep the editor's pointer/input/change/blur transactions and
   do not need the runtime inline styles used by WA's slider implementation. */
body.studio-webawesome input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}
body.studio-webawesome input[type="range"]::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: 999px; background: #dce3d6; }
body.studio-webawesome input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 16px; height: 16px; margin-top: -6px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #4354e85c; }
body.studio-webawesome input[type="range"]::-moz-range-track { height: 4px; border: 0; border-radius: 999px; background: #dce3d6; }
body.studio-webawesome input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--blue); }
body.studio-webawesome input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #4354e85c; }
body.studio-webawesome input[type="range"]:focus-visible { outline: 2px solid var(--studio-focus); outline-offset: 2px; }
body.studio-webawesome input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }
body.studio-webawesome .inspector input[type="color"] { background: #fff; border-color: var(--studio-border); border-radius: 7px; }
body.studio-webawesome :is(input[type="radio"], input[type="checkbox"], input[type="range"]) { accent-color: var(--blue); }
body.studio-webawesome .bold-toggle>span[aria-hidden] { color: var(--muted); border-color: var(--studio-border); background: var(--studio-surface-soft); border-radius: 7px; }
body.studio-webawesome .bold-toggle input:checked+span { color: var(--blue-dark); border-color: #b9c3f9; background: var(--blue-pale); }
body.studio-webawesome .studio-button.color-swatch::part(button) { min-height: 50px; padding: 4px; }
body.studio-webawesome .studio-button.color-swatch::part(label) { flex-direction: column; gap: 4px; }
body.studio-webawesome :is(.frame-floating, .brush-floating)>.studio-button { flex: 1; }

body.studio-webawesome .inspector { background: var(--studio-surface); border-left-color: var(--line); }
body.studio-webawesome .properties-section { border-bottom-color: var(--line); }
body.studio-webawesome .section-heading h2 { color: var(--ink); font-weight: 690; letter-spacing: -.02em; }
body.studio-webawesome .type-badge { color: #747e73; }
body.studio-webawesome :is(.field-label, .size-field, .frame-field, .brush-field, .gradient-field, .layer-effect-field, .gradient-mode-label) { color: #697366; }
body.studio-webawesome .property-subheading,
body.studio-webawesome .group-transform-fields legend { color: #515f53; font-weight: 650; border-color: var(--line); }
body.studio-webawesome .photo-control-group { border-color: var(--line); }
body.studio-webawesome .photo-control-group>summary { color: #5c685d; border-radius: 6px; }
body.studio-webawesome .photo-control-group[open]>summary { color: var(--ink); font-weight: 650; }
body.studio-webawesome .photo-control-group>summary:hover { color: var(--blue-dark); background: #f2f4ed; }
body.studio-webawesome .photo-control-group>summary:focus-visible { outline-color: var(--studio-focus); }
body.studio-webawesome :is(.photo-note, .background-notice, .frame-controls .photo-note, .multi-selection-help, .group-transform-hint, .layers-intro, .selection-empty) { color: var(--muted); }
body.studio-webawesome :is(.background-status, .group-state, .multi-selection-state) { color: #5c6b5e; }
body.studio-webawesome :is(.background-status, .group-state, .multi-selection-state):empty { display: none; }
body.studio-webawesome .adjustment-label output,
body.studio-webawesome :is(.frame-radius-row, .brush-softness-row) output { color: #63735f; font-variant-numeric: tabular-nums; }
body.studio-webawesome .group-reorder-note { color: #805f30; border-color: #e7dbc4; background: #fffbf1; }

body.studio-webawesome :is(.layer-row, .layer-group-row) { border-radius: 7px; }
body.studio-webawesome .layer-row:hover { background-color: #f4f6ef; }
body.studio-webawesome .layer-row:is(.is-selected, .selected, [aria-selected="true"]),
body.studio-webawesome .layer-group-row:is(.is-selected, [aria-selected="true"]) { border-color: #c4cdf5; background: #edf0ff; }
body.studio-webawesome .layer-group-row { border-color: var(--line); background: #f1f4ec; }
body.studio-webawesome :is(.layer-label, .group-label) { color: #49564c; }
body.studio-webawesome .layer-meta { color: #758070; }
body.studio-webawesome .layer-thumb { background: #fff; border-color: #d9e0d3; border-radius: 5px; }
body.studio-webawesome :is(.layer-count, .group-count) { color: #667460; background: #e9eee3; border-radius: 4px; }
body.studio-webawesome .studio-button:is(.layer-select, .group-select)::part(button) { min-height: 44px; padding: 0; border-color: transparent; background: transparent; color: inherit; text-align: left; cursor: grab; }
body.studio-webawesome .studio-button:is(.layer-select, .group-select)::part(label) { justify-content: flex-start; width: 100%; min-width: 0; gap: 10px; }
body.studio-webawesome .studio-button.group-select::part(label) { gap: 6px; }
body.studio-webawesome .studio-button:is(.layer-select, .group-select):hover::part(button) { background: transparent; border-color: transparent; color: inherit; }
body.studio-webawesome .studio-button:is(.layer-select, .group-select):focus-within::part(button) { outline-offset: -2px; }
body.studio-webawesome .layer-list.is-layer-order-dragging .studio-button::part(button) { cursor: grabbing; }
body.studio-webawesome .layer-list.is-order-invalid .studio-button::part(button) { cursor: not-allowed; }
body.studio-webawesome .layer-toolbar { border-color: var(--line); }
body.studio-webawesome .inspector-note { color: #7c8579; }

body.studio-webawesome .editor-start { height: 500px; max-height: calc(100% - 40px); min-height: 0; background: var(--studio-surface); border-color: var(--studio-border); border-radius: 14px; box-shadow: 0 16px 50px #2634230c; }
body.studio-webawesome .editor-start-kicker { color: var(--blue-dark); font-weight: 700; letter-spacing: .035em; }
body.studio-webawesome .editor-start h2 { color: var(--ink); letter-spacing: -.04em; }
body.studio-webawesome :is(.editor-start-intro, .editor-start-note) { color: var(--muted); }
body.studio-webawesome .editor-start-actions .studio-button { background: transparent !important; border-radius: 8px; }
body.studio-webawesome .editor-start-actions .studio-button::part(button) { min-height: 96px; padding: 15px; justify-content: flex-start; border-color: var(--studio-border); border-radius: 8px; color: var(--ink); background: #f7f9f2; }
body.studio-webawesome .editor-start-actions .studio-button::part(label) { align-items: flex-start; flex-direction: column; gap: 7px; width: 100%; text-align: left; white-space: normal; }
body.studio-webawesome .editor-start-actions .studio-button:not([disabled]):hover::part(button) { background: #eef2e7; border-color: #c8d1bf; }
body.studio-webawesome .editor-start-actions .studio-button.editor-start-photo::part(button) { color: #fff; border-color: var(--blue); background: var(--blue); }
body.studio-webawesome .editor-start-actions .studio-button.editor-start-photo:not([disabled]):hover::part(button) { color: #fff; border-color: var(--blue-dark); background: var(--blue-dark); }

/* Native dialog shells preserve their scrolling, close and return-focus APIs.
   Their child controls use the same WA styling as the main workspace. */
body.studio-webawesome :is(.project-dialog, .save-dialog, .editor-help-dialog, .selection-png-dialog) { background: var(--studio-surface); color: var(--ink); border-color: var(--studio-border); border-radius: 14px; box-shadow: 0 24px 90px #1c2b2533; }
body.studio-webawesome :is(.project-dialog, .save-dialog, .editor-help-dialog, .selection-png-dialog)::backdrop { background: #1d292c66; }
body.studio-webawesome :is(.project-dialog-header, .save-header, .editor-help-header, .selection-png-header) { background: var(--studio-surface); border-color: var(--line); }
body.studio-webawesome :is(.project-dialog-header, .save-header, .editor-help-header, .selection-png-header) h2 { color: var(--ink); font-weight: 680; letter-spacing: -.035em; }
body.studio-webawesome :is(.project-dialog-footer, .project-footer, .save-footer, .selection-png-footer) { background: #f4f6ef; border-color: var(--line); }
body.studio-webawesome :is(.project-section, .editor-help-section, .save-result, .selection-png-result) { border-color: var(--line); }
body.studio-webawesome :is(.project-note, .project-info, .project-status, .save-note, .save-status, .selection-png-note, .selection-png-info, .selection-png-status, .editor-help-header p, .editor-help-context, .editor-help-menu-notes dd, .editor-help-shortcuts dd) { color: var(--muted); }
body.studio-webawesome :is(.project-result, .project-candidate, .save-result) { border-color: #d9e0ed; background: #f2f5fb; border-radius: 10px; }
body.studio-webawesome .save-result { padding: 16px; border: 1px solid #d9e0ed; }
body.studio-webawesome .project-warning,
body.studio-webawesome .canvas-confirmation { color: #805e2c; border-color: #e8d7b8; background: #fff9ed; }
body.studio-webawesome .editor-help-shortcuts kbd { color: #4d5a4e; border-color: #d9e0d3; border-radius: 5px; background: #f4f6ef; }
body.studio-webawesome .selection-png-figure { border-color: var(--studio-border); }
body.studio-webawesome .autosave-status { color: #5e735d; }
body.studio-webawesome .autosave-status:is([data-phase="error"], [data-phase="unavailable"], [data-phase="conflict"]) { color: #986132; }

/* Short PC windows need enough room for two complete layer rows as well as
   the fixed layer actions. Properties keep their own existing scroll area. */
@media (min-width: 761px) and (max-height: 760px) {
  body.studio-webawesome .properties-section,
  body.studio-webawesome .properties-section:has(#multi-selection-controls:not([hidden])) {
    max-height: min(48%, max(24%, calc(100% - 360px)));
    overflow-y: auto;
  }
}
@media (max-height: 620px) {
  body.studio-webawesome .editor-start { max-height: calc(100% - 24px); }
  body.studio-webawesome .editor-start-actions .studio-button::part(button) { min-height: 78px; padding: 12px; }
}
@media (max-width: 1100px) {
  body.studio-webawesome .studio-button.editor-help-button::part(button) { padding-inline: 9px; }
}
@media (max-width: 760px) {
  body.studio-webawesome .studio-button:is(.project-menu-button, .primary-button)::part(button) { padding-inline: 9px; font-size: 10px; }
  body.studio-webawesome .studio-button:is(.fit-button, .language-button)::part(button) { padding-inline: 5px; font-size: 10px; }
  body.studio-webawesome .studio-button.tool-button { min-width: 50px; }
  body.studio-webawesome .studio-button.tool-button::part(button) { min-height: 56px; padding: 7px 5px; }
  body.studio-webawesome .inspector-mobile-header { background: var(--studio-surface); border-color: var(--line); }
}
@media (forced-colors: active) {
  body.studio-webawesome .studio-button::part(button),
  body.studio-webawesome .studio-input::part(input-wrapper),
  body.studio-webawesome .studio-select::part(combobox),
  body.studio-webawesome .studio-checkbox::part(control) { border: 1px solid ButtonText; }
  body.studio-webawesome .studio-button:is(.is-active, [aria-pressed="true"])::part(button),
  body.studio-webawesome .studio-button:focus-within::part(button),
  body.studio-webawesome .studio-checkbox:focus-within::part(control) { outline: 2px solid Highlight; outline-offset: 2px; }
}
