/* FoxTask Aushang-Studio – Oberflaeche (Redesign 2026-10-27). Nutzt die Farb-Tokens aus redesign.css / redesign-dark.css. */

/* Umschaltung zwischen neuem Studio und klassischem Editor */
#view-qr-posters.ps-active > :not(#poster-studio):not(#ps-back-to-studio) { display: none !important; }
#view-qr-posters.ps-active #ps-back-to-studio,
#view-qr-posters:not(.ps-active) #poster-studio { display: none !important; }
#view-qr-posters.ps-classic #ps-back-to-studio { display: flex !important; }
#view-qr-posters.ps-active.is-active:not(.is-hidden) { display: block !important; padding: 0 !important; }
.ps-back { display: none; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--ft-border, #e4e7ec); background: var(--ft-primary-soft, #fff4ed); color: var(--ft-text, #101828); font-size: 14px; }

.ps { --ps-bd: var(--ft-border, #e4e7ec); --ps-bg: var(--ft-surface, #fff); --ps-bg2: var(--ft-surface-2, #f9fafb); --ps-tx: var(--ft-text, #101828);
  --ps-tx2: var(--ft-text-2, #344054); --ps-tx3: var(--ft-text-3, #475467); --ps-pri: var(--ft-primary, #c2410c); --ps-brand: var(--ft-brand, #f26b1d);
  display: flex; flex-direction: column; height: calc(100vh - 112px); min-height: 620px; border: 1px solid var(--ps-bd); border-radius: 14px;
  background: var(--ps-bg); overflow: hidden; color: var(--ps-tx); font-size: 14px; }
.ps svg { width: 18px; height: 18px; flex: none; }
.ps button { font: inherit; }

/* Kopfleiste */
.ps-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ps-bd); background: var(--ps-bg); }
.ps-top-left, .ps-top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ps-top-left { flex: 1 1 auto; }
.ps-top-right { flex: 0 0 auto; justify-content: flex-end; }
.ps-top-mid { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--ps-bd); border-radius: 10px; background: var(--ps-bg2); }
.ps-object { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ps-object span { font-weight: 600; color: var(--ps-tx2); }
.ps-object select { height: 36px; min-width: 0; max-width: 340px; padding: 0 32px 0 10px; border: 1px solid var(--ft-border-strong, #d0d5dd); border-radius: 8px;
  background-color: var(--ps-bg); color: var(--ps-tx); font: inherit; }
.ps-tpl-name { color: var(--ps-tx3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-icon-btn, .ps-zoom-label { height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px;
  background: transparent; color: var(--ps-tx2); cursor: pointer; padding: 0 6px; }
.ps-zoom-label { font-size: 13px; font-weight: 500; padding: 0 10px; min-width: 64px; font-variant-numeric: tabular-nums; }
.ps-icon-btn:hover:not(:disabled), .ps-zoom-label:hover { background: var(--ps-bg); color: var(--ps-tx); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.ps-icon-btn:disabled { opacity: .35; cursor: default; }
.ps-sep { width: 1px; height: 20px; background: var(--ps-bd); margin: 0 4px; }
.ps-status { font-size: 12px; color: var(--ps-tx3); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ps-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #17b26a; }
.ps-status[data-kind="saving"]::before { background: #f79009; }
.ps-status[data-kind="demo"]::before { background: #98a2b3; }
.ps-link { border: 0; background: none; color: var(--ps-tx3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.ps-link:hover { color: var(--ps-tx); }
.ps .ps-print { display: inline-flex !important; align-items: center; gap: 8px; height: 36px !important; min-height: 36px !important; padding: 0 14px !important; white-space: nowrap; }

/* Arbeitsflaeche */
.ps-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 248px minmax(0, 1fr) 300px; }
.ps-palette, .ps-inspector { min-height: 0; overflow: auto; background: var(--ps-bg); }
.ps-palette { border-right: 1px solid var(--ps-bd); padding: 12px; }
.ps-inspector { border-left: 1px solid var(--ps-bd); display: flex; flex-direction: column; }

.ps-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 9px; background: var(--ps-bg2); border: 1px solid var(--ps-bd); margin-bottom: 12px; }
.ps-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ps-tx3); font-weight: 500; cursor: pointer; }
.ps-seg button svg { width: 16px; height: 16px; }
.ps-seg button.is-active { background: var(--ps-bg); color: var(--ps-tx); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.ps-help { margin: 0 0 10px; font-size: 12px; color: var(--ps-tx3); line-height: 1.4; }
.ps-help-small { margin-top: 12px; font-size: 11px; }
.ps-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid var(--ps-bd); border-radius: 10px;
  background: var(--ps-bg); color: var(--ps-tx); text-align: left; cursor: grab; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ps-tile:hover { border-color: var(--ps-brand); box-shadow: 0 4px 12px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.ps-tile:active { cursor: grabbing; }
.ps-tile-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ft-primary-soft, #fff4ed); color: var(--ps-pri); }
:root[data-theme="dark"] .ps-tile-icon { color: #fb9a5b; }
.ps-tile-label { font-weight: 600; font-size: 13px; line-height: 1.2; }
.ps-tile-hint { font-size: 11px; color: var(--ps-tx3); line-height: 1.25; }

.ps-save-tpl { width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 36px !important; min-height: 36px !important; font-size: 13px !important; }
.ps-tpl-group { margin: 14px 2px 8px; font-size: 12px; font-weight: 600; color: var(--ps-tx3); }
.ps-tpls { display: grid; gap: 10px; }
.ps-tpl { position: relative; }
.ps-tpl-apply { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--ps-bd); border-radius: 10px; background: var(--ps-bg);
  color: var(--ps-tx); text-align: left; cursor: pointer; transition: border-color .15s; }
.ps-tpl-apply:hover { border-color: var(--ps-brand); }
.ps-tpl.is-current .ps-tpl-apply { border-color: var(--ps-brand); box-shadow: 0 0 0 1px var(--ps-brand); }
.ps-tpl-thumb { flex: none; width: 64px; height: 90px; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .2); position: relative; }
.ps-tpl-mini { position: absolute; left: 0; top: 0; transform: scale(.0806); transform-origin: 0 0; pointer-events: none; }
.ps-tpl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-tpl-meta strong { font-size: 13px; }
.ps-tpl-meta small { font-size: 11px; color: var(--ps-tx3); line-height: 1.3; }
.ps-tpl-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--ps-tx3); cursor: pointer; display: grid; place-items: center; }
.ps-tpl-del:hover { background: var(--ft-s-crit-bg, #fef3f2); color: var(--ft-s-crit, #b42318); }

/* Leinwand */
.ps-canvas { position: relative; min-height: 0; overflow: auto; padding: 24px; background-color: #e9ebef;
  background-image: radial-gradient(rgba(16, 24, 40, .08) 1px, transparent 1px); background-size: 18px 18px; }
:root[data-theme="dark"] .ps-canvas { background-color: #0b0f17; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); }
.ps-stage { position: relative; margin: 0 auto; }
.ps-page { position: absolute; left: 0; top: 0; width: 794px; height: 1123px; transform: scale(var(--scale, .6)); transform-origin: 0 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12), 0 18px 48px rgba(16, 24, 40, .18); border-radius: 2px; }
.ps-overflow { position: sticky; top: 0; z-index: 5; margin: -8px auto 12px; max-width: 560px; padding: 8px 12px; border-radius: 8px; background: #fef3f2; color: #b42318;
  border: 1px solid #fecdca; font-size: 13px; font-weight: 500; text-align: center; }
.ps-page .psp.is-overflowing::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, #f04438 0 10px, transparent 10px 18px); }
.ps-empty { margin: 80px auto; padding: 40px; max-width: 460px; border: 2px dashed #d0d5dd; border-radius: 16px; text-align: center; color: #667085; font-size: 20px; }
.ps-empty small { font-size: 15px; }
.ps-drop-line { position: absolute; left: -6px; right: -6px; height: 4px; border-radius: 4px; background: var(--ps-brand); box-shadow: 0 0 0 3px rgba(242, 107, 29, .25); pointer-events: none; z-index: 6; }
.ps-drop-line::before, .ps-drop-line::after { content: ""; position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ps-brand); }
.ps-drop-line::before { left: -6px; } .ps-drop-line::after { right: -6px; }

/* Bausteine auf dem Blatt (nur im Editor) */
.ps-page .psp-b { cursor: pointer; border-radius: 6px; outline: calc(2px / var(--scale, 1)) solid transparent; outline-offset: 10px; transition: outline-color .12s; }
.ps-page .psp-b:hover { outline-color: rgba(242, 107, 29, .35); }
.ps-page .psp-b.is-selected { outline-color: #f26b1d; }
.ps-page .psp-b.is-dragging { opacity: .35; }
.ps-page .psp-e { cursor: text; border-radius: 3px; }
.ps-page .psp-e:hover { background: rgba(242, 107, 29, .08); }
.ps-page .psp-e:focus { background: rgba(242, 107, 29, .1); box-shadow: 0 0 0 2px rgba(242, 107, 29, .45); }
.ps-page .psp-b-spacer { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(152, 162, 179, .12) 8px 16px); }
.ps-bar { position: absolute; z-index: 4; right: -10px; bottom: calc(100% + 14px); display: none; align-items: center; gap: 2px; padding: 4px; border-radius: 10px;
  background: #101828; box-shadow: 0 6px 18px rgba(16, 24, 40, .3); transform-origin: 100% 100%; transform: scale(calc(1 / var(--scale, 1))); }
.ps-page .psp-b.is-selected > .ps-bar { display: flex; }
.ps-page .psp-b:first-child > .ps-bar { bottom: auto; top: calc(100% + 14px); transform-origin: 100% 0; }
.ps-bar-name { color: #fff; font-size: 13px; font-weight: 600; padding: 0 10px 0 8px; white-space: nowrap; }
.ps-bar-btn { width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: #e4e7ec; display: grid; place-items: center; cursor: pointer; }
.ps-bar-btn svg { width: 18px; height: 18px; }
.ps-bar-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ps-bar-btn.is-danger:hover { background: #b42318; }
.ps-grip { cursor: grab; }

/* Eigenschaften */
.ps-insp-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--ps-bd); }
.ps-insp-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-insp-head strong { font-size: 15px; }
.ps-insp-head small { font-size: 12px; color: var(--ps-tx3); line-height: 1.35; }
.ps-insp-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ft-primary-soft, #fff4ed); color: var(--ps-pri); flex: none; }
:root[data-theme="dark"] .ps-insp-icon { color: #fb9a5b; }
.ps-insp-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.ps-insp-foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--ps-bd); }
.ps-insp-foot button { flex: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 34px !important; min-height: 34px !important; font-size: 13px !important; }
.ps-insp-foot .ps-danger { color: var(--ft-s-crit, #b42318) !important; }
.ps-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ps-field > span { font-size: 12px; font-weight: 600; color: var(--ps-tx2); }
.ps-field input[type="text"], .ps-field textarea, .ps-list input {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--ft-border-strong, #d0d5dd); border-radius: 8px; background: var(--ps-bg); color: var(--ps-tx); font: inherit; font-size: 14px; }
.ps-field textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.ps-field input:focus, .ps-field textarea:focus, .ps-list input:focus { outline: none; border-color: var(--ps-brand); box-shadow: 0 0 0 3px rgba(242, 107, 29, .18); }
.ps-segctl { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--ps-bg2); border: 1px solid var(--ps-bd); }
.ps-segctl button { flex: 1; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: var(--ps-tx3); font-size: 13px; font-weight: 500; cursor: pointer; }
.ps-segctl button.is-active { background: var(--ps-bg); color: var(--ps-tx); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.ps-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ps-tx); }
.ps-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ps-switch { position: relative; width: 36px; height: 20px; flex: none; border-radius: 999px; background: #d0d5dd; transition: background .15s; }
.ps-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: transform .15s; }
.ps-toggle input:checked + .ps-switch { background: var(--ps-pri); }
.ps-toggle input:checked + .ps-switch::after { transform: translateX(16px); }
.ps-toggle input:focus-visible + .ps-switch { box-shadow: 0 0 0 3px rgba(242, 107, 29, .3); }
:root[data-theme="dark"] .ps-switch { background: #414651; }
.ps-list { display: flex; flex-direction: column; gap: 6px; }
.ps-list-row { display: flex; align-items: center; gap: 6px; }
.ps-list-num { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ps-bg2); border: 1px solid var(--ps-bd); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ps-tx2); }
.ps-mini { width: 28px; height: 28px; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--ps-tx3); display: grid; place-items: center; cursor: pointer; }
.ps-mini:hover { background: var(--ps-bg2); color: var(--ps-tx); }
.ps-mini svg { width: 16px; height: 16px; }
.ps-add-row { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 30px; padding: 0 10px; border: 1px dashed var(--ft-border-strong, #d0d5dd); border-radius: 8px; background: transparent; color: var(--ps-tx2); font-size: 13px; cursor: pointer; }
.ps-add-row:hover { border-color: var(--ps-brand); color: var(--ps-tx); }
.ps-add-row svg { width: 14px; height: 14px; }
.ps-cat-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ps-cat-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 1px solid var(--ps-bd); border-radius: 8px; background: var(--ps-bg); color: var(--ps-tx3); font-size: 10.5px; cursor: pointer; }
.ps-cat-pick button.is-active { border-color: var(--ps-brand); background: var(--ft-primary-soft, #fff4ed); color: var(--ps-tx); }
.ps-note { margin: 0; font-size: 12px; color: var(--ps-tx3); line-height: 1.45; }
.ps-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.ps-swatch { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; padding: 0; }
.ps-swatch.is-active { box-shadow: 0 0 0 2px var(--ps-bg), 0 0 0 4px var(--c); }
.ps-swatch-custom { background: conic-gradient(#f04438, #f79009, #fdb022, #17b26a, #2e90fa, #7a5af8, #f04438); overflow: hidden; display: block; }
.ps-swatch-custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ps-divider { height: 1px; background: var(--ps-bd); margin: 2px 0; }
.ps-outline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-outline button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ps-tx2); text-align: left; cursor: pointer; font-size: 13px; }
.ps-outline button:hover { background: var(--ps-bg2); color: var(--ps-tx); }
.ps-outline svg { width: 16px; height: 16px; color: var(--ps-tx3); }
.ps-logo-row { display: flex; align-items: center; gap: 8px; }
.ps-logo-row img { height: 36px; max-width: 110px; object-fit: contain; border: 1px solid var(--ps-bd); border-radius: 6px; padding: 3px; background: #fff; }
.ps-logo-empty { flex: 1; font-size: 12px; color: var(--ps-tx3); }
.ps-upload { display: inline-flex !important; align-items: center; gap: 6px; height: 32px !important; min-height: 32px !important; padding: 0 10px !important; font-size: 13px !important; cursor: pointer; }
.ps-upload svg { width: 15px; height: 15px; }

.ps.is-dnd .ps-canvas { box-shadow: inset 0 0 0 3px rgba(242, 107, 29, .35); }

/* Mittlere Breite: Bausteine als schmale Leiste */
@media (max-width: 1360px) {
  .ps-body { grid-template-columns: 92px minmax(0, 1fr) 280px; }
  .ps-palette { padding: 8px 6px; }
  .ps-seg { grid-template-columns: 1fr; }
  .ps-seg button span, .ps-help, .ps-tile-hint, .ps-tpl-meta small { display: none; }
  .ps-tiles { grid-template-columns: 1fr; gap: 6px; }
  .ps-tile { align-items: center; padding: 8px 4px; gap: 4px; text-align: center; }
  .ps-tile-label { font-size: 11px; font-weight: 500; }
  .ps-save-tpl span { display: none; }
  .ps-tpl-apply { flex-direction: column; padding: 6px; gap: 4px; text-align: center; }
  .ps-tpl-group { font-size: 10px; margin: 10px 0 6px; text-align: center; }
  .ps-tpl-meta strong { font-size: 11px; }
  .ps-tpl-name { display: none; }
}
/* Handy und Tablet hochkant: untereinander, Bausteine zum Antippen */
@media (max-width: 900px) {
  .ps { height: auto; min-height: 0; border-radius: 12px; }
  .ps-top { flex-wrap: wrap; }
  .ps-top-left { flex: 1 1 100%; }
  .ps-object { flex: 1; } .ps-object select { flex: 1; max-width: none; }
  .ps-top-right { flex: 1 1 auto; }
  .ps-link { display: none; }
  .ps-body { display: flex; flex-direction: column; }
  .ps-palette { border-right: 0; border-bottom: 1px solid var(--ps-bd); padding: 10px; overflow: visible; }
  .ps-seg { grid-template-columns: 1fr 1fr; }
  .ps-seg button span { display: inline; }
  .ps-tiles, .ps-tpls { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .ps-tile { flex: 0 0 96px; }
  .ps-tpl { flex: 0 0 120px; }
  .ps-canvas { padding: 14px; overflow: auto; }
  .ps-inspector { border-left: 0; border-top: 1px solid var(--ps-bd); overflow: visible; }
  .ps-bar-name { display: none; }
}
@media print { #poster-studio { display: none !important; } }

@media (max-width: 1600px) { .ps-tpl-name { display: none; } }
@media (max-width: 1480px) { .ps-status { font-size: 0; gap: 0; } .ps-status::before { width: 9px; height: 9px; } }

/* Breite nie vom Inhalt (lange Objektnamen) bestimmen lassen */
#view-qr-posters.ps-active, .ps, .ps-top, .ps-body, .ps-palette, .ps-canvas, .ps-inspector { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ps { width: 100%; }
.ps-object select { width: 0; flex: 1 1 auto; min-width: 120px; text-overflow: ellipsis; }
.ps-top-left { min-width: 0; }
@media (max-width: 900px) {
  .ps-object select { min-width: 0; }
  .ps-top-mid { order: 3; }
  .ps-top-right { margin-left: auto; }
  .ps-canvas { overflow-x: hidden; }
}
@media (max-width: 480px) {
  .ps-print span { display: none; }
  .ps .ps-print { padding: 0 10px !important; }
  .ps-top { gap: 8px; padding: 8px 10px; }
}
/* Die Mindestbreite des Studios darf das App-Raster nicht aufweiten */
#poster-studio { contain: inline-size; }
.main-shell:has(> #view-qr-posters.ps-active.is-active) { grid-template-columns: minmax(0, 1fr) !important; }

/* Schwebende Formatleiste (wie im Texteditor) */
.ps-textbar { position: absolute; z-index: 8; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px;
  background: #101828; color: #e4e7ec; box-shadow: 0 8px 24px rgba(16, 24, 40, .35); white-space: nowrap; }
.ps-textbar[hidden] { display: none; }
.ps-textbar button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #e4e7ec; display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.ps-textbar button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ps-textbar button.is-active { background: rgba(242, 107, 29, .3); color: #fff; }
.ps-textbar svg { width: 16px; height: 16px; }
.ps-tb-label { font-size: 12px; font-weight: 600; color: #fff; padding: 0 8px 0 6px; }
.ps-tb-size { min-width: 28px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: #fff; }
.ps-tb-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .2); margin: 0 4px; }
.ps-textbar .ps-tb-color { width: 20px; height: 20px; margin: 0 2px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ps-textbar .ps-tb-color.is-active { box-shadow: 0 0 0 2px #101828, 0 0 0 4px #fff; }
.ps-textbar .ps-tb-color.is-auto, .ps-swatch.is-auto { background: linear-gradient(135deg, var(--c) 0 50%, #fff 50% 100%) !important; }

/* Textformat im Eigenschaften-Bereich */
.ps-textformat select { height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--ft-border-strong, #d0d5dd); border-radius: 8px; background-color: var(--ps-bg); color: var(--ps-tx); font: inherit; font-size: 14px; }
.ps-tf-row { display: flex; gap: 8px; align-items: center; }
.ps-stepper { display: flex; align-items: center; flex: 1; height: 36px; border: 1px solid var(--ft-border-strong, #d0d5dd); border-radius: 8px; background: var(--ps-bg); overflow: hidden; }
.ps-stepper button { width: 34px; height: 100%; border: 0; background: transparent; color: var(--ps-tx2); display: grid; place-items: center; cursor: pointer; }
.ps-stepper button:hover { background: var(--ps-bg2); color: var(--ps-tx); }
.ps-stepper svg { width: 15px; height: 15px; }
.ps-stepper input { flex: 1; min-width: 0; width: 40px; height: 100%; border: 0; background: transparent; color: var(--ps-tx); text-align: right; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ps-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ps-stepper span { font-size: 12px; color: var(--ps-tx3); padding: 0 4px 0 2px; }
.ps-tf-style { flex: none; width: 92px; }
.ps-tf-style b, .ps-tf-style i { font-size: 15px; }
:root[data-theme="dark"] .ps-swatch { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
:root[data-theme="dark"] .ps-swatch.is-active { box-shadow: 0 0 0 2px var(--ps-bg), 0 0 0 4px #fdba8c; }
.ps-swatch-custom input[type="color"] { opacity: 0 !important; background: transparent !important; border: 0 !important; padding: 0 !important; width: 100% !important; height: 100% !important; }
