@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
/* Referenzdesign: schwarze Arbeitsfläche, violette Akzente und Limette. */
:root, :root[data-theme="dark"] {
  font-family: "Manrope", "Segoe UI", sans-serif;
  --ink: #f5f5f5; --muted: #b0afb6; --line: #303034;
  --blue: #8050ee; --canvas: #09090b; --surface: #19191c;
  --side: #09090b; --subtle: #222225; --accent: #33214f;
  --link-color: #c2a5ff; --good: #c6ed73; --bad: #ff9eae;
  --success-bg: #26301b; --error-bg: #3d202a;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #211a31; --muted: #655e72; --line: #e0dbe9;
  --canvas: #f5f2fa; --surface: #ffffff; --side: #f5f2fa;
  --subtle: #eee9f5; --accent: #e5d8ff; --link-color: #6530c5;
  --good: #426415; --bad: #b1324c; --success-bg: #e9f2d8; --error-bg: #fce7eb;
  color-scheme: light;
}
html { min-height: 100%; background: radial-gradient(ellipse at 0 0, #bbd96b55, transparent 34%), radial-gradient(ellipse at 100% 0, #8850e77a, transparent 48%), #131016; }
body { margin: 22px; min-height: calc(100vh - 44px); border: 1px solid #ffffff12; border-radius: 28px; background: var(--canvas); color: var(--ink); box-shadow: 0 24px 80px #00000030; }
.sidebar { position: fixed; inset: 22px auto 22px 22px; width: 220px; height: auto; padding: 28px 18px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 18px; background: var(--canvas); border: 0; border-right: 1px solid var(--line); border-radius: 28px 0 0 28px; overflow-y: auto; }
.brand { padding: 0; min-width: 170px; font-weight: 600; letter-spacing: -.5px; }
.brand-mark { border-radius: 50%; background: conic-gradient(from 0deg, #7e3cf0, #c1a0ff, #f1e8ff, #8752e8); color: #251735; font-weight: 500; box-shadow: inset 0 0 12px #ffffff40; }
.nav-label { display: none; }
.workspace-nav { display: grid; gap: 8px; margin: 28px 0 auto; }
.workspace-link { border-radius: 100px; background: var(--surface); padding: 12px 18px; font-size: 13px; font-weight: 400; color: var(--muted); }
.workspace-link[aria-current] { background: var(--ink); color: var(--canvas); }
.workspace-link:hover { background: var(--subtle); color: var(--ink); }
.workspace-link[aria-current]:hover { background: var(--ink); color: var(--canvas); }
#theme-toggle { margin: 0; border-radius: 100px; text-align: center; }
#theme-toggle[aria-pressed="true"] { border-color: var(--line); background: var(--surface); color: var(--muted); }
.local-note { margin: 0; padding: 0; font-size: 11px; }
.local-note small { display: none; }
.status-dot.connected { background: var(--good); }
main { margin: 0 0 0 220px; padding: 32px 30px 38px; min-width: 0; }
h1 { font-size: clamp(30px, 3vw, 44px); font-weight: 450; letter-spacing: -1.4px; line-height: 1.15; }
h2, h3 { font-weight: 550; letter-spacing: -.3px; }
.eyebrow { color: var(--link-color); letter-spacing: 1.8px; font-weight: 500; }
.subtitle { color: var(--muted); font-size: 14px; line-height: 1.6; }
button, .deal-action-buttons a { font-weight: 500; }
.primary { background: var(--ink); color: var(--canvas); border: 1px solid transparent; border-radius: 100px; box-shadow: none; }
.primary:hover { background: var(--link-color); color: var(--canvas); box-shadow: none; }
.secondary, .text-button, .danger { border-radius: 100px; box-shadow: none; }
.secondary { color: var(--ink); background: var(--subtle); border: 1px solid var(--line); }
.secondary:hover { background: var(--accent); border-color: var(--link-color); }
#open-bulk-shipment { color: #fff; background: #7640de; border-color: #7640de; }
#open-bulk-shipment:hover { background: #8954ee; }
input, select, textarea, #shop-toggle { background: var(--subtle); color: var(--ink); border-color: var(--line); border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--link-color); outline-offset: 2px; border-color: var(--link-color); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--link-color); outline-offset: 4px; }
input[type=checkbox] { accent-color: #9765f2; }
.workspace { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.workspace > .section-heading, .filters { padding-inline: 0; }
.workspace > .section-heading { padding-top: 12px; }
.search-hint { margin-inline: 0; }
#deal-list { padding: 0; gap: 16px; }
#deal-months button { border-radius: 100px; border: 1px solid transparent; background: var(--surface); color: var(--muted); }
#deal-months [aria-pressed="true"] { color: var(--canvas); background: var(--ink); border-color: transparent; }
.month-summary { background: linear-gradient(110deg, var(--surface), var(--accent)); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.month-summary strong { font-size: 32px; font-weight: 550; letter-spacing: -.8px; }
.deal-card { border-radius: 22px; padding: 22px; background: var(--surface); border-color: var(--line); box-shadow: none; }
.deal-card-heading h3 { font-size: 19px; font-weight: 550; }
.deal-status { border-radius: 100px; font-weight: 500; padding: 6px 11px; }
.deal-status.complete { color: var(--good); background: var(--success-bg); }
.deal-status.partial { color: var(--link-color); background: var(--accent); }
.deal-status.packed { color: var(--link-color); background: var(--accent); }
.deal-progress { background: var(--subtle); border-radius: 16px; padding: 16px; }
.deal-metric strong { font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.deal-metric:nth-child(2) strong { color: var(--good); }
.deal-metric:nth-child(3) strong { color: var(--link-color); }
.deal-profit strong { font-weight: 550; letter-spacing: -.8px; }
.profit-positive { color: var(--good); }
.booking-panel, .shipment-card, .calendar-panel, .dashboard-panel, .packing-row { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: none; }
.shipment-card.selected { background: var(--accent); border-color: var(--link-color); }
.shipment-badge { border-radius: 100px; font-weight: 500; }
.booking-balance { border-radius: 20px; background: var(--surface); }
.booking-balance dd { font-weight: 500; }
.packing-row.selected { background: var(--accent); border-color: #8060b0; outline: 0; }
.packing-row.unavailable { border-style: dashed; background: var(--subtle); }
.packing-unavailable { color: var(--muted); background: var(--surface); border-radius: 100px; }
.packing-row input[type=checkbox] { accent-color: #c6ed73; }
.packing-row input[type=checkbox]:focus-visible { outline-color: var(--link-color); }
.notice { background: var(--success-bg); color: var(--good); border-color: var(--line); border-radius: 14px; }
.error { background: var(--error-bg); color: var(--bad); border-radius: 14px; }
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 100px #0009; }
dialog::backdrop { background: #050308b8; backdrop-filter: blur(5px); }
.dialog-header, .dialog-body, .dialog-footer { background: var(--surface); border-color: var(--line); }
.form-section, .calculator { border-color: var(--line); }
.shop-options, .article-options { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 12px; }
.shop-options label:hover, .article-options [aria-selected="true"] { background: var(--accent); }
.shipment-layout.overview { grid-template-columns: minmax(0, 1fr); }
.shipment-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 800px) {
  body { margin: 8px; border-radius: 22px; min-height: calc(100vh - 16px); }
  .sidebar { inset: 8px auto 8px 8px; width: 100px; padding: 18px 8px; gap: 16px; border-radius: 22px 0 0 22px; }
  .brand { min-width: 0; justify-content: center; }
  .brand > span:last-child { display: none; }
  .workspace-nav { margin: 12px 0 auto; gap: 10px; }
  .workspace-link { flex-direction: column; justify-content: center; padding: 10px 4px; font-size: 10px; gap: 5px; border-radius: 18px; }
  #theme-toggle { padding: 10px 4px; font-size: 10px; }
  .local-note { display: none; }
  main { margin-left: 100px; padding: 22px 14px; }
  h1 { font-size: 28px; letter-spacing: -.8px; overflow-wrap: anywhere; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-actions { gap: 8px; flex-wrap: wrap; }
  .page-actions button { min-width: 0; padding: 11px 12px; font-size: 12px; }
  .deal-card { padding: 14px; }
  .deal-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; padding: 12px; }
  .deal-metric strong { font-size: 18px; }
  .deal-status { font-size: 11px; }
  .month-summary { padding: 16px; flex-wrap: wrap; }
  .month-summary strong { font-size: 26px; }
  .workspace > .section-heading, .filters { padding-inline: 0; }
  #deal-list { padding: 0; }
  dialog { border-radius: 20px; }
}

#bookings-error { white-space: pre-line; }
