*{box-sizing:border-box;margin:0;padding:0}
html{
  background:#f7f8fb;
  color-scheme:light;
}
html.theme-dark{
  background:#0a0a0a;
  color-scheme:dark;
}
html,body{
  width:100%;
  max-width:100%;
  min-height:100%;
  min-height:100dvh;
  overflow-x:hidden;
  overscroll-behavior-x:none;
}
html.m-detail-open,
html.m-detail-open body{
  overflow:hidden;
  overscroll-behavior:none;
}
html.m-detail-open .m-main,
html.m-detail-open .m-tabbar{
  touch-action:none;
}
body{
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:#f2f2f7;
  color:#111;
  position:relative;
  touch-action:pan-y;
  -webkit-tap-highlight-color:transparent
}
.theme-dark body{background:linear-gradient(135deg,#0a0a0a 0%,#121212 100%);color:#e5e5ea}
.m-desktop-topbar,
.m-desktop-sidebar,
.m-desktop-timeline{display:none}
.m-header,
.m-main,
.m-tabbar,
.m-sheet,
.m-sheet-backdrop,
.m-detail-sheet,
#mOrderModal,
#mOrderBackdrop{
  max-width:100vw;
  overflow-x:hidden;
  overscroll-behavior-x:contain;
}
.m-header *,
.m-main *,
.m-tabbar *,
.m-sheet *,
.m-detail-sheet *,
#mOrderModal *{min-width:0}
.m-svg-icon{width:17px;height:17px;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:0 0 auto}

/* ===== App Shell ===== */
.m-hidden{display:none}
.m-header{
  position:sticky;
  top:0;
  z-index:20;
  padding:10px 14px 8px;
  background:rgba(242,242,247,0.92);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid rgba(0,0,0,0.06);
  display:block;
}
.theme-dark .m-header{
  background:rgba(18,18,18,0.72);
  border-bottom-color:rgba(255,255,255,0.08);
}

.m-header-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
/* Title/Kicker removed on purpose to save vertical space */
.m-kicker{font-size:12px;letter-spacing:.12em;color:#8e8e93;font-weight:800}
.theme-dark .m-kicker{color:#a1a1a6}
.m-header-title{display:none}
.m-title{font-size:22px;font-weight:900;letter-spacing:-0.03em;line-height:1.05}
.theme-dark .m-title{color:#f2f2f7}

.m-chip-btn{
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  font-weight:700;
  font-size:14px;
  color:#111;
}
.m-chip-btn:active{transform:scale(0.98)}
.m-assistant-btn{background:linear-gradient(135deg,#007aff,#5856d6);border-color:transparent;color:#fff;box-shadow:0 8px 18px rgba(88,86,214,.22)}
.theme-dark .m-assistant-btn{background:linear-gradient(135deg,#0a84ff,#5e5ce6);border-color:transparent;color:#fff}
.theme-dark .m-chip-btn{background:rgba(28,28,30,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}

.m-icon-btn{
  width:38px;height:38px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  color:#111;
  font-weight:900;
}
.m-icon-btn:active{transform:scale(0.98)}
.theme-dark .m-icon-btn{background:rgba(28,28,30,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}

.m-user-pill{
  display:flex;align-items:center;gap:10px;
  min-height:42px;
  padding:8px 10px 8px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  color:#111;
}
.m-user-pill:active{transform:scale(0.98)}
.theme-dark .m-user-pill{background:rgba(28,28,30,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-user-name{font-weight:800;font-size:14px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-user-avatar{
  width:34px;height:34px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid rgba(0,0,0,0.08);
  font-weight:900;font-size:12px;letter-spacing:.02em;
}
.theme-dark .m-user-avatar{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.10);color:#e5e5ea}

.m-kpi-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:10px;
}
.m-kpi{
  text-align:left;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,0.06);
  background:rgba(255,255,255,0.92);
  box-shadow:0 8px 24px rgba(0,0,0,0.04);
}
.m-kpi:active{transform:scale(0.99)}
.theme-dark .m-kpi{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.08);box-shadow:none}
.m-kpi-label{font-size:12px;color:#6e6e73;font-weight:800;letter-spacing:.02em}
.theme-dark .m-kpi-label{color:#a1a1a6}
.m-kpi-value{font-size:26px;font-weight:1000;letter-spacing:-0.02em;margin-top:6px}

/* Mein Tag */
.m-day-header{display:grid;grid-template-columns:42px minmax(0,1fr) 34px;gap:10px;align-items:start;margin:2px 0 14px;min-width:0}
.m-day-menu,
.m-day-ok{border:none;background:transparent;color:#6e6e73;font-weight:900;min-height:30px}
.m-day-menu{min-width:42px;font-size:24px;line-height:1}
.m-day-ok{color:#0a84ff;font-size:12px;border-radius:999px;background:rgba(10,132,255,.08)}
.m-day-brand{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.m-day-logo{min-height:30px;max-width:min(220px,72vw);display:flex;align-items:center;overflow:hidden}
.m-day-logo img{display:block;width:auto;max-width:100%;object-fit:contain;object-position:left center}
.m-day-logo.fallback-text{line-height:1;color:#111}
.m-day-logo.fallback-text .line1{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.m-day-logo.fallback-text .line2{font-size:18px;font-weight:900;letter-spacing:-.03em}
.theme-dark .m-day-logo.fallback-text{color:#f5f5f7}
.m-day-title{font-size:25px;line-height:1.05;font-weight:1000;letter-spacing:-.04em;color:#111}
.theme-dark .m-day-title{color:#f5f5f7}
.m-day-date{font-size:12px;color:#6e6e73;font-weight:750;margin-top:4px}
.theme-dark .m-day-date{color:#a1a1a6}
.m-day-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:rgba(229,229,234,.72);margin-bottom:12px;max-width:100%}
.theme-dark .m-day-seg{background:rgba(44,44,46,.72)}
.m-day-seg-btn{border:none;border-radius:11px;background:transparent;color:#6e6e73;font-size:12px;font-weight:900;padding:9px 8px;white-space:nowrap;line-height:1}
.m-day-seg-btn[aria-selected="true"]{background:#fff;color:#0a84ff;box-shadow:0 8px 18px rgba(0,0,0,.07)}
.theme-dark .m-day-seg-btn[aria-selected="true"]{background:rgba(22,22,24,.96);color:#64d2ff;box-shadow:none}
.m-tech-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}
.m-tech-shortcut{min-height:38px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:#fff;color:#1d1d1f;font-weight:1000;font-size:12px;box-shadow:0 8px 20px rgba(0,0,0,.04)}
.m-tech-shortcut.olli{background:#fff5cc;border-color:#ffe58f}
.m-tech-shortcut.sergey{background:#eaffea;border-color:#b7f5c0}
.m-tech-shortcut.alex{background:#ffe6f1;border-color:#ffc2d8}
.m-tech-shortcut.unassigned{background:rgba(255,149,0,.1);border-color:rgba(255,149,0,.3);color:#ff9500}
.m-tech-shortcut.active{outline:3px solid rgba(10,132,255,.22);box-shadow:0 10px 24px rgba(10,132,255,.16);transform:translateY(-1px)}
.theme-dark .m-tech-shortcut{color:#f5f5f7;box-shadow:none}
.theme-dark .m-tech-shortcut.olli{background:rgba(255,245,204,.18);border-color:rgba(255,229,143,.35)}
.theme-dark .m-tech-shortcut.sergey{background:rgba(52,199,89,.16);border-color:rgba(183,245,192,.28)}
.theme-dark .m-tech-shortcut.alex{background:rgba(255,45,85,.16);border-color:rgba(255,194,216,.30)}
.theme-dark .m-tech-shortcut.unassigned{background:rgba(255,149,0,.18);border-color:rgba(255,149,0,.35);color:#ffb454}
.m-day-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.m-day-stat{min-height:70px;border-radius:16px;background:rgba(255,255,255,.96);border:1px solid rgba(0,0,0,.06);box-shadow:0 8px 22px rgba(0,0,0,.04);padding:10px 10px;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:6px;align-content:center;min-width:0}
.theme-dark .m-day-stat{background:rgba(22,22,24,.92);border-color:rgba(255,255,255,.08);box-shadow:none}
.m-day-stat-ico{font-size:13px;color:#0a84ff;grid-row:1 / span 2}
.m-day-stat-ico.ok{color:#30d158}.m-day-stat-ico.time{color:#ff3b30}
.m-day-stat strong{font-size:18px;line-height:1;font-weight:1000;color:#111;white-space:nowrap}
.theme-dark .m-day-stat strong{color:#f5f5f7}
.m-day-stat span:last-child{font-size:11px;color:#6e6e73;font-weight:800;line-height:1.15;margin-top:5px}
.theme-dark .m-day-stat span:last-child{color:#a1a1a6}
#viewHome .m-section-title{font-size:15px;letter-spacing:-.01em}
.m-day-list{gap:12px}
.m-day-card{position:relative;border-radius:18px;border:1px solid rgba(0,122,255,.16);background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.055);overflow:hidden}
.theme-dark .m-day-card{background:rgba(22,22,24,.94);border-color:rgba(255,255,255,.10);box-shadow:none}
.m-day-card.next{background:linear-gradient(180deg,rgba(235,245,255,.96),#fff);border-color:rgba(10,132,255,.28)}
.theme-dark .m-day-card.next{background:linear-gradient(180deg,rgba(10,132,255,.16),rgba(22,22,24,.94))}
.m-day-card,
.m-day-task-box,
.m-day-extra{min-width:0;max-width:100%;overflow-x:hidden}
.m-day-card-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;padding:12px 124px 8px 12px;align-items:start;min-width:0}
.m-day-tooth{width:42px;height:42px;border-radius:13px;background:rgba(0,0,0,.035);display:flex;align-items:center;justify-content:center;color:#8e8e93;font-size:22px}
.theme-dark .m-day-tooth{background:rgba(255,255,255,.08)}
.m-day-next-label{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#0a84ff;font-weight:1000;margin-bottom:4px}
.m-day-time-row{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#6e6e73;font-size:12px;font-weight:850;margin-bottom:3px}
.m-day-praxis{font-size:13px;font-weight:1000;color:#111;line-height:1.15}
.theme-dark .m-day-praxis{color:#f5f5f7}
.m-day-patient{font-size:13px;font-weight:850;color:#111;margin-top:2px;overflow-wrap:anywhere}
.theme-dark .m-day-patient{color:#e5e5ea}
.m-day-status-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#6e6e73;font-size:11px;font-weight:800;margin-top:6px;min-width:0}
.m-day-share{margin-left:auto;min-width:0;max-width:100%}
.m-day-units-metric{display:inline-flex;align-items:baseline;gap:4px;color:#111827;line-height:1}
.m-day-units-metric strong{font-size:24px;font-weight:1000;letter-spacing:-.04em}
.m-day-units-metric em{font-style:normal;font-size:12px;font-weight:1000;color:#6e6e73}
.theme-dark .m-day-units-metric{color:#f5f5f7}
.theme-dark .m-day-units-metric em{color:#a1a1a6}
.m-appointment-chip{display:inline-flex;width:max-content;max-width:170px;margin:2px 0 4px;padding:3px 8px;border-radius:999px;background:rgba(10,132,255,.10);border:1px solid rgba(10,132,255,.16);color:#0a84ff;font-size:10px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.theme-dark .m-appointment-chip{background:rgba(100,210,255,.14);border-color:rgba(100,210,255,.20);color:#64d2ff}
.m-day-dentist-corner{position:absolute;top:10px;right:12px;z-index:2;max-width:118px;padding:5px 8px;border-radius:12px;background:rgba(243,244,246,.96);border:1px solid rgba(17,24,39,.08);color:#111827;font-size:11px;font-weight:1000;line-height:1.15;text-align:right;overflow:hidden;display:flex;flex-direction:column;align-items:flex-end;gap:4px;box-shadow:0 4px 12px rgba(15,23,42,.06)}
.m-day-dentist-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.m-day-dentist-techs{display:flex;justify-content:flex-end;gap:3px;flex-wrap:wrap;max-width:100%}
.m-day-dentist-techs .m-tech-badge{font-size:9px;padding:2px 6px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.theme-dark .m-day-dentist-corner{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#f5f5f7}
.m-day-chevron{font-size:26px;color:#c7c7cc;font-weight:300}
.m-day-task-box{margin:0 12px 12px;padding:10px;border-radius:14px;background:rgba(255,255,255,.86);border:1px solid rgba(0,0,0,.05)}
.theme-dark .m-day-task-box{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08)}
.m-day-task{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750;color:#111;margin:7px 0;min-width:0;overflow-wrap:anywhere}
.theme-dark .m-day-task{color:#f5f5f7}
.m-day-task input{width:15px;height:15px;accent-color:#2563eb}
.m-day-extra{padding:4px 18px 16px 64px;color:#374151;font-size:12px;font-weight:850;line-height:1.38}
.m-day-extra strong{display:block;color:#6e6e73;font-size:11px;margin-bottom:4px}
.m-day-extra div{overflow-wrap:anywhere}
.theme-dark .m-day-extra,.theme-dark .m-day-extra strong{color:#c7c7cc}
.m-day-detail-btn{display:none}
.m-day-empty{padding:16px;border-radius:18px;background:#fff;color:#6e6e73;font-weight:850;border:1px solid rgba(0,0,0,.06)}
.theme-dark .m-day-empty{background:rgba(22,22,24,.92);border-color:rgba(255,255,255,.08);color:#a1a1a6}
.m-day-toolbar{display:none}
.m-day-view-toggle{display:none}

/* Main content (scroll) */
.m-main{
  padding:12px 14px calc(120px + env(safe-area-inset-bottom));
  width:100%;
  max-width:100vw;
  min-width:0;
  overflow-x:hidden;
}
.m-view{min-height:40vh;min-width:0;overflow-x:hidden}
.m-time-head{align-items:flex-start}
.m-time-subtitle{font-size:13px;color:#6e6e73;margin-top:2px}
.m-time-feedback{min-height:0;margin:0 0 10px;color:#1d4ed8;font-size:13px;font-weight:700}
.m-time-feedback:empty{display:none}
.m-time-feedback.is-error{color:#b42318}
.m-time-status-card,.m-time-panel{background:rgba(255,255,255,.94);border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:16px;box-shadow:0 6px 18px rgba(0,0,0,.05);margin-bottom:12px}
.theme-dark .m-time-status-card,.theme-dark .m-time-panel{background:rgba(28,28,30,.94);border-color:rgba(255,255,255,.10);box-shadow:none}
.m-time-status-row{display:flex;align-items:center;gap:9px;font-size:17px}
.m-time-status-dot{width:10px;height:10px;border-radius:50%;background:#8e8e93;flex:0 0 auto}
.m-time-status-dot.is-on{background:#34c759;box-shadow:0 0 0 4px rgba(52,199,89,.14)}
.m-time-status-dot.is-away{background:#ff9500;box-shadow:0 0 0 4px rgba(255,149,0,.14)}
.m-time-today{margin-bottom:14px;color:#8e8e93;font-size:10px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}
.m-time-worked{font-size:46px;font-weight:950;line-height:1;letter-spacing:-.045em;margin:12px 0 16px}
.m-time-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#6e6e73;font-size:11px}
.theme-dark .m-time-progress-copy{color:#a1a1a6}
.m-time-progress{height:6px;margin:8px 0 18px;overflow:hidden;border-radius:999px;background:#e5e7eb}
.theme-dark .m-time-progress{background:#3a3a3c}
.m-time-progress span{display:block;width:0;height:100%;border-radius:inherit;background:#4a9f68;transition:width .25s ease}
.m-time-actions{display:block}.m-time-actions .m-btn{width:100%;min-height:54px;border-radius:15px;font-size:16px}
.m-time-actions .m-btn.m-primary{border-color:#c45112;background:#c45112;color:#fff}
.m-time-actions #mTimeClockOut{border-color:#b33a3a;background:#b33a3a;color:#fff}
.m-time-actions .m-btn:disabled{opacity:.45;cursor:not-allowed}
.m-time-quick-actions{display:grid;gap:8px;margin-bottom:12px}
.m-time-quick-card{display:grid;width:100%;min-height:62px;grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:12px;padding:10px 14px;border:1px solid rgba(0,0,0,.08);border-radius:17px;background:rgba(255,255,255,.94);color:#1d1d1f;text-align:left;text-decoration:none;box-shadow:0 4px 14px rgba(15,23,42,.035);font:inherit;-webkit-appearance:none;appearance:none}
.m-time-quick-card>span{display:flex;grid-row:1 / 3;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;background:#fff1e8;color:#b54708;font-size:20px;font-weight:900}
.m-time-quick-card>strong{align-self:end;font-size:14px;line-height:1.2}
.m-time-quick-card>small{align-self:start;margin-top:2px;color:#6e6e73;font-size:11px;line-height:1.2}
.m-time-quick-card>i{grid-column:3;grid-row:1 / 3;color:#8e8e93;font-size:25px;font-style:normal;font-weight:400}
.theme-dark .m-time-quick-card{border-color:rgba(255,255,255,.1);background:rgba(28,28,30,.94);color:#f5f5f7;box-shadow:none}
.theme-dark .m-time-quick-card>span{background:rgba(196,81,18,.18);color:#ff9f66}
.theme-dark .m-time-quick-card>small{color:#a1a1a6}
.m-time-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.m-time-summary-card{background:rgba(0,122,255,.07);border:1px solid rgba(0,122,255,.14);border-radius:16px;padding:13px}
.theme-dark .m-time-summary-card{background:rgba(10,132,255,.14);border-color:rgba(100,210,255,.18)}
.m-time-summary-card span{display:block;font-size:12px;color:#6e6e73;margin-bottom:5px}.theme-dark .m-time-summary-card span{color:#a1a1a6}
.m-time-summary-card strong{font-size:19px}
.m-time-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.m-time-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:#6e6e73}.m-time-form input,.m-time-form textarea{font:inherit;font-size:15px;color:inherit;background:transparent;border:1px solid rgba(0,0,0,.14);border-radius:10px;padding:10px;min-width:0}.theme-dark .m-time-form input,.theme-dark .m-time-form textarea{border-color:rgba(255,255,255,.16)}
.m-time-form-wide{grid-column:1 / -1}.m-time-absence-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.m-time-absence-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(0,0,0,.04);font-size:14px}.theme-dark .m-time-absence-row{background:rgba(255,255,255,.07)}.m-time-absence-meta{color:#6e6e73;font-size:12px}.theme-dark .m-time-absence-meta{color:#a1a1a6}.m-time-absence-status{font-size:11px;font-weight:900;border-radius:999px;padding:4px 7px;background:rgba(52,199,89,.14);color:#137333}.m-time-absence-status.pending{background:rgba(255,149,0,.16);color:#a15c00}.m-time-empty{color:#6e6e73;font-size:13px;padding:6px 0}.theme-dark .m-time-empty{color:#a1a1a6}
.m-home-time-card{margin:0 0 14px;padding:13px;border:1px solid rgba(0,122,255,.15);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(0,122,255,.055));box-shadow:0 5px 16px rgba(0,0,0,.045)}
.theme-dark .m-home-time-card{border-color:rgba(100,210,255,.18);background:linear-gradient(145deg,rgba(28,28,30,.98),rgba(10,132,255,.12));box-shadow:none}
.m-home-time-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.m-home-time-head>div{display:grid;gap:2px;min-width:0}.m-home-time-eyebrow{font-size:10px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:#6e6e73}.theme-dark .m-home-time-eyebrow{color:#a1a1a6}.m-home-time-head strong{font-size:16px}.m-home-time-link{border:0;border-radius:999px;background:rgba(0,122,255,.10);color:#007aff;font:inherit;font-size:11px;font-weight:950;padding:7px 10px;white-space:nowrap}.theme-dark .m-home-time-link{background:rgba(10,132,255,.18);color:#64d2ff}
.m-home-time-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:11px 0;border-top:1px solid rgba(0,0,0,.07);border-bottom:1px solid rgba(0,0,0,.07)}.theme-dark .m-home-time-metrics{border-color:rgba(255,255,255,.10)}.m-home-time-metrics>div{display:grid;gap:2px;padding:9px 6px;text-align:center}.m-home-time-metrics>div+div{border-left:1px solid rgba(0,0,0,.07)}.theme-dark .m-home-time-metrics>div+div{border-color:rgba(255,255,255,.10)}.m-home-time-metrics span{font-size:10px;font-weight:800;color:#6e6e73}.theme-dark .m-home-time-metrics span{color:#a1a1a6}.m-home-time-metrics strong{font-size:14px;white-space:nowrap}
.m-home-time-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.m-home-time-actions .m-btn{min-height:42px}.m-home-time-actions .m-btn:disabled{opacity:.45;cursor:not-allowed}.m-home-time-card .m-time-feedback{margin:9px 2px 0}
.m-time-team-hint{margin:-2px 0 10px;color:#6e6e73;font-size:12px;line-height:1.4}.theme-dark .m-time-team-hint{color:#a1a1a6}.m-time-team-head{margin-bottom:4px}.m-time-team-person{display:flex;align-items:center;gap:8px}.m-time-team-dot{width:9px;height:9px;border-radius:999px;background:var(--team-color,#64748b);flex:0 0 auto}.m-time-team-balance{display:grid;gap:2px;text-align:right}.m-time-team-balance strong{font-size:13px}.m-time-team-balance span{font-size:11px;color:#6e6e73}.theme-dark .m-time-team-balance span{color:#a1a1a6}
.m-time-year-nav{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;gap:8px;margin:4px 0 14px}.m-time-year-nav strong{text-align:center;font-size:30px;line-height:1;color:#ff3b30;letter-spacing:-.04em}.m-time-year-nav .m-icon-btn{width:36px;height:36px;font-size:24px}.m-time-year-nav .m-icon-btn:disabled{opacity:.35}
.m-time-year-calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 8px}.m-time-year-month{min-width:0}.m-time-year-month h3{margin:0 0 7px;font-size:14px;line-height:1;font-weight:950;letter-spacing:-.02em}.m-time-year-month h3.is-current{color:#ff3b30}.m-time-year-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px 1px;align-items:center}.m-time-year-weekday{font-size:6.5px;line-height:1;text-align:center;font-weight:900;color:#8e8e93}.m-time-year-day{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;aspect-ratio:1;border:0;padding:0;border-radius:999px;background:transparent;font:inherit;font-size:8px;line-height:1;font-weight:800;color:#1d1d1f;-webkit-appearance:none;appearance:none}.m-time-year-day.is-empty{visibility:hidden}.m-time-year-day.is-weekend{color:#8e8e93}.m-time-year-day.is-vacation{cursor:pointer;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.18);box-shadow:0 0 0 1px rgba(255,255,255,.85)}.m-time-year-day.is-vacation:active{transform:scale(.9)}.m-time-year-day.is-overlap{box-shadow:0 0 0 1px #fff,0 0 0 2.5px rgba(29,29,31,.72)}.m-time-year-overlap-count{position:absolute;z-index:2;top:-5px;right:-6px;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border:1.5px solid #fff;border-radius:999px;background:#1d1d1f;color:#fff;text-shadow:none;font-size:7px;line-height:1;font-weight:950}.m-time-year-day.is-today{outline:2px solid #ff3b30;outline-offset:1px;font-weight:950}.m-time-year-day.is-today.is-vacation{outline-color:#ff3b30}.m-time-year-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:12px;border-top:1px solid rgba(0,0,0,.08)}.m-time-year-filter{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:6px 10px;border:1px solid rgba(0,0,0,.10);border-radius:999px;background:#fff;color:#636366;font-size:11px;font-weight:850}.m-time-year-filter i{width:9px;height:9px;border-radius:999px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}.m-time-year-filter.is-active{border-color:rgba(0,122,255,.38);background:#eaf4ff;color:#0066cc;box-shadow:inset 0 0 0 1px rgba(0,122,255,.08)}.m-time-year-filter.is-all{padding-inline:13px}.m-time-year-empty{margin:11px 0 0;text-align:center}.theme-dark .m-time-year-month h3,.theme-dark .m-time-year-day{color:#f5f5f7}.theme-dark .m-time-year-weekday,.theme-dark .m-time-year-day.is-weekend{color:#8e8e93}.theme-dark .m-time-year-legend{border-color:rgba(255,255,255,.10)}.theme-dark .m-time-year-filter{background:#242426;border-color:rgba(255,255,255,.12);color:#c7c7cc}.theme-dark .m-time-year-filter.is-active{background:#102a43;border-color:#0a84ff;color:#64b5ff}
.m-time-day-backdrop{position:fixed;inset:0;z-index:70;display:none;background:rgba(15,23,42,.44);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}.m-time-day-dialog{position:fixed;z-index:71;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));display:none;max-height:min(72vh,520px);overflow-y:auto;padding:18px;border:1px solid rgba(0,0,0,.08);border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28)}.m-time-day-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.m-time-day-eyebrow{display:block;margin-bottom:4px;color:#007aff;font-size:11px;line-height:1.2;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.m-time-day-dialog h2{margin:0;font-size:22px;line-height:1.15;letter-spacing:-.03em}.m-time-day-list{display:flex;flex-direction:column;gap:8px;list-style:none}.m-time-day-person{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:16px;background:#f2f2f7}.m-time-day-person-dot{flex:0 0 auto;width:14px;height:14px;border-radius:999px;box-shadow:0 0 0 3px #fff,0 0 0 4px rgba(0,0,0,.08)}.m-time-day-person div{display:flex;min-width:0;flex-direction:column;gap:2px}.m-time-day-person strong{font-size:15px;line-height:1.2}.m-time-day-person span{color:#636366;font-size:12px;line-height:1.3}.theme-dark .m-time-day-dialog{border-color:rgba(255,255,255,.12);background:#1c1c1e;color:#f5f5f7}.theme-dark .m-time-day-person{background:#2c2c2e}.theme-dark .m-time-day-person span{color:#aeaeb2}.theme-dark .m-time-day-person-dot{box-shadow:0 0 0 3px #1c1c1e,0 0 0 4px rgba(255,255,255,.14)}
@media (min-width:700px){.m-time-year-calendar{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 14px}.m-time-year-day{font-size:10px}.m-time-year-weekday{font-size:8px}.m-time-day-dialog{left:50%;right:auto;bottom:auto;top:50%;width:min(440px,calc(100vw - 32px));transform:translate(-50%,-50%)}}
@media (max-width:600px){
  .m-tech-shortcuts{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin-bottom:10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .m-tech-shortcuts::-webkit-scrollbar{display:none}
  .m-tech-shortcut{flex:0 0 auto;min-width:126px}
  .m-day-stats{gap:6px;margin-bottom:12px}
  .m-day-stat{min-height:64px;padding:8px 7px}
}

/* Mobile Tagesansicht: nur die Informationen, die unterwegs direkt gebraucht werden. */
html:not(.m-desktop-wide) .m-header{padding:calc(8px + env(safe-area-inset-top)) 12px 8px}
html:not(.m-desktop-wide) .m-header-top{gap:8px}
html:not(.m-desktop-wide) .m-chip-btn{min-height:36px;padding:7px 11px;font-size:13px}
html:not(.m-desktop-wide) .m-user-pill{min-height:38px;padding:6px 7px 6px 10px;border-radius:13px}
html:not(.m-desktop-wide) .m-user-avatar{width:30px;height:30px;border-radius:10px}
html:not(.m-desktop-wide) .m-user-name{max-width:112px;font-size:13px}
html:not(.m-desktop-wide) .m-main{padding-top:10px}
html:not(.m-desktop-wide) .m-day-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 2px 12px}
html:not(.m-desktop-wide) .m-day-title{font-size:24px;letter-spacing:-.035em}
html:not(.m-desktop-wide) .m-day-date{font-size:12px;margin-top:3px}
html:not(.m-desktop-wide) .m-day-calendar-head{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:42px;border:0;border-radius:999px;background:#fff;color:#111;box-shadow:0 7px 20px rgba(15,23,42,.07)}
html:not(.m-desktop-wide) .m-day-calendar-head .m-svg-icon{width:20px;height:20px;stroke-width:1.9}
.theme-dark:not(.m-desktop-wide) .m-day-calendar-head{background:#242426;color:#f5f5f7;box-shadow:none}
html:not(.m-desktop-wide) .m-day-seg{margin-bottom:10px}
html:not(.m-desktop-wide) .m-day-overview-card{margin-bottom:10px;overflow:hidden;border:1px solid rgba(0,0,0,.06);border-radius:19px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.045)}
.theme-dark:not(.m-desktop-wide) .m-day-overview-card{border-color:rgba(255,255,255,.08);background:#1c1c1e;box-shadow:none}
html:not(.m-desktop-wide) .m-tech-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;overflow:visible;padding:10px 5px 9px;margin:0;border-bottom:1px solid rgba(0,0,0,.07)}
.theme-dark:not(.m-desktop-wide) .m-tech-shortcuts{border-color:rgba(255,255,255,.09)}
html:not(.m-desktop-wide) .m-tech-shortcut{position:relative;display:flex;width:100%;min-width:0;min-height:76px;padding:2px 1px 5px;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;border:0;border-radius:12px;background:transparent;color:#1d1d1f;box-shadow:none;font-size:10px;line-height:1.05;white-space:nowrap}
html:not(.m-desktop-wide) .m-tech-shortcut.olli,html:not(.m-desktop-wide) .m-tech-shortcut.sergey,html:not(.m-desktop-wide) .m-tech-shortcut.alex,html:not(.m-desktop-wide) .m-tech-shortcut.meli,html:not(.m-desktop-wide) .m-tech-shortcut.unassigned{border:0;background:transparent;color:#1d1d1f}
.theme-dark:not(.m-desktop-wide) .m-tech-shortcut,.theme-dark:not(.m-desktop-wide) .m-tech-shortcut.olli,.theme-dark:not(.m-desktop-wide) .m-tech-shortcut.sergey,.theme-dark:not(.m-desktop-wide) .m-tech-shortcut.alex,.theme-dark:not(.m-desktop-wide) .m-tech-shortcut.meli,.theme-dark:not(.m-desktop-wide) .m-tech-shortcut.unassigned{background:transparent;color:#f5f5f7}
html:not(.m-desktop-wide) .m-tech-shortcut-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;background:#f2f2f7;font-size:17px;font-weight:900}
html:not(.m-desktop-wide) .m-tech-shortcut-avatar .m-svg-icon{width:20px;height:20px;color:#0a84ff}
html:not(.m-desktop-wide) .m-tech-shortcut.all .m-tech-shortcut-avatar{border:1.5px solid rgba(10,132,255,.55);background:#f5f9ff}
html:not(.m-desktop-wide) .m-tech-shortcut.olli .m-tech-shortcut-avatar{background:#fff2bd}
html:not(.m-desktop-wide) .m-tech-shortcut.sergey .m-tech-shortcut-avatar{background:#dff8e5}
html:not(.m-desktop-wide) .m-tech-shortcut.alex .m-tech-shortcut-avatar{background:#fde1ed}
html:not(.m-desktop-wide) .m-tech-shortcut.meli .m-tech-shortcut-avatar{background:#eeeef4}
html:not(.m-desktop-wide) .m-tech-shortcut.unassigned .m-tech-shortcut-avatar{border:1.5px dashed #c7c7cc;background:transparent;color:#8e8e93}
html:not(.m-desktop-wide) .m-tech-shortcut-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:9.5px;font-weight:850}
html:not(.m-desktop-wide) .m-tech-shortcut-count{font-size:11px;font-weight:950;color:#8e8e93}
html:not(.m-desktop-wide) .m-tech-shortcut.all .m-tech-shortcut-count{color:#0a84ff}html:not(.m-desktop-wide) .m-tech-shortcut.olli .m-tech-shortcut-count{color:#d39b00}html:not(.m-desktop-wide) .m-tech-shortcut.sergey .m-tech-shortcut-count{color:#28a745}html:not(.m-desktop-wide) .m-tech-shortcut.alex .m-tech-shortcut-count{color:#e77da8}
html:not(.m-desktop-wide) .m-tech-shortcut.active{outline:0;box-shadow:none;transform:none;background:#f7fbff}
html:not(.m-desktop-wide) .m-tech-shortcut.active::after{content:"";position:absolute;left:12%;right:12%;bottom:-9px;height:3px;border-radius:999px;background:#0a84ff}
.theme-dark:not(.m-desktop-wide) .m-tech-shortcut.active{background:rgba(10,132,255,.10)}
html:not(.m-desktop-wide) .m-day-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:8px 3px}
html:not(.m-desktop-wide) .m-day-stat{display:grid;grid-template-columns:24px minmax(0,1fr);min-height:44px;padding:4px 7px;align-items:center;gap:5px;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left}
html:not(.m-desktop-wide) .m-day-stat + .m-day-stat{border-left:1px solid rgba(0,0,0,.07)}
html:not(.m-desktop-wide) .m-day-stat>.m-svg-icon{width:21px;height:21px;color:#111;stroke-width:1.8}
html:not(.m-desktop-wide) .m-day-stat-copy{display:flex;min-width:0;align-items:baseline;gap:4px}
html:not(.m-desktop-wide) .m-day-stat.is-next .m-day-stat-copy{display:grid;gap:1px}
html:not(.m-desktop-wide) .m-day-stat strong{font-size:15px}
html:not(.m-desktop-wide) .m-day-stat span:last-child{font-size:9.5px;line-height:1.1;margin:0}
.theme-dark:not(.m-desktop-wide) .m-day-stats{border-color:rgba(255,255,255,.10)}
.theme-dark:not(.m-desktop-wide) .m-day-stat{background:transparent;border-color:rgba(255,255,255,.10)}
.theme-dark:not(.m-desktop-wide) .m-day-stat>.m-svg-icon{color:#f5f5f7}
html:not(.m-desktop-wide) .m-home-time-card{padding:11px 12px;margin-bottom:12px;border-color:rgba(0,0,0,.06);background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.045)}
.theme-dark:not(.m-desktop-wide) .m-home-time-card{border-color:rgba(255,255,255,.08);background:#1c1c1e}
html:not(.m-desktop-wide) .m-home-time-primary{display:grid;grid-template-columns:minmax(104px,1.25fr) minmax(78px,1fr) minmax(78px,1fr);align-items:center;gap:7px}
html:not(.m-desktop-wide) .m-home-time-summary{display:flex;min-width:0;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:inherit;text-align:left}
html:not(.m-desktop-wide) .m-home-time-summary>.m-svg-icon{flex:0 0 auto;width:25px;height:25px;color:#0a84ff;stroke-width:1.8}
html:not(.m-desktop-wide) .m-home-time-summary>span{display:grid;min-width:0;gap:2px}
html:not(.m-desktop-wide) .m-home-time-summary strong{font-size:11.5px;line-height:1.1}
html:not(.m-desktop-wide) .m-home-time-eyebrow{font-size:9px;letter-spacing:0;text-transform:none}
html:not(.m-desktop-wide) .m-home-time-primary>.m-btn{min-width:0;min-height:40px;padding:7px 5px;border-radius:12px;font-size:10.5px;white-space:nowrap}
html:not(.m-desktop-wide) .m-home-time-primary>.m-btn span{font-size:15px;line-height:0}
html:not(.m-desktop-wide) .m-home-time-metrics{display:none}
html.m-desktop-wide .m-day-overview-card{display:contents}
html.m-desktop-wide .m-day-calendar-head{display:none}
html.m-desktop-wide .m-home-time-primary{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:10px}
html.m-desktop-wide .m-home-time-summary{display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:inherit;text-align:left}
html.m-desktop-wide .m-home-time-summary>.m-svg-icon{width:26px;height:26px;color:#0a84ff}
html.m-desktop-wide .m-home-time-summary>span{display:grid;gap:2px}
html.m-desktop-wide .m-home-time-primary>.m-btn{min-height:40px}
@media (max-width:350px){html:not(.m-desktop-wide) .m-tech-shortcut-label{font-size:8.5px}html:not(.m-desktop-wide) .m-home-time-primary{grid-template-columns:minmax(96px,1.2fr) repeat(2,minmax(72px,1fr))}html:not(.m-desktop-wide) .m-home-time-primary>.m-btn{font-size:9.5px}}
html:not(.m-desktop-wide) #viewHome .m-section-head{margin:6px 2px 9px}
html:not(.m-desktop-wide) #viewHome .m-section-title{font-size:18px}
html:not(.m-desktop-wide) .m-day-list{gap:9px}
html:not(.m-desktop-wide) .m-day-card{border-radius:15px;box-shadow:none;border-color:rgba(0,0,0,.09)}
html:not(.m-desktop-wide) .m-day-card.next{background:#fff;border-color:rgba(10,132,255,.28);box-shadow:inset 3px 0 0 #0a84ff}
.theme-dark:not(.m-desktop-wide) .m-day-card.next{background:rgba(22,22,24,.94)}
html:not(.m-desktop-wide) .m-day-card-head{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:13px 14px 11px}
html:not(.m-desktop-wide) .m-day-tooth{display:none}
html:not(.m-desktop-wide) .m-day-next-label{margin-bottom:3px}
html:not(.m-desktop-wide) .m-day-time-row{margin-bottom:5px}
html:not(.m-desktop-wide) .m-day-due{display:inline-flex;align-items:baseline;gap:7px;color:#0a84ff;font-weight:1000;font-variant-numeric:tabular-nums;white-space:nowrap}
html:not(.m-desktop-wide) .m-day-due-date{font-size:14px}
html:not(.m-desktop-wide) .m-day-due-time{font-size:13px;color:#6e6e73}
.theme-dark:not(.m-desktop-wide) .m-day-due-time{color:#a1a1a6}
html:not(.m-desktop-wide) .m-day-patient{font-size:17px;line-height:1.2;font-weight:1000}
html:not(.m-desktop-wide) .m-day-status-line{margin-top:7px}
html:not(.m-desktop-wide) .m-day-units-metric strong{font-size:19px}
html:not(.m-desktop-wide) .m-day-dentist-corner{position:static;grid-column:1;max-width:100%;padding:7px 0 0;border:0;border-top:1px solid rgba(0,0,0,.06);border-radius:0;background:transparent;box-shadow:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;text-align:left;color:#6e6e73}
.theme-dark:not(.m-desktop-wide) .m-day-dentist-corner{background:transparent;border-color:rgba(255,255,255,.09);color:#a1a1a6}
html:not(.m-desktop-wide) .m-day-dentist-name{display:block;line-clamp:1;-webkit-line-clamp:1;text-align:left}
html:not(.m-desktop-wide) .m-day-task-box{margin:0 12px 12px;padding:9px 10px;border-radius:12px}
html:not(.m-desktop-wide) .m-day-task{font-size:12px;margin:6px 0}
html:not(.m-desktop-wide) .m-day-extra--desktop{display:none}
html.m-desktop-wide .m-day-extra--desktop{display:block}
.m-section-head{display:flex;align-items:center;justify-content:space-between;margin:10px 2px 10px}
.m-section-head--spaced{margin-top:18px}
.m-section-title{font-size:22px;font-weight:1000;letter-spacing:-0.02em}

/* Priority list cards */
.m-priority-list{display:flex;flex-direction:column;gap:12px;list-style:none;min-width:0;overflow-x:hidden}
.m-priority-card{
  border-radius:22px;
  border:1px solid rgba(0,0,0,0.06);
  background:rgba(255,255,255,0.96);
  box-shadow:0 10px 26px rgba(0,0,0,0.05);
  overflow:hidden;
  min-width:0;
  max-width:100%;
}
.theme-dark .m-priority-card{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.08);box-shadow:none}
.m-priority-inner{padding:12px 12px 14px}
.m-priority-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.m-priority-actions{display:flex;align-items:center;gap:8px}
.m-priority-ship{
  min-height:34px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(17,24,39,0.08);
  color:#111;
  font-weight:1000;
  font-size:12px;
}
.m-priority-ship:active{transform:scale(0.98)}
.theme-dark .m-priority-ship{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:900;
  padding:6px 10px;border-radius:999px;
  background:rgba(255,149,0,0.14);
  border:1px solid rgba(255,149,0,0.24);
  color:#b45309;
}
.theme-dark .m-badge{background:rgba(255,159,10,0.18);border-color:rgba(255,159,10,0.30);color:#ffd60a}
.m-priority-avatar{
  width:34px;height:34px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.08);
  font-weight:1000;
  color:#111;
}
.theme-dark .m-priority-avatar{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.10);color:#e5e5ea}
.m-priority-title{font-size:28px;font-weight:1000;letter-spacing:-0.02em;line-height:1.1;overflow-wrap:anywhere}
.m-priority-sub{margin-top:6px;color:#6e6e73;font-weight:650;overflow-wrap:anywhere}
.theme-dark .m-priority-sub{color:#a1a1a6}
.m-priority-btn{
  width:100%;
  margin-top:14px;
  min-height:52px;
  border-radius:16px;
  border:none;
  background:linear-gradient(180deg,#111827,#0b1220);
  color:#fff;
  font-weight:900;
  font-size:16px;
}
.m-priority-btn:active{transform:scale(0.99)}

/* Orders list (re-use existing grid card) */
.m-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;list-style:none;min-width:0;overflow-x:hidden}
.m-orders-toolbar{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.m-orders-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.m-search input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.08);
  background:rgba(255,255,255,0.92);
  font-size:16px;
}
.theme-dark .m-search input{background:rgba(28,28,30,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}

@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.m-btn{
  min-height:40px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  color:#111;
  -webkit-text-fill-color:currentColor;
  -webkit-appearance:none;
  appearance:none;
  font-weight:800;
}
.theme-dark .m-btn{background:rgba(28,28,30,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-btn.m-primary{background:#007aff;color:#fff;border-color:#007aff}
.theme-dark .m-btn.m-primary{background:#0a84ff;border-color:#0a84ff;color:#fff}

.m-input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  font-size:15px;
}
.theme-dark .m-input{background:rgba(28,28,30,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-filters{display:grid;grid-template-columns:1fr;gap:10px;margin:10px 0 10px}
.m-bottom-actions{display:flex;justify-content:center;margin-top:10px}

/* Segmented control */
.m-seg{
  display:flex;
  gap:0;
  padding:4px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.72);
  overflow:hidden;
}
.m-seg--spaced{ margin: 8px 0 10px; }
.theme-dark .m-seg{border-color:rgba(255,255,255,0.12);background:rgba(28,28,30,0.72)}
.m-seg-btn{
  flex:1;
  border:none;
  background:transparent;
  padding:10px 8px;
  border-radius:12px;
  font-weight:1000;
  font-size:12px;
  color:#6e6e73;
}
.m-seg-btn[aria-selected="true"]{
  background:rgba(255,255,255,0.92);
  color:#111;
  box-shadow:0 8px 16px rgba(0,0,0,0.06);
}
.theme-dark .m-seg-btn{color:#a1a1a6}
.theme-dark .m-seg-btn[aria-selected="true"]{background:rgba(22,22,24,0.92);color:#e5e5ea;box-shadow:none}

/* Existing order card layout (kept, but softened) */
.m-card{
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:18px;
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:'due units' 'dent patient' 'tech status' 'notes notes' 'invoice invoice';
  gap:8px;
  box-shadow:0 10px 26px rgba(0,0,0,0.05);
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.m-card > *{min-width:0;overflow-wrap:anywhere}
.theme-dark .m-card{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.08);box-shadow:none}
.m-card.deadline-critical{background:rgba(255,59,48,.14);border-color:rgba(255,59,48,.35)}
.m-card.deadline-pending{background:rgba(255,149,0,.12);border-color:rgba(255,149,0,.36)}
.m-card.selected{background:#f8fbff;border-color:rgba(37,99,235,.28);box-shadow:inset 3px 0 0 #2563eb,0 10px 26px rgba(0,0,0,0.05)}
.theme-dark .m-card.selected{background:#172033;border-color:rgba(100,210,255,.28);box-shadow:inset 3px 0 0 #64d2ff}
.m-card .due{grid-area:due;font-weight:900}
.m-card .units{grid-area:units;justify-self:end}
.m-card .dent{grid-area:dent;font-weight:800}
.m-card .patient{grid-area:patient;justify-self:end;font-weight:800;color:#111}
.theme-dark .m-card .patient{color:#e5e5ea}
.m-card .tech{grid-area:tech}
.m-card .status{grid-area:status;justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:6px}
.m-card .notes{grid-area:notes;color:#6e6e73;font-size:14px;line-height:1.35}
.theme-dark .m-card .notes{color:#a1a1a6}
.m-card .invoice-info{grid-area:invoice}
.m-bill-info{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.m-bill-info-section{
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  background:rgba(245,247,251,.85);
  padding:9px 10px;
}
.theme-dark .m-bill-info-section{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-bill-info-section strong{
  display:block;
  margin-bottom:4px;
  color:#111;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.theme-dark .m-bill-info-section strong{color:#f5f5f7}
.m-bill-info-section div{
  color:#3a3a3c;
  font-size:13px;
  font-weight:760;
  line-height:1.35;
}
.theme-dark .m-bill-info-section div{color:#d1d1d6}
.m-bill-attachment-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:44px;
  padding:10px 14px;
  border:1px solid rgba(10,132,255,.22);
  border-radius:14px;
  background:rgba(10,132,255,.09);
  color:#007aff;
  font:inherit;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}
.m-bill-attachment-button:focus-visible{outline:3px solid rgba(10,132,255,.25);outline-offset:2px}
.theme-dark .m-bill-attachment-button{border-color:rgba(100,210,255,.28);background:rgba(10,132,255,.16);color:#64d2ff}
body.m-bill-attachment-preview-open{overflow:hidden}
.m-bill-attachment-preview[hidden]{display:none!important}
.m-bill-attachment-preview{
  position:fixed;
  inset:0;
  z-index:2300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  background:rgba(15,23,42,.68);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-sizing:border-box;
}
.m-bill-attachment-preview-card{
  display:flex;
  flex-direction:column;
  width:min(760px,100%);
  height:min(820px,calc(100dvh - 16px));
  max-height:calc(100dvh - 16px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.30);
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}
.m-bill-attachment-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 15px;border-bottom:1px solid rgba(15,23,42,.10)}
.m-bill-attachment-preview-head span{color:#64748b;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.m-bill-attachment-preview-head h2{margin:3px 0 0;color:#111827;font-size:19px;line-height:1.15}
.m-bill-attachment-preview-head p{min-height:15px;margin:3px 0 0;color:#64748b;font-size:12px;font-weight:800}
.m-bill-attachment-preview-close{flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(15,23,42,.12);border-radius:50%;background:#fff;color:#111827;font-size:26px;line-height:1;cursor:pointer}
.m-bill-attachment-preview-stage{position:relative;display:flex;flex:1 1 auto;min-height:0;background:#eef2f7}
.m-bill-attachment-preview-content{position:relative;display:flex;flex:1 1 auto;min-width:0;min-height:0}
.m-bill-attachment-preview-viewer{display:flex;flex:1 1 auto;min-width:0;min-height:0;align-items:center;justify-content:center;overflow:auto}
.m-bill-attachment-preview-frame{display:block;width:100%;height:100%;min-height:320px;border:0;background:#fff}
.m-bill-attachment-preview-image{display:block;max-width:100%;max-height:100%;object-fit:contain}
.m-bill-attachment-preview-status{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:28px;color:#64748b;font-size:14px;font-weight:800;text-align:center}
.m-bill-attachment-preview-status[hidden]{display:none}
.m-bill-attachment-preview-status--error{color:#b42318;background:#fef3f2}
.m-bill-attachment-preview-nav{position:absolute;top:50%;z-index:2;width:48px;height:48px;transform:translateY(-50%);border:1px solid rgba(15,23,42,.12);border-radius:50%;background:rgba(255,255,255,.94);color:#111827;font-size:34px;line-height:1;box-shadow:0 4px 16px rgba(15,23,42,.18);cursor:pointer}
.m-bill-attachment-preview-prev{left:10px}
.m-bill-attachment-preview-next{right:10px}
.m-bill-attachment-preview-nav:disabled{opacity:.35;cursor:default}
.m-bill-attachment-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:11px 12px;border-top:1px solid rgba(15,23,42,.10)}
.m-bill-attachment-preview-download,.m-bill-attachment-preview-done{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:1px solid rgba(15,23,42,.12);border-radius:12px;background:#fff;color:#1d4ed8;font:inherit;font-size:13px;font-weight:900;text-decoration:none;cursor:pointer}
.m-bill-attachment-preview-done{border-color:#1d4ed8;background:#1d4ed8;color:#fff}
.theme-dark .m-bill-attachment-preview-card,.theme-dark .m-bill-attachment-preview-head,.theme-dark .m-bill-attachment-preview-actions{border-color:rgba(255,255,255,.11);background:#111827;color:#f8fafc}
.theme-dark .m-bill-attachment-preview-head h2{color:#f8fafc}
.theme-dark .m-bill-attachment-preview-stage,.theme-dark .m-bill-attachment-preview-viewer{background:#0f172a}
.theme-dark .m-bill-attachment-preview-close,.theme-dark .m-bill-attachment-preview-download,.theme-dark .m-bill-attachment-preview-nav{border-color:rgba(255,255,255,.14);background:rgba(31,41,55,.94);color:#f8fafc}
@media (max-width:380px){
  .m-bill-attachment-preview{padding:4px}
  .m-bill-attachment-preview-card{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:16px}
  .m-bill-attachment-preview-head{padding:11px 12px}
  .m-bill-attachment-preview-nav{width:44px;height:44px}
}
.m-note-chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,214,10,0.22);
  border:1px solid rgba(255,214,10,0.30);
  color:#6b4e00;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.m-note-chip--empty{
  background:rgba(0,0,0,0.04);
  border-color:rgba(0,0,0,0.08);
  color:#8e8e93;
  font-weight:800;
}
.theme-dark .m-note-chip{
  background:rgba(255,214,10,0.16);
  border-color:rgba(255,214,10,0.26);
  color:#ffd60a;
}
.theme-dark .m-note-chip--empty{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.12);
  color:#a1a1a6;
}
.m-clickable{cursor:pointer;border-radius:10px}
.m-clickable:active{background:rgba(0,122,255,.06)}

.m-open-btn{
  width:30px;height:30px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
}
.m-open-btn:active{transform:scale(0.98)}
.theme-dark .m-open-btn{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-open-ico{
  width:18px;height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#viewOrders .m-open-btn{width:28px;height:28px;border-radius:10px}
#viewOrders .m-open-ico{width:17px;height:17px}

/* ===== Compact Orders Cards (sichtbar: ~6–7 Einträge) ===== */
#viewOrders .m-list{gap:8px}
#viewOrders .m-card{
  padding:8px 10px;
  gap:6px;
  border-radius:16px;
  font-size:13px;
}
#viewOrders .m-card .due,
#viewOrders .m-card .dent,
#viewOrders .m-card .patient{font-size:13px;line-height:1.15}
#viewOrders .m-card .dent,
#viewOrders .m-card .patient{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#viewOrders .m-card .units{font-size:12px}
#viewOrders .m-card .tech{
  white-space:nowrap;
  overflow:hidden;
  justify-self:start;
  max-width:120px;
}
#viewOrders .m-card .notes{
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#viewOrders .m-tech-badge{font-size:11px;padding:3px 8px}
#viewOrders .m-status-pill{font-size:11px;padding:3px 8px}

/* Erinnerungen (Bestellungen/Notizen) */
.m-note-card{
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:16px;
  padding:10px 10px;
  box-shadow:0 10px 26px rgba(0,0,0,0.05);
}
.theme-dark .m-note-card{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.08);box-shadow:none}
.m-note-row{display:flex;gap:10px;align-items:flex-start}
.m-file-link{display:flex;gap:10px;align-items:flex-start;color:inherit;text-decoration:none}
.m-note-ico{
  width:26px;height:26px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-weight:1000;font-size:12px;letter-spacing:.02em;
  background:rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.08);
  color:#111;
  flex:0 0 auto;
}
.theme-dark .m-note-ico{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-note-text{font-weight:800;font-size:13px;line-height:1.2;color:#111}
.m-note-text strong{display:block;font-size:14px;margin-bottom:4px}
.m-note-text span{display:block;color:#6e6e73;font-size:12px;font-weight:850;margin-bottom:5px}
.m-note-text p{color:#3a3a3c;font-size:13px;font-weight:750;line-height:1.35;word-break:break-word}
.theme-dark .m-note-text{color:#e5e5ea}
.theme-dark .m-note-text span{color:#a1a1a6}
.theme-dark .m-note-text p{color:#d1d1d6}
.m-note-empty{color:#6e6e73;font-weight:700}
.theme-dark .m-note-empty{color:#a1a1a6}

/* Mobile Karteikarte */
.m-detail-sheet{
  width:100%;
  max-width:100%;
  min-width:0;
  height:min(88vh, 760px);
  height:min(88dvh, 760px);
  max-height:min(88vh, 760px);
  max-height:min(88dvh, 760px);
  overflow:hidden;
  padding-bottom:calc(18px + env(safe-area-inset-bottom));
  touch-action:pan-y;
  overscroll-behavior-x:contain;
}
.m-detail-sheet *,
.m-detail-sheet *::before,
.m-detail-sheet *::after{box-sizing:border-box}
.m-detail-sheet .m-sheet-list{
  display:grid;
  grid-template-rows:auto auto minmax(0, 1fr) auto;
  height:calc(100% - 44px);
  min-height:0;
  min-width:0;
  overflow:hidden;
  overflow-x:hidden;
}
.m-detail-sheet .m-sheet-list > *{min-width:0}
.m-detail-hero{
  background:linear-gradient(135deg, rgba(10,132,255,0.12), rgba(52,199,89,0.10));
  border:1px solid rgba(10,132,255,0.12);
  border-radius:20px;
  padding:14px;
  max-width:100%;
  position:relative;
  padding-left:76px;
  min-height:74px;
}
.theme-dark .m-detail-hero{background:linear-gradient(135deg, rgba(10,132,255,0.18), rgba(48,209,88,0.12));border-color:rgba(255,255,255,0.10)}
.m-detail-icon{position:absolute;left:14px;top:14px;width:48px;height:48px;border-radius:15px;background:rgba(255,255,255,.8);display:flex;align-items:center;justify-content:center;font-size:26px;color:#8e8e93}
.theme-dark .m-detail-icon{background:rgba(255,255,255,.08)}
.m-detail-chrome{position:relative;display:flex;height:44px;align-items:center;justify-content:center;flex:0 0 44px}
.m-detail-chrome .m-sheet-handle{margin:0}
.m-detail-x{position:absolute;right:0;top:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(17,17,17,.065);border-radius:50%;background:rgba(245,243,240,.92);color:#77736f;box-shadow:0 4px 14px rgba(41,36,31,.055);z-index:2}
.m-detail-x .m-svg-icon{width:18px;height:18px;stroke-width:1.7}
.m-detail-x:active{transform:scale(.95);background:#ece9e5}
.m-detail-x:focus-visible{outline:2px solid #252422;outline-offset:2px}
.theme-dark .m-detail-x{border-color:rgba(255,255,255,.08);background:rgba(45,42,39,.94);color:#d2cec9;box-shadow:none}
.theme-dark .m-detail-x:active{background:#393632}
.m-detail-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6e6e73;font-weight:1000;margin-bottom:4px}
.theme-dark .m-detail-kicker{color:#a1a1a6}
.m-detail-title{font-size:20px;line-height:1.1;font-weight:1000;color:#111;margin-bottom:4px}
.theme-dark .m-detail-title{color:#f5f5f7}
.m-detail-sub{font-size:13px;font-weight:800;color:#6e6e73}
.theme-dark .m-detail-sub{color:#a1a1a6}
.m-detail-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid rgba(0,0,0,.08);margin:2px -2px 8px;max-width:100%;overflow:hidden}
.theme-dark .m-detail-tabs{border-bottom-color:rgba(255,255,255,.10)}
.m-detail-tab{border:none;background:transparent;color:#6e6e73;font-size:12px;font-weight:900;padding:11px 4px;position:relative}
.m-detail-tab[aria-selected="true"]{color:#0a84ff}
.m-detail-tab[aria-selected="true"]::after{content:"";position:absolute;left:18%;right:18%;bottom:-1px;height:2px;border-radius:999px;background:#0a84ff}
.m-detail-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:2px;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
}
.m-detail-panel.m-hidden{display:none}
.m-panel-title{font-size:14px;font-weight:1000;color:#111;margin:2px 0}
.theme-dark .m-panel-title{color:#f5f5f7}
.m-info-list{border:1px solid rgba(0,0,0,.07);border-radius:16px;background:rgba(255,255,255,.9);overflow:hidden}
.theme-dark .m-info-list{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-info-list div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid rgba(0,0,0,.05);font-size:13px}
.m-info-list div:last-child{border-bottom:none}
.m-info-list span{color:#6e6e73;font-weight:850}
.m-info-list strong{font-weight:900;text-align:right}
.m-summary-card{display:flex;flex-direction:column;gap:8px;border-radius:16px;background:rgba(245,247,251,.95);border:1px solid rgba(0,0,0,.05);padding:12px}
.theme-dark .m-summary-card{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-summary-card label,.m-dict-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#6e6e73;font-weight:1000}
.m-summary-card textarea,.m-summary-card input,.m-dictation-sheet textarea{width:100%;border:1px solid rgba(0,0,0,.10);border-radius:14px;background:#fff;padding:11px 12px;font:inherit;font-weight:750;color:#111}
.theme-dark .m-summary-card textarea,.theme-dark .m-summary-card input,.theme-dark .m-dictation-sheet textarea{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#f5f5f7}
.m-detail-edit-advanced{border:1px solid rgba(0,0,0,.07);border-radius:16px;background:rgba(245,247,251,.7);padding:10px 12px}
.theme-dark .m-detail-edit-advanced{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.10)}
.m-detail-edit-advanced summary{cursor:pointer;color:#6e6e73;font-size:12px;font-weight:1000;letter-spacing:.03em;text-transform:uppercase}
.theme-dark .m-detail-edit-advanced summary{color:#a1a1a6}
.m-detail-edit-advanced .m-detail-grid{margin-top:10px}
.m-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0}
.m-detail-field{display:flex;flex-direction:column;gap:6px}
.m-detail-field.full{grid-column:1 / -1}
.m-detail-field label,
.m-assignment-label,
.m-attachments-label{
  font-size:11px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#6e6e73;
  font-weight:1000;
}
.theme-dark .m-detail-field label,
.theme-dark .m-assignment-label,
.theme-dark .m-attachments-label{color:#a1a1a6}
.m-detail-field input,
.m-detail-field select,
.m-detail-field textarea,
.m-assignment-row select,
.m-assignment-row input{
  width:100%;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.94);
  border-radius:14px;
  padding:11px 12px;
  font:inherit;
  font-weight:800;
  color:#111;
}
.theme-dark .m-detail-field input,
.theme-dark .m-detail-field select,
.theme-dark .m-detail-field textarea,
.theme-dark .m-assignment-row select,
.theme-dark .m-assignment-row input{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12);color:#f5f5f7}
.m-detail-field textarea{resize:vertical;min-height:86px}
.m-detail-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0}
.m-detail-actions .danger{color:#ff3b30;background:rgba(255,59,48,0.08);border-color:rgba(255,59,48,0.18)}
.m-detail-actions .primary{background:#0a84ff;color:#fff;border-color:#0a84ff}
.m-record-btn{width:100%;min-height:44px;border:none;border-radius:12px;background:#0a84ff;color:#fff;font-weight:900;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.m-lite-action{padding:12px 14px;background:rgba(10,132,255,.07);color:#0a84ff;border-color:rgba(10,132,255,.14)}
.m-note-editor-backdrop{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.48);display:flex;align-items:center;justify-content:center;padding:20px}
.m-note-editor-dialog{width:min(680px,100%);border-radius:20px;background:#fff;border:1px solid rgba(0,0,0,.12);box-shadow:0 24px 80px rgba(0,0,0,.32);padding:18px;display:flex;flex-direction:column;gap:14px}
.theme-dark .m-note-editor-dialog{background:#1c1c1e;border-color:rgba(255,255,255,.14);color:#f5f5f7}
.m-note-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.m-note-editor-head strong{display:block;font-size:18px;font-weight:1000;color:#111}
.theme-dark .m-note-editor-head strong{color:#f5f5f7}
.m-note-editor-head span{display:block;margin-top:4px;font-size:12px;font-weight:900;color:#6e6e73}
.theme-dark .m-note-editor-head span{color:#a1a1a6}
.m-note-editor-x{width:34px;height:34px;border:none;border-radius:999px;background:rgba(0,0,0,.06);color:#6e6e73;font-size:22px}
.theme-dark .m-note-editor-x{background:rgba(255,255,255,.10);color:#e5e5ea}
.m-note-editor-text{width:100%;min-height:220px;resize:vertical;border:1px solid rgba(0,0,0,.14);border-radius:16px;background:#fff;color:#111;padding:14px;font:inherit;font-size:15px;line-height:1.45;font-weight:750}
.theme-dark .m-note-editor-text{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#f5f5f7}
.m-note-editor-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0}
.m-detail-task-list{display:flex;flex-direction:column;gap:8px}
.m-detail-task-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;border:1px solid rgba(0,0,0,.07);border-radius:14px;background:#fff;padding:8px 10px;min-width:0}
.theme-dark .m-detail-task-row{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-detail-task-row input[type="checkbox"]{width:18px;height:18px;accent-color:#0a84ff}
.m-detail-task-text{border:none;background:transparent;font:inherit;font-weight:850;min-width:0;color:#111}
.theme-dark .m-detail-task-text{color:#f5f5f7}
.m-timeline{display:flex;flex-direction:column;gap:0;margin-left:2px}
.m-timeline-item{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;position:relative;min-width:0}
.m-timeline-item:not(:last-child)::before{content:"";position:absolute;left:10px;top:18px;bottom:-4px;width:1px;background:rgba(17,24,39,.12)}
.theme-dark .m-timeline-item:not(:last-child)::before{background:rgba(255,255,255,.12)}
.m-timeline-dot{width:8px;height:8px;border-radius:999px;background:#cfd6df;border:2px solid #fff;box-shadow:0 0 0 1px rgba(17,24,39,.10);z-index:1;margin:6px auto 0}
.m-timeline-item:first-child .m-timeline-dot{background:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.m-timeline-item.type-dictation .m-timeline-dot{background:#8b5cf6}
.m-timeline-item.type-keynote .m-timeline-dot{background:#f59e0b}
.theme-dark .m-timeline-dot{border-color:#111827;background:#64748b;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.m-timeline-body{padding:0 0 14px}
.m-timeline-meta{font-size:11px;color:#8e8e93;font-weight:850}
.m-timeline-title{display:flex;align-items:center;gap:6px;font-size:13px;color:#111;font-weight:900;margin-top:2px}
.m-timeline-title .m-type-icon{width:14px;height:14px;color:#6b7280;stroke-width:1.8}
.theme-dark .m-timeline-title{color:#f5f5f7}
.m-timeline-text{font-size:13px;line-height:1.35;color:#3a3a3c;font-weight:750;margin-top:2px}
.theme-dark .m-timeline-text{color:#d1d1d6}
.m-timeline-text.is-scrollable{
  max-height:240px;
  overflow-y:auto;
  padding:9px 10px;
  border-radius:12px;
  background:rgba(0,0,0,.035);
  border:1px solid rgba(0,0,0,.06);
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}
.theme-dark .m-timeline-text.is-scrollable{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-timeline-actions{font-size:12px;color:#1f8f3a;font-weight:850;margin-top:8px}
.m-timeline-actions strong{display:block;color:#1f8f3a;margin-bottom:4px}
.m-timeline-actions ul{margin:0;padding-left:17px}
.m-timeline-transcript{margin-top:9px;padding:9px 10px;border-radius:12px;background:rgba(10,132,255,.06);border:1px solid rgba(10,132,255,.12);font-size:12px;line-height:1.4;color:#374151}
.m-timeline-transcript strong{display:block;margin-bottom:5px;color:#2563eb;font-size:11px;text-transform:uppercase;letter-spacing:.03em}
.m-timeline-transcript div{max-height:190px;overflow-y:auto;white-space:normal}
.theme-dark .m-timeline-transcript{background:rgba(100,210,255,.10);border-color:rgba(100,210,255,.16);color:#d1d5db}
.theme-dark .m-timeline-transcript strong{color:#64d2ff}
.m-timeline-audio{display:inline-block;margin-top:6px;color:#0a84ff;font-weight:900;text-decoration:none;font-size:12px}
.m-source-list{display:flex;flex-direction:column;gap:8px}
.m-source-card{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border-radius:14px;background:rgba(10,132,255,.07);border:1px solid rgba(10,132,255,.13);text-decoration:none;color:#111;max-width:100%;overflow:hidden}
.theme-dark .m-source-card{color:#f5f5f7;background:rgba(10,132,255,.13)}
.m-source-card small{display:block;color:#6e6e73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-dictation-sheet{max-height:calc(100dvh - 24px);overflow:hidden;overflow-x:hidden;touch-action:pan-y;flex-direction:column}
.m-dictation-consent{font-size:13px;line-height:1.35;color:#6e6e73;background:rgba(255,149,0,.10);border:1px solid rgba(255,149,0,.18);border-radius:14px;padding:10px;font-weight:800;margin-bottom:10px}
.m-dictation-controls{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px;margin-bottom:10px;min-width:0}
.m-dictation-status{min-height:18px;margin:-2px 0 10px;color:#6e6e73;font-size:12px;font-weight:850}
.m-dictation-status.ok{color:#1f8f3a}
.m-dictation-status.error{color:#d14545}
.m-dictation-sheet #mDictTranscript{min-height:150px;max-height:34dvh;resize:vertical;overflow:auto;flex:0 1 auto}
.m-dictation-sheet .m-detail-actions{position:sticky;bottom:0;z-index:2;background:rgba(255,255,255,.96);padding-top:10px;margin-top:8px;flex:0 0 auto}
.theme-dark .m-dictation-sheet .m-detail-actions{background:rgba(28,28,30,.98)}
.m-transcript-preview{border-radius:16px;background:rgba(52,199,89,.10);border:1px solid rgba(52,199,89,.18);padding:12px;margin:10px 0;color:#12351d;max-height:28dvh;overflow-y:auto;flex:1 1 auto;min-height:0}
.theme-dark .m-transcript-preview{color:#d7ffd7;background:rgba(48,209,88,.13)}
.m-preview-title{font-size:12px;color:#6e6e73;font-weight:1000;margin-bottom:8px}
.m-transcript-preview p{font-size:13px;line-height:1.35;margin:4px 0 8px;overflow-wrap:anywhere}
.m-transcript-preview ul{padding-left:18px;font-size:13px;line-height:1.45;margin:4px 0 8px}
.m-assignments-list{display:flex;flex-direction:column;gap:8px;margin-top:2px}
.m-assignment-row{display:grid;grid-template-columns:minmax(0,1fr) 88px 34px;gap:8px;align-items:center;min-width:0}
.m-assignment-remove{
  width:34px;height:34px;border-radius:12px;
  border:1px solid rgba(255,59,48,0.18);
  background:rgba(255,59,48,0.08);
  color:#ff3b30;
  font-weight:1000;
}
.m-assignment-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.m-form-hint{font-size:12px;color:#6e6e73;font-weight:700;margin-top:6px}
.theme-dark .m-form-hint{color:#a1a1a6}
.m-appointment-card{border:1px solid rgba(0,0,0,.07);border-radius:16px;background:rgba(245,247,251,.95);padding:12px;display:flex;flex-direction:column;gap:10px}
.theme-dark .m-appointment-card{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-appointment-list{display:flex;flex-direction:column;gap:8px}
.m-appointment-row{display:grid;grid-template-columns:minmax(130px,1.15fr) minmax(145px,1fr) minmax(105px,.72fr) 28px;gap:8px;align-items:center;border:1px solid rgba(0,0,0,.06);border-radius:13px;background:#fff;padding:9px;min-width:0;overflow:visible}
.theme-dark .m-appointment-row{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.m-appointment-row.current{border-color:rgba(10,132,255,.35);box-shadow:inset 3px 0 0 #0a84ff}
.m-appointment-row.done{opacity:.72}
.m-appointment-meta{min-width:0}
.m-appointment-type{width:100%;min-width:0;border:1px solid rgba(0,0,0,.10);border-radius:10px;background:#fff;color:#111;padding:9px 8px;font:inherit;font-size:13px;font-weight:900}
.theme-dark .m-appointment-type{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#f5f5f7}
.m-appointment-meta span{display:block;color:#6e6e73;font-size:11px;font-weight:850;margin-top:2px}
.m-appointment-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-dark .m-appointment-meta span{color:#a1a1a6}
.m-appointment-row input,.m-mobile-appointment-grid input{width:100%;min-width:0;box-sizing:border-box;border:1px solid rgba(0,0,0,.10);border-radius:10px;background:#fff;color:#111;padding:9px;font:inherit;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}
.theme-dark .m-appointment-row input,.theme-dark .m-mobile-appointment-grid input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#f5f5f7}
.m-mobile-appointment-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
.m-mobile-appointment-grid > div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;border:1px solid rgba(0,0,0,.07);border-radius:13px;background:rgba(245,247,251,.9);padding:9px;min-width:0;overflow:hidden}
.m-mobile-appointment-grid strong{grid-column:1 / -1;font-size:12px;color:#111;font-weight:1000}
.theme-dark .m-mobile-appointment-grid > div{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.theme-dark .m-mobile-appointment-grid strong{color:#f5f5f7}
.theme-dark #mOrderModal > div{background:#161618!important;border-color:rgba(255,255,255,.10)!important}
.theme-dark #mOrderModal label{color:#a1a1a6!important}
.theme-dark #mOrderModal input,.theme-dark #mOrderModal select,.theme-dark #mOrderModal textarea{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important;color:#f5f5f7!important}
.m-assistant-backdrop{display:none;position:fixed;inset:0;z-index:11000;background:rgba(0,0,0,.38);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.m-assistant-backdrop.is-open{display:block}
.m-assistant-modal{display:none;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:11001;width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow-y:auto;padding:18px;border:1px solid rgba(0,0,0,.10);border-radius:22px;background:rgba(255,255,255,.98);box-shadow:0 24px 70px rgba(0,0,0,.25)}
.m-assistant-modal.is-open{display:block}
.m-assistant-modal.is-listening{box-shadow:0 24px 70px rgba(0,0,0,.25),0 0 0 3px rgba(10,132,255,.16)}
.theme-dark .m-assistant-modal{background:#1c1c1e;border-color:rgba(255,255,255,.13);color:#f5f5f7}
.m-assistant-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.m-assistant-head h2{margin:2px 0 0;font-size:22px;letter-spacing:-.02em}
.m-assistant-subtitle{margin:3px 0 0;color:#6e6e73;font-size:12px;font-weight:750}
.theme-dark .m-assistant-subtitle{color:#a1a1a6}
.m-assistant-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin:14px 0 10px}
.m-assistant-status{min-height:18px;font-size:12px;font-weight:800;color:#6e6e73}
.m-assistant-status.is-error{color:#d14545}.m-assistant-status.is-ok{color:#1f8f3a}
.m-assistant-label{display:block;margin:8px 0 6px;font-size:12px;font-weight:900;color:#555}
.theme-dark .m-assistant-label{color:#a1a1a6}
#mAssistantText{width:100%;box-sizing:border-box;min-height:82px;max-height:132px;padding:12px;border:1px solid rgba(0,0,0,.12);border-radius:14px;background:#fff;color:#111;font:inherit;font-size:16px;resize:vertical}
.theme-dark #mAssistantText{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#f5f5f7}
.m-assistant-proposal{margin-top:12px;padding:12px;border-radius:15px;background:rgba(48,209,88,.10);border:1px solid rgba(48,209,88,.20);font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.m-assistant-proposal.is-error{background:rgba(255,59,48,.09);border-color:rgba(255,59,48,.20);color:#a61b1b}
.theme-dark .m-assistant-proposal{background:rgba(48,209,88,.14);border-color:rgba(48,209,88,.25);color:#d7ffd7}
.theme-dark .m-assistant-proposal.is-error{background:rgba(255,59,48,.14);border-color:rgba(255,59,48,.25);color:#ffb8b3}
.m-assistant-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px}
.m-assistant-actions .m-primary{min-width:148px}
.m-assistant-modal.is-reviewing .m-assistant-actions .m-primary{width:100%;min-height:48px;font-size:15px}
@media (max-width:420px){
  .m-assistant-controls{grid-template-columns:1fr}
  #mAssistantRecord{width:100%;min-height:48px}
  .m-assistant-status{min-height:0}
}
#mOrderBackdrop.is-open{
  display:block!important;
  z-index:10000!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#mOrderModal.is-open{
  display:flex!important;
  z-index:10001!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#mOrderModal.is-open > div{
  display:block!important;
  position:relative!important;
  z-index:10002!important;
  width:min(520px, calc(100vw - 28px))!important;
  max-height:calc(100dvh - 28px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  max-width:calc(100vw - 28px)!important;
  -webkit-overflow-scrolling:touch;
}
#mOrderModal .m-important-input{
  border:2px solid #111!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.04);
}
#mOrderModal .m-important-input:focus{
  outline:none;
  border-color:#000!important;
  box-shadow:0 0 0 3px rgba(0,0,0,.12);
}
.m-mobile-extra-appointments{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-bottom:8px;
}
.m-mobile-extra-appointment{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  padding:8px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:rgba(17,24,39,.03);
  min-width:0;
  overflow:hidden;
}
.m-mobile-extra-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
  grid-column:1 / -1;
}
.m-mobile-extra-head strong{font-size:12px;color:#374151}
.m-mobile-extra-appointment input{
  width:100%!important;
  max-width:none!important;
  margin-right:0;
  padding:9px 10px!important;
  border:1px solid #ddd;
  border-radius:10px;
}
.m-mobile-remove-mini{
  border:none;
  background:rgba(255,59,48,.10);
  color:#ff3b30;
  width:28px;
  height:28px;
  border-radius:999px;
  font-weight:1000;
}
@media (max-width: 700px){
  .m-appointment-row{grid-template-columns:minmax(150px,1fr) minmax(105px,.72fr) 28px}
  .m-appointment-meta{grid-column:1 / -1}
  .m-appointment-date{grid-column:1}
  .m-appointment-time{grid-column:2}
  .m-appointment-remove{grid-column:3}
}
.m-attachments-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:8px;margin-top:8px}
.m-attachment-tile{
  position:relative;
  min-height:78px;
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.08);
}
.theme-dark .m-attachment-tile{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.m-attachment-tile img{width:100%;height:92px;object-fit:cover;display:block}
.m-attachment-file{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  height:92px;
  color:#111;
  text-decoration:none;
  font-weight:1000;
  font-size:12px;
}
.theme-dark .m-attachment-file{color:#f5f5f7}
.m-attachment-delete{
  position:absolute;
  top:5px;right:5px;
  width:26px;height:26px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background:rgba(255,255,255,0.92);
  color:#ff3b30;
  font-weight:1000;
}
.m-attachment-upload{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media (max-width:520px){
  .m-detail-grid{grid-template-columns:1fr}
  .m-detail-field.full{grid-column:auto}
  .m-attachments-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}

/* Tech badges + status pills (kept) */
.m-tech-badge{display:inline-block;padding:4px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#f6f7f9;color:#1d1d1f;font-weight:700;font-size:12px}
.theme-dark .m-tech-badge{background:#2c2c2e;border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-tech-badge.olli{background:#fff5cc;border-color:#ffe58f}
.m-tech-badge.sergey{background:#eaffea;border-color:#b7f5c0}
.m-tech-badge.alex{background:#ffe6f1;border-color:#ffc2d8}
.m-tech-badge.unassigned{background:rgba(255,149,0,.1);border-color:rgba(255,149,0,.3);color:#ff9500}
.m-status-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:900;font-size:12px;border:1px solid transparent}
.m-status-pill.neu{background:rgba(0,122,255,.1);color:#007aff;border-color:rgba(0,122,255,.25)}
.m-status-pill.in-arbeit{background:rgba(255,149,0,.12);color:#ff9500;border-color:rgba(255,149,0,.25)}
.m-status-pill.fertig{background:rgba(52,199,89,.12);color:#34c759;border-color:rgba(52,199,89,.25)}
.m-status-pill.versandt{background:rgba(142,142,147,.12);color:#8e8e93;border-color:rgba(142,142,147,.25)}
.theme-dark .m-status-pill.neu{background:rgba(10,132,255,.18);color:#0a84ff;border-color:rgba(10,132,255,.35)}
.theme-dark .m-status-pill.in-arbeit{background:rgba(255,159,10,.18);color:#ff9f0a;border-color:rgba(255,159,10,.35)}
.theme-dark .m-status-pill.fertig{background:rgba(48,209,88,.18);color:#30d158;border-color:rgba(48,209,88,.35)}
.theme-dark .m-status-pill.versandt{background:rgba(142,142,147,.18);color:#a1a1a6;border-color:rgba(142,142,147,.35)}

/* Util bar (kept) */
.m-bar{height:10px;background:#eee;border-radius:8px;overflow:hidden;display:flex;border:1px solid #e3e3e3}
.theme-dark .m-bar{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.06)}
.m-seg{height:100%}
.m-seg.completed{background:#30d158}
.m-seg.inprogress{background:#ff9f0a}
.m-seg.new{background:#0a84ff}
.m-seg.remain{background:#f2f2f7}

/* Mobile Finalrichtung v2 */
.m-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.m-mobile-greeting{display:none}
.m-day-controls-scroll{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 0 12px;padding:2px 1px 4px}
.m-day-controls-scroll::-webkit-scrollbar{display:none}
.m-day-status-filter select,.m-tech-more select{height:44px;padding:0 34px 0 16px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#fff;color:#1f2937;font:inherit;font-size:13px;font-weight:850;appearance:auto;white-space:nowrap}
.m-day-status-filter,.m-tech-more{flex:0 0 auto}
.m-day-work-type{margin-top:9px;color:#202124;font-size:14px;font-weight:900;line-height:1.25}
.m-day-patient-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.m-day-card-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.m-day-dentist-inline{margin-top:3px;color:#6e6e73;font-size:11px;font-weight:700}
.m-day-guidance{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1.5px solid rgba(180,83,9,.42);border-radius:10px;background:#fff7ed;color:#b45309;font-size:19px;font-weight:900;line-height:1;cursor:pointer}
.m-patient-heading{align-items:flex-end;margin-bottom:12px}
.m-section-subtitle{margin-top:2px;color:#6e6e73;font-size:12px;font-weight:700}
.m-patient-time-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:3px;border-radius:18px;background:#eef0f4}
.m-patient-time-seg button{height:42px;border:0;border-radius:15px;background:transparent;color:#394150;font:inherit;font-size:13px;font-weight:850}
.m-patient-time-seg button[aria-selected="true"]{background:#fff;color:#1265c4;box-shadow:0 1px 5px rgba(15,23,42,.12),inset 0 0 0 1.5px #2d7bd8}
.m-patient-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.m-patient-shipped-toggle{height:48px;padding:0 16px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#fff;color:#394150;font:inherit;font-size:13px;font-weight:850;box-shadow:0 1px 5px rgba(15,23,42,.05)}
.m-patient-shipped-toggle[aria-pressed="true"]{border-color:#2d7bd8;background:#edf5ff;color:#1265c4;box-shadow:inset 0 0 0 1px #2d7bd8}
.m-completion-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
.m-completion-kpis>div{padding:14px 15px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.m-completion-kpis span{display:block;color:#6e6e73;font-size:11px;font-weight:800}
.m-completion-kpis strong{display:block;margin-top:3px;color:#111827;font-size:22px;letter-spacing:-.03em}
.m-completion-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.m-completion-row>div:first-child{min-width:0}
.m-completion-row strong,.m-completion-row span{display:block;overflow:hidden;text-overflow:ellipsis}
.m-completion-row strong{font-size:14px}.m-completion-row span{margin-top:3px;color:#6e6e73;font-size:11px;font-weight:700}
.m-completion-row-end{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:0 0 auto}.m-completion-row-end b{font-size:13px}
.m-completion-row-main{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;gap:8px}
.m-completion-patient-button{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.m-completion-patient-button strong,.m-completion-patient-button span,.m-completion-patient-button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-completion-patient-button small{margin-top:5px;color:#2871bb;font-size:11px;font-weight:850}
.m-bill-invoice-state{font-size:10px!important;font-weight:850!important}.m-bill-invoice-state.is-done{color:#16805c!important}
.m-bill-invoice-toggle{min-height:38px;max-width:150px;padding:8px 10px;border:1px solid #252422;border-radius:12px;background:#252422;color:#fff;font:inherit;font-size:11px;font-weight:900;line-height:1.15;cursor:pointer}
.m-bill-invoice-toggle.is-done{border-color:#a6dfca;background:#e9f8f2;color:#08765b}.m-bill-invoice-toggle:disabled{opacity:.6;cursor:wait}
html.m-patient-record-open,body.m-patient-record-open{overflow:hidden!important;overscroll-behavior:none}
body.m-patient-record-open{position:fixed;inset-inline:0;width:100%}
.m-patient-record-modal{position:fixed;inset:0;z-index:2320;display:flex;align-items:flex-end;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 0 0;background:rgba(29,28,26,.52);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);overscroll-behavior:none;touch-action:none}
.m-patient-record-card{display:flex;width:min(680px,100%);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.34);border-radius:28px 28px 0 0;background:#fbfaf8;box-shadow:0 -20px 60px rgba(20,18,16,.22)}
.m-patient-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 20px 15px;border-bottom:1px solid rgba(32,29,26,.07)}
.m-patient-record-head span{color:#85817d;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.m-patient-record-head h2{margin:4px 0 2px;color:#171717;font-size:23px;line-height:1.08;letter-spacing:-.035em}.m-patient-record-head p{margin:0;color:#696560;font-size:13px;font-weight:700}
.m-patient-record-close{flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(32,29,26,.09);border-radius:50%;background:#fff;color:#4b4844;font-size:25px;line-height:1;cursor:pointer}
.m-patient-record-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 20px 0}.m-patient-record-summary>div{padding:11px 13px;border:1px solid rgba(32,29,26,.06);border-radius:15px;background:#fff}.m-patient-record-summary span{display:block;color:#85817d;font-size:10px;font-weight:800}.m-patient-record-summary strong{display:block;margin-top:2px;font-size:18px}
.m-patient-record-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:16px 20px 24px}.m-patient-record-body section+section{margin-top:22px}.m-patient-record-body h3{margin:0 0 9px;color:#302e2b;font-size:13px;font-weight:900}
.m-patient-record-notes{display:flex;flex-direction:column;gap:8px}.m-patient-record-note{padding:12px 13px;border:1px solid rgba(32,29,26,.065);border-radius:16px;background:#fff}.m-patient-record-note--notebook{background:#f1f6fb}.m-patient-record-note span{color:#96918c;font-size:10px;font-weight:750}.m-patient-record-note strong{display:block;margin-top:3px;color:#252321;font-size:13px}.m-patient-record-note p{margin:6px 0 0;color:#55514d;font-size:13px;font-weight:620;line-height:1.45}.m-patient-record-empty,.m-patient-record-loading{padding:15px;border:1px dashed rgba(32,29,26,.15);border-radius:15px;color:#7b7670;font-size:12px;font-weight:700;text-align:center}
.m-patient-record-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:11px 20px calc(11px + env(safe-area-inset-bottom));border-top:1px solid rgba(32,29,26,.07);background:rgba(251,250,248,.96)}.m-patient-record-actions .m-bill-invoice-toggle{max-width:none;min-height:46px;font-size:12px}.m-patient-record-actions .m-patient-record-done:only-child{grid-column:1/-1}.m-patient-record-done{min-height:46px;border:1px solid rgba(32,29,26,.09);border-radius:14px;background:#fff;color:#302e2b;font:inherit;font-size:12px;font-weight:900}
.theme-dark .m-patient-record-card,.theme-dark .m-patient-record-actions{background:#1c1b19;color:#f5f5f3}.theme-dark .m-patient-record-head,.theme-dark .m-patient-record-actions{border-color:rgba(255,255,255,.08)}.theme-dark .m-patient-record-head h2,.theme-dark .m-patient-record-body h3,.theme-dark .m-patient-record-note strong{color:#f5f5f3}.theme-dark .m-patient-record-head p,.theme-dark .m-patient-record-note p{color:#c2bdb7}.theme-dark .m-patient-record-summary>div,.theme-dark .m-patient-record-note,.theme-dark .m-patient-record-close,.theme-dark .m-patient-record-done{border-color:rgba(255,255,255,.09);background:#292724;color:#f5f5f3}.theme-dark .m-patient-record-note--notebook{background:#222d38}
@media (max-width:420px){.m-completion-row{align-items:flex-start}.m-completion-row-end{width:132px}.m-bill-invoice-toggle{max-width:132px}.m-patient-record-head{padding:18px 17px 14px}.m-patient-record-summary{padding-left:17px;padding-right:17px}.m-patient-record-body{padding-left:17px;padding-right:17px}.m-patient-record-actions{padding-left:17px;padding-right:17px}}

@media (max-width:959px){
  body{background:#f7f8fb}
  .m-header{padding:calc(8px + env(safe-area-inset-top)) 16px 7px;background:#f7f8fb;border-bottom:0}
  .m-header-top{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:8px;align-items:center}
  .m-menu-icon-btn,.m-assistant-btn,.m-user-pill{width:44px;height:44px;min-width:44px;padding:0;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.08)}
  .m-menu-icon-btn{font-size:0}.m-menu-icon-btn span{font-size:19px}
  .m-assistant-btn{display:flex;align-items:center;justify-content:center;background:#2874d5;color:#fff;font-size:22px}
  .m-user-pill{justify-content:center;background:#7247a8;color:#fff}.m-user-name{display:none}.m-user-avatar{background:transparent;color:#fff}
  .m-mobile-greeting{display:flex;min-width:0;flex-direction:column}.m-mobile-greeting strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;letter-spacing:-.02em}.m-mobile-greeting span{margin-top:2px;color:#657080;font-size:12px;font-weight:750}
  .m-day-header{display:none!important}
  .m-main{padding-top:9px}
  .m-day-controls-scroll{margin-left:0;margin-right:-16px;padding-right:16px}
  .m-day-seg{display:flex;flex:0 0 auto;gap:3px;margin:0!important;padding:0;background:transparent;border:0}
  .m-day-seg-btn{flex:0 0 auto;width:auto;min-width:61px;height:44px;padding:0 13px;border:0;border-radius:15px;background:#f0f2f6;color:#505967;box-shadow:none}
  .m-day-seg-btn[aria-selected="true"]{background:#fff;color:#1e66b7;box-shadow:0 0 0 1.5px #2d7bd8,0 2px 8px rgba(15,23,42,.08)}
  .m-tech-shortcuts{display:flex!important;flex:0 0 auto;gap:5px!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important}
  .m-tech-shortcut{display:flex!important;min-width:58px!important;min-height:44px!important;padding:0 12px!important;flex-direction:row!important;justify-content:center!important;gap:5px!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:16px!important;background:#fff!important;font-size:12px!important}
  .m-tech-shortcut-avatar{display:none!important}.m-tech-shortcut-label{font-size:12px!important}.m-tech-shortcut-count{font-size:10px!important}
  .m-tech-shortcut.active{color:#1467c2!important;background:#edf5ff!important;box-shadow:inset 0 0 0 1px #70a8e7!important}.m-tech-shortcut.active::after{display:none!important}
  .m-day-overview-card{margin-bottom:12px!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .m-day-stats{grid-template-columns:1fr 1fr!important;gap:8px!important;padding:0!important}
  .m-day-stat{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;min-height:76px!important;padding:9px 10px!important;gap:7px!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 14px rgba(15,23,42,.035)!important}
  .m-day-stat+.m-day-stat{border-left:1px solid rgba(15,23,42,.08)!important}.m-day-stat>.m-svg-icon{width:19px!important;height:19px!important}.m-day-stat-copy{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:baseline!important;column-gap:6px!important;row-gap:1px!important}.m-day-stat strong{font-size:18px!important;line-height:1!important}.m-day-stat span{font-size:10px!important;line-height:1.15!important}.m-day-stat small{grid-column:1/-1;color:#596273;font-size:9px;font-weight:800;line-height:1.15}.m-day-stat.is-next .m-day-stat-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important}.m-day-stat.is-next strong{font-size:15px!important;line-height:1.1;white-space:normal}
  .m-home-time-card{padding:9px 10px!important;border-radius:16px!important;background:#fff!important}.m-home-time-primary{display:flex!important;min-height:48px;align-items:center!important;gap:7px!important}.m-home-time-summary{min-width:0;flex:1 1 auto;padding:0!important}.m-home-time-summary .m-svg-icon{display:none}.m-home-time-summary>span{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;column-gap:5px!important;row-gap:1px!important}.m-home-time-eyebrow{font-size:9px!important;color:rgba(38,75,112,.22)!important}.m-home-time-summary strong{overflow:hidden;padding:3px 7px;border-radius:999px;background:#e5f8f2;color:#078267;font-size:9.5px!important;line-height:1.15!important;text-overflow:ellipsis;white-space:nowrap}.m-home-time-summary small{grid-column:1/-1;color:#596273;font-size:9px;font-weight:750;line-height:1.1}.m-home-pause{display:flex;flex:0 0 68px;min-height:38px!important;align-items:center;justify-content:center;text-decoration:none}.m-home-time-primary>.m-btn{flex:0 0 auto;min-width:86px;min-height:38px!important;padding:0 9px!important;font-size:10px!important}.m-home-time-primary>[hidden]{display:none!important}
  #viewHome .m-section-head{margin-top:17px}.m-day-card-head{padding:13px 14px!important}.m-day-patient{font-size:15px!important}.m-day-status-line{justify-content:space-between}.m-day-status-line .m-tech-badge{padding:2px 0;border:0;background:transparent;font-size:11px}.m-day-units-metric{margin-left:auto}.m-day-units-metric strong{font-size:13px!important}.m-day-next-label{display:none}
  #viewOrders .m-orders-actions{display:none}.m-orders-toolbar{gap:12px}.m-search input{height:48px;border-radius:15px}
  #viewOrders .m-list{display:flex;flex-direction:column;gap:9px}#viewOrders .m-card{border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}
  #viewBilling .m-filters{grid-template-columns:1fr 1fr}#viewBilling #mBillPatient{grid-column:1/-1}#viewBilling .m-list{display:flex;flex-direction:column;gap:9px}
}
.m-util-head{display:flex;justify-content:space-between;align-items:center}
.m-util-num{font-size:12px;color:#6e6e73;font-weight:700}
.theme-dark .m-util-num{color:#a1a1a6}

/* ===== Tabbar + FAB ===== */
.m-tabbar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:30;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  max-width:100vw;
  overflow:visible;
  background:rgba(255,255,255,0.92);
  border-top:1px solid rgba(0,0,0,0.08);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  align-items:center;
}
.theme-dark .m-tabbar{background:rgba(22,22,24,0.92);border-top-color:rgba(255,255,255,0.10)}
.m-tab{
  position:relative;
  border:none;
  background:transparent;
  padding:10px 6px;
  border-radius:16px;
  color:#8e8e93;
  font-weight:900;
  font-size:12px;
  display:flex;
  flex-direction:column;
  gap:3px;
  align-items:center;
  justify-content:center;
}
.m-tab-notification{
  position:absolute;
  top:3px;
  left:calc(50% + 8px);
  min-width:18px;
  height:18px;
  padding:0 5px;
  border:2px solid rgba(255,255,255,.96);
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:10px;
  font-weight:1000;
  line-height:14px;
  text-align:center;
  box-shadow:0 2px 6px rgba(180,0,0,.24);
}
.theme-dark .m-tab-notification{border-color:rgba(22,22,24,.96)}
.m-tab-notification[hidden]{display:none}
.m-tab[aria-current="page"]{color:#0a84ff;background:rgba(10,132,255,0.10)}
.theme-dark .m-tab{color:#a1a1a6}
.theme-dark .m-tab[aria-current="page"]{color:#0a84ff;background:rgba(10,132,255,0.16)}
.m-tab-label{display:block;text-align:center;font-size:10px;line-height:1;font-weight:900}
.m-tab-ico{
  width:21px;
  height:21px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.m-fab{
  width:64px;height:64px;
  border-radius:999px;
  border:none;
  background:#0a84ff;
  color:#fff;
  font-size:38px;
  line-height:1;
  font-weight:300;
  display:flex;align-items:center;justify-content:center;
  justify-self:center;
  align-self:center;
  padding:0 0 3px;
  box-shadow:0 14px 30px rgba(10,132,255,0.35);
  transform:none;
  transform-origin:center;
}
.m-fab:active{transform:scale(0.98)}

/* ===== Stress Rating Modal ===== */
.theme-dark #shipRatingModal .m-rate-card{
  background:rgba(28,28,30,0.98) !important;
  border-color:rgba(255,255,255,0.12) !important;
  box-shadow:none !important;
  color:#e5e5ea;
}
.theme-dark #shipRatingModal .m-rate-sub{color:#a1a1a6 !important}

/* ===== Sheets (Menu) ===== */
.m-sheet-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  z-index:40;
  display:none;
}
.m-sheet{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:41;
  background:rgba(255,255,255,0.96);
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  border:1px solid rgba(0,0,0,0.10);
  box-shadow:0 -18px 50px rgba(0,0,0,0.20);
  padding:10px 14px 16px;
  display:none;
}
.theme-dark .m-sheet{background:rgba(28,28,30,0.98);border-color:rgba(255,255,255,0.12);box-shadow:none}
.m-sheet-handle{width:64px;height:7px;border-radius:999px;margin:6px auto 10px;background:rgba(0,0,0,0.20);touch-action:none;cursor:grab}
.m-sheet-handle:active{cursor:grabbing}
.theme-dark .m-sheet-handle{background:rgba(255,255,255,0.18)}
.m-sheet-title{font-size:16px;font-weight:1000;text-align:center;margin-bottom:10px}
.m-sheet-list{display:flex;flex-direction:column;gap:10px}
.m-sheet-item{
  width:100%;
  text-align:left;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.10);
  background:rgba(255,255,255,0.92);
  color:#111;
  font-weight:900;
  text-decoration:none;
  display:block;
}
.theme-dark .m-sheet-item{background:rgba(22,22,24,0.92);border-color:rgba(255,255,255,0.12);color:#e5e5ea}
.m-sheet-close{
  width:100%;
  margin-top:12px;
  min-height:48px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.10);
  background:transparent;
  font-weight:1000;
}
.theme-dark .m-sheet-close{border-color:rgba(255,255,255,0.12);color:#e5e5ea}

/* ===== Muted user-facing palette + deadline dot ===== */
.m-card.deadline-critical{
  background:rgba(255,255,255,0.96);
  border-color:rgba(0,0,0,0.06);
}
.theme-dark .m-card.deadline-critical{
  background:rgba(22,22,24,0.92);
  border-color:rgba(255,255,255,0.08);
}
.m-card.deadline-critical .due{
  position:relative;
  padding-left:14px;
}
.m-card.deadline-critical .due::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#d14545;
  box-shadow:0 0 0 0 rgba(209,69,69,0.32);
  transform:translateY(-50%) scale(0.9);
  animation:m-deadline-pulse 1.15s ease-in-out infinite;
  pointer-events:none;
}
@keyframes m-deadline-pulse{
  0%,100%{opacity:.45;transform:translateY(-50%) scale(.88);box-shadow:0 0 0 0 rgba(209,69,69,.14)}
  50%{opacity:1;transform:translateY(-50%) scale(1);box-shadow:0 0 0 6px rgba(209,69,69,0)}
}
@media (prefers-reduced-motion: reduce){
  .m-card.deadline-critical .due::before{
    animation:none;
    opacity:1;
    transform:translateY(-50%);
    box-shadow:none;
  }
}

.m-badge,
.theme-dark .m-badge,
.m-note-chip,
.theme-dark .m-note-chip{
  background:rgba(17,24,39,0.08);
  border-color:rgba(17,24,39,0.14);
  color:#374151;
}
.theme-dark .m-badge,
.theme-dark .m-note-chip{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.14);
  color:#e5e7eb;
}

.m-btn.m-primary{
  background:#374151;
  color:#fff;
  border-color:#374151;
}
.theme-dark .m-btn.m-primary{
  background:#d1d5db;
  border-color:#d1d5db;
  color:#111;
}

/* Techniker-Farben: originale Farbzuordnung beibehalten (definiert weiter oben) */
.m-tech-badge.unassigned{
  background:rgba(255,149,0,.1);
  border-color:rgba(255,149,0,.3);
  color:#ff9500;
}
.theme-dark .m-tech-badge.unassigned{
  background:rgba(255,149,0,.18);
  border-color:rgba(255,149,0,.35);
  color:#ffb454;
}

.m-status-pill.neu,
.m-status-pill.in-arbeit,
.m-status-pill.fertig,
.m-status-pill.versandt{
  background:rgba(17,24,39,0.08);
  color:#374151;
  border-color:rgba(17,24,39,0.14);
}
.theme-dark .m-status-pill.neu,
.theme-dark .m-status-pill.in-arbeit,
.theme-dark .m-status-pill.fertig,
.theme-dark .m-status-pill.versandt{
  background:rgba(255,255,255,0.08);
  color:#e5e7eb;
  border-color:rgba(255,255,255,0.14);
}

.m-tab[aria-current="page"],
.theme-dark .m-tab[aria-current="page"]{
  color:#374151;
  background:rgba(17,24,39,0.08);
}
.theme-dark .m-tab[aria-current="page"]{
  color:#e5e7eb;
  background:rgba(255,255,255,0.10);
}

html.m-desktop-wide{--m-desktop-sidebar-width:190px;--m-desktop-timeline-width:430px;--m-desktop-gutter:34px;--m-desktop-topbar-height:100px}
html.m-desktop-wide body{background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);min-height:100vh;overflow:hidden;color:#1d1d1f}
/* Dashboard-Header 1:1 fuer Mein Tag (gleiche Klassen wie index.html) */
html.m-desktop-wide .header{display:flex;justify-content:space-between;align-items:center;padding:24px 40px;background:rgba(255,255,255,0.8);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-bottom:0.5px solid rgba(0,0,0,0.1);height:100px;position:fixed;top:0;left:0;right:0;z-index:100;box-sizing:border-box}
html.m-desktop-wide .header-left .logo-container{display:flex;align-items:center;height:50px}
html.m-desktop-wide .logo-dynamic img{height:44px;width:auto;display:block;object-fit:contain}
html.m-desktop-wide .logo-dynamic.fallback-text{display:flex;flex-direction:column;line-height:1}
html.m-desktop-wide .logo-dynamic.fallback-text .line1{font-weight:600;letter-spacing:-0.3px}
html.m-desktop-wide .logo-dynamic.fallback-text .line2{font-weight:600;letter-spacing:-0.3px}
html.m-desktop-wide .header-center{text-align:center}
html.m-desktop-wide #currentTime{font-size:26px;font-weight:700;color:#111;font-variant-numeric:tabular-nums;letter-spacing:-0.5px;line-height:1}
html.m-desktop-wide #currentDate{font-size:15px;font-weight:500;color:#6e6e73;letter-spacing:0.5px;margin-top:6px}
html.m-desktop-wide .header-right{text-align:right;display:flex;align-items:center;gap:36px}
html.m-desktop-wide .switch{position:relative;display:inline-block;width:44px;height:24px}
html.m-desktop-wide .switch input{opacity:0;width:0;height:0}
html.m-desktop-wide .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#d1d1d6;transition:.2s;border-radius:9999px;border:1px solid rgba(0,0,0,0.15)}
html.m-desktop-wide .slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;top:2.5px;background:#fff;transition:.2s;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,0.2)}
html.m-desktop-wide .switch input:checked + .slider{background:#0a84ff}
html.m-desktop-wide .switch input:checked + .slider:before{transform:translateX(20px);background:#fff}
html.m-desktop-wide .live-badge{background:#34c759;color:white;padding:4px 10px;border-radius:10px;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;animation:pulse 2s infinite}
html.m-desktop-wide .order-count{font-size:18px;font-weight:600;color:#111;line-height:1.2}
html.m-desktop-wide .btn-gear{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;border:1px solid rgba(0,0,0,0.12);background:rgba(255,255,255,0.9);text-decoration:none;line-height:1;color:#1d1d1f;transition:all 0.15s ease;font-size:14px;cursor:pointer}
html.m-desktop-wide .btn-gear svg{width:18px;height:18px}
html.m-desktop-wide .btn-gear:hover{background:rgba(0,0,0,0.02);border-color:rgba(0,0,0,0.18);transform:translateY(-1px)}
@keyframes pulse{0%{opacity:1}50%{opacity:.7}100%{opacity:1}}
html.m-desktop-wide .m-desktop-sidebar{display:flex;flex-direction:column;position:fixed;left:0;top:var(--m-desktop-topbar-height);bottom:0;width:var(--m-desktop-sidebar-width);background:rgba(255,255,255,.82);backdrop-filter:blur(18px) saturate(180%);-webkit-backdrop-filter:blur(18px) saturate(180%);border-right:1px solid rgba(0,0,0,.08);z-index:25;padding:22px 16px}
html.m-desktop-wide .m-desktop-nav{display:flex;flex-direction:column;gap:9px}
html.m-desktop-wide .m-desktop-nav-item{min-height:44px;display:flex;align-items:center;gap:7px;border:none;border-radius:12px;background:transparent;color:#6b7280;padding:0 4px 0 8px;font-weight:750;font-size:14px;text-align:left;min-width:0;overflow:hidden}
html.m-desktop-wide .m-desktop-nav-item .m-svg-icon,
html.m-desktop-wide .m-desktop-settings .m-svg-icon{width:16px;height:16px;color:#6b7280}
html.m-desktop-wide .m-desktop-nav-item span,
html.m-desktop-wide .m-desktop-settings span{line-height:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.m-desktop-wide .m-desktop-nav-item.active{background:rgba(29,78,216,.08);color:#1d4ed8}
html.m-desktop-wide .m-desktop-nav-item.active .m-svg-icon{color:#1d4ed8}
html.m-desktop-wide .m-desktop-nav-item em{margin-left:auto;flex:0 0 auto;min-width:16px;max-width:20px;background:#2563eb;color:#fff;font-size:9px;line-height:1;font-style:normal;border-radius:999px;padding:3px 4px;text-align:center}
html.m-desktop-wide .m-desktop-util{display:none}
html.m-desktop-wide .m-desktop-util-title{text-transform:uppercase;font-size:11px;letter-spacing:.08em;font-weight:1000;color:#6b7280;margin-bottom:12px}
html.m-desktop-wide .m-desktop-util-row{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:12px;font-weight:850;color:#374151}
html.m-desktop-wide .m-desktop-util-badge{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:1000}
html.m-desktop-wide .m-desktop-util-row strong{margin-left:auto}
html.m-desktop-wide .m-desktop-settings{min-height:44px;display:flex;align-items:center;gap:7px;margin-top:20px;border:none;border-radius:12px;background:transparent;color:#6b7280;padding:0 4px 0 8px;text-align:left;font-weight:750;font-size:14px}
html.m-desktop-wide .m-desktop-settings:hover{background:rgba(29,78,216,.06);color:#1d4ed8}
html.m-desktop-wide .m-desktop-settings:hover .m-svg-icon{color:#1d4ed8}
html.m-desktop-wide .m-desktop-dashboard-link{min-height:42px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;border-radius:12px;background:#34c759;color:#fff;text-decoration:none;font-weight:850;font-size:14px;box-shadow:0 10px 22px rgba(52,199,89,.18)}
html.m-desktop-wide .m-desktop-dashboard-link:hover{background:#2fb84f;transform:translateY(-1px)}
html.m-desktop-wide .m-desktop-dashboard-link .m-svg-icon{width:16px;height:16px;color:#fff}
html.m-desktop-wide .m-header,html.m-desktop-wide .m-tabbar{display:none}
html.m-desktop-wide .m-sheet-backdrop{background:transparent;z-index:38}
html.m-desktop-wide .m-sheet{
  left:auto;
  right:24px;
  top:auto;
  bottom:auto;
  width:240px;
  max-height:calc(100vh - 160px);
  overflow:auto;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  box-shadow:0 18px 38px rgba(15,23,42,.10),0 4px 10px rgba(15,23,42,.05);
  padding:10px 8px;
  background:rgba(255,255,255,.98);
  z-index:120;
  transform-origin:top right;
  animation:mDesktopSheetIn .18s ease-out both;
}
html.m-desktop-wide .btn-gear.menu-open{background:rgba(29,78,216,.08);border-color:rgba(29,78,216,.18);color:#1d4ed8}
html.m-desktop-wide.theme-dark .btn-gear.menu-open{background:rgba(100,210,255,.16);border-color:rgba(100,210,255,.24);color:#64d2ff}
@keyframes mDesktopSheetIn{
  from{opacity:0;transform:translateY(-6px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
html.m-desktop-wide .m-desktop-settings.menu-open{background:rgba(29,78,216,.08);color:#1d4ed8}
html.m-desktop-wide .m-desktop-settings.menu-open .m-svg-icon{color:#1d4ed8}
html.m-desktop-wide .m-sheet-handle,
html.m-desktop-wide .m-sheet-title{display:none}
html.m-desktop-wide .m-sheet-list{gap:9px}
html.m-desktop-wide .m-sheet-item,
html.m-desktop-wide .m-sheet-close{
  min-height:44px;
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  margin:0;
  padding:0 4px 0 8px;
  border:none;
  border-radius:12px;
  background:transparent;
  color:#6b7280;
  text-align:left;
  font-size:14px;
  font-weight:750;
  line-height:1;
  text-decoration:none;
  font-family:inherit;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
html.m-desktop-wide .m-sheet-item:hover,
html.m-desktop-wide .m-sheet-close:hover{background:rgba(29,78,216,.08);color:#1d4ed8}
html.m-desktop-wide .m-main{position:fixed;left:var(--m-desktop-sidebar-width);right:0;top:var(--m-desktop-topbar-height);bottom:0;overflow-y:auto;padding:30px var(--m-desktop-gutter) 42px;transition:right .25s ease}
html.m-desktop-wide .m-day-header{display:block;margin:0 0 12px}
html.m-desktop-wide .m-day-menu,html.m-desktop-wide .m-day-ok{display:none}
html.m-desktop-wide .m-day-title{font-size:28px;font-weight:800;letter-spacing:-.03em;margin-bottom:18px;color:#1d1d1f}
html.m-desktop-wide .m-day-date{display:none}
html.m-desktop-wide .m-day-seg{width:330px;background:rgba(229,229,234,.72);border:1px solid rgba(0,0,0,.06);margin-bottom:22px}
html.m-desktop-wide .m-tech-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:-10px 0 22px}
html.m-desktop-wide .m-tech-shortcut{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 14px;border-radius:999px;box-shadow:none;font-size:13px}
html.m-desktop-wide .m-tech-shortcut::before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.85}
html.m-desktop-wide .m-tech-shortcut.active{box-shadow:0 8px 18px rgba(37,99,235,.14)}
html.m-desktop-wide .m-day-stats{grid-template-columns:repeat(3,minmax(170px,1fr));gap:16px;margin-bottom:24px}
html.m-desktop-wide .m-day-stat{position:relative;min-height:96px;display:block;border-radius:14px;padding:24px 18px 18px;background:rgba(255,255,255,.82);border-color:rgba(0,0,0,.06);box-shadow:0 10px 26px rgba(0,0,0,.04)}
html.m-desktop-wide .m-day-stat .m-day-stat-ico{position:absolute;right:18px;top:18px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#60a5fa}
html.m-desktop-wide .m-day-stat .m-day-stat-ico.ok{color:#22c55e}
html.m-desktop-wide .m-day-stat .m-day-stat-ico.time{color:#fb7185}
html.m-desktop-wide .m-day-stat .m-day-stat-ico .m-svg-icon{width:16px;height:16px}
html.m-desktop-wide .m-day-stat strong{display:block;font-size:22px;font-weight:800;line-height:1;margin-top:0}
html.m-desktop-wide .m-day-stat span:last-child{display:block;font-size:12px;margin-top:8px}
html.m-desktop-wide .m-day-toolbar{display:flex;justify-content:flex-end;margin:0 0 16px}
html.m-desktop-wide .m-calendar-btn{background:#fff;color:#374151;min-height:36px;border-radius:8px}
html.m-desktop-wide .m-day-view-toggle{display:flex;gap:4px;margin-left:auto;background:#eef1f5;border-radius:9px;padding:3px}
html.m-desktop-wide .m-day-view-toggle button{border:none;border-radius:7px;background:transparent;padding:7px 10px;color:#6b7280;font-weight:900}
html.m-desktop-wide .m-day-view-toggle button.active{background:#fff;color:#2563eb;box-shadow:0 4px 12px rgba(0,0,0,.06)}
html.m-desktop-wide .m-day-list{gap:0;border:1px solid rgba(0,0,0,.06);border-radius:16px;overflow:hidden;background:rgba(255,255,255,.86);box-shadow:0 10px 30px rgba(0,0,0,.04)}
html.m-desktop-wide .m-day-card{border:none;border-bottom:1px solid rgba(0,0,0,.06);border-radius:0;box-shadow:none;display:grid;grid-template-columns:minmax(260px,1fr) minmax(240px,.9fr) minmax(190px,.7fr);align-items:stretch;min-height:126px;cursor:pointer;background:rgba(255,255,255,.9)}
html.m-desktop-wide .m-day-card > *{min-width:0}
html.m-desktop-wide .m-day-list-card-mode{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;border:none;background:transparent;overflow:visible}
html.m-desktop-wide .m-day-list-card-mode .m-day-card{display:block;border:1px solid rgba(0,0,0,.08);border-radius:18px;min-height:0;overflow:hidden;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(0,0,0,.045)}
html.m-desktop-wide .m-day-list-card-mode .m-day-card-head{grid-template-columns:52px 1fr 18px}
html.m-desktop-wide .m-day-list-card-mode .m-day-card-head::before{display:none}
html.m-desktop-wide .m-day-list-card-mode .m-day-tooth{grid-column:1}
html.m-desktop-wide .m-day-list-card-mode .m-day-card-head > div:nth-child(2){grid-column:2}
html.m-desktop-wide .m-day-list-card-mode .m-day-task-box{border-left:0;border-right:0;border-top:1px solid #eef0f3}
html.m-desktop-wide .m-day-list-card-mode .m-day-extra{border-top:1px solid #eef0f3}
html.m-desktop-wide .m-day-list-calendar-mode{overflow-x:auto}
html.m-desktop-wide .m-day-list-calendar-mode .m-day-card{grid-template-columns:minmax(300px,1fr) minmax(280px,1.1fr) minmax(220px,.75fr);min-height:132px}
html.m-desktop-wide .m-day-list-calendar-mode .m-day-card-head{grid-template-columns:64px 42px minmax(0,1fr)}
html.m-desktop-wide .m-day-list-calendar-mode .m-day-extra{background:#fbfcff}
html.m-desktop-wide .m-day-card.selected{background:#f8fbff;box-shadow:inset 3px 0 0 #2563eb}
html.m-desktop-wide .m-day-card-head{grid-template-columns:76px 52px 1fr;gap:14px;padding:18px}
html.m-desktop-wide .m-day-card-head::before{content:attr(data-time);font-size:13px;font-weight:1000;color:#2563eb;align-self:start}
html.m-desktop-wide .m-day-tooth{grid-column:2;width:40px;height:40px;border-radius:12px;font-size:0;background:#f3f4f6;color:#6b7280}
html.m-desktop-wide .m-day-tooth .m-svg-icon{width:18px;height:18px}
html.m-desktop-wide .m-day-card-head > div:nth-child(2){grid-column:3}
html.m-desktop-wide .m-day-chevron,html.m-desktop-wide .m-day-next-label,html.m-desktop-wide .m-day-time-row span:first-child{display:none}
html.m-desktop-wide .m-day-praxis{font-size:13px;color:#6e6e73;margin-bottom:6px;font-weight:800}
html.m-desktop-wide .m-day-patient{font-size:20px;font-weight:800;letter-spacing:-.02em}
html.m-desktop-wide .m-day-task-box{margin:0;border-radius:0;border:none;border-left:1px solid #eef0f3;border-right:1px solid #eef0f3;background:#fff;padding:18px}
html.m-desktop-wide .m-day-task-box::before{content:"Aufgaben";display:block;font-size:12px;font-weight:1000;color:#374151;margin-bottom:6px}
html.m-desktop-wide .m-day-task{font-size:12px;margin:6px 0;gap:8px}
html.m-desktop-wide .m-day-task input{width:15px;height:15px;border-radius:4px}
html.m-desktop-wide .m-info-list span{display:inline-flex;align-items:center;gap:6px}
html.m-desktop-wide .m-info-list span .m-svg-icon{width:14px;height:14px;color:#6b7280}
html.m-desktop-wide .m-day-extra{padding:18px;font-size:12px;color:#374151;font-weight:850}
html.m-desktop-wide .m-day-extra strong{display:block;color:#6b7280;font-size:11px;margin-bottom:4px}
html.m-desktop-wide .m-day-detail-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;min-height:32px;padding:0 12px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#2563eb;font-weight:1000;cursor:pointer}
html.m-desktop-wide .m-day-detail-btn:hover{background:#eff6ff}
html.m-desktop-wide .m-desktop-timeline{display:none;flex-direction:column;position:fixed;right:0;top:var(--m-desktop-topbar-height);bottom:0;width:var(--m-desktop-timeline-width);padding:30px 26px 24px;background:rgba(255,255,255,.88);backdrop-filter:blur(18px) saturate(180%);-webkit-backdrop-filter:blur(18px) saturate(180%);border-left:1px solid rgba(0,0,0,.08);z-index:20;overflow-y:auto}
html.m-desktop-wide .m-desktop-timeline.is-visible{display:flex}
html.m-desktop-wide .m-desktop-timeline.is-visible ~ .m-main{right:var(--m-desktop-timeline-width)}
html.m-desktop-wide:has(.m-desktop-timeline.is-visible) .m-main{right:var(--m-desktop-timeline-width)}
html.m-desktop-wide .m-desktop-panel-head{display:flex;align-items:center;gap:10px;margin-bottom:22px}
html.m-desktop-wide .m-desktop-panel-head h2{font-size:18px;font-weight:800;color:#1d1d1f;margin-right:auto}
html.m-desktop-wide .m-desktop-panel-head span{background:rgba(37,99,235,.08);color:#2563eb;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:1000}
html.m-desktop-wide .m-desktop-panel-head button{border:none;background:#f3f4f6;border-radius:999px;width:28px;height:28px;color:#6b7280}
html.m-desktop-wide .m-desktop-timeline-body{flex:1}
html.m-desktop-wide .m-desktop-empty{border:1px dashed #d1d5db;border-radius:14px;padding:18px;color:#6b7280;font-weight:850;text-align:center}
html.m-desktop-wide .m-desktop-timeline .m-timeline-item{grid-template-columns:22px 1fr}
html.m-desktop-wide .m-desktop-timeline .m-timeline-dot{width:8px;height:8px}
html.m-desktop-wide .m-desktop-timeline .m-timeline-body{border-bottom:1px solid #eef0f3;padding-bottom:18px;margin-bottom:2px}
html.m-desktop-wide .m-desk-media-preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
html.m-desktop-wide .m-desk-media-thumb{display:block;width:74px;height:58px;border-radius:10px;overflow:hidden;border:1px solid #e5e7eb;background:#f8fafc}
html.m-desktop-wide .m-desk-media-thumb img{width:100%;height:100%;object-fit:cover;display:block}
html.m-desktop-wide .m-desk-media-file{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e5e7eb;color:#374151;text-decoration:none;font-size:12px}
html.m-desktop-wide .m-desk-media-file strong{font-weight:1000}
html.m-desktop-wide .m-desk-link-preview{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;margin-top:10px;padding:10px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#111827;text-decoration:none}
html.m-desktop-wide .m-desk-link-preview > span{width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#ffedd5;color:#f97316;font-weight:1000}
html.m-desktop-wide .m-desk-link-preview > span .m-svg-icon{width:14px;height:14px}
html.m-desktop-wide .m-desk-link-preview strong{display:block;font-size:12px;font-weight:1000}
html.m-desktop-wide .m-desk-link-preview small{display:block;margin-top:2px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
html.m-desktop-wide .m-desktop-add-entry{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e5e7eb;background:#fff;border-radius:8px;font-weight:850;color:#374151;margin-top:14px}
html.m-desktop-wide .m-desktop-add-entry .m-svg-icon{width:14px;height:14px}
html.m-desktop-wide .m-desktop-record{margin-top:10px;border-radius:8px;min-height:44px}
html.m-desktop-wide .m-desktop-record .m-svg-icon{width:16px;height:16px}
html.m-desktop-wide #mDetailBackdrop{background:transparent;pointer-events:none}
html.m-desktop-wide .m-detail-sheet{
  left:calc(var(--m-desktop-sidebar-width) + var(--m-desktop-gutter));
  right:calc(var(--m-desktop-timeline-width) + var(--m-desktop-gutter));
  top:124px;
  bottom:32px;
  width:auto;
  max-width:none;
  height:auto;
  max-height:none;
  border-radius:18px;
  padding:14px 16px 18px;
  box-shadow:0 22px 70px rgba(0,0,0,.22);
}
html.m-desktop-wide .m-detail-sheet .m-sheet-handle{display:none}
html.m-desktop-wide .m-detail-chrome{height:44px;justify-content:flex-end}
html.m-desktop-wide .m-detail-sheet .m-sheet-list{height:calc(100% - 44px)}
html.m-desktop-wide .m-detail-sheet .m-sheet-list{height:100%}
html.m-desktop-wide .m-detail-hero{border-radius:16px;padding:18px 54px 18px 88px;min-height:84px}
html.m-desktop-wide .m-detail-icon{left:18px;top:18px;width:54px;height:54px}
html.m-desktop-wide .m-detail-title{font-size:28px;line-height:1.05}
html.m-desktop-wide .m-detail-sub{font-size:14px}
html.m-desktop-wide .m-detail-tabs{margin-top:4px}
html.m-desktop-wide .m-detail-tabs{grid-template-columns:repeat(3,1fr)}
html.m-desktop-wide .m-detail-tab[data-tab="timeline"]{display:none}
html.m-desktop-wide .m-detail-tab{font-size:13px;padding:13px 6px}
html.m-desktop-wide .m-detail-panel{padding-right:8px}
html.m-desktop-wide .m-detail-actions{padding-top:8px}
html.m-desktop-wide .m-note-editor-dialog{width:min(760px,calc(100vw - var(--m-desktop-timeline-width) - var(--m-desktop-sidebar-width) - 88px))}
html.m-desktop-wide.theme-dark body{background:#0f1115;color:#e5e7eb}
html.m-desktop-wide.theme-dark .m-desktop-topbar,
html.m-desktop-wide.theme-dark .m-desktop-sidebar,
html.m-desktop-wide.theme-dark .m-desktop-timeline{background:rgba(17,24,39,.96);border-color:rgba(255,255,255,.09)}
html.m-desktop-wide.theme-dark .m-logo-script,
html.m-desktop-wide.theme-dark .m-desktop-clock strong,
html.m-desktop-wide.theme-dark .m-desktop-panel-head h2,
html.m-desktop-wide.theme-dark .m-day-title,
html.m-desktop-wide.theme-dark .m-day-patient,
html.m-desktop-wide.theme-dark .m-day-praxis{color:#f5f5f7}
html.m-desktop-wide.theme-dark .m-logo-sub,
html.m-desktop-wide.theme-dark .m-desktop-clock span,
html.m-desktop-wide.theme-dark .m-desktop-actions,
html.m-desktop-wide.theme-dark .m-desktop-nav-item,
html.m-desktop-wide.theme-dark .m-desktop-gear,
html.m-desktop-wide.theme-dark .m-desktop-settings,
html.m-desktop-wide.theme-dark .m-day-extra,
html.m-desktop-wide.theme-dark .m-day-extra strong{color:#c7c7cc}
html.m-desktop-wide.theme-dark .m-main{background:#0f1115}
html.m-desktop-wide.theme-dark .m-day-seg,
html.m-desktop-wide.theme-dark .m-day-view-toggle{background:#1f2937;border-color:rgba(255,255,255,.08)}
html.m-desktop-wide.theme-dark .m-day-seg-btn[aria-selected="true"],
html.m-desktop-wide.theme-dark .m-day-view-toggle button.active,
html.m-desktop-wide.theme-dark .m-calendar-btn,
html.m-desktop-wide.theme-dark .m-day-detail-btn,
html.m-desktop-wide.theme-dark .m-day-stat,
html.m-desktop-wide.theme-dark .m-day-list,
html.m-desktop-wide.theme-dark .m-day-card,
html.m-desktop-wide.theme-dark .m-day-task-box,
html.m-desktop-wide.theme-dark .m-desktop-add-entry{background:#111827;border-color:rgba(255,255,255,.10);color:#f5f5f7}
html.m-desktop-wide.theme-dark .m-day-card.selected{background:#172033;box-shadow:inset 3px 0 0 #64d2ff}
html.m-desktop-wide.theme-dark .m-day-list-calendar-mode .m-day-extra{background:#111827;color:#d1d5db}
html.m-desktop-wide.theme-dark .m-day-list-calendar-mode .m-day-extra strong{color:#a1a1aa}
html.m-desktop-wide.theme-dark .m-day-card,
html.m-desktop-wide.theme-dark .m-day-task-box,
html.m-desktop-wide.theme-dark .m-timeline-body{border-color:rgba(255,255,255,.10)}
html.m-desktop-wide.theme-dark .m-desktop-empty{border-color:rgba(255,255,255,.18);color:#a1a1a6}
html.m-desktop-wide.theme-dark .m-desk-media-thumb,
html.m-desktop-wide.theme-dark .m-desk-media-file{background:#0f172a;border-color:rgba(255,255,255,.12);color:#f5f5f7}
html.m-desktop-wide.theme-dark .m-desk-link-preview{background:rgba(249,115,22,.12);border-color:rgba(251,146,60,.24);color:#f5f5f7}
html.m-desktop-wide.theme-dark .m-desk-link-preview small{color:#c7c7cc}
html.m-desktop-wide.theme-dark .m-sheet{background:rgba(17,24,39,.98);border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 38px rgba(0,0,0,.45),0 4px 10px rgba(0,0,0,.3)}
html.m-desktop-wide.theme-dark .m-desktop-settings.menu-open{background:rgba(100,210,255,.16);color:#64d2ff}
html.m-desktop-wide.theme-dark .m-desktop-settings.menu-open .m-svg-icon{color:#64d2ff}
html.m-desktop-wide.theme-dark .m-sheet-item,
html.m-desktop-wide.theme-dark .m-sheet-close{background:transparent;border:0;color:#c7c7cc}
html.m-desktop-wide.theme-dark .m-sheet-item:hover,
html.m-desktop-wide.theme-dark .m-sheet-close:hover{background:rgba(100,210,255,.16);color:#64d2ff}
html.m-desktop-wide.theme-dark .m-desktop-gear{background:rgba(28,28,30,.9);border-color:rgba(255,255,255,.08);color:#e5e5ea}
html.m-desktop-wide.theme-dark .m-desktop-dashboard-link{background:#30d158;color:#06120a}
html.m-desktop-wide.theme-dark .m-desktop-dashboard-link .m-svg-icon{color:#06120a}
html.m-desktop-wide.theme-dark .header{background:#000;border-bottom-color:rgba(255,255,255,0.06)}
html.m-desktop-wide.theme-dark #currentTime{color:#fafafa}
html.m-desktop-wide.theme-dark #currentDate{color:#a1a1a6}
html.m-desktop-wide.theme-dark .order-count{color:#fafafa}
html.m-desktop-wide.theme-dark .live-badge{background:#30d158}
html.m-desktop-wide.theme-dark .btn-gear{background:rgba(28,28,30,0.9);border-color:rgba(255,255,255,0.08);color:#e5e5ea}
html.m-desktop-wide.theme-dark .btn-gear:hover{background:rgba(255,255,255,0.06)}

@media (min-width: 960px) and (max-width: 1280px){
  html.m-desktop-wide{--m-desktop-sidebar-width:210px;--m-desktop-timeline-width:360px;--m-desktop-gutter:18px}
  html.m-desktop-wide .header{padding:24px 40px}
  html.m-desktop-wide .m-desktop-sidebar{padding:18px 12px}
  html.m-desktop-wide .m-main{padding:24px var(--m-desktop-gutter) 34px}
  html.m-desktop-wide .m-day-stats{grid-template-columns:1fr;gap:10px}
  html.m-desktop-wide .m-day-stat{min-height:74px}
  html.m-desktop-wide .m-day-list-calendar-mode .m-day-card{
    display:block;
    min-height:0;
  }
  html.m-desktop-wide .m-day-list-calendar-mode .m-day-card-head{
    grid-template-columns:64px 52px minmax(0,1fr);
    padding:16px;
  }
  html.m-desktop-wide .m-day-list-calendar-mode .m-day-task-box{
    border-left:0;
    border-right:0;
    border-top:1px solid #eef0f3;
  }
  html.m-desktop-wide .m-day-list-calendar-mode .m-day-extra{
    border-top:1px solid #eef0f3;
  }
  html.m-desktop-wide .m-day-task span,
  html.m-desktop-wide .m-day-patient,
  html.m-desktop-wide .m-day-praxis{overflow-wrap:anywhere}
  html.m-desktop-wide .m-desk-link-preview small{max-width:210px}
}

@media (max-width: 959px){
  html.m-desktop-wide body{overflow:auto;background:#f7f8fb}
  html.m-desktop-wide .m-desktop-topbar{position:sticky;grid-template-columns:1fr auto;height:auto;min-height:58px;padding:10px 14px}
  html.m-desktop-wide .m-desktop-clock{display:none}
  html.m-desktop-wide .m-desktop-actions{font-size:11px;gap:8px}
  html.m-desktop-wide .m-desktop-sidebar{position:static;width:auto;padding:10px 12px;border-right:0;border-bottom:1px solid rgba(17,24,39,.08)}
  html.m-desktop-wide .m-desktop-nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:2px}
  html.m-desktop-wide .m-desktop-nav-item{flex:0 0 auto;min-height:36px;font-size:12px;padding:0 10px}
  html.m-desktop-wide .m-desktop-util,
  html.m-desktop-wide .m-desktop-settings{display:none}
  html.m-desktop-wide .m-main{position:relative;left:auto;right:auto;top:auto;bottom:auto;overflow:visible;padding:16px 14px 20px}
  html.m-desktop-wide .m-day-toolbar{margin:0 0 10px;justify-content:flex-start}
  html.m-desktop-wide .m-day-seg{width:100%}
  html.m-desktop-wide .m-tech-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
  html.m-desktop-wide .m-tech-shortcut{border-radius:14px}
  html.m-desktop-wide .m-day-stats{grid-template-columns:1fr;gap:8px}
  html.m-desktop-wide .m-day-list{border:none;background:transparent;display:grid;gap:10px}
  html.m-desktop-wide .m-day-card,
  html.m-desktop-wide .m-day-list-calendar-mode .m-day-card{display:block;border:1px solid #e5e7eb;border-radius:16px;min-height:0;background:#fff}
  html.m-desktop-wide .m-day-card-head,
  html.m-desktop-wide .m-day-list-calendar-mode .m-day-card-head{grid-template-columns:42px 1fr 18px;padding:12px}
  html.m-desktop-wide .m-day-card-head::before{display:none}
  html.m-desktop-wide .m-day-tooth{grid-column:1;width:42px;height:42px}
  html.m-desktop-wide .m-day-card-head > div:nth-child(2){grid-column:2}
  html.m-desktop-wide .m-day-task-box{border:0;border-top:1px solid #eef0f3}
  html.m-desktop-wide .m-day-extra{border-top:1px solid #eef0f3}
  html.m-desktop-wide .m-desktop-timeline{position:relative;right:auto;top:auto;bottom:auto;width:auto;display:block;margin:0 14px 24px;padding:16px;border:1px solid #e5e7eb;border-radius:16px;z-index:1}
  html.m-desktop-wide .m-detail-sheet{right:auto;left:10px;width:calc(100vw - 20px);max-width:calc(100vw - 20px)}
}

@media (min-width: 99999px){
  body{
    background:#f7f8fb;
    min-height:100vh;
    overflow:hidden;
  }
  .theme-dark body{background:#101114}
  .m-desktop-topbar{
    display:grid;
    grid-template-columns:210px 1fr 260px;
    align-items:center;
    position:fixed;
    left:0;right:0;top:0;
    height:62px;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid rgba(17,24,39,.08);
    z-index:35;
    padding:0 22px;
  }
  .theme-dark .m-desktop-topbar{background:rgba(20,21,24,.96);border-bottom-color:rgba(255,255,255,.08)}
  .m-logo-script{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',system-ui,sans-serif;font-size:17px;font-weight:900;line-height:1;color:#1f2937;letter-spacing:-.01em}
  .m-logo-sub{text-transform:uppercase;letter-spacing:.28em;font-size:7px;font-weight:900;color:#6b7280;margin-left:18px;margin-top:3px}
  .theme-dark .m-logo-script{color:#f5f5f7}
  .m-desktop-clock{text-align:center;line-height:1.15}
  .m-desktop-clock strong{display:block;font-size:22px;font-weight:1000;color:#111827}
  .theme-dark .m-desktop-clock strong{color:#f5f5f7}
  .m-desktop-clock span{display:block;font-size:12px;color:#6b7280;font-weight:800;margin-top:3px}
  .m-desktop-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:#374151;font-weight:900;font-size:13px}
  .m-live-dot{font-size:10px;color:#fff;background:#22c55e;border-radius:999px;padding:4px 8px;font-weight:1000}
  .m-desktop-toggle{width:38px;height:22px;border:none;border-radius:999px;background:#e5e7eb;position:relative}
  .m-desktop-toggle::after{content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.12)}
  .m-desktop-gear{border:none;background:transparent;color:#6b7280;font-size:16px}
  .m-desktop-sidebar{
    display:flex;
    flex-direction:column;
    position:fixed;
    left:0;top:62px;bottom:0;
    width:210px;
    background:rgba(255,255,255,.96);
    border-right:1px solid rgba(17,24,39,.08);
    z-index:25;
    padding:22px 16px;
  }
  .theme-dark .m-desktop-sidebar{background:rgba(20,21,24,.96);border-right-color:rgba(255,255,255,.08)}
  .m-desktop-nav{display:flex;flex-direction:column;gap:7px}
  .m-desktop-nav-item{
    min-height:42px;
    display:flex;align-items:center;gap:12px;
    border:none;border-radius:11px;
    background:transparent;color:#4b5563;
    padding:0 12px;
    font-weight:900;font-size:14px;text-align:left;
  }
  .m-desktop-nav-item.active{background:rgba(37,99,235,.08);color:#2563eb}
  .m-desktop-nav-item em{margin-left:auto;background:#2563eb;color:#fff;font-size:10px;font-style:normal;border-radius:999px;padding:2px 6px}
  .theme-dark .m-desktop-nav-item{color:#c7c7cc}
  .m-desktop-util{margin-top:auto;padding-top:22px}
  .m-desktop-util-title{text-transform:uppercase;font-size:11px;letter-spacing:.08em;font-weight:1000;color:#6b7280;margin-bottom:12px}
  .m-desktop-util-row{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:12px;font-weight:850;color:#374151}
  .theme-dark .m-desktop-util-row{color:#d1d5db}
  .m-desktop-util-badge{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:1000}
  .m-desktop-util-row strong{margin-left:auto}
  .m-desktop-settings{margin-top:20px;border:none;background:transparent;color:#6b7280;text-align:left;font-weight:900}
  .m-header,
  .m-tabbar{display:none}
  .m-main{
    position:fixed;
    left:210px;
    right:390px;
    top:62px;
    bottom:0;
    overflow-y:auto;
    padding:28px 32px 40px;
  }
  .m-day-header{display:block;margin:0 0 12px}
  .m-day-menu,.m-day-ok{display:none}
  .m-day-title{font-size:25px;margin-bottom:16px}
  .m-day-date{display:none}
  .m-day-seg{width:330px;background:#eef1f5;border:1px solid rgba(17,24,39,.06);margin-bottom:22px}
  .m-day-stats{grid-template-columns:repeat(3,minmax(170px,1fr));gap:16px;margin-bottom:24px}
  .m-day-stat{min-height:96px;border-radius:12px;padding:18px 18px;box-shadow:none;border-color:#e5e7eb}
  .m-day-stat strong{font-size:24px}
  .m-day-stat span:last-child{font-size:12px}
  .m-day-toolbar{display:flex;justify-content:flex-end;margin-top:-58px;margin-bottom:18px}
  .m-calendar-btn{background:#fff;color:#374151;min-height:36px;border-radius:8px}
  #viewHome .m-section-head{margin-top:4px}
  #viewHome .m-section-title{font-size:17px}
  .m-day-view-toggle{display:flex;gap:4px;margin-left:auto;background:#eef1f5;border-radius:9px;padding:3px}
  .m-day-view-toggle button{border:none;border-radius:7px;background:transparent;padding:7px 10px;color:#6b7280;font-weight:900}
  .m-day-view-toggle button.active{background:#fff;color:#2563eb;box-shadow:0 4px 12px rgba(0,0,0,.06)}
  .m-day-list{gap:0;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}
  .m-day-card{
    border:none;
    border-bottom:1px solid #eef0f3;
    border-radius:0;
    box-shadow:none;
    display:grid;
    grid-template-columns:1fr 250px 180px;
    align-items:stretch;
    min-height:122px;
    cursor:pointer;
  }
  .m-day-card:last-child{border-bottom:none}
  .m-day-card.next{background:#fff}
  .m-day-card.selected{background:#f8fbff;box-shadow:inset 3px 0 0 #2563eb}
  .m-day-card-head{grid-template-columns:76px 52px 1fr;gap:14px;padding:18px}
  .m-day-card-head::before{content:attr(data-time);font-size:13px;font-weight:1000;color:#2563eb;align-self:start}
  .m-day-tooth{grid-column:2;width:52px;height:52px;border-radius:12px;font-size:26px}
  .m-day-card-head > div:nth-child(2){grid-column:3}
  .m-day-chevron{display:none}
  .m-day-next-label{display:none}
  .m-day-time-row{justify-content:flex-start;gap:10px}
  .m-day-time-row span:first-child{display:none}
  .m-day-praxis{font-size:12px;color:#6b7280;margin-bottom:6px}
  .m-day-patient{font-size:18px;font-weight:1000}
  .m-day-task-box{margin:0;border-radius:0;border:none;border-left:1px solid #eef0f3;border-right:1px solid #eef0f3;background:#fff;padding:18px}
  .m-day-task-box::before{content:"Aufgaben";display:block;font-size:12px;font-weight:1000;color:#374151;margin-bottom:6px}
  .m-day-task{font-size:12px;margin:6px 0}
  .m-day-extra{padding:18px;font-size:12px;color:#374151;font-weight:850}
  .m-day-extra strong{display:block;color:#6b7280;font-size:11px;margin-bottom:4px}
  .m-desktop-timeline{
    display:flex;
    flex-direction:column;
    position:fixed;
    right:0;top:62px;bottom:0;
    width:390px;
    padding:28px 22px 24px;
    background:#fff;
    border-left:1px solid rgba(17,24,39,.08);
    z-index:20;
    overflow-y:auto;
  }
  .theme-dark .m-desktop-timeline{background:rgba(20,21,24,.98);border-left-color:rgba(255,255,255,.08)}
  .m-desktop-panel-head{display:flex;align-items:center;gap:10px;margin-bottom:22px}
  .m-desktop-panel-head h2{font-size:16px;font-weight:1000;color:#111827;margin-right:auto}
  .theme-dark .m-desktop-panel-head h2{color:#f5f5f7}
  .m-desktop-panel-head span{background:rgba(37,99,235,.08);color:#2563eb;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:1000}
  .m-desktop-panel-head button{border:none;background:#f3f4f6;border-radius:999px;width:28px;height:28px;color:#6b7280}
  .m-desktop-timeline-body{flex:1}
  .m-desktop-empty{border:1px dashed #d1d5db;border-radius:14px;padding:18px;color:#6b7280;font-weight:850;text-align:center}
  .m-desktop-timeline .m-timeline-item{grid-template-columns:34px 1fr}
  .m-desktop-timeline .m-timeline-dot{width:30px;height:30px}
  .m-desktop-timeline .m-timeline-body{border-bottom:1px solid #eef0f3;padding-bottom:18px;margin-bottom:2px}
  .m-desk-thumbs{display:flex;gap:6px;overflow:hidden;margin-top:6px}
  .m-desk-thumbs img{width:58px;height:42px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb}
  .m-desktop-add-entry{min-height:40px;border:1px solid #e5e7eb;background:#fff;border-radius:8px;font-weight:900;color:#374151;margin-top:14px}
  .m-desktop-record{margin-top:10px;border-radius:8px;min-height:44px}
  .m-detail-sheet{width:680px;max-width:calc(100vw - 430px);left:auto;right:405px;border-radius:22px;max-height:88vh}
}

.m-patient-notes-mount{
  min-height:52vh;
  margin-top:8px;
}
.m-detail-panel[data-panel="notes"]{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.m-detail-panel[data-panel="notes"] .pn-root{
  flex:1;
  min-height:420px;
}
body.dash-awaiting-identity > .m-header,
body.dash-awaiting-identity > .m-main,
body.dash-awaiting-identity > .m-bottom-nav,
body.dash-awaiting-identity > .m-desktop-topbar,
body.dash-awaiting-identity > .m-desktop-sidebar { visibility:hidden; }
.dash-identity-overlay{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:20px;}
.dash-identity-card{width:min(460px,96vw);max-height:calc(100dvh - 40px);overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 20px 40px rgba(0,0,0,.18);}
.dash-identity-card h2{margin:0 0 8px;font-size:22px;text-align:center;}
.dash-identity-card p{margin:0 0 16px;color:#64748b;font-size:14px;line-height:1.45;}
.dash-identity-grid{display:grid;grid-template-columns:1fr;gap:10px;}
.dash-identity-btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;-webkit-text-fill-color:currentColor;-webkit-appearance:none;appearance:none;border-radius:12px;padding:14px 12px;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;}
.dash-identity-btn:hover,.dash-identity-btn.is-busy{border-color:#f97316;background:#fff7ed;}
.dash-identity-btn:disabled{cursor:wait;opacity:.92;}
.dash-identity-btn:focus-visible{outline:3px solid rgba(10,132,255,.35);outline-offset:2px;}
#dashIdentityPwBack{background:#fff;border-color:#cbd5e1;color:#007aff;-webkit-text-fill-color:#007aff;}
#dashIdentityPwSubmit{background:#007aff;border-color:#007aff;color:#fff;-webkit-text-fill-color:#fff;box-shadow:0 5px 14px rgba(0,122,255,.24);}
#dashIdentityPwSubmit:hover,#dashIdentityPwSubmit:active{background:#0066d6;border-color:#0066d6;color:#fff;-webkit-text-fill-color:#fff;}
#dashIdentityPwSubmit:disabled{background:#8fc5ff;border-color:#8fc5ff;color:#fff;-webkit-text-fill-color:#fff;opacity:1;}
.dash-identity-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;}
.dash-identity-chip{display:none;}
.theme-dark .dash-identity-card{background:#1c1c1e;color:#f5f5f7;}
.theme-dark .dash-identity-card p{color:#8e8e93;}
.theme-dark .dash-identity-btn{background:#2c2c2e;border-color:#38383a;color:#f5f5f7;}
.theme-dark #dashIdentityPwBack{background:#2c2c2e;border-color:#48484a;color:#64b5ff;-webkit-text-fill-color:#64b5ff;}
.theme-dark #dashIdentityPwSubmit{background:#0a84ff;border-color:#0a84ff;color:#fff;-webkit-text-fill-color:#fff;}
/* Verbindliche Praxis-Hinweise je Arbeitsart */
.m-guidance-chip {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 5px 9px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.m-quality-guidance {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #f59e0b;
  border-radius: 16px;
  background: #fffbeb;
}

.m-quality-guidance-head span,
.m-quality-guidance-head strong { display: block; }
.m-quality-guidance-head span {
  color: #b45309;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.m-quality-guidance-item {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 13px;
  background: #fff;
}

.m-quality-guidance-item p {
  margin: 6px 0 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.m-quality-guidance-item .m-btn { width: 100%; min-height: 46px; }
.m-quality-guidance-item.is-done { border-color: #bbf7d0; background: #f0fdf4; }
.m-quality-guidance-done { color: #15803d; font-weight: 900; }

/* Mobile Finalrichtung · ruhige, schwebende Designschicht */
@media (max-width:959px){
  :root{
    --m-ink:#171717;
    --m-copy:#5f5d5a;
    --m-soft:#efede9;
    --m-page:#f5f3f0;
    --m-surface:rgba(255,255,255,.94);
    --m-line:rgba(32,29,26,.065);
    --m-shadow:0 10px 28px rgba(41,36,31,.055);
  }
  body{background:var(--m-page);color:var(--m-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;letter-spacing:-.005em}
  body::after{content:"";position:fixed;z-index:25;left:0;right:0;bottom:0;height:116px;pointer-events:none;background:linear-gradient(to bottom,rgba(245,243,240,0),rgba(245,243,240,.88) 48%,var(--m-page) 100%)}
  .m-header{padding:calc(10px + env(safe-area-inset-top)) 18px 8px;background:linear-gradient(to bottom,rgba(245,243,240,.98),rgba(245,243,240,.88));backdrop-filter:blur(20px) saturate(130%);-webkit-backdrop-filter:blur(20px) saturate(130%)}
  .m-header-top{grid-template-columns:42px minmax(0,1fr) 42px 42px;gap:9px}
  .m-menu-icon-btn,.m-assistant-btn,.m-user-pill{width:42px;height:42px;min-width:42px;border:1px solid var(--m-line);border-radius:50%;background:rgba(255,255,255,.86);color:#373532;box-shadow:0 4px 14px rgba(41,36,31,.055)}
  .m-menu-icon-btn .m-svg-icon,.m-assistant-btn .m-svg-icon{width:19px;height:19px;stroke-width:1.65}
  .m-assistant-btn{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.86);color:#373532;font-size:0}
  .m-user-pill{background:#252422;color:#fff;border-color:#252422;box-shadow:0 6px 16px rgba(25,24,22,.14)}
  .m-user-avatar{font-size:11px;letter-spacing:.01em}
  .m-mobile-greeting strong{font-size:18px;line-height:1.12;font-weight:760;letter-spacing:-.035em;color:var(--m-ink)}
  .m-mobile-greeting span{margin-top:3px;color:#85817d;font-size:11px;line-height:1.15;font-weight:520;letter-spacing:0}

  .m-main{padding:9px 18px calc(116px + env(safe-area-inset-bottom))}
  .m-section-title{font-size:17px!important;line-height:1.15;font-weight:760!important;letter-spacing:-.025em!important}
  .m-section-subtitle{font-size:11px;color:#88847f;font-weight:520}
  .m-day-controls-scroll{gap:7px;margin-right:-18px;margin-bottom:11px;padding:2px 18px 4px 0}
  .m-day-seg{padding:3px!important;border-radius:14px!important;background:#eae8e4!important}
  .m-day-seg-btn{height:38px;min-width:57px;padding:0 12px;border-radius:11px;background:transparent;color:#77736f;font-size:11.5px;font-weight:650}
  .m-day-seg-btn[aria-selected="true"]{background:#fff;color:#1c1b19;box-shadow:0 2px 8px rgba(41,36,31,.07)}
  .m-day-status-filter select,.m-tech-more select{height:44px;padding:0 32px 0 14px;border-color:var(--m-line);border-radius:22px;background:rgba(255,255,255,.88);color:#45423f;font-size:12px;font-weight:630;box-shadow:0 3px 12px rgba(41,36,31,.035)}
  .m-tech-shortcut{min-width:54px!important;min-height:44px!important;padding:0 13px!important;border-color:var(--m-line)!important;border-radius:22px!important;background:rgba(255,255,255,.88)!important;color:#57534f!important;font-size:11.5px!important;font-weight:650!important;box-shadow:none!important}
  .m-tech-shortcut.active{background:#252422!important;color:#fff!important;box-shadow:0 6px 14px rgba(25,24,22,.14)!important}
  .m-tech-shortcut-count{opacity:.58;font-size:9px!important}

  .m-day-overview-card{margin-bottom:9px!important}
  .m-day-stats{gap:9px!important;margin-bottom:0!important}
  .m-day-stat{grid-template-columns:24px minmax(0,1fr)!important;min-height:76px!important;padding:10px 11px!important;gap:7px!important;border-color:var(--m-line)!important;border-radius:19px!important;background:var(--m-surface)!important;box-shadow:var(--m-shadow)!important}
  .m-day-stat+.m-day-stat{border-left:1px solid var(--m-line)!important}
  .m-day-stat>.m-svg-icon{width:24px!important;height:24px!important;padding:4px;border-radius:8px;background:#efede9;color:#4b4946;stroke-width:1.7}
  .m-day-stat-copy{column-gap:5px!important}
  .m-day-stat strong{font-size:18px!important;font-weight:780!important;letter-spacing:-.035em}
  .m-day-stat span{color:#6f6b66!important;font-size:9.5px!important;font-weight:610!important;letter-spacing:0}
  .m-day-stat small{color:#9a9691;font-size:8.5px;font-weight:560}
  .m-day-stat.is-next strong{font-size:14px!important;font-weight:730!important;line-height:1.12!important}

  .m-home-time-card{position:relative;margin-bottom:11px!important;padding:11px 12px!important;border:1px solid var(--m-line)!important;border-radius:19px!important;background:var(--m-surface)!important;box-shadow:var(--m-shadow)!important;overflow:hidden}
  .m-home-time-primary{display:flex!important;min-height:46px!important;align-items:center!important;gap:10px!important}
  .m-home-time-summary{display:grid!important;min-width:0;flex:1 1 auto;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;padding:0!important}
  .m-home-time-summary .m-svg-icon{display:block!important;width:32px!important;height:32px!important;padding:7px;border-radius:10px;background:#f1efec;color:#6f6b66!important;stroke-width:1.7}
  .m-home-time-summary>span{display:grid!important;min-width:0;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"status clock" "worked worked";align-items:center!important;column-gap:7px!important;row-gap:3px!important}
  .m-home-time-summary strong{grid-area:status;display:block;min-width:0;overflow:hidden;padding:0;border-radius:0;background:transparent;color:#292724;font-size:12.5px!important;font-weight:730!important;line-height:1.15!important;text-overflow:ellipsis;white-space:nowrap}
  .m-home-time-eyebrow{grid-area:clock;justify-self:end;color:#aaa6a1!important;font-size:9.5px!important;font-weight:620!important;letter-spacing:.01em!important;font-variant-numeric:tabular-nums}
  .m-home-time-summary small{grid-area:worked;color:#85817d;font-size:10.5px;font-weight:540;line-height:1.15}
  .m-home-pause,.m-home-time-primary>.m-btn{min-height:42px!important;border-color:var(--m-line);border-radius:13px;background:#f1efec;color:#4f4b47;font-size:11px!important;font-weight:720!important;box-shadow:none}
  .m-home-time-primary>.m-btn{min-width:108px}
  .m-home-time-card[data-time-state="clocked_in"] .m-home-pause{flex-basis:64px}
  .m-home-time-card[data-time-state="clocked_in"] .m-home-time-primary>.m-btn{min-width:86px}
  .m-home-time-card[data-time-state="clocked_in"] .m-home-time-summary{grid-template-columns:minmax(0,1fr)}
  .m-home-time-card[data-time-state="clocked_in"] .m-home-time-summary .m-svg-icon,.m-home-time-card[data-time-state="clocked_in"] .m-home-time-eyebrow{display:none!important}
  .m-home-time-card[data-time-state="clocked_in"] .m-home-time-summary>span{grid-template-areas:"status status" "worked worked"}
  .m-home-time-primary>.m-btn.m-primary{background:#252422;color:#fff;border-color:#252422;box-shadow:0 6px 14px rgba(25,24,22,.13)}

  #viewHome .m-section-head{margin-top:18px;margin-bottom:10px}
  .m-day-list{gap:9px}
  .m-day-card,.m-card,.m-completion-row,.m-completion-kpis>div,.m-time-panel,.m-time-status-card,.m-time-quick-card{border-color:var(--m-line);background:var(--m-surface);box-shadow:var(--m-shadow)}
  .m-day-card{border-radius:20px}
  html:not(.m-desktop-wide) .m-day-card.next{background:var(--m-surface);border-color:rgba(32,29,26,.11);box-shadow:inset 3px 0 0 #292724,var(--m-shadow)}
  .m-day-card-head{padding:13px 14px!important}
  .m-day-due{color:#8d8882!important;font-size:10px!important;font-weight:620!important}
  .m-day-patient{color:#1d1c1a;font-size:14.5px!important;font-weight:760!important;letter-spacing:-.025em}
  .m-day-dentist-inline{color:#9a9691;font-size:10.5px;font-weight:520}
  .m-day-work-type{margin-top:8px;color:#55514d;font-size:12px;font-weight:590;line-height:1.25}
  .m-status-pill{padding:3px 8px;border:0;font-size:9.5px;font-weight:680}
  .m-status-pill.neu{background:#edf0f3;color:#5b6570}.m-status-pill.in-arbeit{background:#f7eee3;color:#8b5c2b}.m-status-pill.fertig{background:#e9f2ec;color:#3c7250}.m-status-pill.versandt{background:#ecebea;color:#68645f}
  .m-day-guidance{width:27px;height:27px;border-width:1px;border-color:#d8c9b8;border-radius:9px;background:#faf5ef;color:#8a643e;font-size:15px}
  .m-tech-badge{font-weight:600;color:#8a8681!important}
  .m-day-units-metric strong{color:#35322f;font-weight:740!important}
  .m-day-units-metric em{color:#9b9792;font-size:9px}

  .m-search input,.m-input,.m-patient-shipped-toggle{border-color:var(--m-line);background:rgba(255,255,255,.9);box-shadow:0 4px 16px rgba(41,36,31,.035)}
  .m-search input{padding-left:17px;color:#292724;font-size:14px}
  .m-patient-time-seg{background:#eae8e4}
  .m-patient-time-seg button{color:#77736f;font-size:11.5px;font-weight:650}
  .m-patient-time-seg button[aria-selected="true"]{background:#fff;color:#1c1b19;box-shadow:0 2px 8px rgba(41,36,31,.07)}
  .m-patient-shipped-toggle[aria-pressed="true"]{border-color:#252422;background:#252422;color:#fff;box-shadow:none}
  .m-btn.m-primary{background:#252422;border-color:#252422;color:#fff}

  .m-tabbar{left:18px;right:18px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;height:64px;padding:7px 8px;border:1px solid rgba(32,29,26,.08);border-radius:28px;background:rgba(255,255,255,.82);box-shadow:0 18px 45px rgba(35,31,27,.16);backdrop-filter:blur(22px) saturate(125%);-webkit-backdrop-filter:blur(22px) saturate(125%);grid-template-columns:repeat(2,minmax(0,1fr)) 56px repeat(2,minmax(0,1fr));gap:4px}
  .m-tab{width:44px;height:44px;justify-self:center;padding:0;border-radius:15px;color:#aaa6a1;font-size:0}
  .m-tab[aria-current="page"]{background:#f0eeeb;color:#242321;box-shadow:inset 0 0 0 1px rgba(32,29,26,.035)}
  .m-tab-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .m-tab-ico{width:20px;height:20px;stroke-width:1.75}
  .m-fab{width:52px;height:52px;background:#252422;color:#fff;font-size:30px;box-shadow:0 10px 24px rgba(25,24,22,.28)}
  .m-tab-notification{top:0;left:calc(50% + 5px);border-color:#fff}
}

@media (max-width:350px){
  .m-header{padding-left:13px;padding-right:13px}.m-header-top{grid-template-columns:38px minmax(0,1fr) 38px 38px;gap:7px}.m-menu-icon-btn,.m-assistant-btn,.m-user-pill{width:38px;height:38px;min-width:38px}.m-mobile-greeting strong{font-size:16px}.m-main{padding-left:13px;padding-right:13px}.m-tabbar{left:13px;right:13px}
}

@media (max-width:959px){
  html.theme-dark{
    --m-ink:#f3f1ee;
    --m-copy:#b8b4af;
    --m-soft:#2b2926;
    --m-page:#171614;
    --m-surface:rgba(35,33,30,.94);
    --m-line:rgba(255,255,255,.075);
    --m-shadow:none;
  }
  .theme-dark body{background:var(--m-page);color:var(--m-ink)}
  .theme-dark body::after{background:linear-gradient(to bottom,rgba(23,22,20,0),rgba(23,22,20,.9) 48%,var(--m-page) 100%)}
  .theme-dark .m-header{background:linear-gradient(to bottom,rgba(23,22,20,.98),rgba(23,22,20,.88))}
  .theme-dark .m-menu-icon-btn,.theme-dark .m-assistant-btn{background:rgba(45,42,39,.92);border-color:var(--m-line);color:#dedbd7;box-shadow:none}
  .theme-dark .m-user-pill{background:#2d2a27;border-color:rgba(255,255,255,.13);color:#f7f5f2;box-shadow:none}
  .theme-dark .m-user-avatar{border:0;background:transparent;color:#f7f5f2!important;-webkit-text-fill-color:currentColor;font-size:12px;font-weight:900;letter-spacing:.035em}
  .theme-dark .m-mobile-greeting strong{color:#f3f1ee}.theme-dark .m-mobile-greeting span{color:#9d9892}
  .theme-dark .m-day-seg,.theme-dark .m-patient-time-seg{background:#2b2926!important}
  .theme-dark .m-day-seg-btn[aria-selected="true"],.theme-dark .m-patient-time-seg button[aria-selected="true"]{background:#45413d;color:#fff;box-shadow:none}
  .theme-dark .m-day-status-filter select,.theme-dark .m-tech-more select,.theme-dark .m-tech-shortcut{background:rgba(45,42,39,.92)!important;border-color:var(--m-line)!important;color:#c5c1bc!important;box-shadow:none!important}
  .theme-dark .m-tech-shortcut.active{background:#f1efec!important;color:#242321!important}
  .theme-dark .m-day-stat,.theme-dark .m-home-time-card,.theme-dark .m-day-card,.theme-dark .m-card,.theme-dark .m-completion-row,.theme-dark .m-completion-kpis>div,.theme-dark .m-time-panel,.theme-dark .m-time-status-card,.theme-dark .m-time-quick-card{background:var(--m-surface)!important;border-color:var(--m-line)!important;box-shadow:none!important}
  .theme-dark html:not(.m-desktop-wide) .m-day-card.next,.theme-dark:not(.m-desktop-wide) .m-day-card.next{background:var(--m-surface)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:inset 3px 0 0 #d7d3ce!important}
  .theme-dark .m-day-stat>.m-svg-icon{background:#302e2b;color:#c5c1bc}.theme-dark .m-day-stat strong,.theme-dark .m-day-patient{color:#f3f1ee!important}.theme-dark .m-day-stat span,.theme-dark .m-day-work-type{color:#bbb6b0!important}.theme-dark .m-day-stat small,.theme-dark .m-day-dentist-inline{color:#8f8a84}
  .theme-dark .m-home-time-primary>.m-btn.m-primary,.theme-dark .m-patient-shipped-toggle[aria-pressed="true"],.theme-dark .m-btn.m-primary{background:#f1efec;border-color:#f1efec;color:#242321}
  .theme-dark .m-home-time-summary .m-svg-icon{background:#302e2b;color:#b7b2ac!important}
  .theme-dark .m-home-time-summary strong{background:transparent;color:#f3f1ee}
  .theme-dark .m-home-time-eyebrow,.theme-dark .m-home-time-summary small{color:#8f8a84!important}
  .theme-dark .m-home-pause,.theme-dark .m-home-time-primary>.m-btn{background:#302e2b;border-color:var(--m-line);color:#d2cec9}
  .theme-dark .m-search input,.theme-dark .m-input,.theme-dark .m-patient-shipped-toggle{background:rgba(45,42,39,.92);border-color:var(--m-line);color:#f3f1ee;box-shadow:none}
  .theme-dark .m-tabbar{background:rgba(45,42,39,.82);border-color:var(--m-line);box-shadow:0 18px 45px rgba(0,0,0,.35)}
  .theme-dark .m-tab{color:#85817d}.theme-dark .m-tab[aria-current="page"]{background:#55514c;color:#fff;box-shadow:none}.theme-dark .m-fab{background:#f1efec;color:#242321;box-shadow:0 10px 24px rgba(0,0,0,.34)}
}

@media (max-width:350px){
  .m-home-time-summary{grid-template-columns:minmax(0,1fr)!important}
  .m-home-time-summary .m-svg-icon{display:none!important}
  .m-home-time-primary{gap:7px!important}
  .m-home-time-primary>.m-btn{min-width:82px!important;padding-inline:8px!important}
}
