:root {
  --ink: #1c2430;
  --muted: #6b7684;
  --line: #dfe4ea;
  --accent: #1f4a73;
  --accent-ink: #ffffff;
  --tint: #f3f6f9;
  --bg: #eef1f5;
  --card: #ffffff;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --danger: #b3261e;
  --start: #2e7d4f;
  --stop: #b3261e;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 230px;
  --tabbar: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .8rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt { margin-top: 1rem; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* Layout */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--card); border-right: 1px solid var(--line);
           display: flex; flex-direction: column; padding: 18px 14px; }
.main { margin-left: var(--sidebar); padding: 28px 32px 48px; max-width: 1100px; }
.tabbar { display: none; }

.brand { display: flex; align-items: baseline; gap: 6px; padding: 4px 10px 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-weight: 800; letter-spacing: .12em; font-size: 1.1rem; }
.brand-name { color: var(--muted); font-weight: 500; }
.brand-center { justify-content: center; padding-bottom: 12px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--tint); text-decoration: none; }
.nav a.active { background: var(--accent); color: var(--accent-ink); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 12px 6px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-foot .user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.sidebar-foot .user.active, .sidebar-foot .user:hover { background: var(--tint); text-decoration: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 600; }
button.link { background: none; border: 0; color: var(--muted); padding: 6px 10px; cursor: pointer; font: inherit; font-size: .9rem; text-align: left; }
button.link:hover { color: var(--ink); }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(28,36,48,.04); }
.card.narrow { max-width: 640px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 18px; }
/* Nebeneinander stehende Felder bleiben auf einer Linie, auch wenn eine
   Beschriftung zweizeilig wird (z. B. «Passwort (min. 10)»). */
.grid-2 > label, .grid-3 > label { align-content: space-between; }
.span-2 { grid-column: span 2; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .grid-2, .stack .grid-3 { gap: 14px 18px; }

/* Stats */
.stats { display: flex; gap: 22px; }
.stats-inline { margin-bottom: 1rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-v { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bar { height: 6px; background: var(--tint); border-radius: 3px; margin-top: 6px; min-width: 120px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.bar-fill.bar-over { background: var(--danger); }

/* Forms */
/* Beschriftung und Zusatz («Passwort (min. 10)») bleiben auf einer Zeile,
   das Eingabefeld darunter nimmt die volle Breite. */
label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: .88rem; font-weight: 500; color: var(--ink); }
label > input, label > select, label > textarea { flex: 1 0 100%; }
label.check { flex-wrap: nowrap; align-items: center; gap: 8px; font-weight: 400; }
label.check > input { flex: 0 0 auto; width: auto; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=tel], select, textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31,74,115,.35); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7684' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.code-input { font-size: 1.6rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
       background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--tint); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #193c5e; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-danger { color: var(--danger); border-color: #efcfcd; }
.btn-danger:hover { background: #fbeceb; }
.btn-start { background: var(--start); border-color: var(--start); color: #fff; font-size: 1.05rem; padding: 12px 28px; }
.btn-start:hover { background: #256a42; }
.btn-stop { background: var(--stop); border-color: var(--stop); color: #fff; font-size: 1.05rem; padding: 12px 28px; }
.btn-stop:hover { background: #961f18; }
.icon-link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 4px 6px; }
.icon-link:hover { color: var(--accent); text-decoration: none; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tint); border: 1px solid transparent; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; margin: 4px 6px 0 0; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip-active { background: var(--accent); color: #fff; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); vertical-align: middle; margin-left: 4px; }
.tag-ok, .tag-active { background: #e4f3ea; color: var(--ok); }
.tag-paused { background: #fbf1dc; color: var(--warn); }
.tag-done { background: var(--tint); color: var(--muted); }

/* Timer */
.timer { border: 2px solid transparent; }
.timer-running { border-color: var(--start); background: #f4faf6; }
.timer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.timer-label { font-size: .8rem; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.timer-what { font-size: 1.1rem; font-weight: 600; }
.timer-clock { font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.timer-form { display: flex; flex-direction: column; gap: 12px; }
.recent { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-link tbody tr { cursor: pointer; }
.table-link tbody tr:hover td { background: var(--tint); }
.table-compact td { padding: 6px 6px; }
.table .r { text-align: right; }
.show-sm { display: none; }

/* Misc */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; }
.flash-success { background: #e4f3ea; color: var(--ok); }
.flash-error { background: #fbeceb; color: var(--danger); }
.flash-info { background: var(--tint); color: var(--accent); }
.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar input[type=search] { max-width: 260px; }
.filterbar select { width: auto; max-width: 240px; }
.month-label { min-width: 150px; text-align: center; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 .8rem; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.addr { font-style: normal; margin-bottom: .8rem; }
.notes { white-space: pre-line; background: var(--tint); padding: 10px 12px; border-radius: var(--radius-sm); font-size: .93rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.steps { padding-left: 1.2rem; }
.qr-wrap { max-width: 220px; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qr-wrap svg { display: block; width: 100%; height: auto; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; letter-spacing: .05em; background: var(--tint); padding: 10px 12px; border-radius: var(--radius-sm); word-break: break-all; margin-bottom: 6px; user-select: all; }
.logo-preview { background: var(--tint); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; display: inline-block; }
.logo-preview img { max-height: 70px; max-width: 240px; display: block; }
details.menu { position: relative; display: inline-block; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 100%; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(28,36,48,.12); padding: 6px; min-width: 240px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.menu-body form.row { padding: 6px 10px; }
.menu-body form.menu-form { padding: 6px 10px 10px; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-body form.menu-form input { padding: 6px 8px; font-size: .9rem; }

/* Auth */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--card); border-radius: var(--radius); padding: 28px 28px 24px; width: 100%; max-width: 380px; box-shadow: 0 4px 24px rgba(28,36,48,.08); }
.auth-card h1 { font-size: 1.25rem; margin-bottom: 14px; }

/* Mobile */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px 16px calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
            background: var(--card); border-top: 1px solid var(--line); z-index: 20; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; color: var(--muted); font-weight: 500; }
  .tabbar a.active { color: var(--accent); }
  .tabbar svg { width: 22px; height: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hide-sm { display: none; }
  .show-sm { display: block; }
  .card { padding: 16px; border-radius: 12px; }
  .stats { gap: 16px; }
  .stat-v { font-size: 1.15rem; }
  .timer-clock { font-size: 2.2rem; }
  .btn-start, .btn-stop { width: 100%; padding: 14px; font-size: 1.1rem; }
  .page-head h1 { font-size: 1.3rem; }
  .table { font-size: .9rem; }
  .table td { padding: 8px 4px; }
  .table th { padding: 6px 4px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  :root { --sidebar: 200px; }
  .main { padding: 24px; }
}

fieldset.choice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
fieldset.choice legend { font-size: .88rem; font-weight: 500; padding: 0 4px; }
input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
input[type=month] { font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.export-row { margin-bottom: 12px; }

/* Dokumente */
.danger { color: var(--danger); }
.accent { color: var(--accent); }
.tag-sent { background: #e8eef6; color: var(--accent); }
.tag-paid, .tag-accepted { background: #e4f3ea; color: var(--ok); }
.tag-draft { background: var(--tint); color: var(--muted); }
.tag-late, .tag-declined, .tag-cancelled { background: #fbeceb; color: var(--danger); }
.section-title { font-size: .95rem; font-weight: 600; margin: 14px 0 4px; color: var(--accent); }
.bullets { margin: 4px 0 0; padding-left: 18px; }
.table tr.sum td { background: var(--tint); }
.table tr.sum td:first-child { border-radius: 8px 0 0 8px; }
.table tr.sum td:last-child { border-radius: 0 8px 8px 0; }
.grand { margin-left: auto; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.grand strong { font-size: 1.05rem; margin-left: 6px; }
.section-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.section-title[type=text], input.section-title { font-weight: 600; font-size: 1rem; }
.item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); background: #fff; }
.item-main { display: flex; flex-direction: column; gap: 6px; }
.item-main textarea { font-size: .9rem; padding: 7px 10px; min-height: 34px; }
.item-nums { display: grid; grid-template-columns: 128px 60px 96px 84px 80px 28px; gap: 6px; align-items: start; }
.item-nums input { padding: 8px 8px; font-size: .9rem; }
.f-qty, .f-price { text-align: right; }
.f-total { text-align: right; padding: 8px 4px; font-weight: 500; font-variant-numeric: tabular-nums; }
.item-actions { margin-top: 10px; }
.item-actions select.catalog { width: auto; padding: 6px 32px 6px 12px; font-size: .88rem; }
.adjust { margin-left: auto; }
.adjust input { width: 200px; font-size: .9rem; padding: 7px 10px; }
.section-sum { text-align: right; margin-top: 10px; color: var(--muted); }
.section-sum strong { color: var(--ink); margin-left: 6px; }
.sticky-actions { position: sticky; bottom: 12px; background: var(--card); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: 0 4px 20px rgba(28,36,48,.12); width: fit-content; }
@media (max-width: 860px) {
  .item { grid-template-columns: 1fr; }
  .item-grip { flex-direction: row; justify-content: flex-start; gap: 14px; padding-top: 0; }
  .item-grip .drag-handle { display: none; }
  .item-grip .icon-link { font-size: 1.25rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .catalog-pick, .catalog-pick input { width: 100%; }
  .catalog-list { max-height: 50vh; }
  .item-nums { grid-template-columns: 1fr 1fr 1fr; }
  .item-nums .f-date { grid-column: span 2; }
  .item-nums .f-total { grid-column: span 2; }
  .adjust { margin-left: 0; }
  .adjust input { width: 100%; }
  .sticky-actions { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); }
  .grand { margin-left: 0; }
}
.item.from-time .f-title { border-left: 3px solid var(--accent); }
.item-nums.sub-nums { grid-template-columns: 60px 96px 84px 80px 28px; }
.due-box { border: 2px solid var(--warn); }
@media (max-width: 860px) { .item-nums.sub-nums { grid-template-columns: 1fr 1fr 1fr; } }
/* Auswertung */
.bars { display: flex; gap: 6px; align-items: flex-end; height: 140px; margin: 10px 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-stack { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-fill-v { width: 100%; background: #c9d6e4; border-radius: 4px 4px 0 0; position: relative; min-height: 2px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-paid { width: 100%; background: var(--accent); }
.bar-hours { background: var(--accent); opacity: .75; }
.bar-label { font-size: .68rem; color: var(--muted); margin-top: 4px; }
.mt-s { margin-top: 6px; }
.row.mt-s select { width: auto; max-width: 320px; font-size: .88rem; padding: 6px 30px 6px 10px; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::before { content: '▸ '; color: var(--muted); }
details.card[open] summary::before { content: '▾ '; }
.pre { white-space: pre-line; }
.grand .small { font-weight: 400; opacity: .85; margin-right: 8px; }
#discount { margin-left: 0; }
#discount input { width: 260px; }

/* Positionen verschieben */
.item-grip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; }
.drag-handle { cursor: grab; color: #c2cad4; font-size: 1.05rem; line-height: 1; user-select: none; letter-spacing: -2px; }
.drag-handle:active { cursor: grabbing; }
.item:hover .drag-handle { color: var(--muted); }
.item-grip .icon-link { line-height: 1; padding: 1px 4px; font-size: .95rem; }
.item.dragging { opacity: .45; outline: 2px dashed var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.dragging-now .items { min-height: 28px; }
.dragging-now .item-main, .dragging-now .item-nums { pointer-events: none; }
.item.just-moved { animation: flash-move .6s ease; }
@keyframes flash-move { from { background: #e8eef6; } to { background: #fff; } }
.items { min-height: 4px; }

/* Katalog-Suche */
.catalog-pick { position: relative; }
.catalog-pick input.catalog-search { width: 240px; font-size: .88rem; padding: 7px 10px 7px 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 8px center; }
.catalog-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 420px; max-width: 86vw; max-height: 340px; overflow-y: auto;
                background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(28,36,48,.14); padding: 4px; }
.catalog-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.catalog-opt:hover, .catalog-opt.is-active { background: var(--tint); }
.co-name { font-size: .9rem; font-weight: 500; }
.co-price { font-size: .82rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-desc { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-empty { padding: 10px; color: var(--muted); font-size: .88rem; }

/* Abschlussblock: Rabatt und Skonto sichtbar beim Total */
.closing .card-head { align-items: center; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.closing-box { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.closing-box h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.closing-box .row { flex-wrap: wrap; align-items: center; gap: 8px; }
.closing-box p.small { margin: 8px 0 0; }
.closing .grand { font-size: 17px; }
@media (max-width: 760px) {
  .closing-grid { grid-template-columns: 1fr; gap: 12px; }
  .closing .card-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Logo: Original und PDF-Darstellung nebeneinander */
.logo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.logo-compare p { margin: 4px 0 0; }
@media (max-width: 760px) { .logo-compare { grid-template-columns: 1fr; } }
.logo-leer { display: flex; align-items: center; justify-content: center; min-height: 60px;
  border: 1px dashed var(--line); border-radius: 8px; color: #9aa3ad; font-size: 13px; }
.warn { color: #b4530a; }

/* Zeiten-Import */
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row-bad td { background: #fdf0ec; color: #8a3b14; }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } }

/* Statuskarte: Hauptaktionen gruppiert, Nebenaktionen abgesetzt */
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.status-actions > form:not(.pay-row) { display: contents; }
.status-actions .pay-row { display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px 10px 5px 5px; background: var(--bg); }
.status-actions .pay-row .btn { border-color: transparent; background: #fff; }
label.pay-date { flex-wrap: nowrap; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 400; margin: 0; }
label.pay-date > input { flex: 0 0 auto; padding: 6px 8px; width: auto; }
.status-minor { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.status-minor .link { font-size: .9rem; }
@media (max-width: 560px) {
  .status-actions { flex-direction: column; align-items: stretch; }
  .status-actions .pay-row { justify-content: space-between; }
}

/* Dateiauswahl: der browsereigene Knopf passt sonst nicht ins Bild */
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 500; cursor: pointer; margin-right: 10px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
input[type=file]::file-selector-button:hover { background: var(--tint); }
.logo-actions { align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-compare .logo-preview img { max-height: 70px; }
