/* Zeiterfassung – ruhiges, sachliches UI */
:root {
  color-scheme: light;
  --bg: #f5f6f3;
  --surface: #ffffff;
  --ink: #1c2420;
  --ink-2: #3a4540;
  --muted: #6b756f;
  --line: #e2e5e0;
  --line-2: #d3d8d2;
  --accent: #2e6b5a;
  --accent-ink: #ffffff;
  --accent-soft: #e4efe9;
  --plus: #2c7a4b;
  --minus: #5f6c79;          /* bewusst neutral, keine "Angstfarbe" */
  --ok: #2c7a4b;
  --warn: #b97512;
  --bad: #b03a2e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 2px 8px rgba(20, 30, 25, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --c-work: #3d8b5a;
  --c-ferien: #2b78b6;
  --c-krank: #8a5bbf;
  --c-unfall: #c0527a;
  --c-militaer: #6c7d38;
  --c-bezahlt: #5b6b7b;
  --c-kompensation: #23968a;
  --c-unbezahlt: #8f816e;
  --c-unentschuldigt: #b0621c;
  --c-none: #9aa39e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
code { background: #eef0ec; padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spacer { flex: 1; }
.tone-plus { color: var(--plus); }
.tone-minus { color: var(--minus); }

/* ---------- Layout ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 10px; top: 5px; width: 2px; height: 7px; background: #fff; border-radius: 1px; box-shadow: 3px 5px 0 -0px transparent; }
.brand-mark::before { content: ""; position: absolute; left: 10px; top: 10px; width: 6px; height: 2px; background: #fff; border-radius: 1px; }
.mainnav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.mainnav a { color: var(--ink-2); padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.mainnav a:hover { background: #f0f2ee; text-decoration: none; }
.mainnav a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.usermenu { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.usermenu form { margin: 0; }
.username { color: var(--ink-2); font-size: .9rem; }
.main { max-width: 1180px; margin: 0 auto; padding: 22px 16px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-title { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.count { background: var(--accent); color: #fff; font-size: .75rem; border-radius: 99px; padding: 1px 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.narrow { max-width: 440px; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input, select { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 11px; min-height: 40px; width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
input:disabled { background: #f3f4f1; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0 6px; font-weight: 600; font-size: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 550; border-radius: var(--radius-sm); padding: 9px 16px; min-height: 40px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: #f2f4f0; }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; }
.linkbtn.danger:hover { color: var(--bad); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 1.15rem; cursor: pointer; line-height: 1; text-decoration: none !important; }
.iconbtn:hover { background: #f2f4f0; }
.iconbtn.big { width: 48px; height: 48px; font-size: 1.5rem; }

/* ---------- Flash / Banner / Chips ---------- */
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.flash-err { background: #fbeeec; color: #8e2d23; border-color: #f0cfca; }
.banner { padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: .92rem; }
.banner-info { background: #eaf2f9; color: #24557d; }
.banner-ok { background: var(--accent-soft); color: var(--accent); }
.banner-warn { background: #fbf3e4; color: #7c5410; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.chip-open { background: #eef0ec; color: var(--muted); }
.chip-sub { background: #eaf2f9; color: #24557d; }
.chip-ok { background: var(--accent-soft); color: var(--accent); }
.viewing-banner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #eaf2f9; color: #24557d; padding: 9px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .9rem; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi-value { font-size: 1.45rem; font-weight: 650; font-variant-numeric: tabular-nums; margin: 3px 0 2px; white-space: nowrap; }
.kpi-value small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.kpi-sub { font-size: .78rem; color: var(--muted); }
.kpi-main { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: linear-gradient(180deg, #fff, #f6faf8); }
.kpi.tone-plus .kpi-value { color: var(--plus); }
.kpi.tone-minus .kpi-value { color: var(--minus); }
.kpi.tone-plus, .kpi.tone-minus { color: inherit; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #f6f7f4; border-radius: var(--radius-sm); padding: 10px 12px; }
.mini-kpis span { display: block; font-size: .75rem; color: var(--muted); }
.mini-kpis strong { font-variant-numeric: tabular-nums; }

/* ---------- Monat ---------- */
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h1 { min-width: 9.5em; text-align: center; }
.month-app.busy .cal { opacity: .65; pointer-events: none; transition: opacity .15s .1s; }

.toolbar { margin-bottom: 10px; }
.brushes { display: flex; gap: 6px; flex-wrap: wrap; }
.brush { --c: var(--c-none); display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .86rem; font-weight: 550; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.brush:hover { border-color: var(--c); }
.brush.on { background: var(--c); border-color: var(--c); color: #fff; }
.brush[data-brush=select], .brush[data-brush=clear] { --c: var(--ink-2); }
.b-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.brush.on .b-dot { background: #fff; }
.b-icon { font-size: .95rem; line-height: 1; }
.hint { margin: 8px 2px 0; font-size: .84rem; color: var(--muted); min-height: 1.2em; }

.c-work { --c: var(--c-work); }
.c-ferien { --c: var(--c-ferien); }
.c-krank { --c: var(--c-krank); }
.c-unfall { --c: var(--c-unfall); }
.c-militaer { --c: var(--c-militaer); }
.c-bezahlt { --c: var(--c-bezahlt); }
.c-kompensation { --c: var(--c-kompensation); }
.c-unbezahlt { --c: var(--c-unbezahlt); }
.c-unentschuldigt { --c: var(--c-unentschuldigt); }
.c-none { --c: var(--c-none); }

.cal { user-select: none; -webkit-user-select: none; touch-action: none; }
.cal.readonly { touch-action: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 82px; gap: 6px; }
.cal-wd { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 4px 2px; }
.cal-wd.we { color: #a3aaa5; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  min-height: 84px; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: border-color .1s, box-shadow .1s, background .1s;
}
.day:hover { border-color: var(--line-2); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.day-empty { min-height: 84px; background: transparent; border: 0; box-shadow: none; }
.day.we { background: #f0f1ee; border-color: transparent; }
.day.hol { background: #f1f3ef; border-style: dashed; }
.day.off { opacity: .45; cursor: default; }
.day.future { background: #fbfbfa; }
.day.future.we, .day.future.hol { background: #f3f4f1; }
.day.missing { border-color: #e7dcc4; background: #fffcf6; }
.day.has-work { border-left: 3px solid var(--c-work); }
.day.has-abs { background: color-mix(in srgb, var(--c) 9%, #fff); border-color: color-mix(in srgb, var(--c) 30%, #fff); border-left: 3px solid var(--c); }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day.today .dnum { background: var(--accent); color: #fff; }
.day.sel { background: color-mix(in srgb, var(--accent) 16%, #fff) !important; border-color: var(--accent) !important; }
.cal.readonly .day { cursor: default; }
.dtop { display: flex; align-items: center; justify-content: space-between; }
.dnum { font-weight: 650; font-size: .88rem; min-width: 22px; height: 22px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; margin: -2px 0 0 -4px; }
.day.we .dnum, .day.hol .dnum { color: var(--muted); }
.dnote { color: var(--accent); font-weight: 800; }
.hname { font-size: .7rem; color: var(--muted); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmid { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.val { font-weight: 600; font-variant-numeric: tabular-nums; font-size: .95rem; }
.ddiff { font-size: .72rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 99px; font-size: .72rem; font-weight: 650; background: var(--c); color: #fff; white-space: nowrap; }
.wk-sum { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 6px; font-variant-numeric: tabular-nums; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.wk-sum small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.cal-wk { text-align: right; }

.month-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-left, .foot-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Dialog / Editor ---------- */
dialog.sheet { border: 0; padding: 0; border-radius: 16px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
dialog.sheet-small { width: min(460px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(20, 28, 24, .38); }
.sheet-inner { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 18px; margin: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head .iconbtn { border: 0; }
.sheet-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.ed-block { display: flex; flex-direction: column; gap: 8px; }
.ed-label { font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hours-ctrl { display: flex; align-items: center; gap: 10px; }
.hours-input { text-align: center; font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; height: 52px; flex: 1; }
input[type=range] { width: 100%; padding: 0; min-height: 28px; border: 0; accent-color: var(--accent); background: transparent; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.abs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.abs-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .84rem; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; }
.abs-chip.on { background: var(--c); border-color: var(--c); color: #fff; }
.abs-chip.on .b-dot { background: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; align-self: flex-start; }
.seg button { font: inherit; font-size: .85rem; border: 0; background: #fff; padding: 7px 14px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent); color: #fff; }
.ed-sum { margin: 0; font-size: .9rem; background: #f6f7f4; padding: 9px 12px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.ed-sum.err { background: #fbeeec; color: #8e2d23; }
.cf-body p { margin: 0 0 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #22302a; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 100; max-width: calc(100vw - 32px); }
.toast-err { background: #8e2d23; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; padding: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; background: #fafbf9; white-space: nowrap; }
.tbl tfoot th { border-bottom: 0; background: #fafbf9; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafbf9; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions a + a { margin-left: 12px; }
.tbl .actions form { display: inline; margin: 0; }
.is-future td { color: var(--muted); }
.abs-list { display: flex; gap: 4px; flex-wrap: wrap; }
td.abs-list, th.abs-list { display: table-cell; }
td.abs-list .badge, th.abs-list .badge { margin: 1px 2px 1px 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 4px 10px; border-radius: 7px; font-size: .85rem; color: var(--ink-2); border: 1px solid var(--line); }
.tabs a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Dashboard ---------- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.dot-green { background: var(--ok); }
.dot-orange { background: var(--warn); }
.dot-red { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.w-dot { width: 28px; padding-right: 0 !important; }
.dash tr.lvl-red { background: color-mix(in srgb, var(--bad) 4%, #fff); }
.alerts { display: table-cell; }
.alert { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; margin: 2px 4px 2px 0; white-space: nowrap; }
.alert-orange { background: #fbf1df; color: #85570c; }
.alert-red { background: #f8e3e0; color: #93291f; }
.pending { list-style: none; margin: 8px 0 0; padding: 0; }
.pending li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pending li:last-child { border-bottom: 0; }

/* ---------- Login ---------- */
body.bare { min-height: 100vh; display: grid; place-items: center; }
.main-bare { width: 100%; padding: 20px 16px; }
.login-card { max-width: 380px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 650; margin-bottom: 2px; }
.login-card .muted { margin: 0 0 18px; }
.login-card p.small { margin: 16px 0 0; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .topbar-inner { gap: 10px; height: auto; min-height: 52px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; }
  .mainnav { order: 3; flex-basis: 100%; }
  .usermenu { margin-left: auto; }
  .username { display: none; }
  .main { padding: 14px 10px 50px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi-value { font-size: 1.2rem; }
  .kpi-main { grid-column: 1 / -1; order: -1; }
  .month-nav h1 { min-width: 0; font-size: 1.2rem; }
  .brushes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .cal-wk { display: none; }
  .day, .day-empty { min-height: 58px; padding: 4px 4px; border-radius: 7px; }
  .hname { display: none; }
  .val { font-size: .8rem; }
  .ddiff { display: none; }
  .badge { font-size: .62rem; padding: 0 4px; }
  .row-2 { grid-template-columns: 1fr; }
  dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; }
  .mini-kpis { grid-template-columns: 1fr; }
}

/* ---------- v2: Edit-Icon, Korrekturen, Protokoll ---------- */
.day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.day-edit {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .85rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: scale(.9); transition: opacity .12s, transform .12s; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.day:hover .day-edit, .day:focus-within .day-edit, .day:focus-visible .day-edit { opacity: 1; transform: none; }
.day-edit:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: none) { .day-edit { opacity: .55; transform: none; width: 22px; height: 22px; top: 3px; right: 3px; } }
.dcorr { font-size: .64rem; font-weight: 650; color: #24557d; background: #eaf2f9; border-radius: 99px; padding: 0 6px; margin-left: 4px; margin-right: auto; }
.day.corrected { box-shadow: inset 0 -3px 0 #8fb3d6; }
.day.corrected.today { box-shadow: inset 0 0 0 2px var(--accent), inset 0 -3px 0 #8fb3d6; }
.banner-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.banner-admin { background: #f1eef8; color: #4b3d73; }
.ed-info { margin: -6px 0 0; font-size: .82rem; color: #24557d; }
.month-foot { display: block; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.changelog { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.changelog summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.changelog[open] summary::before { transform: rotate(90deg); }
.changelog .table-wrap { border-top: 1px solid var(--line); }
.tbl-sm th, .tbl-sm td { padding: 7px 12px; font-size: .86rem; }
.tbl tr.by-other td:first-child { box-shadow: inset 3px 0 0 #8fb3d6; }
.nowrap { white-space: nowrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label { min-width: 160px; }
@media (max-width: 720px) {
  .dcorr { display: none; }
}
