@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* To-dos */
.todo-page-head {
  align-items: center;
}
.todo-head-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.todo-head-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(28,31,34,.76);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  font-size: 12px;
}
.todo-head-metrics strong {
  color: var(--sand);
  font-size: 17px;
}
.todo-head-metrics .is-alert strong {
  color: var(--danger);
}
.todo-compose {
  margin-bottom: 16px;
  background:
    radial-gradient(circle at top right, rgba(196,154,122,.12), transparent 32%),
    rgba(28,31,34,.9);
}
.todo-compose.is-editing {
  border-color: rgba(220,201,178,.38);
}
.todo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.todo-section-head span {
  color: var(--tan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.todo-section-head h2 {
  margin: 2px 0 0;
  font-size: 34px;
}
.todo-form {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(145px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.todo-form .todo-details-field {
  grid-column: 1 / -2;
}
.todo-form .todo-attachment-field {
  grid-column: 1 / -1;
}
.todo-form textarea {
  min-height: 78px;
}
.todo-submit {
  min-height: 48px;
  align-self: end;
}
.todo-attachment-field .kv-dropzone {
  min-height: 112px;
  padding: 16px;
}
.todo-existing-attachments {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.todo-existing-attachments h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.todo-attachment-list {
  display: grid;
  gap: 8px;
}
.todo-attachment-list .file-chip {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
}
.todo-attachments-toggle {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.todo-attachments-toggle > summary {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 7px 10px;
  color: var(--sand);
  background: rgba(196,154,122,.08);
  border: 1px solid rgba(196,154,122,.24);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.todo-attachments-toggle > summary::-webkit-details-marker {
  display: none;
}
.todo-attachments-toggle > summary:hover {
  background: rgba(196,154,122,.14);
  border-color: rgba(196,154,122,.38);
}
.todo-attachments-toggle__hide {
  display: none;
}
.todo-attachments-toggle[open] .todo-attachments-toggle__show {
  display: none;
}
.todo-attachments-toggle[open] .todo-attachments-toggle__hide {
  display: inline;
}
.todo-attachments-toggle__chevron {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform 150ms ease;
}
.todo-attachments-toggle[open] .todo-attachments-toggle__chevron {
  transform: rotate(180deg);
}
.todo-attachments-toggle__list {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.todo-attachments-toggle__list .file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
}
.todo-attachments-toggle__list .file-chip > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.todo-attachments-toggle__list .file-chip strong,
.todo-attachments-toggle__list .file-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-attachments-toggle__list .file-chip small {
  color: var(--muted);
}
.todo-attachments-toggle__list .file-chip form {
  margin: 0;
}
.todo-filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.todo-view-tabs {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.todo-view-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 0 auto;
  min-width: 132px;
  color: var(--muted);
  background: rgba(28,31,34,.72);
  border-color: rgba(255,255,255,.09);
}
.todo-view-tabs a strong {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  color: var(--sand);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  font-size: 12px;
}
.todo-view-tabs a.active {
  color: var(--ink);
  background: rgba(196,154,122,.14);
  border-color: rgba(196,154,122,.5);
}
.todo-secondary-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  background: rgba(28,31,34,.62);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.todo-filter-reset {
  align-self: center;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 13px;
}
.todo-list {
  display: grid;
  gap: 10px;
}
.todo-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: rgba(28,31,34,.84);
  border: 1px solid rgba(255,255,255,.09);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0,0,0,.18);
}
.todo-item.is-overdue {
  border-left-color: var(--danger);
}
.todo-item.is-today {
  border-left-color: var(--tan);
}
.todo-item.priority-high:not(.is-overdue):not(.is-today) {
  border-left-color: var(--sand);
}
.todo-item.is-done {
  opacity: .68;
}
.todo-item.is-done h2 {
  text-decoration: line-through;
  text-decoration-color: rgba(220,201,178,.55);
}
.todo-toggle-form {
  margin-top: 2px;
}
.todo-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #11161b;
  background: transparent;
  border: 1px solid rgba(220,201,178,.52);
  border-radius: 50%;
}
.todo-check:hover {
  background: rgba(220,201,178,.14);
}
.todo-item.is-done .todo-check {
  background: var(--ok);
  border-color: var(--ok);
}
.todo-check span {
  font-size: 16px;
  font-weight: 800;
}
.todo-item-content {
  min-width: 0;
}
.todo-item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.todo-item h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.todo-item-content > p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.todo-priority {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.priority-high .todo-priority {
  color: var(--sand);
  background: rgba(196,154,122,.12);
}
.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.todo-meta span,
.todo-meta a {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
}
.todo-meta .todo-customer-pill {
  color: var(--sand);
  border-color: rgba(196,154,122,.2);
}
.todo-meta .todo-customer-pill:hover {
  background: rgba(196,154,122,.13);
  border-color: rgba(196,154,122,.4);
}
.todo-meta .todo-due.is-overdue {
  color: var(--danger);
  border-color: rgba(239,127,103,.28);
}
.todo-meta .todo-due.is-today {
  color: var(--sand);
  border-color: rgba(196,154,122,.34);
}
.todo-meta .todo-due.is-done {
  color: var(--ok);
}
.todo-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.todo-item-actions a,
.todo-item-actions button {
  display: inline-flex;
  padding: 7px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  text-decoration: none;
}
.todo-item-actions a:hover {
  color: var(--sand);
}
.todo-item-actions .text-danger:hover {
  color: var(--danger);
}
.todo-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-block: 48px;
  text-align: center;
}
.todo-empty-state > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--ok);
  border: 1px solid rgba(150,195,140,.36);
  border-radius: 50%;
  font-size: 26px;
}
.todo-empty-state h2,
.todo-empty-state p {
  margin: 0;
}
.todo-empty-state p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .todo-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .todo-form .todo-title-field {
    grid-column: span 2;
  }
  .todo-form .todo-details-field {
    grid-column: 1 / -1;
  }
  .todo-form .todo-attachment-field {
    grid-column: 1 / -1;
  }
  .todo-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .todo-page-head,
  .todo-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .todo-head-metrics {
    justify-content: flex-start;
  }
  .todo-form,
  .todo-secondary-filters {
    grid-template-columns: 1fr;
  }
  .todo-form .todo-title-field,
  .todo-form .todo-details-field,
  .todo-form .todo-attachment-field,
  .todo-submit {
    grid-column: auto;
  }
  .todo-secondary-filters .secondary {
    width: 100%;
  }
  .todo-item {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }
  .todo-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .todo-attachments-toggle__list .file-chip {
    grid-template-columns: 1fr;
  }
  .todo-attachments-toggle__list .file-chip .pill-action,
  .todo-attachments-toggle__list .file-chip form {
    width: 100%;
  }
  .todo-attachments-toggle__list .file-chip .pill-action {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .todo-head-metrics span {
    flex: 1 1 auto;
    justify-content: center;
  }
  .todo-item-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .todo-view-tabs a {
    min-width: 120px;
  }
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f5f6f7;
  --muted: #c7c9c8;
  --bg: #11161b;
  --panel: #1c1f22;
  --panel-2: #282f33;
  --line: #44484e;
  --tan: #c49a7a;
  --sand: #dcc9b2;
  --brown: #8a6a4d;
  --danger: #ef7f67;
  --ok: #96c38c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, rgba(196,154,122,.18), transparent 28%), var(--bg);
  font-family: Montserrat, Arial, sans-serif;
  overflow-x: hidden;
}
body.sidebar-collapsed {
  --sidebar-width: 86px;
}
body:not(.sidebar-collapsed) {
  --sidebar-width: 260px;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 28px 22px;
  background: rgba(17,22,27,.94);
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: width 180ms ease, transform 180ms ease;
  z-index: 20;
}
.brand span {
  display: block;
  width: 42px;
  height: 4px;
  background: var(--tan);
  margin-bottom: 18px;
}
.brand strong, h1, h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0;
  font-weight: 400;
}
.brand strong { display: block; font-size: 36px; }
.brand small, .page-head p, .hero p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 12px;
}
.sidebar-toggle {
  position: absolute;
  top: 22px;
  right: -14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--sand);
  background: #151a1f;
  border: 1px solid rgba(220,201,178,.28);
  z-index: 2;
}
.sidebar-toggle span {
  font-size: 20px;
  line-height: 1;
  transition: transform 180ms ease;
}
nav { display: grid; gap: 8px; }
nav a, .ghost, .link, button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 14px;
  text-decoration: none;
  cursor: pointer;
}
nav a { color: var(--muted); }
nav a,
.logout-form button {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-grid;
  place-items: center;
}
.nav-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-label,
.brand strong,
.brand small {
  transition: opacity 150ms ease;
}
nav a.active, nav a:hover {
  color: var(--ink);
  border-color: rgba(196,154,122,.45);
  background: rgba(196,154,122,.12);
}
.logout-form { margin-top: auto; }
.logout-form button { width: 100%; }
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.sidebar-footer .sidebar-admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  text-decoration: none;
}
.sidebar-footer .sidebar-admin-link:hover,
.sidebar-footer .sidebar-admin-link.active {
  color: var(--ink);
  border-color: rgba(196,154,122,.45);
  background: rgba(196,154,122,.12);
}
.sidebar-footer .logout-form {
  margin-top: 0;
}
.sidebar-footer .nav-icon {
  color: inherit;
}
.workspace {
  margin-left: var(--sidebar-width);
  padding: 34px;
  min-height: 100vh;
  max-width: calc(100vw - var(--sidebar-width));
  overflow-x: hidden;
  transition: margin-left 180ms ease;
}
body.sidebar-collapsed .sidebar {
  padding-inline: 18px;
}
body.sidebar-collapsed .brand strong,
body.sidebar-collapsed .brand small,
body.sidebar-collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}
body.sidebar-collapsed .brand span {
  width: 32px;
}
body.sidebar-collapsed nav a,
body.sidebar-collapsed .logout-form button {
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
}
body.sidebar-collapsed .nav-icon {
  width: 26px;
  min-width: 26px;
  transition: transform 160ms ease, color 160ms ease;
}
body.sidebar-collapsed nav a.active,
body.sidebar-collapsed nav a:hover,
body.sidebar-collapsed .logout-form button:hover {
  border-color: transparent;
  background: transparent;
}
body.sidebar-collapsed nav a.active .nav-icon,
body.sidebar-collapsed nav a:hover .nav-icon,
body.sidebar-collapsed .logout-form button:hover .nav-icon {
  color: var(--sand);
  transform: scale(1.22);
}
body.sidebar-collapsed .sidebar-toggle span {
  transform: rotate(180deg);
}
.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}
.hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: center;
  padding: 42px;
  background: linear-gradient(90deg, rgba(17,22,27,.72), rgba(17,22,27,.32)), url("../images/header.png") center/cover;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.32);
}
.hero-copy-block {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 9vw, 124px);
  line-height: .92;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-date {
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(220,201,178,.24);
  border-radius: 8px;
  background: rgba(17,22,27,.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
}
.hero-date span {
  color: var(--sand);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero-date strong {
  font-size: 18px;
}
.hero-date time {
  color: var(--muted);
  font-size: 14px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head h1 { font-size: clamp(42px, 7vw, 80px); margin: 0; line-height: .95; }
.metrics, .grid.two {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin: 18px 0;
}
.compact-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.metrics article, .panel, .customer-card, .drop-card {
  background: rgba(28,31,34,.86);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.metrics span { display: block; font-size: 46px; font-weight: 800; color: var(--sand); }
.metrics small { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.metrics article.shift-today {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  background:
    radial-gradient(circle at top right, rgba(220,201,178,.16), transparent 32%),
    linear-gradient(145deg, rgba(196,154,122,.14), rgba(28,31,34,.94));
  box-shadow: 0 18px 60px rgba(0,0,0,.24), inset 0 0 0 1px var(--shift-accent);
}
.metrics article.shift-today::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--shift-accent) 0%, rgba(0,0,0,0) 70%);
  opacity: .3;
  pointer-events: none;
}
.metrics article.shift-today span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.metrics article.shift-today strong {
  display: block;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.05;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.dashboard-todos {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 18px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(196,154,122,.13), transparent 34%),
    rgba(28,31,34,.9);
}
.dashboard-todos.has-urgent {
  border-color: rgba(196,154,122,.3);
}
.dashboard-todos__head,
.dashboard-todos__footer,
.dashboard-todos__empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dashboard-todos__head p {
  margin: 0 0 3px;
  color: var(--tan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.dashboard-todos__head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}
.dashboard-todos__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.dashboard-todos__counts a {
  min-width: 92px;
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(17,22,27,.48);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}
.dashboard-todos__counts strong {
  color: var(--sand);
  font-size: 22px;
}
.dashboard-todos__counts span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dashboard-todos__counts .is-alert strong {
  color: var(--danger);
}
.dashboard-todos__list {
  display: grid;
  gap: 7px;
}
.dashboard-todo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(17,22,27,.38);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.dashboard-todo:hover {
  background: rgba(196,154,122,.08);
  border-color: rgba(196,154,122,.32);
  transform: translateX(2px);
}
.dashboard-todo__marker {
  width: 9px;
  height: 9px;
  background: var(--line);
  border-radius: 50%;
}
.dashboard-todo.is-overdue .dashboard-todo__marker {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(239,127,103,.1);
}
.dashboard-todo.is-today .dashboard-todo__marker {
  background: var(--tan);
  box-shadow: 0 0 0 4px rgba(196,154,122,.1);
}
.dashboard-todo__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.dashboard-todo__copy strong,
.dashboard-todo__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-todo__copy strong {
  font-size: 14px;
}
.dashboard-todo__copy small {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-todo.is-overdue .dashboard-todo__copy small {
  color: var(--danger);
}
.dashboard-todo__priority {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dashboard-todos__footer {
  padding-top: 2px;
}
.dashboard-todos__footer > span {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-todos__empty {
  padding: 12px;
  background: rgba(17,22,27,.3);
  border-radius: 8px;
}
.dashboard-todos__empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ok);
  border: 1px solid rgba(150,195,140,.32);
  border-radius: 50%;
}
.dashboard-todos__empty > div {
  display: grid;
  flex: 1;
  gap: 3px;
}
.dashboard-todos__empty small {
  color: var(--muted);
}
@media (max-width: 900px) {
  .dashboard-todos__head,
  .dashboard-todos__footer,
  .dashboard-todos__empty {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-todos__counts {
    width: 100%;
    justify-content: flex-start;
  }
  .dashboard-todos__counts a {
    flex: 1 1 90px;
  }
  .dashboard-todos__footer .link,
  .dashboard-todos__empty .link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 520px) {
  .dashboard-todo {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .dashboard-todo__priority {
    grid-column: 2;
    justify-self: start;
  }
}
.admin-head .head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.admin-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .95;
}
.admin-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}
.admin-intro__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.admin-section-grid {
  margin-top: 18px;
  align-items: stretch;
}
.admin-system-grid {
  align-items: start;
}
.admin-system-lead {
  margin: 0;
}
.admin-system-form {
  max-width: 520px;
}
.admin-system-form label small {
  color: var(--muted);
  line-height: 1.55;
}
.admin-system-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: #11161b;
  background: var(--ok);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.admin-system-info .admin-card__body {
  gap: 4px;
}
.admin-system-files {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}
.admin-system-file-form {
  display: grid;
  gap: 18px;
}
.admin-system-upload-limit {
  max-width: 520px;
}
.admin-system-upload-limit small {
  color: var(--muted);
  line-height: 1.55;
}
.admin-todo-grid,
.admin-todo-bottom-grid {
  align-items: stretch;
}
.admin-todo-settings-form {
  align-items: end;
}
.admin-todo-diagnostics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-todo-diagnostics > div {
  display: grid;
  gap: 3px;
  padding: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
}
.admin-todo-diagnostics strong {
  color: var(--sand);
  font-size: 30px;
}
.admin-todo-diagnostics span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-todo-diagnostics .is-alert strong {
  color: var(--danger);
}
.admin-todo-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.admin-todo-bottom-grid {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .admin-todo-diagnostics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .admin-todo-diagnostics {
    grid-template-columns: 1fr;
  }
}
.admin-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
}
.admin-card .card-header {
  align-items: flex-start;
}
.admin-card .card-header h2 {
  margin-top: 2px;
}
.admin-customer-tools {
  display: grid;
  gap: 14px;
}
.admin-customer-tools form {
  margin: 0;
}
.admin-customer-tools input[type="file"] {
  width: 100%;
}
.admin-customer-bottom-grid {
  align-items: stretch;
  margin-top: 18px;
}
.admin-customer-bottom-grid > .admin-card {
  height: 100%;
}
.admin-inbox-grid {
  align-items: start;
}
.admin-inbox-panel {
  min-width: 0;
}
.admin-inbox-recipient-list {
  margin-top: 18px;
}
.admin-inbox-recipient {
  transition: opacity 160ms ease, border-color 160ms ease;
}
.admin-inbox-recipient.is-inactive {
  opacity: .68;
  border-color: rgba(255,255,255,.06);
}
.admin-inbox-recipient__fields {
  grid-template-columns: minmax(150px, .8fr) minmax(210px, 1.2fr);
}
.admin-inbox-recipient > .admin-customer-actions {
  align-self: center;
  align-content: center;
}
.admin-inbox-save {
  min-height: 44px;
  white-space: nowrap;
}
.extension-check input {
  accent-color: var(--tan);
}
.inbox-default-pill {
  color: #11161b !important;
  background: var(--sand) !important;
  border-color: var(--sand) !important;
  opacity: 1 !important;
}
.admin-inbox-new-recipient {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.admin-inbox-help {
  color: var(--muted);
}
.admin-inbox-mail {
  margin-top: 18px;
}
.mail-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.mail-status.is-ready {
  color: var(--ok);
  border-color: rgba(150,195,140,.34);
  background: rgba(150,195,140,.09);
}
.mail-status.is-pending {
  color: var(--muted);
  background: rgba(255,255,255,.035);
}
.admin-inbox-mail-form {
  margin-top: 18px;
}
.admin-mail-toggle,
.admin-mail-options label {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
}
.admin-mail-toggle input,
.admin-mail-options input {
  accent-color: var(--tan);
}
.admin-mail-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-mail-options label {
  flex: 1 1 210px;
  cursor: pointer;
}
.admin-mail-options label.is-danger {
  color: var(--danger);
  border-color: rgba(239,127,103,.28);
}
.admin-mail-save {
  display: flex;
  justify-content: flex-end;
}
.admin-mail-test {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.admin-mail-test > div {
  display: grid;
  gap: 4px;
}
.admin-mail-test span {
  color: var(--muted);
  font-size: 13px;
}
.admin-mail-test button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.drop-mail-state.is-sent {
  color: var(--ok);
  border-color: rgba(150,195,140,.3);
  background: rgba(150,195,140,.08);
}
.drop-mail-state.is-pending {
  color: var(--sand);
  border-color: rgba(220,201,178,.3);
  background: rgba(220,201,178,.08);
}
.drop-mail-state.is-failed {
  color: var(--danger);
  border-color: rgba(239,127,103,.3);
  background: rgba(239,127,103,.08);
}
.extension-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.extension-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.extension-check:has(input:checked) {
  color: var(--sand);
  border-color: rgba(196,154,122,.38);
  background: rgba(196,154,122,.09);
}
.extension-check span {
  font-size: 13px;
  font-weight: 600;
}
.admin-inbox-extension-actions {
  margin-bottom: 12px;
}
.admin-customer-panel .form-grid.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: 100%;
}
.admin-customer-panel .form-grid.compact label {
  width: 100%;
  min-width: 0;
}
.admin-customer-panel .form-grid.compact input:not([type="hidden"]):not([type="file"]) {
  width: 100%;
}
.admin-card__body {
  display: grid;
  gap: 10px;
}
.admin-card__body h2 {
  margin: 0;
}
.admin-card__eyebrow {
  margin: 0;
  color: var(--sand);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.admin-card__body p:last-child {
  margin: 0;
}
.admin-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
}
.admin-card__cta:hover {
  transform: translateY(-1px);
}
.admin-card__cta.primary {
  color: #11161b;
  background: var(--sand);
  border-color: var(--sand);
  font-weight: 800;
}
.admin-roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-roadmap li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-roadmap li:last-child {
  border-bottom: 0;
}
.admin-roadmap span {
  color: var(--ink);
}
.admin-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-note-grid div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.admin-note-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sand);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 26px;
  line-height: 1;
}
.admin-note-grid span {
  display: block;
  min-width: 0;
}
.admin-note-grid .truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inline-code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sync-error-details {
  margin: -4px 0 0;
  color: var(--muted);
}
.sync-error-details summary {
  cursor: pointer;
  color: var(--sand);
  font-weight: 700;
}
.sync-error-details pre {
  margin: 10px 0 0;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  line-height: 1.45;
}
.admin-calendar-grid {
  margin-top: 18px;
  align-items: stretch;
}
.admin-calendar-side {
  display: grid;
  gap: 18px;
}
.admin-calendar-panel {
  display: grid;
  gap: 18px;
  height: 100%;
}
.admin-calendar-panel > p {
  margin: 0;
}
.admin-calendar-panel .admin-calendar-form {
  display: grid;
  gap: 18px;
}
.calendar-shift-list {
  display: grid;
  gap: 18px;
}
.shift-setting {
  border-left: 4px solid var(--shift-color, var(--tan));
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}
.shift-setting.is-disabled {
  opacity: .7;
  background: rgba(255,255,255,.02);
}
.shift-setting__summary {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.shift-setting__summary::-webkit-details-marker {
  display: none;
}
.shift-setting__summary:hover {
  background: rgba(255,255,255,.025);
}
.shift-setting__meta {
  display: grid;
  gap: 4px;
  align-self: start;
}
.shift-setting__meta strong {
  color: var(--ink);
  font-size: 16px;
}
.shift-setting__meta span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.shift-setting__chevron {
  flex: 0 0 auto;
  color: var(--sand);
  font-size: 22px;
  line-height: 1;
  transition: transform .18s ease;
}
.shift-setting[open] .shift-setting__chevron {
  transform: rotate(45deg);
}
.shift-setting__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
.shift-edit-form {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, .75fr));
  gap: 10px;
  align-items: end;
}
.shift-edit-form label,
.calendar-new-shift label {
  display: grid;
  gap: 6px;
  margin: 0;
}
.shift-setting input[type="color"],
.calendar-new-shift input[type="color"] {
  min-height: 44px;
  padding: 4px;
}
.shift-row-actions {
  margin-top: 2px;
}
.shift-delete-form {
  display: flex;
  justify-content: flex-end;
}
.shift-delete-form .danger {
  min-width: 120px;
}
.calendar-new-shift {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 8px;
}
.calendar-new-shift-panel {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 4px 0 0 var(--tan);
}
.calendar-new-shift-panel .collapse-toggle {
  border-bottom-color: rgba(255,255,255,.08);
}
.admin-calendar-panel .workdays-fieldset {
  margin: 0;
}
.shift-calendar-actions {
  margin-top: 0;
  justify-content: flex-end;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  color-scheme: light;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(88%) sepia(15%) saturate(360%) hue-rotate(349deg) brightness(102%) contrast(92%);
  opacity: .92;
  cursor: pointer;
}
@media (max-width: 1280px) and (min-width: 901px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
h2 { font-size: 34px; margin: 0 0 14px; }
h3 { margin: 0 0 8px; }
p { color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: end; }
.form-grid.wide { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-stack { display: grid; gap: 14px; }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
input, select, textarea {
  width: 100%;
  color: var(--ink);
  background: #151a1f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 12px;
}
textarea { min-height: 110px; resize: vertical; }
.primary, .secondary {
  color: #11161b;
  background: var(--sand);
  border-color: var(--sand);
  font-weight: 800;
}
.full-submit {
  width: 100%;
  min-height: 48px;
}
.collapsible-panel {
  padding: 0;
  overflow: hidden;
}
.collapsible-panel input,
.collapsible-panel select,
.collapsible-panel textarea {
  border: 1px solid rgba(255,255,255,.16);
  outline: 1px solid transparent;
  outline-offset: -1px;
}
.collapsible-panel input:focus,
.collapsible-panel select:focus,
.collapsible-panel textarea:focus {
  border-color: rgba(220,201,178,.56);
}
.collapse-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  color: var(--ink);
  background: rgba(255,255,255,.035);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  text-align: left;
}
.collapse-toggle span {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 32px;
}
.collapse-toggle strong {
  color: var(--sand);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.collapse-content {
  padding: 22px;
}
.collapse-content.collapsed {
  display: none;
}
.secondary { color: var(--ink); background: transparent; border-color: var(--tan); }
.ghost { color: var(--muted); background: transparent; border-color: rgba(255,255,255,.12); }
.danger, .text-danger { color: var(--danger); background: transparent; border-color: rgba(239,127,103,.45); }
.text-danger { padding: 0; border: 0; }
.google-sync-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  min-width: 220px;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  appearance: none;
  -webkit-appearance: none;
  border-color: transparent;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.google-sync-button.is-disconnected {
  background: linear-gradient(180deg, #cf5c4f 0%, #a94036 100%);
  box-shadow: 0 12px 24px rgba(169, 64, 54, .24);
}
.google-sync-button.is-disconnected:hover {
  background: linear-gradient(180deg, #da6a5f 0%, #bc4d42 100%);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(169, 64, 54, .32);
}
.google-sync-button.is-connected {
  background: linear-gradient(180deg, #3f9b69 0%, #2f7d53 100%);
  box-shadow: 0 12px 24px rgba(47, 125, 83, .22);
}
.google-sync-button.is-connected:hover {
  background: linear-gradient(180deg, #4aa574 0%, #37895d 100%);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(47, 125, 83, .3);
}
.google-sync-button:active {
  transform: translateY(1px);
}
.google-sync-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.google-sync-actions__left {
  flex: 0 0 auto;
}
.google-sync-actions__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.google-sync-actions__right form {
  margin: 0;
}
.google-sync-actions__right button {
  min-width: 0;
}
.google-sync-hidden-form {
  display: none;
}
.customer-list, .drop-list { display: grid; gap: 18px; margin-top: 18px; }
.customer-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
}
.customer-create-grid { margin-bottom: 18px; }
.customer-create-collapsed { margin-bottom: 18px; }
.kunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.kunden-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(28,31,34,.86);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.kunden-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220,201,178,.34);
  background: rgba(35,39,42,.92);
}
.kunden-card__body { min-width: 0; display: grid; gap: 4px; }
.kunden-card__body h3 { margin: 0; font-size: 30px; }
.kunden-card__meta, .kunden-card__matches {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kunden-card__matches { color: var(--sand); }
.kunden-card__badge {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(220,201,178,.13);
  border: 1px solid rgba(220,201,178,.28);
  color: var(--sand);
  font-weight: 800;
  font-size: 12px;
}
.kunden-card__stats {
  grid-column: 2 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kunden-card__stats span {
  color: var(--muted);
  font-size: 12px;
}
.customer-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.customer-detail-head a { color: var(--sand); text-decoration: none; }
.page-actions { display: flex; gap: 10px; }
.customer-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.customer-profile {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}
.customer-profile h2 { margin: 0; font-size: 42px; }
.customer-avatar.large {
  width: 76px;
  height: 76px;
  font-size: 45px;
}
.customer-profile .customer-contact { grid-template-columns: 1fr; margin: 0; }
.customer-detail-main { display: grid; gap: 18px; min-width: 0; }
.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.full-width { width: 100%; }
.customer-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.customer-titleline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.customer-avatar {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(220,201,178,.16);
  border: 1px solid rgba(220,201,178,.38);
  color: var(--sand);
  font: 34px/1 var(--display);
}
.customer-avatar--image {
  overflow: hidden;
  padding: 0;
}
.customer-avatar--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.customer-avatar-field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.customer-avatar-field__title {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 2px;
}
.customer-avatar-field__content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.customer-avatar-field__preview {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}
.customer-avatar-field .customer-avatar {
  width: 88px;
  height: 88px;
  font-size: 36px;
}
.customer-avatar-field .avatar-preview {
  width: 88px;
  height: 88px;
}
.customer-avatar-field__body {
  display: grid;
  min-width: 0;
  align-self: center;
}
.customer-avatar-uploadbox {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px dashed rgba(220,201,178,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.customer-avatar-uploadbox:hover {
  border-color: rgba(220,201,178,.42);
  background: rgba(255,255,255,.045);
}
.customer-avatar-uploadbox.avatar-dropzone-active {
  border-color: rgba(220,201,178,.78);
  background: rgba(220,201,178,.08);
  box-shadow: 0 0 0 1px rgba(220,201,178,.12), inset 0 0 0 1px rgba(220,201,178,.12);
  transform: translateY(-1px);
}
.customer-avatar-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  color: inherit;
}
.customer-avatar-field input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid rgba(220,201,178,.34);
  border-radius: 999px;
  background: rgba(220,201,178,.12);
  color: var(--sand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.customer-avatar-uploadbox input[type="file"] {
  cursor: pointer;
}
.customer-avatar-field small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.avatar-remove-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(17,22,27,.18);
  border-radius: 50%;
  background: rgba(17,22,27,.75);
  color: #fff;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  cursor: pointer;
}
.avatar-remove-button:hover {
  background: rgba(239,127,103,.92);
  border-color: rgba(239,127,103,.96);
}
.customer-avatar-placeholder {
  border-style: dashed;
  font-size: 30px;
}
.customer-top h2 { margin-bottom: 2px; }
.customer-top p span {
  color: var(--sand);
  border-left: 1px solid rgba(255,255,255,.16);
  margin-left: 8px;
  padding-left: 8px;
}
.customer-card__status-row span {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}
.customer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 18px 0;
}
.customer-contact div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.customer-contact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.customer-contact strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.customer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  align-items: start;
}
.customer-subpanel {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255,255,255,.025);
}
.customer-timeline { grid-column: 1 / -1; }
.subpanel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.subpanel-head h3 { margin: 0; font-size: 25px; }
.subpanel-head h3 span { color: var(--tan); }
.form-grid.compact { gap: 10px; }
.form-grid.compact textarea { min-height: 86px; }
.project-row, .note-edit {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(196,154,122,.22);
  border-radius: 8px;
  background: rgba(196,154,122,.055);
}
.project-row summary, .note-edit summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-row p { color: var(--muted); margin: 10px 0; }
.status-pill, .note-type, .match-row span, .duplicate-warning span, .file-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(220,201,178,.28);
  background: rgba(220,201,178,.13);
  color: var(--sand);
  font-weight: 800;
  font-size: 12px;
}
.match-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.duplicate-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid rgba(239,127,103,.35);
  background: rgba(239,127,103,.08);
}
.duplicate-warning strong { color: var(--danger); margin-right: 4px; }
mark {
  background: rgba(220,201,178,.35);
  color: var(--ink);
  border-radius: 4px;
  padding: 0 3px;
}
.kv-surface {
  min-height: calc(100vh - 52px);
  margin: -4px;
  padding: 28px;
  border-radius: 8px;
  background: #efede9;
  color: #2a2f35;
}
.kv-surface .panel,
.kv-surface .customer-subpanel,
.kv-surface .kunden-card {
  background: #fff;
  border: 1px solid #e2ded7;
  box-shadow: 0 4px 14px rgba(42,47,53,.1);
}
.kv-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.kv-surface .customer-search {
  width: min(920px, 100%);
  grid-template-columns: minmax(0, 1fr) 98px;
  margin-bottom: 24px;
}
.kv-surface input,
.kv-surface select,
.kv-surface textarea {
  background: #fff;
  border-color: #ded8d0;
  color: #2a2f35;
}
.kv-surface label { color: #68707a; font-weight: 800; }
.kv-surface button.secondary,
.kv-surface a.secondary {
  background: #e6e0d8;
  color: #26303a;
  border-color: #e6e0d8;
}
.kv-surface .customer-create-collapsed {
  width: min(920px, 100%);
  margin-bottom: 24px;
}
.kv-surface .kunden-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.kv-surface .kunden-card {
  min-height: 102px;
  color: #2a2f35;
  box-shadow: none;
}
.kv-surface .kunden-card:hover {
  transform: translateY(-1px);
  border-color: #d4c8bb;
  background: #fff;
}
.kv-surface .kunden-card__body h3 {
  color: #18212b;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 800;
}
.kv-surface .kunden-card__meta,
.kv-surface .kunden-card__stats span {
  color: #56606b;
  font-size: 13px;
}
.kv-surface .kunden-card__badge {
  background: #f5f3f0;
  border: 0;
  color: #56606b;
  font-weight: 500;
}
.kv-surface .customer-avatar {
  border-radius: 50%;
  background: #ad8060;
  border: 0;
  color: #fff;
  font-family: var(--body);
  font-size: 20px;
  font-weight: 800;
}
.kv-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.kv-detail-actions > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.kv-back {
  color: #56606b;
  text-decoration: none;
}
.kv-primary-action,
.kv-muted-action,
.kv-danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
  text-decoration: none;
}
.kv-primary-action {
  background: #ad8060;
  color: #fff;
}
.kv-muted-action {
  background: #e7e1d9;
  color: #26303a;
}
.kv-danger-action {
  background: #c8322b;
  color: #fff;
}
.inline-form { margin: 0; }
.kv-surface .customer-detail-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.kv-surface .customer-profile {
  gap: 18px;
  text-align: center;
  border-radius: 10px;
}
.kv-surface .customer-profile h2 {
  color: #2a2f35;
  font-family: var(--body);
  font-size: 24px;
  font-weight: 800;
}
.kv-surface .customer-avatar.large {
  margin: 6px auto 0;
  width: 80px;
  height: 80px;
  font-size: 34px;
}
.kv-surface .customer-contact div {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.kv-surface .customer-contact span {
  color: #69717a;
  letter-spacing: .08em;
}
.kv-surface .customer-contact strong,
.kv-surface .customer-contact a {
  color: #8c684f;
}
.kv-surface .maps-link {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  min-height: 32px;
  align-items: center;
  border-radius: 7px;
  background: #e2ddd5;
  color: #8c684f;
  font-weight: 800;
  text-decoration: none;
}
.kv-surface .customer-detail-main {
  gap: 22px;
}
.kv-surface .customer-subpanel {
  border-radius: 10px;
  padding: 24px;
}
.kv-surface .subpanel-head h3 {
  color: #2a2f35;
  font-family: var(--body);
  font-size: 26px;
  font-weight: 800;
}
.kv-add-pop {
  position: relative;
}
.kv-add-pop summary {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: #ad8060;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.kv-add-pop form {
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 4;
  width: min(540px, calc(100vw - 80px));
  padding: 16px;
  border: 1px solid #ded8d0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(42,47,53,.16);
}
.kv-surface .project-row {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid #eee9e2;
  padding: 18px 4px;
}
.kv-surface .status-pill,
.kv-surface .note-type,
.kv-surface .file-tags b,
.tag-suggestions span,
.tag-suggestions button {
  background: #f1e5d8;
  border: 0;
  color: #8c684f;
}
.kv-surface .timeline {
  border-left: 2px solid #e0c9b6;
}
.kv-surface .timeline-item,
.kv-surface .file-chip {
  background: #f5f6f7;
  border: 0;
  color: #2a2f35;
}
.kv-surface .timeline time,
.kv-surface .timeline-item small,
.kv-surface .timeline-file small,
.kv-surface .file-chip small {
  color: #69717a;
}
.kv-form-card {
  width: min(780px, 100%);
  max-width: 100%;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2ded7;
  box-shadow: 0 4px 14px rgba(42,47,53,.1);
}
.kv-form-card h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 400;
  line-height: .9;
}
.kv-customer-edit {
  width: min(920px, 100%);
}
.kv-form-danger {
  margin-top: 18px;
}
.kv-surface,
.kv-form-card,
.kv-form-card form {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.kv-surface {
  overflow-x: hidden;
}
.kv-form-card select,
.kv-form-card input,
.kv-form-card textarea {
  min-width: 0;
}
.note-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.note-type-tabs label { display: block; }
.note-type-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.note-type-tabs span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #ded8d0;
  background: #fff;
  color: #69717a;
  font-weight: 800;
}
.note-type-tabs input:checked + span {
  border-color: #ad8060;
  color: #2a2f35;
}
.kv-form-card textarea { min-height: 140px; }
.kv-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 146px;
  border: 2px dashed #ded8d0;
  border-radius: 8px;
  color: #69717a;
  text-align: center;
}
.kv-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}
.tag-suggestions span,
.tag-suggestions button {
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.kv-surface {
  background: transparent;
  color: var(--ink);
}
.kv-surface .panel,
.kv-surface .customer-subpanel,
.kv-surface .kunden-card,
.kv-form-card {
  background: rgba(28,31,34,.86);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.kv-surface .subpanel-head h3,
.kv-surface .customer-profile h2,
.kv-surface .kunden-card__body h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}
.kv-surface .subpanel-head h3 {
  font-size: 38px;
  line-height: .9;
}
.kv-surface .customer-profile h2 {
  font-size: 42px;
  line-height: .95;
}
.kv-surface .kunden-card__body h3 {
  font-size: 31px;
  line-height: .95;
}
.kv-surface input,
.kv-surface select,
.kv-surface textarea {
  background: #11161b;
  border-color: #343b42;
  color: var(--ink);
}
.kv-surface input::placeholder,
.kv-surface textarea::placeholder {
  color: rgba(245,246,244,.46);
}
.kv-surface label {
  color: var(--muted);
}
.kv-surface button.secondary,
.kv-surface a.secondary,
.kv-muted-action {
  background: rgba(220,201,178,.12);
  border: 1px solid rgba(220,201,178,.26);
  color: var(--sand);
}
.kv-surface .kunden-card {
  color: var(--ink);
}
.kv-surface .kunden-card:hover {
  background: rgba(35,39,42,.94);
  border-color: rgba(220,201,178,.36);
}
.kv-surface .kunden-card__meta,
.kv-surface .kunden-card__stats span {
  color: var(--muted);
}
.kv-surface .kunden-card__badge,
.kv-surface .status-pill,
.kv-surface .note-type,
.kv-surface .file-tags b,
.tag-suggestions span,
.tag-suggestions button {
  background: rgba(220,201,178,.13);
  border: 1px solid rgba(220,201,178,.25);
  color: var(--sand);
}
.kv-surface .customer-avatar {
  background: rgba(196,154,122,.18);
  border: 1px solid rgba(220,201,178,.34);
  color: var(--sand);
  font-family: var(--display);
  font-weight: 400;
}
.kv-surface .customer-avatar--image {
  background: transparent;
}
.kv-surface .customer-avatar--image img {
  border-radius: inherit;
}
.kv-back {
  color: var(--muted);
}
.kv-back:hover {
  color: var(--sand);
}
.kv-primary-action {
  background: var(--sand);
  color: #11161b;
}
.kv-danger-action {
  background: #c8332e;
  color: #fff;
}
.kv-surface .customer-contact span {
  color: var(--muted);
}
.kv-surface .customer-contact strong,
.kv-surface .customer-contact a {
  color: var(--sand);
}
.kv-surface .maps-link {
  background: rgba(220,201,178,.13);
  border: 1px solid rgba(220,201,178,.25);
  color: var(--sand);
}
.kv-add-pop summary {
  background: var(--sand);
  color: #11161b;
}
.kv-add-pop form {
  background: var(--panel);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.kv-surface .project-row {
  border-top-color: rgba(255,255,255,.08);
}
.project-row-actions {
  display: flex;
  justify-content: flex-end;
  margin: 2px 0 12px;
}
.project-row-actions .kv-muted-action {
  display: inline-flex;
  width: auto;
}
.kv-surface .timeline {
  border-left-color: rgba(196,154,122,.55);
}
.kv-surface .timeline-item,
.kv-surface .file-chip {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--ink);
}
.kv-surface .timeline-item {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
}
.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.timeline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.icon-form {
  margin: 0;
}
.icon-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(220,201,178,.22);
  background: rgba(255,255,255,.04);
  color: var(--sand);
  text-decoration: none;
  cursor: pointer;
}
.icon-action svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-action:hover {
  background: rgba(220,201,178,.12);
  border-color: rgba(220,201,178,.34);
}
.icon-action.danger {
  color: var(--danger);
  border-color: rgba(239,127,103,.28);
}
.icon-action.danger:hover {
  background: rgba(239,127,103,.08);
  border-color: rgba(239,127,103,.42);
}
.icon-action-lg {
  width: 44px;
  height: 44px;
}
.icon-action-lg svg {
  width: 20px;
  height: 20px;
}
.icon-action.disabled {
  opacity: .45;
  pointer-events: none;
}
.kv-surface .timeline-meta time {
  color: var(--sand);
}
.kv-surface .timeline-item h3 {
  margin: 0;
}
.kv-surface .timeline-item p {
  margin: 0;
}
.kv-surface .timeline-todo {
  position: relative;
  border-left: 3px solid var(--tan);
}
.kv-surface .timeline-todo.is-done {
  border-left-color: var(--ok);
  background: rgba(150,195,140,.045);
}
.kv-surface .timeline-todo.is-done h3 {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(150,195,140,.5);
}
.kv-surface .timeline-todo > p {
  color: var(--muted);
  line-height: 1.6;
}
.todo-timeline-status,
.todo-timeline-priority {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.todo-timeline-status {
  color: var(--sand);
  background: rgba(196,154,122,.12);
  border: 1px solid rgba(196,154,122,.25);
}
.timeline-todo.is-done .todo-timeline-status {
  color: var(--ok);
  background: rgba(150,195,140,.09);
  border-color: rgba(150,195,140,.25);
}
.todo-timeline-priority {
  color: var(--muted);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}
.timeline-todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kv-surface .timeline-todo-meta small {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
}
.kv-surface .timeline-note {
  display: grid;
  gap: 10px;
}
.kv-surface .timeline-note summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  align-items: flex-start;
  justify-items: start;
  gap: 10px;
}
.kv-surface .timeline-note summary::-webkit-details-marker {
  display: none;
}
.kv-surface .timeline-note__content {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.kv-surface .timeline-note[open] .timeline-note__content {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.kv-surface .timeline-note__remainder {
  display: none;
}
.kv-surface .timeline-note[open] .timeline-note__remainder {
  display: inline;
}
.kv-surface .timeline-note[open] .timeline-note__ellipsis {
  display: none;
}
.kv-surface .timeline-note__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(220,201,178,.28);
  border-radius: 999px;
  background: rgba(220,201,178,.13);
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.kv-surface .timeline-note summary:hover .timeline-note__toggle {
  border-color: rgba(220,201,178,.46);
  background: rgba(220,201,178,.2);
}
.kv-surface .timeline-note__less {
  display: none;
}
.kv-surface .timeline-note[open] .timeline-note__more {
  display: none;
}
.kv-surface .timeline-note[open] .timeline-note__less {
  display: inline;
}
.kv-surface .timeline-note__body {
  white-space: normal;
}
.kv-surface .timeline-attachments {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.kv-surface .timeline-attachments h4 {
  margin: 0;
  color: var(--sand);
  font-size: 13px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
}
.kv-surface .timeline-attachments .file-chip {
  background: rgba(196,154,122,.06);
}
.kv-surface .file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 14px;
  padding: 16px;
}
.kv-surface .file-chip > span {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.kv-surface .file-chip strong {
  line-height: 1.25;
}
.kv-surface .file-chip small {
  display: block;
}
.kv-surface .file-chip .file-tags {
  margin-top: 2px;
}
.kv-surface .file-chip form {
  margin: 0;
}
.kv-surface .file-chip .pill-action {
  text-decoration: none;
}
.kv-surface .timeline time,
.kv-surface .timeline-item small,
.kv-surface .timeline-file small,
.kv-surface .file-chip small {
  color: var(--muted);
}
.note-type-tabs span {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.12);
  color: var(--muted);
}
.note-type-tabs input:checked + span {
  border-color: rgba(220,201,178,.46);
  background: rgba(220,201,178,.14);
  color: var(--sand);
}
.kv-dropzone {
  border-color: rgba(220,201,178,.28);
  color: var(--muted);
  background: rgba(255,255,255,.025);
}
.kv-dropzone-active,
.kv-dropzone-has-files {
  border-color: rgba(220,201,178,.58);
  background: rgba(220,201,178,.065);
}
.kv-file-list {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}
.kv-file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
}
.kv-file-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kv-file-list small {
  color: var(--muted);
}
.kv-file-list button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--danger);
  background: transparent;
  border: 1px solid rgba(239,127,103,.35);
  cursor: pointer;
}
.kv-surface label,
.kv-surface .kunden-card__badge,
.kv-surface .status-pill,
.kv-surface .note-type,
.kv-surface .file-tags b,
.kv-surface .maps-link,
.kv-add-pop summary,
.note-type-tabs span,
.tag-suggestions span,
.tag-suggestions button,
.kv-primary-action,
.kv-muted-action,
.kv-danger-action {
  font-weight: 700;
}
.kv-surface .kunden-card__body h3 {
  font-size: 28px;
}
.kv-surface .customer-profile h2 {
  font-size: 38px;
}
.kv-surface .subpanel-head h3 {
  font-size: 34px;
}
.kv-surface .customer-contact strong,
.kv-surface .customer-contact a {
  font-weight: 600;
}
.kv-surface .kunden-card__meta,
.kv-surface .kunden-card__stats span,
.kv-surface .timeline time,
.kv-surface .timeline-item small,
.kv-surface .timeline-file small,
.kv-surface .file-chip small {
  font-weight: 400;
}
.kv-surface form label,
.kv-form-card label,
.kv-add-pop form label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.kv-surface form input,
.kv-surface form select,
.kv-surface form textarea {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
}
.kv-form-card input,
.kv-form-card select,
.kv-form-card textarea {
  border: 1px solid rgba(255,255,255,.16);
  outline: 1px solid transparent;
  outline-offset: -1px;
}
.kv-form-card input:focus,
.kv-form-card select:focus,
.kv-form-card textarea:focus {
  border-color: rgba(220,201,178,.56);
}
.kv-form-card .note-type-tabs span,
.kv-form-card .tag-suggestions span,
.kv-form-card .tag-suggestions button {
  font-weight: 500;
}
.kv-form-card .kv-dropzone strong,
.kv-form-card .kv-dropzone small {
  font-weight: 400;
}
.kv-form-card .kv-primary-action,
.kv-form-card .kv-muted-action {
  font-weight: 800;
}
.kv-form-card .form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 6px;
}
.kv-form-card .form-actions > :not(:last-child) {
  margin-right: 0;
}
.kv-form-card .form-actions.is-edit {
  justify-content: space-between;
}
.kv-form-card .form-actions.is-edit .kv-danger-action {
  margin-left: auto;
}
.kv-form-card .note-attachments {
  margin-top: 28px;
}
.kv-form-danger {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.edit-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.edit-box summary { cursor: pointer; color: var(--sand); font-weight: 700; margin-bottom: 12px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: end; }
.mini-projects { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.mini-projects span, .file-chip {
  border: 1px solid rgba(196,154,122,.34);
  background: rgba(196,154,122,.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--sand);
}
.timeline { position: relative; display: grid; gap: 12px; margin-top: 18px; padding-left: 20px; border-left: 1px solid rgba(196,154,122,.48); }
.timeline-item { background: rgba(255,255,255,.035); border-radius: 8px; padding: 14px; }
.timeline time { color: var(--tan); font-size: 12px; }
.timeline-file { display: grid; gap: 6px; }
.timeline-file small { color: var(--muted); padding-left: 4px; }
.file-chip { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.file-chip span { margin-right: auto; color: var(--ink); display: grid; gap: 2px; }
.file-chip small { color: var(--muted); }
.file-tags { display: flex; gap: 6px; flex-wrap: wrap; font-style: normal; }
.url { color: var(--sand); word-break: break-all; }
.drop-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.inbox-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 13px 14px 13px 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(28,31,34,.66);
}
.inbox-view-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}
.inbox-view-toolbar__label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.inbox-view-toolbar small {
  color: var(--muted);
  font-size: 12px;
}
.inbox-view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(220,201,178,.16);
  border-radius: 9px;
  background: rgba(17,22,27,.62);
}
.inbox-view-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.inbox-view-switch__button svg,
.drop-summary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inbox-view-switch__button:hover {
  color: var(--ink);
  background: rgba(255,255,255,.04);
}
.inbox-view-switch__button.is-active {
  color: #11161b;
  background: var(--sand);
  border-color: var(--sand);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.drop-list--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
}
.drop-list--grid .drop-card {
  min-width: 0;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(196,154,122,.12), transparent 38%),
    rgba(28,31,34,.9);
}
.drop-list--grid .drop-card--open {
  grid-column: 1 / -1;
  height: auto;
}
.drop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.drop-toggle {
  min-width: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.drop-toggle:focus-visible {
  outline: 2px solid rgba(220,201,178,.6);
  outline-offset: 5px;
}
.drop-toggle h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.drop-summary {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.drop-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.drop-summary svg {
  width: 15px;
  height: 15px;
  color: var(--tan);
}
.drop-head__actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.drop-card--open {
  border-color: rgba(196,154,122,.36);
}
.drop-body {
  margin-top: 16px;
}
.drop-body__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.drop-delete-action {
  justify-self: end;
  margin: 0;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--sand);
  background: rgba(220,201,178,.10);
  border: 1px solid rgba(220,201,178,.18);
  font-size: 13px;
  font-weight: 800;
}
.recipient-pill {
  color: #11161b;
}
.recipient-me,
.recipient-nicole {
  background: #d9b18f;
  border-color: #d9b18f;
}
.recipient-unknown {
  color: var(--ink);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
}
.url-pill {
  max-width: min(520px, 100%);
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.url-pill:hover {
  background: rgba(220,201,178,.18);
}
.drop-list .drop-card + .drop-card {
  margin-top: 0;
}
.upload-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.dropzone {
  position: relative;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 150px;
  border: 1px dashed rgba(196,154,122,.55);
  border-radius: 8px;
  background: rgba(196,154,122,.08);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone-active,
.dropzone-has-files {
  border-color: var(--sand);
  background: rgba(220,201,178,.14);
}
.file-picker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.file-picker-button {
  color: #11161b;
  background: var(--sand);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
}
.file-picker-text,
.upload-note {
  color: var(--muted);
}
.file-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.file-list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.file-list-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-size { color: var(--muted); }
.file-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  color: var(--danger);
  background: transparent;
  border: 1px solid rgba(239,127,103,.45);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.inbox-table-wrap {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(17,22,27,.36);
}
.filebrowser-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 760px;
}
.filebrowser-table th:nth-child(1),
.filebrowser-table td:nth-child(1) { width: 9%; }
.filebrowser-table th:nth-child(2),
.filebrowser-table td:nth-child(2) { width: 61%; }
.filebrowser-table th:nth-child(3),
.filebrowser-table td:nth-child(3) { width: 11%; }
.filebrowser-table th:nth-child(4),
.filebrowser-table td:nth-child(4) { width: 5%; }
.filebrowser-table th:nth-child(5),
.filebrowser-table td:nth-child(5) {
  width: 14%;
  text-align: right;
}
.inbox-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}
.inbox-actions .icon-form {
  margin: 0;
}
.inbox-actions .icon-action {
  flex: 0 0 auto;
}
.filebrowser-table th,
.filebrowser-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: middle;
}
.filebrowser-table th {
  color: var(--sand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,.035);
}
.filebrowser-table td {
  color: var(--muted);
  font-size: 14px;
}
.filebrowser-table tbody tr:hover {
  background: rgba(196,154,122,.07);
}
.filebrowser-table tbody tr:last-child td {
  border-bottom: 0;
}
.filename {
  display: inline-block;
  max-width: min(100%, 65vw);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}
.pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(220,201,178,.18);
  border-radius: 999px;
  color: var(--sand);
  background: rgba(220,201,178,.10);
  text-decoration: none;
  font-weight: 800;
}
.pill-action:hover {
  background: rgba(220,201,178,.18);
}
.pill-action.disabled {
  color: rgba(199,201,200,.45);
  background: rgba(255,255,255,.04);
}
.danger-pill {
  color: #fff;
  background: #b9332c;
  border-color: #b9332c;
}
.danger-pill:hover {
  background: #cf443c;
}
.empty-table-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
}
.calendar {
  margin-top: 18px;
  background: rgba(28,31,34,.72);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  overflow: hidden;
}
.calendar.enhanced .calendar-grid { gap: 0; }
.calendar-head, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-head strong { padding: 14px; background: rgba(255,255,255,.05); color: var(--sand); }
.day {
  min-height: 126px;
  text-align: left;
  color: var(--ink);
  background: rgba(255,255,255,.025);
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
}
.day span { display: block; font-weight: 800; }
.day em { display: inline-block; margin-top: 12px; color: #11161b; background: var(--tan); padding: 5px 7px; border-radius: 6px; font-style: normal; font-size: 12px; }
.shift-day em { background: var(--shift-color, var(--tan)); }
.day small { display: block; margin-top: 8px; color: var(--muted); }
.day.muted { opacity: .28; }
.shift-day:disabled { cursor: default; }
.shift-day.has-shift { background: rgba(255,255,255,.045); }
.shift-hero { margin-bottom: 18px; }
.section-note { margin: 0; }
.shift-summary-inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.shift-summary-inline span,
.summary-item {
  border: 1px solid rgba(196,154,122,.28);
  border-radius: 8px;
  background: rgba(196,154,122,.09);
  padding: 9px 11px;
}
.grid.two.shift-planner-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
}
.workdays-fieldset {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 14px;
}
.workdays-fieldset legend { color: var(--sand); padding: 0 6px; }
.weekday-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.weekday-pill { position: relative; cursor: pointer; }
.weekday-pill input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-pill span {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
}
.weekday-pill--active span,
.weekday-pill input:checked + span {
  color: #11161b;
  background: var(--sand);
  border-color: var(--sand);
}
.export-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}
.export-toggle input { width: auto; accent-color: var(--tan); }
.shift-settings,
.weeks-list,
.summary-list {
  display: grid;
  gap: 10px;
}
.week-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.week-row strong { display: block; color: var(--sand); }
.week-row span { color: var(--muted); font-size: 12px; }
.summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 16px;
  align-items: start;
  border-left: 4px solid var(--shift-color, var(--tan));
}
.summary-item .form-grid.compact {
  margin: 0;
  width: 100%;
}
.summary-item .form-grid.compact .form-actions {
  justify-content: flex-end;
}
.admin-customer-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: end;
  align-content: start;
}
.admin-customer-actions__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.admin-customer-actions .pill-action {
  min-width: 0;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(245,246,247,.72);
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
.admin-customer-actions .pill-action.disabled {
  color: rgba(199,201,200,.38);
  background: rgba(255,255,255,.025);
}
.admin-customer-actions__controls form {
  margin: 0;
}
.admin-customer-actions__controls > form,
.admin-customer-actions__controls > .pill-action {
  flex: 0 0 auto;
}
.admin-customer-actions code {
  justify-self: end;
}
.summary-item > form {
  min-width: 0;
}
.summary-item code {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  opacity: .85;
}
.summary-item .pill-action.disabled {
  white-space: nowrap;
}
.summary-item .ghost,
.summary-item .danger {
  white-space: nowrap;
}
.summary-item.accent { border-left-color: var(--sand); }
.calendar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(196,154,122,.24);
  border-left: 4px solid var(--tan);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.calendar-row + .calendar-row {
  margin-top: 10px;
}
.calendar-row__label {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.calendar-row__label span {
  font-weight: 700;
  color: var(--ink);
}
.calendar-row__label small,
.calendar-row__id {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-row__id {
  justify-self: end;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
}
.calendar-row:hover {
  border-color: rgba(220,201,178,.42);
  background: rgba(196,154,122,.06);
}
.compact { margin: 0; }
.dialog-secondary {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
dialog {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 24px;
  width: min(520px, calc(100vw - 28px));
}
dialog::backdrop { background: rgba(0,0,0,.68); }
.modal-actions { display: flex; justify-content: end; gap: 10px; }
.avatar-crop-dialog {
  width: min(580px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
}
.avatar-crop-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.avatar-crop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.avatar-crop-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.avatar-crop-header h2 {
  margin: 0;
  font-family: var(--display);
  max-width: 390px;
  font-size: 28px;
  line-height: .95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-crop-close {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.avatar-crop-close:hover {
  background: rgba(255,255,255,.1);
}
.avatar-crop-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  max-height: min(52vh, 420px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.05), rgba(0,0,0,.16) 70%),
    linear-gradient(135deg, rgba(220,201,178,.14), rgba(28,31,34,.96));
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.avatar-crop-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.1);
  pointer-events: none;
  z-index: 2;
}
.avatar-crop-stage.is-dragging {
  cursor: grabbing;
}
.avatar-crop-stage[data-ready="0"]::after {
  content: "Bild wird geladen ...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(17,22,27,.44);
  z-index: 3;
}
.avatar-crop-image {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
  z-index: 1;
}
.avatar-crop-zoom {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
}
.avatar-crop-zoom input[type="range"] {
  width: 100%;
}
.avatar-crop-dialog .modal-actions {
  justify-content: space-between;
  flex-wrap: wrap;
}
.avatar-crop-dialog .modal-actions .primary,
.avatar-crop-dialog .modal-actions .ghost {
  min-width: 120px;
}
.shift-month-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-panel {
  width: min(480px, 100%);
  margin: 0;
  padding: 34px;
  background: rgba(28,31,34,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 14px;
  display: grid;
  place-items: center;
}
.auth-panel h1 { font-size: 58px; margin: 0; }
.session-expired-panel {
  text-align: center;
}
.session-expired-panel h1 {
  margin-top: 2px;
}
.session-expired-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--sand);
  background: rgba(196,154,122,.12);
  border: 1px solid rgba(220,201,178,.28);
  border-radius: 50%;
}
.session-expired-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.session-expired-eyebrow {
  margin: 0;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
}
.session-expired-action {
  min-height: 46px;
  margin-top: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand);
  border-radius: 8px;
  text-decoration: none;
}
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 5; display: grid; gap: 8px; }
.toast {
  position: relative;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ok);
  color: #11161b;
  font-weight: 700;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.toast::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: rgba(17, 22, 27, .25);
  transform-origin: left center;
  transform: scaleX(1);
}
.toast.toast--running::after {
  animation: toast-progress linear forwards;
  animation-duration: var(--toast-duration, 3500ms);
}
.toast.error { background: var(--danger); }
.toast.toast--hide {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  filter: blur(.2px);
  pointer-events: none;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 1500px) and (min-width: 901px) and (orientation: portrait) {
  .workspace {
    padding: 24px;
  }
  .metrics,
  .grid.two,
  .grid.two.shift-planner-grid,
  .admin-calendar-grid,
  .admin-roadmap-grid {
    grid-template-columns: 1fr;
  }
  .compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv-surface .customer-detail-layout {
    grid-template-columns: 1fr;
  }
  .kv-surface .customer-profile {
    position: static;
  }
  .kv-surface .customer-detail-main {
    gap: 18px;
  }
  .kv-surface .subpanel-head {
    align-items: flex-start;
    gap: 12px;
  }
  .kv-surface .subpanel-head h3 {
    font-size: 30px;
  }
  .kv-surface .file-chip {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    align-items: start;
    row-gap: 10px;
    padding: 14px 16px;
  }
  .kv-surface .file-chip > span {
    margin-right: 0;
    gap: 4px;
  }
  .kv-surface .file-chip strong,
  .kv-surface .file-chip small {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .kv-surface .file-chip .pill-action,
  .kv-surface .file-chip form {
    width: 100%;
  }
  .kv-surface .file-chip .pill-action {
    justify-content: center;
  }
  .drop-list .drop-card {
    padding: 18px;
  }
  .inbox-table-wrap {
    border: 0;
    background: transparent;
  }
  .inbox-table-wrap .filebrowser-table,
  .inbox-table-wrap .filebrowser-table thead,
  .inbox-table-wrap .filebrowser-table tbody,
  .inbox-table-wrap .filebrowser-table tr,
  .inbox-table-wrap .filebrowser-table th,
  .inbox-table-wrap .filebrowser-table td {
    display: block;
  }
  .inbox-table-wrap .filebrowser-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .inbox-table-wrap .filebrowser-table thead {
    display: none;
  }
  .inbox-table-wrap .filebrowser-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px 0 0;
  }
  .inbox-table-wrap .filebrowser-table tr {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
  }
  .inbox-table-wrap .filebrowser-table td {
    width: auto !important;
    text-align: left !important;
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 11px 12px;
  }
  .inbox-table-wrap .filebrowser-table td::before {
    content: attr(data-label);
    color: var(--sand);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .inbox-table-wrap .filebrowser-table td:last-child {
    border-bottom: 0;
  }
  .inbox-table-wrap .filebrowser-table td[data-label="Aktionen"] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    grid-template-columns: none;
  }
  .inbox-table-wrap .filebrowser-table td[data-label="Aktionen"]::before {
    display: none;
  }
  .inbox-table-wrap .inbox-actions {
    width: auto;
  }
}

@media (max-width: 900px) {
  body.sidebar-collapsed,
  body:not(.sidebar-collapsed) {
    --sidebar-width: 260px;
  }
  .mobile-menu-toggle {
    position: sticky;
    top: 0;
    z-index: 25;
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 24px auto;
    grid-template-rows: repeat(3, 4px);
    align-content: center;
    column-gap: 10px;
    row-gap: 3px;
    padding: 14px 18px;
    color: var(--ink);
    background: rgba(17,22,27,.96);
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
  }
  .mobile-menu-toggle span {
    grid-column: 1;
    width: 20px;
    height: 2px;
    background: var(--sand);
    border-radius: 999px;
  }
  .mobile-menu-toggle span:nth-child(1) { grid-row: 1; }
  .mobile-menu-toggle span:nth-child(2) { grid-row: 2; }
  .mobile-menu-toggle span:nth-child(3) { grid-row: 3; }
  .mobile-menu-toggle strong {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }
  .sidebar {
    width: min(300px, 86vw);
    transform: translateX(-105%);
    padding: 28px 22px;
    box-shadow: 18px 0 60px rgba(0,0,0,.34);
  }
  body.mobile-menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: none;
  }
  body.sidebar-collapsed .brand strong,
  body.sidebar-collapsed .brand small,
  body.sidebar-collapsed .nav-label {
    opacity: 1;
    pointer-events: auto;
    width: auto;
  }
  .brand small {
    display: none;
  }
  body.sidebar-collapsed nav a,
  body.sidebar-collapsed .logout-form button {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    margin-inline: 0;
    padding-inline: 14px;
  }
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(0,0,0,.56);
    backdrop-filter: blur(2px);
  }
  body.mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }
  .workspace { margin-left: 0; padding: 18px; max-width: 100vw; }
  .inbox-view-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .inbox-view-switch {
    width: 100%;
  }
  .inbox-view-switch__button {
    flex: 1 1 0;
    justify-content: center;
  }
  .admin-mail-test {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-mail-test form,
  .admin-mail-test button {
    width: 100%;
  }
  .metrics, .grid.two, .form-grid, .form-grid.wide { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .admin-intro,
  .admin-roadmap li {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-intro__notes {
    justify-content: flex-start;
  }
  .admin-calendar-grid,
  .admin-roadmap-grid {
    grid-template-columns: 1fr;
  }
  .shift-setting {
    grid-template-columns: 1fr;
  }
  .shift-edit-form,
  .calendar-new-shift .grid.two.compact {
    grid-template-columns: 1fr;
  }
  .shift-setting input[type="color"] {
    width: 100%;
  }
  .admin-note-grid {
    grid-template-columns: 1fr;
  }
  .customer-avatar-field {
    grid-template-columns: 1fr;
  }
  .customer-avatar-field__preview {
    justify-self: start;
  }
  .customer-avatar-uploadbox {
    padding: 12px 14px;
  }
  .avatar-crop-shell {
    padding: 14px;
  }
  .avatar-crop-header {
    flex-direction: column;
  }
  .avatar-crop-header h2 {
    max-width: none;
    font-size: 24px;
    white-space: normal;
  }
  .customer-search,
  .customer-contact,
  .customer-sections,
  .customer-detail-layout,
  .customer-detail-grid,
  .kunden-grid {
    grid-template-columns: 1fr;
  }
  .kv-surface .customer-detail-layout {
    grid-template-columns: 1fr;
  }
  .kv-surface .kunden-grid {
    grid-template-columns: 1fr;
  }
  .customer-detail-head { align-items: flex-start; flex-direction: column; }
  .kv-surface .subpanel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .kv-surface .subpanel-head h3 {
    font-size: 30px;
  }
  .kv-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .kv-detail-actions > div {
    width: 100%;
    justify-content: flex-start;
  }
  .customer-profile { position: static; }
  .kunden-card { grid-template-columns: 50px minmax(0, 1fr); }
  .kunden-card__badge { justify-self: start; grid-column: 2; }
  .kunden-card__stats { grid-column: 2; }
  .customer-top { align-items: stretch; flex-direction: column; }
  .customer-titleline { align-items: flex-start; }
  .customer-subpanel { padding: 14px; }
  .timeline-head {
    flex-direction: column;
  }
  .timeline-actions {
    margin-left: 0;
  }
  .kv-add-pop {
    width: 100%;
  }
  .kv-add-pop summary {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }
  .kv-add-pop form {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  .kv-surface .file-chip {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    align-items: start;
    row-gap: 10px;
  }
  .kv-surface .file-chip > span {
    margin-right: 0;
    gap: 4px;
  }
  .kv-surface .file-chip strong,
  .kv-surface .file-chip small {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .kv-surface .file-chip .pill-action,
  .kv-surface .file-chip form {
    width: 100%;
  }
  .kv-surface .file-chip .pill-action {
    justify-content: center;
  }
  .project-row summary, .note-edit summary { align-items: flex-start; flex-direction: column; }
  .calendar-head, .calendar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { padding: 24px; }
  .hero-date {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    margin-top: 24px;
  }
  .compact-metrics { grid-template-columns: 1fr; }
  .filebrowser-table,
  .filebrowser-table thead,
  .filebrowser-table tbody,
  .filebrowser-table tr,
  .filebrowser-table th,
  .filebrowser-table td {
    display: block;
  }
  .filebrowser-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .filebrowser-table thead {
    display: none;
  }
  .filebrowser-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }
  .filebrowser-table tr {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
  }
  .filebrowser-table td {
    width: auto !important;
    text-align: left !important;
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 11px 12px;
  }
  .filebrowser-table td::before {
    content: attr(data-label);
    color: var(--sand);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .filebrowser-table td:last-child {
    border-bottom: 0;
  }
  .pill-action {
    width: 100%;
    min-width: 0;
  }
}
