:root {
  --bg: #f4f6f8; --card: #fff; --text: #1d2733; --muted: #6b7785; --line: #e2e7ec;
  --gruen: #16a34a; --orange: #f59e0b; --rot: #dc2626; --grau: #9ca3af; --blue: #0b3d91;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45; }
a { color: var(--blue); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: .85rem; }
.error { color: var(--rot); }
.ok { color: var(--gruen); font-weight: 600; }

.top { background: #1a1d23; color: #fff; padding: 14px 24px;
       display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; flex-wrap: wrap; }
.brand img { height: 84px; object-fit: contain; border-radius: 4px; display: block; }
.logo-ocean { width: 84px; }
.logo-nvl { width: 138px; }
.brand-text { font-weight: 800; font-size: 1.1rem; }
.brand-title { font-size: 20px; font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.who { opacity: .85; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 600; color: #fff; }
nav a:hover { color: #c7d2fe; }
nav a.faint { opacity: .7; }

.card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 16px;
        box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid .card { margin-bottom: 0; }
.grid { margin-bottom: 16px; }

.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.light { border-radius: 16px; color: #fff; text-decoration: none; padding: 20px 8px; text-align: center;
         display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600;
         box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.light .count { font-size: 2.8rem; line-height: 1; font-weight: 800; }
.light.gruen { background: var(--gruen); }
.light.orange { background: var(--orange); }
.light.rot { background: var(--rot); }
.light:active { transform: scale(.98); }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.figures dt { color: var(--muted); font-size: .85rem; }
.figures dd { margin: 0; font-size: 1.3rem; font-weight: 700; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
        color: #fff; background: var(--grau); }
.pill.gruen { background: var(--gruen); } .pill.orange { background: var(--orange); } .pill.rot { background: var(--rot); }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--grau); flex: none; }
.dot.gruen { background: var(--gruen); } .dot.orange { background: var(--orange); } .dot.rot { background: var(--rot); }

.mast-list { display: flex; flex-direction: column; gap: 8px; }
.mast-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px;
            padding: 14px 16px; text-decoration: none; color: var(--text); flex-wrap: wrap;
            box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mast-name { flex: 1 1 200px; }
.lamps { display: flex; gap: 6px; flex-wrap: wrap; }

.lamp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.lamp-cards .card { margin-bottom: 0; border-top: 6px solid var(--grau); }
.lamp.gruen { border-top-color: var(--gruen); } .lamp.orange { border-top-color: var(--orange); } .lamp.rot { border-top-color: var(--rot); }
.lamp-head { display: flex; justify-content: space-between; align-items: center; }
.lamp-head h2 { margin: 0; }
.big { font-size: 2rem; font-weight: 800; margin: 8px 0 0; }
details summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-top: 8px; }
.lamp-form { display: grid; gap: 8px; margin-top: 8px; }

.chart { position: relative; height: 300px; }

.form-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 4px 0 12px; }
.form-actions:last-child { margin: 12px 0 0; }
.targets td { vertical-align: middle; }
.targets tr.mast-start td { border-top: 2px solid var(--line); }
.mast-cell { vertical-align: top !important; }
input.num { width: 110px; margin: 0; padding: 8px; }

.who { color: #fff; text-decoration: none; }
.m-only-link { display: none; }
.note { background: #fff7e6; border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 6px; }

.sched-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sched-row { display: flex; gap: 28px; margin-top: 6px; }
.sched-row > div { display: flex; flex-direction: column; }
.sched-row strong { font-size: 1.6rem; line-height: 1.2; }
.sched-row sup { font-size: .7rem; color: var(--muted); margin-left: 2px; }

.period-head { display: flex; justify-content: space-between; align-items: center; }
.period-head h2 { margin: 0; }
.period-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 12px 0 0; display: grid; gap: 8px; }
legend { font-weight: 700; padding: 0 6px; }
select { display: block; width: 100%; padding: 10px; font-size: 1rem; border: 1px solid var(--line);
         border-radius: 8px; margin-top: 4px; background: #fff; color: var(--text); }
label.inline { display: flex; align-items: center; gap: 8px; color: var(--text); }
label.inline input { width: auto; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.user-form { display: grid; gap: 12px; }
td.wrap { white-space: normal; }
button.danger { background: #fde8e8; color: var(--rot); }
.sched-side[data-kind="fixed"] .for-sun { display: none; }
.sched-side:not([data-kind="fixed"]) .for-fixed { display: none; }
.sun-row { display: grid; grid-template-columns: 80px 120px 1fr; gap: 8px; align-items: center; margin: 4px 0 8px; }
.sun-row input, .sun-row select { margin: 0; }
.sun-name { font-weight: 600; }
.bad-toggle { margin-top: 4px; }
.wx { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; margin-top: 2px; width: fit-content; }
.wx.good { background: #e8f5e9; color: #166534; }
.wx.bad { background: #e0e7ff; color: #3730a3; }

label { display: block; font-size: .9rem; color: var(--muted); }
input { display: block; width: 100%; padding: 10px; font-size: 1rem; border: 1px solid var(--line);
        border-radius: 8px; margin-top: 4px; color: var(--text); }
button { padding: 11px 14px; font-size: 1rem; border: 0; border-radius: 8px; background: var(--blue);
         color: #fff; font-weight: 600; cursor: pointer; }
button.secondary { background: #e8eef8; color: var(--blue); }
.login { max-width: 380px; margin: 40px auto; display: grid; gap: 12px; }

/* ===== Unterhaltsportal ===== */
textarea { display: block; width: 100%; padding: 10px; font: inherit; font-size: 1rem; border: 1px solid var(--line);
           border-radius: 8px; margin-top: 4px; color: var(--text); resize: vertical; }
.btn-link { display: inline-block; padding: 7px 12px; border-radius: 8px; background: var(--blue); color: #fff;
            text-decoration: none; font-size: .9rem; font-weight: 600; }
.btn-link.secondary { background: #e8eef8; color: var(--blue); }
h2 .btn-link { margin-left: 8px; }
.link-btn { background: none; color: var(--rot); padding: 0; font-size: .8rem; font-weight: 600; }
tr.inactive td { color: var(--muted); }
.pill.shelly { background: #1a1d23; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.filters input, .filters select { margin-top: 4px; }
.filter-btn button { width: 100%; }
.map { height: 320px; border-radius: 8px; z-index: 0; }
.map-big { height: 420px; }
.map-form .form-actions { margin-top: 8px; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.mt { margin-top: 18px; }
.pre { white-space: pre-wrap; margin: 0; }
.ok-dot { color: var(--gruen); }
.approx { color: var(--orange); font-size: .85rem; font-weight: 600; }
.warn { display: inline-block; margin-left: 4px; color: #fff; background: var(--orange); border-radius: 50%;
        width: 18px; height: 18px; text-align: center; font-size: .75rem; font-weight: 800; line-height: 18px; cursor: help; }
.hint { color: #92400e; }
tr.imp-fehler td { background: #fdf0f0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photos figure { margin: 0; }
.photos img, .file-icon { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--line); }
.file-icon { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 800; text-decoration: none; }
.photos figcaption { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-top: 4px; }
button:disabled { opacity: .45; cursor: default; }
.form-actions .btn-link { padding: 11px 14px; font-size: 1rem; }
td.hints { min-width: 280px; }
td.notes { min-width: 160px; }
.upload { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 760px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .map-big { height: 320px; }
}

/* ===== Version 2.1: Navigation, Tickets, Monteur-Ansicht ===== */
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; font-weight: 600; color: #fff; margin: 0; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: " ▾"; font-size: .75em; opacity: .7; }
details.menu > div { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; min-width: 190px; z-index: 1000; display: flex; flex-direction: column; }
details.menu > div a { color: var(--text); padding: 10px 12px; border-radius: 6px; }
details.menu > div a:hover { background: var(--bg); color: var(--blue); }
.langs a { color: #fff; text-decoration: none; font-weight: 700; margin-left: 10px; }
.langs a.faint { opacity: .55; }

.pill.st-grau { background: var(--grau); } .pill.st-blau { background: #2563eb; } .pill.st-orange { background: var(--orange); }
.pill.st-gruen { background: var(--gruen); } .pill.st-dunkel { background: #374151; }
.pill.prio-low { background: #e5e7eb; color: #4b5563; }
.small-btn { padding: 4px 10px !important; font-size: .8rem !important; }
.alert-red { background: #fde8e8; border-left: 4px solid var(--rot); padding: 10px 12px; border-radius: 6px; color: #991b1b; font-weight: 600; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { background: var(--card); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--text);
        box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: .9rem; border: 2px solid transparent; }
.chip.rot strong { color: var(--rot); } .chip.orange strong { color: #b45309; }
.chip.on { border-color: var(--blue); }
.filters-admin { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.filters-m { grid-template-columns: 2fr 1fr auto; }

.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; position: sticky; top: 0; z-index: 5; }
.bulk-bar select { width: auto; margin: 0; min-width: 200px; }
.tlist { display: flex; flex-direction: column; gap: 8px; }
.trow { display: flex; align-items: stretch; gap: 12px; background: var(--card); border-radius: 12px; padding: 12px 14px;
        box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 6px solid var(--grau); }
.trow.st-zugewiesen { border-left-color: #2563eb; } .trow.st-in_arbeit { border-left-color: var(--orange); }
.trow.st-erledigt { border-left-color: var(--gruen); } .trow.st-abgeschlossen { border-left-color: #374151; opacity: .8; }
.trow.warn { border-left-color: var(--orange); background: #fffbeb; }
.trow.late { border-left-color: var(--rot); background: #fef2f2; }
.trow .sel { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.tmain { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); min-width: 0; }
.tline1 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tnr { font-weight: 800; color: var(--muted); font-size: .9rem; }
.ttitle { font-size: 1.05rem; }
.tobj { color: var(--muted); font-size: .9rem; }
.tside { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex: none; font-size: .9rem; }

.thead { margin-bottom: 8px; }
.ttitle-big { font-size: 1.4rem; display: block; margin: 6px 0 8px; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
button.big { padding: 15px 22px; font-size: 1.1rem; border-radius: 12px; flex: 1 1 200px; }
button.ok-btn { background: var(--gruen); } button.dark-btn { background: #374151; }
.assign-form { display: flex; gap: 8px; margin-top: 12px; }
.assign-form select { margin: 0; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
ul.files { margin: 0; padding-left: 18px; }
ul.files li { margin: 4px 0; }
details.orig { margin-top: 4px; font-size: .8rem; }
details.orig summary { color: var(--muted); font-weight: 400; margin-top: 2px; }
details.orig span { display: block; color: var(--muted); padding: 4px 0 0 10px; border-left: 2px solid var(--line); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
label.check { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
              color: var(--text); font-size: 1rem; cursor: pointer; }
label.check input { width: 28px; height: 28px; margin: 0; flex: none; accent-color: var(--gruen); }
label.check.done { background: #f0fdf4; border-color: #bbf7d0; }
label.check.done .ctext > span:first-child { text-decoration: line-through; color: var(--muted); }
.cmeta { display: block; }

.upload-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.big-label { padding: 13px 18px !important; font-size: 1rem !important; cursor: pointer; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment-form { margin-top: 12px; }
.history summary { margin: 0; }
.events { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.events .muted { margin-right: 8px; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input[type=date] { margin: 0; padding: 6px; width: auto; }
.link-btn.blue { color: var(--blue); }
.assign-objects { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.obj-checks { max-height: 340px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gruen); }
.meter span.orange { background: var(--orange); } .meter span.rot { background: var(--rot); }

.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.report-logo { height: 60px; }
.report-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.report-meta { text-align: right; }
.report-steps { list-style: none; padding: 0; margin: 10px 0 0; columns: 2; font-size: .9rem; }
.report-steps li.ok { color: #166534; } .report-steps li.notdone { color: var(--rot); }
.report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.report-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
@media print {
  .top, .no-print { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
@media (max-width: 760px) {
  .filters-admin, .filters-m { grid-template-columns: 1fr 1fr; }
  .trow { flex-wrap: wrap; }
  .tside { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; justify-content: flex-start; text-align: left; padding-left: 0; }
  .report-steps { columns: 1; }
  details.menu > div { right: auto; left: 0; }
}

/* ===== Version 2.2: Geraete & Masten ===== */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
form.dev { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
form.dev.dev-new { border-color: var(--orange); background: #fffbeb; }
form.dev.inactive { opacity: .6; }
.dev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dev-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
form.dev .form-actions { margin: 4px 0 0; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.quick select { width: auto; margin: 0; min-width: 220px; }
.lamps-table select { margin: 0; min-width: 160px; }
.lamps-table input.num { width: 80px; }

/* ===== Version 2.3: gemeinsame Startseite ===== */
.home-head, .home-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-top .lights { margin-bottom: 12px; }
.home-h { margin: 4px 0 8px; }
.light.neutral { background: #94a3b8; } .light.blue { background: #2563eb; }
.mini-t { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 10px 12px; margin: 0 -6px 6px;
          border-left: 4px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); }
.mini-t:hover { background: var(--bg); }
.mini-t.late { border-left-color: var(--rot); background: #fef2f2; }
.mini-t.warn { border-left-color: var(--orange); background: #fffbeb; }
.muted-link { color: var(--muted); font-weight: 400; margin-left: 8px; }
ul.planned { list-style: none; padding: 0; margin: 0; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
  .home-head { display: none; }
  .home-top { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .light { padding: 16px 4px; font-size: .85rem; }
  .light .count { font-size: 2.2rem; }
  .figures dd { font-size: 1.1rem; }
  .top { padding: 12px 16px; }
  .brand { gap: 10px; }
  .brand img { height: 60px; }
  .logo-ocean { width: 60px; }
  .logo-nvl { width: 99px; }
  .brand-title { font-size: 16px; order: 3; flex-basis: 100%; }
  .who { display: none; }
  .m-only-link { display: inline; }
}

/* ===== Stundenerfassung (2.8) ===== */
.timer-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
             gap: 10px; padding: 8px 16px; background: #dcfce7; border-bottom: 2px solid var(--gruen); flex-wrap: wrap; }
.timer-bar.fahrt { background: #e0ecff; border-bottom-color: var(--blue); }
.timer-bar.long { background: #fff7e6; border-bottom-color: var(--orange); }
.timer-bar form { margin: 0; }
.timer-info { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; flex-wrap: wrap; }
.timer-clock { font-variant-numeric: tabular-nums; }
.timer-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gruen); flex: none;
             animation: timer-pulse 1.4s ease-in-out infinite; }
.fahrt .timer-dot { background: var(--blue); }
@keyframes timer-pulse { 50% { opacity: .25; } }
button.timer-stop { background: var(--rot); padding: 8px 14px; }
.timer-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.timer-actions form { display: flex; gap: 10px; flex: 1 1 260px; margin: 0; flex-wrap: wrap; }
.timer-now { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
             background: #dcfce7; font-size: 1.05rem; }
.timer-now.fahrt { background: #e0ecff; }
button.stop-btn { background: var(--rot); }
.time-table td.num, .time-table th.num { text-align: right; }
.time-table tfoot td { border-bottom: 0; padding-top: 4px; padding-bottom: 4px; color: var(--muted); }
.time-table tr.sum td { color: var(--text); font-weight: 700; border-top: 2px solid var(--line); }
.kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600;
        background: #dcfce7; color: #166534; }
.kind-fahrt { background: #e0ecff; color: var(--blue); }
.time-add { margin-top: 14px; }
.time-add summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: 6px 0; }
.time-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; align-items: end; margin-top: 8px; }
.time-form .span2 { grid-column: span 2; }
.time-form .form-actions { grid-column: 1 / -1; }
ul.helpers { list-style: none; padding: 0; margin: 0 0 8px; }
ul.helpers li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
form.inline { display: inline; margin: 0; }
.figures-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.figures-row .fig { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0; }
.figures-row .fig strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.time-filters { grid-template-columns: repeat(6, 1fr) auto; }
.quick-ranges { margin-top: -6px; }
@media (max-width: 760px) {
  .time-form { grid-template-columns: 1fr 1fr; }
  .time-form .span2 { grid-column: 1 / -1; }
  .time-filters { grid-template-columns: 1fr 1fr; }
  .figures-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .figures-row .fig strong { font-size: 1.15rem; }
  .timer-actions form { flex-basis: 100%; }
}
@media print { .timer-bar, .timer-actions { display: none; } }
@media (max-width: 760px) { .time-filters label:first-child { grid-column: auto; } }
ul.time-list { list-style: none; margin: 0; padding: 0; }
ul.time-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.tl-when { font-variant-numeric: tabular-nums; }
.tl-who { color: var(--muted); }
.tl-note { flex-basis: 100%; color: var(--text); }
.tl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.tl-dur { font-variant-numeric: tabular-nums; }
.time-sums { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 10px 0 0; max-width: 260px; margin-left: auto; }
.time-sums dt { color: var(--muted); } .time-sums dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.time-sums .sum { color: var(--text); font-weight: 700; border-top: 2px solid var(--line); padding-top: 4px; }
#zeit .link-btn { color: var(--muted); }
.time-filters input, .time-filters select { min-width: 0; width: 100%; }
@media (max-width: 520px) {
  .hide-m { display: none; }
  .time-table th, .time-table td { padding: 8px 4px; }
  .figures-row .fig .small { font-size: .75rem; }
}
.assign-form button { white-space: nowrap; }
