/* ═══════════════════════════════════════════════════════════════
   easybill GO · Mobile Webapp
   Design angelehnt an www.easybill.de
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* easybill.de Brand */
  --eb-blue: #2653F0;
  --eb-blue-hover: #1E43C9;
  --eb-blue-wash: rgba(38, 83, 240, .08);
  --eb-blue-tint: rgba(38, 83, 240, .14);
  --eb-blue-ring: rgba(38, 83, 240, .30);
  --eb-navy: #0B2D85;
  --eb-deep: #051A4D;

  /* Semantik */
  --ok: #16A34A;      --ok-bg: #ECFDF5;
  --warn: #D97706;    --warn-bg: #FFFBEB;
  --err: #DC2626;     --err-bg: #FEF2F2;

  /* Text */
  --t1: #101828;
  --t2: #344054;
  --t3: #6B7280;
  --t4: #9CA3AF;

  /* Flächen */
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --input: #F9FAFB;
  --line: #E5E7EB;
  --line-soft: #F0F1F5;

  /* Radii — easybill.de: Karten 16px, Buttons Pill */
  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 9999px;

  --sh-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sh-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .05);
  --sh-lg: 0 12px 32px rgba(5, 26, 77, .16), 0 4px 12px rgba(5, 26, 77, .10);
  --sh-fab: 0 8px 24px rgba(38, 83, 240, .40);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 64px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  min-height: 100%;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; /* verhindert iOS-Zoom */ }
a { color: var(--eb-blue); text-decoration: none; }

.hidden { display: none !important; }

/* ─── Login ──────────────────────────────────────────────── */

#screen-login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + var(--sab));
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--eb-blue-tint), transparent 60%),
    var(--bg);
}

.login-logo { margin-bottom: 28px; text-align: center; }
.login-logo img { height: 40px; }
.login-logo .go-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: var(--eb-blue);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: 8px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-md);
  padding: 28px 24px;
}

.login-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.login-card .sub { color: var(--t3); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--input);
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  color: var(--t1);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--eb-blue);
  box-shadow: 0 0 0 3px var(--eb-blue-wash);
  background: #fff;
}
.field .hint { font-size: 12px; color: var(--t4); margin-top: 5px; }
.field input:disabled {
  background: var(--line-soft);
  color: var(--t4);
  border-color: var(--line-soft);
  cursor: not-allowed;
  -webkit-text-fill-color: var(--t4);
  opacity: 1;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Buttons — Pill wie auf easybill.de */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  transition: transform .12s var(--smooth), box-shadow .15s, background .15s, opacity .15s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary {
  background: var(--eb-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(38, 83, 240, .30);
}
.btn-primary:hover { background: var(--eb-blue-hover); }
.btn-ghost {
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--t2);
}
.btn-ghost:hover { border-color: var(--t4); }
.btn-soft { background: var(--eb-blue-wash); color: var(--eb-blue); }
.btn-danger-soft { background: var(--err-bg); color: var(--err); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.form-error {
  display: none;
  background: var(--err-bg);
  color: var(--err);
  border-radius: var(--r-input);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 14px;
}
.form-error.show { display: block; }

.login-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--t3); }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(16, 24, 40, .15); border-top-color: var(--eb-blue); }
@keyframes spin { to { transform: rotate(360deg); } }

.boot-loading {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── App-Shell ──────────────────────────────────────────── */

#app { display: flex; flex-direction: column; min-height: 100dvh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--sat)) 18px 10px;
  background: rgba(244, 246, 251, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .brand { display: flex; align-items: center; gap: 7px; }
.topbar img.logo { height: 26px; display: block; }
.topbar .go-tag {
  padding: 1px 8px;
  background: var(--eb-blue);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  transform: translateY(-5px);
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eb-blue), var(--eb-navy));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
}

.views {
  flex: 1;
  padding: 18px 18px calc(var(--nav-h) + var(--sab) + 96px);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.view { display: none; animation: viewIn .28s var(--smooth); }
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.view-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 2px; }
.view-sub { color: var(--t3); font-size: 14px; margin-bottom: 18px; }

/* ─── Dashboard ──────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(132deg, var(--eb-deep) 0%, var(--eb-navy) 58%, #1240B8 100%);
  border-radius: 20px;
  padding: 24px 22px;
  color: #fff;
  box-shadow: var(--sh-lg);
  margin-bottom: 16px;
}
.hero::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .45), transparent 70%);
}
.hero::before {
  content: '';
  position: absolute;
  left: -40px; bottom: -80px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 70%);
}
.hero .greet { font-size: 22px; font-weight: 800; letter-spacing: -.02em; position: relative; }
.hero .date { font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-top: 3px; position: relative; }
.hero .hero-stats {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  position: relative;
}
.hero .hstat {
  flex: 1;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.hero .hstat .num { font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.hero .hstat .lbl { font-size: 11px; color: rgba(255, 255, 255, .70); margin-top: 1px; font-weight: 500; }

/* Live-Timer-Banner auf Dashboard */
.timer-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--eb-blue-ring);
  border-radius: var(--r-card);
  box-shadow: var(--sh-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.timer-banner.show { display: flex; }
.timer-banner .pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}
.timer-banner .tb-txt { flex: 1; min-width: 0; }
.timer-banner .tb-time { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer-banner .tb-lbl { font-size: 12px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--t3);
  margin: 22px 2px 10px;
}
.section-label .more { font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  padding: 16px;
  text-align: left;
  transition: transform .15s var(--smooth), box-shadow .15s;
}
.qa:active { transform: scale(.97); }
.qa .qa-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eb-blue-wash);
  color: var(--eb-blue);
}
.qa .qa-ico.green { background: var(--ok-bg); color: var(--ok); }
.qa .qa-ico.navy { background: rgba(11, 45, 133, .09); color: var(--eb-navy); }
.qa .qa-ico.warn { background: var(--warn-bg); color: var(--warn); }
.qa .qa-t { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.qa .qa-s { font-size: 12px; color: var(--t3); margin-top: 2px; }

/* ─── Karten & Listen ────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
}

.list-empty {
  text-align: center;
  padding: 34px 20px;
  color: var(--t3);
  font-size: 14px;
}
.list-empty svg { display: block; margin: 0 auto 10px; opacity: .5; }

.entry-list .entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}
.entry-list .entry + .entry { border-top: 1px solid var(--line-soft); }
.entry .e-ico {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--eb-blue-wash);
  color: var(--eb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry .e-main { flex: 1; min-width: 0; }
.entry .e-desc { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .e-meta { font-size: 12px; color: var(--t3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .e-dur {
  flex: none;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--eb-navy);
  background: rgba(11, 45, 133, .08);
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

/* ─── Zeiterfassung ──────────────────────────────────────── */

.timer-card {
  background:
    radial-gradient(500px 260px at 50% -80px, rgba(38, 83, 240, .10), transparent 65%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-md);
  padding: 26px 20px 22px;
  text-align: center;
  margin-bottom: 16px;
}
.timer-display {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--t1);
}
.timer-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t3);
  background: var(--input);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.timer-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t4); }
.timer-state.live { color: var(--ok); background: var(--ok-bg); border-color: rgba(22, 163, 74, .25); }
.timer-state.live .dot { background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.timer-state.paused { color: var(--warn); background: var(--warn-bg); border-color: rgba(217, 119, 6, .25); }
.timer-state.paused .dot { background: var(--warn); }

.timer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.btn-timer-main {
  min-width: 150px;
  padding: 14px 26px;
  font-size: 16px;
}
.btn-timer-main.stop { background: var(--err); box-shadow: 0 2px 8px rgba(220, 38, 38, .30); }
.btn-timer-main.stop:hover { background: #B91C1C; }

.mode-toggle {
  display: flex;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: 16px;
}
.mode-toggle button {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--t3);
  transition: all .18s var(--smooth);
}
.mode-toggle button.active {
  background: var(--card);
  color: var(--eb-blue);
  box-shadow: var(--sh-sm);
}

/* ─── Projekte ───────────────────────────────────────────── */

.search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-wrap { position: relative; flex: 1; }
.search-wrap svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--t4);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus {
  border-color: var(--eb-blue);
  box-shadow: 0 0 0 3px var(--eb-blue-wash);
}

.proj-list { display: flex; flex-direction: column; gap: 10px; }
.proj {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  padding: 15px 16px;
  text-align: left;
  width: 100%;
  transition: transform .15s var(--smooth);
}
.proj:active { transform: scale(.98); }
.proj .p-badge {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--eb-blue), var(--eb-navy));
}
.proj .p-main { flex: 1; min-width: 0; }
.proj .p-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj .p-meta { font-size: 12.5px; color: var(--t3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj .p-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge.open { background: var(--ok-bg); color: var(--ok); }
.badge.done { background: var(--eb-blue-wash); color: var(--eb-blue); }
.badge.cancel { background: var(--err-bg); color: var(--err); }
.badge.neutral { background: var(--input); color: var(--t3); }

.p-budget { font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }

/* ─── Bottom-Navigation ──────────────────────────────────── */

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--sab));
  height: calc(var(--nav-h) + var(--sab));
}
.bnav {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 14px;
  color: var(--t4);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .18s;
}
.bnav svg { transition: transform .2s var(--spring); }
.bnav.active { color: var(--eb-blue); }
.bnav.active svg { transform: translateY(-1px) scale(1.08); }

/* ─── FAB (Speed-Dial wie in der Hauptapp) ───────────────── */

.fab-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(5, 26, 77, .40);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--smooth);
}
.fab-overlay.show { opacity: 1; pointer-events: auto; }

.fab-wrap {
  position: fixed;
  right: 18px;
  bottom: calc(var(--nav-h) + var(--sab) + 18px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px) scale(.92);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .2s var(--smooth), transform .24s var(--spring);
}
.fab-actions.open { opacity: 1; transform: none; pointer-events: auto; }

.fab-action { display: flex; align-items: center; gap: 12px; }
.fab-action-label {
  background: var(--card);
  color: var(--t1);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.fab-action-btn {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eb-blue);
  transition: transform .15s var(--spring);
}
.fab-action-btn:active { transform: scale(.92); }
.fab-action-btn.green { color: var(--ok); }
.fab-action-btn.navy { color: var(--eb-navy); }
.fab-action-btn.stop-red { color: var(--err); }

.fab-main {
  width: 58px; height: 58px;
  border-radius: 19px;
  background: var(--eb-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-fab);
  transition: transform .26s var(--spring), background .2s, border-radius .26s var(--spring);
}
.fab-main:active { transform: scale(.94); }
.fab-main svg { transition: transform .26s var(--spring); }
.fab-main.open { background: var(--eb-deep); border-radius: 50%; }
.fab-main.open svg { transform: rotate(45deg); }

/* Staffel-Animation der FAB-Aktionen */
.fab-actions .fab-action { opacity: 0; transform: translateX(10px); transition: opacity .2s, transform .22s var(--spring); }
.fab-actions.open .fab-action { opacity: 1; transform: none; }
.fab-actions.open .fab-action:nth-child(1) { transition-delay: .07s; }
.fab-actions.open .fab-action:nth-child(2) { transition-delay: .035s; }
.fab-actions.open .fab-action:nth-child(3) { transition-delay: 0s; }

/* ─── Bottom-Sheets ──────────────────────────────────────── */

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 26, 77, .45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--smooth);
}
.sheet-overlay.show { opacity: 1; pointer-events: auto; }

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 10px 22px calc(24px + var(--sab));
  box-shadow: 0 -12px 48px rgba(5, 26, 77, .25);
  transform: translateY(100%);
  transition: transform .3s var(--smooth);
}
.sheet-overlay.show .sheet { transform: none; }

.sheet .grip {
  width: 42px; height: 5px;
  background: var(--line);
  border-radius: var(--r-pill);
  margin: 6px auto 16px;
}
.sheet h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px; }
.sheet .s-sub { font-size: 13.5px; color: var(--t3); margin-bottom: 18px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 20px; }
.sheet-btns .btn { flex: 1; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.sheet-btns .btn-ghost { flex: 0 0 auto; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Übernommene Timer-Zeit im Zeiteintrag-Sheet */
.applied-chip {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--ok-bg);
  border: 1px solid rgba(22, 163, 74, .25);
  color: var(--ok);
  border-radius: var(--r-input);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.applied-chip.show { display: flex; }

/* ─── Toast ──────────────────────────────────────────────── */

#toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--sab) + 20px);
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--eb-deep);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  animation: toastIn .3s var(--spring);
  max-width: 100%;
}
.toast.err { background: var(--err); }
.toast.ok .t-ico { color: #4ADE80; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  to { opacity: 1; transform: none; }
}
.toast.out { animation: toastOut .25s var(--smooth) forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(.95); }
}

/* ─── Profil-Menü ────────────────────────────────────────── */

.menu-pop {
  position: fixed;
  top: calc(var(--sat) + 58px);
  right: 14px;
  z-index: 70;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  min-width: 230px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s, transform .2s var(--spring);
}
.menu-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.menu-pop .mp-head { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.menu-pop .mp-name { font-size: 14.5px; font-weight: 700; }
.menu-pop .mp-mail { font-size: 12px; color: var(--t3); }
.menu-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  text-align: left;
}
.menu-pop button:active { background: var(--input); }
.menu-pop button.danger { color: var(--err); }

/* ─── Skeleton ───────────────────────────────────────────── */

.skel {
  background: linear-gradient(90deg, var(--line-soft) 25%, #fafbfd 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-card);
}
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 700px) {
  .views { padding-top: 26px; }
  .qa-grid { grid-template-columns: repeat(4, 1fr); }
}
