/* ═══════════════════════════════════════
   Punchline — Apple-style Design System
   ═══════════════════════════════════════ */

:root {
  --bg: #ECECF1;
  --bg-card: #FFFFFF;
  --bg-secondary: #F2F2F7;
  --bg-tertiary: #E6E6EB;

  --text-primary: #1C1C1E;
  --text-secondary: #76767E;
  --text-tertiary: #B0B0B8;

  --blue:   #007AFF;
  --green:  #34C759;
  --orange: #FF9500;
  --red:    #FF3B30;
  --purple: #AF52DE;
  --teal:   #5AC8FA;
  --pink:   #FF2D55;
  --indigo: #5856D6;

  --separator: rgba(60,60,67,.14);

  /* Glass surfaces */
  --glass-bg: rgba(255,255,255,.68);
  --glass-strong: rgba(255,255,255,.82);
  --glass-border: rgba(255,255,255,.6);
  --glass-blur: saturate(180%) blur(22px);

  /* Ambient page background (subtle colored mesh) */
  --app-bg:
    radial-gradient(1200px 800px at 8% -10%, rgba(0,122,255,.10), transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, rgba(175,82,222,.08), transparent 50%),
    radial-gradient(900px 700px at 50% 110%, rgba(90,200,250,.08), transparent 55%),
    var(--bg);

  --shadow-sm: 0 1px 2px rgba(17,24,39,.06), 0 2px 6px rgba(17,24,39,.05);
  --shadow-md: 0 4px 14px rgba(17,24,39,.08), 0 8px 24px rgba(17,24,39,.06);
  --shadow-lg: 0 10px 34px rgba(17,24,39,.12), 0 4px 10px rgba(17,24,39,.06);
  --shadow-xl: 0 24px 70px rgba(17,24,39,.18), 0 8px 20px rgba(17,24,39,.08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --nav-height: 64px;
  --transition: all .2s cubic-bezier(.25,.46,.45,.94);
  --spring: all .35s cubic-bezier(.34,1.56,.64,1);
}

:root[data-theme="dark"] {
  --bg: #0A0A0C;
  --bg-card: #1A1A1D;
  --bg-secondary: #232327;
  --bg-tertiary: #2F2F35;

  --text-primary: #F5F5F7;
  --text-secondary: #9A9AA2;
  --text-tertiary: #5A5A62;

  --separator: rgba(255,255,255,.10);

  --glass-bg: rgba(28,28,32,.66);
  --glass-strong: rgba(32,32,38,.82);
  --glass-border: rgba(255,255,255,.08);
  --glass-blur: saturate(180%) blur(22px);

  --app-bg:
    radial-gradient(1200px 800px at 8% -10%, rgba(0,122,255,.16), transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, rgba(175,82,222,.14), transparent 50%),
    radial-gradient(900px 700px at 50% 110%, rgba(90,200,250,.10), transparent 55%),
    var(--bg);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 10px 34px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.4);
  --shadow-xl: 0 24px 70px rgba(0,0,0,.6), 0 8px 20px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--app-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

/* ── Typography ── */
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
h3 { font-size: 17px; font-weight: 600; }
p  { line-height: 1.5; }

/* ── Layout ── */
#app { min-height: 100dvh; }

/* ═══════════════════════════════════════
   OS SHELL · Sidebar + Content
   ═══════════════════════════════════════ */
.os-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  z-index: 50;
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 20px;
}
.sidebar-logo span {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }

.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-secondary);
  padding: 4px 10px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.nav-link:hover { background: var(--bg-secondary); }
.nav-link.active { background: rgba(0,122,255,.12); color: var(--blue); font-weight: 600; }
.nav-link-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-link-label { flex: 1; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  color: var(--text-primary);
  font-family: inherit;
}
.sidebar-user:hover { background: var(--bg-tertiary); }
.sidebar-user-info { flex: 1; text-align: left; overflow: hidden; }
.sidebar-user-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 12px; color: var(--text-secondary); }
.sidebar-user-chevron { color: var(--text-tertiary); font-size: 18px; }

.content { min-width: 0; min-height: 100dvh; }
.content-enter { animation: fadeUp .3s ease; }

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 120;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--separator);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.sidebar-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 45;
}

@media (max-width: 820px) {
  .os-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0;
    width: 264px;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.25,.46,.45,.94);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.show { display: block; }
  .sidebar-toggle { display: flex; }
  .content { padding-top: 56px; }
}

/* ── Page head ── */
.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 4px; }
.page-sub { color: var(--text-secondary); font-size: 15px; }

/* ═══════════════════════════════════════
   HOME · Launcher
   ═══════════════════════════════════════ */
.home-hero { margin-bottom: 24px; }
.home-hero h1 { font-size: 30px; margin-bottom: 4px; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .home-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .home-stats { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  transition: var(--spring);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-clickable { cursor: pointer; }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-secondary); margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; }

.home-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.launcher-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--spring);
  text-align: left;
  color: var(--text-primary);
  font-family: inherit;
}
.launcher-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.launcher-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.launcher-text { flex: 1; }
.launcher-title { font-weight: 700; font-size: 16px; }
.launcher-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.launcher-arrow { font-size: 22px; color: var(--text-tertiary); }

/* ═══════════════════════════════════════
   AUTOMATIONS · Module grid
   ═══════════════════════════════════════ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.module-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--spring);
}
.module-card[data-open] { cursor: pointer; }
.module-card[data-open]:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-card.is-soon { opacity: .72; }
.module-icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.module-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.module-title-row h3 { flex: 1; }
.module-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.module-foot { margin-top: auto; }

.page { display: none; animation: fadeUp .3s ease; }
.page.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.nav-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-tab.active { color: var(--blue); background: rgba(0,122,255,.10); font-weight: 600; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.avatar:hover { transform: scale(1.05); }
.avatar-photo { padding: 0; overflow: hidden; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Activity / Live-Log ── */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--separator);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.activity-dot.sev-info    { background: var(--blue); }
.activity-dot.sev-success { background: var(--green); }
.activity-dot.sev-warning { background: var(--orange); }
.activity-dot.sev-danger  { background: var(--red); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.activity-msg   { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.activity-time  { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; margin-top: 2px; }
.activity-empty { padding: 24px 16px; text-align: center; color: var(--text-tertiary); font-size: 13px; }

/* ── Avatar-Upload ── */
.avatar-upload-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.avatar-upload-preview {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar-upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 20px; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
.container-wide { max-width: 1340px; }

/* ── Zeiterfassung Top (Timer + Saldo) ── */
.zeit-top {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 860px) {
  .zeit-top { grid-template-columns: 1fr; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:active { transform: scale(.96); }

.btn-primary  { background: linear-gradient(135deg, #0A84FF, #007AFF); color: #fff; box-shadow: 0 4px 14px rgba(0,122,255,.32); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,122,255,.42); transform: translateY(-1px); }

.btn-success  { background: linear-gradient(135deg, #34C759, #30D158); color: #fff; box-shadow: 0 4px 14px rgba(52,199,89,.30); }
.btn-success:hover { box-shadow: 0 6px 20px rgba(52,199,89,.42); transform: translateY(-1px); }

.btn-danger   { background: linear-gradient(135deg, #FF453A, #FF3B30); color: #fff; box-shadow: 0 4px 14px rgba(255,59,48,.30); }
.btn-danger:hover { box-shadow: 0 6px 20px rgba(255,59,48,.42); transform: translateY(-1px); }

.btn-ghost    { background: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-secondary); }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--separator);
}
.btn-secondary:hover { background: var(--bg-tertiary); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 17px; border-radius: 14px; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ── Inputs ── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .3px; }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
  outline: none;
}

.input:focus { border-color: var(--blue); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(0,122,255,.14); }
.input::placeholder { color: var(--text-tertiary); }

select.input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

textarea.input { resize: vertical; min-height: 80px; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-blue   { background: rgba(0,122,255,.12); color: var(--blue); }
.badge-green  { background: rgba(52,199,89,.12);  color: var(--green); }
.badge-orange { background: rgba(255,149,0,.12);  color: var(--orange); }
.badge-red    { background: rgba(255,59,48,.12);   color: var(--red); }
.badge-purple { background: rgba(175,82,222,.12);  color: var(--purple); }

/* ═══════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════ */
/* ── Login v2: Premium Glass ── */
.login-v2 {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #0B0B14;
}

.login-v2-bg { position: absolute; inset: 0; }
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: orb-float 16s ease-in-out infinite alternate;
}
.login-orb-1 { width: 560px; height: 560px; top: -160px; left: -120px; background: radial-gradient(circle at 30% 30%, #007AFF, #0040AA 70%); }
.login-orb-2 { width: 480px; height: 480px; bottom: -140px; right: -100px; background: radial-gradient(circle at 60% 40%, #AF52DE, #5E1B85 70%); animation-delay: -6s; }
.login-orb-3 { width: 380px; height: 380px; top: 45%; left: 58%; background: radial-gradient(circle at 50% 50%, #5AC8FA, #1A6E96 70%); opacity: .35; animation-delay: -11s; }

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.12); }
}

.login-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
}

.login-v2-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(20, 20, 30, .55);
  backdrop-filter: saturate(160%) blur(28px);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 44px 36px 32px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.12);
  animation: login-rise .55s cubic-bezier(.34,1.4,.64,1) both;
}

@keyframes login-rise {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-v2-card.shake { animation: login-shake .45s ease both; }
@keyframes login-shake {
  10%, 50%, 90% { transform: translateX(-7px); }
  30%, 70%      { transform: translateX(7px); }
}

.login-v2-brand { text-align: center; margin-bottom: 34px; }
.login-v2-brand .logo-tile { margin: 0 auto 18px; }
.login-v2-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(120deg, #fff 30%, #9CC8FF 65%, #C9A1F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-v2-sub { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 6px; letter-spacing: .2px; }

.login-v2-form { display: flex; flex-direction: column; gap: 18px; }
.login-v2-field { display: block; }
.login-v2-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.login-v2-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 0 14px;
  transition: var(--transition);
}
.login-v2-input-wrap:focus-within {
  border-color: rgba(0,122,255,.7);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 4px rgba(0,122,255,.18);
}
.login-v2-input-icon { color: rgba(255,255,255,.4); display: flex; flex-shrink: 0; }
.login-v2-input-wrap:focus-within .login-v2-input-icon { color: #5AC8FA; }
.login-v2-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 14px 0;
  min-width: 0;
}
.login-v2-input::placeholder { color: rgba(255,255,255,.25); }
.login-v2-pw-toggle {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.35); display: flex; padding: 4px;
  transition: var(--transition);
}
.login-v2-pw-toggle:hover { color: rgba(255,255,255,.7); }

.login-v2-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(120deg, #007AFF, #5856D6 80%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--spring);
  box-shadow: 0 10px 28px rgba(0,90,255,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.login-v2-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,90,255,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.login-v2-submit:active { transform: scale(.98); }
.login-v2-submit:disabled { opacity: .7; cursor: wait; transform: none; }

.login-v2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.login-v2-footer span { display: flex; align-items: center; gap: 6px; }

/* ── Logo-Tile (Login + Sidebar) ── */
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 26%;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 55%, #AF52DE 100%);
  box-shadow: 0 8px 24px rgba(0,90,255,.4), inset 0 1px 0 rgba(255,255,255,.35);
  flex-shrink: 0;
}

/* ── SVG-Icons global ── */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.nav-link-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; }
.launcher-icon .icon { color: #fff; }
.theme-toggle-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-clock .clock-icon { display: flex; align-items: center; justify-content: center; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; }

/* ═══════════════════════════════════════
   TIMER / DASHBOARD
   ═══════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 800px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Timer Widget */
.timer-widget {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.timer-status {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timer-display {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -2px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
  transition: color .3s ease;
}

.timer-display.running { color: var(--green); }
.timer-display.overtime { color: var(--orange); }
.timer-display.paused  { color: var(--text-secondary); opacity: .65; }

.timer-date {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.timer-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.timer-actions { display: flex; gap: 12px; justify-content: center; }

.btn-clock {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--spring);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.btn-clock .clock-icon { font-size: 28px; }
.btn-clock:active { transform: scale(.94); }

.btn-clock-in  { background: linear-gradient(135deg, var(--green), #30D158); color: #fff; }
.btn-clock-in:hover  { box-shadow: 0 8px 24px rgba(52,199,89,.4); transform: translateY(-2px); }

.btn-clock-out { background: linear-gradient(135deg, var(--red), #FF6961); color: #fff; }
.btn-clock-out:hover { box-shadow: 0 8px 24px rgba(255,59,48,.4); transform: translateY(-2px); }

.btn-clock-pause  { background: linear-gradient(135deg, #FF9500, #FFCC00); color: #fff; }
.btn-clock-pause:hover  { box-shadow: 0 8px 24px rgba(255,149,0,.4); transform: translateY(-2px); }

.btn-clock-resume { background: linear-gradient(135deg, var(--blue), #5AC8FA); color: #fff; }
.btn-clock-resume:hover { box-shadow: 0 8px 24px rgba(0,122,255,.4); transform: translateY(-2px); }

.timer-pause-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--orange);
  display: inline-block;
  margin-right: 6px;
}

.timer-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  flex-wrap: wrap;
}

.timer-meta-item { text-align: center; min-width: 72px; }
.timer-meta-item .label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.timer-meta-item .value { font-size: 18px; font-weight: 700; margin-top: 2px; }

/* ── Retroaktiv Einstempeln ── */
.retro-clockin {
  margin-top: 12px;
  text-align: center;
}
.retro-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 6px;
  transition: var(--transition);
}
.retro-toggle:hover { color: var(--blue); background: rgba(0,122,255,.06); }
.retro-time-wrap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; padding: 10px 16px;
  background: rgba(0,122,255,.07);
  border: 1px solid rgba(0,122,255,.2);
  border-radius: 12px;
  font-size: 14px;
  animation: fadeIn .2s ease;
}
.retro-time-wrap.hidden { display: none; }
.retro-time-label { color: var(--text-secondary); font-size: 13px; }
.retro-time-input { background: none; border: none; font-size: 17px; font-weight: 700; color: var(--blue); width: 80px; outline: none; text-align: center; }
.retro-time-hint { color: var(--text-tertiary); font-size: 12px; }

.break-reminder {
  background: linear-gradient(135deg, rgba(255,149,0,.12), rgba(255,149,0,.06));
  border: 1px solid rgba(255,149,0,.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--orange);
  font-weight: 500;
  animation: slideIn .3s ease;
}

/* Balance Widget */
.balance-widget {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.balance-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.balance-big {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.balance-big.positive { color: var(--green); }
.balance-big.negative { color: var(--red); }
.balance-big.zero { color: var(--text-primary); }

.balance-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--separator);
  font-size: 14px;
}
.balance-row:last-child { border-bottom: none; }
.balance-row .bal-label { color: var(--text-secondary); }
.balance-row .bal-val { font-weight: 600; }

/* Month Overview */
.month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.month-nav h2 { white-space: nowrap; }
.card-header .month-nav { margin-bottom: 0; }

.month-table-wrap { overflow-x: auto; }

.month-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.month-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--bg-secondary);
}

.month-table th:first-child { border-radius: 10px 0 0 10px; }
.month-table th:last-child  { border-radius: 0 10px 10px 0; }

.month-table td {
  padding: 12px;
  border-bottom: 1px solid var(--separator);
  vertical-align: middle;
}

.month-table tr:last-child td { border-bottom: none; }

.month-table tr:hover td { background: var(--bg-secondary); cursor: pointer; }

.month-table tr.today-row td { background: rgba(0,122,255,.06); }
.month-table tr.weekend-row td { background: rgba(120,120,128,.05); }

/* ── Arbeitszeit-Pills ── */
.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill-ok       { background: rgba(52,199,89,.14);  color: var(--green); }
.pill-under    { background: rgba(255,149,0,.14);  color: var(--orange); }
.pill-extra    { background: rgba(88,86,214,.14);  color: var(--indigo); }
.pill-running  { background: rgba(0,122,255,.14);  color: var(--blue); }
.pill-vacation { background: rgba(175,82,222,.14); color: var(--purple); }
.pill-sick     { background: rgba(255,149,0,.14);  color: var(--orange); }

/* ── Monats-Aktionen (Header rechts) ── */
.month-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.month-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: 4px;
}
.month-summary strong { color: var(--text-primary); }

.td-note {
  max-width: 280px;
  color: var(--text-secondary);
  font-size: 13px;
}
.td-note { position: relative; }
.td-note-text { display: inline-block; }
.row-del {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  float: right;
  opacity: 0;
  transition: var(--transition);
}
.month-table tr:hover .row-del { opacity: 1; }
.row-del:hover { color: var(--red); }

.day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.hours-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  width: 100px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.hours-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--green);
  transition: width .3s ease;
}

.hours-bar-fill.overtime { background: var(--orange); }
.hours-bar-fill.undertime { background: var(--red); }

/* Activity chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--bg-tertiary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  user-select: none;
}

.chip:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,122,255,.08); }
.chip.selected { border-color: var(--blue); background: rgba(0,122,255,.12); color: var(--blue); font-weight: 600; }

/* Input hint + error */
.input-hint { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.input-hint.hint-error { color: var(--red); font-weight: 600; }
.input.input-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,59,48,.15); }

/* Clock-out / Nachtragen live preview */
.clockout-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.co-row span { color: var(--text-secondary); }
.co-row strong { font-size: 16px; font-variant-numeric: tabular-nums; }

/* Month-table note cell */
.td-note { max-width: 240px; font-size: 13px; color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* ═══════════════════════════════════════
   CALENDAR PAGE
   ═══════════════════════════════════════ */
/* ── Kalender + Sidebar ── */
.cal-with-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cal-main-col { flex: 1; min-width: 0; }
.cal-sidebar-col { width: 240px; flex-shrink: 0; position: sticky; top: 20px; }

/* ── Urlaubskonto-Karte ── */
/* ── Vacation person rows (admin) ── */
.vac-person-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--separator);
  transition: background var(--transition);
}
.vac-person-row:last-child { border-bottom: none; }
.vac-person-row:hover { background: var(--bg-hover, rgba(120,120,128,.06)); }

.vac-person-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vac-person-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.vac-bar-wrap {
  flex: 1;
  min-width: 0;
}

.vac-bar-track {
  height: 8px;
  background: var(--separator);
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  margin-bottom: 6px;
}
.vac-bar-used {
  height: 100%;
  background: var(--blue);
  border-radius: 99px 0 0 99px;
  transition: width .4s ease;
  flex-shrink: 0;
}
.vac-bar-pend {
  height: 100%;
  background: var(--orange);
  opacity: .7;
  transition: width .4s ease;
  flex-shrink: 0;
}

.vac-bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.vac-rest-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  flex-shrink: 0;
}
.vac-rest-num   { font-size: 22px; font-weight: 800; line-height: 1; }
.vac-rest-label { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }

.vac-person-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .vac-person-row { grid-template-columns: 1fr auto; }
  .vac-person-stats { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .vac-person-row { grid-template-columns: 1fr; gap: 10px; }
  .vac-person-actions { flex-wrap: wrap; }
}

.vac-balance-card {}
.vac-balance-numbers { text-align: center; margin-bottom: 12px; }
.vac-big { font-size: 42px; font-weight: 800; line-height: 1; }
.vac-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.vac-progress-track { height: 8px; background: var(--bg-tertiary); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.vac-progress-fill { height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.vac-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.vac-stats span { display: flex; align-items: center; gap: 4px; }

@media (max-width: 900px) {
  .cal-with-sidebar { flex-direction: column; }
  .cal-sidebar-col { width: 100%; position: static; }
}

.calendar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.calendar-grid {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--separator);
}

.cal-weekday {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 128px;              /* alle Tage gleich hoch → sauberes Raster */
}

.cal-day {
  border-right: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 6px 7px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;                   /* Inhalt sprengt die Zelle nicht mehr */
  min-height: 0;
}

.cal-day:hover { background: var(--bg-secondary); }
.cal-day:nth-child(7n) { border-right: none; }

.cal-day.other-month { opacity: .35; }
.cal-day.today { background: rgba(0,122,255,.04); }
.cal-day.today .cal-day-num { background: var(--blue); color: #fff; }
.cal-day.weekend .cal-day-num { color: var(--red); }
.cal-day.holiday { background: rgba(255,149,0,.06); }

.cal-day-num {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  flex: 0 0 auto;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;        /* überzählige Events werden sauber abgeschnitten */
  flex: 1 1 auto;
  min-height: 0;
}

.cal-event {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter .15s;
  flex: 0 0 auto;
}

.cal-event:hover { filter: brightness(.88); }

/* ── Ansichtsumschalter Monat/Woche/Tag ── */
.cal-viewswitch {
  display: inline-flex;
  background: var(--bg-secondary);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
.cal-vbtn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cal-vbtn:hover { color: var(--text-primary); }
.cal-vbtn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Wochen-/Tagesraster ── */
.cal-timegrid { display: flex; flex-direction: column; }

.cal-tg-head {
  display: grid;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--separator);
}
.cal-tg-headcorner { border-right: 1px solid var(--separator); }
.cal-tg-headcell {
  padding: 8px 4px;
  text-align: center;
  border-left: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cal-tg-dow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
}
.cal-tg-date { font-size: 18px; font-weight: 700; }
.cal-tg-headcell.today .cal-tg-date {
  background: var(--blue);
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-tg-allday {
  display: grid;
  border-bottom: 1px solid var(--separator);
  min-height: 30px;
}
.cal-tg-alldaylabel {
  font-size: 10px;
  color: var(--text-tertiary, var(--text-secondary));
  padding: 6px 4px;
  text-align: right;
  border-right: 1px solid var(--separator);
}
.cal-tg-alldaycell {
  border-left: 1px solid var(--separator);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.cal-tg-body {
  display: grid;
  max-height: 620px;
  overflow-y: auto;
}
.cal-tg-gutter { border-right: 1px solid var(--separator); }
.cal-tg-hour {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  padding: 2px 6px 0 0;
  transform: translateY(-7px);
}
.cal-tg-daycol {
  position: relative;
  border-left: 1px solid var(--separator);
  cursor: pointer;
}
.cal-tg-daycol.today { background: rgba(0,122,255,.03); }

.cal-tg-event {
  position: absolute;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  padding: 2px 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: filter .15s;
}
.cal-tg-event:hover { filter: brightness(.9); z-index: 5; }
.cal-tg-event-time { font-weight: 700; opacity: .85; margin-right: 3px; }

.cal-tg-now {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--red);
  z-index: 6;
  pointer-events: none;
}
.cal-tg-now::before {
  content: '';
  position: absolute;
  left: -4px; top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ═══════════════════════════════════════
   MODALS
   ═══════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,14,.42);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}

.modal-backdrop.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
}

/* Wider variant for content-heavy modals (Vorlagen, Admin-Historie etc.) */
.modal.modal-wide { max-width: 860px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--separator); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; flex-wrap: wrap; }

.modal-header .modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-secondary); border: none;
  cursor: pointer; color: var(--text-secondary);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-header .modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--separator);
  pointer-events: all;
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.hiding {
  animation: toastOut .25s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px) scale(.95); }
}

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-success .toast-icon::before { content: '✅'; }
.toast-error   .toast-icon::before { content: '❌'; }
.toast-info    .toast-icon::before { content: 'ℹ️'; }
.toast-warning .toast-icon::before { content: '⚠️'; }

/* ═══════════════════════════════════════
   ADMIN PAGE
   ═══════════════════════════════════════ */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) { .admin-grid { grid-template-columns: 1fr; } }

.user-list { display: flex; flex-direction: column; gap: 12px; }

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.user-item:hover { background: var(--bg-tertiary); }
.user-item-info { flex: 1; }
.user-item-name { font-weight: 600; font-size: 15px; }
.user-item-email { font-size: 13px; color: var(--text-secondary); }
.user-item-actions { display: flex; gap: 6px; }

/* ── Mitarbeiter-Übersicht (Salden) ── */
/* ── Team-Übersicht (Admin) ── */
.overview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--separator);
}
.overview-live-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.overview-updated {
  font-size: 12px;
  color: var(--text-tertiary);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
.overview-table { width: 100%; }
.overview-thead {
  display: grid;
  grid-template-columns: 1fr 120px 180px 110px 32px;
  gap: 8px;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--separator);
}
.overview-row {
  display: grid;
  grid-template-columns: 1fr 120px 180px 110px 32px;
  gap: 8px;
  padding: 12px 20px;
  align-items: center;
  border-bottom: 1px solid var(--separator);
  transition: var(--transition);
}
.overview-row:last-child { border-bottom: none; }
.overview-row-click { cursor: pointer; }
.overview-row-click:hover { background: var(--bg-secondary); }
.overview-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.overview-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.overview-today { display: flex; align-items: center; }
.overview-month { display: flex; flex-direction: column; gap: 2px; }
.overview-month-str { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.overview-saldo { font-variant-numeric: tabular-nums; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.live-active { background: rgba(52,199,89,.15); color: var(--green); }
.live-pause  { background: rgba(255,149,0,.15); color: var(--orange); }
.live-done   { background: rgba(0,122,255,.12); color: var(--blue); }
.live-off    { background: var(--bg-secondary); color: var(--text-tertiary); }
.balance-chevron { color: var(--text-tertiary); font-size: 20px; font-weight: 300; }

/* Legacy balance vars kept for other cards */
.balance-list { }
.balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}
.balance-row-click { cursor: pointer; transition: var(--transition); }
.balance-row-click:hover { background: var(--bg-tertiary); }
.balance-info { flex: 1; min-width: 0; }
.balance-name { font-weight: 600; font-size: 15px; }
.balance-meta { font-size: 12px; color: var(--text-secondary); }
.balance-figures { display: flex; gap: 18px; align-items: center; }
.balance-fig {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.balance-fig-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .overview-thead { display: none; }
  .overview-row { grid-template-columns: 1fr auto 32px; }
  .overview-today, .overview-month { display: none; }
}

/* ── Berichtsheft ── */
.berichtsheft { display: flex; flex-direction: column; gap: 18px; max-height: 520px; overflow-y: auto; }
.bh-day-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: capitalize;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  padding: 4px 0;
}
.bh-entry {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--separator);
}
.bh-entry-body { flex: 1; min-width: 0; }
.bh-entry-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.bh-entry-name { font-weight: 600; font-size: 14px; }
.bh-entry-time { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.bh-entry-note { font-size: 14px; color: var(--text-primary); margin-top: 2px; line-height: 1.4; }

/* ═══════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.text-sm { font-size: 13px; }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.text-warning { color: var(--orange); }
.text-blue    { color: var(--blue); }
.fw-bold { font-weight: 700; }
.w-full { width: 100%; }

/* Color input */
input[type=color] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: none;
}

/* Apple-Style Zeit-Inputs */
input[type=time].input {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  text-align: center;
  padding: 14px 10px;
  color: var(--text-primary);
  cursor: pointer;
}
input[type=time].input::-webkit-calendar-picker-indicator {
  display: none;
}
input[type=date].input {
  font-size: 15px;
  cursor: pointer;
}

/* Zeit-Block: Label oben, großes Input */
.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.time-block .input-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-secondary);
}
.time-block input[type=time].input {
  width: 100%;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--separator);
}
.time-block input[type=time].input:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(0,122,255,.14);
}

/* Zeit-Row: zwei Blöcke nebeneinander mit Trenner */
.time-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.time-row-sep {
  align-self: center;
  font-size: 24px;
  font-weight: 300;
  color: var(--text-tertiary);
  padding-top: 24px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--bg-tertiary);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* Summary row in table */
.summary-row td {
  background: var(--bg-secondary);
  font-weight: 700;
  border-top: 2px solid var(--separator);
}

/* ═══════════════════════════════════════
   TEAM-BOARD
   ═══════════════════════════════════════ */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.proj-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.board-actions { display: flex; gap: 10px; flex-shrink: 0; }

.proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.proj-chip:hover { background: var(--bg-secondary); }
.proj-chip.active { background: var(--text-primary); color: var(--bg-card); border-color: var(--text-primary); }
.proj-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.proj-count {
  font-size: 11px;
  background: rgba(120,120,128,.18);
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.proj-chip.active .proj-count { background: rgba(255,255,255,.25); }
.proj-chip-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s, background .15s;
  margin-left: 2px;
}
.proj-chip:hover .proj-chip-del { opacity: .6; }
.proj-chip-del:hover { opacity: 1 !important; background: rgba(255,59,48,.2); color: var(--red); }

.board-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: start;
}

.board-col {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 120px;
  transition: var(--transition);
}
.board-col.drag-over {
  border-color: var(--blue);
  background: rgba(0,122,255,.08);
  box-shadow: 0 0 0 3px rgba(0,122,255,.12);
}
.col-unassigned { background: rgba(142,142,147,.10); }

.board-col-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 14px 10px;
}
.board-col-name { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-col-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 2px 9px;
  min-width: 24px;
  text-align: center;
}

.board-col-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 10px;
  min-height: 8px;
}
.col-empty { font-size: 13px; color: var(--text-tertiary); padding: 10px 6px; text-align: center; }

.col-add {
  margin: 10px;
  padding: 9px;
  border: 1px dashed var(--separator);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.col-add:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--text-tertiary); }

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: var(--transition);
}
.task-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: .4; transform: scale(.97) rotate(1deg); }
.task-card.is-done { opacity: .62; }
.task-card.is-done .task-title { text-decoration: line-through; color: var(--text-secondary); }

.task-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.task-status {
  border: none;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.st-todo  { background: rgba(120,120,128,.18); color: var(--text-secondary); }
.st-doing { background: rgba(0,122,255,.15);   color: var(--blue); }
.st-done  { background: rgba(52,199,89,.16);   color: var(--green); }

.task-del {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0;
  transition: var(--transition);
}
.task-card:hover .task-del { opacity: 1; }
.task-del:hover { color: var(--red); }

.task-quick-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.task-qa-btn {
  flex: 1;
  padding: 5px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--separator);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.task-qa-btn:hover { border-color: transparent; color: #fff; }
.qa-doing:hover { background: var(--blue); }
.qa-done:hover  { background: var(--green); }

.task-title { font-size: 14px; font-weight: 500; line-height: 1.35; word-break: break-word; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.task-proj {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 999px;
}
.task-due {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(120,120,128,.14);
  color: var(--text-secondary);
}
.task-due.due-today { background: rgba(0,122,255,.15);  color: var(--blue); }
.task-due.due-soon  { background: rgba(255,149,0,.15);  color: var(--orange); }
.task-due.due-over  { background: rgba(255,59,48,.15);  color: var(--red); }

/* Vorlagen-Manager */
.tpl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tpl-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tpl-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tpl-tab-new { border-style: dashed; color: var(--text-secondary); }

.tpl-detail-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.tpl-name-input { font-weight: 700; }
.tpl-items { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.tpl-item { display: flex; align-items: center; gap: 8px; }
.tpl-item-grip { color: var(--text-tertiary); cursor: default; }
.tpl-item-title { flex: 1; }
.tpl-item-assignee { width: 160px; flex-shrink: 0; }
.tpl-item .task-del { opacity: 1; }

.tpl-add-row { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--separator); }
.tpl-add-row .input:first-child { flex: 1; }
.tpl-add-row #ti-assignee { width: 160px; flex-shrink: 0; }

.tpl-preview { margin-top: 8px; }
.tpl-preview-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.tpl-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-secondary);
  margin-bottom: 4px;
}
.tpl-preview-assignee { color: var(--text-secondary); flex-shrink: 0; }

@media (max-width: 700px) {
  .board-columns { grid-auto-columns: minmax(220px, 80%); }
  .tpl-item-assignee, .tpl-add-row #ti-assignee { width: 120px; }
}

/* ── Projekt-Fortschritt (Progress-Bar pro Kunde) ── */
.proj-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.proj-progress-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--spring);
}
.proj-progress-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.proj-progress-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.proj-progress-name { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-progress-frac { font-size: 12px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.proj-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.proj-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width .4s cubic-bezier(.34,1.56,.64,1);
}
.proj-progress-fill.complete { background: linear-gradient(90deg, var(--green), #30D158); }

/* ── Theme-Toggle ── */
.theme-toggle {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin-top: 10px;
}
.theme-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.theme-toggle-btn:hover { color: var(--text-primary); }
.theme-toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Clock-out: Aufgaben verknüpfen ── */
.task-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--bg-secondary);
}
.task-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.task-link-item:hover { background: var(--bg-card); }
.task-link-item input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }

/* ── Home: Fällige Aufgaben ── */
.home-task {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.home-task:hover { background: var(--bg-secondary); }
.home-task-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--blue); flex-shrink: 0; }
.home-task-body { flex: 1; min-width: 0; }
.home-task-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-task-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── Home: Bottom Grid (Tasks + Notizen) ── */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 700px) {
  .home-bottom-grid { grid-template-columns: 1fr; }
}

/* ── Time-Pill: Halbtag Urlaub ── */
.pill-halfvac { background: rgba(88,86,214,.15); color: var(--indigo); }

/* ── Time-Pill: Schule ── */
.pill-school     { background: rgba(48,209,88,.15);  color: var(--green); }
.pill-schoolwork { background: rgba(0,199,190,.15);  color: #00C7BE; }

/* ── Time-Pill: Kontoanpassung ── */
.pill-adjust { background: rgba(142,142,147,.15); color: var(--text-secondary); }
.badge-gray  { background: rgba(142,142,147,.18); color: var(--text-secondary); }
.adjustment-row td { background: var(--bg-secondary); }

/* ── Team-Status Widget ── */
.team-status-card { padding: 0; }
.team-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--separator);
}
.team-status-head h3 { font-size: 15px; font-weight: 700; }
.team-status-count {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.team-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
}
.team-status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  min-width: 76px;
  transition: var(--transition);
}
.team-status-item.is-active { background: rgba(52,199,89,.08); }
.team-status-item.is-passive { opacity: .65; }
.ts-avatar-wrap { position: relative; }
.ts-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.ts-dot-active  { background: var(--green); animation: pulse 1.5s infinite; }
.ts-dot-pause   { background: var(--orange); animation: pulse 1.5s infinite; }
.ts-dot-passive { background: var(--text-tertiary); }
.ts-state-pause { color: var(--orange); }
.ts-name { font-size: 12px; font-weight: 600; max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-state { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }

/* ── Badge: teal (Schule) ── */
.badge-teal { background: rgba(0,199,190,.18); color: #00A8A0; }

/* ── Schule Quick-Buttons im Timer-Widget ── */
.timer-school-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}
.btn-school {
  flex: 1;
  max-width: 200px;
  padding: 9px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--separator);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-school:hover {
  border-color: var(--green);
  background: rgba(48,209,88,.1);
  color: var(--green);
}
.btn-school-work:hover {
  border-color: #00C7BE;
  background: rgba(0,199,190,.1);
  color: #00A8A0;
}

/* ── Frühstücks-Alert Modal ── */
.modal-header .modal-close { transition: var(--transition); }

/* ══════════════════════════════════════
   Comms-Layer: Persistente Popups, Frühstücks-Pin, Boss-Kommunikation
   ══════════════════════════════════════ */

/* ── Notification-Stack (unten rechts, nie blockierend) ── */
#notify-stack {
  position: fixed; right: 16px; bottom: 88px; z-index: 9000;
  display: flex; flex-direction: column-reverse; gap: 10px;
  max-width: 360px; width: calc(100vw - 32px);
  max-height: 70vh; overflow-y: auto; padding: 4px;
  pointer-events: none;
}
.notify-card {
  pointer-events: auto;
  background: var(--bg-card); border: 1px solid var(--separator);
  border-radius: var(--radius-md); padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  animation: notifyIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes notifyIn { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
.notify-out { opacity: 0; transform: translateX(40px); transition: all .25s ease; }
.notify-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.notify-sender { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.notify-close { background: none; border: none; font-size: 18px; color: var(--text-tertiary); cursor: pointer; line-height: 1; padding: 2px 6px; }
.notify-close:hover { color: var(--text-primary); }
.notify-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.notify-msg { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.notify-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.notify-sev-success { border-left: 3px solid var(--green); }
.notify-sev-warning { border-left: 3px solid var(--orange); }
.notify-sev-danger  { border-left: 3px solid var(--red); }
.notify-sev-info    { border-left: 3px solid var(--blue); }
/* Tonstufen: härtere Töne = härterer Auftritt */
.notify-tone-mid { box-shadow: 0 0 0 1px rgba(255,149,0,.4), 0 8px 30px rgba(255,149,0,.25); animation: notifyIn .35s cubic-bezier(.34,1.56,.64,1), notifyWiggle .5s ease .4s; }
@keyframes notifyWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }
.notify-tone-hard { box-shadow: 0 0 0 2px rgba(255,59,48,.55), 0 10px 36px rgba(255,59,48,.35); animation: notifyIn .35s cubic-bezier(.34,1.56,.64,1), notifyShake .45s ease .35s; }
@keyframes notifyShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* ── Frühstücks-Pin (oben rechts fixiert, bis Admin abhakt) ── */
#breakfast-pin { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 8500; display: flex; flex-direction: column; align-items: center; }
.bp-chip {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #FF9500, #FFCC00);
  color: #fff; border: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,149,0,.4);
  animation: bpPulse 2.5s ease infinite;
}
@keyframes bpPulse { 0%,100% { box-shadow: 0 4px 16px rgba(255,149,0,.4); } 50% { box-shadow: 0 4px 24px rgba(255,149,0,.7); } }
.bp-count { background: rgba(255,255,255,.3); border-radius: 999px; padding: 0 7px; }
.bp-list {
  margin-top: 8px; background: var(--bg-card); border: 1px solid var(--separator);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px 12px; min-width: 240px;
  animation: notifyIn .25s ease;
}
.bp-list-head { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.bp-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--separator); }
.bp-row:last-of-type { border-bottom: none; }
.bp-name { font-weight: 600; font-size: 13px; flex: 1; }
.bp-time { font-size: 12px; color: var(--text-secondary); }
.bp-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }

/* ── Boss-Kommunikation ── */
.boss-chaos { padding: 8px 16px 4px; font-size: 13px; font-weight: 600; }
.boss-problems { padding: 6px 12px 12px; }
.boss-problem {
  padding: 10px 12px; margin-top: 8px;
  background: var(--bg-secondary); border-radius: 12px;
  border-left: 3px solid var(--orange);
  animation: cardIn .3s ease backwards;
}
.boss-problem:nth-child(2) { animation-delay: .04s; }
.boss-problem:nth-child(3) { animation-delay: .08s; }
.boss-problem:nth-child(4) { animation-delay: .12s; }
.boss-problem:nth-child(5) { animation-delay: .16s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boss-problem.sev-danger { border-left-color: var(--red); }
.boss-problem.sev-info { border-left-color: var(--blue); }
.boss-problem-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.boss-problem-name { font-weight: 700; font-size: 13px; }
.boss-problem-title { font-size: 13px; color: var(--text-secondary); }
.boss-problem-detail { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 8px; }
.boss-problem-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.boss-btn-mid { color: var(--orange) !important; }
.boss-btn-hard { color: var(--red) !important; }
.boss-tone-row { display: flex; gap: 8px; }
.boss-tone-btn {
  flex: 1; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--separator); background: var(--bg-secondary);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition);
}
.boss-tone-btn.active.tone-normal { border-color: var(--blue); color: var(--blue); background: rgba(0,122,255,.08); }
.boss-tone-btn.active.tone-arschloch { border-color: var(--orange); color: var(--orange); background: rgba(255,149,0,.1); }
.boss-tone-btn.active.tone-fick_dich { border-color: var(--red); color: var(--red); background: rgba(255,59,48,.1); }
.boss-preview { margin: 6px 0 4px; }
.boss-preview-card { max-width: none; }

/* ── Kalender-Abwesenheiten ── */
.cal-absence { font-weight: 600; }
.cal-absence.abs-pending { opacity: .85; background-image: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,255,255,.18) 6px, rgba(255,255,255,.18) 12px); }
.cal-absence.abs-rejected { opacity: .55; text-decoration: line-through; }

/* ── Premium Flow ── */
.stat-card, .launcher-tile, .card { transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-2px); }
.bp-claimed { font-size: 11px; color: var(--orange); font-weight: 700; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════
   FORCE-ACK — Pflicht-Bestätigung: App blockiert bis der User liest
   Höchstes z-index im gesamten System, bricht alles andere auf.
   ══════════════════════════════════════════════════════════════════ */
#force-notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 20px) 20px env(safe-area-inset-bottom, 20px);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px) saturate(0.6);
  -webkit-backdrop-filter: blur(12px) saturate(0.6);
  animation: forceBackdropIn .25s ease forwards;
}
#force-notif-backdrop.force-tone-mid {
  background: rgba(40, 20, 0, 0.92);
}
#force-notif-backdrop.force-tone-hard {
  background: rgba(60, 0, 0, 0.93);
  animation: forceBackdropIn .2s ease forwards, forceBackdropPulse 1.2s ease 0.3s 3;
}

.force-notif-card {
  width: min(480px, 92vw);
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  animation: forceCardIn .45s cubic-bezier(.34,1.56,.64,1) forwards;
}
.force-notif-card.force-tone-mid {
  border: 1.5px solid rgba(255,149,0,.4);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 40px rgba(255,149,0,.2);
}
.force-notif-card.force-tone-hard {
  border: 1.5px solid rgba(255,59,48,.5);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,59,48,.35);
  animation: forceCardIn .4s cubic-bezier(.34,1.56,.64,1) forwards, forceShake .5s ease .5s;
}

.force-notif-banner {
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.force-notif-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.force-notif-sender {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.force-notif-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
.force-notif-msg {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 380px;
}

.force-notif-footer {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--separator);
}
.force-ack-primary {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: #fff;
  letter-spacing: .01em;
}
.force-ack-primary:active { transform: scale(.97); }

.force-ack-row { display: flex; gap: 10px; }
.force-ack-secondary {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--separator);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.force-ack-secondary:active { transform: scale(.97); }

.force-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  padding-top: 4px;
}

/* Animations */
@keyframes forceBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes forceBackdropPulse {
  0%, 100% { background: rgba(60,0,0,.93); }
  50%      { background: rgba(90,0,0,.95); }
}
@keyframes forceCardIn {
  from { opacity: 0; transform: scale(.75) translateY(-30px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
@keyframes forceShake {
  0%,100% { transform: translateX(0); }
  18%     { transform: translateX(-10px); }
  36%     { transform: translateX(10px); }
  54%     { transform: translateX(-8px); }
  72%     { transform: translateX(8px); }
  88%     { transform: translateX(-4px); }
}
@keyframes forceOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.9); }
}
@keyframes forceBackdropOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ───────── Team-Chat (Floating-Widget) ───────── */
#chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 8500; }
#chat-bubble {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), #0051D5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,122,255,.45); transition: transform .2s, box-shadow .2s; position: relative;
}
#chat-bubble:hover { transform: translateY(-2px) scale(1.04); }
#chat-bubble.chat-bubble-open { background: var(--text-tertiary); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
#chat-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg-base, #1c1c1e);
}
#chat-panel {
  position: absolute; right: 0; bottom: 70px; width: 350px; max-width: calc(100vw - 40px);
  height: 460px; max-height: calc(100vh - 120px); flex-direction: column;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); overflow: hidden; animation: notifyIn .25s cubic-bezier(.34,1.56,.64,1);
}
#chat-head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-bottom: 1px solid var(--separator); font-size: 15px;
}
#chat-close { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 2px; display: flex; }
#chat-close:hover { color: var(--text-primary); }
#chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { margin: auto; text-align: center; color: var(--text-tertiary); font-size: 13px; padding: 20px; }
.chat-daysep { text-align: center; font-size: 11px; color: var(--text-tertiary); margin: 6px 0; text-transform: uppercase; letter-spacing: .4px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.chat-row.chat-mine { flex-direction: row-reverse; }
.chat-bub { background: var(--bg-elevated, rgba(120,120,128,.12)); padding: 7px 11px; border-radius: 14px; max-width: 78%; }
.chat-mine .chat-bub { background: var(--blue); color: #fff; }
.chat-name { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.chat-text { font-size: 13.5px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; }
.chat-time { font-size: 10px; opacity: .6; margin-top: 2px; text-align: right; }
#chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--separator); }
#chat-form .input { flex: 1; margin: 0; }
#chat-send { padding: 0 14px; display: flex; align-items: center; }

/* ───────── Ideenboard ───────── */
.idea-canvas {
  position: relative; height: 380px; margin: 0 0 6px; overflow: hidden;
  background:
    radial-gradient(circle, var(--separator) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-elevated, rgba(120,120,128,.06));
  border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator);
}
.idea-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 14px; }
.idea-note {
  position: absolute; width: 150px; min-height: 60px; border-radius: 8px; padding: 0 0 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.22); color: #1a1a1a; user-select: none;
}
.idea-note.idea-dragging { box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 50; opacity: .95; }
.idea-note-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 2px; cursor: grab; }
.idea-note-head:active { cursor: grabbing; }
.idea-author { font-size: 10px; font-weight: 800; opacity: .65; text-transform: uppercase; letter-spacing: .3px; }
.idea-del { background: rgba(0,0,0,.12); border: none; border-radius: 5px; cursor: pointer; color: #1a1a1a; display: flex; padding: 2px; opacity: .6; }
.idea-del:hover { opacity: 1; background: rgba(0,0,0,.22); }
.idea-text { font-size: 13px; line-height: 1.35; padding: 0 8px; outline: none; white-space: pre-wrap; word-wrap: break-word; min-height: 20px; }
.idea-text[contenteditable="true"]:focus { background: rgba(255,255,255,.35); border-radius: 4px; }
.idea-hint { font-size: 11px; color: var(--text-tertiary); padding: 6px 16px 12px; }

/* ───────── Raucherzeit-Popup ───────── */
#smoke-backdrop {
  position: fixed; inset: 0; z-index: 999998; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); animation: forceBackdropIn .25s ease;
}
.smoke-card {
  background: linear-gradient(160deg, #2a2a2e, #18181b); color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 32px 36px; text-align: center;
  max-width: 420px; width: calc(100vw - 48px); box-shadow: 0 24px 70px rgba(0,0,0,.6);
  animation: smokePop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes smokePop { from { opacity: 0; transform: scale(.8) translateY(20px); } to { opacity: 1; transform: none; } }
.smoke-emoji { font-size: 64px; line-height: 1; margin-bottom: 8px; animation: smokeWiggle 1.2s ease-in-out infinite; }
@keyframes smokeWiggle { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.smoke-time { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-bottom: 10px; }
.smoke-saying { font-size: 19px; font-weight: 600; line-height: 1.4; margin-bottom: 22px; }
.smoke-close { padding: 11px 24px; font-size: 15px; }

/* ── Team-Chat: System-Events (Einstempeln/Pause/Feierabend/Aufgabe) ── */
.chat-system {
  align-self: center; max-width: 92%; text-align: center;
  font-size: 12px; color: var(--text-secondary);
  background: var(--bg-elevated, rgba(120,120,128,.12));
  border-radius: 12px; padding: 5px 12px; margin: 2px auto;
  display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.chat-sys-time { font-size: 10px; opacity: .55; }

/* ───────── Teammeeting-Protokolle ───────── */
.proto-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.proto-sidebar { position: sticky; top: 12px; }
.proto-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 10px 12px; margin-bottom: 8px; transition: var(--transition);
}
.proto-item:hover { border-color: var(--blue); }
.proto-item.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,122,255,.25); }
.proto-item-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.proto-item-meta { font-size: 11px; color: var(--text-tertiary); }
.proto-main { padding: 20px; min-height: 420px; }
.proto-empty { color: var(--text-tertiary); text-align: center; padding: 60px 20px; }
.proto-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.proto-title { flex: 1; min-width: 160px; font-weight: 700; font-size: 16px; }
.proto-date { width: 160px; }
.proto-saved { font-size: 12px; color: var(--text-tertiary); min-width: 80px; }
.proto-sheet {
  width: 100%; min-height: 340px; resize: vertical; line-height: 1.7; font-size: 15px;
  padding: 22px 26px; border-radius: var(--radius-md); border: 1px solid var(--separator);
  background: var(--bg-input, #fff); color: var(--text-primary);
  background-image: repeating-linear-gradient(transparent, transparent 27px, var(--separator) 27px, var(--separator) 28px);
  background-attachment: local; font-family: inherit;
}
.proto-tasks { margin-top: 22px; }
.proto-tasks h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 15px; }
.proto-task { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--separator); }
.proto-task-status { font-size: 15px; width: 18px; text-align: center; }
.proto-task-status.st-done { color: var(--green); }
.proto-task-title { flex: 1; font-size: 14px; }
.proto-task-title.done { text-decoration: line-through; color: var(--text-tertiary); }
.proto-task-who { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.proto-task-due { font-size: 11px; color: var(--text-tertiary); }
.proto-task-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.proto-task-form .input { flex: 1; min-width: 120px; margin: 0; }
@media (max-width: 760px) {
  .proto-layout { grid-template-columns: 1fr; }
  .proto-sidebar { position: static; }
}
