/* Managed Hub – calm business look (light like a POS back office, dark as an option), Smoothdesk blue */
:root {
  --bg: #111418; --bg2: #171a1f; --card: #1c2026; --card2: #242931; --line: #2f353e; --line2: #3c434e;
  --text: #eef0f3; --muted: #9aa1ad; --accent: #4c8dff; --accent-soft: rgba(76,141,255,.15); --accent-row: rgba(76,141,255,.20);
  --tabbar: #0c0e11; --zebra: rgba(255,255,255,.025); --shadow: none;
  --primary: #3b82f6; --on-primary: #ffffff; --tip: #eef0f3; --on-tip: #111418;
  --ok: #34c759; --warn: #ffb020; --bad: #ff5a52;
  --info-text: #b9cdff; --err-text: #ff8a84; --ok-text: #6fdc8c;
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #eef0f3; --bg2: #ffffff; --card: #ffffff; --card2: #f4f6f9; --line: #e1e4e9; --line2: #c9ced6;
  --text: #22262c; --muted: #646b76; --accent: #1f6feb; --accent-soft: #eaf1fe; --accent-row: #d6e5fd;
  --tabbar: #e2e5e9; --zebra: #f6f7f9; --shadow: 0 1px 3px rgba(20,30,50,.06);
  --primary: #1f6feb; --on-primary: #ffffff; --tip: #22262c; --on-tip: #ffffff;
  --ok: #3a9a4f; --bad: #d9363e;
  --info-text: #1a55b8; --err-text: #b42318; --ok-text: #2c7a3f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.ic { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* hover hints */
[data-tip] { position: relative; }
[data-tip]:hover::before { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--tip); color: var(--on-tip); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; z-index: 100; pointer-events: none; }

/* ---- layout ---------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 14px 0 12px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  z-index: 30; /* sticky makes its own layer – keep it (and its hover names) above the content and the workbench */ }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 20px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.brand span { display: block; font-weight: 800; font-size: 17px; letter-spacing: -.2px; line-height: 1.15; }
.brand small.brand-sub { color: var(--accent); font-weight: 700; font-size: 12.5px; letter-spacing: .2px; }
.brand small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }

/* main entries: big icon + name; groups open to show their entries (like a POS back office) */
.nav { display: flex; flex-direction: column; }
.nav > a, .group-head { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 42px; color: var(--text); text-decoration: none;
  font-size: 15px; font-weight: 500; border: 0; background: none; width: 100%; text-align: left; border-left: 4px solid transparent; }
.nav > a .ic, .group-head .ic { width: 20px; height: 20px; color: var(--muted); }
.nav > a:hover, .group-head:hover { background: var(--card2); }
.nav > a.active { border-left-color: var(--accent); background: var(--accent-soft); }
.nav > a.active .ic, .group.current .group-head .ic { color: var(--accent); }
.group-head::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s; margin-top: -4px; }
.group.open .group-head::after { transform: rotate(-135deg); margin-top: 4px; }
.group.current { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.group.current .group-head { border-left: 0; padding-left: 20px; }
.sub-nav { display: none; flex-direction: column; padding: 0 0 6px; }
.group.open .sub-nav { display: flex; }
.sub-nav a { display: flex; align-items: center; gap: 8px; padding: 5px 20px 5px 60px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.group.current .sub-nav a { padding-left: 56px; }
.sub-nav a:hover { color: var(--accent); }
.sub-nav a.active { color: var(--accent); font-weight: 700; }
.nav .lock { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.nav .soon { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }

.collapse-btn { margin: auto 10px 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted);
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
/* open: the arrows point left (einklappen); collapsed they turn right (ausklappen) */
.app.collapsed .collapse-btn { margin: auto auto 6px; width: 44px; padding: 0; justify-content: center; }
.app.collapsed .collapse-btn .label { display: none; }
.collapse-btn:hover { background: var(--card2); color: var(--text); }
.collapse-btn .ic { width: 24px; height: 24px; transition: transform .2s; }
.user-box { border-top: 1px solid var(--line); padding: 12px 18px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-box .who { flex: 1; min-width: 0; line-height: 1.3; }
.user-box .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line2); }
.icon-btn.copied { color: var(--ok); border-color: var(--ok); }

/* collapsed sidebar: icons only, names as hover hints */
.app.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.app.collapsed .side { overflow: visible; }
.app.collapsed .brand { padding: 6px 0 16px; justify-content: center; }
.app.collapsed .brand > div, .app.collapsed .nav .label, .app.collapsed .sub-nav, .app.collapsed .group-head::after,
.app.collapsed .user-box .who { display: none; }
.app-version { padding: 8px 18px 0; font-size: 12px; color: var(--muted); cursor: default; }
.app-version .short, .app.collapsed .app-version .long { display: none; }
.app.collapsed .app-version { padding: 8px 0 0; text-align: center; }
.app.collapsed .app-version .short { display: inline; }
.app.collapsed .nav > a, .app.collapsed .group-head { justify-content: center; padding: 0; }
.app.collapsed .group.current { background: none; border-left-color: transparent; }
.app.collapsed .group.current .group-head { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 0; }
.app.collapsed .collapse-btn .ic { transform: rotate(180deg); }
.app.collapsed .user-box { flex-direction: column; padding: 12px 0 0; }
.app.collapsed [data-tip]:hover::before { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }
/* collapsed: a group's entries appear in a small menu next to its icon (hover or tap) */
.app.collapsed .group { position: relative; }
.app.collapsed .group:hover .sub-nav, .app.collapsed .group.flyout .sub-nav {
  display: flex; position: absolute; left: 100%; top: 0; z-index: 60; min-width: 220px; padding: 8px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(10,20,40,.18); }
.app.collapsed .group:hover .sub-nav::after, .app.collapsed .group.flyout .sub-nav::after {
  content: ""; position: absolute; right: 100%; top: 0; width: 12px; height: 100%; }  /* bridge, so the menu stays open on the way */
.app.collapsed .sub-nav::before { content: attr(data-title); display: block; padding: 4px 16px 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.app.collapsed .sub-nav a, .app.collapsed .group.current .sub-nav a { padding: 9px 16px; font-size: 15px; }
.app.collapsed .sub-nav .label, .app.collapsed .sub-nav .soon, .app.collapsed .sub-nav .lock { display: inline; }
.app.collapsed .sub-nav .soon, .app.collapsed .sub-nav .lock { margin-left: auto; }

/* ---- tabs + content ------------------------------------------------------------------- */
main { height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: flex-end; background: var(--tabbar); border-bottom: 1px solid var(--line2); flex: none; }
.tabbar { display: flex; align-items: flex-end; gap: 4px; padding: 8px 12px 0; overflow: hidden; flex: 1; min-width: 0; }
/* tabs are moved by holding them (see hub.js) */
.tab.dragging { position: relative; z-index: 3; cursor: grabbing; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: .95; transition: none; }
.tab.shift { transition: transform .15s ease; }
.tabbar.sorting .tab:not(.dragging) { pointer-events: none; }
/* sidebar sorting: the held entry lifts as a card, the others glide aside */
.nav > .dragging { position: relative; z-index: 3; cursor: grabbing; background: var(--card); border-radius: 12px; margin: 0 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18), 0 0 0 2px var(--accent); transition: box-shadow .15s ease; }
.nav > .shift { transition: transform .18s ease; }
.nav.sorting { user-select: none; }
.nav.sorting > :not(.dragging) { pointer-events: none; }

/* Hilfe: opens the handbook at the chapter of the open page */
.help-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 12px 6px 4px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; flex: none; white-space: nowrap; }
.help-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.help-btn .ic { width: 17px; height: 17px; }
@media (max-width: 700px) { .help-btn span { display: none; } .help-btn { padding: 0 6px; } }
/* the running stopwatch, top right on every page */
.timer-pill { display: flex; align-items: center; gap: 4px; margin: 6px 12px 6px 8px; padding: 3px 4px 3px 4px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); flex: none; }
.timer-pill .tp-time { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 30px; color: var(--text); text-decoration: none; max-width: 260px; }
.timer-pill .tp-time i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); flex: none; animation: tp-blink 1.6s ease-in-out infinite; }
.timer-pill.paused .tp-time i { background: var(--warn); animation: none; }
.timer-pill .tp-time b { font-variant-numeric: tabular-nums; font-size: 15px; }
.timer-pill .tp-time span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--card2); color: var(--text); display: grid; place-items: center; padding: 0; }
.tp-btn svg { width: 15px; height: 15px; }
.tp-btn:hover { background: var(--accent-soft); color: var(--accent); }
.tp-btn.stop:hover { background: rgba(255,90,82,.15); color: var(--bad); }
@keyframes tp-blink { 50% { opacity: .35; } }
.tab { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 8px 8px 0 0; cursor: pointer;
  color: var(--muted); font-size: 14.5px; font-weight: 600; white-space: nowrap; flex: 0 1 auto; min-width: 124px; max-width: 220px; user-select: none;
  background: color-mix(in srgb, var(--card2) 70%, var(--tabbar)); border: 1px solid var(--line); border-bottom: 0; margin-bottom: -1px;
  box-shadow: inset 0 3px 0 transparent; }
.tab:hover { color: var(--text); background: var(--card2); }
.tab.active { background: var(--accent-soft); color: var(--accent); border-color: var(--line2); box-shadow: inset 0 3px 0 var(--accent);
  border-bottom: 1px solid var(--accent-soft); }
.tab:not(:has(.tab-x)) { padding-right: 14px; }
.tab-x { width: 24px; height: 24px; border-radius: 6px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; }
.tab-x svg { width: 15px; height: 15px; }
.tab-x:hover { background: var(--card2); color: var(--text); }
.views { flex: 1; min-height: 0; overflow: auto; position: relative; }
.page-view { padding: 0 0 60px; }
.page-view > :not(.page-head) { margin-left: 24px; margin-right: 24px; max-width: 1600px; }
/* editors (view left, panel right) use the whole width: the view grows, the panel keeps a readable width */
.page-view > :is(.ar-edit, .cl-edit, .od-detail, .dn-edit), .page-view > #clBody:has(> .cl-design, > .cl-edit) { max-width: none; }
.app-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }

/* title bar under the tabs, white like a toolbar */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg2); border-bottom: 1px solid var(--line); padding: 16px 24px; margin-bottom: 24px; }
h1 { font-size: 22px; margin: 0; font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
h2 .ic { color: var(--accent); width: 20px; height: 20px; }
.sub { color: var(--muted); margin: 2px 0 0; }

/* cards & grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.card.span2 { grid-column: span 2; }
.card.flush { padding: 8px 18px; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } .card.span2 { grid-column: auto; }
  main { height: auto; min-height: 100vh; } .views { min-height: 70vh; }
  .page-head { padding: 14px 16px; } .page-view > :not(.page-head) { margin-left: 16px; margin-right: 16px; }
}
.stat { font-size: 30px; font-weight: 800; }

/* dashboard: fixed tiles, arranged like apps on a phone */
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dash { grid-template-columns: 1fr; } }
.widget { min-height: 210px; position: relative; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.w-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.w-body .sub { margin: 0; }
.w-body .link-box { align-self: stretch; }
.w-hide { display: none; position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg);
  background: var(--muted); color: var(--bg2); place-items: center; padding: 0; z-index: 2; }
.w-hide .ic { width: 16px; height: 16px; stroke-width: 3; }
.w-hide:hover { background: var(--bad); color: #fff; }
.dash.editing .w-hide { display: grid; }
.dash.editing .widget { cursor: grab; touch-action: none; animation: wiggle .28s ease-in-out infinite alternate; }
.dash.editing .widget:nth-child(2n) { animation-delay: -.14s; }
.dash.editing .w-body { pointer-events: none; }
.widget.dragging { position: fixed; z-index: 50; animation: none !important; pointer-events: none; cursor: grabbing; scale: 1.04;
  box-shadow: 0 20px 50px rgba(10,20,40,.28); }
.slot { border: 2px dashed var(--line2); border-radius: 12px; min-height: 210px; }
.dash:not(.editing) .slot:not(.target) { display: none; }
.slot.target { border-color: var(--accent); background: var(--accent-soft); }
@keyframes wiggle { from { rotate: -.5deg; } to { rotate: .5deg; } }
@media (prefers-reduced-motion: reduce) { .dash.editing .widget { animation: none; } }
.dash-tray { margin-top: 24px; }
.tray-items { display: flex; flex-wrap: wrap; gap: 10px; }
.tray-item { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 12px; border-radius: 999px;
  border: 1px dashed var(--line2); background: var(--card2); font-weight: 600; }
.tray-item .ic { color: var(--accent); }
.tray-item:hover { border-color: var(--accent); color: var(--accent); }
.faces { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.faces .sub { margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip .ic { width: 15px; height: 15px; color: var(--accent); }
.chip.ok { color: var(--ok); } .chip.ok .ic { color: var(--ok); }

/* buttons: main action as a round blue pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; height: 40px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line2); font-weight: 600; text-decoration: none; color: var(--text); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn .ic { color: var(--accent); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); border-radius: 999px; padding: 0 22px; }
.btn.primary:hover { filter: brightness(1.08); color: var(--on-primary); }
.btn.primary .ic { color: var(--on-primary); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); font-weight: 600; }
.field input, .field select { height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:disabled, .field select:disabled { background: var(--card2); }
.field input[type=color] { padding: 4px; width: 80px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.switch { width: 46px; height: 26px; border-radius: 13px; background: var(--line2); position: relative; flex: none; border: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 23px; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 600; }
.seg button.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button .ic { color: var(--accent); }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.field.invalid input { border-color: var(--err-text); }
.field-err { color: var(--err-text); font-size: 13px; }
.pw-rules { margin: -4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--ok-text); }
.pw-rules li.ok::before { content: "✓ "; }
.msg.err { background: rgba(255,90,82,.12); color: var(--err-text); }
.msg.ok { background: rgba(52,199,89,.12); color: var(--ok-text); }
.msg.info { background: var(--accent-soft); color: var(--info-text); }

/* modules */
.mod { display: flex; flex-direction: column; gap: 12px; }
.mod.booked { border-color: var(--accent); }
.mod-head { display: flex; align-items: center; gap: 12px; }
.mod-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.mod-icon .ic { width: 24px; height: 24px; color: var(--accent); }
.mod-name { font-weight: 700; font-size: 17px; }
.price { font-size: 22px; font-weight: 800; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.feat { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.feat li { display: flex; gap: 8px; align-items: center; }
.feat .ic { width: 15px; height: 15px; color: var(--ok); }
.mod .btn, .mod > .chip:last-child { margin-top: auto; align-self: flex-start; }
.mod.dev { border-style: dashed; }
.mod.dev .mod-icon { background: var(--card2); }
.mod.dev .mod-icon .ic { color: var(--muted); }
.mod-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 1px 8px; vertical-align: middle; margin-left: 4px; }
.feat .soon-feat .ic { color: var(--muted); }
.feat .soon { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.req { margin: 0; font-size: 13px; color: var(--muted); }
.soon-chip { color: var(--muted); }
/* Apps page: cards with the first features, the rest folds open */
.app-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; margin-bottom: 18px; }
.app-stats .card { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.app-stats b { font-size: 22px; font-weight: 800; }
.mod-group .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
.app-card { gap: 10px; padding: 18px; }
.app-card-head { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; }
.app-card-title { flex: 1; min-width: 0; }
.app-card-title .mod-name { font-size: 16px; line-height: 1.25; hyphens: auto; }   /* long names (Bild-bearbeitung) wrap with a hyphen instead of running under the status */
.app-card-title .price { font-size: 19px; }
.app-card .mod-icon { flex: none; }
.app-card .app-status { flex: none; }
.app-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; min-height: calc(2 * 1.45em);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-card.open .app-desc { -webkit-line-clamp: unset; display: block; }
.app-card .feat { gap: 5px; font-size: 14px; min-height: calc(3 * 1.5em + 10px); }
.app-card .feat li { line-height: 1.5; }
.app-card:not(.open) .feat li { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card:not(.open) .feat li .ic { vertical-align: -2px; margin-right: 8px; }
.app-card .feat .app-extra { display: none !important; }
.app-card.open .feat .app-extra { display: flex !important; }
.app-toggle-row { min-height: 22px; }
.app-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
  min-height: 52px; }
.app-card-foot .req { flex: 1; font-size: 12.5px; }
.app-card-foot .btn { margin: 0 !important; align-self: center !important; }
.app-card-foot .muted { font-size: 12.5px; flex: 1; text-align: right; }
.app-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.app-toggle [data-icon] { display: grid; transition: transform .15s; }
.app-toggle .ic { width: 18px; height: 18px; }
.app-card.open .app-toggle [data-icon] { transform: rotate(180deg); }
.app-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.app-icon .ic { width: 22px; height: 22px; color: var(--accent); }
.app-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.app-text b { font-size: 16px; }
.app-text .sub { margin: 0; font-size: 13.5px; }
.app-status { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.app-status.ok { color: var(--ok); border-color: var(--ok); background: transparent; }
.app-status.wait { color: var(--warn); border-color: var(--warn); background: transparent; }
.app-bundle { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; border-radius: 14px;
  border: 1px dashed var(--accent); background: var(--accent-soft); }
.app-bundle-act { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .app-bundle { flex-wrap: wrap; } .app-bundle .app-text { flex: 1 1 calc(100% - 70px); } .app-bundle-act { margin-left: 56px; flex-wrap: wrap; } }
.mod-group { margin-bottom: 30px; }
.mod-group:first-child { margin-top: 0; }
.group-title { font-size: 19px; margin-bottom: 14px; }
#mods > .msg { margin-bottom: 20px; }

/* tables: calm rows with zebra stripes, selected row tinted */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0 12px; height: 48px; }
th { font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line2); }
tbody tr:nth-child(even) { background: var(--zebra); }
tbody tr:hover { background: var(--accent-soft); }
tbody tr.selected { background: var(--accent-row); }
td .btn { height: 34px; padding: 0 12px; font-size: 14px; }
.role { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.role.owner { color: var(--accent); border-color: var(--accent); }
.state { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.state .ic { width: 14px; height: 14px; }
.state.off { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.table-foot { display: flex; justify-content: space-between; padding: 12px 12px 6px; border-top: 1px solid var(--line2); color: var(--muted); font-size: 14px; }

.link-box { display: flex; gap: 8px; align-items: center; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty > div > .ic, .empty > .ic { width: 44px; height: 44px; color: var(--line2); margin-bottom: 8px; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 40px rgba(20,30,50,.08); }
.auth-card .brand { padding: 0 0 14px; margin: 0; }
.auth-card .brand > div { font-weight: 800; font-size: 19px; }
.auth-card .brand small { font-weight: 500; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card2); border-radius: 10px; padding: 4px; border: 1px solid var(--line); }
.tabs button { height: 36px; border: 0; background: none; border-radius: 8px; font-weight: 600; color: var(--muted); }
.tabs button.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---- Retail → Artikel ------------------------------------------------------------------- */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ar-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); overflow: hidden; box-shadow: var(--shadow); color: var(--text); }
.ar-card:hover { border-color: var(--accent); }
.ar-img { aspect-ratio: 1; background: var(--card2); display: grid; place-items: center; }
.ar-img img { width: 100%; height: 100%; object-fit: contain; }
.ar-img .ic { width: 40px; height: 40px; color: var(--line2); }
.ar-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.ar-body .sub { margin: 0; font-size: 13px; }
.ar-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

.ar-modal { position: fixed; inset: 0; z-index: 80; background: rgba(10,15,25,.45); display: grid; place-items: center; padding: 20px; }
.ar-modal > .card { width: min(900px, 100%); max-height: 90vh; overflow: auto; }
.ar-modal-head { display: flex; justify-content: space-between; align-items: center; }
.ar-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ar-tpl { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2);
  text-align: left; color: var(--text); }
.ar-tpl:hover { border-color: var(--accent); background: var(--accent-soft); }
.ar-tpl img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg2); border-radius: 8px; margin-bottom: 6px; }
.ar-tpl span { font-size: 12px; color: var(--muted); }
.ar-tpl.blank > div { aspect-ratio: 1; display: grid; place-items: center; border: 2px dashed var(--line2); border-radius: 8px; margin-bottom: 6px; }
.ar-tpl.blank .ic { width: 36px; height: 36px; color: var(--accent); }

.ar-head .row { flex-wrap: nowrap; }
/* Artikel: list with status tabs, filters, sortable columns */
#arQ { width: 300px; max-width: 100%; }
.ar-filter { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ar-selects { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ar-selects select, .od-bulk select { height: 40px; }
.od-bulk select.ar-input { flex: 0 1 auto; min-width: 170px; }   /* the whole „Status setzen …“ stays readable */
.ar-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.ar-sort:hover, .ar-sort.on { color: var(--accent); }
.ar-dir { font-size: 10px; margin-left: 4px; }
.ar-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ar-hubs .chip { margin: 2px 4px 2px 0; padding: 2px 9px; font-size: 12px; }
.st.ar-st-active { background: var(--accent-soft); color: var(--accent); }
.st.ar-st-template { background: var(--card2); color: var(--text); border: 1px solid var(--line2); }
.st.ar-st-archived { background: var(--card2); color: var(--muted); border: 1px dashed var(--line2); }
.ar-list { overflow-x: auto; }
@media (max-width: 760px) { .ar-table th:nth-child(2), .ar-table td:nth-child(2), .ar-table th:nth-child(5), .ar-table td:nth-child(5),
  .ar-table th:nth-child(6), .ar-table td:nth-child(6), .ar-table th:nth-child(7), .ar-table td:nth-child(7) { display: none; } .ar-table td, .ar-table th { padding-left: 8px; padding-right: 8px; }
  .card.ar-list { padding-left: 8px; padding-right: 8px; } }
.ar-inshops { display: flex; flex-direction: column; gap: 8px; }
.ar-inshop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card2); color: var(--text); text-align: left; }
.ar-inshop:hover { border-color: var(--accent); }
.ar-inshop > span:first-child { display: flex; flex-direction: column; } .ar-inshop small { color: var(--muted); }
.ar-avail { display: flex; flex-direction: column; gap: 12px; }
.ar-avail span { display: flex; flex-direction: column; } .ar-avail small { color: var(--muted); font-weight: 500; font-size: 13px; }
.ar-status { height: 40px; }
.ar-modal-sub { margin: 14px 0 10px; font-size: 15px; }
.ar-tpl > div[data-icon] { aspect-ratio: 1; display: grid; place-items: center; background: var(--bg2); border-radius: 8px; margin-bottom: 6px; }
.ar-settings { max-width: 640px; margin-bottom: 18px; }
.ar-radio { display: flex; flex-direction: column; gap: 10px; }
.ar-radio label { display: flex; gap: 10px; align-items: flex-start; } .ar-radio input { margin-top: 4px; width: 18px; height: 18px; }
.ar-radio span { display: flex; flex-direction: column; } .ar-radio small { color: var(--muted); }
.ar-supply { margin-top: 18px; }
.ar-supply-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ar-supply-tbl { min-width: 640px; }
.ar-supply-tbl th { font-size: 13px; color: var(--muted); text-align: left; padding: 8px 10px; white-space: nowrap; }
.ar-supply-tbl td { padding: 4px 10px; height: 44px; white-space: nowrap; }
.ar-supply-tbl tr.first td { border-top: 1px solid var(--line); }
.ar-supply-tbl tr.off td:not(:first-child) { opacity: .5; }
.ar-supply-tbl .ar-input { height: 34px; width: 100%; min-width: 80px; }
.ar-supply-tbl [data-f="supplier_no"] { min-width: 150px; } .ar-supply-tbl [data-f="ean"] { min-width: 140px; }
.ar-supply-tbl input[type="checkbox"] { width: 18px; height: 18px; }
.ar-supply-tbl .ar-input.low { border-color: var(--bad); color: var(--bad); }
.ar-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line2); margin-right: 8px; vertical-align: -2px; }
.ar-fill { height: 32px; margin-left: 8px; font-size: 13px; }
.chip.ar-low { color: var(--bad); padding: 1px 8px; font-size: 12px; }
.sup-dlg { width: min(640px, 100%) !important; }
.buy-group { margin-bottom: 18px; }
.buy-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .buy-head h2 { margin: 0; }
.buy-tbl { min-width: 680px; }
.buy-tbl th { font-size: 13px; color: var(--muted); text-align: left; padding: 8px 10px; white-space: nowrap; }
.buy-tbl td { padding: 6px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.buy-tbl .buy-qty { width: 80px; height: 34px; }
.buy-miss { color: var(--bad); font-weight: 600; }
.buy-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.buy-sum { font-weight: 600; }
.st.buy-st-draft { background: var(--card2); border: 1px solid var(--line2); }
.st.buy-st-sent { background: var(--accent-soft); color: var(--accent); }
.st.buy-st-received { background: rgba(46, 160, 67, .15); color: var(--ok); }
.st.buy-st-cancelled { background: var(--card2); color: var(--muted); border: 1px dashed var(--line2); }
.buy-hist { margin-top: 12px; font-size: 13px; color: var(--muted); } .buy-hist summary { cursor: pointer; }
.ar-modal > .card.im-dlg { width: min(980px, 100%); } .im-dlg > .sub { margin-bottom: 14px; }
.im-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.im-map .field select { height: 38px; width: 100%; }
.im-sample { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.im-sample table { font-size: 12px; } .im-sample th, .im-sample td { padding: 6px 10px; white-space: nowrap; text-align: left; }
.im-sample th { color: var(--muted); }
.im-prog { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 13.5px; }
.im-bar { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.im-bar b { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.im-more { margin: 4px 2px; }
.im-items { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; padding-right: 4px; }
.im-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.im-item input { width: 18px; height: 18px; flex: none; }
.im-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.im-item small { color: var(--muted); } .im-item .im-ch { color: var(--accent); }
.im-item.same { opacity: .7; }
.st.im-st-new { background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.st.im-st-changed { background: rgba(245, 166, 35, .18); color: #b7791f; white-space: nowrap; }
.st.im-st-same { white-space: nowrap; }
.im-all { height: 28px; font-size: 12px; margin-left: 8px; }
.im-opts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.im-foot { margin-top: 16px; justify-content: flex-end; gap: 10px; }
.im-done { text-align: center; padding: 20px 0 8px; } .im-done > div .ic { width: 44px; height: 44px; color: var(--ok); } .ar-settings .form { margin-top: 14px; }
.ar-next { margin: 4px 0 14px; }
.ar-pub { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-right: 6px; }
.btn.pulse { box-shadow: 0 0 0 4px var(--accent-soft); }
.ar-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .ar-edit { grid-template-columns: 1fr; } }
.ar-side { display: flex; flex-direction: column; gap: 18px; }
/* the photo scrolls with the page (no longer pinned: the page felt stuck); zoomed it scrolls inside its frame */
.ar-zoomable { overflow: auto; max-height: 78vh; overscroll-behavior: contain; }
.ar-zoomable.zoomed { cursor: grab; }
.ar-zoomable.zoomed .ar-photo { max-width: none; margin: 0; }
.ar-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ar-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); padding: 0; }
.ar-swatches button.active { box-shadow: 0 0 0 3px var(--accent); border-color: var(--bg2); }
.ar-stage { background: var(--card2); border-radius: 10px; padding: 14px; user-select: none; touch-action: none; }
.ar-stage[data-tool=rect], .ar-stage[data-tool=ellipse] { cursor: crosshair; }
.ar-photo { position: relative; margin: 0 auto; max-width: 620px; }
.ar-photo img { display: block; width: 100%; pointer-events: none; }
.ar-nophoto { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); border: 2px dashed var(--line2); border-radius: 10px; }
.ar-nophoto .ic { width: 40px; height: 40px; }
.ar-zone { position: absolute; border: 2px dashed var(--accent); background: rgba(31,111,235,.12); cursor: move; display: grid; place-items: center; }
.ar-zone.ellipse { border-radius: 50%; }
.ar-zone.sel { border-style: solid; background: rgba(31,111,235,.2); }
.ar-zone span { font-size: 12px; font-weight: 700; color: #fff; background: rgba(31,111,235,.9); padding: 2px 8px; border-radius: 999px; text-align: center;
  line-height: 1.3; pointer-events: none; white-space: nowrap; }
.ar-zone small { display: block; font-weight: 500; font-size: 11px; }
.ar-zone i { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; }
.ar-zone i[data-h=nw] { left: -8px; top: -8px; cursor: nwse-resize; } .ar-zone i[data-h=se] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.ar-zone i[data-h=ne] { right: -8px; top: -8px; cursor: nesw-resize; } .ar-zone i[data-h=sw] { left: -8px; bottom: -8px; cursor: nesw-resize; }
/* side handles: stretch or squash in one direction (round → oval) */
.ar-zone i[data-h=n], .ar-zone i[data-h=s] { left: 50%; margin-left: -7px; width: 14px; height: 10px; border-radius: 5px; cursor: ns-resize; }
.ar-zone i[data-h=n] { top: -6px; } .ar-zone i[data-h=s] { bottom: -6px; }
.ar-zone i[data-h=e], .ar-zone i[data-h=w] { top: 50%; margin-top: -7px; width: 10px; height: 14px; border-radius: 5px; cursor: ew-resize; }
.ar-zone i[data-h=e] { right: -6px; } .ar-zone i[data-h=w] { left: -6px; }
.ar-rows { display: flex; flex-direction: column; gap: 8px; }
.ar-rowline { display: flex; gap: 8px; align-items: center; }
.ar-rowline input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line2); border-radius: 8px; padding: 3px; background: var(--bg2); flex: none; }
.ar-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); }
.ar-input:focus { outline: none; border-color: var(--accent); }
.chip button { border: 0; background: none; padding: 0; margin-left: 2px; color: var(--muted); display: inline-grid; place-items: center; }
.chip button .ic { width: 12px; height: 12px; color: inherit; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---- Production Hub → Aufträge --------------------------------------------------------------- */
.od-search { width: 320px; }
.od-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.od-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); font-weight: 600; }
.od-tab span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--card2); font-size: 12px; display: grid; place-items: center; }
.od-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.od-tab.active span { background: rgba(255,255,255,.25); }
.od-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent); }
.od-table tbody tr { cursor: pointer; }
.od-table td { height: 60px; }
.od-check { width: 40px; } .od-check input { width: 18px; height: 18px; }
.od-thumb { width: 60px; } .od-thumb img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--card2); display: block; }
.od-empty { text-align: center; color: var(--muted); height: 120px !important; }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card2); }
.st-neu { background: #1f6feb; color: #fff; }
.st-paid { background: rgba(46, 160, 67, .15); color: var(--ok); }
.st-unpaid { background: rgba(245, 166, 35, .18); color: #b7791f; }
.st-in_arbeit { background: #f5a524; color: #1c1300; }
.st-fertig { background: #2f9e44; color: #fff; }
.st-kontrollieren { background: #e03131; color: #fff; }
.st-nicht_fertig { background: #ffe8b8; color: #8a5300; }
.st.st-work { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.st.st-work .ic { width: 14px; height: 14px; }
.od-worklast { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.od-workbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.od-workbar .ic { width: 22px; height: 22px; flex: none; color: var(--muted); }
.od-workbar span { flex: 1; }
.od-workbar.live { background: var(--accent-soft); border-color: var(--accent); } .od-workbar.live .ic { color: var(--accent); }
.od-workbar.problem { background: rgba(224, 49, 49, .1); border-color: #e03131; } .od-workbar.problem .ic { color: #e03131; }
.od-mat { width: 100%; max-width: 280px; }
.od-machine { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; color: var(--muted); }
/* Verwaltung → Material & Parameter, Stationen */
.mt-list { display: grid; gap: 14px; }
.mt-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.mt-head .mt-name { font-size: 17px; font-weight: 700; height: 44px; }
.mt-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mt-fields .mt-note { grid-column: 1 / -1; }
.st-steps { margin: 12px 0; padding-left: 20px; display: grid; gap: 4px; }
.st-people { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.st-people li { display: flex; align-items: center; gap: 8px; } .st-people .ic { width: 16px; height: 16px; color: var(--ok); }
.st-table td { vertical-align: middle; } .st-table .ar-input { max-width: 260px; }
.st-pin-dlg { max-width: 420px; } .st-pin-in { font-size: 26px; letter-spacing: .3em; text-align: center; height: 56px; margin: 12px 0; width: 100%; }
.st-abgeholt { background: var(--card2); color: var(--muted); }
.st-storniert { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
h1 .st { vertical-align: middle; font-size: 14px; margin-left: 8px; }
.od-flow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.od-step { height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-weight: 700; font-size: 15px; }
.od-step.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.od-step.cancel { margin-left: auto; color: var(--bad); display: inline-flex; align-items: center; gap: 8px; }
.od-step.cancel .ic { width: 18px; height: 18px; }
.od-step.cancel.active { background: var(--bad); border-color: var(--bad); color: #fff; cursor: default; }
.od-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .od-detail { grid-template-columns: 1fr; } }
.od-parts, .od-side { display: flex; flex-direction: column; gap: 18px; }
.od-part h2 .muted { font-weight: 500; font-size: 14px; }
.od-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.od-pics a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.od-pics img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.od-pics .file img { background: repeating-conic-gradient(#e7e9ee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.od-files, .od-hand { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.od-files .btn { height: 36px; font-size: 14px; }
.od-dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; }
.od-dl dt { color: var(--muted); } .od-dl dd { margin: 0; }
.od-note { width: 100%; min-height: 90px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; resize: vertical; }
.od-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.od-history li { display: flex; flex-direction: column; border-left: 3px solid var(--accent-soft); padding-left: 10px; }
.od-history span { color: var(--muted); font-size: 13px; }
.od-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.app.collapsed .od-badge { position: absolute; top: 6px; right: 12px; min-width: 18px; height: 18px; font-size: 11px; }
.hub-toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 12px 40px rgba(10,20,40,.25);
  transform: translateY(140%); transition: transform .25s; font-weight: 600; }
.hub-toast.show { transform: none; }
.hub-toast .ic { color: var(--accent); }

/* ---- Production Hub → Tools ------------------------------------------------------------- */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tl-tile { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; color: var(--text); cursor: pointer; }
.tl-tile:hover { border-color: var(--accent); }
.tl-tile b { font-size: 17px; }
.tl-tile .sub { margin: 0; }
/* work screens (rule A): the view left, the settings panel right as folding cards; phone: view first, panel below */
.tl-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); gap: 18px; align-items: start; }
.tl-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-panel > .card { padding: 18px; }
.tl-panel > .card > .fold-head, .tl-panel > .card > h2 { margin: 0; font-size: 16px; }
.tl-panel > .btn.primary { justify-content: center; }
.tl-panel .tl-row3 > .field:has(select) { grid-column: 1 / -1; }   /* long choices get the full panel width */
.tl-no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; }
@media (max-width: 900px) { .tl-work { grid-template-columns: 1fr; } .tl-out { position: static; } }
.tl-opts { display: flex; flex-direction: column; gap: 16px; }
.tl-opts > .btn.primary { align-self: flex-start; }
.tl-out { position: sticky; top: 16px; min-width: 0; }
.tl-work > .tl-out { min-height: 320px; }   /* the view area stays a view even before a file is there */
.tl-h3 { font-size: 15px; margin: 4px 0 -6px; }
.tl-tiny { margin: -8px 0 0; font-size: 13px; }
.tl-wait { text-align: center; padding: 40px 0; }
.tl-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line2); border-radius: 12px;
  background: var(--card2); cursor: pointer; text-align: center; }
.tl-drop:hover, .tl-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.tl-drop .ic { width: 28px; height: 28px; color: var(--accent); }
.tl-drop .sub { margin: 0; font-size: 13px; }
.tl-files { display: flex; flex-direction: column; gap: 6px; margin-top: -8px; }
.tl-files:empty { display: none; }
.tl-file { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.tl-file > .ic { color: var(--accent); }
.tl-file .icon-btn { width: 30px; height: 30px; }
.tl-file .icon-btn:disabled { opacity: .3; }
.tl-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tl-seg { display: flex; flex-wrap: wrap; align-self: flex-start; }
.tl-seg button { height: 34px; padding: 0 11px; }
.tl-row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tl-form { gap: 12px; }
.tl-opts .field textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); resize: vertical; }
.tl-unit { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg2); overflow: hidden; }
.tl-unit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .tl-unit input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: none; }
.tl-unit span { padding: 0 10px; color: var(--muted); font-size: 13px; }
.field input[type=range] { padding: 0; border: 0; background: none; }
.tl-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.tl-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.tl-preview { display: grid; place-items: center; padding: 14px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 14px;
  background: repeating-conic-gradient(var(--card2) 0 25%, var(--bg2) 0 50%) 0 0 / 18px 18px; }
.tl-preview img { max-width: 100%; max-height: 360px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.tl-preview.small { margin: 0; padding: 8px; width: 170px; flex: none; }
.tl-preview.small img { max-height: 170px; }
.tl-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.msg.warn { background: rgba(255,176,32,.14); color: var(--text); }
.tl-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-dl .btn small { opacity: .7; font-weight: 400; }
.tl-check-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.tl-table { border-collapse: collapse; flex: 1; min-width: 240px; }
.tl-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tl-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 12px; }
.tl-fmt { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); }
.tl-fmt b { font-size: 16px; }
.tl-fmt span { font-size: 13px; font-weight: 600; }
.tl-fmt small { color: var(--muted); font-size: 12px; }
.tl-fmt.ok { background: rgba(52,199,89,.12); } .tl-fmt.ok span { color: var(--ok-text); }
.tl-fmt.warn { background: rgba(255,176,32,.14); } .tl-fmt.warn span { color: var(--warn); }
.tl-fmt.bad { background: rgba(255,90,82,.10); } .tl-fmt.bad span { color: var(--err-text); }
.tl-conv { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.tl-conv h2 { margin: 0; }
.tl-swatch { height: 26px; border-radius: 8px; border: 1px solid var(--line); }
.tl-calc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--card2); }
.tl-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-big b { font-size: 36px; line-height: 1; color: var(--accent); }
.tl-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.tl-sum:empty { display: none; }
.tl-sum div { display: flex; flex-direction: column; }
.tl-sum b { font-size: 18px; }
.tl-sheet { width: 100%; max-height: 520px; display: block; margin-bottom: 14px; }
.tl-paper { fill: var(--bg2); stroke: var(--line2); stroke-width: 1; }
.tl-margin { fill: none; stroke: var(--line2); stroke-width: .6; stroke-dasharray: 3 3; }
.tl-item { fill: var(--accent-soft); stroke: var(--accent); stroke-width: .8; }
.ic.spin { animation: tl-spin 1s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }

/* ---- Production Hub → Aufgaben ---------------------------------------------------------- */
.tk-add { padding: 14px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.tk-add-row { display: flex; align-items: center; gap: 12px; }
.tk-plus .ic { color: var(--accent); width: 22px; height: 22px; }
#tkNew { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font-size: 17px; outline: none; }
.tk-add-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.tk-add-opts .btn.primary { margin-left: auto; }
.tk-due button { height: 32px; padding: 0 12px; }
.tk-select { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); }
.tk-lbl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.tk-flag { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--bg2); color: var(--muted); font-weight: 600; }
.tk-flag.on { border-color: var(--warn); color: var(--text); background: rgba(255,176,32,.14); }
.tk-flag.on .ic, .tk-star.on .ic { color: var(--warn); fill: var(--warn); }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tk-item.important { border-left: 4px solid var(--warn); }
.tk-item.open { border-color: var(--accent); }
.tk-item.fresh { animation: tk-fresh 1.2s ease; }
@keyframes tk-fresh { from { background: var(--accent-soft); } }
.tk-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.tk-box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); background: none; display: grid; place-items: center; flex: none; padding: 0; }
.tk-box .ic { width: 15px; height: 15px; color: transparent; }
.tk-box:hover { border-color: var(--ok); } .tk-box:hover .ic { color: var(--ok); }
.tk-item.done .tk-box { background: var(--ok); border-color: var(--ok); } .tk-item.done .tk-box .ic { color: #fff; }
.tk-item.done .tk-title { text-decoration: line-through; color: var(--muted); }
.tk-main { flex: 1; min-width: 0; cursor: pointer; }
.tk-title { font-weight: 600; overflow-wrap: anywhere; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tk-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.tk-meta .ic { width: 14px; height: 14px; }
.tk-due-chip.today { color: var(--accent); font-weight: 600; }
.tk-due-chip.late { color: var(--err-text); font-weight: 600; }
.tk-order { text-decoration: none; font-weight: 600; }
.tk-star { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; color: var(--line2); flex: none; }
.tk-star:hover { color: var(--warn); }
.od-tab span.tk-hot { background: var(--bad); color: #fff; }
.tk-edit { padding: 4px 18px 16px 52px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.tk-edit textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); resize: vertical; }
.tk-check-head { display: flex; gap: 10px; align-items: baseline; }
.tk-checklist { display: flex; flex-direction: column; gap: 4px; }
.tk-ci { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 2px; border-radius: 8px; }
.tk-ci input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ok); }
.tk-ci span { flex: 1; }
.tk-ci.done span { text-decoration: line-through; color: var(--muted); }
.tk-ci .icon-btn { width: 28px; height: 28px; opacity: 0; }
.tk-ci:hover .icon-btn { opacity: 1; }
.tk-ci.add .ic { color: var(--accent); }
.tk-ci.add input { flex: 1; height: 36px; border: 0; border-bottom: 1px dashed var(--line2); background: none; outline: none; }
.tk-edit-foot { display: flex; align-items: center; gap: 10px; }
.tk-edit-foot .muted { margin-right: auto; font-size: 13px; }
.tk-empty { text-align: center; }
.tk-mini { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tk-mini .tk-item { box-shadow: none; }
.tk-mini .tk-row { padding: 6px 10px; }
.tk-mini .tk-main { cursor: default; }
@media (max-width: 700px) { .tk-add-opts .btn.primary { margin-left: 0; } .tk-edit { padding-left: 18px; } }

/* ---- Club Hub ---------------------------------------------------------------------------- */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.cl-card { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.cl-card:hover { border-color: var(--accent); }
.cl-card-top { position: relative; height: 170px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c1) 70%, #fff) 0%, var(--c1) 55%, color-mix(in srgb, var(--c1) 60%, #000) 100%);
  display: grid; place-items: center; overflow: hidden; }
.cl-card-top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--c2) 0 50%, var(--c3) 50%); }
.cl-card-shirt { height: 150px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); transform: translateY(14px); }
.cl-crest { position: absolute; left: 14px; top: 14px; width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); overflow: hidden; color: #111; font-weight: 800; }
.cl-crest img { width: 86%; height: 86%; object-fit: contain; }
.cl-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cl-card-body .sub { margin: 0; }
.cl-empty { text-align: center; }
.cl-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-colors button { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line2); padding: 0; transition: transform .12s; }
.cl-colors button:hover { transform: scale(1.08); }
/* the chosen circle: a ring around it and a tick in readable contrast */
.cl-colors button.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--primary); transform: scale(1.08); }
.cl-colors button.on::after { content: ""; position: absolute; inset: 0; background: var(--ink, #fff); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/18px no-repeat; }
.cl-own { display: inline-flex; border-radius: 10px; padding: 2px; }
.cl-own.on { box-shadow: 0 0 0 2px var(--primary); }
.cl-colors input[type=color] { width: 46px; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; }
.cl-hex { width: 96px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); font: 600 13.5px/1 ui-monospace, Consolas, monospace; text-transform: lowercase; }
.cl-hex.bad { border-color: #e5484d; }
.cl-second-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cl-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.cl-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.cl-second-pick.off { opacity: .35; pointer-events: none; }
.cl-hero-img { width: 128px !important; aspect-ratio: 16 / 10; height: auto !important; }
.cl-hero-img img { object-fit: cover !important; }
.cl-design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cl-design { grid-template-columns: minmax(0, 1fr); } .cl-preview { position: static; } }
.cl-side { display: flex; flex-direction: column; gap: 18px; }
.cl-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cl-logo-img { width: 72px; height: 72px; border-radius: 14px; border: 1px dashed var(--line2); display: grid; place-items: center; background: var(--card2); overflow: hidden; }
.cl-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-color-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cl-color { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; cursor: pointer; }
.cl-color input { width: 100%; height: 54px; border: 1px solid var(--line2); border-radius: 12px; padding: 3px; background: var(--bg2); cursor: pointer; }
.cl-color.sm input { height: 34px; }
.cl-color.sm { font-size: 11.5px; }
.cl-flex { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cl-flex-row { display: flex; gap: 8px; align-items: center; }
.cl-flex-row input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line2); border-radius: 8px; }
.cl-flex-row input:not([type]) { flex: 1; height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 10px; }
.cl-area { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); resize: vertical; }
.cl-preview { position: sticky; top: 12px; padding: 14px; }
.cl-preview-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cl-preview-head h2 { margin: 0; }
.cl-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); height: min(78vh, 820px); background: #0b0f17; }
.cl-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cl-items { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cl-items { grid-template-columns: minmax(0, 1fr); } }
.cl-plist { display: flex; flex-direction: column; gap: 8px; }
.cl-pitem { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; color: var(--text); }
.cl-pitem.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-pitem { position: relative; }
.cl-pick-tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; }
.cl-pick-tick .ic { width: 14px; height: 14px; color: #fff; opacity: 0; }
.cl-pitem.active .cl-pick-tick { background: var(--accent); border-color: var(--accent); } .cl-pitem.active .cl-pick-tick .ic { opacity: 1; }
.cl-from { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 16px; font-size: 14px; }
.cl-from.changed { border-color: var(--accent); background: var(--accent-soft); }
.cl-from.changed > span:nth-child(2) { flex: 1 1 320px; }
.cl-from .ic { width: 20px; height: 20px; color: var(--accent); }
.cl-pitem img { width: 54px; height: 54px; object-fit: contain; background: var(--card2); border-radius: 8px; }
.cl-pitem small { display: block; color: var(--muted); }
.cl-padd { display: flex; gap: 6px; }
.cl-padd .btn { flex: 1; padding: 0 10px; }
.cl-padd-btn { width: 100%; justify-content: center; }
.cl-pick h3 { font-size: 15px; margin: 18px 0 10px; }
.cl-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cl-pick-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 12px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card); color: var(--text); text-align: center; cursor: pointer; }
.cl-pick-tile:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-pick-tile img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; background: var(--card2); border-radius: 10px; }
.cl-pick-tile .sub { margin: 0; font-size: 12.5px; }
.cl-pick-retail { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cl-pick-noimg { width: 54px; height: 54px; border-radius: 8px; background: var(--card2); flex: none; }
.cl-ebar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cl-pname-wrap { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-pname-wrap > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cl-pname { width: 100%; font-size: 22px; font-weight: 800; color: var(--text); padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card2); outline: none; }
.cl-pname:hover { border-color: var(--line2); }
.cl-pname:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg2); }
.cl-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 18px; align-items: start; }
@media (max-width: 1200px) { .cl-edit { grid-template-columns: 1fr; } .cl-edit .cl-stage-card { position: static; } }
.cl-stage-card { position: sticky; top: 12px; }
.cl-add .btn { height: 36px; padding: 0 12px; }
.cl-stage { background: radial-gradient(circle at 50% 30%, #f6f7f9, #dfe3ea); }
:root:not([data-theme=light]) .cl-stage { background: radial-gradient(circle at 50% 30%, #2a303a, #171b22); }
.cl-photo { max-width: 560px; }
.cl-zone { border-color: rgba(31,111,235,.75); background: rgba(31,111,235,.06); }
.cl-zone.sel { background: rgba(31,111,235,.12); }
.ar-zone b[data-rot] { position: absolute; left: 50%; bottom: -30px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: grab; }
.ar-zone b[data-rot]::before { content: ''; position: absolute; left: 50%; bottom: 14px; width: 2px; height: 14px; margin-left: -1px; background: var(--accent); }
.cl-rot { align-items: center; }
.cl-zone.multi { outline: 2px solid rgba(31,111,235,.9); outline-offset: 2px; }
.cl-zone.logo img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cl-zone .cl-sample { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cl-zone em { position: absolute; left: 0; top: -22px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(31,111,235,.92);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.cl-zone:hover em, .cl-zone.sel em { opacity: 1; }
.cl-zone span { pointer-events: none; }
.cl-zsample { height: 110px; border-radius: 10px; margin-bottom: 14px; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #1d2430 0 10px, #222b38 10px 20px); }
.cl-zsample svg { width: 100%; height: 100%; }
.cl-zlist { display: flex; flex-direction: column; gap: 6px; }
.cl-zlist button { display: flex; flex-direction: column; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--text); }
.cl-zlist button:hover { border-color: var(--accent); }
.cl-zlist span { font-size: 12.5px; color: var(--muted); }
.cl-var { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.cl-var.active { border-color: var(--accent); }
.cl-var .row { flex-wrap: nowrap; }
.cl-var-cols { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl-var-photos { flex-wrap: wrap !important; }
.cl-var-photos .btn { height: 34px; padding: 0 10px; font-size: 13px; }
.cl-sizes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cl-sgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cl-sgroup > span { width: 86px; font-size: 13px; font-weight: 600; }
.cl-size { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.cl-size button { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; }
.cl-qr { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.cl-qr img { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }
.cl-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cl-font { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); color: var(--text); }
.cl-font img { width: 110px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.cl-font span { flex: 1; min-width: 0; }
.cl-font small { display: block; color: var(--muted); }
.cl-order { display: flex; flex-direction: column; gap: 18px; }
.cl-otable { overflow-x: auto; }
.cl-otable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cl-otable th, .cl-otable td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cl-otable tfoot td { border-bottom: 0; }
.cl-mocks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cl-mocks img { width: 120px; height: 120px; object-fit: contain; background: var(--card2); border-radius: 10px; border: 1px solid var(--line); }
.cl-plot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cl-plot-head h2 { margin: 0; }
.cl-plot { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cl-plot:first-child { border-top: 0; }
.cl-plot-img { background: var(--card2); border-radius: 10px; padding: 8px; max-height: 260px; overflow: auto; }
.cl-plot-img img { width: 100%; display: block; border-radius: 4px; }
.cl-plot-info { display: flex; flex-direction: column; gap: 8px; }
.cl-plot-info b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cl-plot-info b i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); }
.cl-plot-info .sub { margin: 0; }

/* Smoothdesk admin link (platform admins only) */
.nav a.admin-link { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 12px; color: var(--accent); }
.text-link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 4px 0; cursor: pointer; align-self: center; }
.text-link:hover { text-decoration: underline; }
/* order: approvals and versions */
.od-appr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.od-appr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.od-appr-st { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.od-appr.ok { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.od-appr.ok .od-appr-st { color: var(--ok); border-color: var(--ok); }
.od-appr.again { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.od-appr.again .od-appr-st { color: var(--warn); border-color: var(--warn); }
.od-appr .sub { margin: 0; font-size: 12.5px; }
.od-appr-do { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.od-appr-do .tk-select { flex: 1; min-width: 0; }
.od-appr .link { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.od-newest { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; }
.od-ver-group h3 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
.od-ver { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.od-ver:first-of-type { border-top: 0; }
.od-ver-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }
.od-ver.current .od-ver-no { background: var(--accent); color: #fff; }
.od-ver .sub { display: block; margin: 2px 0 0; font-size: 12.5px; }
.od-ver-cur { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.od-ver-files { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; }

/* ---- Tools → Zeiterfassung ---------------------------------------------------------------- */
.tt-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.tt-watch { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tt-big { font-size: 64px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.1; }
.tt-watch.running .tt-big { color: var(--accent); }
.tt-watch.paused .tt-big { color: var(--warn); }
.tt-state { color: var(--muted); font-weight: 600; margin-top: -6px; }
.tt-note { width: 100%; max-width: 440px; text-align: left; }
.tt-note em { font-style: normal; font-weight: 500; }
.tt-actions { display: flex; gap: 10px; }
.btn.big { height: 50px; padding: 0 30px; font-size: 16px; }
.tt-sums { display: flex; flex-direction: column; gap: 10px; }
.tt-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tt-sum b { font-size: 22px; font-variant-numeric: tabular-nums; }
.tt-sums .hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.tt-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tt-table td.num, .tt-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tt-table .tt-day td { height: 38px; font-weight: 700; background: var(--card2); }
.tt-table .tt-acts { width: 1%; white-space: nowrap; }
.tt-table .tt-acts .icon-btn { display: inline-grid; width: 32px; height: 32px; }
.tt-table .tt-edited { font-size: 12.5px; }
.tt-table .tt-edit input { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); width: 100%; }
.tt-table .tt-edit #ttEditDur { width: 80px; text-align: right; }
@media (max-width: 900px) { .tt-top { grid-template-columns: 1fr; } .tt-big { font-size: 48px; } }

/* Club Hub: delete a club */
.cl-card .row .cl-del { margin-left: auto; }
.cl-card .row .cl-del:hover { color: var(--bad); border-color: var(--bad); }
.cl-danger h2 .ic { color: var(--bad); }

/* Apps: prices per month or year, the summary of the bookings */
.price-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.bill { max-width: 560px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.bill h2 { margin-bottom: 6px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; }
.bill-row small { font-size: 12px; }
.bill-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 10px; }
.bill-total span { display: flex; flex-direction: column; font-weight: 700; }
.bill-total small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.bill-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.bill-note { margin: 6px 0 0; font-size: 13px; }
.bill-hint { margin-top: 8px; }
@media (max-width: 600px) { .page-head #billPeriod { width: 100%; } .page-head #billPeriod button { flex: 1; justify-content: center; } }
.app-card-head { min-height: 0; align-items: center; }
.app-price { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; min-height: 28px; }
.app-price .price { font-size: 20px; }

/* Bildablage: picture on top in its own field (never over the text), name and details below, actions in one row */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lib-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lib-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lib-pick { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--card); border-radius: 6px; padding: 3px 5px; display: flex; }
.lib-pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.lib-img { position: relative; height: 170px; flex: none; overflow: hidden; border-radius: 11px 11px 0 0; cursor: zoom-in; border: 0; padding: 0; width: 100%;
  background: repeating-conic-gradient(#e4e6ea 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.lib-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.lib-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-top: 1px solid var(--line); }
.lib-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lib-body .sub { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.lib-actions .btn { height: 34px; padding: 0 10px; flex: 1 1 100%; justify-content: center; }   /* "Öffnen" on its own row, never squeezed */
.lib-actions .icon-btn { flex: 1 1 0; width: auto; height: 34px; }                              /* the four below, evenly spread */
.lib-actions [data-tip]:last-child:hover::before { left: auto; right: 0; transform: none; }   /* the last tip stays inside the card */
/* Großansicht */
.lib-view { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: rgba(8, 10, 14, .92); }
.lib-view-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; }
.lib-view-head b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-view-head span { color: #aab2c0; font-size: 13px; white-space: nowrap; }
.lib-view-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-view-head .btn { height: 36px; }
.lib-view-img { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 56px 20px; position: relative; }
.lib-view-img img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; border-radius: 6px;
  background: repeating-conic-gradient(#d9dce1 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.lib-view-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; cursor: pointer; }
.lib-view-nav:hover { background: rgba(255, 255, 255, .26); }
.lib-view-nav.prev { left: 8px; } .lib-view-nav.next { right: 8px; }
@media (max-width: 700px) { .lib-view-img { padding: 0 8px 12px; } .lib-view-nav { top: auto; bottom: 18px; transform: none; } }
.lib-selbar { display: inline-flex; align-items: center; gap: 8px; padding-right: 8px; margin-right: 4px; border-right: 1px solid var(--line); }
.lib-selbar.hidden { display: none; }
.lib-selbar .sub { white-space: nowrap; font-weight: 600; }
/* „Beta“ next to an app that is still in development (Stick Hub) */
.beta { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 17px;
  vertical-align: 1px; color: #b26a00; background: color-mix(in srgb, #f0a020 22%, transparent); border: 1px solid color-mix(in srgb, #f0a020 55%, transparent); }

/* Kalkulation */
.kc-lines { display: flex; flex-direction: column; gap: 10px; }
.kc-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.kc-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.kc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.kc-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kc-row { display: flex; gap: 8px; align-items: flex-end; }
.kc-row .kc-name { flex: 1; }
.kc-row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kc-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kc-fields .field input, .kc-fields .field select { min-width: 0; }
.kc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kc-table th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.kc-table td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kc-table th:first-child, .kc-table td:first-child { text-align: left; }
.kc-sum { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
.kc-sum > div { display: flex; justify-content: space-between; }
.kc-total { font-size: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.kc-set { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.kc-set h3 { margin: 0; font-size: 15px; }
#kcFormats { display: flex; flex-direction: column; gap: 6px; }
.kc-format, .kc-format-head { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 36px; gap: 6px; align-items: center; }
.kc-format-head { order: -1; font-size: 12px; }
.kc-format input { height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 8px; min-width: 0; }
@media (max-width: 700px) { .kc-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-work.kc-work { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
.kc-work .kc-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .tl-work.kc-work { grid-template-columns: 1fr; } }

/* Mein Konto */
.ac-sessions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ac-session { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.user-box a.who { color: inherit; text-decoration: none; min-width: 0; }
.user-box a.who:hover b { text-decoration: underline; }

/* Produktionsdaten: neu erstellen mit Auswahl, frühere Stände klein darunter */
.cl-replot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.cl-replot-row { display: flex; align-items: center; gap: 8px; }
.cl-replot-row > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cl-replot .btn.primary { margin-left: auto; }
.cl-hist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cl-hist h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cl-hist-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cl-hist-what { display: flex; flex-direction: column; min-width: 170px; }
.cl-hist-what b { font-size: 13.5px; }
.cl-hist-what .sub { margin: 0; font-size: 12px; }
.cl-hist-files { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-hist .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; }
.cl-hist .chip:hover { border-color: var(--primary); }
.cl-hist .chip i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line2); }

/* 7-Tage-Test */
.trial-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding: 8px 16px;
  background: var(--accent-soft); color: var(--info-text); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.trial-bar.hidden { display: none; }
.trial-bar a { color: inherit; font-weight: 700; }
.trial-book { display: flex; flex-direction: column; gap: 8px; }
.trial-book .btn { justify-content: space-between; }
.trial-book .btn small { font-weight: 500; opacity: .8; }
.btn.ghost { background: transparent; }

/* Partner-Edition und Partnerbereich */
.brand img.partner { width: auto; max-width: 84px; height: 36px; object-fit: contain; border-radius: 0; background: none; }
.bill-row.partner-off span:first-child small { display: block; color: var(--muted); font-size: 12px; }
.bill-row.partner-off span:last-child { color: var(--ok, #1a9a5a); font-weight: 700; }
.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pt-stat { display: flex; flex-direction: column; gap: 4px; }
.pt-stat b { font-size: 26px; }
.pt-stat span { color: var(--muted); font-size: 13px; }
.pt-stat.accent b { color: var(--primary); }
.pt-link { display: flex; gap: 8px; }
.pt-link input { flex: 1; min-width: 0; height: 40px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 10px; }

/* E-commerce Hub: Commerce-Tarife on the app card */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 2px; }
.tier { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 8px 9px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text); font: inherit; cursor: pointer; }
.tier b { font-size: 13.5px; }
.tier span { font-weight: 700; font-variant-numeric: tabular-nums; }
.tier small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.tier.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tier:disabled { cursor: default; }
.tier-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.tier-use { margin-top: 6px; }
.tier-use small { font-size: 12.5px; color: var(--muted); }
.tier-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 3px; }
.tier-bar span { display: block; height: 100%; background: var(--accent); }
.tier-use.warn .tier-bar span { background: #e0a100; }
.tier-use.full .tier-bar span { background: #d64545; }
.tier-use.full small { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }

/* ---- Club / Business Hub: editor bar, zoom, templates, layouts, shop packages, quick start ---- */
.cl-ebar-gap { flex: 1; }
.cl-tplcheck { padding: 6px 10px; border-radius: 999px; background: var(--card2); }
.cl-ebar .icon-btn:disabled { opacity: .35; cursor: default; }
.cl-zoom { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.cl-zoom .icon-btn { font-size: 18px; font-weight: 700; }
.cl-zoomv { min-width: 70px; height: 34px; justify-content: center; }
.cl-stage { overflow: auto; max-height: 78vh; }
.cl-stage.zoomed .ar-photo { max-width: none; margin: 0; }
.cl-slug { margin-top: 14px; }
.cl-slug .row { flex-wrap: nowrap; align-items: center; gap: 6px; }
.cl-slug .row input { flex: 1; min-width: 120px; }
.cl-dup { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cl-dup .btn { justify-content: flex-start; }
.cl-layouts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.cl-layout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cl-layout > div { flex: 1; min-width: 0; }
.cl-layout .sub { display: block; margin: 2px 0 0; }
.cl-newcard { width: min(760px, 96vw); max-height: 92vh; overflow-y: auto; }
.cl-qlogos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cl-qlogo { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px dashed var(--line2); border-radius: 12px; cursor: pointer; flex: 1 1 240px; }
.cl-qlogo:hover { border-color: var(--accent); }
.cl-qlogo .cl-logo-img { width: 56px; height: 56px; }
.cl-qlogo small { display: block; margin: 0; }
.cl-qmode { margin-bottom: 8px; }
.cl-qpkgs { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-qpkg { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-align: left; }
.cl-qpkg.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-qpkg small { margin: 0; }
.cl-qtpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cl-qtpl { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; font-size: 13.5px; position: relative; }
.cl-qtpl input { position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; accent-color: var(--primary); }
.cl-qtpl.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-qtpl img { width: 84px; height: 84px; object-fit: contain; background: var(--card2); border-radius: 8px; }
.cl-tplhint { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.cl-tplhint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.cl-tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cl-tplcard { display: flex; flex-direction: column; gap: 10px; }
.cl-tplcard > img { width: 100%; height: 180px; object-fit: contain; background: var(--card2); border-radius: 10px; }
.cl-tplcard .sub { display: block; margin: 2px 0 0; }
.cl-tplcard .row { margin-top: auto; }
.cl-laylist { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.cl-pkcard { display: flex; flex-direction: column; gap: 12px; }
.cl-pkcard .sub { display: block; margin: 2px 0 0; }
.cl-pkthumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-pkthumbs > span { display: flex; flex-direction: column; align-items: center; width: 74px; font-size: 11.5px; color: var(--muted); text-align: center; }
.cl-pkthumbs img { width: 64px; height: 64px; object-fit: contain; background: var(--card2); border-radius: 8px; }
.cl-pkcard .row { margin-top: auto; flex-wrap: wrap; }
.ct-range { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.ct-range > span:first-child { display: flex; justify-content: space-between; }
.ct-range > span:first-child b { color: var(--text); }
.ct-range input[type=range] { width: 100%; accent-color: var(--primary); }
.ct-range .scale { display: flex; justify-content: space-between; font-size: 11.5px; }

/* tabs shrink like browser tabs; the title is cut, × stays; what does not fit goes into „+n“ */
.tab > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tab .tab-x { flex: none; }
.tab.folded { display: none; }
.tab-more { flex: none; height: 30px; min-width: 38px; margin: 0 0 4px 2px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.tab-more:hover { border-color: var(--accent); color: var(--accent); }
.tab-menu { position: fixed; z-index: 60; min-width: 220px; max-width: 320px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; }
.tab-menu-row { display: flex; align-items: center; gap: 4px; }
.tab-menu-row [data-go] { flex: 1; text-align: left; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 8px; font: inherit;
  font-size: 14px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-menu-row [data-go]:hover { background: var(--card2); }
/* „Apps & Buchung“: how many more apps there are */
.nav-more { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; }

/* Artikel (Club / Business): all shop articles, grouped by shop */
.sa-search { min-width: 240px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); padding: 0 12px; }
.sa-card { cursor: pointer; }
.sa-card:hover, .sa-card:focus-visible { border-color: var(--accent); outline: none; }
.sa-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* registration: AGB and § 14 BGB (required ticks) */
.auth-card label.check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.auth-card label.check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.auth-card label.check span { flex: 1; min-width: 0; }
.auth-card label.check a { color: var(--accent); }
.auth-card label.check.invalid span { color: var(--bad); }
.auth-card label.check .field-err { flex-basis: 100%; padding-left: 28px; }

.cl-logo-img.cl-fav img { width: 48px; height: 48px; object-fit: contain; }

/* Club / Business Hub: Mitarbeiter & Budget */
.chip.warn { color: var(--warn, #b26a00); border-color: color-mix(in srgb, var(--warn, #b26a00) 35%, var(--line)); }
.seg button .chip { padding: 0 7px; font-size: 12px; margin-left: 2px; }
.grid.bu .card { grid-column: 1 / -1; }
.bu-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bu-grow { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; }
.bu-grow input, .bu .cl-otable select, .bu .cl-otable input, #buFind { height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); min-width: 0; }
.bu-eur { display: flex; align-items: center; gap: 6px; }
.bu-eur input { width: 100%; text-align: right; }
.bu-own { width: 100px; text-align: right; }
.bu-act { white-space: nowrap; text-align: right; }
.bu-act .btn { margin-left: 4px; }
.bu-act .icon-btn { display: inline-grid; vertical-align: middle; margin-left: 4px; }
.bu-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.bu-head h2 { margin: 0; }
@media (max-width: 640px) { .bu-grow { grid-template-columns: minmax(0, 1fr) 100px auto; } .bu-act { white-space: normal; } }
.lg-area { min-height: 120px; font-family: inherit; line-height: 1.45; }
.toggle.is-off { opacity: .55; }

/* Retail Hub: QR code of the terminal link – scan with the iPad in the shop */
.term-qr { display: flex; gap: 18px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.term-qr img { width: 150px; height: 150px; flex: none; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.term-qr b { display: block; margin-bottom: 4px; }
.term-qr .sub { margin: 0 0 10px; }
@media (max-width: 560px) { .term-qr { flex-direction: column; align-items: flex-start; } }
.ar-tiers { display: grid; gap: 8px; }
.ar-tier { display: grid; grid-template-columns: auto 72px auto 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; }
.ar-tier input { width: 100%; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }

/* Einstellungen: the shop's logo for the terminal */
.term-logo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.term-logo-pic { width: 120px; height: 56px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; font-size: 12.5px; }
.term-logo-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* text fields only grow downwards and never out of their card */
textarea { resize: vertical; max-width: 100%; box-sizing: border-box; }
.field textarea { width: 100%; }

/* dashboard widget: the terminal QR code a little smaller */
.term-qr.small { margin-top: 10px; padding-top: 10px; gap: 14px; }
.term-qr.small img { width: 110px; height: 110px; }

/* Aufträge: the archive tab, the „Archiv“ mark and the note with „Rückgängig“ */
.od-tab.od-archive { margin-left: 8px; }
.od-tab.od-archive .ic { width: 16px; height: 16px; }
.st-archiv { background: var(--card2); color: var(--muted); border: 1px dashed var(--line2); }
.od-undo { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px; border-radius: 12px; background: #1d2430; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14.5px; }
.od-undo .btn { background: transparent; color: #8ab4ff; border-color: rgba(255,255,255,.25); }

/* Bildablage: the order a picture belongs to; Aufträge: the pictures of an order */
.lib-order { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft, rgba(61,139,255,.12)); color: var(--accent); text-decoration: none; }
.od-images { display: flex; flex-wrap: wrap; gap: 10px; }
.od-images a { width: 110px; text-decoration: none; color: var(--text); font-size: 12.5px; }
.od-images img { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line);
  background: repeating-conic-gradient(#e4e6ea 0 25%, #fff 0 50%) 0 0 / 12px 12px; display: block; margin-bottom: 4px; }

/* Datei-Check: „Unsere Empfehlung“ */
.tl-use { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.tl-recs { display: grid; gap: 8px; }
.tl-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-rec .btn { flex: none; }

/* live tools: the old result dimmed while the new one is made; Beschnitt: the cut line on the preview */
#tlResult.tl-busy { opacity: .55; transition: opacity .2s; }
.tl-pv-wrap { position: relative; display: inline-block; max-width: 100%; }
.tl-pv-wrap img { display: block; max-width: 100%; }
.tl-trim { position: absolute; border: 1.5px dashed #e11d48; box-shadow: 0 0 0 9999px rgba(255,255,255,.28); pointer-events: none; }
.tl-sizes { text-align: center; margin-top: 6px; }

/* Nutzen & Bogen: numbered steps, quick choices, the usage */
.tl-steps .tl-h3 { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.tl-steps .tl-h3:first-child { margin-top: 0; }
.tl-steps .tl-h3 i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tl-chips button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.tl-chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-usage { color: var(--muted); font-size: 13.5px; margin: -4px 0 8px; }

/* PDF-Werkzeuge: page organiser */
.pd-work { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.pd-tools { display: flex; flex-direction: column; gap: 10px; }
.pd-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-sel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--card2); }
.pd-sel b { width: 100%; font-size: 13px; }
.pd-save { justify-content: center; }
.pd-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 4px 0; }
.pd-more[open] { display: grid; gap: 6px; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pd-page { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 8px 8px 6px; background: var(--card); cursor: grab; user-select: none; }
.pd-page.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.pd-page.over { border-style: dashed; border-color: var(--accent); }
.pd-page.drag { opacity: .4; }
.pd-thumb { height: 150px; display: grid; place-items: center; overflow: hidden; }
.pd-thumb img { max-width: 130px; max-height: 130px; box-shadow: 0 2px 8px rgba(0,0,0,.2); background: #fff; transition: transform .2s; }
.pd-tag { position: absolute; top: 8px; left: 8px; width: 10px; height: 10px; border-radius: 50%; }
.pd-label { font-size: 12.5px; text-align: center; margin-top: 4px; color: var(--muted); }
.pd-label b { color: var(--text); margin-right: 4px; }
.pd-acts { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.pd-acts button { width: 28px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; font-size: 13px; padding: 0; }
.pd-acts button:hover { border-color: var(--accent); }
.pd-big { display: grid; place-items: center; max-height: 70vh; overflow: auto; }
.pd-big img { max-width: min(80vw, 900px); max-height: 66vh; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
@media (max-width: 900px) { .pd-work { grid-template-columns: 1fr; } }

/* Dashboard → Termine */
.cal-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; }
.cal-h small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal-list li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.cal-list .cal-day { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.cal-time { width: 66px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-title { min-width: 0; overflow-wrap: anywhere; }
.cal-title small { display: block; color: var(--muted); font-size: 12px; }
#wCal .btn.ghost { margin-top: 10px; }
.cal-sources { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.cal-sources li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-sources .sub { margin: 0; font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-add { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cal-add .field input { width: 100%; }
.cal-colors { display: flex; gap: 8px; }
.cal-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.cal-color.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.cal-guide { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.cal-guide summary { cursor: pointer; font-weight: 600; }
.cal-guide ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.ik-dialog:has(.cal-add) { max-width: 620px; max-height: 88vh; overflow: auto; }

/* Kalkulation → Herstellkosten */
.kc-costs { margin-bottom: 16px; }
.kc-costs > summary { cursor: pointer; list-style: none; display: grid; gap: 4px; }
.kc-costs > summary::-webkit-details-marker { display: none; }
.kc-costs > summary h2 { margin: 0; }
.kc-costs > summary h2::after { content: ''; margin-left: auto; margin-right: 3px; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.kc-costs[open] > summary h2::after { transform: rotate(-135deg); margin-top: 4px; }
.kc-costs .kc-set { margin-top: 12px; }

/* Einstellungen → Benachrichtigungen: recipients */
.recips { display: grid; gap: 8px; margin-bottom: 8px; }
.recip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.recip input { grid-column: 1 / -1; }
.recip input, .recip select { width: 100%; min-width: 0; }

/* Apps & Buchung: „Dein Paket“ + compact rows */
.pack-card { max-width: none; }
.pack-card .pack-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pack-card .pack-head h2 { margin: 2px 0 4px; font-size: 18px; }
.pack-card .pack-head p { margin: 0; }
.pack-total { text-align: right; display: grid; }
.pack-total b { font-size: 26px; }
.pack-lines { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.pack-lines > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.pack-lines[open] > summary { margin-bottom: 10px; }
.app-rows { overflow: hidden; }
.app-row { border-top: 1px solid var(--line); }
.app-rows > .app-row:first-child { border-top: 0; }
.app-row-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px auto 32px; gap: 12px; align-items: center; padding: 12px 16px; }
.app-row .mod-icon { width: 36px; height: 36px; }
.app-row-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-row-main .sub { margin: 2px 0 0; font-size: 13px; }
.app-row-price { text-align: right; }
.app-row-price .price { font-size: 15px; font-weight: 700; }
.app-row-price .price small, .app-row-price .price-sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.app-row-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.app-row-act .muted { font-size: 12.5px; max-width: 220px; text-align: right; }
.app-more { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.app-more svg { transition: transform .15s; }
.app-row.open .app-more svg { transform: rotate(180deg); }
.app-row-detail { display: none; padding: 0 16px 14px 68px; }
.app-row.open .app-row-detail { display: block; }
.app-row-detail .feat { margin: 0; columns: 2; column-gap: 24px; }
.app-row.dev { opacity: .7; }
.app-rows .app-bundle { border-top: 1px solid var(--line); margin: 0; border-radius: 0; }
.app-sub .app-row-line { padding-left: 44px; }
.app-sub.in-pack .app-row { background: var(--card2); }
.app-sub.in-pack .app-row-line { opacity: .65; }
@media (max-width: 760px) {
  .app-row-line { grid-template-columns: 36px minmax(0, 1fr) 32px; }
  .app-row-price, .app-row-act { grid-column: 2 / 4; text-align: left; justify-content: flex-start; }
  .app-row-price { order: 3; } .app-row-act { order: 4; } .app-more { order: 2; grid-column: 3; grid-row: 1; }
  .app-row-detail { padding-left: 16px; } .app-row-detail .feat { columns: 1; }
  .app-sub .app-row-line { padding-left: 24px; }
  .pack-total { text-align: left; }
}

/* ---- Artikel-Assistent ---- */
.ar-modal.wz > .wz-card { width: min(1100px, 100%); max-height: 94vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.wz-head h2 { margin: 0 0 10px; }
.wz-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.wz-steps span { display: inline-flex; align-items: center; gap: 6px; }
.wz-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: var(--card2); border: 1px solid var(--line); }
.wz-steps span.on { color: var(--text); font-weight: 600; }
.wz-steps span.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.wz-steps span.done i { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.wz-body { flex: 1; overflow: auto; padding: 18px 20px; }
.wz-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.wz-foot .sub { flex: 1; text-align: center; margin: 0; }
.wz-q { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.wz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.wz-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card2); color: var(--text); cursor: pointer; }
.wz-tile:hover, .wz-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.wz-tile img { width: 96px; height: 96px; object-fit: contain; }
.wz-tile-ic { width: 96px; height: 96px; display: grid; place-items: center; color: var(--accent); }
.wz-tile-ic svg { width: 56px; height: 56px; }
.wz-photos { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.wz-photo { position: relative; width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wz-photo img { width: 200px; height: 200px; object-fit: contain; }
.wz-photo .icon-btn { position: absolute; top: 6px; right: 6px; }
.wz-drop { width: 260px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 14px;
  border: 2px dashed var(--line2); border-radius: 14px; cursor: pointer; color: var(--muted); }
.wz-drop:hover, .wz-drop.over { border-color: var(--accent); color: var(--text); }
.wz-drop > [data-icon] svg { width: 34px; height: 34px; }
.wz-areas { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
@media (max-width: 820px) { .wz-areas { grid-template-columns: 1fr; } }
.wz-stagecol { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.wz-hint { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.wz-stage { position: relative; width: 100%; margin: 0 auto; background: #fff; border-radius: 12px; touch-action: none; user-select: none; cursor: crosshair; }
.wz-stage > img { display: block; width: 100%; height: auto; pointer-events: none; border-radius: 12px; }
.wz-stage > div:not(.wz-ask) { position: absolute; inset: 0; }
.wz-box { position: absolute; border: 2px solid #00b386; background: rgba(0,179,134,.08); border-radius: 4px; cursor: move; display: grid; place-items: center; }
.wz-box.sel { border-color: var(--accent); background: rgba(76,141,255,.14); box-shadow: 0 0 0 3px rgba(76,141,255,.3); }
.wz-box.drawing { border-style: dashed; border-color: var(--accent); background: rgba(76,141,255,.12); pointer-events: none; }
.wz-box > img { max-width: 92%; max-height: 92%; object-fit: contain; pointer-events: none; }
.wz-box > b { color: #00b386; font-size: 11px; letter-spacing: .08em; pointer-events: none; }
.ar-modal .cl-pick-wizard { margin-bottom: 14px; }
.wz-more-colours { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wz-more-colours h3 { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.wz-more-colours .sub { margin: 0; }
.wz-more-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-more-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card2); font-size: 13px; }
.wz-more-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line2); }
.wz-more-chip button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.wz-more-chip button .ic, .wz-more-chip button svg { width: 14px; height: 14px; }
.wz-box > svg { width: 94%; height: 90%; pointer-events: none; }
.wz-box > svg text { font-family: Anton, 'Arial Narrow', sans-serif; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.35); }
.wz-box > em { position: absolute; left: -2px; bottom: 100%; margin-bottom: 3px; white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 5px; background: #00b386; color: #fff; pointer-events: none; }
.wz-box > em { display: none; }
.wz-box.zone > em { display: block; }
.wz-box.sel > em, .wz-box:hover > em { display: block; z-index: 2; }
.wz-box.sel > em { background: var(--accent); }
.wz-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: nwse-resize; }
.wz-stage.small { width: 260px; cursor: default; pointer-events: none; }
.wz-stage.small .wz-handle { display: none; }
.wz-final { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.wz-draw-hint { display: grid; place-items: center; pointer-events: none; color: var(--accent); font-weight: 700; }
.wz-draw-hint span { position: absolute; width: 34%; height: 22%; border: 2px dashed var(--accent); border-radius: 6px; animation: wzDraw 2.2s ease-in-out infinite; }
@keyframes wzDraw { 0% { width: 0; height: 0; opacity: .2; } 60% { width: 34%; height: 22%; opacity: 1; } 100% { width: 34%; height: 22%; opacity: 0; } }
.wz-ask { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.wz-ask h3 { margin: 0 0 4px; }
.wz-box.asking { border-style: solid; border-width: 3px; animation: wzPulse 1.2s ease-in-out infinite; }
@keyframes wzPulse { 50% { background: rgba(76,141,255,.28); } }
.wz-ask button { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; }
.wz-ask button:hover { border-color: var(--accent); background: var(--accent-soft); }
.wz-ask button small { display: block; color: var(--muted); font-size: 12px; }
.wz-ask .wz-ask-x { justify-content: center; border: 0; background: none; color: var(--muted); }
.wz-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wz-side h3 { margin-top: 0; }
.wz-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; }
.wz-row:hover { border-color: var(--accent); }
.wz-row .sub { margin: 0; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.wz-chips button { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; font-weight: 600; }
.wz-chips button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wz-form { max-width: 640px; }
.cl-pick-wizard { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-bottom: 8px; border-radius: 14px; border: 2px solid var(--accent);
  background: var(--accent-soft); color: var(--text); text-align: left; cursor: pointer; }
.cl-pick-wizard > [data-icon] svg { width: 34px; height: 34px; color: var(--accent); }
.cl-pick-wizard b { display: block; font-size: 16px; }

/* settings: print sizes per garment size */
.sz-tbl td, .sz-tbl th { vertical-align: middle; }
.sz-pct input { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; }
.sz-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.sz-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sz-tbl th, .sz-tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sz-tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.sz-own { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.sz-own label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
/* more colours from photos */
.wz-drop.wide { width: 100%; min-height: 150px; margin-bottom: 14px; }
.wc-colour { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.wc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.wc-head i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); flex: none; }
.wc-head input { max-width: 260px; }
.wc-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-photo.small { width: 170px; }
.wz-photo.small img { width: 150px; height: 150px; }
.wz-photo.unsure { border-color: #e0a100; }
.wc-warn { color: #b07a00; font-weight: 600; margin: 0; }
.wz-drop .btn { white-space: nowrap; max-width: 100%; }
.wz-drop .sub { margin: 0; }
/* width × height with a lock between them */
.wh-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.wh-lock { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.wh-lock.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.wh-lock svg { width: 18px; height: 18px; }
/* wizard: closing with unsaved work; drafts in the article picker */
.wz-card { position: relative; }
.wz-close { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(10,15,25,.35); border-radius: inherit; }
.wz-close > .card { width: min(520px, 100%); }
.wz-close h3 { margin-top: 0; }
.wz-close .row { flex-wrap: wrap; gap: 8px; }
.cl-drafts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.cl-draft { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.cl-draft img, .cl-draft .cl-pick-noimg { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.cl-draft > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.cl-draft small { color: var(--muted); }
/* wizard: zoomable photo */
.wz-scroll { width: min(100%, 600px); max-height: 62vh; overflow: auto; scrollbar-gutter: stable; border-radius: 12px; background: #fff; }
.wz-zoombar { width: min(100%, 600px); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wz-zoombar .sub { margin: 0; }
.wz-final .wz-stage.small { width: 260px; }
/* editor: a side without photo; photos of a colour */
.cl-nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 320px; text-align: center; padding: 20px;
  border: 2px dashed var(--line2); border-radius: 14px; }
.cl-var-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cl-vphoto { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.cl-vphoto img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.cl-vphoto small { color: var(--muted); font-size: 11px; }
.cl-vphoto .icon-btn { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; padding: 0; }
/* order: logo files for production */
.cl-logofiles { display: flex; flex-direction: column; gap: 8px; }
.cl-logofile { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.cl-logofile img { width: 56px; height: 56px; object-fit: contain; background: repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 8px; }
.cl-logofile span { flex: 1; display: flex; flex-direction: column; }
.cl-logofile small { color: var(--muted); }
.wz-across { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.wz-across .btn { align-self: flex-start; }
/* article page: one row per shop, opens up */
.sa-shop { margin-top: 10px; padding: 0; overflow: hidden; }
.sa-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.sa-toggle { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; padding: 6px 0; }
.sa-toggle b { font-size: 16px; }
.sa-toggle .sub { margin: 0; }
.sa-chev { display: inline-grid; transition: transform .15s; color: var(--muted); }
.sa-chev svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.sa-shop.open .sa-chev svg { transform: none; }
.sa-body { display: none; padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.sa-shop.open .sa-body { display: block; }
.sa-body .cl-tplgrid { margin-top: 10px; }
/* freed product photos: shown on a checkerboard */
.wz-photo.freed, .wz-photo.freed img { background: repeating-conic-gradient(#e9e9e9 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
#wzFreeAll { margin-bottom: 12px; }
.wc-free { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 14px; }
#peDesc, #wzDesc { font: inherit; color: var(--text); background: var(--input, var(--card2)); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.wz-headbtns { display: flex; gap: 6px; }
.wz-headbtns .icon-btn:disabled { opacity: .35; cursor: default; }
.sa-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sa-pick { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.sa-pickrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.sa-pickrow b { flex: 1; }
.sa-pickrow[hidden] { display: none; }
/* wizard: own picture of a logo area */
.wz-ownpic { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wz-ownpic img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line);
  background: repeating-conic-gradient(#e9e9e9 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.wz-warn { margin: 0; color: #9a6400; }
/* article page: ticking articles */
.sa-card { position: relative; }
.sa-card.picked { outline: 2px solid var(--accent); outline-offset: -2px; }
.sa-check { position: absolute; top: 8px; left: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--line); cursor: pointer; }
.sa-check input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.sa-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.sa-all input { width: 16px; height: 16px; accent-color: var(--accent); }
.sa-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-top: 10px;
  border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); }
.sa-bar b { margin-right: auto; }
.sa-bar.hidden { display: none; }
.wz-zoombar .btn { height: 36px; }
.cl-undo { display: inline-flex; gap: 6px; }
/* Kalender: week and month, Nextcloud both ways */
.cal-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.kc-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kc-nav { display: flex; gap: 6px; }
.kc-nav .icon-only { width: 44px; padding: 0; justify-content: center; }
.kc-title { margin: 0 0 0 4px; font-size: 20px; }
#kcMsg { margin-bottom: 12px; }
.kc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.kc-col { min-height: 320px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.kc-col.today, .kc-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.kc-dh { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.kc-dh b { color: var(--text); font-size: 15px; }
.kc-evs { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.kc-none { color: var(--muted); font-size: 13px; padding: 2px 4px; }
.can-add { cursor: copy; }
.can-add:hover { background: var(--card2); }
.kc-ev { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 5px 7px; border-radius: 7px; border: 0;
  border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, var(--bg2)); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.kc-ev.all { background: color-mix(in srgb, var(--c) 26%, var(--bg2)); }
.kc-ev.ro { cursor: default; }
.kc-ev:hover { filter: brightness(.96); }
.kc-ev .ic { width: 14px; height: 14px; flex: none; color: var(--c); }
.kc-t { font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.kc-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kc-col .kc-ev { display: block; line-height: 1.35; }
.kc-col .kc-ev .ic { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.kc-col .kc-t { margin-right: 5px; }
.kc-col .kc-n { white-space: normal; hyphens: auto; overflow-wrap: break-word; }
#kcGrid { container-type: inline-size; }
@container (max-width: 760px) {
  .kc-week { grid-template-columns: 1fr; }
  .kc-col { min-height: 0; flex-direction: row; align-items: flex-start; }
  .kc-col .kc-dh { flex: 0 0 76px; border-bottom: 0; flex-direction: column; gap: 0; padding: 4px; }
}
.kc-month { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.kc-mh { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card2); border-bottom: 1px solid var(--line); }
.kc-mh span { padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kc-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kc-cell { min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.kc-cell:nth-child(7n) { border-right: 0; }
.kc-cell.other { background: var(--card2); }
.kc-cell.other .kc-num { color: var(--muted); }
.kc-num { font-size: 13px; font-weight: 700; padding: 0 3px 2px; }
.kc-more { border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 600; text-align: left; padding: 2px 4px; cursor: pointer; }
.kc-empty .ic { width: 40px; height: 40px; color: var(--accent); }
.kc-empty p { max-width: 560px; margin: 8px auto 18px; }
.kc-form { display: grid; gap: 12px; }
.kc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.kc-row .field { flex: 1 1 130px; }
.kc-row .field.hidden { display: none; }
.kc-form textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; resize: vertical; }
.kc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.kc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.kc-cals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kc-note { white-space: pre-wrap; color: var(--text) !important; }
.ik-actions .spacer { flex: 1; }
.ik-dialog:has(.kc-form), .ik-dialog:has(#kcCon) { width: min(560px, 100%); }
#kcCon .field { margin-bottom: 12px; }
@media (max-width: 900px) {
  .kc-cell { min-height: 74px; }
  .kc-cell .kc-ev .kc-t { display: none; }
}
.kc-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; text-align: left; }
.kc-choice > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.kc-choice small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.kc-prov { display: flex; flex-wrap: wrap; margin: 4px 0 12px; }
.kc-prov button { height: 34px; padding: 0 12px; }
.kc-fixed { margin: 0 0 10px; }
.kc-choice .btn .ic { width: 18px; height: 18px; color: inherit; margin: 0; }
.kc-empty .kc-choice { max-width: 560px; margin: 16px auto 0; }
/* Bildablage: folders and search */
.lib-top { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lib-folders { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 420px; align-items: center; }
.lib-folder { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 600; font-size: 13.5px; max-width: 260px; }
.lib-folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-folder .ic { width: 16px; height: 16px; flex: none; color: var(--muted); }
.lib-folder small { font-weight: 600; color: var(--muted); font-size: 12px; }
.lib-folder:hover { border-color: var(--line2); }
.lib-folder.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lib-folder.on .ic, .lib-folder.on small { color: #fff; }
.lib-folder.add { border-style: dashed; color: var(--muted); }
.lib-folder.drop { outline: 2px solid var(--accent); outline-offset: 2px; background: var(--accent-soft, rgba(61,139,255,.12)); color: var(--accent); }
body.lib-dragging .lib-folder[data-folder]:not([data-folder="all"]):not(.on) { border-style: dashed; border-color: var(--accent); }
.lib-folder-tools { display: inline-flex; gap: 4px; margin-left: 2px; }
.lib-folder-tools .icon-btn { width: 34px; height: 34px; }
.lib-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); flex: 0 1 260px; min-width: 180px; }
.lib-search .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.lib-search input { border: 0; background: none; outline: 0; font: inherit; color: var(--text); width: 100%; min-width: 0; padding: 0; height: 100%; }
.lib-card.dragging { opacity: .5; }
.lib-in { display: inline-flex; align-items: center; gap: 4px; }
.lib-in .ic { width: 13px; height: 13px; flex: none; }
@media (max-width: 560px) { .lib-search { flex: 1 1 100%; } }
.flash-focus { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .4s; }
.st-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.st-btns { display: flex; gap: 6px; justify-content: flex-end; }
.od-goods { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.od-goods:first-of-type { border-top: 0; padding-top: 0; }
.od-goods ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.od-goods li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.od-goods li .muted { font-size: 12px; }
.od-po { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); text-decoration: none; }
.od-po .ic { width: 16px; height: 16px; }
.od-goods-dlg { max-width: 520px; }
.od-goods-choice { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.od-goods-choice .btn { justify-content: flex-start; } .od-goods-choice .btn span { font-weight: 400; opacity: .8; }

/* ---- Einrichtungs-Assistent (setup.js) ---- */
.ar-modal.sw > .wz-card { width: min(860px, 100%); height: min(760px, 94vh); }   /* same size on every step – the buttons stay put */
.sw-lead { margin: -6px 0 18px; max-width: 680px; }
.sw-form { margin-bottom: 6px; }
.sw-manual { display: flex; justify-content: center; padding: 4px 20px 14px; }
.btn.link { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.btn.link:hover { color: var(--text); }
.sw-msg { margin: 10px 20px 0; flex: none; }
.vat-row { display: flex; gap: 8px; }
.vat-row input { flex: 1; min-width: 0; }
.vat-state { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; min-height: 20px; flex-wrap: wrap; }
.vat-mark { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; }
.vat-mark .ic { width: 13px; height: 13px; stroke-width: 3; }
.vat-mark.ok { background: var(--ok); }
.vat-mark.err { background: var(--bad); }
.vat-mark.wait { background: var(--muted); }
.vat-text.ok { color: var(--ok); } .vat-text.err { color: var(--bad); } .vat-text.wait { color: var(--muted); }
.sw-later { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 14px; }
.sw-later .seg { align-self: flex-start; flex-wrap: wrap; }
.sw-mats { display: grid; gap: 12px; margin-bottom: 12px; }
.sw-mat { padding: 14px 16px; opacity: .6; transition: opacity .2s; }
.sw-mat.on { opacity: 1; border-color: var(--accent); }
.sw-mat-head { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 10px; cursor: pointer; }
.sw-mat-head input { width: 18px; height: 18px; accent-color: var(--accent); }
.sw-note { margin: 8px 0 0; font-size: 13px; }
.sw-list { display: grid; gap: 6px; margin-bottom: 14px; }
.sw-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); flex-wrap: wrap; }
.sw-item .ic { width: 18px; height: 18px; color: var(--accent); }
.sw-item.ok .ic { color: var(--ok); }
.sw-item.open { color: var(--muted); }
.sw-item.open > .ic { color: var(--muted); }
.sw-item .vat-mark .ic { width: 13px; height: 13px; color: #fff; }
#swStForm + .sub { margin-top: 14px; }
.sw-add { align-items: end; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sw-done { display: grid; gap: 6px; margin-bottom: 18px; }
.sw-h3 { margin: 0 0 10px; font-size: 16px; }
.vat-remind { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); flex-wrap: wrap; }
.vat-remind > div { flex: 1; min-width: 220px; }
.vat-notice { width: min(520px, 100%) !important; }
@media (max-width: 640px) {
  .sw .wz-foot { flex-wrap: wrap; }
  .sw .wz-foot .sub { order: -1; flex-basis: 100%; }
  .vat-row { flex-wrap: wrap; }
}

/* ---- shop extension 2026-11: Bestellablauf, Bestellungen, Auftrag ändern, Gewährleistung, Sammel-Druckdaten ---- */
.cl-dates { gap: 14px; align-items: center; flex-wrap: wrap; }
.cl-dates label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.cl-dates input[type="date"] { min-height: 40px; }
.cl-flow, .cl-orders { display: grid; gap: 16px; max-width: 920px; }
.cl-mail { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 10px 0; }
.cl-mail summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.cl-mail summary::-webkit-details-marker { display: none; }
.cl-mail[open] { padding-bottom: 12px; }
.cl-mail .field { margin: 0 0 10px; }
.cl-mail textarea, .cl-flow textarea { width: 100%; font: inherit; }
.cl-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.cl-kpis > div { flex: 1 1 140px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cl-kpis b { display: block; font-size: 22px; } .cl-kpis span { color: var(--muted); font-size: 13px; }
.cl-teamlinks { display: grid; gap: 8px; }
.cl-teamlink { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cl-teamlink b { min-width: 140px; } .cl-teamlink input { flex: 1 1 260px; min-width: 0; }
.cl-wlist { display: grid; gap: 6px; margin: 10px 0 14px; max-height: 320px; overflow: auto; }
.cl-wrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.cl-wrow > label:first-child { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; flex: 1; min-width: 0; }
.cl-wqty { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cl-wqty select { min-height: 36px; min-width: 64px; padding: 0 8px; font-size: 15px; }
.cl-edit input { min-height: 36px; padding: 4px 8px; }
.od-batch { max-height: 60vh; overflow: auto; }
@media (max-width: 700px) { .cl-plot-head { flex-wrap: wrap; } }
details.cl-more > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
details.cl-more > summary::-webkit-details-marker { display: none; }
details.cl-more > summary h2 { margin: 0; } details.cl-more[open] > summary { margin-bottom: 12px; }
.cl-tier { gap: 8px; align-items: center; margin: 4px 0; color: var(--muted); }
.cl-sizeprice { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-sizeprice label { display: grid; gap: 2px; width: 74px; } .cl-sizeprice span { font-size: 12px; color: var(--muted); font-weight: 600; }
#clTabs { display: flex; flex-wrap: wrap; max-width: 100%; }
#clTabs button { white-space: nowrap; padding: 0 12px; }
.cl-sizeprice input { width: 100%; min-width: 0; box-sizing: border-box; padding: 0 8px; min-height: 38px; }
.cl-tier input { min-width: 0; box-sizing: border-box; }
.od-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.term-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; }
.term-setup > div { background: var(--bg2, #f6f7f9); border-radius: 12px; padding: 14px 16px; }
.term-setup p { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.term-setup p b { color: var(--text); }
.term-setup .btn { margin-top: 10px; }
.od-next { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft, #eaf1ff); margin: 0 0 14px; }
.od-next b { display: block; }
.od-next span { color: var(--muted); font-size: 14px; }
.od-line-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 2px 8px; }
.od-line-head b { font-size: 16px; }
.od-line-head span { color: var(--muted); font-size: 14px; }
.od-parts > .od-line-head:not(:first-child) { margin-top: 18px; }
.od-online { align-items: center; }
.od-online > div { flex: 1; min-width: 0; }
.od-online > .btn { flex-shrink: 0; }
.hub-toast.alarm { background: #c2410c; color: #fff; }
.hub-toast.alarm .ic { color: #fff; }
.ar-warn:not(:empty) { color: #b45309; }
.od-src { font-size: 12px; white-space: nowrap; }
.od-scroll { overflow-x: auto; }   /* narrow windows: the table scrolls instead of cutting off Zahlung/Status */
.ar-tier { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; margin-bottom: 6px; white-space: nowrap; }
.ar-tier input { width: 64px; min-width: 0; } .ar-tier input[data-tpr] { width: 76px; }
/* Eigene Flächen: the product itself is tinted green (productmask.js) */
.ar-photo .product-tint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- Kunden (Kundenstamm) ------------------------------------------------------------------------------------- */
.cu-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cu-filters .od-search { flex: 1 1 260px; }
.cu-table td.ck, .cu-table th.ck { width: 36px; }
.cu-table td:nth-child(3) { min-width: 220px; }
.cu-table td:nth-child(2), .cu-table td:nth-child(7), .cu-table td:nth-child(8), .cu-table th { white-space: nowrap; }
.cu-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cu-tags span { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.st.cu-kind { background: var(--card2); color: var(--muted); }
.st.cu-firma { background: rgba(31,111,235,.12); color: var(--accent); }
.st.cu-verein { background: rgba(46,158,91,.14); color: #1f7a45; }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cu-grid .cu-wide { grid-column: 1 / -1; }
.cu-dl { grid-template-columns: 100px 1fr; }
.cu-dl dd { overflow-wrap: anywhere; }
.cu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.cu-stats div { padding: 10px; border-radius: 12px; background: var(--card2); }
.cu-stats b { display: block; font-size: 18px; }
.cu-stats span { color: var(--muted); font-size: 12.5px; }
.cu-shops { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.cu-shops li { display: flex; align-items: center; gap: 8px; }
.cu-shops li .icon-btn { margin-left: auto; }
.cu-note { white-space: pre-wrap; margin: 0; }
.cu-notes { min-height: 180px; }
.cu-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cu-contact-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cu-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cu-flags span { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft, rgba(31,111,235,.1)); color: var(--accent); }
.cu-dlg { width: min(720px, 96vw); max-height: 92vh; overflow-y: auto; }
.cu-delivery .form { margin: 0; }
.cu-switches { display: grid; gap: 10px; }
.cu-switch { align-items: flex-start; }
.cu-switch span { display: grid; gap: 1px; }
.cu-switch small { margin: 0; }
.cu-order-link { display: block; text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; background: var(--card2); }
.cu-order-link:hover { background: var(--accent-soft, rgba(31,111,235,.1)); }
.cu-mails { margin: 10px 0 8px; }
.cu-small { height: 34px; font-size: 13px; }
.cu-matches { display: grid; gap: 6px; margin-bottom: 10px; }
.cu-matches .btn { justify-content: flex-start; height: auto; min-height: 40px; padding: 6px 12px; text-align: left; display: grid; gap: 1px; }
.cu-find { display: grid; gap: 6px; margin-bottom: 10px; }
.cu-hit { display: grid; gap: 1px; text-align: left; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.cu-hit:hover { border-color: var(--accent); }
@media (max-width: 760px) { .cu-stats { grid-template-columns: 1fr 1fr 1fr; } .cu-dl { grid-template-columns: 80px 1fr; } }

.cu-grid .card > .btn { margin-top: 12px; }
.cu-dlg .cu-full { grid-column: 1 / -1; }

/* ---- Kunden phase 2/3 ------------------------------------------------------------------------------------------------ */
.cu-follow, .cu-speclist { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.cu-follow li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.cu-speclist li { padding: 6px 10px; border-radius: 10px; background: var(--card2); }
.cu-favs { display: grid; gap: 8px; margin-bottom: 10px; }
.cu-favs > div { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.cu-favs img, .cu-favs > div > span:first-child { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--card2); }
.cu-favs small { display: block; color: var(--muted); }
.cu-favrow { gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cu-favrow select, .cu-favrow input { flex: 1 1 150px; min-width: 0; }
.cu-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cu-sec-head h2 { margin: 0; }
.cu-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cu-file { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); }
.cu-file-pic { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: repeating-conic-gradient(#e7eaf0 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.cu-file-pic img { max-width: 100%; max-height: 100%; }
.cu-file-pic span { position: absolute; left: 3px; bottom: 3px; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 6px; background: var(--accent); color: #fff; }
.cu-file-text { min-width: 0; display: grid; gap: 2px; }
.cu-file-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-file-text small { color: var(--muted); }
.cu-file-acts { display: grid; gap: 4px; }
.cu-file-big { display: grid; place-items: center; max-height: 260px; margin-bottom: 12px; border-radius: 12px; overflow: hidden;
  background: repeating-conic-gradient(#e7eaf0 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.cu-file-big img { max-width: 100%; max-height: 260px; }
.cu-uses { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.cu-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.cu-lib button { display: grid; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); text-align: left; }
.cu-lib button:hover { border-color: var(--accent); }
.cu-lib img { width: 100%; aspect-ratio: 1; object-fit: contain; background: repeating-conic-gradient(#e7eaf0 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 6px; }
.cu-lib span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-order-specs { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(245,158,11,.12); margin: 6px 0; font-size: 13px; }
.cu-order-acts { gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cu-ro-row { gap: 8px; margin-bottom: 8px; align-items: center; }
.cu-ro-row select { flex: 1 1 140px; }
.cu-qty { width: 90px; flex: 0 0 90px; }
.cu-ro td { height: auto; padding-top: 6px; padding-bottom: 6px; }
.cu-h3 { font-size: 15px; margin: 14px 0 6px; }
.cu-tools { display: grid; gap: 10px; margin: 6px 0 10px; }
.cu-tools button { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.cu-tools button:hover { border-color: var(--accent); }
.cu-tools b { display: flex; align-items: center; gap: 8px; } .cu-tools b .ic { width: 18px; height: 18px; color: var(--accent); }
.cu-tools span { color: var(--muted); font-size: 13px; }
.cu-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 12px; margin: 10px 0; }
.cu-map label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
.cu-im td, .cu-sug td { height: auto; padding-top: 6px; padding-bottom: 6px; }
.cu-sug input.ar-input { min-width: 160px; }
.cu-merge { display: grid; gap: 8px; }
.cu-merge label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.cu-merge small { display: block; color: var(--muted); }
.cu-stat-head { margin-bottom: 10px; }
.cu-stat-head .field { max-width: 160px; }
.cu-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cu-kpis div { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.cu-kpis b { display: block; font-size: 22px; }
.cu-kpis span { color: var(--muted); font-size: 13px; }
.cu-tbl-head { padding: 14px 16px 6px; margin: 0; justify-content: space-between; gap: 10px; }

h2.cu-tbl-head { justify-content: flex-start; }

/* ---- Zahlungseinstellungen ---- */
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pm-head h2 { margin: 0; }
.pm-head select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 10px; font: inherit; }
.pm-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.pm-card.off { opacity: .6; }
.pm-row { display: flex; align-items: center; gap: 12px; }
.pm-row .pm-name { flex: 1; min-width: 0; font-weight: 600; }
.pm-row .ar-pub { margin: 0; white-space: nowrap; }
.pm-hubs { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-hub { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pm-hub span { display: grid; line-height: 1.2; } .pm-hub small { color: var(--muted); font-size: 12px; }
.pm-hub.small { padding: 5px 10px; font-size: 13px; }
.pm-place { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.pm-place .chip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); cursor: pointer; }
.pm-prev { background: var(--card2); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.pm-prev > div { margin-top: 4px; white-space: normal; }
.pm-iban { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 4px; }
.pm-iban.ok { color: var(--ok, #16a34a); } .pm-iban.err { color: var(--err, #dc2626); }
.pm-iban .ic { width: 14px; height: 14px; }
.empty-mini { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; margin-top: 12px; }
.pm-picks { display: grid; gap: 10px; }
.pm-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.pm-pick.on { border-color: var(--accent); }
.pm-pick-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
@media (max-width: 640px) { .pm-row { flex-wrap: wrap; } .pm-row .pm-name { flex-basis: 100%; } }

.btn.small { height: 32px; min-height: 32px; padding: 0 10px; font-size: 13px; margin-left: 8px; }

/* ---- E-Mail-Versand ---- */
.ms-card .pm-head { margin-bottom: 8px; }
.ms-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card2); }
.ms-state .ic { width: 14px; height: 14px; }
.ms-state.ok { color: var(--ok, #16a34a); } .ms-state.err { color: var(--err, #dc2626); max-width: 60%; } .ms-state.wait { color: var(--muted); }
.ms-purposes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ms-purposes .sub { flex-basis: 100%; margin: 0; }

/* ---- Maschinen & Smoothdesk Base ---- */
.mc-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; background: #c5cad3; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.mc-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.mc-pcs { display: grid; gap: 8px; margin-top: 10px; }
.mc-pc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mc-pc > div { flex: 1; display: grid; } .mc-pc .sub { margin: 0; font-size: 13px; }
.mc-card select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 8px; font: inherit; }
.mc-state { margin: 0; font-size: 13px; } .mc-state .err, .ok.err, b.err { color: var(--err, #dc2626); } b.ok { color: var(--ok, #16a34a); }
.mc-code { font: 700 34px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; padding: 14px; margin: 10px auto; border-radius: 14px;
  background: var(--card2); border: 1px dashed var(--line); text-align: center; max-width: 320px; }
.mc-steps { text-align: left; line-height: 1.6; }
.mc-jobs { width: 100%; border-collapse: collapse; font-size: 14px; } .mc-jobs td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mc-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--card2); white-space: nowrap; }
.mc-st.beim_drucker { background: #dbeafe; color: #1e40af; } .mc-st.uebernommen { background: #dcfce7; color: #166534; }
.mc-st.fehler, .mc-st.stuck { background: #fee2e2; color: #991b1b; } .mc-st.wartet { background: #fef3c7; color: #92400e; }
.mc-widget { display: grid; gap: 8px; margin-bottom: 12px; } .mc-widget > div { display: flex; align-items: center; gap: 10px; }
.mc-widget .sub { margin: 0 0 0 auto; font-size: 13px; }
.od-machines .od-mjob { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st.st-machine { background: #dbeafe; color: #1e40af; margin-left: 6px; } .st.st-machine.uebernommen { background: #dcfce7; color: #166534; }
.st.st-machine.wartet { background: #fef3c7; color: #92400e; } .st.st-machine.fehler { background: #fee2e2; color: #991b1b; }

.pp-card .ms-state { margin-left: auto; }

/* Versand (DHL) in the order */
.od-dhl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.od-dhl-row .row { grid-column: 1 / -1; gap: 8px; flex-wrap: wrap; }
.od-dhl-row.storniert { opacity: .6; }
.od-dhl-no { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
#dhLabProd small { opacity: .7; margin-left: 4px; }

/* Gutschein (Apps & Buchung, Test beendet) */
.voucher-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.voucher-box .ar-input { max-width: 220px; text-transform: uppercase; }
.voucher-box .vc-label { font-weight: 600; font-size: 14px; }
.voucher-box .vc-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok-text); }
.voucher-box .msg { flex-basis: 100%; margin: 0; }

/* Apps & Buchung: several apps selected, booked together */
.btn.picked { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.pick-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.pick-bar .pick-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-bar .pick-info .sub { margin: 0; }
.pick-bar .pick-price { font-weight: 600; font-size: 14px; }

/* 7-Tage-Test: the bar can be closed, the time left stays next to Hilfe */
.trial-bar { position: relative; padding-right: 44px; }
.trial-close { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.trial-close:hover { opacity: 1; background: rgba(0,0,0,.06); }
.trial-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 6px 0 6px 4px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; flex: none; }
.trial-pill svg { width: 15px; height: 15px; }
.trial-pill.hidden { display: none; }
@media (max-width: 700px) { .trial-pill span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; } }

/* E-commerce Ultimate: the company's own offer from Smoothdesk */
.tier.tier-offer { margin-top: 8px; width: 100%; border-style: dashed; }

/* Aufträge → Neuer Auftrag */
.no-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.no-grid > .card { min-width: 0; }
.no-grid .no-wide { grid-column: 1 / -1; }
@media (max-width: 1000px) { .no-grid { grid-template-columns: minmax(0, 1fr); } }
.no-find { position: relative; margin-bottom: 10px; }
.no-find .ar-input { width: 100%; }
.no-hits { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); max-height: 300px; overflow: auto; }
.no-hits button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 12px; border: 0; background: none;
  text-align: left; cursor: pointer; color: inherit; }
.no-hits button:hover { background: var(--card2); }
.no-hits small { color: var(--muted); }
.no-afind { margin: 0; min-width: 0; }
.no-ahits { min-width: 340px; max-height: 360px; }
.no-hits .no-ahit { flex-direction: row; align-items: center; gap: 10px; }
.no-ahit img, .no-ahit .no-noimg { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--card2); flex: none; }
.no-ahit > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.no-ahit small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-hits .no-ahit.on { background: var(--card2); }
.no-picked { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.no-picked span { flex: 1; }
.no-row { display: grid; grid-template-columns: minmax(150px, 2.2fr) minmax(70px, 1fr) minmax(56px, .7fr) minmax(70px, .7fr) minmax(80px, .9fr) minmax(76px, .8fr) 36px; gap: 8px; align-items: center; margin-bottom: 6px; }
.no-row .ar-input { width: 100%; min-width: 0; }
.no-head { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.no-sum { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .no-row { grid-template-columns: 1fr 1fr 1fr; } .no-head { display: none; } .no-row .ar-input[data-f=name] { grid-column: 1 / -1; } }
.no-chan { flex-wrap: wrap; height: auto; }
.no-chan button { white-space: nowrap; flex: 1 1 auto; }
.no-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.no-file { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
.no-file img, .no-file > svg { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--card2); flex: none; }
.no-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-file.big { flex-wrap: wrap; margin-bottom: 8px; }
.no-file.big .row { gap: 6px; flex-wrap: wrap; }
.od-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.od-items th, .od-items td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.od-items th { font-size: 12px; color: var(--muted); }

/* Zahlungseinstellungen: what PayPal still needs */
.pp-check { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,176,32,.12); }
.pp-check.ok { background: rgba(52,199,89,.12); }
.pp-check ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.pp-check li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pp-check li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pp-check li.on svg { color: var(--ok-text); }
.pp-check li.off svg { color: var(--err-text); }
.pp-check small { color: var(--muted); }
.link-inline { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Hilfe & Support (support.js) */
.sup-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line);
  background: #fff4e5; color: #8a4b00; }
.sup-banner.support { background: #f76707; color: #fff; }
.sup-banner .ic { width: 18px; height: 18px; flex: none; }
.sup-banner span { flex: 1; min-width: 200px; }
.sup-banner a { color: inherit; font-weight: 700; }
.sup-banner .btn { height: 32px; }
:root[data-theme=dark] .sup-banner:not(.support) { background: #3b2a12; color: #ffd8a8; }
.sup-table td { height: 48px; }
.sup-todo { color: var(--bad); font-size: 12px; }
.sup-big { font-size: 30px; font-weight: 800; margin: 4px 0 6px; }
.sup-log { margin-top: 12px; font-size: 13px; }
.sup-log summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.sup-log ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.sup-log li span { color: var(--muted); margin-right: 6px; }
.sup-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.sup-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.sup-modal { width: min(620px, 100%); }
.sup-modal .form { display: grid; gap: 12px; }
.sup-modal textarea, .sup-reply textarea { width: 100%; box-sizing: border-box; resize: vertical; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: inherit; padding: 10px 12px; }
.sup-quote { align-items: center; }
.sup-quote > div { flex: 1; min-width: 0; }
.sup-thread { display: grid; gap: 12px; margin: 14px 0; max-width: 860px; }
.sup-msg { padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sup-msg.vonloo { background: var(--accent-soft); border-color: transparent; }
.sup-who { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.sup-who span { color: var(--muted); }
.sup-text { font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sup-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sup-files img { max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.sup-sys { text-align: center; font-size: 12.5px; color: var(--muted); }
.sup-sys span { margin-left: 6px; opacity: .8; }
.sup-reply { max-width: 860px; }
#supAccess .field { margin-top: 12px; display: grid; gap: 6px; }
#supDur { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; box-sizing: border-box; }
#supDur button { padding: 0 8px; white-space: nowrap; justify-content: center; }

/* open Zahlungsaufforderung (support.js) – top right until paid */
.pay-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: #fff1e6; color: #b44b00; border: 1px solid #ffc9a3; text-decoration: none; white-space: nowrap; flex: none; }
.pay-pill .ic { width: 15px; height: 15px; }
.pay-pill:hover { background: #ffe3cc; }
:root[data-theme=dark] .pay-pill { background: #3d2412; color: #ffb27a; border-color: #6b3a14; }
.sup-open { border: 2px solid #ffc9a3; }

.set-look { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.set-look > div { display: grid; gap: 6px; }
.set-look .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.help-i-demo { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent);
  font: italic 700 10px/1 Georgia, serif; vertical-align: 1px; }
.disc-rows { display: grid; gap: 8px; }
.disc-row { display: flex; align-items: center; gap: 6px; }
.disc-row input { width: 64px; min-width: 0; flex: none; }
.disc-row .icon-btn { flex: none; margin-left: auto; }
.disc-row span { color: var(--muted); font-size: 14px; }
.secure-tab { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.secure-tab summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.secure-tab summary .ic { width: 18px; height: 18px; }
.secure-tab ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }
.secure-tab p { margin: 8px 0 0; }

/* Retail-Einstellungen: tabs left, one row per setting, the save bar once something changed */
.rs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.rs-nav { display: grid; gap: 4px; position: sticky; top: 12px; }
.rs-nav button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid transparent; background: transparent;
  color: var(--text); font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.rs-nav button .ic { width: 18px; height: 18px; color: var(--muted); }
.rs-nav button:hover { background: var(--card2); }
.rs-nav button.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-row); }
.rs-nav button.active .ic { color: var(--accent); }
.rs-panel { min-height: 420px; }
.rs-panel > h2 { margin-bottom: 6px; }
.rs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 8px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rs-row:last-child, .rs-row + details { border-bottom: 0; }
.rs-row.rs-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; }
.rs-label b { font-weight: 600; }
.rs-label .sub { margin: 3px 0 0; }
.rs-ctl { display: flex; justify-content: flex-end; }
.rs-ctl > input:not([type=color]), .rs-ctl > select { width: 100%; }
.rs-ctl input[type=color] { width: 64px; height: 40px; padding: 2px; }
.rs-unit { display: flex; align-items: center; gap: 8px; }
.rs-unit input { width: 96px; }
.rs-unit span { color: var(--muted); font-size: 14px; }
.rs-note { margin: 14px 0 0; }
.rs-look { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.rs-preview { --acc: #1f6feb; position: sticky; top: 12px; aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--line); background: #f4f6f9;
  color: #1a1f2b; padding: 12px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; overflow: hidden; margin-top: 14px; position: relative; }
.rs-preview.dark { background: #14171c; color: #eef0f3; border-color: #2a2f37; }
.rs-pv-top { display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.rs-pv-top img { max-height: 18px; max-width: 90px; object-fit: contain; }
.rs-pv-top span { width: 34px; height: 10px; border-radius: 6px; background: currentColor; opacity: .12; }
.rs-pv-title { font-weight: 900; font-size: 17px; line-height: 1.05; letter-spacing: -.01em; }
.rs-pv-title em { display: block; font-style: normal; color: var(--acc); }
.rs-preview .rs-pv-kicker { position: static; display: block; font-size: 7px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  opacity: .6; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-self: end; }
.rs-pv-tiles i { aspect-ratio: 1; border-radius: 6px; background: currentColor; opacity: .08; }
.rs-pv-btn { justify-self: end; background: var(--acc); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.rs-preview small { position: absolute; left: 12px; bottom: 8px; font-size: 9px; opacity: .5; }
.rs-link { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; width: 100%; }
.rs-link img { width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 4px; }
.rs-panel .secure-tab { margin-top: 16px; }
.rs-panel .disc-rows { margin-bottom: 8px; }
.rs-save { position: sticky; bottom: 12px; z-index: 30; margin: 16px 0 0 236px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px;
  background: var(--card); border: 1px solid var(--accent-row); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.rs-save > span { font-weight: 600; margin-right: auto; }
.rs-save .msg { margin: 0; }
@media (max-width: 900px) {
  .rs { grid-template-columns: minmax(0, 1fr); }
  .rs-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .rs-nav button { white-space: nowrap; flex: none; }
  .rs-save { margin-left: 0; }
  .rs-look { grid-template-columns: minmax(0, 1fr); }
  .rs-preview { position: relative; max-width: 260px; }
}
@media (max-width: 640px) {
  .rs-row, .rs-row.rs-wide { grid-template-columns: minmax(0, 1fr); }
  .rs-ctl { justify-content: flex-start; }
}
/* the rows follow the panel's own width (sidebar open/closed, tablet) */
.rs-panel { container-type: inline-size; }
.rs-row { grid-template-columns: minmax(160px, 1fr) minmax(0, 300px); }
@container (max-width: 820px) {
  .rs-look { grid-template-columns: minmax(0, 1fr); }
  .rs-look .rs-preview { order: -1; max-width: 280px; margin-top: 4px; }
}
@container (max-width: 600px) {
  .rs-row, .rs-row.rs-wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rs-ctl { justify-content: flex-start; }
  .rs-link { grid-template-columns: minmax(0, 1fr); }
}
.rs-ctl input, .rs-unit input, .rs-panel .disc-row input { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; box-sizing: border-box; }
.rs-ctl input[type=color] { padding: 3px; width: 64px; }
.rs-ctl input:focus, .rs-unit input:focus, .rs-panel .disc-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rs-ctl input:disabled { background: var(--card2); }
.set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1000px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }

/* Artikel: „Nicht bedruckbar“ – Stellen wie der Kragen, Punkt für Punkt umrandet */
.ar-stage[data-tool=excl] { cursor: crosshair; }
.ar-excl { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ar-excl polygon { fill: url(#arHatch); stroke: #e5484d; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: visiblePainted; cursor: move; }
.ar-excl polygon.sel { stroke-width: 3; }
.ar-stage[data-tool=excl] .ar-excl polygon { pointer-events: none; }
.ar-excl polyline { fill: none; stroke: #e5484d; stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.ar-ep { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; border: 2px solid #e5484d; border-radius: 50%; cursor: grab; z-index: 3; touch-action: none; }
.ar-ep.draft { width: 10px; height: 10px; margin: -5px 0 0 -5px; cursor: crosshair; }
.ar-ep.first { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #e5484d; cursor: pointer; }
.ar-excl-name { position: absolute; transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; color: #fff; background: rgba(229, 72, 77, .92);
  padding: 1px 8px; border-radius: 999px; pointer-events: none; white-space: nowrap; z-index: 2; }

/* Fernwartung dialog (support.js supRemote) */
.sup-steps { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.sup-steps li::marker { font-weight: 700; color: var(--accent); }
.sup-steps .sub { margin: 6px 0 0; }
.sup-ids { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.sup-kv { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; }
.sup-kv code { overflow-wrap: anywhere; font-family: Consolas, monospace; }
@media (max-width: 560px) { .sup-ids { grid-template-columns: 1fr; } }

/* Retail-Einstellungen → Aussehen: the three steps; in the preview under the heading */
.rs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rs-steps input { min-width: 0; }
.rs-pv-steps { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 6px; font-size: 8px; font-weight: 700; opacity: .75; }
.rs-pv-steps span { display: inline-flex; align-items: center; gap: 3px; }
.rs-pv-steps i { font-style: normal; width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 7px; }

/* Artikel → Größen (with surcharge) and Farben („Start“) */
.ar-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ar-size { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2, var(--bg)); }
.ar-size b { min-width: 34px; font-size: 13px; }
.ar-size-add { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; flex: 1; min-width: 0; }
.ar-size-add input { width: 100%; min-width: 0; height: 30px; padding: 0 6px; text-align: right; }
.ar-size .icon-btn { width: 28px; height: 28px; flex: none; }
.ar-start { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.ar-start input { accent-color: var(--accent); margin: 0; }

/* order of articles: Retail-Einstellungen → Artikel im Terminal, and the article list of a club / company shop */
.sort-arrows { display: inline-flex; flex-direction: column; gap: 2px; flex: none; }
.sort-arrows .icon-btn { width: 28px; height: 22px; }
.sort-arrows .icon-btn:disabled { opacity: .3; }
.cl-prow { display: flex; align-items: center; gap: 4px; }
.cl-prow .cl-pitem { flex: 1; min-width: 0; }
.cl-prows { display: flex; flex-direction: column; gap: 8px; }
.cl-sortby { width: 100%; }
.cl-pimg { position: relative; flex: none; display: block; line-height: 0; }
.cl-pos { position: absolute; left: -5px; top: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 11px; line-height: 19px; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--card); }
/* drag & drop sorting (pointer events, works with a finger too): the handle, the row being dragged */
.sort-grip { flex: none; width: 16px; align-self: stretch; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; font-size: 15px; font-weight: 700; letter-spacing: -1px; }
.sort-grip:hover { color: var(--accent); }
.sort-active, .sort-active * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.sort-dragging { opacity: .55; outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: 12px; }
.cl-sort { position: absolute; right: 10px; top: 10px; z-index: 1; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: default; }
.cl-sort .sort-grip { width: 22px; height: 28px; color: #555; }
.cl-sort .icon-btn { width: 28px; height: 28px; background: transparent; border-color: transparent; color: #333; }
.cl-sort .icon-btn:disabled { opacity: .3; }
.cl-sort-prev .ic, .cl-sort-prev svg { transform: rotate(-90deg); }
.cl-sort-next .ic, .cl-sort-next svg { transform: rotate(-90deg); }
.rs-order { display: grid; gap: 6px; max-width: 560px; }
.rs-orow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, var(--panel)); }
.rs-onum { width: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.rs-orow img, .rs-orow > span:not(.rs-oname):not(.sort-arrows) { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--bg); flex: none; }
.rs-oname { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* preview: a column – the tiles take the room that is left (with or without the steps line), „Weiter“ stays inside */
.rs-preview { display: flex; flex-direction: column; }
.rs-preview .rs-pv-tiles { flex: none; margin-top: auto; align-self: stretch; }
.rs-preview .rs-pv-tiles i { aspect-ratio: auto; height: 46px; }
.rs-preview .rs-pv-btn { align-self: flex-end; }
/* a required field left empty (Einrichtungs-Assistent and other forms) */
.sw-form input.bad, .form input.bad { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.15); }
.pack-card .pack-free { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); max-width: 520px; }

/* Umsatz + E-commerce widgets */
.sw-ranges { display: flex; flex-wrap: wrap; gap: 2px; background: rgba(127,127,127,.12); border-radius: 9px; padding: 3px; margin-bottom: 10px; }
.sw-r { flex: 1 0 auto; border: 0; background: none; border-radius: 7px; padding: 5px 7px; font-size: 12px; font-weight: 600; color: inherit; cursor: pointer; min-width: 0; }
.sw-r.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--accent); }
.sw-custom { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sw-custom input { flex: 1; min-width: 0; font-size: 12px; padding: 5px 6px; }
.sw-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sw-ch { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.sw-ch.up { color: #127046; background: rgba(18,112,70,.12); }
.sw-ch.down { color: #a3242d; background: rgba(163,36,45,.12); }
.sw-sub { margin: 2px 0 8px; }
.sw-bars { width: 100%; height: 56px; display: block; fill: var(--accent); opacity: .85; }
.sw-paid { margin: 8px 0 4px; }
.sw-info { cursor: help; margin-left: 4px; opacity: .7; }
.sw-more summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 0; }
.sw-list { list-style: none; margin: 0 0 6px; padding: 0; font-size: 13px; }
.sw-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.sw-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-of { font-size: 16px; font-weight: 600; opacity: .6; }
.sw-meter { height: 8px; border-radius: 10px; background: rgba(127,127,127,.18); overflow: hidden; margin: 8px 0 4px; }
.sw-meter b { display: block; height: 100%; background: var(--accent); border-radius: 10px; }
.sw-meter b.warn { background: #d97706; }
.sw-line { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sw-axis { display: flex; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.sw-axis span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
.sw-meter-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.sw-meter-row .sw-meter { flex: 1; margin: 0; }
.sw-pct { font-weight: 700; font-size: 13px; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.qr-dl { position: relative; display: inline-block; }
.qr-dl > summary { list-style: none; cursor: pointer; }
.qr-dl > summary::-webkit-details-marker { display: none; }
.qr-dl-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--card); border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 2px; }
.qr-dl-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.qr-dl-menu a:hover { background: var(--card2); }
.qr-dl-menu small { display: block; color: var(--muted); font-size: 12px; }
/* article editor: sections open/close, colours sortable */
.ar-grip { cursor: grab; color: var(--muted); font-weight: 700; letter-spacing: -2px; padding: 0 4px; user-select: none; }
.ar-pos { width: 52px; padding: 6px 4px; text-align: center; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); color: var(--text); }
.ar-crow.dragging { opacity: .45; }
.ar-crow.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.ar-crow.drop-after { box-shadow: 0 3px 0 var(--accent); }
/* Mein Konto */
.ac-panel { background: none; border: 0; box-shadow: none; padding: 0; }
.ac-panel > .card + .grid, .ac-panel > .card + .card { margin-top: 16px; }
.ac-me { display: flex; align-items: center; gap: 16px; }
.ac-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; flex: none; }
.ac-me-text { flex: 1; min-width: 0; }
.ac-name input { font-size: 20px; font-weight: 700; border: 1px solid transparent; background: transparent; color: var(--text); padding: 4px 8px; margin-left: -9px;
  border-radius: 8px; width: min(420px, 100%); }
.ac-name input:hover { border-color: var(--line2); }
.ac-name input:focus { border-color: var(--accent); background: var(--card); outline: none; }
.ac-saved { color: var(--ok-text, #2c7a3f); font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cs-panel { min-width: 0; display: grid; gap: 16px; align-content: start; }
.bu-import { display: grid; gap: 10px; padding: 14px; margin: 10px 0 14px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--card2); }
.bu-import .check { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; }
.bu-errors { margin: 0; padding-left: 18px; color: var(--err-text); font-size: 13px; }
/* fonts: one row per font, where it is offered */
.ft { display: grid; gap: 6px; }
.ft-head, .ft-row { display: grid; grid-template-columns: 150px minmax(120px, 1fr) repeat(var(--ft-hubs, 0), 120px) 36px; gap: 12px; align-items: center; }
.ft-head span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.ft-row { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ft-row img { height: 34px; width: 150px; object-fit: contain; object-position: left center; color: var(--text); }
.ft-name b { display: block; } .ft-name small { color: var(--muted); }
.ft-on { display: flex; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.ft-on input { width: 18px; height: 18px; accent-color: var(--accent); }
.ft-on span { display: none; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .ft-head { display: none; }
  .ft-row { grid-template-columns: 1fr 36px; }
  .ft-row img { grid-column: 1 / -1; }
  .ft-on { justify-content: flex-start; } .ft-on span { display: inline; }
}
.ac-panel .set-grid { grid-template-columns: minmax(0, 1fr); } .ac-panel .set-grid > .card { max-width: 760px; }
.od-sheet { margin-bottom: 16px; }
.od-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.od-sheet-one { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.od-sheet-one img { display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; background: #b0b8c4; }
.od-sheet-one > div { display: grid; gap: 6px; min-width: 0; }
.rs-num { display: inline-flex; align-items: center; gap: 6px; } .rs-num input { width: 110px; }
/* order: „Ablauf“ */
.od-flow { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.od-flow-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.od-flow.done .od-flow-no { background: rgba(58,154,79,.15); color: var(--ok-text, #2c7a3f); }
.od-flow-no .ic { width: 15px; height: 15px; }
.od-flow-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.od-flow-body .sub { margin: 0; }
.od-flow-body .row { margin-top: 4px; }

/* ---- navigation as a drawer (like Seller Central): the burger top left opens it over the page, a click on the
   dimmed page closes it – the whole width stays for the work ---------------------------------------------------- */
.app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
.app .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); height: 100vh; z-index: 90; transform: translateX(-104%);
  transition: transform .22s ease, visibility .22s; visibility: hidden; box-shadow: 0 0 40px rgba(0,0,0,.25); padding-top: 8px; }
.app.nav-open .side { transform: none; visibility: visible; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(15,18,24,.5); z-index: 85; opacity: 0; pointer-events: none; transition: opacity .2s; }
.app.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
.collapse-btn { display: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 8px 22px; }
.drawer-head b { font-size: 16px; }
.nav-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; padding: 0 10px; height: 34px; border: 1px solid var(--line2);
  border-radius: 10px; background: var(--card); }
.nav-search .ic { width: 17px; height: 17px; color: var(--muted); }
.nav-search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 14px; color: var(--text); padding: 0; }
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav .search-hide { display: none !important; }
.burger { flex: none; align-self: center; width: 40px; height: 40px; margin: 4px 2px 4px 8px; border: 0; background: none; color: var(--text);
  border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.burger:hover { background: var(--card2); }
.burger .ic { width: 24px; height: 24px; }
.top-brand { flex: none; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 4px; }
.top-brand img { width: 28px; height: 28px; border-radius: 7px; }
@media (max-width: 760px) { .app .side { position: fixed; height: 100vh; } }

/* one fold pattern for every card (fold.js): the head opens/closes the card, chevron like .group-head / .step-chev */
.fold > .fold-head { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
.fold > .fold-head::after { content: ''; margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(-135deg); margin-top: 4px; transition: transform .15s; }
.fold.folded > .fold-head::after { transform: rotate(45deg); margin-top: -4px; }
.fold > .fold-head::after, :is(.sup-log, .sw-more, .buy-hist, .cal-guide, .pack-lines, .secure-tab, .pd-more) > summary::after { margin-right: 3px; }
.fold > .fold-head:hover::after { border-color: var(--text); }
.fold > .fold-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.fold.folded > :not(.fold-head) { display: none !important; }
.fold.folded > .fold-head { margin-bottom: 0; }
.fold.folded { height: max-content; }   /* no stretching in grids; width stays as it is */
.fold > .fold-head:not(h2):not(h3) { justify-content: flex-start; }
.fold > .fold-head:not(h2):not(h3) > :first-child { margin-right: auto; }
.fold > .fold-head:not(h2):not(h3) { position: relative; padding-right: 24px; }
.fold > .fold-head:not(h2):not(h3)::after { position: absolute; right: 3px; top: calc(50% - 3px); margin: 0; }
.fold.folded > .fold-head:not(h2):not(h3)::after { top: calc(50% - 7px); margin: 0; }
/* small in-card <details> toggles get the same chevron as the fold heads */
:is(.sup-log, .sw-more, .buy-hist, .cal-guide, .pack-lines, .secure-tab, .pd-more) > summary { list-style: none; display: flex; align-items: center; gap: 8px; }
:is(.sup-log, .sw-more, .buy-hist, .cal-guide, .pack-lines, .secure-tab, .pd-more) > summary::-webkit-details-marker { display: none; }
:is(.sup-log, .sw-more, .buy-hist, .cal-guide, .pack-lines, .secure-tab, .pd-more) > summary::after { content: ''; flex: none; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .7; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
:is(.sup-log, .sw-more, .buy-hist, .cal-guide, .pack-lines, .secure-tab, .pd-more)[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
:is(.cal-guide, .secure-tab) > summary::after { margin-left: auto; }

/* editors (rule A): view left with a small floating pill (zoom, undo, front/back), panel right as folding cards,
   main actions in a sticky footer at the bottom of the panel – like .dg-view / .dg-foot in the DTG Hub */
.ed-view { position: relative; min-width: 0; }
.ed-pill { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; max-width: calc(100% - 24px);
  flex-wrap: wrap; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.ed-pill .icon-btn { width: 34px; height: 34px; font-size: 18px; font-weight: 700; }
.ed-pill .icon-btn:disabled { opacity: .35; cursor: default; }
.ed-zoomv { border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; min-width: 56px; height: 34px; border-radius: 8px; cursor: pointer; }
.ed-zoomv:hover { background: var(--card2); }
.ed-sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.ed-pill .seg { padding: 2px; border-radius: 9px; }
.ed-pill .seg button { height: 30px; padding: 0 10px; font-size: 13px; }
.ed-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ed-seg { display: flex; flex-wrap: wrap; max-width: 100%; }
.ed-seg button { padding: 0 12px; }
.ed-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ed-addrow { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-addrow .btn { height: 36px; padding: 0 12px; }
.ed-foot { position: sticky; bottom: 0; z-index: 7; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.ed-foot-main { display: flex; align-items: center; gap: 12px; }
.ed-foot-main .btn.primary { flex: 1; justify-content: center; }
.ed-foot-main .sub { margin: 0; white-space: nowrap; }
.ed-foot-more { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-foot-more .btn { flex: 1 1 auto; justify-content: center; height: 36px; padding: 0 10px; font-size: 14px; }
.ed-foot > .btn { justify-content: center; }
.ed-foot .msg:empty, .ed-foot .msg.hidden { display: none; }
.ed-foot .ed-undo { display: inline-flex; gap: 4px; }
/* Club/Business article editor: name + switches as the first panel card, the stage never wider than the screen */
.cl-eside .cl-pname { font-size: 18px; }
.cl-eswitches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.cl-opt { font-size: 13px; font-weight: 500; margin: 0 0 0 4px; }
.cl-edit > * { min-width: 0; max-width: 100%; }
@media (max-width: 1200px) { .cl-edit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cl-stage-card, .ar-stage-card { padding: 12px; } .cl-stage, .ar-stage { padding: 8px; } }
/* Artikel-Assistent, areas step: zoom floats in the photo, "Weiß entfernen" sits in the side panel */
.wz-stagecol > .wz-view { width: min(100%, 600px); }
.wz-view > .wz-scroll { width: 100%; }
.wz-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wz-phototools { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.wz-phototools h3 { margin: 0; }
.wz-phototools .sub { margin: 0; font-size: 13px; }
@media (max-width: 760px) {
  .ed-pill { left: 8px; bottom: 8px; max-width: calc(100% - 16px); gap: 0; }
  .ed-pill .icon-btn { width: 30px; height: 30px; }
  .ed-pill .ed-sep { display: none; }
  .ed-zoomv { min-width: 42px; height: 30px; }
  .ed-pill .seg { margin-right: 4px; }
  .ed-pill .seg button { height: 28px; padding: 0 6px; }
}

/* ---- Shop Hub: one list, the switch Vereine | Firmen, the wizard „Shop erstellen“ ---- */
.sh-switch { margin: 0 0 14px; }
.sh-filter { margin: 0 0 16px; }
.sh-kind { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.sh-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.sh-kindcard { display: grid; gap: 6px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.sh-kindcard [data-icon] svg, .sh-kindcard > span:first-child svg { width: 26px; height: 26px; color: var(--accent); }
.sh-kindcard b { font-size: 15px; }
.sh-kindcard:hover { border-color: var(--accent); }
.sh-kindcard.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--accent-soft); }
.sh-done { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.sh-done h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.sh-link { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.sh-link input { flex: 1 1 240px; min-width: 0; }
.sh-preview { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
@media (max-width: 860px) { .sh-done { grid-template-columns: 1fr; } .sh-preview { height: 320px; } }
.sh-check { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 40px; font-size: 14px; }
.sh-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---- Tarif & Buchung: four tariff cards ---- */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.plan-card.featured { border: 2px solid var(--accent); }
.plan-card.current { background: var(--accent-soft); }
.plan-card h3 { margin: 0; font-size: 17px; }
.plan-badge { position: absolute; top: -11px; left: 14px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.plan-price b { display: block; font-size: 26px; letter-spacing: -.5px; }
.plan-price span { font-size: 12px; color: var(--muted); }
.plan-card .sub { flex: 1; margin: 0; }
.plan-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.plan-usage { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: 13px; }
.plan-use b { font-weight: 700; }
.plan-use.full { color: var(--danger, #c0392b); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }
.td-card { margin-top: 14px; }
.td-list { display: grid; gap: 8px; margin-top: 10px; }
.td-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.td-row .sub { display: block; margin: 0; }

/* ---- Eigene Domain ---- */
.dm-state { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; }
.dm-state p { flex-basis: 100%; margin: 0; }
.dm-err { color: var(--danger, #c0392b); }
.dm-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
.dm-table th, .dm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dm-table code { background: var(--card2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.dm-table small { display: block; margin-top: 4px; }
.dm-steps { margin: 8px 0 4px; padding-left: 20px; display: grid; gap: 6px; }
.dm-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dm-check li::before { content: '✗'; margin-right: 8px; color: var(--danger, #c0392b); font-weight: 700; }
.dm-check li.ok::before { content: '✓'; color: var(--accent); }

/* Verwaltung → Rechnungsprogramm (invoicing.js) */
.iv-help { margin-top: 10px; }
.iv-bb { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--card2); }
.iv-bb p { margin: 0 0 8px; }
.iv-bb-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; }
.iv-bb-row code { overflow-wrap: anywhere; font-size: 13px; padding: 6px 8px; border-radius: 6px; background: var(--card); }
.iv-err { color: var(--err, #dc2626); }
.iv-failed { display: grid; gap: 6px; }
.iv-failed a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--card2); color: inherit; text-decoration: none; }
.iv-failed a span { font-size: 13px; color: var(--err, #dc2626); }
.iv-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.iv-lines td { padding: 6px 4px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); vertical-align: top; }
.iv-lines td:first-child { white-space: nowrap; width: 1%; }
.iv-lines td.num { text-align: right; white-space: nowrap; width: 1%; }
.od-inv .ms-state { margin-left: auto; }
.st.st-inv { background: #dcfce7; color: #166534; margin-left: 6px; } .st.st-inv.fehler { background: #fee2e2; color: #991b1b; }
.st.st-inv.bereit, .st.st-inv.wartet { background: #fef3c7; color: #92400e; }
@media (max-width: 560px) { .iv-bb-row { grid-template-columns: 1fr auto; } .iv-bb-row span { grid-column: 1 / -1; } }
.iv-count { margin: 0 0 8px; font-size: 14px; }

/* Verwaltung → Lieferschein (deliverynote.js): preview left, settings right */
.dn-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .dn-edit { grid-template-columns: 1fr; } }
.dn-view { padding: 16px; background: var(--card2); position: sticky; top: 12px; }
.dn-paper { background: #fff; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.14); aspect-ratio: 210 / 297; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dn-paper img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dn-wait { color: #6b7280; font-size: 14px; }
.dn-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dn-designs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dn-design { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border: 2px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.dn-design.active { border-color: var(--accent, #1f6feb); }
.dn-mini { position: relative; width: 70px; height: 96px; background: #fff; border: 1px solid #d5dbe3; border-radius: 3px; overflow: hidden; }
.dn-mini i { position: absolute; right: 7px; top: 7px; width: 22px; height: 8px; background: #9aa5b1; border-radius: 2px; }
.dn-mini b { position: absolute; left: 7px; top: 34px; width: 30px; height: 5px; background: #1b1f24; border-radius: 1px; }
.dn-mini em { position: absolute; left: 7px; right: 7px; height: 4px; background: #e5e9ee; }
.dn-mini em:nth-of-type(1) { top: 46px; background: #c9d1da; } .dn-mini em:nth-of-type(2) { top: 54px; } .dn-mini em:nth-of-type(3) { top: 62px; }
.dn-mini.modern::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent, #1f6feb); }
.dn-mini.modern i { left: 7px; right: auto; background: var(--accent, #1f6feb); }
.dn-mini.modern b { background: var(--accent, #1f6feb); }
.dn-mini.modern em:nth-of-type(1) { background: var(--accent, #1f6feb); }
.dn-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dn-logo-pic { width: 140px; height: 56px; border: 1px dashed var(--line2); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 4px; }
.dn-logo-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.dn-row:first-of-type { border-top: 0; }
.dn-row .sub { margin: 2px 0 0; }
.dn-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; }
.form.one { grid-template-columns: 1fr; }

/* article editor: the areas of a view as a list (Bereiche card without a selection) */
.ar-zlist { display: grid; gap: 6px; }
.ar-zrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ar-zrow:hover { border-color: var(--accent); }
.ar-zrow span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ar-zrow.excl b { font-weight: 600; } .ar-zrow.excl span { color: var(--err, #dc2626); }
.ar-zempty { margin: 0; color: var(--muted); }

/* Shop erstellen → Für wen: the explanation behind a small ⓘ (help texts „Kompakt“), visible in „Ausführlich“ */
.sh-kind-i { display: none; position: relative; place-items: center; width: 17px; height: 17px; margin-left: 7px; border: 1.5px solid var(--accent); border-radius: 50%;
  color: var(--accent); font: italic 700 11px/1 Georgia, "Times New Roman", serif; vertical-align: 2px; cursor: help; }
body.help-compact .sh-kind-i { display: inline-grid; }
body.help-compact .sh-kind-txt { display: none; }
.sh-kind-i:hover, .sh-kind-i:focus-visible { background: var(--accent); color: #fff; outline: none; }
body.help-compact .sh-kindcard.tip .sh-kind-txt { display: block; }
.sh-kindcard.tip .sh-kind-i { background: var(--accent); color: #fff; }

/* Shop-Link & QR: hint for the own domain */
.cl-domhint { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card2); }
.cl-domhint > [data-icon] svg { width: 22px; height: 22px; color: var(--accent); }
.cl-domhint > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cl-domhint > div span { color: var(--muted); font-size: 13.5px; }
.cl-domhint.ok { border-color: color-mix(in srgb, var(--ok, #16a34a) 40%, var(--line2)); }
@media (max-width: 640px) { .cl-domhint { flex-wrap: wrap; } .cl-domhint .btn { width: 100%; justify-content: center; } }

/* Shopdesign → Titelbild → Galerie (free backgrounds) */
.hg-card { width: min(920px, 100%); max-height: 88vh; overflow: auto; }
.hg-card #hgCats { margin-bottom: 14px; }
.hg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hg-item { display: grid; gap: 6px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; color: var(--text); font: inherit;
  font-weight: 600; text-align: left; cursor: pointer; }
.hg-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.hg-item span { padding: 0 4px 4px; font-size: 14px; }
.hg-item:hover { border-color: var(--accent); }
.hg-item.busy { opacity: .5; cursor: progress; }

/* Shop erstellen → Logo & Farben: free title pictures */
.sh-heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sh-hero { padding: 0; border: 2px solid var(--line2); border-radius: 10px; background: var(--card2); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.sh-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero.none { display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.sh-hero.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* the menu scrolls by itself – name, role and version always stay at the bottom edge of the drawer (free space above) */
.app .side { height: 100vh; height: 100dvh; overflow: hidden; }
.app .side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: 8px; }
.app .side .nav > *, .app .side > :not(.nav) { flex-shrink: 0; }
.app .side .user-box { margin-top: auto; flex: none; background: var(--bg2); }
.app .side .app-version { flex: none; padding-bottom: 10px; }

/* top right: everything on one line (the language button sits centred – so do the others) and „Mein Konto“ */
.topbar > .help-btn, .topbar > .trial-pill, .topbar > .pay-pill, .topbar > .timer-pill, .topbar > .acct, .topbar > .lang-wrap { align-self: center; }
.topbar > .help-btn { margin: 6px 4px; }
.acct { position: relative; flex: none; margin: 6px 12px 6px 4px; }
.acct-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { border-color: var(--accent); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 230px; padding: 6px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line2); box-shadow: 0 12px 32px rgba(0,0,0,.18); display: grid; }
.acct-menu.hidden { display: none; }
.acct-head { display: grid; gap: 1px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-head b { font-size: 14px; } .acct-head span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text);
  font: inherit; font-size: 14px; text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--card2); }
.acct-menu .ic { width: 17px; height: 17px; color: var(--muted); }
.acct-menu #acctLogout { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--err, #dc2626); }
.acct-menu #acctLogout .ic { color: var(--err, #dc2626); }

/* sub entries sit a little to the right of their group name (group heads have a 4 px edge on the left, open or not) */
@media (max-width: 520px) { .topbar > .trial-pill { display: none; } }
