/* Centerclock: ruhiges, helles Design mit Indigo-Akzent; Dunkelmodus über prefers-color-scheme */
:root {
  --bg: #f4f6fa; --panel: #ffffff; --panel-2: #f8f9fc; --text: #172033; --muted: #677489; --line: #e3e8ef; --line-2: #eef1f6;
  --accent: #4263eb; --accent-2: #364fc7; --accent-soft: #edf2ff; --accent-text: #ffffff;
  --danger: #e03131; --danger-soft: #fff0f0; --ok: #2b8a3e; --warn: #e8590c;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  --h: 38px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f131a; --panel: #171c25; --panel-2: #1c2230; --text: #e7ebf2; --muted: #95a0b3; --line: #2a3242; --line-2: #222937;
    --accent: #6d8cff; --accent-2: #8aa2ff; --accent-soft: #1e2744; --accent-text: #0b1020;
    --danger: #ff6b6b; --danger-soft: #3a1d22; --ok: #51cf66; --warn: #ff922b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
a { color: var(--accent); }
code { font: 12.5px ui-monospace, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* Icons */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill { fill: currentColor; stroke: none; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 58px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16.5px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #7048e8); color: #fff; }
.logo .ic { width: 18px; height: 18px; stroke-width: 2.2; }
nav { display: flex; gap: 2px; height: 100%; }
nav a { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
nav a .ic { width: 17px; height: 17px; }
.spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

/* Seitenrahmen */
main { max-width: 1040px; margin: 0 auto; padding: 22px 20px 48px; }
main.wide { max-width: 1440px; }
.banner { position: fixed; z-index: 60; top: 70px; left: 50%; transform: translateX(-50%); max-width: min(640px, 92vw); padding: 11px 16px; border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); box-shadow: var(--shadow-lg); font-weight: 500; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 13px; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow, .grow { flex: 1 1 200px; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 44px 0; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; stroke-width: 1.4; opacity: .6; }
.empty p { margin: 0; }

/* Formularelemente */
input, select, textarea, button { font: inherit; color: inherit; }
input, select { height: var(--h); padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); min-width: 0; transition: border-color .12s, box-shadow .12s; }
input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:hover, select:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input:disabled, select:disabled { background: var(--panel-2); color: var(--muted); }
input[type=checkbox] { height: auto; accent-color: var(--accent); }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--h); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
button:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); background: var(--panel-2); }
button:focus-visible, a:focus-visible, [role=button]:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.stop { background: var(--danger); color: #fff; border-color: var(--danger); }
button.stop:hover { filter: brightness(1.07); background: var(--danger); }
button.secondary { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
button.secondary:hover { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
button.ghost, button.link { border-color: transparent; background: transparent; color: var(--muted); }
button.ghost:hover, button.link:hover { background: var(--panel-2); color: var(--text); }
button.link { height: auto; padding: 4px 8px; color: var(--accent); font-weight: 500; }
button.link.danger, button.danger { color: var(--danger); }
button.iconbtn { width: var(--h); padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
button.iconbtn:hover { background: var(--panel-2); color: var(--text); }
button.iconbtn.danger:hover { background: var(--danger-soft); color: var(--danger); }
label { display: block; font-size: 12.5px; font-weight: 550; color: var(--muted); margin-bottom: 4px; }
label:has(> input[type=checkbox]) { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--text); font-weight: 500; }
.field { display: flex; flex-direction: column; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.seg button { border: 0; border-radius: 0; height: calc(var(--h) - 2px); background: transparent; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.iconbtn { width: calc(var(--h) - 2px); }
.seg button.on { background: var(--accent); color: var(--accent-text); }
.pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }

/* Timer-Leiste */
.timercard { padding: 10px; }
.timercard.running { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow); }
.timer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.timer .ptwide { flex: 1 1 240px; min-width: 200px; }
.timer .descfield { flex: 2 1 260px; }
.timer input { border-color: transparent; background: var(--panel-2); height: 44px; font-size: 15px; }
.timer input:hover { border-color: var(--line); }
.timer input:focus { background: var(--panel); }
.locwrap { position: relative; display: flex; align-items: center; }
.locwrap .ic { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.timer select.loc { height: 44px; padding-left: 32px; max-width: 190px; border-color: transparent; background: var(--panel-2); }
.timer .clock { font: 650 22px/1 "Cascadia Mono", ui-monospace, Consolas, monospace; min-width: 112px; text-align: right; padding: 0 6px; font-variant-numeric: tabular-nums; color: var(--muted); }
.timercard.running .clock { color: var(--text); }
.timer .startstop { height: 44px; min-width: 104px; font-size: 15px; border-radius: 10px; }
.timer .startstop .ic { width: 15px; height: 15px; }
.timer .iconbtn { height: 44px; width: 44px; }

/* Wochenleiste und Tageskarten */
.weekbar { margin: 6px 0 14px; gap: 12px; }
.weeklabel strong { font-size: 15px; font-weight: 650; }
.weektotal { font-variant-numeric: tabular-nums; font-size: 15px; }
.daycard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.day { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 13.5px; }
.daytotal { font-variant-numeric: tabular-nums; }
.entry { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 11px 12px 11px 18px; border-top: 1px solid var(--line-2); }
.day + .entry { border-top: 0; }
.entry.clickable { cursor: pointer; transition: background .1s; }
.entry.clickable:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.entry.clickable:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.entry .what { min-width: 0; }
.desctext { font-weight: 550; overflow-wrap: anywhere; }
.entry .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.proj { color: var(--c); font-weight: 600; }
.sep { color: var(--muted); opacity: .6; }
.locpill { display: inline-flex; align-items: center; gap: 3px; }
.locpill .ic { width: 13px; height: 13px; }
.entry .range { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }
.entry .dur { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 62px; text-align: right; }
.actions { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .12s; }
.entry:hover .actions, .entry:focus-within .actions { opacity: 1; }
@media (hover: none) { .actions { opacity: 1; } }
.actions button { height: 32px; }
.actions .cont { padding: 0 10px; color: var(--accent); }
.actions .cont .ic { width: 13px; height: 13px; }
.actions .iconbtn { width: 32px; }
.actions .iconbtn .ic { width: 17px; height: 17px; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-bottom-color: var(--line); }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
td form.row { margin-top: 6px; }
td form.row input, td form.row button { height: 32px; }
.keybox { font-family: ui-monospace, Consolas, monospace; padding: 12px; background: var(--panel-2); border: 1px dashed var(--ok); border-radius: var(--radius-sm); overflow-wrap: anywhere; margin-top: 8px; }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 22px 24px 18px; width: min(560px, 94vw); box-shadow: var(--shadow-lg); overflow: visible; }
dialog::backdrop { background: rgba(15, 20, 30, .42); backdrop-filter: blur(2px); }
dialog[open] { animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
dialog form { display: grid; gap: 14px; }
dialog form > .row:last-child { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-2); }
dialog .row .field { flex: 1 1 110px; }
dialog h2.dlgtitle { font-size: 18px; margin: 0; }
dialog h2.dlgtitle:focus { outline: none; }
.runs { display: flex; align-items: center; height: var(--h); padding: 0 4px; color: var(--accent); font-weight: 600; }

/* Zeitfeld (24 h) */
.timefield { position: relative; }
.timefield input.time { width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.timelist { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 220px; overflow: auto; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.timelist .opt { padding: 5px 12px; border-radius: 6px; cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; }
.timelist .opt:hover { background: var(--panel-2); }
.timelist .opt.sel { background: var(--accent); color: var(--accent-text); }

/* Projekt/Task-Suche und Beschreibungs-Vorschläge */
.ptfield, .descfield { position: relative; min-width: 0; }
.ptfield input.pt, .descfield input.desc { width: 100%; }
.ptlist, .suglist { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(460px, 92vw); max-height: 340px; overflow: auto; padding: 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.ptlist .opt, .suglist .opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.ptlist .opt.project .lbl { font-weight: 600; }
.ptlist .opt.task { padding-left: 34px; }
.ptlist .opt.hi, .suglist .opt.hi, .ptlist .opt:hover, .suglist .opt:hover { background: var(--accent-soft); }
.ptlist .opt.sel .lbl { color: var(--accent); }
.ptlist .opt .lbl, .suglist .opt .lbl { flex: 1; overflow-wrap: anywhere; }
.ptlist .opt .client, .suglist .opt .client { font-size: 12px; white-space: nowrap; }
.ptlist .grp { padding: 8px 10px 3px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ptlist .none { padding: 12px; }
button.star { height: 22px; width: 22px; padding: 0; border: 0; background: none; color: color-mix(in srgb, var(--muted) 60%, transparent); font-size: 16px; line-height: 1; }
button.star:hover { background: none; color: #f59f00; }
button.star.on { color: #f59f00; }

/* Arbeitsorte */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; background: var(--panel-2); font-weight: 500; }
.chip.off { color: var(--muted); text-decoration: line-through; }
.chip button.link { font-size: 12px; text-decoration: none; padding: 2px 8px; }

/* Kalender */
.calbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.callabel { font-size: 16px; font-weight: 650; }
.calcard { padding: 0; overflow: hidden; }
.calhead { display: grid; border-bottom: 1px solid var(--line); background: var(--panel); }
.calhead .dayhead { display: grid; justify-items: center; gap: 0; height: auto; padding: 8px 4px 9px; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--text); font-weight: 500; }
.calhead .dayhead:hover { background: var(--panel-2); }
.dayhead .wd { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.dayhead .dn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; font-weight: 650; }
.dayhead.today .dn { background: var(--accent); color: var(--accent-text); }
.dayhead.today .wd { color: var(--accent); }
.dayhead .dt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calhead .warn { color: var(--danger); font-weight: 700; }
.calscroll { height: min(70vh, 760px); overflow-y: auto; position: relative; }
.calgrid { display: grid; position: relative; }
.calaxis { position: relative; }
.calaxis .hour { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calcol { position: relative; border-left: 1px solid var(--line-2); cursor: cell; touch-action: none;
  background-image: repeating-linear-gradient(to bottom, var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 48px); }
.calcol.today { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }
.calblock { position: absolute; z-index: 2; display: block; height: auto; overflow: hidden; padding: 3px 7px 3px 9px; border: 0; border-left: 3px solid var(--c); border-radius: 7px;
  background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--text); text-align: left; cursor: pointer; font-size: 12px; font-weight: 400; line-height: 1.3;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); transition: background .12s, box-shadow .12s; }
.calblock:hover { background: color-mix(in srgb, var(--c) 22%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), var(--shadow); }
.calblock .b-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calblock .b-sub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calblock.overlap { box-shadow: 0 0 0 2px var(--danger); z-index: 3; }
.calblock.running { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--panel)) 0 8px, color-mix(in srgb, var(--c) 24%, var(--panel)) 8px 16px); }
.calblock.running::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.calsel { position: absolute; z-index: 5; left: 2px; right: 2px; border: 2px solid var(--accent); border-radius: 7px; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 12px; font-weight: 650; padding: 2px 7px; }
.nowline { position: absolute; z-index: 4; left: 0; right: 0; height: 2px; background: var(--danger); pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.legend { margin: 0; padding: 10px 16px; font-size: 12.5px; border-top: 1px solid var(--line-2); }

/* Berichte */
.filters { align-items: flex-end; gap: 12px; }
.filters .field { min-width: 140px; }
.stats { gap: 28px; }
.stats > div:not(.spacer) .muted { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bigtotal { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.barcell { width: 34%; }
.bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent), #7048e8); border-radius: 999px; }

/* Schmal (Handy) */
@media (max-width: 720px) {
  .top { gap: 10px; padding: 0 12px; overflow-x: auto; }
  nav a { padding: 0 8px; font-size: 0; }
  nav a .ic { width: 20px; height: 20px; }
  .whoname { display: none; }
  main { padding: 14px 12px 40px; }
  .entry { grid-template-columns: auto 1fr auto; padding-left: 14px; }
  .entry .range { grid-column: 2; }
  .entry .actions { grid-column: 2 / -1; justify-content: flex-end; }
  .timer .clock { text-align: left; }
}

/* Feinschliff */
.calblock { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; white-space: normal; }
dialog .row .field:has(.timefield) { flex: 0 0 auto; }

.banner.info { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Outlook-Vorschläge im Kalender */
.outlooktoggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--text); font-weight: 500; }
.calsugg { position: absolute; z-index: 1; left: 3px; right: 3px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
  height: auto; overflow: hidden; padding: 3px 7px; border: 1.5px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel)); color: var(--accent); text-align: left; font-size: 12px; font-weight: 400; line-height: 1.3; white-space: normal; cursor: copy; }
.calsugg:hover { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-style: solid; }
.calsugg .b-title { display: flex; align-items: center; gap: 4px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calsugg .b-title .ic { width: 13px; height: 13px; }
.calsugg .b-sub { color: color-mix(in srgb, var(--accent) 75%, var(--muted)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdesc { font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Projektliste: klar abgegrenzte Zeilen, Vorgänge als Baum */
.ptable { border: 1px solid var(--line); border-radius: var(--radius-sm); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.ptable thead th { background: var(--panel-2); padding: 9px 12px; }
.ptable tbody tr.prow > td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.ptable tbody tr.prow:last-child > td { border-bottom: 0; }
.ptable tbody tr.prow:nth-child(even) { background: color-mix(in srgb, var(--panel-2) 70%, var(--panel)); }
.ptable tbody tr.prow:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.ptable tr.prow.archived .pname { color: var(--muted); text-decoration: line-through; }
.pcell { width: 26%; } .ccell { width: 16%; } .acell { width: 1%; white-space: nowrap; }
.pname { font-weight: 650; font-size: 14.5px; }
.ptags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ttree { display: grid; gap: 1px; }
.tnode { display: flex; align-items: baseline; gap: 8px; padding: 3px 6px; border-radius: 5px; min-width: 0; }
.tnode:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.tnode.l1 { margin-left: 16px; border-left: 2px solid var(--line); border-radius: 0 5px 5px 0; }
.tnode.l2 { margin-left: 32px; border-left: 2px solid var(--line); border-radius: 0 5px 5px 0; }
.tnode.l3 { margin-left: 48px; border-left: 2px solid var(--line); border-radius: 0 5px 5px 0; }
.tnode.tgroup { font-weight: 650; color: var(--text); margin-top: 4px; align-items: center; }
.tnode.tgroup .ic { width: 15px; height: 15px; color: var(--muted); }
.tnode.archived .tname { color: var(--muted); }
.tnode .tname { flex: 0 1 auto; }
.tnode .tdesc { flex: 1 1 auto; }
.tnode button.link { margin-left: auto; padding: 0 4px; font-size: 12.5px; }
.addtask { margin-top: 8px; }
.addtask input { height: 32px; } .addtask button { height: 32px; }
.srcinfo { margin: 0 0 8px; }
.pcell { width: 24%; } .ccell { width: 14%; }
.pactions { display: flex; gap: 2px; margin: 6px 0 0 -8px; }
.tnode .tname { flex: 0 0 auto; max-width: 70%; }
.tnode .tdesc { flex: 1 1 0; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Projektliste: Filter im Tabellenkopf, Spaltenbreiten fest */
.ptable { table-layout: fixed; width: 100%; }
.ptable col.c-p { width: 24%; } .ptable col.c-c { width: 14%; }
.ptable thead tr.filterrow th { background: var(--panel); padding: 8px 12px; text-transform: none; letter-spacing: normal; font-weight: 400; border-bottom: 1px solid var(--line); }
.ptable thead tr.filterrow input { width: 100%; }
.ptable td.empty-row { padding: 18px 12px; }
.ptable .pname, .ptable .tname { overflow-wrap: anywhere; }
.phead { align-items: center; margin-bottom: 12px; }
.phead h2 { margin: 0; }
.ptable thead tr.filterrow input { font-size: 14px; height: 36px; }
.ptable .pname { display: flex; align-items: center; gap: 4px; }
.tnode button.star { flex: none; margin-left: auto; }
.tnode button.star + button.link { margin-left: 0; }

/* Startzeit des laufenden Timers */
.startwrap { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.timefield.starttime input.time { width: 70px; height: 32px; font-size: 13.5px; padding: 0 6px; background: var(--panel-2); border-color: transparent; }
.timefield.starttime input.time:hover { border-color: var(--line); }
.timefield.starttime input.time:focus { background: var(--panel); border-color: var(--accent); }
.timer .startwrap .timefield.starttime input.time { height: 36px; }
.timer .clockbox { display: grid; justify-items: end; gap: 2px; }
.timer .clockbox .startwrap { font-size: 12px; gap: 4px; }
.timer .clockbox .timefield.starttime input.time { height: 26px; width: 60px; font-size: 12.5px; }

/* Arbeitsort-Schalter auf dem Eintrag */
.loctoggle { height: 26px; padding: 0 8px; gap: 4px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.loctoggle .ic { width: 14px; height: 14px; }
.loctoggle:hover { border-color: var(--line); background: var(--panel-2); color: var(--text); }
.loctoggle.on { background: color-mix(in srgb, #12b886 16%, var(--panel)); color: #0ca678; border-color: color-mix(in srgb, #12b886 35%, transparent); }
.loctoggle.other { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.loctoggle:disabled { opacity: .4; }
.entry { grid-template-columns: auto 1fr auto auto auto auto; }  /* Web: Punkt, Text, Ort, Zeit, Dauer, Aktionen */
@media (max-width: 720px) { .entry .loctoggle { grid-column: 2; justify-self: start; } }
.zepprev p { margin: 4px 0 8px; }
.devtable td.dev { font-weight: 600; color: var(--warn); }
