/* Beachfinder TeamHub – app.css */
/* Design System: teal #00B1BB · navy #102F39 · bg #F7F9FA */

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

:root {
  --teal:        #00B1BB;
  --teal-600:    #009CA6;
  --teal-700:    #00848C;
  --teal-100:    #E6F7F8;
  --teal-border: #CCEFF1;
  --navy:        #102F39;
  --navy-700:    #1A4455;
  --bg:          #F7F9FA;
  --surface:     #ffffff;
  --border:      #EEF2F4;
  --border-2:    #DDE4E8;
  --fg-1:        #102F39;
  --fg-2:        #34434B;
  --fg-3:        #6A7B83;
  --fg-4:        #94A4AB;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(16,47,57,.06);
  --shadow:      0 2px 8px rgba(16,47,57,.08);
  --shadow-lg:   0 4px 20px rgba(16,47,57,.12);
  --success:     #1FA67A;
  --success-bg:  #E5F5EF;
  --warning:     #9A6E10;
  --warning-bg:  #FBF1DD;
  --danger:      #C23B3B;
  --danger-bg:   #F7E2E2;
  --sidebar-w:   240px;
  --topbar-h:    56px;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-display:'Montserrat', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg-2); line-height: 1.5; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-600); }
img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.layout-body { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 32px 36px; max-width: 1280px; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--navy); display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto; overflow-x: hidden;
}
.sidebar-header { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.sidebar-logo { width: 148px; height: auto; display: block; margin-bottom: 5px; }
.sidebar-sub { color: rgba(255,255,255,.38); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-left: 1px; }
.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-footer { padding: 12px 10px 16px; border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: rgba(255,255,255,.5);
  font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s;
  text-decoration: none; cursor: pointer;
}
.nav-item:hover  { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.nav-item.active { background: color-mix(in srgb,var(--teal) 18%,transparent); color: #fff; font-weight: 600; }
.nav-item.active svg { color: var(--teal); }
.nav-item svg { flex-shrink: 0; opacity: .7; }
.nav-item.active svg { opacity: 1; }
.nav-item-sm { padding: 7px 12px; font-size: 13px; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--teal); color: white; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ── Topbar (mobile) ─────────────────────────────────────────────────────── */
.topbar { display: none; align-items: center; gap: 12px; height: var(--topbar-h); padding: 0 16px; background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.topbar-title { font-weight: 700; color: var(--fg-1); font-size: 15px; flex: 1; }
.hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--fg-2); border-radius: 2px; }

/* ── Sidebar overlay (mobile) ────────────────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(16,47,57,.55); z-index: 190; }
.sidebar-overlay.active { display: block; }

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.avatar { border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--teal-600)); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); flex-shrink: 0; }
.avatar-sm  { width: 32px; height: 32px; font-size: 11px; }
.avatar-md  { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg  { width: 52px; height: 52px; font-size: 17px; }
.avatar-xl  { width: 64px; height: 64px; font-size: 22px; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); }
.user-chip-name { color: white; font-size: 13px; font-weight: 600; line-height: 1.3; }
.user-chip-role { color: rgba(255,255,255,.42); font-size: 11px; }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-header-left h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--fg-1); }
.page-header-left .subtitle { color: var(--fg-3); font-size: 14px; margin-top: 3px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-4); margin-bottom: 6px; }
.breadcrumb a { color: var(--fg-3); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { font-size: 12px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-link { transition: box-shadow .2s ease, border-color .2s ease; cursor: pointer; }
.card-link:hover { box-shadow: var(--shadow-lg); border-color: #C2CDD2; }
.card-p0 { padding: 0; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 24px; }

/* ── Metric cards ────────────────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 16px; margin-bottom: 28px; }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.metric-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.metric-card-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--fg-1); line-height: 1.2; }
.metric-card-label { font-size: 12px; color: var(--fg-4); font-weight: 500; margin-top: 2px; }
.metric-card-sub { font-size: 12px; color: var(--fg-3); margin-top: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn svg { flex-shrink: 0; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-700); color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-600); color: white; }
.btn-secondary { background: var(--bg); color: var(--fg-2); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success-bg); color: var(--success); border: 1px solid #A8DCC9; }
.btn-success:hover { background: #D0EDDF; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #EBBBBB; }
.btn-danger:hover { background: #F0CCCC; }
.btn-ghost { background: transparent; color: var(--fg-3); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--fg-1); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-hint { font-size: 12px; color: var(--fg-4); margin-top: 5px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--fg-1); background: white; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb,var(--teal) 12%,transparent); }
.form-control::placeholder { color: var(--fg-4); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-pending  { background: var(--warning-bg);  color: var(--warning);  border: 1px solid #F0D898; }
.badge-approved { background: var(--success-bg); color: var(--success); border: 1px solid #A8DCC9; }
.badge-rejected { background: var(--danger-bg);  color: var(--danger);  border: 1px solid #EBBBBB; }
.badge-info     { background: var(--teal-100);   color: var(--teal-600);        border: 1px solid var(--teal-border); }
.badge-neutral  { background: var(--border);     color: var(--fg-3);    border: 1px solid var(--border-2); }
.badge-admin    { background: var(--teal-100);   color: var(--teal-600); border: 1px solid var(--teal-border); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: var(--bg); border-bottom: 2px solid var(--border); }
thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 12px 16px; color: var(--fg-2); vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-600)); border-radius: 999px; transition: width .4s ease; }
.progress-bar.full { background: var(--success); }

/* ── Callouts ────────────────────────────────────────────────────────────── */
.callout { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.55; }
.callout svg { flex-shrink: 0; margin-top: 1px; }
.callout-info    { background: var(--teal-100);  color: var(--teal-600); border: 1px solid var(--teal-border); }
.callout-warning { background: var(--warning-bg); color: #7A5910; border: 1px solid #F0D898; }
.callout-danger  { background: var(--danger-bg);  color: var(--danger); border: 1px solid #EBBBBB; }
.callout-success { background: var(--success-bg); color: #157A5A; border: 1px solid #A8DCC9; }

/* ── Section label ───────────────────────────────────────────────────────── */
.section-label { font-size: 11px; font-weight: 700; color: var(--fg-4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state-icon { width: 52px; height: 52px; margin: 0 auto 16px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.empty-state h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--fg-1); margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--fg-3); margin-bottom: 20px; }

/* ── File upload zone ────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 32px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--teal); background: var(--teal-100); }
.upload-zone input { display: none; }
.upload-zone-icon { margin: 0 auto 12px; color: var(--teal); }
.upload-file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.upload-file-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.upload-file-name { flex: 1; font-weight: 500; color: var(--fg-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-size { color: var(--fg-4); white-space: nowrap; }
.upload-file-remove { background: none; border: none; cursor: pointer; color: var(--danger); padding: 2px; display: flex; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Career level card ───────────────────────────────────────────────────── */
.level-card { padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: white; }
.level-card.current { border-color: var(--teal); background: linear-gradient(135deg, var(--teal-100), color-mix(in srgb,var(--teal) 5%,white)); }
.level-card.next { border-color: #DDE4E8; }
.level-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.level-badge-current { background: var(--teal-100); color: var(--teal-600); border: 1px solid var(--teal-border); }
.level-badge-next { background: #EEF2F4; color: var(--fg-3); border: 1px solid var(--border-2); }
.level-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--fg-1); }
.level-salary { font-size: 22px; font-weight: 800; color: var(--teal); font-family: var(--font-display); }

/* ── Requirement rows ────────────────────────────────────────────────────── */
.req-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.req-row:last-child { border: none; }
.req-progress { flex: 1; }
.req-label { font-size: 13px; font-weight: 500; color: var(--fg-2); margin-bottom: 5px; }
.req-counts { font-size: 12px; color: var(--fg-3); display: flex; justify-content: space-between; }

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; }
.login-aside { width: 420px; background: var(--navy); flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px 52px; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--fg-1); margin-bottom: 6px; }
.login-card .sub { color: var(--fg-3); font-size: 15px; margin-bottom: 32px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--fg-4); font-size: 13px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }

/* ── Checklist feature list (login aside) ────────────────────────────────── */
.login-features { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.login-features > div { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 13px; }
.login-features svg { color: rgba(255,255,255,.45); flex-shrink: 0; }
.feature-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.5; }
.feature-list li::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb,var(--teal) 25%,transparent); color:var(--teal-600); flex-shrink: 0; display:grid; place-items:center; font-size:10px; font-weight:900; margin-top: 2px; }

/* ── Passkey button ──────────────────────────────────────────────────────── */
.btn-passkey { background: white; color: var(--fg-1); border: 1.5px solid var(--border-2); width: 100%; justify-content: center; font-weight: 600; }
.btn-passkey:hover { border-color: var(--teal); background: var(--teal-100); color: var(--teal-600); }
.passkey-icon { width: 20px; height: 20px; }

/* ── Alert boxes ─────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid #EBBBBB; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #A8DCC9; }
.alert-info    { background: var(--teal-100);   color: var(--teal-600);        border: 1px solid var(--teal-border); }

/* ── Mobile-first responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .layout-body { margin-left: 0; }
  .topbar { display: flex; }
  .main-content { padding: 20px 20px; }
}

@media (max-width: 640px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .login-aside { display: none; }
  .login-main { padding: 24px 16px; }
  .page-header { margin-bottom: 20px; }
  .page-header .btn-lg { padding: 9px 16px; font-size: 14px; }
  .card { padding: 16px; }
  thead { display: none; }
  tbody tr { display: block; padding: 12px 16px; }
  tbody td { display: flex; justify-content: space-between; padding: 4px 0; border: none; font-size: 13px; }
  tbody td::before { content: attr(data-label); font-weight: 600; color: var(--fg-3); font-size: 11px; text-transform: uppercase; }
}

/* ── Util ────────────────────────────────────────────────────────────────── */
.text-muted  { color: var(--fg-3) !important; }
.text-teal   { color: var(--teal) !important; }
.text-danger { color: var(--danger) !important; }
.text-success{ color: var(--success) !important; }
.fw-bold { font-weight: 700 !important; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }

/* ── PWA & version information ──────────────────────────────────────────── */
[hidden] { display: none !important; }
.pwa-install-button {
  width: 100%; border: 0; background: transparent; font-family: var(--font-body);
  text-align: left; margin-bottom: 4px;
}
.app-version {
  padding: 7px 12px 0; color: rgba(255,255,255,.24); font-size: 10px;
  letter-spacing: .04em; text-align: right;
}
.login-version { margin-top: 18px; text-align: center; color: var(--fg-4); font-size: 10px; letter-spacing: .04em; }
.pwa-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; }
.pwa-modal-backdrop { position: absolute; inset: 0; background: rgba(16,47,57,.58); }
.pwa-modal-card {
  position: relative; width: min(100%, 460px); background: white; border-radius: 20px 20px 0 0;
  padding: 24px 22px max(28px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(16,47,57,.18);
}
.pwa-modal-card h2 { font-family: var(--font-display); font-size: 20px; color: var(--fg-1); margin-bottom: 8px; }
.pwa-modal-card p { color: var(--fg-3); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

/* ── Robust responsive layout helpers ───────────────────────────────────── */
.layout-body, .main-content, .responsive-grid, .responsive-grid > *, .card, .card-body, .card-header { min-width: 0; }
.main-content { width: 100%; }
.responsive-row { min-width: 0; }

@media (max-width: 760px) {
  .responsive-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .responsive-row { flex-wrap: wrap !important; }
  .form-group { min-width: 0 !important; }
  .form-control { min-width: 0 !important; max-width: 100%; }
  .card-header { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 640px) {
  .main-content { padding: 16px; overflow-x: hidden; }
  .metrics-grid { grid-template-columns: minmax(0, 1fr); }
  .card.card-p0 { padding: 0; }
  .btn { max-width: 100%; white-space: normal; text-align: center; justify-content: center; }
  .document-row > div[style*="flex:1"] { flex: 1 1 calc(100% - 40px) !important; }
  .document-row > .btn, .document-row > form { flex: 1 1 calc(50% - 7px); }
  .document-row > form .btn { width: 100%; }
  .upload-file-item { flex-wrap: wrap; }
  .upload-file-name { flex-basis: calc(100% - 48px); }
  .page-header-left, .page-header-left .subtitle, .card, td, th { overflow-wrap: anywhere; }
  .pwa-modal-card { border-radius: 18px 18px 0 0; }
}

/* ── Mobile administration and content layouts ─────────────────────────── */
.topbar-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.callout > div, .subtitle, .form-hint, .empty-state p { min-width:0; overflow-wrap:anywhere; }
object, iframe { max-width:100%; }
input[type="file"].form-control { padding:6px; overflow:hidden; }
input[type="file"].form-control::file-selector-button {
  margin-right:10px; padding:8px 12px; border:0; border-radius:7px;
  background:var(--bg); color:var(--fg-2); font:600 13px var(--font-body); cursor:pointer;
}

.settings-tabs {
  display:flex; flex-wrap:wrap; gap:8px; width:100%; max-width:920px;
  margin-bottom:24px; padding:0; background:transparent;
}
.settings-tab {
  display:flex; align-items:center; justify-content:center; min-height:42px;
  padding:9px 16px; border:1px solid var(--border-2); border-radius:10px;
  background:var(--surface); color:var(--fg-2); box-shadow:var(--shadow-sm);
  font-size:14px; font-weight:700; text-decoration:none; white-space:nowrap;
}
.settings-tab:hover { border-color:var(--teal); color:var(--teal-600); background:var(--teal-100); }
.settings-tab.is-active { border-color:var(--teal); background:var(--teal-100); color:var(--teal-600); box-shadow:0 0 0 2px color-mix(in srgb,var(--teal) 8%,transparent); }

.settings-provider-row {
  display:flex; align-items:center; gap:10px; padding:10px 0;
  border-bottom:1px solid var(--border);
}
.settings-provider-add { display:flex; gap:10px; }
.document-upload-form { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.document-upload-form .form-group { margin-bottom:0; }
.document-upload-submit { margin-bottom:0; }
.mobile-actions { display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; }
.compact-form { display:flex; gap:8px; }
.page-header-actions { margin-top:0; }

.employee-list-card { display:flex; align-items:center; gap:16px; text-decoration:none; }
.employee-submission-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.level-history-row { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
.file-action-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); min-width:0; }
.document-item-row { display:flex; align-items:center; gap:16px; padding:14px 24px; min-width:0; }
.document-meta { display:flex; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--fg-4); margin-top:3px; }
.document-item-actions { display:flex; gap:8px; }
.profile-data-row { display:flex; justify-content:space-between; gap:12px; min-width:0; }
.profile-data-row > :last-child { min-width:0; text-align:right; overflow-wrap:anywhere; }
.passkey-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); min-width:0; }
.section-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.dashboard-list-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); min-width:0; }
.vacation-review-form { display:flex; gap:8px; align-items:center; margin-top:10px; flex-wrap:wrap; }


.review-user-row { display:flex; align-items:center; gap:12px; margin-bottom:18px; min-width:0; }
.absence-type-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.team-member-head { display:flex; align-items:center; gap:14px; min-width:0; }
.team-member-email { font-size:12px; color:var(--fg-4); margin-top:2px; overflow-wrap:anywhere; }
.employee-list-title { display:flex; align-items:center; gap:8px; margin-bottom:2px; flex-wrap:wrap; }

.career-input-title, .career-input-number, .career-input-salary { height:36px; padding:5px 10px; font-size:13px; }
.career-input-title { min-width:150px; }
.career-input-number { width:76px; text-align:center; }
.career-input-salary { width:96px; font-weight:700; }

@media (max-width: 760px) {
  .sidebar { width:min(var(--sidebar-w), 86vw); }
  .responsive-grid { grid-template-columns:minmax(0,1fr) !important; }
  .main-content { width:100%; max-width:100%; padding:18px 16px 28px; overflow-x:hidden; }
  .page-header { gap:12px; }
  .page-header > .btn, .page-header-actions { width:100%; }
  .page-header-actions .btn { width:100%; }
  .card-header { align-items:flex-start; }

  .settings-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .settings-tab { width:100%; min-width:0; padding:10px 8px; white-space:normal; line-height:1.25; text-align:center; }
  .settings-tab:last-child:nth-child(odd) { grid-column:1 / -1; }

  .mobile-stack, .settings-provider-row, .settings-provider-add,
  .document-upload-form, .compact-form, .vacation-review-form {
    flex-direction:column !important; align-items:stretch !important; width:100%;
  }
  .mobile-stack > *, .settings-provider-row > *, .settings-provider-add > *,
  .document-upload-form > *, .compact-form > *, .vacation-review-form > * { width:100% !important; max-width:100%; }
  .document-upload-form .form-group { min-width:0 !important; }
  .document-upload-submit { width:100%; }
  .mobile-actions { flex-direction:column; align-items:stretch; width:100%; }
  .mobile-actions > .btn { width:100%; }

  .employee-list-card { align-items:flex-start; flex-wrap:wrap; }
  .review-user-row { flex-wrap:wrap; align-items:flex-start; }
  .review-user-row > .btn { width:100%; margin-left:0 !important; }
  .team-member-head { align-items:flex-start; }
  .employee-list-card > .btn { width:100%; }
  .employee-submission-row, .level-history-row, .file-action-row, .dashboard-list-row, .passkey-row {
    flex-wrap:wrap; align-items:flex-start;
  }
  .employee-submission-row > span[style*="flex:1"], .file-action-row > span[style*="flex:1"],
  .dashboard-list-row > div[style*="flex:1"], .passkey-row > div[style*="flex:1"] { flex:1 1 calc(100% - 40px) !important; min-width:0; }
  .file-action-row > .btn, .file-action-row > a.btn { flex:1 1 calc(50% - 6px); }
  .document-item-row { padding:14px 16px; flex-wrap:wrap; align-items:flex-start; }
  .document-item-row > div[style*="flex:1"] { flex:1 1 calc(100% - 58px) !important; }
  .document-item-actions { width:100%; padding-left:58px; }
  .document-item-actions .btn { flex:1; }
  .profile-data-row { align-items:flex-start; }
  .section-toolbar { align-items:flex-start; flex-wrap:wrap; }
  .section-toolbar .btn { width:100%; }
}

@media (max-width: 640px) {
  .card { padding:16px; }
  .card.card-p0 { padding:0; }
  .card-header { padding:14px 16px; }
  .empty-state { padding:32px 16px; }
  .upload-zone { padding:22px 14px; }
  .metrics-grid { grid-template-columns:minmax(0,1fr); }
  .topbar { padding:0 14px; }
  .topbar-title { font-size:14px; }

  /* Only explicitly marked tables become cards; ordinary layout tables stay untouched. */
  table.mobile-card-table { display:block; width:100%; min-width:0 !important; }
  table.mobile-card-table thead { display:none; }
  table.mobile-card-table tbody { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; padding:12px; }
  table.mobile-card-table tbody tr {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
    padding:16px; background:var(--surface) !important; border:1px solid var(--border-2) !important;
    border-radius:var(--radius); box-shadow:var(--shadow-sm);
  }
  table.mobile-card-table tbody td {
    display:block; min-width:0; width:auto !important; max-width:none !important;
    padding:0; border:0; white-space:normal !important; text-align:left !important;
    overflow:visible !important; text-overflow:clip !important;
  }
  table.mobile-card-table tbody td::before {
    content:attr(data-label); display:block; margin-bottom:5px;
    color:var(--fg-4); font-size:10px; font-weight:800; line-height:1.2;
    letter-spacing:.08em; text-transform:uppercase;
  }
  table.mobile-card-table tbody td[data-label=""]::before { display:none; }
  table.mobile-card-table tbody td.mobile-full { grid-column:1 / -1; }
  table.mobile-card-table tbody td.mobile-actions-cell { grid-column:1 / -1; }
  table.mobile-card-table tbody td.mobile-actions-cell .btn { width:100%; }
  table.mobile-card-table .badge { white-space:normal; }

  .career-level-number, .career-model-level {
    display:flex !important; align-items:center; justify-content:space-between;
    padding-bottom:10px !important; border-bottom:1px solid var(--border) !important;
  }
  .career-level-number::before, .career-model-level::before { margin:0 !important; }
  .career-level-number span, .career-model-level span { font:700 15px var(--font-display); color:var(--fg-1); }
  .career-input-title, .career-input-number, .career-input-salary { width:100% !important; min-width:0 !important; height:42px; font-size:15px; }

  .settings-provider-row { padding:14px 0; }
  .absence-type-buttons { display:grid; grid-template-columns:1fr; }
  .absence-type-buttons .btn { width:100%; }
  .card-header > .btn { width:100%; }
  .settings-provider-row .btn-danger { min-height:40px; }
  input[type="file"].form-control { font-size:12px; }
  input[type="file"].form-control::file-selector-button { max-width:55%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  .document-item-actions { padding-left:0; }
  .document-item-actions .btn { width:100%; }
  .profile-data-row { flex-direction:column; gap:3px; padding-bottom:10px; border-bottom:1px solid var(--border); }
  .profile-data-row:last-child { border-bottom:0; padding-bottom:0; }
  .profile-data-row > :last-child { text-align:left; }
  .passkey-row > form { width:100%; }
  .passkey-row > form .btn { width:100%; }
  .file-action-row > .btn, .file-action-row > a.btn { flex-basis:100%; width:100%; }
  .level-history-row { flex-direction:column; gap:3px; }
}

/* ── Profile images ─────────────────────────────────────────────────────── */
.avatar-photo { overflow:hidden; background:var(--border); }
.avatar-photo img { width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }
.profile-image-editor { display:flex; align-items:center; gap:16px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--border); }
.profile-image-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.profile-image-controls .form-hint { flex-basis:100%; margin-top:0; }
.profile-image-upload-form { display:inline-flex; }
.profile-image-file-button { position:relative; overflow:hidden; cursor:pointer; }
.profile-image-file-button input[type="file"] { position:absolute; inset:0; opacity:0; cursor:pointer; font-size:100px; }
.admin-profile-image-editor { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.employee-profile-heading { display:flex; align-items:center; gap:14px; margin-top:4px; }
.employee-profile-heading > div:last-child { min-width:0; }

/* ── Notification bell ─────────────────────────────────────────────────── */
.topbar-notification-bell {
  position:relative; width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; color:var(--fg-2); background:transparent; flex-shrink:0;
}
.topbar-notification-bell:hover { background:var(--teal-100); color:var(--teal-600); }
.topbar-notification-bell > span {
  position:absolute; top:-2px; right:-3px; min-width:18px; height:18px; padding:0 5px;
  display:flex; align-items:center; justify-content:center; border:2px solid white;
  border-radius:999px; background:var(--danger); color:white; font-size:9px; font-weight:800;
}
.topbar-profile-link { display:flex; flex-shrink:0; }

/* ── Notification center ───────────────────────────────────────────────── */
.notification-list { display:flex; flex-direction:column; gap:14px; max-width:920px; }
.notification-card {
  background:var(--surface); border:1px solid var(--border-2); border-radius:var(--radius-lg);
  padding:20px; box-shadow:var(--shadow-sm); scroll-margin-top:72px;
}
.notification-card.is-unread { border-left:4px solid var(--teal); box-shadow:0 3px 14px rgba(16,47,57,.09); }
.notification-card.is-read { opacity:.88; }
.notification-card-head { display:flex; align-items:flex-start; gap:12px; }
.notification-icon {
  width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  color:var(--teal-600); background:var(--teal-100); flex-shrink:0;
}
.notification-icon-salary_task { color:#9A6E10; background:var(--warning-bg); }
.notification-icon-level_up { color:var(--success); background:var(--success-bg); }
.notification-card-title-wrap { flex:1; min-width:0; }
.notification-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.notification-title-row h2 { font:700 16px var(--font-display); color:var(--fg-1); line-height:1.35; }
.notification-date { color:var(--fg-4); font-size:11px; margin-top:3px; }
.notification-message { margin:14px 0 0 54px; color:var(--fg-2); font-size:14px; line-height:1.65; }
.notification-checklist { margin:18px 0 0 54px; padding:16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.notification-checklist-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; color:var(--fg-3); font-size:12px; font-weight:700; }
.notification-checklist-items { display:flex; flex-direction:column; gap:7px; margin-top:12px; }
.notification-check-item { display:flex; align-items:center; gap:10px; }
.notification-checkbox {
  width:24px; height:24px; border:1.5px solid var(--border-2); border-radius:7px;
  background:white; color:white; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
}
.notification-check-item.is-done .notification-checkbox { background:var(--success); border-color:var(--success); }
.notification-check-item > span { color:var(--fg-2); font-size:13px; line-height:1.4; }
.notification-check-item.is-done > span { color:var(--fg-4); text-decoration:line-through; }
.notification-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:18px 0 0 54px; }

/* ── Document visibility ───────────────────────────────────────────────── */
.document-visibility-option {
  display:flex; align-items:flex-start; gap:10px; min-width:220px; padding:9px 12px;
  border:1px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg); cursor:pointer;
}
.document-visibility-option input { margin-top:3px; accent-color:var(--teal); }
.document-visibility-option span { display:flex; flex-direction:column; font-size:12px; color:var(--fg-1); line-height:1.35; }
.document-visibility-option small { color:var(--fg-4); font-size:10px; margin-top:2px; }

@media (max-width:760px) {
  .profile-image-editor { align-items:flex-start; }
  .profile-image-controls { flex:1; }
  .profile-image-controls form { width:100%; }
  .profile-image-controls .btn { width:100%; }
  .employee-profile-heading { align-items:flex-start; }
  .notification-card { padding:16px; }
  .notification-message, .notification-checklist, .notification-actions { margin-left:0; }
  .notification-title-row { flex-direction:column; gap:6px; }
  .notification-actions { align-items:stretch; }
  .notification-actions > *, .notification-actions .btn { width:100%; }
  .document-visibility-option { width:100%; min-width:0; }
}

@media (max-width:480px) {
  .profile-image-editor { flex-direction:column; }
  .notification-card-head { gap:10px; }
  .notification-icon { width:36px; height:36px; border-radius:10px; }
  .notification-checklist { padding:13px; }
  .notification-checklist-head { flex-direction:column; gap:2px; }
}

/* ── Shared modal shell ─────────────────────────────────────────────────── */
body.modal-open { overflow:hidden; }
.app-modal, .profile-crop-modal {
  position:fixed; inset:0; z-index:600; display:flex; align-items:center; justify-content:center;
  padding:20px; overflow-y:auto;
}
.app-modal-backdrop, .profile-crop-backdrop { position:fixed; inset:0; background:rgba(16,47,57,.62); backdrop-filter:blur(2px); }
.app-modal-card, .profile-crop-card {
  position:relative; width:min(100%,620px); max-height:calc(100vh - 40px); overflow-y:auto;
  background:var(--surface); border-radius:20px; box-shadow:0 24px 70px rgba(16,47,57,.28); padding:24px;
}
.app-modal-head, .profile-crop-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
.app-modal-head h2, .profile-crop-head h2 { font:700 20px var(--font-display); color:var(--fg-1); }
.app-modal-head p, .profile-crop-head p { margin-top:3px; color:var(--fg-3); font-size:13px; }
.app-modal-close { width:34px; height:34px; border:0; border-radius:50%; background:var(--bg); color:var(--fg-3); font-size:24px; line-height:1; cursor:pointer; flex-shrink:0; }
.app-modal-close:hover { background:var(--border); color:var(--fg-1); }
.app-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:6px; }

/* ── Profile image cropper ──────────────────────────────────────────────── */
.profile-crop-card { width:min(100%,470px); }
.profile-crop-stage {
  position:relative; width:min(100%,360px); aspect-ratio:1; margin:0 auto 18px;
  overflow:hidden; background:#dce4e7; border-radius:16px; touch-action:none; cursor:grab;
  user-select:none; -webkit-user-select:none;
}
.profile-crop-stage:active { cursor:grabbing; }
.profile-crop-stage img { position:absolute; max-width:none; display:block; pointer-events:none; }
.profile-crop-stage::after {
  content:''; position:absolute; inset:4px; border:3px solid rgba(255,255,255,.96); border-radius:50%;
  box-shadow:0 0 0 999px rgba(16,47,57,.45); pointer-events:none;
}
.profile-crop-zoom-label { display:flex; align-items:center; gap:14px; margin:0 auto 20px; max-width:360px; color:var(--fg-2); font-size:13px; font-weight:600; }
.profile-crop-zoom-label input { flex:1; accent-color:var(--teal); }
.profile-crop-actions { display:flex; justify-content:flex-end; gap:10px; }

/* ── Internal task board ────────────────────────────────────────────────── */
.task-board-members {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:11px 14px;
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
}
.task-board-members-label { font-size:12px; font-weight:700; color:var(--fg-3); }
.task-member-avatars { display:flex; align-items:center; }
.task-member-avatars > span { display:flex; margin-left:-7px; border:2px solid white; border-radius:50%; }
.task-member-avatars > span:first-child { margin-left:0; }
.task-board-members-hint { color:var(--fg-4); font-size:11px; }
.task-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:start; }
.task-column { min-width:0; padding:14px; border:1px solid var(--border); border-radius:var(--radius-lg); background:#f0f4f5; }
.task-column-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:2px 2px 14px; }
.task-column-header h2 { font:700 15px var(--font-display); color:var(--fg-1); }
.task-column-header p { margin-top:2px; color:var(--fg-4); font-size:10.5px; }
.task-column-count { min-width:25px; height:25px; padding:0 7px; display:flex; align-items:center; justify-content:center; border-radius:999px; background:white; color:var(--fg-3); font-size:11px; font-weight:800; }
.task-column-list { display:flex; flex-direction:column; gap:10px; }
.task-column-empty { padding:24px 10px; border:1px dashed var(--border-2); border-radius:var(--radius); color:var(--fg-4); font-size:12px; text-align:center; }
.task-card { display:block; padding:15px; border:1px solid var(--border); border-radius:var(--radius); background:white; box-shadow:var(--shadow-sm); color:var(--fg-2); transition:transform .15s,box-shadow .15s,border-color .15s; }
.task-card:hover { transform:translateY(-1px); box-shadow:var(--shadow); border-color:#c6d2d6; color:var(--fg-2); }
.task-card.is-done { opacity:.72; }
.task-card-title { font:700 14px var(--font-display); color:var(--fg-1); line-height:1.4; overflow-wrap:anywhere; }
.task-card-description { margin-top:7px; color:var(--fg-3); font-size:12px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-line; }
.task-card-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; }
.task-card-assignee { display:flex; align-items:center; gap:7px; min-width:0; color:var(--fg-3); font-size:11px; font-weight:600; }
.task-card-assignee .avatar-sm { width:26px; height:26px; font-size:9px; }
.task-card-assignee > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-unassigned { color:var(--fg-4); font-weight:500; }
.task-card-meta { display:flex; gap:8px; color:var(--fg-4); font-size:10px; white-space:nowrap; }
.task-due { margin-top:10px; padding-top:9px; border-top:1px solid var(--border); color:var(--fg-4); font-size:10.5px; }
.task-due.is-overdue { color:var(--danger); font-weight:700; }
.task-create-modal { width:min(100%,660px); }

/* ── Task detail ────────────────────────────────────────────────────────── */
.task-detail-status-badge { align-self:flex-start; padding:6px 13px; font-size:13px; }
.task-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
.task-detail-main, .task-detail-sidebar { min-width:0; }
.task-detail-sidebar { display:flex; flex-direction:column; gap:14px; }
.task-description-text { color:var(--fg-2); font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.task-attachment-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.task-attachment { display:block; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); color:var(--fg-2); }
.task-attachment img { width:100%; aspect-ratio:16/10; object-fit:cover; background:var(--border); }
.task-attachment span { display:block; padding:9px 10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:600; }
.task-comments { display:flex; flex-direction:column; margin-top:16px; }
.task-comments-empty { padding:18px; border:1px dashed var(--border); border-radius:var(--radius); color:var(--fg-4); font-size:13px; text-align:center; }
.task-comment { display:flex; align-items:flex-start; gap:11px; padding:16px 0; border-bottom:1px solid var(--border); }
.task-comment-body { flex:1; min-width:0; }
.task-comment-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.task-comment-head strong { color:var(--fg-1); font-size:13px; }
.task-comment-head span { color:var(--fg-4); font-size:10.5px; white-space:nowrap; }
.task-comment-text { margin-top:6px; color:var(--fg-2); font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.task-comment-attachments { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.task-comment-attachments a { display:block; width:90px; height:64px; overflow:hidden; border:1px solid var(--border); border-radius:8px; }
.task-comment-attachments img { width:100%; height:100%; object-fit:cover; }
.task-comment-form { margin-top:18px; padding-top:18px; border-top:1px solid var(--border); }
.task-comment-form-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.task-screenshot-button { position:relative; overflow:hidden; cursor:pointer; }
.task-screenshot-button input { position:absolute; inset:0; opacity:0; cursor:pointer; font-size:100px; }
.task-meta-card { display:flex; flex-direction:column; }
.task-meta-row { display:flex; flex-direction:column; gap:6px; padding:11px 0; border-bottom:1px solid var(--border); }
.task-meta-row:last-child { border-bottom:0; padding-bottom:0; }
.task-meta-row > span { color:var(--fg-4); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.task-meta-row > div { display:flex; align-items:center; gap:8px; color:var(--fg-1); font-size:12px; min-width:0; }
.task-meta-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notification-icon-task { color:var(--teal-600); background:var(--teal-100); }

@media (max-width:1024px) {
  .task-board { grid-template-columns:1fr; }
  .task-column { padding:13px; }
  .task-column-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .task-detail-layout { grid-template-columns:minmax(0,1fr) 270px; }
}

@media (max-width:760px) {
  .app-modal, .profile-crop-modal { align-items:flex-end; padding:0; }
  .app-modal-card, .profile-crop-card { width:100%; max-height:94vh; border-radius:20px 20px 0 0; padding:20px 16px max(22px,env(safe-area-inset-bottom)); }
  .app-modal-actions, .profile-crop-actions { flex-direction:column-reverse; }
  .app-modal-actions .btn, .profile-crop-actions .btn { width:100%; }
  .profile-crop-stage { width:min(82vw,340px); }
  .task-board-members { align-items:flex-start; }
  .task-board-members-hint { flex-basis:100%; }
  .task-column-list { grid-template-columns:1fr; }
  .task-detail-layout { grid-template-columns:1fr; }
  .task-detail-sidebar { order:-1; }
  .task-detail-sidebar .card { padding:16px; }
  .task-comment-form-bottom { align-items:stretch; flex-direction:column; }
  .task-comment-form-bottom .btn { width:100%; }
  .task-attachment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:480px) {
  .task-attachment-grid { grid-template-columns:1fr; }
  .task-comment { gap:8px; }
  .task-comment-head { align-items:flex-start; flex-direction:column; gap:2px; }
  .task-comment-head span { white-space:normal; }
  .profile-crop-stage { width:min(88vw,320px); }
}

/* ── Vacation calendar, permissions & mobile dashboard v1.4 ─────────────── */
.vacation-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(440px,2fr); gap:20px; align-items:start; }
.vacation-calendar-card { background:var(--bg); min-width:0; }
.team-calendar-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; text-align:center; }
.team-calendar-head strong { display:block; margin-top:2px; color:var(--fg-1); font:700 16px var(--font-display); }
.calendar-nav-btn { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border-2); border-radius:10px; background:white; color:var(--fg-1); font-size:25px; line-height:1; text-decoration:none; box-shadow:var(--shadow-sm); }
.calendar-nav-btn:hover { background:var(--teal-100); border-color:var(--teal); color:var(--teal-600); }
.team-calendar-weekdays, .team-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.team-calendar-weekdays { margin-bottom:4px; }
.team-calendar-weekdays > div { text-align:center; color:var(--fg-4); font-size:10px; font-weight:800; }
.team-calendar-weekdays .is-weekend { color:#c2cdd2; }
.team-calendar-day { min-height:58px; padding:4px; overflow:hidden; border:1px solid var(--border); border-radius:7px; background:white; }
.team-calendar-day.is-off { background:var(--border); }
.team-calendar-day.is-today { border:2px solid var(--teal); }
.calendar-day-number { display:block; color:var(--fg-2); font-size:10px; line-height:1; }
.team-calendar-day.is-off .calendar-day-number { color:var(--fg-4); }
.calendar-people { display:flex; flex-direction:column; gap:2px; margin-top:4px; }
.calendar-people span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:2px 4px; border-radius:4px; background:var(--teal-100); color:#007a83; font-size:8.5px; font-weight:700; line-height:1.2; }
.calendar-hint { margin-top:14px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:white; color:var(--fg-3); font-size:11px; line-height:1.55; }
.vacation-approval-box { padding:16px 20px; border:1px solid #f0d898; border-radius:var(--radius-lg); background:var(--warning-bg); }
.vacation-approval-title { margin-bottom:12px; color:var(--warning); font-size:15px; font-weight:700; }
.vacation-approval-item { margin-bottom:9px; padding:13px 16px; border:1px solid #f0d898; border-radius:10px; background:white; }
.vacation-approval-item:last-child { margin-bottom:0; }
.vacation-approval-summary { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--fg-2); font-size:13px; }
.vacation-review-form .form-control { flex:1; min-width:190px; height:38px; padding:7px 11px; font-size:13px; }
.vacation-review-actions { display:flex; gap:8px; }

.settings-provider-actions { display:grid; grid-template-columns:minmax(120px,3fr) 44px; gap:8px; flex:0 0 auto; }
.settings-provider-actions .btn { width:100%; min-width:0; justify-content:center; }
.settings-provider-actions .btn-danger { padding-left:0; padding-right:0; font-size:19px; }
.copy-field { display:flex; gap:8px; align-items:stretch; }
.copy-field .form-control { min-width:0; }
.calendar-feed-box { padding:16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }

.push-device-box { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; padding:14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.push-device-box strong { display:block; color:var(--fg-1); font-size:13px; }
.push-device-box [data-push-status] { display:block; margin-top:2px; color:var(--fg-4); font-size:11px; }
.push-device-actions { display:flex; gap:7px; flex-wrap:wrap; }
.notification-preferences-form { overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); }
.notification-pref-head, .notification-pref-row { display:grid; grid-template-columns:minmax(0,1fr) 58px 58px 58px; align-items:center; gap:5px; }
.notification-pref-head { padding:8px 12px; background:var(--bg); color:var(--fg-4); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; text-align:center; }
.notification-pref-head span:first-child { text-align:left; }
.notification-pref-row { padding:12px; border-top:1px solid var(--border); }
.notification-pref-row:first-of-type { border-top:0; }
.notification-pref-row strong { display:block; color:var(--fg-1); font-size:12px; line-height:1.35; }
.notification-pref-row small { display:block; margin-top:2px; color:var(--fg-4); font-size:10px; line-height:1.35; }
.notification-pref-check { display:flex; align-items:center; justify-content:center; cursor:pointer; }
.notification-pref-check input { position:absolute; opacity:0; pointer-events:none; }
.notification-pref-check span { width:22px; height:22px; border:1.5px solid var(--border-2); border-radius:6px; background:white; position:relative; }
.notification-pref-check input:checked + span { border-color:var(--teal); background:var(--teal); }
.notification-pref-check input:checked + span::after { content:'✓'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:white; font-size:14px; font-weight:800; }
.notification-icon-vacation, .notification-icon-submission { color:#007a83; background:var(--teal-100); }

@media (max-width:1200px) and (min-width:761px) {
  .vacation-layout { grid-template-columns:minmax(0,1fr) 400px; }
}

@media (max-width:1024px) {
  .vacation-layout { grid-template-columns:minmax(0,1fr) 380px; }
}

@media (max-width:760px) {
  .vacation-layout { display:flex; flex-direction:column; }
  .vacation-calendar-card { order:-1; width:100%; }
  .vacation-requests-card { width:100%; }
  .vacation-review-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .vacation-review-actions .btn { width:100%; }
  .settings-provider-actions { display:grid !important; grid-template-columns:minmax(0,3fr) 46px; width:100% !important; }
  .settings-provider-actions > * { width:100% !important; }
  .copy-field { flex-direction:column; }
  .copy-field .btn { width:100%; }
  .push-device-box { align-items:stretch; flex-direction:column; }
  .push-device-actions { display:grid; grid-template-columns:1fr 1fr; }
  .push-device-actions .btn { width:100%; }
}

@media (max-width:640px) {
  .dashboard-metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px; }
  .dashboard-metrics-grid .metric-card { min-width:0; padding:14px; }
  .dashboard-metrics-grid .metric-card-icon { width:32px; height:32px; margin-bottom:10px; }
  .dashboard-metrics-grid .metric-card-value { font-size:19px; }
  .dashboard-metrics-grid .metric-card-label { font-size:10.5px; overflow-wrap:anywhere; }
  .dashboard-metrics-grid .metric-card-sub { font-size:10px; }
  .vacation-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .vacation-metrics .metric-card { padding:14px; }
  .vacation-metrics .metric-card-value { font-size:18px; }
  .team-calendar-day { min-height:50px; padding:3px; }
  .calendar-people span { font-size:7.5px; padding:2px 3px; }
  .vacation-approval-box { padding:14px; }
  .vacation-approval-item { padding:12px; }
  .notification-pref-head, .notification-pref-row { grid-template-columns:minmax(0,1fr) 46px 46px 46px; }
  .notification-pref-head { padding:8px; font-size:8px; }
  .notification-pref-row { padding:10px 8px; }
  .notification-pref-row strong { font-size:11px; }
  .notification-pref-row small { display:none; }
}

/* ── Profile and permission tabs v1.5 ──────────────────────────────────── */
.profile-tabs {
  display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px;
}
.profile-tab {
  display:inline-flex; align-items:center; justify-content:center; min-height:42px;
  padding:9px 16px; border:1px solid var(--border-2); border-radius:10px;
  background:var(--surface); color:var(--fg-2); box-shadow:var(--shadow-sm);
  font-size:14px; font-weight:700; text-decoration:none;
}
.profile-tab:hover { border-color:var(--teal); color:var(--teal-600); background:var(--teal-100); }
.profile-tab.is-active { border-color:var(--teal); background:var(--teal-100); color:var(--teal-600); box-shadow:0 0 0 2px color-mix(in srgb,var(--teal) 8%,transparent); }

.permissions-card { overflow:hidden; }
.permissions-intro { margin-bottom:10px; color:var(--fg-3); font-size:13px; line-height:1.6; }
.permission-row {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:17px 0; border-bottom:1px solid var(--border);
}
.permission-row > div { min-width:0; }
.permission-row strong { display:block; color:var(--fg-1); font-size:14px; }
.permission-row div > span { display:block; margin-top:3px; color:var(--fg-4); font-size:12px; line-height:1.5; }
.permission-note { margin:-6px 0 6px; color:var(--fg-4); font-size:11px; }
.compact-permission-row { padding-top:0; }
.toggle-switch { position:relative; flex:0 0 auto; width:48px; height:27px; cursor:pointer; }
.toggle-switch input[type="checkbox"] { position:absolute; opacity:0; pointer-events:none; }
.toggle-switch > span { position:absolute; inset:0; border-radius:999px; background:var(--border-2); transition:.18s ease; }
.toggle-switch > span::after { content:''; position:absolute; top:3px; left:3px; width:21px; height:21px; border-radius:50%; background:white; box-shadow:0 1px 4px rgba(16,47,57,.2); transition:.18s ease; }
.toggle-switch input:checked + span { background:var(--teal); }
.toggle-switch input:checked + span::after { transform:translateX(21px); }
.toggle-switch.is-disabled { opacity:.55; cursor:not-allowed; }

.employee-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; }
.employee-detail-sidebar { display:flex; flex-direction:column; gap:14px; }
.career-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
.career-summary-current, .career-summary-next { padding:14px 16px; border-radius:var(--radius-sm); }
.career-summary-current { background:var(--teal-100); border:1px solid var(--teal-border); }
.career-summary-next { background:var(--bg); border:1px solid var(--border); }
.career-summary-current small, .career-summary-next small { display:block; margin-bottom:4px; color:var(--fg-4); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.career-summary-current strong, .career-summary-next strong { display:block; color:var(--fg-1); font-size:15px; }
.career-summary-current b, .career-summary-next b { display:block; margin-top:3px; font:800 20px var(--font-display); }
.career-summary-current b { color:var(--teal); }
.career-summary-next b { color:var(--fg-3); }

.profile-account-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,1fr); gap:20px; max-width:960px; }
.profile-account-column { display:flex; flex-direction:column; gap:20px; }
.profile-data-list { display:flex; flex-direction:column; gap:10px; font-size:14px; }
.profile-data-row > span:first-child { color:var(--fg-4); }
.profile-passkey-card { align-self:start; }
.passkey-row strong { display:block; color:var(--fg-1); font-size:14px; }
.passkey-row small { display:block; color:var(--fg-4); font-size:12px; }
.empty-inline { padding:14px 16px; border:1px dashed var(--border); border-radius:var(--radius-sm); background:var(--bg); color:var(--fg-4); font-size:13px; }
.notification-form-footer { padding:14px; border-top:1px solid var(--border); background:var(--bg); }

/* ── Calendar navigation and shared Google calendar v1.5 ───────────────── */
.team-calendar-toolbar { display:flex; justify-content:center; margin:-6px 0 14px; }
.calendar-anchor { position:relative; top:calc(-1 * var(--topbar-h) - 12px); visibility:hidden; }
.vacation-calendar-card.is-loading { opacity:.65; pointer-events:none; }
.vacation-calendar-card.is-loading::after { content:'Kalender wird geladen …'; display:block; margin-top:12px; color:var(--fg-4); font-size:11px; text-align:center; }
.settings-section-subtitle { margin-top:5px; color:var(--fg-3); font-size:13px; line-height:1.55; }
.calendar-service-account { display:flex; justify-content:space-between; gap:12px; margin-top:8px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg); font-size:12px; }
.calendar-service-account span { color:var(--fg-4); }
.calendar-service-account strong { color:var(--fg-1); overflow-wrap:anywhere; text-align:right; }
.calendar-settings-actions { display:flex; gap:10px; flex-wrap:wrap; }
.calendar-sync-status { display:grid; gap:10px; margin-top:18px; padding:14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.calendar-sync-status > div { display:flex; justify-content:space-between; gap:16px; font-size:12px; }
.calendar-sync-status span { color:var(--fg-4); }
.calendar-sync-status strong { color:var(--fg-1); text-align:right; overflow-wrap:anywhere; }
.calendar-sync-error strong { color:var(--danger); }
.calendar-setup-guide { margin-top:12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.calendar-setup-guide summary { padding:13px 15px; color:var(--fg-1); font-size:13px; font-weight:700; cursor:pointer; }
.calendar-setup-guide > p, .calendar-setup-guide > ol, .calendar-setup-guide > .copy-field { margin:0 15px 15px; }
.calendar-setup-guide p, .calendar-setup-guide ol { color:var(--fg-3); font-size:12px; line-height:1.65; }
.calendar-setup-guide ol { padding-left:20px; }

@media (max-width:760px) {
  .profile-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-tab { width:100%; padding:10px 8px; text-align:center; }
  .permission-row { gap:14px; align-items:flex-start; }
  .employee-detail-grid, .profile-account-grid { grid-template-columns:1fr; }
  .career-summary-grid { grid-template-columns:1fr; }
  .calendar-settings-actions { flex-direction:column; }
  .calendar-settings-actions .btn { width:100%; }
  .calendar-sync-status > div, .calendar-service-account { flex-direction:column; gap:3px; }
  .calendar-sync-status strong, .calendar-service-account strong { text-align:left; }
}


/* ── Vacation approvals, compact cards and SMTP test v1.6 ─────────────── */
.calendar-people span.is-pending { background:#eef2f4; color:var(--fg-3); border:1px dashed #b9c5ca; font-weight:600; }
.calendar-people span.is-approved { background:var(--teal-100); color:#007a83; }
.calendar-legend { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:12px; color:var(--fg-3); font-size:10px; }
.calendar-legend span { display:flex; align-items:center; gap:5px; }
.calendar-legend i { width:13px; height:8px; border-radius:3px; display:inline-block; }
.calendar-legend i.is-approved { background:var(--teal-100); border:1px solid var(--teal-border); }
.calendar-legend i.is-pending { background:#eef2f4; border:1px dashed #b9c5ca; }
.smtp-settings-actions { display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width:760px) {
  .smtp-settings-actions { display:grid; grid-template-columns:1fr; }
  .smtp-settings-actions .btn { width:100%; }
}

@media (max-width:640px) {
  table.vacation-card-table tbody { gap:8px; padding:8px; }
  table.vacation-card-table tbody tr {
    grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:12px 14px;
  }
  table.vacation-card-table tbody td { align-self:center; }
  table.vacation-card-table tbody td::before { margin-bottom:3px; font-size:8.5px; }
  table.vacation-card-table .vacation-card-employee { grid-column:1; grid-row:1; }
  table.vacation-card-table .vacation-card-status { grid-column:2; grid-row:1; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  table.vacation-card-table .vacation-card-status::before,
  table.vacation-card-table .vacation-card-employee::before,
  table.vacation-card-table .vacation-card-type::before { display:none; }
  table.vacation-card-table .vacation-card-type { grid-column:1; grid-row:2; }
  table.vacation-card-table .vacation-card-days { grid-column:2; grid-row:2; display:flex; align-items:baseline; justify-content:flex-end; gap:5px; }
  table.vacation-card-table .vacation-card-days::before { display:inline; margin:0; }
  table.vacation-card-table .vacation-card-period { grid-column:1 / -1; grid-row:3; padding-top:7px; border-top:1px solid var(--border); }
  table.vacation-card-table .vacation-card-period::before { display:none; }
  table.vacation-card-table .vacation-card-action { grid-column:1 / -1; grid-row:4; padding-top:2px; }
  table.vacation-card-table .vacation-card-action::before { display:none; }
  table.vacation-card-table .vacation-card-action .btn { min-height:38px; }
  table.vacation-card-table .badge { font-size:10.5px; padding:3px 8px; }
}


/* ── Self approval, native SMTP and extra compact vacation cards v1.6.1 ── */
.vacation-card-meta { display:none; }

@media (max-width:640px) {
  table.vacation-card-table tbody { gap:6px; padding:6px; }
  table.vacation-card-table tbody tr {
    grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; padding:10px 12px;
  }
  table.vacation-card-table .vacation-card-employee { grid-column:1; grid-row:1; font-size:13px; }
  table.vacation-card-table .vacation-card-status { grid-column:2; grid-row:1; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; }
  table.vacation-card-table .vacation-card-type,
  table.vacation-card-table .vacation-card-period,
  table.vacation-card-table .vacation-card-days { display:none; }
  table.vacation-card-table .vacation-card-meta {
    display:flex; grid-column:1 / -1; grid-row:2; align-items:center; gap:8px;
    min-width:0; padding-top:5px; border-top:1px solid var(--border); font-size:11.5px;
    color:var(--fg-2); white-space:nowrap;
  }
  table.vacation-card-table .vacation-card-meta::before { display:none; }
  .vacation-card-meta-period { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .vacation-card-meta-days { margin-left:auto; color:var(--fg-3); font-weight:700; flex-shrink:0; }
  table.vacation-card-table .vacation-card-action {
    grid-column:1 / -1; grid-row:3; padding-top:0; display:flex; justify-content:flex-start;
  }
  table.vacation-card-table .vacation-card-action.is-empty { display:none; }
  table.vacation-card-table .vacation-card-action form { width:auto; }
  table.vacation-card-table .vacation-card-action .btn {
    width:auto !important; min-height:30px; padding:5px 11px; font-size:11.5px;
  }
  table.vacation-card-table .vacation-card-status .badge { font-size:9.5px; padding:3px 7px; }
  table.vacation-card-table .vacation-card-meta .badge { font-size:9.5px; padding:3px 7px; flex-shrink:0; }
  table.vacation-card-table.is-personal .vacation-card-status { grid-column:1 / -1; justify-self:end; }
}

/* ── Compact notification center v1.6.2 ───────────────────────────────── */
.notification-page-header { margin-bottom:18px; }
.notification-page-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.notification-page-actions form { margin:0; }
.notification-clear-read { color:var(--danger); }
.notification-clear-read:hover { color:var(--danger); background:var(--danger-bg); }

.notification-section { max-width:920px; margin-bottom:18px; }
.notification-section-heading {
  display:flex; align-items:center; gap:8px; margin:0 2px 8px;
  color:var(--fg-1); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
}
.notification-section-count {
  min-width:20px; height:20px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background:var(--teal-100); color:var(--teal-600); font-size:10px; font-weight:800;
}
.notification-list-compact { gap:8px; max-width:920px; }
.notification-card-compact {
  padding:12px 14px; border-radius:12px; box-shadow:none;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.notification-card-compact:hover { border-color:#cbd6da; box-shadow:0 2px 8px rgba(16,47,57,.06); }
.notification-card-compact.is-unread {
  border-left:3px solid var(--teal); background:#fbfefe; box-shadow:0 2px 8px rgba(16,47,57,.06);
}
.notification-card-compact.is-read { opacity:1; background:#fafbfb; border-color:var(--border); }
.notification-card-compact.is-read .notification-icon { opacity:.65; }
.notification-card-compact.is-read .notification-card-title-wrap h2 { color:var(--fg-2); font-weight:650; }
.notification-card-compact .notification-card-head { align-items:center; gap:10px; }
.notification-card-compact .notification-icon {
  width:34px; height:34px; border-radius:9px;
}
.notification-compact-title-line { display:flex; align-items:center; gap:7px; min-width:0; }
.notification-compact-title-line h2 {
  min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis;
  font:700 14px var(--font-display); line-height:1.3; color:var(--fg-1);
}
.notification-unread-dot { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 10%,transparent); }
.notification-card-compact .notification-date { margin-top:2px; font-size:10px; }
.notification-delete-form { flex:0 0 auto; margin:0; }
.notification-icon-button {
  width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center;
  border:0; border-radius:8px; background:transparent; color:var(--fg-4); cursor:pointer;
}
.notification-icon-button:hover { background:var(--border); color:var(--fg-2); }
.notification-delete-button:hover { background:var(--danger-bg); color:var(--danger); }
.notification-message-compact {
  margin:8px 40px 0 44px; color:var(--fg-2); font-size:12.5px; line-height:1.45;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
}
.notification-checklist-compact {
  margin:9px 40px 0 44px; padding:0; overflow:hidden; border:1px solid var(--border); border-radius:9px; background:var(--bg);
}
.notification-checklist-compact > summary {
  list-style:none; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px;
  padding:8px 10px; color:var(--fg-2); font-size:11px; font-weight:700; cursor:pointer;
}
.notification-checklist-compact > summary::-webkit-details-marker { display:none; }
.notification-checklist-compact > summary span:nth-child(2) { color:var(--fg-4); font-weight:600; }
.notification-checklist-compact > summary svg { color:var(--fg-4); transition:transform .16s ease; }
.notification-checklist-compact[open] > summary svg { transform:rotate(180deg); }
.notification-checklist-progress { height:3px; margin:0 10px; overflow:hidden; border-radius:999px; background:var(--border-2); }
.notification-checklist-progress > span { display:block; height:100%; border-radius:inherit; background:var(--success); }
.notification-checklist-compact .notification-checklist-items { gap:5px; margin:8px 10px 10px; }
.notification-checklist-compact .notification-checkbox { width:20px; height:20px; border-radius:6px; }
.notification-checklist-compact .notification-check-item > span { font-size:11.5px; }
.notification-actions-compact {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:8px 40px 0 44px;
}
.notification-actions-compact form { margin:0; }
.notification-action-link {
  display:inline-flex; align-items:center; gap:5px; padding:0; border:0; background:transparent;
  color:var(--fg-3); font-family:var(--font-body); font-size:11px; font-weight:650; cursor:pointer; text-decoration:none;
}
.notification-action-link:hover { color:var(--teal-600); }
.notification-action-primary { color:var(--teal-600); }

.notification-read-group { max-width:920px; margin-top:14px; }
.notification-read-group > summary {
  list-style:none; display:flex; align-items:center; gap:8px; padding:10px 12px;
  border:1px solid var(--border); border-radius:10px; background:var(--surface);
  color:var(--fg-3); font-size:12px; font-weight:750; cursor:pointer;
}
.notification-read-group > summary::-webkit-details-marker { display:none; }
.notification-read-group > summary > svg { margin-left:auto; transition:transform .16s ease; }
.notification-read-group[open] > summary > svg { transform:rotate(180deg); }
.notification-read-group[open] > summary { margin-bottom:8px; }
.notification-list-read .notification-card-compact { background:#fafbfb; }

@media (max-width:760px) {
  .notification-page-header { gap:12px; }
  .notification-page-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .notification-page-actions form, .notification-page-actions .btn { width:100%; }
  .notification-card-compact { padding:10px 11px; }
  .notification-card-compact .notification-card-head { gap:8px; }
  .notification-card-compact .notification-icon { width:32px; height:32px; }
  .notification-compact-title-line h2 { font-size:13px; white-space:normal; }
  .notification-message-compact,
  .notification-checklist-compact,
  .notification-actions-compact { margin-left:40px; margin-right:0; }
  .notification-message-compact { margin-top:6px; font-size:12px; -webkit-line-clamp:3; }
  .notification-actions-compact { align-items:center; gap:12px; margin-top:7px; }
  .notification-actions-compact > *, .notification-actions-compact .btn { width:auto; }
  .notification-action-link { font-size:10.5px; }
  .notification-icon-button { width:28px; height:28px; }
}

@media (max-width:430px) {
  .notification-page-actions { grid-template-columns:1fr; }
  .notification-message-compact,
  .notification-checklist-compact,
  .notification-actions-compact { margin-left:0; }
  .notification-message-compact { padding-left:40px; }
  .notification-actions-compact { padding-left:40px; }
  .notification-checklist-compact { margin-top:8px; }
}

/* ── Dienstplan v1.7 ───────────────────────────────────────────────────── */
.schedule-page .main-content { max-width: none; padding-right: 28px; }
.schedule-page-header { align-items: center; }
.schedule-view-switch,
.schedule-type-switch {
  display: inline-flex; gap: 3px; padding: 3px; background: var(--border);
  border-radius: 12px;
}
.schedule-view-button,
.schedule-type-button {
  border: 0; background: transparent; color: var(--fg-3); padding: 9px 14px;
  border-radius: 9px; font: 600 13px var(--font-body); cursor: pointer;
}
.schedule-view-button.is-active,
.schedule-type-button.is-active { background: white; color: var(--fg-1); box-shadow: var(--shadow-sm); }
.schedule-loading { min-height: 240px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--fg-3); }
.schedule-spinner { width:18px; height:18px; border:2px solid var(--border-2); border-top-color:var(--teal); border-radius:50%; animation:scheduleSpin .8s linear infinite; }
@keyframes scheduleSpin { to { transform:rotate(360deg); } }

.schedule-planner-layout { display:grid; grid-template-columns: 250px minmax(0,1fr); gap:20px; align-items:start; }
.schedule-people-panel {
  position: sticky; top: 20px; background: var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); padding:16px; max-height:calc(100vh - 40px); overflow:auto;
}
.schedule-panel-head p { font-size:12px; color:var(--fg-4); line-height:1.5; margin-top:-8px; margin-bottom:14px; }
.schedule-type-switch { width:100%; margin-bottom:14px; }
.schedule-type-button { flex:1; }
.schedule-people-list { display:flex; flex-direction:column; gap:8px; }
.schedule-person-card {
  --person-color:#06B6D4; width:100%; display:grid; grid-template-columns:36px 4px minmax(0,1fr) 18px;
  align-items:center; gap:9px; padding:9px; border:1px solid var(--border); border-radius:11px;
  background:white; color:var(--fg-1); text-align:left; cursor:grab; font:600 13px var(--font-body);
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
.schedule-person-card:hover { border-color:color-mix(in srgb,var(--person-color) 55%,var(--border)); box-shadow:var(--shadow-sm); }
.schedule-person-card.is-selected { border-color:var(--person-color); box-shadow:0 0 0 3px color-mix(in srgb,var(--person-color) 16%,transparent); }
.schedule-person-card.is-dragging { opacity:.55; transform:scale(.98); }
.schedule-person-color { width:4px; align-self:stretch; background:var(--person-color); border-radius:999px; }
.schedule-person-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schedule-drag-handle { color:var(--fg-4); letter-spacing:-2px; }
.schedule-panel-hint { font-size:11px; color:var(--fg-4); line-height:1.55; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); }

.schedule-avatar { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; border-radius:50%; overflow:hidden; color:white; font-family:var(--font-display); font-weight:700; }
.schedule-avatar img { width:100%; height:100%; object-fit:cover; }
.schedule-avatar-md { width:36px; height:36px; font-size:11px; }
.schedule-avatar-sm { width:28px; height:28px; font-size:9px; }
.schedule-avatar-xs { width:18px; height:18px; font-size:7px; }

.schedule-calendar-area { min-width:0; }
.schedule-calendar-area-full { width:100%; }
.schedule-toolbar {
  position:sticky; top:0; z-index:15; display:grid; grid-template-columns:36px minmax(0,1fr) 36px auto;
  align-items:center; gap:10px; padding:10px 12px; margin-bottom:14px; background:rgba(247,249,250,.95);
  backdrop-filter:blur(10px); border:1px solid var(--border); border-radius:14px;
}
.schedule-toolbar-title { text-align:center; min-width:0; }
.schedule-toolbar-title span { display:block; font-size:10px; color:var(--fg-4); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.schedule-toolbar-title strong { display:block; color:var(--fg-1); font-family:var(--font-display); font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.schedule-three-months { display:flex; flex-direction:column; gap:24px; }
.schedule-single-month { width:100%; }
.schedule-month { background:white; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); overflow:hidden; }
.schedule-month-title { min-height:58px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); }
.schedule-month-title h2 { font:700 18px var(--font-display); color:var(--fg-1); }
.schedule-weekdays,
.schedule-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.schedule-weekdays { background:var(--bg); border-bottom:1px solid var(--border); }
.schedule-weekdays > div { padding:8px 10px; text-align:center; font-size:10px; font-weight:700; color:var(--fg-4); text-transform:uppercase; letter-spacing:.08em; }
.schedule-weekdays > div.is-weekend { color:#A67C2B; }
.schedule-day {
  min-height:126px; padding:7px; border-right:1px solid var(--border); border-bottom:1px solid var(--border);
  background:white; min-width:0; transition:background .12s,box-shadow .12s;
}
.schedule-day:nth-child(7n) { border-right:0; }
.schedule-day.is-empty { background:#FAFBFC; }
.schedule-day.is-weekend { background:#FCFAF4; }
.schedule-day.is-holiday { background:#FFF8EE; }
.schedule-day.is-today { box-shadow:inset 0 0 0 2px var(--teal); }
.schedule-day.is-drop-target { background:var(--teal-100); box-shadow:inset 0 0 0 2px var(--teal); }
.schedule-day[data-schedule-date] { cursor:default; }
.can-manage .schedule-day[data-schedule-date] { cursor:pointer; }
.schedule-day-head { display:flex; align-items:center; justify-content:space-between; gap:4px; margin-bottom:6px; }
.schedule-day-head > span { width:25px; height:25px; display:flex; align-items:center; justify-content:center; border-radius:50%; color:var(--fg-2); font-weight:700; font-size:12px; }
.schedule-day.is-today .schedule-day-head > span { background:var(--teal); color:white; }
.schedule-day-head small { color:#A66D17; font-size:8px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schedule-day-events { display:flex; flex-direction:column; gap:4px; }
.schedule-event {
  --person-color:#06B6D4; width:100%; min-width:0; display:flex; align-items:center; gap:5px;
  padding:4px 6px; border-radius:6px; border:1px solid color-mix(in srgb,var(--person-color) 28%,transparent);
  border-left:4px solid var(--person-color); background:color-mix(in srgb,var(--person-color) 12%,white);
  color:var(--fg-1); font:600 10.5px var(--font-body); text-align:left; overflow:hidden;
}
button.schedule-event { cursor:pointer; }
.schedule-event > span:last-child { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.schedule-event-info_trip { background:color-mix(in srgb,var(--person-color) 19%,white); }
.schedule-event-vacation { border-left-style:solid; }
.schedule-event-vacation.is-pending { background:#F3F5F6; border-color:#C7D0D4; border-left-color:#94A4AB; color:var(--fg-3); border-style:dashed; }
.schedule-regular-off { --person-color:#94A4AB; padding:3px 6px; border-radius:5px; background:#F0F3F4; color:var(--fg-4); font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-left:3px solid color-mix(in srgb,var(--person-color) 55%,#94A4AB); }
.schedule-regular-off.is-all { border-left:0; text-align:center; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.schedule-toast { position:fixed; z-index:800; left:50%; bottom:22px; transform:translate(-50%,16px); opacity:0; pointer-events:none; background:var(--navy); color:white; padding:10px 16px; border-radius:10px; box-shadow:var(--shadow-lg); font-size:13px; transition:.2s; max-width:min(90vw,520px); text-align:center; }
.schedule-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.schedule-toast.is-error { background:var(--danger); }

.schedule-entry-modal { position:fixed; inset:0; z-index:700; display:flex; align-items:center; justify-content:center; padding:18px; }
.schedule-entry-backdrop { position:absolute; inset:0; background:rgba(16,47,57,.6); }
.schedule-entry-card { position:relative; width:min(100%,560px); background:white; border-radius:18px; padding:22px; box-shadow:var(--shadow-lg); }
.schedule-entry-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:20px; }
.schedule-entry-head h2 { font:700 20px var(--font-display); color:var(--fg-1); }
.schedule-entry-head p { font-size:13px; color:var(--fg-3); margin-top:3px; }
.schedule-entry-actions { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:8px; }

/* Dienstplan-Profil im Mitarbeiterbereich */
.schedule-color-setting { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px; background:var(--bg); border:1px solid var(--border); border-radius:12px; margin-bottom:18px; }
.schedule-color-control { display:flex; align-items:center; gap:10px; }
.schedule-color-control input[type="color"] { width:52px; height:42px; border:1px solid var(--border-2); border-radius:9px; padding:3px; background:white; cursor:pointer; }
.schedule-color-control .form-control { width:110px; font-family:monospace; text-transform:uppercase; }
.schedule-hours-list { border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.schedule-hours-row { display:grid; grid-template-columns:minmax(170px,1fr) minmax(260px,1fr); align-items:center; gap:18px; padding:12px 16px; border-bottom:1px solid var(--border); }
.schedule-hours-row:last-child { border-bottom:0; }
.schedule-hours-active { display:flex; align-items:center; gap:11px; cursor:pointer; }
.schedule-hours-active input { width:18px; height:18px; accent-color:var(--teal); }
.schedule-hours-active span { display:flex; flex-direction:column; }
.schedule-hours-active strong { color:var(--fg-1); font-size:13px; }
.schedule-hours-active small { color:var(--fg-4); font-size:11px; }
.schedule-hours-times { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; }
.schedule-hours-times span { font-size:12px; color:var(--fg-4); }
.schedule-hours-times input:disabled { background:#F1F4F5; color:var(--fg-4); }

/* Farbige Einträge im bisherigen Teamkalender */
.calendar-person-chip { --person-color:#06B6D4; display:flex; align-items:center; gap:4px; min-width:0; border-left:3px solid var(--person-color); background:color-mix(in srgb,var(--person-color) 13%,white); color:var(--fg-1); padding:3px 5px; border-radius:5px; font-size:9px; font-weight:600; }
.calendar-person-chip.is-pending { border-color:#94A4AB; background:#F1F4F5; color:var(--fg-3); border-style:dashed; }
.calendar-person-chip .schedule-avatar { width:14px; height:14px; font-size:6px; }
.calendar-person-chip span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 1024px) {
  .schedule-page .main-content { padding-right:20px; }
  .schedule-planner-layout { grid-template-columns:210px minmax(0,1fr); gap:14px; }
  .schedule-day { min-height:112px; padding:5px; }
  .schedule-event { font-size:9.5px; }
}

@media (max-width: 800px) {
  .schedule-page .main-content { padding:14px; overflow-x:hidden; }
  .schedule-page-header { align-items:stretch; }
  .schedule-view-switch { width:100%; }
  .schedule-view-button { flex:1; padding:10px 8px; }
  .schedule-planner-layout { display:block; }
  .schedule-people-panel { position:relative; top:auto; max-height:none; margin-bottom:14px; overflow:visible; }
  .schedule-people-list { flex-direction:row; overflow-x:auto; padding-bottom:4px; scroll-snap-type:x proximity; }
  .schedule-person-card { flex:0 0 190px; scroll-snap-align:start; }
  .schedule-panel-hint { display:none; }
  .schedule-toolbar { top:56px; grid-template-columns:34px minmax(0,1fr) 34px; }
  .schedule-today-button { grid-column:1 / -1; width:100%; }
  .schedule-month { overflow-x:auto; }
  .schedule-weekdays,
  .schedule-month-grid { min-width:800px; }
  .schedule-day { min-height:104px; }
  .schedule-month-title { position:sticky; left:0; z-index:2; background:white; }
  .schedule-entry-card { padding:18px 16px; }
  .schedule-entry-actions { grid-template-columns:1fr 1fr; }
  .schedule-entry-actions > span { display:none; }
  .schedule-entry-actions .btn { width:100%; }
  .schedule-color-setting { flex-direction:column; align-items:stretch; }
  .schedule-color-control { justify-content:flex-start; }
  .schedule-hours-row { grid-template-columns:1fr; gap:10px; }
}

@media (max-width: 520px) {
  .schedule-page-header .subtitle { font-size:13px; }
  .schedule-month-title { min-width:800px; padding-left:12px; }
  .schedule-people-panel { padding:12px; }
  .schedule-person-card { flex-basis:170px; }
  .schedule-entry-actions { grid-template-columns:1fr; }
  .schedule-entry-actions > span { display:none; }
  .schedule-entry-actions #scheduleEntryDelete { order:4; }
  .schedule-hours-times { grid-template-columns:1fr auto 1fr; }
}
.calendar-people > .calendar-person-chip { display:flex; align-items:center; gap:4px; min-width:0; padding:3px 5px; border-radius:5px; background:color-mix(in srgb,var(--person-color) 13%,white); color:var(--fg-1); border:0; border-left:3px solid var(--person-color); font-size:8.5px; font-weight:600; line-height:1.2; }
.calendar-people > .calendar-person-chip.is-pending { border:1px dashed #B9C5CA; border-left:3px solid #94A4AB; background:#F1F4F5; color:var(--fg-3); }
.calendar-people > .calendar-person-chip.is-schedule { background:color-mix(in srgb,var(--person-color) 19%,white); }
.calendar-people > .calendar-person-chip > span:last-child { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; line-height:inherit; }
.calendar-legend i.is-schedule { background:var(--teal-100); border:2px solid var(--teal); }

/* ── Dienstplan-Farbpalette und Zoomstufen v1.7.1 ───────────────────────── */
.schedule-color-control { flex:1; flex-direction:column; align-items:stretch; }
.schedule-color-presets { display:grid; grid-template-columns:repeat(7,28px); gap:8px; }
.schedule-color-swatch {
  width:28px; height:28px; padding:0; border-radius:50%; border:2px solid white;
  background:var(--swatch-color); cursor:pointer; box-shadow:0 0 0 1px var(--border-2);
  transition:transform .14s ease, box-shadow .14s ease;
}
.schedule-color-swatch:hover { transform:scale(1.08); }
.schedule-color-swatch.is-active { box-shadow:0 0 0 3px white,0 0 0 5px var(--swatch-color); transform:scale(.9); }
.schedule-color-custom { display:flex; align-items:center; gap:10px; margin-top:12px; }

.schedule-toolbar { grid-template-columns:36px minmax(0,1fr) 36px auto auto; }
.schedule-zoom-switch {
  display:flex; gap:2px; padding:3px; border-radius:10px; background:var(--border);
  min-width:max-content;
}
.schedule-zoom-button {
  border:0; background:transparent; color:var(--fg-3); border-radius:8px; padding:6px 9px;
  font:600 11px var(--font-body); cursor:pointer; white-space:nowrap;
}
.schedule-zoom-button.is-active { background:white; color:var(--fg-1); box-shadow:var(--shadow-sm); }

/* Kompakt: drei Monate auf dem Desktop deutlich dichter vergleichen */
.schedule-app.zoom-compact .schedule-three-months { gap:14px; }
.schedule-app.zoom-compact .schedule-month-title { min-height:44px; padding:8px 12px; }
.schedule-app.zoom-compact .schedule-month-title h2 { font-size:15px; }
.schedule-app.zoom-compact .schedule-weekdays > div { padding:5px 6px; font-size:9px; }
.schedule-app.zoom-compact .schedule-day { min-height:76px; padding:4px; }
.schedule-app.zoom-compact .schedule-day-head { margin-bottom:3px; }
.schedule-app.zoom-compact .schedule-day-head > span { width:20px; height:20px; font-size:10px; }
.schedule-app.zoom-compact .schedule-day-head small { font-size:7px; }
.schedule-app.zoom-compact .schedule-day-events { gap:2px; }
.schedule-app.zoom-compact .schedule-event { gap:3px; padding:2px 4px; border-left-width:3px; font-size:8.5px; line-height:1.2; }
.schedule-app.zoom-compact .schedule-avatar-xs { width:14px; height:14px; font-size:6px; }
.schedule-app.zoom-compact .schedule-regular-off { padding:2px 4px; font-size:7.5px; }

/* Überblick/Gesamt: vollständige Kalenderbreite und stark reduzierte Höhe */
.schedule-app.zoom-overview .schedule-three-months { gap:10px; }
.schedule-app.zoom-overview .schedule-month { overflow:hidden; }
.schedule-app.zoom-overview .schedule-month-title { min-height:36px; padding:6px 9px; }
.schedule-app.zoom-overview .schedule-month-title h2 { font-size:13px; }
.schedule-app.zoom-overview .schedule-month-title .badge { padding:2px 6px; font-size:8px; }
.schedule-app.zoom-overview .schedule-weekdays,
.schedule-app.zoom-overview .schedule-month-grid { min-width:0 !important; width:100%; }
.schedule-app.zoom-overview .schedule-weekdays > div { padding:3px 1px; font-size:7.5px; letter-spacing:.04em; }
.schedule-app.zoom-overview .schedule-day { min-height:48px; padding:2px; min-width:0; }
.schedule-app.zoom-overview .schedule-day-head { margin-bottom:1px; }
.schedule-app.zoom-overview .schedule-day-head > span { width:16px; height:16px; font-size:8px; }
.schedule-app.zoom-overview .schedule-day-head small { display:none; }
.schedule-app.zoom-overview .schedule-day-events { gap:1px; max-height:28px; overflow:hidden; }
.schedule-app.zoom-overview .schedule-event { gap:2px; padding:1px 2px; border-radius:3px; border-left-width:2px; font-size:6.8px; line-height:1.05; min-height:10px; }
.schedule-app.zoom-overview .schedule-event .schedule-avatar { display:none; }
.schedule-app.zoom-overview .schedule-regular-off { padding:1px 2px; border-radius:3px; border-left-width:2px; font-size:6px; line-height:1.05; }
.schedule-app.zoom-overview .schedule-month-title { position:static; min-width:0; }
.schedule-app.zoom-overview .schedule-planner-layout { grid-template-columns:210px minmax(0,1fr); gap:12px; }
.schedule-app.zoom-overview .schedule-people-panel { padding:12px; }
.schedule-app.zoom-overview .schedule-person-card { grid-template-columns:30px 3px minmax(0,1fr) 14px; gap:7px; padding:7px; font-size:12px; }
.schedule-app.zoom-overview .schedule-avatar-md { width:30px; height:30px; }

@media (max-width: 800px) {
  .schedule-toolbar { grid-template-columns:34px minmax(0,1fr) 34px; }
  .schedule-today-button { grid-column:1 / 2; width:100%; padding-left:6px; padding-right:6px; }
  .schedule-zoom-switch { grid-column:2 / 4; width:100%; min-width:0; }
  .schedule-zoom-button { flex:1; padding:7px 4px; font-size:10px; }
  .schedule-app.zoom-compact .schedule-weekdays,
  .schedule-app.zoom-compact .schedule-month-grid { min-width:620px; }
  .schedule-app.zoom-overview .schedule-month { overflow:hidden; }
  .schedule-app.zoom-overview .schedule-month-title { min-width:0; padding-left:8px; }
  .schedule-app.zoom-overview .schedule-day { min-height:46px; }
  .schedule-app.zoom-overview .schedule-day-events { max-height:26px; }
  .schedule-app.zoom-overview .schedule-planner-layout { display:block; }
}

@media (max-width: 520px) {
  .schedule-color-presets { grid-template-columns:repeat(7,26px); gap:7px; }
  .schedule-color-swatch { width:26px; height:26px; }
  .schedule-color-custom { align-items:stretch; }
  .schedule-color-custom input[type="color"] { flex:0 0 52px; }
  .schedule-color-custom .form-control { flex:1; width:auto; }
  .schedule-app.zoom-overview .schedule-month-title h2 { font-size:12px; }
  .schedule-app.zoom-overview .schedule-day { min-height:43px; }
  .schedule-app.zoom-overview .schedule-event { font-size:6.2px; }
  .schedule-app.zoom-overview .schedule-regular-off { font-size:5.7px; }
}


/* ── Dienstplan-Steuerung v1.7.2 ───────────────────────────────────────── */
.schedule-weekdays,
.schedule-month-grid { grid-template-columns:repeat(var(--schedule-columns,7),minmax(0,1fr)); }
.schedule-app .schedule-day { min-height:var(--schedule-cell-height,126px) !important; }
.schedule-app.hide-sunday .schedule-day:nth-child(7n) { border-right:1px solid var(--border); }
.schedule-app.hide-sunday .schedule-day:nth-child(6n) { border-right:0; }

.schedule-toolbar { grid-template-columns:36px minmax(0,1fr) 36px auto; }
.schedule-toolbar-controls {
  display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; flex-wrap:wrap;
}
.schedule-today-button {
  padding:6px 9px; font:600 11px var(--font-body); line-height:1.2; min-height:29px;
}
.schedule-sunday-toggle {
  display:inline-flex; align-items:center; gap:6px; padding:5px 8px; min-height:29px;
  border:1px solid var(--border-2); border-radius:9px; background:white; color:var(--fg-3);
  font:600 11px var(--font-body); cursor:pointer; user-select:none;
}
.schedule-sunday-toggle input { position:absolute; opacity:0; pointer-events:none; }
.schedule-toggle-track {
  position:relative; width:28px; height:16px; border-radius:999px; background:var(--border-2);
  transition:background .15s ease;
}
.schedule-toggle-track > span {
  position:absolute; width:12px; height:12px; left:2px; top:2px; border-radius:50%; background:white;
  box-shadow:0 1px 3px rgba(16,47,57,.2); transition:transform .15s ease;
}
.schedule-sunday-toggle input:checked + .schedule-toggle-track { background:var(--teal); }
.schedule-sunday-toggle input:checked + .schedule-toggle-track > span { transform:translateX(12px); }
.schedule-sunday-toggle:focus-within { box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 12%,transparent); border-color:var(--teal); }

.schedule-zoom-control { display:flex; align-items:stretch; gap:3px; min-width:0; }
.schedule-zoom-step {
  width:29px; min-width:29px; border:1px solid var(--border-2); border-radius:8px; background:white;
  color:var(--fg-2); font:700 16px/1 var(--font-body); cursor:pointer;
}
.schedule-zoom-step:hover:not(:disabled) { border-color:var(--teal); color:var(--teal-600); }
.schedule-zoom-step:disabled { opacity:.35; cursor:not-allowed; }
.schedule-zoom-switch { min-width:0; }

.schedule-height-control {
  display:grid; grid-template-columns:auto minmax(76px,120px) 34px; align-items:center; gap:6px;
  min-height:29px; padding:4px 8px; border:1px solid var(--border-2); border-radius:9px;
  background:white; color:var(--fg-3); font:600 10px var(--font-body);
}
.schedule-height-control input[type="range"] { width:100%; min-width:76px; accent-color:var(--teal); cursor:pointer; }
.schedule-height-control output { color:var(--fg-4); font-size:9px; text-align:right; }

@media (max-width:1100px) {
  .schedule-toolbar { grid-template-columns:34px minmax(0,1fr) 34px; }
  .schedule-toolbar-controls { grid-column:1 / -1; justify-content:flex-start; }
  .schedule-height-control { flex:1 1 210px; }
}

@media (max-width:800px) {
  .schedule-toolbar { grid-template-columns:34px minmax(0,1fr) 34px; }
  .schedule-toolbar-controls { grid-column:1 / -1; display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:6px; width:100%; }
  .schedule-today-button { grid-column:auto; width:auto; padding:6px 8px; font-size:10px; }
  .schedule-sunday-toggle { font-size:10px; padding:5px 7px; }
  .schedule-zoom-control { min-width:0; }
  .schedule-zoom-switch { flex:1; }
  .schedule-zoom-button { font-size:10px; padding:7px 4px; }
  .schedule-height-control { grid-column:1 / -1; grid-template-columns:auto minmax(0,1fr) 34px; width:100%; }
}

@media (max-width:430px) {
  .schedule-toolbar-controls { grid-template-columns:auto auto minmax(0,1fr); }
  .schedule-zoom-step { width:27px; min-width:27px; }
  .schedule-sunday-toggle > span:last-child { font-size:9px; }
  .schedule-height-control { padding-left:7px; padding-right:7px; }
}


/* ── Urlaubskalender-Breitenverteilung v1.7.4 ─────────────────────────── */
.vacation-requests-card { min-width:0; }
.vacation-calendar-card { min-width:440px; }
@media (max-width:1200px) and (min-width:761px) {
  .vacation-calendar-card { min-width:400px; }
}
@media (max-width:760px) {
  .vacation-calendar-card { min-width:0; }
}

/* ── Desktop-Benachrichtigung, Kalenderbreite und Zoomspeicher v1.7.3 ── */
.sidebar-header-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sidebar-header-row .sidebar-logo { margin-bottom:0; min-width:0; }
.sidebar-notification-bell {
  position:relative; width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  flex:0 0 34px; border-radius:50%; color:rgba(255,255,255,.72); background:rgba(255,255,255,.07);
}
.sidebar-notification-bell:hover { color:white; background:color-mix(in srgb,var(--teal) 25%,transparent); }
.sidebar-notification-bell > span {
  position:absolute; top:-4px; right:-5px; min-width:18px; height:18px; padding:0 4px;
  display:flex; align-items:center; justify-content:center; border:2px solid var(--navy);
  border-radius:999px; background:var(--danger); color:white; font-size:8px; font-weight:800;
}

@media (max-width:1024px) {
  .sidebar-notification-bell { display:none; }
}

@media (min-width:1025px) {
  body.vacation-page .main-content { max-width:none; width:100%; }
  body.vacation-page .vacation-calendar-card { width:100%; max-width:none; }
}

/* ── Urlaubskalender: breiter und höhenverstellbar v1.8.0 ─────────────── */
.vacation-requests-card .card-header .btn { width:auto; flex:0 0 auto; }
.vacation-calendar-card { --vacation-calendar-scale:1.1; }
.vacation-calendar-card .team-calendar-day { min-height:calc(70px * var(--vacation-calendar-scale)); }
.team-calendar-toolbar { align-items:center; gap:10px; flex-wrap:wrap; }
.vacation-calendar-height-control {
  display:grid; grid-template-columns:auto minmax(100px,150px) 38px; align-items:center; gap:7px;
  min-height:31px; padding:4px 8px; border:1px solid var(--border-2); border-radius:9px;
  background:white; color:var(--fg-3); font:600 10px var(--font-body);
}
.vacation-calendar-height-control input { width:100%; accent-color:var(--teal); cursor:pointer; }
.vacation-calendar-height-control output { color:var(--fg-4); font-size:9px; text-align:right; }
@media (min-width:1280px) {
  .vacation-layout { grid-template-columns:minmax(430px,.8fr) minmax(600px,1.2fr); }
}
@media (min-width:1600px) {
  .vacation-layout { grid-template-columns:minmax(480px,.72fr) minmax(720px,1.28fr); }
}
@media (max-width:760px) {
  .vacation-calendar-card { --vacation-calendar-scale:1; }
  .vacation-calendar-height-control { grid-template-columns:auto minmax(0,1fr) 36px; width:100%; }
}

/* ── Provisionsziele v1.8.0 ───────────────────────────────────────────── */
@media (min-width:1025px) { body.commission-goals-page .main-content { max-width:none; width:100%; } }
.commission-page-header .page-header-actions { display:flex; gap:8px; flex-wrap:wrap; }
.commission-period-bar { display:flex; align-items:flex-end; gap:16px; padding:16px 18px; }
.commission-period-select { flex:1; min-width:220px; }
.commission-period-select label { display:block; margin-bottom:4px; color:var(--fg-4); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.commission-period-dates { color:var(--fg-3); font-size:13px; white-space:nowrap; }
.commission-metrics { grid-template-columns:repeat(5,minmax(120px,1fr)); gap:12px; }
.commission-metrics .metric-card { padding:15px 17px; }
.commission-metrics .metric-card-value { font-size:20px; }
.commission-filters { display:flex; align-items:flex-end; gap:10px; padding:14px 16px; }
.commission-filters > div { flex:1; min-width:170px; }
.commission-filters .form-label { margin-bottom:4px; font-size:11px; }
.commission-filters .form-control { height:38px; padding:7px 10px; font-size:13px; }
.commission-partner-list { display:flex; flex-direction:column; gap:16px; }
.commission-partner-card { overflow:hidden; }
.commission-partner-head { display:grid; grid-template-columns:minmax(0,1fr) 180px 32px; align-items:center; gap:18px; padding:17px 20px; border-bottom:1px solid var(--border); background:linear-gradient(90deg,var(--surface),var(--bg)); }
.commission-partner-head .section-label { margin-bottom:2px; }
.commission-partner-head h2 { color:var(--fg-1); font:700 17px var(--font-display); }
.commission-partner-head p { margin-top:2px; color:var(--fg-3); font-size:12px; }
.commission-partner-progress strong { display:block; color:var(--fg-1); font-size:13px; }
.commission-partner-progress > span { display:block; margin-bottom:5px; color:var(--fg-4); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.commission-partner-progress .progress { height:5px; }
.commission-icon-button { width:30px; height:30px; border:1px solid var(--border-2); border-radius:8px; background:white; color:var(--fg-3); font-size:18px; cursor:pointer; }
.commission-icon-button.is-danger:hover { border-color:#ebbbbb; background:var(--danger-bg); color:var(--danger); }
.commission-table th { padding:9px 12px; }
.commission-table td { padding:10px 12px; font-size:12.5px; }
.commission-table td:nth-child(1) { width:130px; }
.commission-table td:nth-child(4) { width:100px; white-space:nowrap; }
.commission-table td:nth-child(5) { width:170px; }
.commission-table td:nth-child(6) { width:110px; text-align:right; }
.commission-table td strong { display:block; color:var(--fg-1); }
.commission-table td small { display:block; max-width:460px; margin-top:3px; color:var(--fg-4); font-size:10px; line-height:1.4; }
.commission-table tr.is-overdue { background:#fffafa; }
.commission-table tr.is-overdue:hover { background:#fff5f5; }
.commission-assignee { display:flex; align-items:center; gap:7px; min-width:0; }
.commission-assignee .avatar-sm { width:26px; height:26px; font-size:8px; }
.commission-assignee > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.commission-actions-cell .btn { padding:6px 10px; }
.commission-quick-status { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.commission-quick-status .form-control { width:115px; height:32px; padding:4px 7px; font-size:11px; }
.commission-empty-filter { padding:22px; color:var(--fg-4); font-size:13px; text-align:center; }
.commission-check { display:flex; align-items:center; gap:8px; color:var(--fg-2); font-size:13px; cursor:pointer; }

.app-dialog.commission-dialog { width:min(94vw,640px); max-width:640px; padding:0; border:0; border-radius:18px; background:white; color:var(--fg-2); box-shadow:0 18px 60px rgba(16,47,57,.28); }
.app-dialog.commission-dialog::backdrop { background:rgba(16,47,57,.56); backdrop-filter:blur(2px); }
.commission-dialog-card { padding:22px; }
.commission-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; }
.commission-dialog-head h2 { color:var(--fg-1); font:700 19px var(--font-display); }
.commission-dialog-head p { margin-top:3px; color:var(--fg-4); font-size:12px; }
.commission-dialog-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.commission-dialog-delete { padding:0 22px 22px; }
.commission-dialog-delete .btn { width:100%; }

@media (max-width:900px) {
  .commission-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .commission-partner-head { grid-template-columns:minmax(0,1fr) 150px 32px; }
  .commission-filters { flex-wrap:wrap; }
}
@media (max-width:760px) {
  .commission-page-header .page-header-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
  .commission-page-header .page-header-actions .btn:last-child { grid-column:1 / -1; }
  .commission-period-bar { align-items:stretch; flex-direction:column; gap:9px; }
  .commission-period-dates { white-space:normal; }
  .commission-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .commission-metrics .metric-card:first-child { grid-column:1 / -1; }
  .commission-filters { align-items:stretch; flex-direction:column; }
  .commission-filters > div,.commission-filters .btn { width:100%; }
  .commission-partner-head { grid-template-columns:minmax(0,1fr) 32px; gap:10px; padding:15px; }
  .commission-partner-progress { grid-column:1 / -1; }
  .commission-partner-head > form { grid-column:2; grid-row:1; }
  .commission-table tbody tr { padding:13px 14px; }
  .commission-table tbody td { padding:4px 0; }
  .commission-table td:nth-child(n) { width:auto; text-align:left; white-space:normal; }
  .commission-table .commission-actions-cell { padding-top:9px; }
  .commission-table .commission-actions-cell .btn { width:100%; }
  .commission-assignee { justify-content:flex-end; }
  .commission-quick-status { width:100%; justify-content:stretch; }
  .commission-quick-status .form-control { flex:1; width:auto; }
  .app-dialog.commission-dialog { width:100%; max-width:none; margin:auto 0 0; border-radius:20px 20px 0 0; max-height:94vh; overflow:auto; }
  .commission-dialog-card { padding:20px 16px max(18px,env(safe-area-inset-bottom)); }
  .commission-dialog-actions { flex-direction:column-reverse; }
  .commission-dialog-actions .btn { width:100%; }
  .commission-dialog-delete { padding:0 16px max(20px,env(safe-area-inset-bottom)); }
}

/* ── Provisionsziele, Urlaub und Mitarbeiteransicht v1.9.0 ─────────────── */
.vacation-main-column { min-width:0; }
.calendar-person-chip .schedule-avatar,
.calendar-person-chip .schedule-avatar img { border-radius:50% !important; }
.calendar-person-chip .schedule-avatar img { display:block; object-fit:cover; }

.app-dialog.commission-dialog {
  position:fixed; inset:0; margin:auto;
  max-height:min(90vh,760px); overflow:auto;
}
.commission-metrics { grid-template-columns:repeat(6,minmax(110px,1fr)); }
.commission-inline-form { margin:0; }
.commission-inline-form .form-control {
  height:32px; min-width:0; padding:4px 8px; border-radius:8px; font-size:11px;
  background:white;
}
.commission-inline-status .form-control { width:120px; }
.commission-inline-assignee .form-control { width:150px; }
.commission-row-actions { display:flex; justify-content:flex-end; align-items:center; gap:5px; flex-wrap:wrap; }
.commission-comment-button { color:var(--teal-600); }
.commission-comment-preview {
  max-width:460px; margin-top:5px; padding-left:8px; border-left:2px solid var(--teal-border);
  color:var(--fg-3); font-size:10px; line-height:1.4;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.commission-comment-preview span { color:var(--fg-2); font-weight:700; }
.commission-comment-thread {
  display:flex; flex-direction:column; gap:10px; max-height:300px; overflow:auto;
  margin-bottom:16px; padding:2px;
}
.commission-comment-item { display:grid; grid-template-columns:32px minmax(0,1fr); gap:9px; }
.commission-comment-item > div { min-width:0; padding:9px 11px; border:1px solid var(--border); border-radius:10px; background:var(--bg); }
.commission-comment-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:3px; }
.commission-comment-meta strong { color:var(--fg-1); font-size:11px; }
.commission-comment-meta span { color:var(--fg-4); font-size:9px; white-space:nowrap; }
.commission-comment-item p { color:var(--fg-2); font-size:12px; line-height:1.5; }
.commission-comment-empty { padding:18px; border:1px dashed var(--border-2); border-radius:10px; color:var(--fg-4); font-size:12px; text-align:center; }
.commission-review-check { margin:-3px 0 14px; padding:10px 12px; border:1px solid var(--teal-border); border-radius:10px; background:var(--teal-100); }
.commission-table tr.is-review { background:#fffaf0; }
.commission-overdue-badge { margin-top:5px; }

.impersonation-banner {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:10px 20px; border-bottom:1px solid #e3c56e; background:#fff6d9; color:#6f5310;
  position:sticky; top:0; z-index:120;
}
.impersonation-banner strong { display:block; font-size:13px; }
.impersonation-banner span { display:block; margin-top:1px; font-size:11px; color:#8b6c20; }
.impersonation-banner form { flex:0 0 auto; }
.inline-form { display:inline-flex; margin:0; }

@media (min-width:1280px) {
  .vacation-layout { grid-template-columns:minmax(430px,.76fr) minmax(680px,1.24fr); }
}
@media (min-width:1600px) {
  .vacation-layout { grid-template-columns:minmax(480px,.68fr) minmax(820px,1.32fr); }
}

@media (max-width:900px) {
  .commission-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .app-dialog.commission-dialog {
    width:min(94vw,640px); max-width:640px; margin:auto; border-radius:18px;
    max-height:90vh;
  }
  .commission-inline-status,.commission-inline-assignee { width:100%; }
  .commission-inline-status .form-control,.commission-inline-assignee .form-control { width:100%; }
  .commission-row-actions { width:100%; justify-content:stretch; }
  .commission-row-actions .btn { flex:1; width:auto !important; }
  .commission-comment-preview { max-width:none; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .commission-comment-meta { align-items:flex-start; flex-direction:column; gap:1px; }
  .impersonation-banner { align-items:stretch; flex-direction:column; gap:7px; padding:9px 16px; position:relative; }
  .impersonation-banner .btn { width:100%; }
}
@media (max-width:1024px) {
  .impersonation-banner { position:relative; }
}

/* ── TeamHub v1.10.0: Urlaub, Provisionsziele und Mitarbeiterstatus ────── */
@media (min-width:1025px) {
  body.vacation-page .vacation-layout {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  }
}
.vacation-card-action .btn { width:auto; max-width:100%; }

.commission-table { min-width:1180px; }
.commission-table th:nth-child(1), .commission-table td:nth-child(1) { width:130px; }
.commission-table th:nth-child(2), .commission-table td:nth-child(2) { width:170px; }
.commission-table th:nth-child(3), .commission-table td:nth-child(3) { width:150px; }
.commission-table th:nth-child(4), .commission-table td:nth-child(4) { width:210px; white-space:normal; }
.commission-table th:nth-child(5), .commission-table td:nth-child(5) { width:270px; white-space:normal; }
.commission-table th:nth-child(6), .commission-table td:nth-child(6) { width:100px; white-space:nowrap; text-align:left; }
.commission-table th:nth-child(7), .commission-table td:nth-child(7) { width:160px; text-align:left; }
.commission-table th:nth-child(8), .commission-table td:nth-child(8) { width:80px; text-align:right; }
.commission-note-text { color:var(--fg-2); font-size:13px; line-height:1.55; }
.commission-comments-cell { vertical-align:top; }
.commission-comment-preview {
  max-width:none; margin:0 0 5px; padding:0 0 0 9px; border-left:3px solid var(--teal-border);
  color:var(--fg-2); font-size:13px; line-height:1.5; white-space:normal;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
}
.commission-comment-preview span { display:block; margin-bottom:1px; color:var(--fg-1); font-size:11px; font-weight:800; }
.commission-comment-preview p { margin:0; }
.commission-comment-button { padding:4px 0; font-size:11px; justify-content:flex-start; }
.commission-status-select { font-weight:750; }
.commission-status-select.status-open { border-color:#efd48b; background:#fff8e6; color:#8a6500; }
.commission-status-select.status-planned { border-color:#a8dfe4; background:#edfafa; color:#087983; }
.commission-status-select.status-review { border-color:#efc574; background:#fff5db; color:#91610a; }
.commission-status-select.status-done { border-color:#9fd8c5; background:#ebf8f2; color:#167759; }
.commission-status-select.status-missed { border-color:#e9b0b0; background:#fff0f0; color:#a72f2f; }
.commission-status-select.status-not_required { border-color:var(--border-2); background:var(--bg); color:var(--fg-3); }
.commission-period-delete { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }

.employee-account-card { border-color:#e1e6e9; }
.employee-account-hint { margin-bottom:12px; color:var(--fg-3); font-size:12px; line-height:1.55; }
.employee-delete-blockers { display:flex; flex-wrap:wrap; gap:5px; }
.employee-delete-blockers span { padding:4px 7px; border-radius:7px; background:var(--bg); color:var(--fg-3); font-size:10px; }
.archived-employees { padding:0; overflow:hidden; }
.archived-employees > summary {
  display:flex; align-items:center; gap:9px; padding:16px 20px; cursor:pointer;
  color:var(--fg-1); font-weight:700; list-style:none;
}
.archived-employees > summary::-webkit-details-marker { display:none; }
.archived-employees > summary::after { content:'▾'; margin-left:auto; color:var(--fg-4); transition:transform .15s; }
.archived-employees[open] > summary::after { transform:rotate(180deg); }
.archived-employee-list { border-top:1px solid var(--border); }
.archived-employee-row {
  display:grid; grid-template-columns:40px minmax(0,1fr) auto 16px; align-items:center; gap:11px;
  padding:12px 20px; border-bottom:1px solid var(--border); color:var(--fg-2); text-decoration:none;
}
.archived-employee-row:last-child { border-bottom:0; }
.archived-employee-row:hover { background:var(--bg); color:var(--fg-2); }
.archived-employee-row strong { display:block; color:var(--fg-1); font-size:13px; }
.archived-employee-row div > span { display:block; margin-top:1px; color:var(--fg-4); font-size:11px; }
.archived-employee-row > svg { color:var(--fg-4); }

@media (max-width:760px) {
  .commission-table { min-width:0; }
  .commission-table td:nth-child(n) { width:auto; text-align:left; white-space:normal; }
  .commission-note-text,.commission-comment-preview { font-size:12.5px; }
  .commission-comment-preview { -webkit-line-clamp:3; }
  .commission-comments-cell .commission-comment-button { width:auto !important; }
  .archived-employee-row { grid-template-columns:36px minmax(0,1fr) 16px; padding:11px 14px; }
  .archived-employee-row > .badge { grid-column:2; justify-self:start; }
  .archived-employee-row > svg { grid-column:3; grid-row:1 / span 2; }
}

/* ── TeamHub v1.11.0: Team-Wissen, Profile und Datenschutz ────────────── */
.submission-category-option {
  position:relative; padding:12px 16px; border:2px solid var(--border-2); border-radius:var(--radius-sm);
  cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s;
}
.submission-category-option input { position:absolute; opacity:0; pointer-events:none; }
.submission-category-option:hover { border-color:#b9d9dc; }
.submission-category-option.is-selected { border-color:var(--teal); background:var(--teal-100); box-shadow:0 0 0 2px color-mix(in srgb,var(--teal) 8%,transparent); }
.knowledge-followup-box { margin:0 0 20px; padding:13px 15px; border:1px solid var(--teal-border); border-radius:var(--radius); background:var(--teal-100); }
.knowledge-followup-box label { display:flex; align-items:flex-start; gap:11px; cursor:pointer; }
.knowledge-followup-box input { margin-top:4px; accent-color:var(--teal); }
.knowledge-followup-box strong,.knowledge-followup-box small { display:block; }
.knowledge-followup-box strong { color:var(--fg-1); font-size:13px; }
.knowledge-followup-box small { margin-top:2px; color:var(--fg-3); font-size:11px; line-height:1.45; }

.profile-personal-form { margin-top:20px; padding-top:18px; border-top:1px solid var(--border); }
.profile-address-grid { display:grid; grid-template-columns:minmax(100px,.35fr) minmax(0,1fr); gap:16px; }

.knowledge-page-header { align-items:center; }
.knowledge-filter-card { margin-bottom:20px; padding:18px; }
.knowledge-filter-grid { display:grid; grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(150px,1fr)); gap:12px; }
.knowledge-filter-grid .form-group { margin:0; }
.knowledge-filter-actions { display:flex; align-items:center; gap:8px; margin-top:14px; }
.knowledge-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:16px; }
.knowledge-card { display:flex; flex-direction:column; min-height:270px; }
.knowledge-card-meta { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:10px; }
.knowledge-card-meta > div:nth-child(2) { min-width:0; }
.knowledge-card-meta strong,.knowledge-card-meta span { display:block; }
.knowledge-card-meta strong { color:var(--fg-1); font-size:12px; }
.knowledge-card-meta span { color:var(--fg-4); font-size:10px; }
.knowledge-category-badge { justify-self:end; }
.knowledge-card-title { margin:17px 0 5px; color:var(--fg-1); font-family:var(--font-display); font-size:18px; font-weight:750; line-height:1.32; }
.knowledge-card-title:hover { color:var(--teal-600); }
.knowledge-provider { color:var(--teal-600); font-size:11px; font-weight:700; }
.knowledge-card > p { margin:12px 0 16px; color:var(--fg-2); font-size:13px; line-height:1.65; }
.knowledge-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:12px; border-top:1px solid var(--border); }
.knowledge-card-footer > div { display:flex; flex-wrap:wrap; gap:8px; }
.knowledge-card-footer > div span { color:var(--fg-4); font-size:10px; }

.knowledge-editor-layout { grid-template-columns:minmax(0,1fr) 280px; gap:20px; align-items:start; }
.rich-editor { overflow:hidden; border:1px solid var(--border-2); border-radius:var(--radius); background:white; }
.rich-editor:focus-within { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 12%,transparent); }
.rich-editor-toolbar { display:flex; flex-wrap:wrap; gap:4px; padding:7px; border-bottom:1px solid var(--border); background:var(--bg); }
.rich-editor-toolbar button { min-width:31px; height:30px; padding:0 8px; border:1px solid var(--border-2); border-radius:7px; background:white; color:var(--fg-2); font:600 12px var(--font-body); cursor:pointer; }
.rich-editor-toolbar button:hover { border-color:var(--teal); color:var(--teal-600); }
.rich-editor-area { min-height:320px; padding:18px; color:var(--fg-1); font-size:15px; line-height:1.7; outline:none; }
.rich-editor-area:empty::before { content:attr(data-placeholder); color:var(--fg-4); pointer-events:none; }
.rich-editor-area h2,.knowledge-rich-content h2 { margin:24px 0 10px; color:var(--fg-1); font:750 22px/1.3 var(--font-display); }
.rich-editor-area h3,.knowledge-rich-content h3 { margin:20px 0 8px; color:var(--fg-1); font:700 17px/1.35 var(--font-display); }
.rich-editor-area p,.knowledge-rich-content p { margin:0 0 13px; }
.rich-editor-area ul,.rich-editor-area ol,.knowledge-rich-content ul,.knowledge-rich-content ol { margin:0 0 14px 22px; }
.rich-editor-area blockquote,.knowledge-rich-content blockquote { margin:16px 0; padding:10px 14px; border-left:4px solid var(--teal); background:var(--teal-100); color:var(--fg-2); }
.rich-editor-area a,.knowledge-rich-content a { color:var(--teal-600); text-decoration:underline; }
.knowledge-screenshot-picker { display:inline-flex; align-items:center; justify-content:center; padding:9px 14px; border:1px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg); color:var(--fg-2); font-size:13px; font-weight:650; cursor:pointer; }
.knowledge-screenshot-picker input { display:none; }
.knowledge-screenshot-preview,.knowledge-existing-attachments { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:9px; margin-top:12px; }
.knowledge-screenshot-preview img,.knowledge-existing-attachments img { width:100%; aspect-ratio:4/3; object-fit:cover; border:1px solid var(--border); border-radius:9px; }
.knowledge-existing-attachments > div { min-width:0; }
.knowledge-existing-attachments .btn { width:100%; margin-top:4px; }
.knowledge-guideline-list { padding-left:18px; color:var(--fg-2); font-size:12px; line-height:1.75; }
.knowledge-delete-form { margin-top:18px; text-align:right; }

.knowledge-detail-card { max-width:980px; margin:0 auto; padding:34px 42px; }
.knowledge-detail-header { max-width:980px; margin-left:auto; margin-right:auto; }
.knowledge-detail-meta { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:11px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.knowledge-detail-meta strong,.knowledge-detail-meta span { display:block; }
.knowledge-detail-meta strong { color:var(--fg-1); font-size:13px; }
.knowledge-detail-meta span { color:var(--fg-4); font-size:10px; }
.knowledge-detail-facts { display:flex; flex-wrap:wrap; gap:16px 30px; margin:20px 0; }
.knowledge-detail-facts div { min-width:150px; }
.knowledge-detail-facts span,.knowledge-detail-facts strong { display:block; }
.knowledge-detail-facts span { color:var(--fg-4); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.knowledge-detail-facts strong { margin-top:3px; color:var(--fg-1); font-size:13px; }
.knowledge-detail-facts a { display:inline-block; margin-top:3px; font-size:11px; }
.knowledge-lead { margin:22px 0; padding:16px 18px; border-radius:var(--radius); background:var(--teal-100); color:#17646a; font-size:15px; font-weight:550; line-height:1.65; }
.knowledge-rich-content { color:var(--fg-2); font-size:15px; line-height:1.75; }
.knowledge-gallery { margin-top:30px; padding-top:22px; border-top:1px solid var(--border); }
.knowledge-gallery > div:last-child { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.knowledge-gallery img { width:100%; max-height:360px; object-fit:contain; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.knowledge-detail-footer { max-width:980px; margin:16px auto 0; }
.knowledge-submission-link { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid var(--teal-border); border-radius:var(--radius); background:var(--teal-100); }
.knowledge-submission-link.is-empty { border-color:var(--border-2); background:var(--bg); }
.knowledge-submission-link strong,.knowledge-submission-link span { display:block; }
.knowledge-submission-link strong { color:var(--fg-1); font-size:12px; }
.knowledge-submission-link span { margin-top:2px; color:var(--fg-3); font-size:10px; }

@media (max-width:1024px) {
  .knowledge-filter-grid { grid-template-columns:1fr 1fr; }
  .knowledge-editor-layout { grid-template-columns:1fr; }
  .knowledge-editor-layout aside { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
}
@media (max-width:760px) {
  .profile-address-grid,.knowledge-filter-grid { grid-template-columns:1fr; }
  .knowledge-list { grid-template-columns:1fr; }
  .knowledge-card { min-height:0; }
  .knowledge-card-meta { grid-template-columns:36px minmax(0,1fr); }
  .knowledge-category-badge { grid-column:2; justify-self:start; margin-top:2px; }
  .knowledge-card-footer { align-items:flex-start; flex-direction:column; }
  .knowledge-editor-layout aside { grid-template-columns:1fr; }
  .rich-editor-area { min-height:260px; padding:14px; font-size:14px; }
  .knowledge-detail-card { padding:20px 17px; }
  .knowledge-detail-meta { grid-template-columns:36px minmax(0,1fr); }
  .knowledge-detail-meta .badge { grid-column:2; justify-self:start; }
  .knowledge-detail-facts { gap:12px; }
  .knowledge-detail-facts div { min-width:calc(50% - 6px); }
  .knowledge-submission-link { align-items:stretch; flex-direction:column; }
  .knowledge-submission-link .btn { width:100%; }
}
.employee-personal-data { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; margin-top:14px; }
.employee-personal-data span,.employee-personal-data strong { display:block; }
.employee-personal-data span { color:var(--fg-4); font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.employee-personal-data strong { margin-top:2px; color:var(--fg-1); font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
@media (max-width:760px){.employee-personal-data{grid-template-columns:1fr;}}
.submission-knowledge-inline { margin-top:3px; font-size:10px; font-weight:600; }
.submission-knowledge-inline a { color:var(--teal-600); }

/* ── Team-Wissen inline images and lightbox (v1.12.0) ─────────────────── */
.rich-editor-area img,
.knowledge-rich-content img {
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:18px auto;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  box-shadow:0 3px 14px rgba(16,47,57,.08);
}
.rich-editor-area img { cursor:default; }
.knowledge-rich-content img,
.knowledge-gallery img { cursor:zoom-in; }
.knowledge-inline-image { margin:18px 0; }
.knowledge-inline-image img { margin:0 auto; }

.knowledge-lightbox {
  position:fixed;
  inset:0;
  z-index:1800;
  display:grid;
  grid-template-columns:minmax(44px,1fr) minmax(0,calc(100vw - 150px)) minmax(44px,1fr);
  align-items:center;
  justify-items:center;
  padding:28px;
  background:rgba(5,17,22,.92);
  backdrop-filter:blur(8px);
}
.knowledge-lightbox figure {
  grid-column:2;
  grid-row:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  height:calc(100vh - 56px);
  margin:0;
}
.knowledge-lightbox figure img {
  display:block;
  max-width:100%;
  max-height:calc(100vh - 105px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 16px 60px rgba(0,0,0,.45);
}
.knowledge-lightbox figcaption {
  max-width:min(820px,90vw);
  margin-top:12px;
  color:rgba(255,255,255,.78);
  font-size:13px;
  line-height:1.45;
  text-align:center;
}
.knowledge-lightbox-close,
.knowledge-lightbox-nav {
  border:0;
  color:white;
  background:rgba(255,255,255,.12);
  cursor:pointer;
  transition:background .18s ease,transform .18s ease;
}
.knowledge-lightbox-close:hover,
.knowledge-lightbox-nav:hover { background:rgba(255,255,255,.22); }
.knowledge-lightbox-close:focus-visible,
.knowledge-lightbox-nav:focus-visible { outline:3px solid color-mix(in srgb,var(--teal) 70%,transparent); outline-offset:3px; }
.knowledge-lightbox-close {
  position:absolute;
  top:18px;
  right:18px;
  z-index:2;
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:29px;
  line-height:1;
}
.knowledge-lightbox-nav {
  grid-row:1;
  width:48px;
  height:58px;
  border-radius:12px;
  font-size:38px;
  line-height:1;
}
.knowledge-lightbox-prev { grid-column:1; }
.knowledge-lightbox-next { grid-column:3; }

@media (max-width:640px) {
  .knowledge-lightbox {
    grid-template-columns:42px minmax(0,1fr) 42px;
    padding:16px 8px;
  }
  .knowledge-lightbox figure { height:calc(100vh - 32px); }
  .knowledge-lightbox figure img { max-height:calc(100vh - 92px); }
  .knowledge-lightbox-close { top:10px; right:10px; width:38px; height:38px; }
  .knowledge-lightbox-nav { width:38px; height:50px; font-size:32px; }
}

/* ── Provisionsziele und Wissensbilder v1.13.0 ─────────────────────────── */
.commission-partner-head {
  grid-template-columns:minmax(0,1fr) 180px auto;
}
.commission-partner-info { min-width:0; }
.commission-partner-head .commission-partner-program {
  margin-top:3px;
  color:var(--fg-3);
  font-size:13px;
  line-height:1.45;
}
.commission-partner-head .commission-partner-note {
  max-width:760px;
  margin-top:7px;
  color:var(--fg-2);
  font-size:14px;
  line-height:1.55;
}
.commission-partner-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
.commission-icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-family:var(--font-body);
  font-weight:700;
  line-height:1;
}
.commission-icon-button.is-add {
  border-color:var(--teal-border);
  background:var(--teal-100);
  color:var(--teal-600);
  font-size:20px;
}
.commission-icon-button.is-add:hover {
  border-color:var(--teal);
  background:#dff7f8;
}
.commission-icon-button.is-edit {
  font-size:16px;
}
.commission-icon-button.is-edit:hover {
  border-color:var(--teal-border);
  color:var(--teal-600);
  background:var(--teal-100);
}
.commission-current-period-label {
  margin-bottom:14px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg);
}
.commission-current-period-label span,
.commission-current-period-label strong { display:block; }
.commission-current-period-label span {
  margin-bottom:2px;
  color:var(--fg-4);
  font-size:9px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.commission-current-period-label strong {
  color:var(--fg-1);
  font-size:13px;
}
.commission-period-delete { margin-top:12px; }

/* Inline-Bilder im Editor und veröffentlichten Beitrag beginnen links. */
.rich-editor-area img,
.knowledge-rich-content img { margin:18px 0; }
.knowledge-inline-image img { margin:0; }

@media (max-width:900px) {
  .commission-partner-head { grid-template-columns:minmax(0,1fr) 150px auto; }
}
@media (max-width:760px) {
  .commission-partner-head { grid-template-columns:minmax(0,1fr) auto; }
  .commission-partner-actions { grid-column:2; grid-row:1; }
  .commission-partner-progress { grid-column:1 / -1; }
  .commission-partner-head .commission-partner-note { font-size:13.5px; }
}


/* ── TeamHub v1.15.0: stabile Checklisten, mobiler Urlaub und Sonntage ─── */
.schedule-day.is-closed { background:#F3F5F6; }
.schedule-regular-off.is-closed { background:#E7ECEE; color:var(--fg-3); }

@media (max-width:760px) {
  .vacation-calendar-card .team-calendar-day {
    position:relative;
    overflow:visible;
  }
  .vacation-calendar-card .calendar-people {
    position:relative;
    z-index:2;
  }
  .vacation-calendar-card .calendar-person-chip .schedule-avatar {
    display:none;
  }
  .vacation-calendar-card .calendar-people > .calendar-person-chip {
    position:relative;
    z-index:3;
    min-height:18px;
    padding:3px 4px;
    font-size:9px;
    overflow:visible;
  }
  .vacation-calendar-card .calendar-person-chip.continues-before {
    margin-left:-7px;
    padding-left:8px;
    border-left-color:transparent;
    border-radius:0 5px 5px 0;
  }
  .vacation-calendar-card .calendar-person-chip.continues-after {
    margin-right:-7px;
    padding-right:8px;
    border-radius:5px 0 0 5px;
  }
  .vacation-calendar-card .calendar-person-chip.continues-before.continues-after {
    border-radius:0;
  }
  .vacation-calendar-card .calendar-person-chip.continues-before .calendar-person-label {
    visibility:hidden;
  }
  .vacation-calendar-card .calendar-person-chip .calendar-person-label {
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    padding:0;
    background:transparent;
    color:inherit;
    font:inherit;
  }
}

/* ── TeamHub v1.16.0: durchgehende Abwesenheitsbalken und stabile Legende ── */
.vacation-calendar-card .team-calendar-day {
  position:relative;
  overflow:visible;
}
.vacation-calendar-card .calendar-people {
  position:relative;
  z-index:2;
}
.vacation-calendar-card .calendar-people > .calendar-person-chip,
.vacation-calendar-card .calendar-people > .calendar-person-chip-spacer {
  min-height:20px;
}
.vacation-calendar-card .calendar-people > .calendar-person-chip {
  position:relative;
  z-index:3;
  overflow:visible;
}
.vacation-calendar-card .calendar-people > .calendar-person-chip-spacer {
  display:block;
  height:20px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:transparent;
  visibility:hidden;
  pointer-events:none;
}
.vacation-calendar-card .calendar-person-chip.continues-before {
  margin-left:-8px;
  padding-left:9px;
  border-left-color:transparent;
  border-radius:0 5px 5px 0;
}
.vacation-calendar-card .calendar-person-chip.continues-after {
  margin-right:-8px;
  padding-right:9px;
  border-radius:5px 0 0 5px;
}
.vacation-calendar-card .calendar-person-chip.continues-before.continues-after {
  border-radius:0;
}
.vacation-calendar-card .calendar-person-chip.continues-before .schedule-avatar,
.vacation-calendar-card .calendar-person-chip.continues-before .calendar-person-label {
  visibility:hidden;
}
.calendar-legend {
  flex-wrap:nowrap;
}
.calendar-legend > span {
  min-width:0;
  white-space:nowrap;
}
.calendar-legend b {
  color:inherit;
  font:inherit;
}
.calendar-legend-short {
  display:none;
}

@media (max-width:760px) {
  .vacation-calendar-card .calendar-people > .calendar-person-chip,
  .vacation-calendar-card .calendar-people > .calendar-person-chip-spacer {
    min-height:18px;
  }
  .vacation-calendar-card .calendar-people > .calendar-person-chip-spacer {
    height:18px;
  }
  .vacation-calendar-card .calendar-person-chip.continues-before {
    margin-left:-7px;
    padding-left:8px;
  }
  .vacation-calendar-card .calendar-person-chip.continues-after {
    margin-right:-7px;
    padding-right:8px;
  }
  .calendar-legend {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    gap:8px;
    width:100%;
    font-size:9.5px;
  }
  .calendar-legend > span {
    justify-content:center;
    gap:4px;
    white-space:nowrap;
  }
  .calendar-legend-full {
    display:none;
  }
  .calendar-legend-short {
    display:inline;
  }
}

/* ── TeamHub v1.17.0: durchgehende Dienstplanbalken und Sonntagsanzeige ─ */
.schedule-app {
  --schedule-event-bridge:8px;
}
.schedule-day {
  position:relative;
  overflow:visible;
}
.schedule-day-events {
  position:relative;
  z-index:2;
}
.schedule-day-events > .schedule-event,
.schedule-day-events > .schedule-event-spacer {
  flex:0 0 auto;
  min-height:26px;
}
.schedule-day-events > .schedule-event {
  position:relative;
  z-index:3;
  width:auto;
  align-self:stretch;
  overflow:visible;
}
.schedule-event-spacer {
  display:block;
  height:26px;
  padding:0;
  border:0;
  background:transparent;
  visibility:hidden;
  pointer-events:none;
}
.schedule-event.continues-before {
  margin-left:calc(-1 * var(--schedule-event-bridge));
  padding-left:calc(6px + var(--schedule-event-bridge));
  border-left-color:transparent;
  border-radius:0 6px 6px 0;
}
.schedule-event.continues-after {
  margin-right:calc(-1 * var(--schedule-event-bridge));
  padding-right:calc(6px + var(--schedule-event-bridge));
  border-radius:6px 0 0 6px;
}
.schedule-event.continues-before.continues-after {
  border-radius:0;
}
.schedule-event.continues-before .schedule-avatar,
.schedule-event.continues-before .schedule-event-label {
  visibility:hidden;
}

.schedule-app.zoom-compact {
  --schedule-event-bridge:5px;
}
.schedule-app.zoom-compact .schedule-day-events > .schedule-event,
.schedule-app.zoom-compact .schedule-day-events > .schedule-event-spacer {
  min-height:18px;
}
.schedule-app.zoom-compact .schedule-event-spacer { height:18px; }
.schedule-app.zoom-compact .schedule-event.continues-before { padding-left:calc(4px + var(--schedule-event-bridge)); }
.schedule-app.zoom-compact .schedule-event.continues-after { padding-right:calc(4px + var(--schedule-event-bridge)); }

.schedule-app.zoom-overview {
  --schedule-event-bridge:3px;
}
.schedule-app.zoom-overview .schedule-day-events > .schedule-event,
.schedule-app.zoom-overview .schedule-day-events > .schedule-event-spacer {
  min-height:10px;
}
.schedule-app.zoom-overview .schedule-event-spacer { height:10px; }
.schedule-app.zoom-overview .schedule-event.continues-before { padding-left:calc(2px + var(--schedule-event-bridge)); }
.schedule-app.zoom-overview .schedule-event.continues-after { padding-right:calc(2px + var(--schedule-event-bridge)); }

/* Der Toggle beschreibt die Sichtbarkeit: aus = Sonntag verborgen, an = sichtbar. */
.vacation-calendar-card.hide-sunday .team-calendar-weekdays,
.vacation-calendar-card.hide-sunday .team-calendar-grid {
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.vacation-calendar-card.hide-sunday .is-sunday {
  display:none !important;
}
.vacation-calendar-card.hide-sunday[data-first-dow="7"] .calendar-empty.is-leading {
  display:none;
}
.vacation-calendar-card.hide-sunday .team-calendar-day.is-saturday .calendar-person-chip.continues-after {
  margin-right:0;
  padding-right:5px;
  border-radius:5px;
}
.vacation-calendar-card.hide-sunday .team-calendar-day.is-saturday .calendar-person-chip.continues-before.continues-after {
  border-radius:0 5px 5px 0;
}
.team-calendar-toolbar {
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.team-calendar-toolbar .schedule-sunday-toggle {
  flex:0 0 auto;
}

@media (max-width:760px) {
  .vacation-calendar-card.hide-sunday .team-calendar-day.is-saturday .calendar-person-chip.continues-after {
    padding-right:4px;
  }
}
.vacation-calendar-card.hide-sunday .calendar-person-chip-spacer.is-sunday-only-lane {
  display:none;
}

/* ── TeamHub v1.18.0: Empfängerwahl, Aufgaben-Rich-Text und Fertigdatum ── */
.task-rich-editor-area { min-height:220px; }
.task-comment-editor-area { min-height:150px; }
.task-rich-content { color:var(--fg-2); font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.task-comment-text.task-rich-content { margin-top:7px; font-size:13.5px; }
.task-rich-content h2 { margin:22px 0 9px; color:var(--fg-1); font:750 20px/1.3 var(--font-display); }
.task-rich-content h3 { margin:18px 0 7px; color:var(--fg-1); font:700 16px/1.35 var(--font-display); }
.task-rich-content p { margin:0 0 12px; }
.task-rich-content ul,.task-rich-content ol { margin:0 0 13px 22px; }
.task-rich-content blockquote { margin:15px 0; padding:10px 14px; border-left:4px solid var(--teal); background:var(--teal-100); color:var(--fg-2); }
.task-rich-content a { color:var(--teal-600); text-decoration:underline; }
.rich-editor-area .task-inline-image { margin:18px 0; }
.rich-editor-area .task-inline-image img { margin:0; }
.task-rich-content img {
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:18px 0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  box-shadow:0 3px 14px rgba(16,47,57,.08);
  cursor:zoom-in;
}
.task-attachment-grid img,.task-comment-attachments img { cursor:zoom-in; }
.task-create-modal { width:min(100%,780px); }

.notification-recipient-picker {
  min-width:0;
  margin:15px 0 17px;
  padding:13px 14px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
}
.notification-recipient-picker legend {
  padding:0 5px;
  color:var(--fg-2);
  font-size:12px;
  font-weight:750;
}
.notification-recipient-picker > p {
  margin:0 0 10px;
  color:var(--fg-4);
  font-size:11px;
  line-height:1.45;
}
.notification-recipient-list { display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; }
.notification-recipient-chip {
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  max-width:150px;
  padding:5px 9px 5px 5px;
  border:1px solid var(--border);
  border-radius:999px;
  background:white;
  color:var(--fg-3);
  cursor:pointer;
  transition:border-color .15s,background .15s,color .15s,box-shadow .15s;
}
.notification-recipient-chip:hover { border-color:var(--teal-border); background:var(--teal-100); }
.notification-recipient-chip:has(input:checked) {
  border-color:var(--teal);
  background:var(--teal-100);
  color:var(--teal-700);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--teal) 9%,transparent);
}
.notification-recipient-chip input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.notification-recipient-avatar { display:flex; flex:0 0 auto; border-radius:50%; }
.notification-recipient-chip input:checked + .notification-recipient-avatar { box-shadow:0 0 0 2px var(--teal); }
.notification-recipient-avatar .avatar-sm { width:30px; height:30px; font-size:9px; }
.notification-recipient-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:700; }
.commission-recipient-picker { margin-top:4px; }

.commission-date-cell { min-width:118px; }
.commission-date-stack { display:flex; flex-direction:column; gap:6px; }
.commission-date-stack > span { display:flex; align-items:center; gap:6px; color:var(--fg-2); font-size:12px; font-weight:650; white-space:nowrap; }
.commission-date-stack svg { width:15px; height:15px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; color:var(--fg-4); }
.commission-date-stack .commission-completion-date { color:#14704d; }
.commission-date-stack .commission-completion-date svg { color:#159463; }
.commission-date-stack .commission-completion-date.is-empty { color:var(--fg-4); font-weight:500; }
.commission-date-stack .commission-completion-date.is-empty svg { color:var(--fg-4); }
.commission-review-controls { margin-top:4px; padding:12px; border:1px solid var(--teal-border); border-radius:var(--radius); background:var(--teal-100); }
.commission-review-controls .commission-review-check { margin:0; }
.commission-completion-input { margin:12px 0 0; }
.commission-completion-input[hidden] { display:none; }

@media (max-width:760px) {
  .task-rich-editor-area { min-height:190px; }
  .task-comment-editor-area { min-height:140px; }
  .notification-recipient-list { gap:7px; }
  .notification-recipient-chip { max-width:130px; padding-right:8px; }
  .notification-recipient-name { font-size:10.5px; }
  .commission-date-cell { min-width:0; }
  .commission-date-stack { align-items:flex-end; }
  .commission-date-stack > span { justify-content:flex-end; }
}

/* v1.19.0 Termine */
.appointments-grid{display:grid;gap:12px}.appointment-card{display:grid;grid-template-columns:130px 1fr auto;gap:18px;align-items:center;padding:18px}.appointment-card.cancelled{opacity:.62}.appointment-time{display:flex;flex-direction:column;gap:4px}.appointment-time strong{font-size:1rem}.appointment-time span{color:#62767e}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1/-1}.schedule-event-appointment{background:#fff2d8;border-left:4px solid #e6a42f;color:#5b3c00;text-decoration:none}.modal.is-open{display:flex}.modal{align-items:center;justify-content:center}.modal-dialog{max-height:90vh;overflow:auto}@media(max-width:700px){.appointment-card{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

/* v1.20.0 – Termine direkt in Termine & Dienstplan */
.schedule-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.appointment-modal-card{width:min(820px,calc(100vw - 28px));max-height:min(92vh,900px);overflow:auto}
.appointment-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.appointment-form-grid .full{grid-column:1/-1}
.appointment-time-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.appointment-form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.appointment-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #e2eaed;border-radius:12px;overflow:hidden;margin-bottom:16px}
.appointment-detail-grid>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-bottom:1px solid #e8eef0}
.appointment-detail-grid>div:nth-child(odd){border-right:1px solid #e8eef0}
.appointment-detail-grid span,.appointment-detail-note>span{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:#7a8b92;font-weight:700}
.appointment-detail-grid strong{font-size:.96rem;color:#153944}
.appointment-detail-note{padding:13px 14px;background:#f7fafb;border-radius:12px;margin-bottom:12px}
.appointment-detail-note p{margin:5px 0 0;font-size:.96rem;line-height:1.55;color:#334b54;white-space:pre-wrap}
.appointment-cancel-box{margin-top:18px;padding-top:18px;border-top:1px solid #e2eaed}
.appointment-cancel-box .appointment-form-actions{margin-top:12px}

.schedule-agenda-wrap{overflow:auto;border:1px solid #dfe8eb;border-radius:16px;background:#fff;max-height:calc(100vh - 220px);min-height:520px}
.schedule-agenda-grid{display:grid;grid-template-columns:72px repeat(var(--agenda-days),minmax(150px,1fr));min-width:calc(72px + var(--agenda-days) * 150px);position:relative}
.schedule-agenda-corner{position:sticky;left:0;top:0;z-index:8;background:#f7fafb;border-right:1px solid #e4ecef;border-bottom:1px solid #e4ecef;min-height:92px}
.schedule-agenda-day-head{position:sticky;top:0;z-index:7;background:#f7fafb;border-right:1px solid #e4ecef;border-bottom:1px solid #e4ecef;min-height:92px;padding:10px 8px;text-align:center;display:flex;flex-direction:column;gap:2px}
.schedule-agenda-day-head.is-today{background:#eefbfc}
.schedule-agenda-day-head>strong{font-size:.9rem;color:#153944}.schedule-agenda-day-head>span{font-size:.78rem;color:#73868e}
.schedule-agenda-absence-list{display:flex;flex-direction:column;gap:3px;margin-top:5px;text-align:left}
.schedule-agenda-absence-list span{display:block;font-size:.68rem;line-height:1.2;padding:3px 5px;border-radius:5px;background:color-mix(in srgb,var(--person-color) 14%,#fff);border-left:3px solid var(--person-color);color:#314b54;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-agenda-time{position:sticky;left:0;z-index:4;height:40px;padding:4px 8px 0;background:#f9fbfc;border-right:1px solid #e4ecef;border-bottom:1px solid #edf2f4;color:#82939a;font-size:.72rem;text-align:right}
.schedule-agenda-slot{height:40px;border-right:1px solid #e4ecef;border-bottom:1px solid #edf2f4;position:relative;background:#fff;cursor:pointer}
.schedule-agenda-slot:hover{background:#f4fcfc}
.schedule-agenda-appointment{position:absolute;top:2px;left:3px;right:3px;z-index:5;border:0;border-left:4px solid var(--person-color);border-radius:7px;background:#fff2d8;padding:5px 7px;text-align:left;color:#5b3c00;box-shadow:0 2px 8px rgba(16,47,57,.12);overflow:hidden;cursor:pointer;display:flex;flex-direction:column;gap:1px}
.schedule-agenda-appointment:hover{filter:brightness(.98);box-shadow:0 3px 12px rgba(16,47,57,.18)}
.schedule-agenda-appointment strong{font-size:.74rem;line-height:1.15}.schedule-agenda-appointment span{font-size:.71rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-agenda-appointment small{font-size:.65rem;color:#7f6842}
.schedule-event-appointment{border:0;border-left:4px solid #e6a42f;cursor:pointer;width:100%;font:inherit;text-align:left}

@media(max-width:900px){
  .schedule-page-header{align-items:flex-start}.schedule-header-actions{width:100%;justify-content:flex-start}.schedule-view-switch{width:auto;max-width:100%;overflow-x:auto}
  .appointment-form-grid{grid-template-columns:1fr}.appointment-form-grid .full{grid-column:auto}.appointment-detail-grid{grid-template-columns:1fr}.appointment-detail-grid>div:nth-child(odd){border-right:0}
}
@media(max-width:620px){
  .schedule-header-actions>.btn{width:100%}.schedule-view-switch{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));width:100%}.schedule-view-button{padding-left:7px;padding-right:7px;font-size:.78rem}
  .appointment-time-row{grid-template-columns:1fr}.appointment-form-actions{flex-direction:column-reverse;align-items:stretch}.appointment-form-actions .btn{width:100%}
  .schedule-agenda-wrap{max-height:calc(100vh - 180px);border-radius:12px}.schedule-agenda-grid{grid-template-columns:56px repeat(var(--agenda-days),minmax(132px,1fr));min-width:calc(56px + var(--agenda-days) * 132px)}.schedule-agenda-corner{min-height:82px}.schedule-agenda-day-head{min-height:82px}.schedule-agenda-time{padding-right:5px}
}


/* v1.21.0 – Terminfarben und Online-Buchungsregeln */
.schedule-event-appointment{
  background:color-mix(in srgb,var(--person-color) 14%,white);
  border:1px solid color-mix(in srgb,var(--person-color) 28%,transparent);
  border-left:4px solid var(--person-color);
  color:var(--fg-1);
}
.schedule-agenda-appointment{
  background:color-mix(in srgb,var(--person-color) 14%,white);
  border-left-color:var(--person-color);
  color:var(--fg-1);
}
.schedule-agenda-appointment-top{display:flex!important;align-items:center;gap:5px;min-width:0;overflow:hidden}
.schedule-agenda-appointment-top strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-agenda-customer{color:var(--fg-2)}
.schedule-agenda-appointment small{color:var(--fg-3)}
.appointment-detail-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.appointment-detail-title-row h2{margin:0}
.appointment-source-badge{font-size:.68rem}
.booking-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.booking-service-settings{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.booking-service-setting-row{display:grid;grid-template-columns:minmax(220px,1fr) 220px;align-items:center;gap:18px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.booking-service-setting-name{min-width:0}.booking-service-duration-field{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:13px;color:var(--fg-3)}.booking-service-duration-field .input-suffix{width:150px}

.input-suffix{display:flex;align-items:center;gap:8px}.input-suffix .form-control{min-width:0}.input-suffix>span{font-size:.82rem;color:var(--fg-3);font-weight:700;white-space:nowrap}
.booking-employee-settings{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.booking-employee-setting-row{display:grid;grid-template-columns:minmax(220px,1fr) 170px 170px 170px;align-items:center;gap:18px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.booking-employee-identity{display:flex;align-items:center;gap:11px;min-width:0}.booking-employee-identity>div{display:flex;flex-direction:column;min-width:0}.booking-employee-identity strong{color:var(--fg-1)}.booking-employee-identity span{font-size:.76rem;color:var(--fg-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.booking-enabled-toggle,.booking-daily-limit-field{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.82rem;color:var(--fg-3);font-weight:700}.booking-daily-limit-field .form-control{width:92px;height:36px}
@media(max-width:760px){.booking-rule-grid{grid-template-columns:1fr}.booking-service-setting-row{grid-template-columns:1fr;gap:8px}.booking-service-duration-field{justify-content:space-between}.booking-employee-setting-row{grid-template-columns:1fr;gap:10px}.booking-enabled-toggle,.booking-daily-limit-field{justify-content:flex-start}.booking-daily-limit-field .form-control{margin-left:auto}.booking-enabled-toggle .toggle-switch{margin-left:auto}}

/* v1.25.0 – Terminbuchung: öffentliche Mail-/URL- und Reminder-Einstellungen */
.booking-rule-grid>.full{grid-column:1/-1}
@media(max-width:760px){.booking-rule-grid>.full{grid-column:auto}}

/* v1.26.0 – interne Terminnotizen */
.appointment-internal-note-box{margin-top:16px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft,#f7fafb)}
.appointment-internal-note-box textarea{margin-top:7px}
.appointment-note-actions{display:flex;justify-content:flex-end;margin-top:10px}
.appointment-note-indicator{flex:0 0 auto;display:inline-flex!important;align-items:center;justify-content:center;width:17px;height:17px;margin-left:auto;border-radius:50%;background:color-mix(in srgb,var(--person-color) 22%,white);color:color-mix(in srgb,var(--person-color) 78%,#102f39);overflow:visible!important}
.appointment-note-indicator svg{width:11px;height:11px;fill:currentColor;display:block}
.schedule-event-appointment .schedule-event-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-agenda-appointment-top .appointment-note-indicator{margin-left:auto}
.schedule-app.zoom-overview .appointment-note-indicator{width:11px;height:11px}
.schedule-app.zoom-overview .appointment-note-indicator svg{width:7px;height:7px}
@media(max-width:620px){.appointment-note-actions .btn{width:100%}}


/* v1.27.0 – Blocker, direkter Terminaufruf und hervorgehobene Notizindikatoren */
.appointment-note-indicator{background:#F6C945;color:#5A4300;box-shadow:0 0 0 1px rgba(90,67,0,.12)}
.appointment-blocker-hint{padding:12px 14px;border:1px solid #dce5e8;border-radius:10px;background:#f6f8f9;color:#52666e;font-size:.86rem;line-height:1.5}
.schedule-event-appointment.is-blocker,.schedule-agenda-appointment.is-blocker{background:#eef2f3;color:#40545c;border-left-color:#7b8f97}
.schedule-event-appointment.is-blocker:hover,.schedule-agenda-appointment.is-blocker:hover{background:#e8edef}
.schedule-agenda-appointment.is-blocker small{color:#6e8087}

/* v1.28.0 – Kalenderfilter, parallele Termine und vereinheitlichte Termin-Typografie */
.schedule-toolbar-title{min-width:0}
.schedule-filter-control{display:flex;align-items:center;gap:8px;min-width:min(280px,100%)}
.schedule-filter-control>span,.schedule-filter-control span{font-size:.8rem;font-weight:700;color:var(--fg-3);white-space:nowrap}
.schedule-filter-control .form-control{min-width:180px;height:38px}
.schedule-filter-indicator{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;padding:6px 10px;border-radius:999px;background:#eef7fa;color:#204755;font-size:.78rem;font-weight:600;width:fit-content;max-width:100%}
.schedule-filter-indicator strong{color:#153944}
.schedule-filter-clear{border:0;background:transparent;color:var(--teal-700,#15738c);font:inherit;font-weight:700;cursor:pointer;padding:0}
.schedule-filter-clear:hover{text-decoration:underline}

.schedule-event,.schedule-regular-off{font-size:10px;line-height:1.2}
.schedule-event-label{font-size:inherit;line-height:inherit}
.schedule-regular-off{font-size:10px}
.schedule-event strong,.schedule-agenda-appointment strong{font-size:.82rem}
.schedule-agenda-customer{font-size:.8rem!important;line-height:1.2}
.schedule-agenda-appointment small{font-size:.74rem!important;line-height:1.2}

.schedule-agenda-slot{overflow:visible}
.schedule-agenda-appointment.is-shared{padding:4px 5px}
.schedule-agenda-appointment.is-shared .schedule-agenda-customer,
.schedule-agenda-appointment.is-shared small{display:none}
.schedule-agenda-appointment.is-shared:hover,
.schedule-agenda-appointment.is-shared:focus-visible{left:3px!important;width:calc(100% - 6px)!important;z-index:40!important;box-shadow:0 8px 18px rgba(16,47,57,.18)}
.schedule-agenda-appointment.is-shared:hover .schedule-agenda-customer,
.schedule-agenda-appointment.is-shared:hover small,
.schedule-agenda-appointment.is-shared:focus-visible .schedule-agenda-customer,
.schedule-agenda-appointment.is-shared:focus-visible small{display:block}

@media(max-width:900px){
  .schedule-filter-control{min-width:0;width:100%}
  .schedule-filter-control .form-control{min-width:0;width:100%}
}
@media(max-width:620px){
  .schedule-filter-indicator{border-radius:12px;width:100%}
  .schedule-agenda-customer{font-size:.76rem!important}
  .schedule-agenda-appointment small{font-size:.7rem!important}
}

/* v1.29.0 – Kalender-Layering, größere Monatsansicht und gefächerte Paralleltermine */
.schedule-agenda-corner{z-index:96}
.schedule-agenda-day-head{z-index:95}
.schedule-agenda-appointment{z-index:5}

.schedule-app.view-month:not(.zoom-overview) .schedule-event,
.schedule-app.view-month:not(.zoom-overview) .schedule-regular-off{font-size:11px;line-height:1.25}
.schedule-app.view-month.zoom-overview .schedule-event{font-size:7.8px;line-height:1.1}
.schedule-app.view-month.zoom-overview .schedule-regular-off{font-size:7.6px;line-height:1.1}

.schedule-agenda-appointment.is-shared:hover,
.schedule-agenda-appointment.is-shared:focus-visible{left:inherit!important;width:inherit!important;box-shadow:0 8px 18px rgba(16,47,57,.18)}
.schedule-agenda-appointment.is-shared.is-fan-active{
  left:var(--fan-left)!important;
  right:var(--fan-right)!important;
  width:auto!important;
  z-index:40!important;
  padding:5px 7px;
  box-shadow:0 8px 18px rgba(16,47,57,.2);
}
.schedule-agenda-appointment.is-shared.is-fan-active .schedule-agenda-customer,
.schedule-agenda-appointment.is-shared.is-fan-active small{display:block}
.schedule-agenda-appointment.is-shared.is-fan-peer{
  width:28px!important;
  min-width:28px!important;
  z-index:42!important;
  padding:4px 3px;
  overflow:hidden;
}
.schedule-agenda-appointment.is-shared.is-fan-peer[style*="--fan-left"]{left:var(--fan-left)!important;right:auto!important}
.schedule-agenda-appointment.is-shared.is-fan-peer[style*="--fan-right"]{right:var(--fan-right)!important;left:auto!important}
.schedule-agenda-appointment.is-shared.is-fan-peer .schedule-agenda-appointment-top{justify-content:center;gap:0}
.schedule-agenda-appointment.is-shared.is-fan-peer .schedule-agenda-appointment-top strong,
.schedule-agenda-appointment.is-shared.is-fan-peer .schedule-agenda-customer,
.schedule-agenda-appointment.is-shared.is-fan-peer small,
.schedule-agenda-appointment.is-shared.is-fan-peer .appointment-note-indicator{display:none!important}
.schedule-agenda-appointment.is-shared.is-fan-peer .schedule-avatar{margin:0}

/* v1.30.0 – Karrieremodell, Anbieterkanäle, Kommentare und Dienstplan */
.career-tabs{display:flex;gap:6px;margin:-10px 0 24px;padding:5px;width:max-content;max-width:100%;border:1px solid var(--border);border-radius:12px;background:var(--surface,#fff)}
.career-tab{padding:8px 14px;border-radius:8px;color:var(--fg-3);font-size:.86rem;font-weight:700;text-decoration:none;white-space:nowrap}
.career-tab:hover{background:var(--bg);color:var(--fg-1)}
.career-tab.is-active{background:var(--teal);color:#fff}
.provider-channel-badges{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0 21px}
.provider-channel-badges span{padding:2px 6px;border-radius:999px;background:#edf5f6;color:#47616a;font-size:10px;font-weight:700}

.settings-provider-row-channels{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(180px,1.35fr) minmax(260px,1.4fr) auto auto;align-items:center;gap:10px}
.settings-provider-row-channels .provider-name-input,.settings-provider-row-channels .provider-note-input{height:38px;padding:7px 10px}
.provider-channel-picker{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.provider-channel-picker label{display:flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid var(--border);border-radius:8px;background:var(--bg);font-size:11px;font-weight:700;color:var(--fg-2);cursor:pointer}
.provider-channel-picker input{accent-color:var(--teal)}
.provider-active-check{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--fg-3);white-space:nowrap}
.submission-provider-sidebar-item{padding:8px 12px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm)}
.submission-provider-sidebar-item>div{font-weight:600;font-size:13px;color:var(--fg-1)}
.submission-provider-sidebar-item small{display:block;font-size:12px;color:var(--fg-4);margin-top:2px}

.comment-notified-users{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--fg-4);font-size:11px}
.comment-notified-users>span{padding-top:4px;font-weight:700}
.comment-notified-users>div{display:flex;gap:5px;flex-wrap:wrap}
.comment-notified-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 7px 2px 3px;border-radius:999px;background:var(--bg);border:1px solid var(--border);color:var(--fg-3);font-size:11px;font-weight:600}
.comment-notified-chip .avatar,.comment-notified-chip [class*="avatar-"]{flex:0 0 auto}
.task-comment-head{flex-wrap:wrap}
.task-comment-delete-form,.commission-comment-delete{display:inline;margin-left:auto}
.task-comment-action-link{border:0;background:transparent;color:var(--fg-4);font:inherit;font-size:11px;font-weight:700;cursor:pointer;padding:2px 4px}
.task-comment-action-link:hover{color:var(--danger);text-decoration:underline}
.task-comment-edit-box,.commission-comment-edit-box{margin-top:10px;border-top:1px solid var(--border);padding-top:8px}
.task-comment-edit-box>summary,.commission-comment-edit-box>summary{cursor:pointer;color:var(--teal);font-size:12px;font-weight:700;list-style:none;width:max-content}
.task-comment-edit-box>summary::-webkit-details-marker,.commission-comment-edit-box>summary::-webkit-details-marker{display:none}
.task-comment-edit-form,.commission-comment-edit-box form{margin-top:10px;padding:12px;border-radius:10px;background:var(--bg)}
.task-comment-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.notification-recipient-picker.compact{margin-bottom:10px}
.notification-recipient-picker.compact>legend{font-size:11px}
.commission-comment-content{min-width:0;flex:1}
.commission-comment-meta{flex-wrap:wrap}

.schedule-agenda-time,.schedule-agenda-slot{height:var(--schedule-agenda-row-height,40px)}
.schedule-agenda-height-control{min-width:170px}
#scheduleEntryModal .schedule-entry-actions [data-schedule-modal-close],#scheduleEntryModal .schedule-entry-actions button[type="submit"]{width:112px;min-width:112px}

@media(max-width:1100px){
  .settings-provider-row-channels{grid-template-columns:1fr 1.3fr;align-items:start}
  .settings-provider-row-channels .provider-channel-picker{grid-column:1/-1}
  .settings-provider-row-channels .provider-active-check{align-self:center}
}
@media(max-width:700px){
  .career-tabs{width:100%}.career-tab{flex:1;text-align:center}
  .settings-provider-row-channels{grid-template-columns:1fr!important}
  .settings-provider-row-channels .provider-channel-picker{grid-column:auto}
  .provider-channel-picker label{flex:1;min-width:105px;justify-content:center}
  .task-comment-edit-actions{flex-direction:column-reverse}.task-comment-edit-actions .btn{width:100%}
  #scheduleEntryModal .schedule-entry-actions [data-schedule-modal-close],#scheduleEntryModal .schedule-entry-actions button[type="submit"]{width:100%;min-width:0}
}


/* v1.31.0 – Navigationsfavoriten */
.nav-item-row{display:flex;align-items:center;gap:3px;min-width:0}
.nav-item-row>.nav-item{flex:1;min-width:0}
.nav-item-row>.nav-item>span:not(.nav-badge){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-favorite-button{flex:0 0 26px;width:26px;height:30px;display:flex;align-items:center;justify-content:center;border:0;border-radius:7px;background:transparent;color:rgba(255,255,255,.26);font-size:15px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s,background .15s,color .15s}
.nav-item-row:hover .nav-favorite-button,.nav-favorite-button:focus-visible,.nav-favorite-button.is-pinned{opacity:1}
.nav-favorite-button:hover,.nav-favorite-button:focus-visible{background:rgba(255,255,255,.08);color:#fff;outline:none}
.nav-favorite-button.is-pinned{color:#F6C945}
.nav-favorite-button:disabled{opacity:.35;cursor:wait}
.sidebar-nav-section-label{margin:8px 11px 3px;color:rgba(255,255,255,.34);font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.sidebar-nav-divider{height:1px;background:rgba(255,255,255,.09);margin:8px 7px 7px}
.nav-item-row.is-favorite .nav-item{color:rgba(255,255,255,.72)}
@media(max-width:900px){.nav-favorite-button{opacity:.72}}

/* v1.32.0 – persönliches Tagesdashboard und Startseiteneinstellungen */
.daily-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.daily-widget{padding:20px;min-width:0}.daily-widget-my-day{min-height:330px}
.daily-widget-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.daily-widget-head .section-label{margin:0 0 4px}.daily-widget-head h2{font:700 18px var(--font-display);margin:0;color:var(--fg-1)}.daily-widget-head>a{font-size:12px;font-weight:700;color:var(--teal);text-decoration:none;white-space:nowrap}.daily-widget-head>a:hover{text-decoration:underline}
.daily-widget-empty{min-height:110px;border:1px dashed var(--border);border-radius:12px;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;color:var(--fg-3)}.daily-widget-empty strong{color:var(--fg-1);font-size:14px}.daily-widget-empty span{font-size:12px;margin-top:4px;line-height:1.45}
.dashboard-day-list,.dashboard-compact-list,.dashboard-team-list,.dashboard-knowledge-list{display:flex;flex-direction:column;gap:8px}
.dashboard-day-item{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-left:4px solid var(--teal);border-radius:11px;background:var(--surface);color:inherit;text-decoration:none}.dashboard-day-item.is-blocker{border-left-color:#7b8f97;background:#f5f7f8}.dashboard-day-item.is-absence{border-left-color:#d2a238}.dashboard-day-time{font:800 15px var(--font-display);color:var(--fg-1)}.dashboard-day-time small{display:block;font:600 10px var(--font-body);color:var(--fg-4);margin-top:2px}.dashboard-day-item>div:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}.dashboard-day-item strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-day-item span{font-size:11px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-day-symbol{width:32px;height:32px;border-radius:10px;background:var(--bg);display:grid;place-items:center;font-size:16px}
.dashboard-compact-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border-radius:10px;background:var(--bg);border:1px solid transparent;color:inherit;text-decoration:none;min-width:0}.dashboard-compact-item:hover{border-color:var(--border);background:var(--surface)}.dashboard-compact-item.is-unread{background:#eefafa}.dashboard-compact-item>div{min-width:0;display:flex;flex-direction:column;gap:2px}.dashboard-compact-item strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-compact-item span{font-size:10.5px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-compact-item small{font-size:10px;color:var(--fg-4);white-space:nowrap}.dashboard-compact-item small.is-danger{color:var(--danger);font-weight:700}
.dashboard-team-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;background:var(--bg)}.dashboard-team-item>div:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}.dashboard-team-item strong{font-size:12.5px}.dashboard-team-item span{font-size:10.5px;color:var(--fg-3)}
.dashboard-knowledge-item{display:block;padding:10px 11px;border-radius:10px;background:var(--bg);color:inherit;text-decoration:none}.dashboard-knowledge-item:hover{background:color-mix(in srgb,var(--teal) 7%,var(--bg))}.dashboard-knowledge-meta{display:flex;align-items:center;gap:7px;margin-bottom:6px}.dashboard-knowledge-meta span{font-size:10px;color:var(--fg-4)}.dashboard-knowledge-item>strong{display:block;font-size:12.5px;margin-bottom:3px}.dashboard-knowledge-item p{margin:0;color:var(--fg-3);font-size:10.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dashboard-approval-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-approval-summary a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:105px;border:1px solid var(--border);border-radius:12px;background:var(--bg);text-decoration:none;color:inherit}.dashboard-approval-summary a:hover{border-color:var(--teal)}.dashboard-approval-summary strong{font:800 28px var(--font-display);color:var(--teal)}.dashboard-approval-summary span{font-size:11px;color:var(--fg-3);font-weight:700}
.dashboard-empty-card{text-align:center;padding:42px}.dashboard-empty-card h2{font:700 22px var(--font-display);margin:0 0 7px}.dashboard-empty-card p{color:var(--fg-3);margin:0 0 18px}
.profile-start-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:18px;align-items:start;max-width:1080px}.profile-start-settings-card{padding:22px}.profile-settings-intro{font-size:13px;color:var(--fg-3);line-height:1.55;margin:5px 0 16px}.profile-start-preview{position:sticky;top:18px}.profile-start-preview h3{font:700 18px var(--font-display);margin:5px 0 9px}.profile-start-preview p{font-size:13px;color:var(--fg-3);line-height:1.6;margin:0 0 16px}
.dashboard-preference-list{display:flex;flex-direction:column;gap:8px}.dashboard-preference-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.dashboard-preference-main{display:flex;align-items:center;gap:11px;cursor:pointer;min-width:0;flex:1}.dashboard-preference-main>input{position:absolute;opacity:0;pointer-events:none}.dashboard-preference-check{width:20px;height:20px;flex:0 0 20px;border:2px solid #b9c7cc;border-radius:6px;position:relative;background:#fff}.dashboard-preference-main>input:checked+.dashboard-preference-check{background:var(--teal);border-color:var(--teal)}.dashboard-preference-main>input:checked+.dashboard-preference-check:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:900}.dashboard-preference-main>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}.dashboard-preference-main strong{font-size:13px;color:var(--fg-1)}.dashboard-preference-main small{font-size:10.5px;color:var(--fg-4);line-height:1.35}.dashboard-preference-actions{display:flex;gap:5px;flex:0 0 auto}.dashboard-preference-actions .btn{min-width:34px;padding-left:8px;padding-right:8px}
@media(max-width:980px){.daily-dashboard-grid{grid-template-columns:1fr}.profile-start-grid{grid-template-columns:1fr}.profile-start-preview{position:static}}
@media(max-width:620px){.dashboard-page-header{gap:12px}.dashboard-page-header .btn{width:100%}.daily-widget-head{flex-direction:column;gap:5px}.daily-widget-head>a{white-space:normal}.dashboard-day-item{grid-template-columns:62px minmax(0,1fr)}.dashboard-preference-row{align-items:flex-start}.dashboard-preference-main small{display:none}}

/* v1.33.0 – Dashboard-Lesestatus und Masonry-Layout */
.daily-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-flow:row dense;
  grid-auto-rows:6px;
  column-gap:18px;
  row-gap:18px;
  align-items:start;
}
.daily-widget{align-self:start}
.daily-widget-my-day{min-height:0}
.daily-widget-empty-compact{min-height:82px}
.dashboard-action-row,.dashboard-knowledge-action-row{position:relative;border-radius:10px;background:var(--bg);border:1px solid transparent;overflow:hidden}
.dashboard-action-row:hover,.dashboard-knowledge-action-row:hover{border-color:var(--border);background:var(--surface)}
.dashboard-action-row.is-unread,.dashboard-knowledge-action-row.is-unread{background:#eefafa}
.dashboard-action-main{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 48px 10px 11px;color:inherit;text-decoration:none;min-width:0}
.dashboard-action-main>div{min-width:0;display:flex;flex-direction:column;gap:2px}.dashboard-action-main strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-action-main span{font-size:10.5px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-action-main small{font-size:10px;color:var(--fg-4);white-space:nowrap}
.dashboard-inline-action{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:2}
.dashboard-inline-action button{width:30px;height:30px;border-radius:9px;border:1px solid color-mix(in srgb,var(--teal) 30%,var(--border));background:#fff;color:var(--teal);font-weight:900;cursor:pointer;display:grid;place-items:center}
.dashboard-inline-action button:hover{background:var(--teal);color:#fff;border-color:var(--teal)}
.dashboard-knowledge-action-row .dashboard-knowledge-item{padding-right:48px;background:transparent}
.dashboard-knowledge-read-action{top:16px;transform:none}
.dashboard-widget-action{display:flex;justify-content:flex-end;margin-top:10px}
.dashboard-more-link{display:inline-block;margin-top:9px;font-size:11px;font-weight:700;color:var(--teal);text-decoration:none}.dashboard-more-link:hover{text-decoration:underline}
.dashboard-read-group{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}
.dashboard-read-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:11.5px;font-weight:700;color:var(--fg-3);padding:3px 1px}.dashboard-read-group>summary::-webkit-details-marker{display:none}.dashboard-read-group>summary:after{content:'⌄';font-size:15px;color:var(--fg-4);margin-left:auto}.dashboard-read-group[open]>summary:after{transform:rotate(180deg)}
.dashboard-read-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--bg);color:var(--fg-3);font-size:10px}
.dashboard-read-list{margin-top:9px;opacity:.82}
@media(max-width:980px){.daily-dashboard-grid{display:flex;flex-direction:column;gap:18px}.daily-dashboard-grid>.daily-widget{width:100%;grid-row-end:auto!important}}

/* v1.34.0 – Dashboard-Leermodule und globale Akzentfarben */
.dashboard-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.dashboard-empty-toggle-form{margin:0}
.dashboard-empty-toggle{display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid var(--border-2);border-radius:10px;background:var(--surface);color:var(--fg-2);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.dashboard-empty-toggle>input{position:absolute;opacity:0;pointer-events:none}
.dashboard-toggle-track{position:relative;width:34px;height:20px;border-radius:999px;background:#c8d2d6;transition:.16s;flex:0 0 auto}
.dashboard-toggle-track>span{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(16,47,57,.18);transition:.16s}
.dashboard-empty-toggle>input:checked+.dashboard-toggle-track{background:var(--teal)}
.dashboard-empty-toggle>input:checked+.dashboard-toggle-track>span{transform:translateX(14px)}
.dashboard-empty-toggle:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 10%,transparent)}
.dashboard-all-clear{display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid var(--teal-border);border-radius:14px;background:var(--teal-100);max-width:720px}
.dashboard-all-clear>span{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:var(--teal);color:#fff;font-weight:900}
.dashboard-all-clear strong{display:block;color:var(--fg-1);font-size:14px}.dashboard-all-clear p{margin:2px 0 0;color:var(--fg-3);font-size:12px;line-height:1.5}
.appearance-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:900px}
.appearance-color-card{padding:22px}.appearance-color-card h3{font:700 18px var(--font-display);margin:5px 0 7px;color:var(--fg-1)}.appearance-color-card>p{font-size:13px;color:var(--fg-3);line-height:1.55;margin:0 0 18px}
.appearance-color-picker{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center}.appearance-color-picker input[type="color"]{width:64px;height:52px;padding:3px;border:1px solid var(--border-2);border-radius:10px;background:#fff;cursor:pointer}.appearance-color-picker input[type="text"]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}
.appearance-color-preview{margin-top:16px;padding:13px;border-radius:11px;background:var(--bg);display:flex;align-items:center;gap:10px}.appearance-color-preview i{width:26px;height:26px;border-radius:8px;background:var(--preview-color);box-shadow:0 0 0 1px color-mix(in srgb,var(--preview-color) 25%,transparent)}.appearance-color-preview span{font-size:12px;color:var(--fg-3)}
@media(max-width:760px){.dashboard-header-actions{width:100%;justify-content:stretch}.dashboard-empty-toggle-form,.dashboard-empty-toggle,.dashboard-header-actions>.btn{width:100%}.dashboard-empty-toggle{justify-content:space-between}.appearance-color-grid{grid-template-columns:1fr}}
