/* Kompaktes persönliches Protokoll oberhalb der Landkarten. */
.proto-wrap { margin: 2px 46px 12px; color: var(--text-stark); }
.proto-topline { display: flex; align-items: stretch; gap: 8px; }
.proto-mini {
  flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--karte-rand); border-radius: 16px;
  padding: 9px 15px; background: var(--karte-bg-fest); color: inherit;
  font: inherit; text-align: left; cursor: pointer; box-shadow: var(--schatten-ruhe);
}
.proto-mini:hover { border-color: var(--akzent); }
.proto-mini-icon { color: var(--akzent); font-size: 22px; line-height: 1; }
.proto-mini strong { font-size: 13px; white-space: nowrap; }
.proto-mini-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-leise); font-size: 12px; }
.proto-mini-preview time { color: var(--text-mittel); font-weight: 650; }
.proto-chevron { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-leise); transition: transform .18s ease; }
.proto-chevron svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[aria-expanded="true"] > .proto-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .proto-chevron { transition: none; } }
.proto-expanded {
  margin-top: 8px; padding: 20px 22px 24px; border: 1px solid var(--karte-rand);
  border-radius: 18px; background: var(--karte-bg-fest); box-shadow: var(--schatten-ruhe);
}
.proto-toolbar, .proto-tools, .proto-entry-head, .proto-month-toggle { display: flex; align-items: center; }
.proto-toolbar { justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.proto-toolbar > strong { font-size: 16px; }
.proto-tools { gap: 8px; flex-wrap: wrap; }
.proto-add, .proto-link, .proto-del, .proto-date, .proto-month-toggle { font: inherit; cursor: pointer; }
.proto-add { flex: 0 0 auto; min-height: 48px; border: 1px solid var(--akzent); border-radius: 16px; background: var(--akzent); color: #fff; padding: 9px 16px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.proto-add:hover { filter: brightness(1.1); }
.proto-mini:focus-visible, .proto-add:focus-visible, .proto-del:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.proto-link { background: none; border: 0; color: var(--akzent); font-size: 12px; padding: 5px; }
.proto-link:hover { text-decoration: underline; }
.proto-search { width: 100%; margin: 15px 0 9px; padding: 9px 12px; border: 1px solid var(--karte-rand); border-radius: 10px; background: var(--karte-bg-fest); color: var(--text-stark); font: 13px var(--font); outline: none; }
.proto-search:focus { border-color: var(--akzent); }
.proto-month { border-top: 1px solid var(--karte-rand); }
.proto-month-toggle { width: 100%; gap: 9px; padding: 15px 0 10px; background: none; border: 0; color: var(--text-stark); text-align: left; font-size: 14px; font-weight: 700; }
.proto-month-toggle small { flex: 1; color: var(--text-leise); font-size: 11px; font-weight: 500; }
.proto-month-body { padding: 0 0 5px; }
.proto-entry { padding: 10px 0 16px; border-top: 1px solid color-mix(in srgb, var(--karte-rand) 60%, transparent); }
.proto-entry:first-child { border-top: 0; }
.proto-entry-head { gap: 10px; margin-bottom: 5px; min-height: 26px; }
.proto-date, .proto-entry-head time { color: var(--text-mittel); font-size: 12px; font-weight: 700; }
.proto-date { background: transparent; border: 0; padding: 4px 0; }
.proto-date:hover { color: var(--akzent); }
.proto-entry-head > .proto-del, .proto-entry-head > .proto-link { margin-left: auto; }
.proto-del { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; background: none; border: 0; border-radius: 8px; color: var(--text-leise); }
.proto-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proto-del:hover { color: #b65245; }
.proto-text { display: block; width: 100%; min-height: 42px; resize: vertical; padding: 5px 3px; background: transparent; border: 1px solid transparent; border-radius: 6px; outline: none; color: var(--text-stark); font: 14px/1.55 var(--font); }
.proto-text:focus { border-color: var(--karte-rand); padding-left: 9px; background: color-mix(in srgb, var(--karte-bg-fest) 85%, var(--flaeche-1)); }
.proto-text::placeholder { color: var(--text-leise); }
.proto-empty { margin: 18px 0 4px; color: var(--text-leise); font-size: 13px; }
.proto-subtitle { margin: 16px 0 5px; font-size: 13px; }
.proto-archive-name { font-size: 11px; color: var(--text-leise); }
.proto-archive-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.proto-conflict { border-left: 3px solid #bd8246; padding-left: 10px; }
.proto-conflict-label { color: #9c6431; font-size: 11px; }
body.mobil .proto-wrap { margin: 2px 12px 12px; }
body.mobil .proto-expanded { padding: 14px 14px 18px; }
body.mobil .proto-toolbar > strong { font-size: 14px; }
body.mobil .proto-tools { width: 100%; justify-content: flex-end; }
body.mobil .proto-mini { min-height: 46px; }
body.mobil .proto-add { min-height: 46px; padding: 9px 12px; }
body.mobil .proto-mini { gap: 8px; padding: 9px 11px; }
