/* FARBEN: Diese Variablen werden durch das persönliche Farbtheme überschrieben. */
:root {
  --bg: #111315; /* Seitenhintergrund */
  --surface: #1a1d20; /* Seitenleiste und Karten */
  --raised: #24282c; /* Felder und hervorgehobene Flächen */
  --text: #f2f3f1; /* Haupttext */
  --muted: #a5acb2; /* Zusatzinformationen */
  --accent: #e8d021; /* Primäre Aktionen und Markierungen */
  --onaccent: #151711; /* Text auf Akzentfarbe */
  --border: #353a40; /* Linien und Umrandungen */
  --danger: #ff9090;
  --success: #8ed7b0;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 3.1vw, 43px);
  line-height: 1.15;
  letter-spacing: -1.3px;
  margin-bottom: 16px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
small,
.muted {
  color: var(--muted);
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
button svg {
  vertical-align: middle;
}
button.btn {
  display: inline-flex;
}
.btn {
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  line-height: 1.4;
}
.btn:hover {
  border-color: var(--muted);
}
.btn.primary {
  background: var(--accent);
  color: var(--onaccent);
  border-color: var(--accent);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}
.btn.danger {
  color: var(--danger);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.grow {
  flex: 1;
}
.loading {
  padding: 10vw;
  color: var(--muted);
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 27px 18px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  line-height: 1.4;
  font-weight: 400;
  text-transform: uppercase;
}
.sidebar .brand {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 35px 12px 12px;
  font-weight: bold;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}
.side-nav a:hover {
  background: var(--raised);
  color: var(--text);
}
.side-nav a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.side-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 1px solid var(--border);
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.account {
  padding: 18px 4px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account strong {
  font-size: 13px;
  display: block;
}
.account small {
  font-size: 11px;
}
.shell {
  margin-left: 230px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 42px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.crumb b {
  color: var(--text);
  font-weight: 500;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn.mobile-toggle {
  display: none;
}
.main {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 36px 42px 52px;
  flex: 1;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 12px;
}
.lead {
  color: var(--muted);
  max-width: 700px;
  font-size: 15px;
}
.hero {
  padding-bottom: 25px;
}
.hero .btn {
  white-space: nowrap;
}
.notice {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 8px;
  padding: 11px 15px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 26px;
}
.notice strong {
  color: var(--accent);
}
.section-title {
  margin: 29px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px 21px;
}
.stat b {
  font-size: 28px;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat .icon {
  float: right;
  color: var(--accent);
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  flex: 1;
  min-width: 220px;
  color: var(--muted);
}
.search-box input {
  border: 0;
  background: none;
  padding: 12px 0;
  outline: none;
  width: 100%;
  color: var(--text);
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12px;
}
.filter.active {
  background: var(--raised);
  color: var(--text);
  border-color: var(--muted);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 11px;
  padding: 22px;
  position: relative;
}
.card.link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  transition: 0.15s;
}
.card .file-icon {
  width: 40px;
  height: 40px;
  background: var(--raised);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 {
  margin: 12px 0 7px;
  font-size: 19px;
}
.card .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.card-footer {
  padding-top: 15px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.tag {
  font-size: 10px;
  padding: 3px 7px;
  background: var(--raised);
  color: var(--muted);
  border-radius: 4px;
  display: inline-block;
  margin: 2px 4px 2px 0;
}
.tag.yellow {
  color: var(--accent);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 45px 20px;
  border: 1px dashed var(--border);
  border-radius: 9px;
  grid-column: 1/-1;
}
.footer {
  padding: 15px 42px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  gap: 20px;
}
.footer a:hover {
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
input.control,
select.control {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 7px;
  padding: 10px 12px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
.error {
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 16px;
  font-size: 13px;
}
.success {
  border: 1px solid var(--success);
  color: var(--success);
  padding: 12px;
  border-radius: 7px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--surface);
  padding: 45px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.auth-story h1 {
  font-size: clamp(38px, 4.2vw, 64px);
  letter-spacing: -2px;
  max-width: 520px;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--accent);
}
.auth-story p {
  max-width: 400px;
  color: var(--muted);
}
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 8%;
}
.auth-form {
  width: 100%;
  max-width: 430px;
}
.auth-form h2 {
  font-size: 29px;
}
.auth-form .btn {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
}
.auth-form small a {
  color: var(--accent);
}
.track-art {
  height: 140px;
  border-left: 3px solid var(--border);
  border-right: 3px solid var(--border);
  transform: skew(-18deg);
  width: 160px;
  margin: 35px 0 25px 30px;
  position: relative;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 24px,
    var(--border) 24px,
    var(--border) 27px
  );
}
.track-art:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  width: 8px;
  height: 145px;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 25%, transparent);
}
.auth-caption {
  font-size: 11px;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 28px;
}
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
}
.prose {
  overflow-wrap: anywhere;
}
.prose h1 {
  font-size: 29px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 30px;
}
.prose h3 {
  margin-top: 25px;
}
.prose p,
.prose li {
  color: var(--text);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 5px 18px;
  margin: 20px 0;
  background: var(--raised);
}
.prose pre {
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 6px;
}
.prose code {
  font-family: Consolas, monospace;
  font-size: 0.88em;
}
.prose img {
  max-width: 100%;
  border-radius: 8px;
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin: 20px 0;
}
.prose td,
.prose th {
  border: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
}
.prose th {
  background: var(--raised);
}
.side-info h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.source-link {
  display: flex;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  margin: 10px 0;
  background: var(--surface);
}
.source-link .icon {
  color: var(--accent);
}
.source-link small {
  display: block;
  margin-top: 4px;
}
.step {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 23px;
  margin-top: 14px;
  background: var(--surface);
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--onaccent);
  font-size: 12px;
  border-radius: 6px;
  margin-right: 12px;
}
.step h3 {
  display: flex;
  align-items: center;
}
.step-controls {
  position: sticky;
  bottom: 15px;
  background: var(--raised);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 20px;
}
.editor-pane {
  background: var(--surface);
  min-width: 0;
}
.editor-pane + .editor-pane {
  border-left: 1px solid var(--border);
}
.pane-head {
  background: var(--raised);
  padding: 10px 15px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 50px;
}
.pane-head button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  min-width: 29px;
  padding: 3px 6px;
}
.markdown-input {
  width: 100%;
  min-height: 440px;
  border: 0;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
  padding: 20px;
  font:
    14px/1.7 Consolas,
    monospace;
  outline: none;
}
.preview {
  padding: 20px;
  max-height: 600px;
  overflow: auto;
  min-height: 440px;
}
.savebar {
  position: sticky;
  bottom: 0;
  padding: 15px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 20px;
  z-index: 10;
}
.step-edit {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0;
}
.file-list {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.file-row:last-child {
  border: 0;
}
.file-row:hover {
  background: var(--raised);
}
.file-row .icon {
  color: var(--accent);
}
.file-row b {
  font-size: 14px;
}
.file-row small {
  display: block;
  font-size: 11px;
}
.file-row .bytes {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.viewer {
  width: 100%;
  height: 70vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}
.viewer-image {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: auto;
}
.user-card {
  margin: 15px 0;
}
.user-card summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.user-edit {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.swatch {
  height: 70px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
.swatch i {
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
}
.color-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 24px;
}
.color-fields label {
  font-size: 12px;
}
.color-fields input {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table td,
.data-table th {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px;
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--onaccent);
  border-radius: 8px;
  padding: 12px 20px;
  z-index: 100;
  box-shadow: 0 8px 40px #0006;
  max-width: 90%;
  display: none;
}
.mobile-shade {
  display: none;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 48px;
  }
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
  }
  .shell {
    margin-left: 200px;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .side-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
    width: 250px;
  }
  .sidebar.open {
    transform: none;
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 25;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
    gap: 12px;
  }
  .btn.mobile-toggle {
    display: inline-flex;
    padding: 6px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions > .btn {
    font-size: 0;
    padding: 8px;
    gap: 0;
  }

  .main {
    padding: 25px 18px 35px;
  }
  .hero {
    padding-bottom: 10px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero.row {
    align-items: flex-start;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 13px;
  }
  .stat b {
    font-size: 24px;
  }
  .stat span {
    font-size: 10px;
  }
  .stat .icon {
    display: none;
  }
  .footer {
    display: none;
  }
  .notice {
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 25px 25px 0;
    border: 0;
    background: var(--bg);
  }
  .auth-story > div:not(:first-child),
  .auth-story > .auth-caption {
    display: none;
  }
  .auth-content {
    padding: 35px 25px;
  }
  .auth-form {
    max-width: 480px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-pane + .editor-pane {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .markdown-input {
    min-height: 320px;
  }
  .preview {
    min-height: 150px;
    max-height: 400px;
  }
  .article {
    padding: 20px;
  }
  .side-info {
    grid-template-columns: 1fr;
  }
  .file-row .bytes {
    display: none;
  }
  .color-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .savebar {
    gap: 10px;
  }
  .savebar .muted {
    width: 100%;
    font-size: 11px;
  }
  .crumb {
    font-size: 11px;
  }
  .crumb span {
    display: none;
  }
}

/* Zusätzliche Farbvariablen: persönliche Themes können auch diese überschreiben. */
:root {
  --hover: #24282c; /* Fläche unter dem Mauszeiger */
  --active: #353a40; /* Ausgewählter Navigationspunkt */
  --heading: #f2f3f1; /* H1 bis H3 */
  --subheading: #f2f3f1; /* H4 bis H6 */
  --accentHover: #f3de51; /* Primärer Button unter dem Mauszeiger */
}
h1,
h2,
h3 {
  color: var(--heading);
}
h4,
h5,
h6 {
  color: var(--subheading);
}
.btn:hover,
.file-row:hover,
.side-nav a:hover {
  background: var(--hover);
}
.btn.primary:hover {
  background: var(--accentHover);
  color: var(--onaccent);
}
.side-nav a.active {
  background: var(--active);
}
.brand img {
  object-fit: contain;
}
.manual-browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.manual-browser .toolbar {
  margin: 0;
  padding: 16px;
}
.manual-browser .file-list {
  max-height: 58vh;
  overflow: auto;
}
.manual-pagination {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.manual-browser .file-row {
  padding: 10px 16px;
}
.manual-browser .file-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}
.manual-browser .file-row b {
  font-size: 14px;
}
.tutorial-intro {
  margin-bottom: 24px;
}
.profile-edit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.area-edit {
  margin-top: 12px;
  align-items: end;
}
.area-edit .field {
  flex: 1;
}
[hidden] {
  display: none !important;
}
#manual-text {
  width: 100%;
  min-height: 460px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 20px;
}
#manual-preview {
  padding: 20px;
  overflow-wrap: anywhere;
}
.tour-dialog {
  position: fixed;
  inset: auto 16px 20px auto;
  margin: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: 55vh;
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 15px 60px #0009;
}
.tour-dialog::backdrop {
  background: #0002;
}
.tour-target {
  outline: 3px solid var(--accent) !important;
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .manual-browser .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .manual-pagination {
    gap: 12px;
  }
  .tour-dialog {
    padding: 16px;
  }
  .tour-dialog .row {
    gap: 8px;
  }
}

/* Zusätzliche Menüpunkte müssen auch auf niedrigen Bildschirmen erreichbar bleiben. */
.sidebar {
  overflow-y: auto;
}
.sidebar > * {
  flex-shrink: 0;
}

/* 0.3.0: Baukasten, Bilddialog und Benachrichtigungen verwenden persönliche Themefarben. */
.markdown-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}
.image-dialog {
  width: min(600px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.image-dialog::backdrop {
  background: #0009;
}
.image-placeholder,
.external-image {
  display: inline-block;
  padding: 10px;
  border: 1px dashed var(--border);
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.external-image button {
  white-space: normal;
  text-align: left;
}
.prose img {
  max-width: 100%;
  height: auto;
}
#notification-bell {
  position: relative;
  flex-shrink: 0;
}
.notification-badge:not(:empty) {
  background: var(--accent);
  color: var(--onaccent);
  font-size: 11px;
  padding: 0 5px;
  border-radius: 10px;
}
.notification-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.notification-row.unread {
  border-left: 3px solid var(--accent);
}
.notification-row .grow {
  min-width: 0;
  overflow-wrap: anywhere;
}
.notification-link,
.notification-row small {
  display: block;
}
.notification-link {
  margin: 8px 0;
}
@media (max-width: 700px) {
  .notification-row {
    align-items: stretch;
    flex-direction: column;
  }
  .top-actions {
    gap: 6px;
  }
  #notification-bell {
    padding: 6px;
  }
  .image-dialog {
    padding: 16px;
  }
}

/* 0.4.0: Alle neuen Flächen übernehmen die Farben des aktiven Kontothemes. */
:root {
  --tour-shade: rgba(
    0,
    0,
    0,
    0.34
  ); /* Dezente Abdunklung außerhalb des Tour-Ziels */
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.crumb a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumb [aria-current] {
  color: var(--text);
  overflow-wrap: anywhere;
}
.crumb a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.topbar .crumb {
  flex: 1;
}
.auth-wordmark {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.format-icon {
  position: relative;
  width: 44px;
  height: 49px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding: 7px 2px;
  border: 1px solid var(--border);
  border-radius: 4px 12px 4px 4px;
  background: var(--raised);
  color: var(--text);
}
.format-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.format-icon span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
}
.format-drawing,
.format-table,
.format-slides {
  border-bottom: 3px solid var(--accent);
}
.file-row .format-icon {
  margin: 0;
}
.pdf-viewer {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 420px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.pdf-viewer embedpdf-container {
  display: block;
  width: 100%;
  height: 100%;
}
.bookmark-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.bookmark-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
  border-bottom: 1px solid var(--border);
}
.bookmark-row .file-row {
  flex: 1;
  border: 0;
  min-width: 0;
}
.bookmark-row b {
  overflow-wrap: anywhere;
}
.permission-user {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin: 8px 0;
}
.permission-user summary {
  cursor: pointer;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.permission-user summary::before {
  content: "▸";
  color: var(--accent);
}
.permission-user[open] summary::before {
  content: "▾";
}
.permission-user summary .tag {
  margin-left: auto;
}
.permission-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}
.permission-body h2 {
  margin: 16px 0;
  font-size: 17px;
}
.permission-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.permission-list li,
.permission-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.permission-option[hidden] {
  display: none;
}
.permission-list small,
.permission-option small,
.request-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.permission-options {
  max-height: 50vh;
  overflow: auto;
}
.user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 15px 0 0;
  font-size: 12px;
}
.user-stats dt {
  color: var(--muted);
}
.user-stats dd {
  margin: 4px 0 0;
  color: var(--text);
}
.account-tools {
  margin-top: 20px;
}
.account-tools p {
  line-height: 1.65;
  margin: 14px 0;
}
.account-tools form {
  padding-top: 18px;
  max-width: 500px;
}
.account-requests {
  margin-bottom: 25px;
}
.request-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.guided-tour {
  position: fixed;
  inset: 0;
  z-index: 10000;
  isolation: isolate;
}
.tour-shield {
  position: absolute;
  inset: 0;
}
.tour-focus {
  position: fixed;
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px var(--tour-shade);
  pointer-events: none;
}
.tour-panel {
  position: fixed;
  right: 16px;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  bottom: 12px;
  padding: 22px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 35px #0006;
}
.tour-panel h2 {
  font-size: 21px;
  margin: 12px 0;
}
.tour-panel p {
  line-height: 1.6;
  margin: 0 0 20px;
}
.tour-panel small {
  color: var(--muted);
}
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar .crumb {
    display: flex;
    font-size: 11px;
  }
  .top-actions {
    margin-left: auto;
  }
  .permission-user summary {
    gap: 8px;
    padding: 12px;
  }
  .permission-user summary .tag {
    margin-left: 0;
  }
  .permission-list li {
    align-items: flex-start;
  }
  .permission-option {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .bookmark-row {
    gap: 4px;
    padding-right: 6px;
  }
  .bookmark-row .file-row {
    padding: 12px 8px;
  }
  .bookmark-row .btn {
    padding: 9px 7px;
    font-size: 11px;
  }
  .pdf-viewer {
    height: 72dvh;
    min-height: 360px;
  }
  .tour-panel {
    right: 12px;
    padding: 17px;
  }
  .tour-panel p {
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 62px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .topbar .crumb {
    order: 3;
    flex-basis: 100%;
    gap: 6px;
  }
  .topbar .crumb span {
    display: inline;
  }
}

/* 0.5.0 – Farben bleiben an das Kontotheme gebunden. Schriftfamilie unverändert. */
button:disabled {
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: progress;
}
[hidden] {
  display: none !important;
}
.auth-name {
  font-size: clamp(28px, 3.7vw, 54px);
  overflow-wrap: anywhere;
}
.auth-mobile-name {
  display: none;
}
.permission-dialog {
  width: min(640px, calc(100vw - 32px));
  height: min(650px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.permission-dialog[open] {
  display: flex;
  flex-direction: column;
}
.permission-dialog > * {
  flex-shrink: 0;
}
.permission-dialog .permission-options {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.permission-dialog .permission-message {
  min-height: 24px;
  margin: 8px 0;
}
.editor-dialog {
  width: min(740px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.editor-dialog::backdrop {
  background: #0008;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.member-card h2 {
  font-size: 17px;
  margin: 0 0 6px;
}
.member-card small {
  display: block;
}
.member-card > .icon {
  margin-left: auto;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--raised);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
}
.profile-avatar.large {
  width: 112px;
  height: 112px;
  font-size: 30px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 26px;
}
.profile-bio,
.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-stats {
  margin-top: 24px;
}
.profile-contributions {
  margin-top: 30px;
}
.visibility-options {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.visibility-options legend {
  padding: 0 8px;
}
.notes-privacy {
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}
#note-body {
  width: 100%;
  min-height: 340px;
  padding: 18px;
  border: 0;
  resize: vertical;
  background: var(--surface);
}
.storage-empty {
  display: inline-block;
  margin: 8px 0 22px;
  padding: 6px 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pagination {
  margin: 20px 0;
}
.drive-page {
  overflow: hidden;
}
.drive-page .shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.drive-page .topbar,
.drive-page .footer {
  flex-shrink: 0;
}
.drive-page .main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-top: 25px;
  padding-bottom: 12px;
}
.drive-page .hero {
  margin-bottom: 15px;
  flex-shrink: 0;
}
.drive-page .hero h1 {
  margin-bottom: 8px;
}
.drive-page .hero p {
  margin-bottom: 0;
}
.drive-page .notice {
  flex-shrink: 0;
  margin-bottom: 12px;
}
.drive-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.drive-menubar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.folder-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.folder-crumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drive-search {
  margin: 0;
  padding: 10px 0;
  flex-shrink: 0;
}
.drive-scroll {
  flex: 1;
  min-height: 65px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.drive-scroll .file-row {
  flex-shrink: 0;
}
.drive-scroll .file-row > div {
  flex: 1;
  min-width: 0;
}
.drive-scroll .file-row b {
  overflow-wrap: anywhere;
}
.drive-count {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}
.document-actions,
.page-actions {
  margin: 0 0 22px;
}
.credits {
  margin-bottom: 20px;
}
.credits h2 {
  font-size: 17px;
}
.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.credits-grid dt {
  font-size: 12px;
  color: var(--muted);
}
.credits-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.document-flags {
  margin-top: 28px;
}
.document-flags .card,
.changelog .card {
  margin-bottom: 18px;
}
.trash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding: 18px;
}
.trash-row small {
  display: block;
}
.bookmark-date-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 16px;
}
.bookmark-date-controls .field {
  min-width: 150px;
  flex: 1;
}
.bookmark-date-controls input,
.bookmark-date-controls select {
  min-width: 0;
}
.print-toolbar {
  max-width: 900px;
  margin: 25px auto;
  padding: 15px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}
#print-document {
  max-width: 210mm;
  margin: 0 auto 30px;
  padding: 18mm;
  background: #fff;
  color: #111;
  line-height: 1.5;
}
#print-document .prose,
#print-document h1,
#print-document h2,
#print-document h3,
#print-document h4,
#print-document h5,
#print-document p,
#print-document a {
  color: #111;
}
#print-document .prose code,
#print-document .prose pre,
#print-document .prose blockquote {
  background: #f5f5f5;
  color: #111;
  border-color: #bbb;
}
#print-document table {
  width: 100%;
  border-collapse: collapse;
}
#print-document th,
#print-document td {
  border: 1px solid #aaa;
  padding: 6px;
  color: #111;
  background: #fff;
}
#print-document header {
  border-bottom: 1px solid #bbb;
  margin-bottom: 20px;
}
#print-document header p,
#print-document footer {
  font-size: 11px;
}
#print-document footer {
  margin-top: 28px;
  border-top: 1px solid #bbb;
  padding-top: 12px;
  overflow-wrap: anywhere;
}
.print-warning {
  border: 1px solid #bbb;
  padding: 8px;
  font-size: 12px;
}
.print-step {
  margin-top: 24px;
}
.print-view #toast {
  display: none;
}
@media (max-width: 900px) {
  .auth-mobile-name {
    display: block;
    font-weight: bold;
    font-size: 26px;
    margin-bottom: 25px;
  }
  .drive-page .main {
    padding-top: 15px;
  }
  .drive-page .hero h1 {
    font-size: 26px;
  }
  .drive-page .hero .eyebrow {
    display: none;
  }
  .drive-page .hero .lead {
    font-size: 13px;
  }
  .drive-page .notice {
    font-size: 11px;
    padding: 8px;
  }
  .drive-menubar {
    padding: 8px;
    gap: 8px;
  }
  .drive-menubar .row {
    gap: 6px;
  }
  .drive-search {
    flex-wrap: wrap;
    gap: 6px;
  }
  .drive-search .check {
    font-size: 12px;
  }
  .drive-page .file-row {
    padding: 11px;
  }
  .credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .editor-dialog {
    padding: 18px;
  }
  #print-document {
    padding: 20px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 17mm;
  }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .print-toolbar,
  #toast,
  .sidebar,
  .topbar,
  .footer,
  .page-actions,
  .print-document-controls {
    display: none !important;
  }
  #print-document {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    font-size: 11pt;
    box-shadow: none;
  }
  #print-document h1 {
    font-size: 23pt;
  }
  #print-document h2 {
    font-size: 16pt;
    break-after: avoid;
  }
  #print-document h3 {
    font-size: 13pt;
    break-after: avoid;
  }
  #print-document p {
    orphans: 3;
    widows: 3;
  }
  #print-document img {
    max-width: 100%;
    max-height: 220mm;
    object-fit: contain;
    break-inside: avoid;
  }
  #print-document pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  #print-document thead {
    display: table-header-group;
  }
  #print-document tr {
    break-inside: avoid;
  }
  #print-document .external-image {
    border: 1px solid #bbb;
    color: #111;
  }
  #print-document .external-image button {
    display: none;
  }
}

/* 0.6: --reportColor färbt beide Melden-Aktionen; unter Farben & Konto einstellbar. */
:root {
  --reportColor: #d98282;
}
a[href^="/report"],
.report-action {
  color: var(--reportColor) !important;
}
.side-info .tag {
  display: inline-block;
  padding: 5px 9px;
  margin: 3px 4px 3px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
}
html {
  scrollbar-gutter: stable;
}
html.route-pending,
html.route-pending body {
  overflow: hidden;
}
.sidebar .side-label {
  margin-top: 22px;
}
.profile-contacts {
  margin: 20px 0;
}
.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-row > div {
  flex: 1;
  min-width: 160px;
  overflow-wrap: anywhere;
}
.contact-row strong,
.contact-row small {
  display: block;
}
.message-photo {
  display: block;
  max-width: min(100%, 850px);
  max-height: 75vh;
  object-fit: contain;
  margin: 20px auto;
}
#rules-form textarea {
  width: 100%;
}
#note-mode {
  margin: 12px 0;
}
.note-reading > .field,
.note-reading > .row,
.note-reading > small,
.note-reading .editor-pane {
  display: none;
}
.note-reading .editor-layout {
  display: block;
}
.note-reading .preview-pane {
  min-height: 200px;
}
.note-reading .preview-pane .pane-head {
  display: none;
}
.selection-bar {
  flex-shrink: 0;
  padding: 8px 0;
  font-size: 12px;
}
.selection-bar small {
  color: var(--muted);
}
.drive-entry {
  padding: 10px 12px;
  cursor: default;
}
.drive-entry.selected {
  background: var(--active);
  box-shadow: inset 3px 0 var(--accent);
}
.drive-entry .entry-open {
  color: var(--text);
}
.drive-entry input {
  flex-shrink: 0;
}
.drive-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.drive-context {
  position: fixed;
  z-index: 200;
  min-width: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 12px 32px #0006;
}
.drive-context button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 5px;
}
.drive-context button:hover,
.drive-context button:focus-visible {
  background: var(--hover);
}
.bulk-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.batch-results {
  flex-shrink: 0;
  max-height: 130px;
  overflow: auto;
  font-size: 12px;
  margin: 6px 0;
}
.batch-results p {
  margin: 5px 0;
}
.upload-dialog {
  width: min(920px, calc(100vw - 24px));
}
.upload-queue {
  max-height: 42vh;
  overflow: auto;
  margin: 12px 0;
}
.upload-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
}
.upload-item > strong,
.upload-status {
  display: block;
  overflow-wrap: anywhere;
}
.upload-status {
  font-size: 12px;
  color: var(--muted);
}
.upload-item progress {
  width: 100%;
  accent-color: var(--accent);
}
.drop-zone {
  display: block;
  padding: 18px;
  margin-top: 15px;
  border: 2px dashed var(--border);
  border-radius: 8px;
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--raised);
}
.drop-zone input {
  display: block;
  margin-top: 10px;
  max-width: 100%;
}
@media (max-width: 700px) {
  .selection-bar small {
    display: none;
  }
  .drive-entry {
    gap: 8px;
  }
  .drive-entry .bytes {
    display: none;
  }
  .upload-dialog {
    padding: 15px;
  }
  .drive-page .hero {
    padding: 10px 0;
  }
}

/* 0.7.0: Bedienung nutzt die vorhandenen, vom Nutzer wählbaren Theme-Farben. */
.side-group > summary.side-label {
  cursor: pointer;
  padding: 10px 0;
  margin: 12px 0 0;
  user-select: none;
}
.side-group > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.notification-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.notification-tabs .btn {
  white-space: normal;
}
#message-form .message-body-field {
  width: 100%;
  min-width: 0;
}
#message-form textarea {
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
}
.drive-entry {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.drive-scroll:not(.selection-mode) .drive-entry > input {
  display: none;
}
.drive-scroll.selection-mode .drive-entry > input {
  display: block;
}
.selection-bar [hidden] {
  display: none;
}
.drive-entry[draggable="true"] {
  cursor: grab;
}
.drive-drag-source {
  opacity: 0.65;
}
.drive-drop-target {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--active) !important;
}
#drive-selection-mode[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 900px) {
  .auth-story {
    display: none;
  }
  .auth-layout {
    display: block;
  }
  .auth-content {
    min-height: 100svh;
    padding: 30px 24px;
    align-items: flex-start;
  }
  .auth-mobile-name {
    margin-bottom: 18px;
  }
}

/* 0.8.0: sichtbarer Zugang zu Feedback auch ohne mobilen Footer. */
.mobile-feedback {
  display: none;
}
.document-locations {
  margin-top: 16px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .mobile-feedback {
    display: inline-flex;
    color: var(--reportColor);
  }
  .top-actions {
    gap: 3px;
  }

  .sidebar {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}
/* Redaktion 0.9 – übernimmt die Kontofarben. */
.review-panel,
.source-editor090,
.document-history090 {
  margin-block: 20px;
}
.review-panel details {
  margin-top: 18px;
}
.review-event,
.reference-row {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.reference-row .form-grid {
  margin: 12px 0;
}
.nav-entry090 {
  align-items: end;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-entry090 .field {
  flex: 1;
  min-width: 160px;
}
.source-rows {
  max-height: 650px;
  overflow: auto;
}

/* 0.10: Sternfarben werden unter Farben & Konto eingestellt. */
.pin-star {
  color: var(--starUnpinned, var(--muted));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}
.pin-star svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.pin-star.is-pinned {
  color: var(--starPinned, var(--accent));
}
.pin-star.is-pinned svg {
  fill: currentColor;
}
.pin-star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.pin-card100 {
  position: relative;
  min-width: 0;
  display: flex;
}
.pin-card100 > .card {
  width: 100%;
  margin: 0;
}
.pin-card100:has(.pin-star) > .card {
  padding-right: 72px;
}
.pin-card100 > .pin-star {
  position: absolute;
  top: 14px;
  right: 14px;
}
.pin-page {
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.drive-picker100 {
  width: min(780px, calc(100vw - 24px));
  max-width: 780px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
}
.picker-frame {
  height: min(650px, calc(100dvh - 90px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.picker-frame h2,
.picker-frame p {
  margin: 0;
}
.picker-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.picker-file,
.picker-folder {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.picker-file:hover,
.picker-folder:hover {
  background: var(--hover);
}
.picker-file input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.picker-file span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.picker-file small {
  display: block;
  color: var(--muted);
}
.picker-file .file-icon {
  flex-shrink: 0;
}
.picker-navigation [data-path] {
  overflow-wrap: anywhere;
}
.selected-source100 {
  padding: 7px 0;
}
.tour-order100 {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tour-order100 li {
  padding: 12px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.drag-grip {
  font-size: 24px;
  cursor: grab;
  padding: 4px;
}
.markdown-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.markdown-more {
  position: relative;
}
.markdown-more > summary {
  list-style: none;
  cursor: pointer;
}
.markdown-menu100 {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  width: 260px;
  max-height: 320px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 32px #0005;
}
.markdown-menu100 button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  background: none;
  color: var(--text);
  border: 0;
  text-align: left;
  cursor: pointer;
}
.markdown-menu100 button:hover,
.markdown-menu100 button:focus-visible {
  background: var(--hover);
}
@media (max-width: 600px) {
  .drive-picker100 {
    padding: 14px;
  }
  .picker-frame > .row {
    flex-wrap: wrap;
  }
  .markdown-menu100 {
    right: auto;
    left: 0;
    width: 235px;
  }
  .tour-order100 li {
    gap: 6px;
    padding: 8px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 0.11: ruhigere Werkzeugbeschriftung; vorhandene Schrift und Themefarben. */
.markdown-tools .btn,
.markdown-tools select,
.markdown-menu100 button {
  font-weight: 400;
  letter-spacing: normal;
}
.markdown-tools .icon {
  width: 16px;
  height: 16px;
}
.editor-search110 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}
.editor-search110[hidden] {
  display: none;
}
.editor-search110 label {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 140px;
}
.editor-search110 input {
  min-width: 0;
  width: 100%;
}
.editor-search110 [data-count] {
  font-size: 12px;
  color: var(--muted);
}
.special-chars110 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.special-chars110 .btn {
  font-size: 22px;
  justify-content: center;
  min-height: 44px;
}
.synced-editor110 {
  align-items: start;
}
.synced-editor110 > section:first-child {
  min-width: 0;
}
.synced-editor110 > section:nth-child(2) {
  box-sizing: border-box;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.synced-editor110 > section:nth-child(2) > .pane-head {
  flex-shrink: 0;
}
.synced-editor110 > section:nth-child(2) > .preview,
.synced-editor110 > section:nth-child(2) > .prose {
  flex: 1;
  min-height: 0;
  overflow: auto;
  max-height: none;
}
.synced-editor110 textarea {
  resize: vertical;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-actions110 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions110 .btn {
  margin: 0;
}
#navigation-search {
  margin-bottom: 0;
}
label.search-box:has(#navigation-search) {
  margin-top: 18px;
  margin-bottom: 20px;
}
#navigation-items {
  gap: 18px;
}
.footer-help110 {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mobile-page-help110 {
  display: none;
}
.warning-history110 {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--raised);
}
.warning-history110 > details > .stack {
  margin-top: 14px;
}
.warning-history110 summary {
  cursor: pointer;
}
.maintenance-notice110 {
  border-color: var(--accent);
}
.maintenance-block110 {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}
.maintenance-block110 > .card {
  width: min(650px, 100%);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .mobile-page-help110 {
    display: inline-flex;
    padding: 8px;
  }
  .topbar {
    gap: 6px;
  }
  .topbar .breadcrumbs {
    min-width: 0;
  }
  .special-chars110 {
    grid-template-columns: repeat(4, 1fr);
  }
  .editor-search110 label {
    flex-basis: 100%;
  }
  .synced-editor110 {
    grid-template-columns: 1fr;
  }
}
@media print {
  .footer-help110,
  .mobile-page-help110,
  .editor-search110,
  .maintenance-notice110 {
    display: none !important;
  }
}

/* Persönliche Anordnung: Farben kommen aus dem gewählten Theme. */
.personal120 {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.personal-menu120,
#personal-path120 {
  flex-wrap: wrap;
}
.personal-rows120 {
  max-height: 60vh;
  overflow: auto;
  min-height: 100px;
}
.personal-row120 {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.personal-open120 {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.personal-open120 svg {
  flex-shrink: 0;
}
.personal-open120 small,
.personal-pick-row120 small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.personal-picker120 {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.personal-picker-list120 {
  height: 300px;
  max-height: 35dvh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.personal-pick-row120 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px;
  overflow-wrap: anywhere;
}
.personal-pick-row120 input {
  width: 18px;
  flex-shrink: 0;
}
/* Geöffnetes Zusatzmenü erhält eine eigene Zeile, statt links aus dem Editor zu ragen. */
.markdown-more[open] {
  flex-basis: 100%;
  min-width: 0;
}
.markdown-more[open] > summary {
  width: fit-content;
}
.markdown-more .markdown-menu100 {
  position: static;
  left: auto;
  right: auto;
  width: min(260px, 100%);
  box-sizing: border-box;
  margin-top: 8px;
  max-height: 300px;
}
.markdown-tools [data-md="bold"],
.markdown-tools [data-md="italic"],
.markdown-tools [data-md="underline"],
.markdown-tools [data-md="strike"] {
  min-width: 36px;
  justify-content: center;
}

.personal-label120 {
  display: grid;
  gap: 8px;
}
.personal-label120 > .control {
  width: 100%;
  box-sizing: border-box;
}

/* Suchtreffer im Markdown-Textfeld; aktueller Treffer ist kräftiger umrandet. */
.search-editor130 {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.search-editor130 > textarea {
  position: relative;
  z-index: 1;
  display: block;
}
.search-editor130.search-active130 > textarea {
  background: transparent !important;
}
.search-mirror130 {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.search-text130 {
  position: relative;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: transparent;
}
.search-text130 mark {
  color: transparent;
  background: var(--md-search-bg, #d4af3766);
  border-radius: 2px;
}
.search-text130 mark.current {
  background: var(--md-search-current-bg, #e8b634b3);
  outline: 2px solid var(--accent);
}
.color-suggestion130[hidden],
.search-mirror130[hidden] {
  display: none;
}
.color-suggestion130::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid var(--text);
  border-radius: 3px;
  background: var(--suggested-color);
}

/* 0.14: Kennwort- und Mailformulare verwenden die aktiven Themefarben. */
.password-card140, .mail-card140 { margin-top: 20px; }
.password-card140 .control { max-width: 540px; }
.mail-card140 input[type="checkbox"] { width: auto; flex: 0 0 auto; }
.auth-form .success, .auth-form .notice { overflow-wrap: anywhere; }

.auth-form #password-content140 > p { margin: 16px 0; }

/* 0.15: Sortierung und Ablagen nutzen die bestehenden Themefarben. */
.drive-sort150 { display: flex; align-items: center; gap: 8px; }
.drive-sort150 select { width: auto; min-width: 190px; }
.document-location-list150 { list-style: none; padding: 0; }
.document-location-row150 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 650px) { .drive-sort150 { width: 100%; flex-wrap: wrap; } .drive-sort150 select { flex: 1; } }

/* 0.16.0: dezente Ordnerzahlen und Dokumentinfos unter der Vorschau. */
.folder-count160 { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.document-extra160 { margin-top: 20px; display: grid; gap: 16px; }
.document-extra160 > .card { margin: 0; }
.document-locations > summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.document-locations > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.document-location-content160 { margin-top: 16px; }
.selection-bar [hidden] { display: none; }

@media (max-width: 700px) {
  /* Mehr nutzbare Listenhöhe, ohne Aktionsflächen unbedienbar klein zu machen. */
  .drive-page .main { padding: 8px 12px 8px; }
  .drive-page .hero { padding: 0; margin: 0 0 8px; }
  .drive-page .hero h1 { font-size: 22px; margin: 0; }
  .drive-page .hero .lead { display: none; }
  .drive-menubar { display: block; padding: 8px; }
  .drive-menubar .folder-crumb { margin-bottom: 6px; }
  .drive-menubar > .row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .drive-menubar > .row > * { flex-shrink: 0; min-height: 40px; }
  .drive-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6px 8px; padding: 8px 0; }
  .drive-search .search-box { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 9px 12px; }
  .drive-search .check { margin: 0; }
  .drive-search .drive-sort150 { min-width: 0; font-size: 0; }
  .drive-search .drive-sort150 select { min-width: 0; width: 100%; font-size: 12px; padding: 8px 4px; }
  .drive-page .selection-bar { gap: 7px; margin-bottom: 8px; }
  .drive-page .selection-bar:not(.selecting160) #drive-selected,
  .drive-page .selection-bar:not(.selecting160) #drive-actions { display: none; }
  .drive-page .selection-bar .btn { min-height: 40px; }
  .drive-page .file-row { padding: 9px; min-height: 60px; }
  .drive-page .drive-scroll { min-height: 160px; }
  /* Bei sehr niedrigen Displays/Querformat bleibt auch die Bedienleiste erreichbar. */
  .drive-page .shell { min-height: 580px; }
  .drive-page { overflow-y: auto; }
}
@media (max-width: 700px) {
  .drive-search .search-box { padding: 0 12px; }
  .drive-page .selection-bar { padding: 0; }
  .drive-entry:has(.folder-count160) .entry-open + small,
  .drive-entry .folder-count160 { display: inline; }
  .drive-entry .folder-count160::before { content: " · "; }
  .drive-entry:has(.folder-count160) .entry-open { display: block; }
}
@media (max-width: 700px) and (max-height: 740px) {
  /* Der feste Kopf zeigt bereits SignalerDrive; die zweite Überschrift entfällt. */
  .drive-page .hero { display: none; }
}
@media (max-width: 700px) {
  .drive-page .file-row .format-icon { width: 36px; height: 40px; flex-basis: 36px; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .drive-menubar .folder-crumb:has(> span:only-child) { display: none; }
}
@media (max-width: 700px) {
  .drive-page .drive-entry > div { line-height: 1.35; }
}

/* 0.17: Platz für Displayausschnitte in der Homescreen-Ansicht. */
.webapp170 .topbar { padding-top: env(safe-area-inset-top, 0px); min-height: calc(64px + env(safe-area-inset-top, 0px)); }
.webapp170 .main { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.webapp170 .footer { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.webapp170 .sidebar { padding-top: max(24px, env(safe-area-inset-top, 0px)); }
.webapp170 .auth-layout { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
#install-webapp170[hidden] { display: none; }
#webapp-title170 ~ details { margin-top: 16px; }
@media (max-width: 700px) { .webapp170 .main { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); } }

/* 0.18: Desktop-Inhalt scrollt innerhalb des Rahmens, Footer bleibt erreichbar. */
@media screen and (min-width: 761px) {
  .shell { height: 100dvh; min-height: 0; overflow: hidden; }
  .shell > .topbar, .shell > .footer { flex-shrink: 0; }
  .shell > .main { flex: 1; min-height: 0; overflow-y: auto; }
  .shell > .footer { background: var(--bg); flex-wrap: wrap; }
  .drive-page .shell > .main { overflow: hidden; }
}
.md-outline180 { -webkit-text-stroke: .4px #000; paint-order: stroke fill; text-shadow: .35px 0 #000, -.35px 0 #000, 0 .35px #000, 0 -.35px #000; }
.md-link-kind180 { display: inline-block; font-size: .7em; font-weight: 500; border: 1px solid var(--border); border-radius: 4px; padding: 0 .35em; margin-left: .2em; color: var(--muted); vertical-align: middle; }
.reader-search180 { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin: 16px 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.reader-search180 label { flex: 1; min-width: 140px; font-size: 12px; }
.reader-search180 input { width: 100%; display: block; margin-top: 5px; }
.reader-search180 output { align-self: center; font-size: 12px; }
mark[data-find180] { background: #ffe78a; color: #111; border-radius: 2px; }
mark[data-find180].current { outline: 2px solid #975500; background: #ffc14d; }
.rank-badges180 { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rank-badge180 { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; background: var(--rank-color); color: var(--rank-text); font-size: 12px; font-weight: 600; }
.honor-rank180 { border-radius: 20px; border: 2px double var(--rank-text); }
.trash-selection180 { flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.trash-row > input, .file-row > input { flex-shrink: 0; }
#badge-list180 { margin-top: 20px; }
@media print { .reader-search180, .trash-selection180 { display: none !important; } mark[data-find180] { background: transparent; color: inherit; outline: none !important; } }

/* 0.19.1: Der Editor endet an seiner Aktionsleiste, ohne Abstand zum Footer. */
@media screen and (min-width: 761px) {
  .main.editor-main181 { padding-bottom: 0; }
  .editor-main181 .savebar { bottom: 0; margin-bottom: 0; flex-wrap: wrap; }
  /* Eigene Darstellungsebene gegen veraltete Teilbilder beim Desktop-Scrollen.
     Kein Canvas-Schnappschuss: Die Originalanimation läuft weiter. */
  .animated-safe181 { transform: translateZ(0); backface-visibility: hidden; }
}
@media print { #discard-draft181 { display: none !important; } }

/* 0.19: Farben kommen aus dem persönlichen Theme. */
.presence190{display:inline-block;width:.65rem;height:.65rem;border-radius:50%;background:var(--offlineColor,#8b9298);border:1px solid var(--border);vertical-align:middle;flex:none}
.presence190.online{background:var(--onlineColor,#54aa79)}
.awards190 progress{display:block;width:100%;margin:16px 0 5px;accent-color:var(--accent)}
.drive-page .shell>.main.drive-offset190{overflow:auto}
.plan-tools190{align-items:end;flex-wrap:wrap;gap:12px}
.plan-tools190>.search-box{min-width:200px;flex:1}
.plan-tools190 label.field{margin:0;min-width:140px;flex:1}
.plan-actions190{margin:16px 0;flex-wrap:wrap}
.plan-board190{display:flex;gap:16px;overflow-x:auto;align-items:flex-start;padding:4px 0 20px;max-width:100%;scroll-snap-type:x proximity}
.plan-column190{flex:0 0 292px;max-width:85vw;border:1px solid var(--border);background:var(--surface);border-radius:12px;scroll-snap-align:start}
.plan-column190>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid var(--border)}
.plan-column190 h2{font-size:16px;margin:0;overflow-wrap:anywhere}
.plan-cards190{padding:12px;display:flex;flex-direction:column;gap:12px;min-height:140px}
.plan-card190{background:var(--raised);border:1px solid var(--border);border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.plan-card190[draggable=true]{cursor:grab}
.plan-card190[draggable=true]:active{cursor:grabbing}
.plan-open190{background:none;border:0;padding:0;color:var(--heading,var(--text));font:inherit;font-weight:600;text-align:left;cursor:pointer;line-height:1.5;overflow-wrap:anywhere}
.plan-open190:hover{text-decoration:underline}
.plan-open190:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.plan-card190 .tag{font-size:11px;white-space:normal}
.plan-card190 .plan-menu190{padding:5px 10px;font-size:20px}
.plan-owner190{display:flex;gap:7px;align-items:center;margin:0;color:var(--muted);font-size:13px}
.plan-owner190 svg{width:15px;height:15px;flex:none}
.plan-empty190{font-size:13px;margin:12px 0}
.plan-detail190{width:min(720px,94vw)}
.plan-detail190 h2{font-size:24px;overflow-wrap:anywhere}
.plan-detail-actions190{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.plan-link190{padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:16px 0}
.plan-history190{max-height:300px;overflow:auto;margin-bottom:16px}
.plan-history-entry190{border-bottom:1px solid var(--border);padding:12px 0}
.plan-history-entry190 p{margin:6px 0;overflow-wrap:anywhere}
.plan-detail190 textarea{width:100%;min-height:110px}
@media(max-width:600px){.plan-tools190{display:grid;grid-template-columns:1fr 1fr}.plan-tools190>.search-box{grid-column:1/-1;min-width:0}.plan-tools190 label.field{min-width:0}.plan-actions190 .btn{flex:1}.plan-detail190 .row{flex-wrap:wrap}}

.plan-filter190>summary{display:none;cursor:pointer;color:var(--text);padding:12px 0}
@media(max-width:600px){.plan-filter190>summary{display:list-item}.plan-filter190:not([open])>.plan-tools190{display:none}.plan-filter190[open]>.plan-tools190{margin-top:12px}}

/* Profilrahmen: Werte werden am Profil des abgebildeten Nutzers gesetzt. */
.profile-avatar {
  border: var(--avatar-frame-width,2px) var(--avatar-frame-style,solid) var(--avatar-frame-color,#8b9298);
  box-sizing: border-box;
}
.frame-preview191{padding:12px 0;display:flex;align-items:center}
#avatar-frame191 input[type=color]{min-height:42px;width:100%}
#ranks191{margin-bottom:32px}
#ranks191 h3{margin-top:24px}
.ranks191{margin:16px 0 24px}
.rank-card191{display:flex;align-items:flex-start;flex-direction:column;gap:12px}
.rank-card191 p{margin:0;flex:1}
#rank-field191[hidden],#report-target191[hidden]{display:none}

/* 0.19.2: wiederverwendbare Aktionsleisten und aufklappbare Einstellungen. */
.actionbar192 { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:12px 0 18px; }
.actionbar192 .search-box { flex:1 1 240px; margin:0; min-width:0; }
.hero .actionbar192 { margin:0; }
.account-section192 { margin:12px 0; min-width:0; }
.account-section192 > summary { cursor:pointer; font-weight:600; padding:12px 0; }
.section-body192 { padding:12px 0; margin:0!important; min-width:0; }
.user192 { margin-bottom:12px; }
.user192 > summary { flex-wrap:wrap; gap:10px; }
.user192 .account-section192 { border-top:1px solid var(--border); }
.user192 .profile-edit { margin:0; }
.status192 { border:1px solid currentColor; border-radius:50%; width:32px; height:32px; min-width:32px; background:var(--surface); font-size:20px; font-weight:700; cursor:pointer; }
.status192.active { color:#49b875; }.status192.blocked { color:#ef7c7c; }.status192.pending { color:#e0b84c; }
.status192:disabled { opacity:1; cursor:default; }
.center-card192 { display:block; text-decoration:none; color:var(--text); }
#avatar-remove { margin-top:12px; }
#draft-list { margin-top:18px; }
#report-list192 .file-row p { white-space:normal; overflow-wrap:anywhere; }
.user192 .permission-list { margin-top:12px; }
@media(max-width:600px) { .actionbar192 { align-items:stretch; }.actionbar192 .btn { white-space:normal; }.user192 > summary { padding-right:0; } }
/* 0.19.3: wenige primäre Aktionen; zusätzliche Funktionen aufklappbar. */
.message-tools193 { margin:0 0 18px; }
.content-tools193 { margin:0 0 18px; align-items:flex-start; }
.content-tools193 > .btn { min-height:42px; }
.more-actions193 { min-width:0; }
.more-actions193 > summary { cursor:pointer; list-style:none; min-height:42px; }
.more-actions193 > summary::-webkit-details-marker { display:none; }
.more-items193 { display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:10px; margin-top:8px; background:var(--surface); border:1px solid var(--border); border-radius:8px; }
.more-items193 .btn { justify-content:flex-start; white-space:normal; }
.reader-search180[hidden],.review-panel[hidden] { display:none!important; }
.author-link193 { font-size:inherit; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.drive-tools193 { min-width:0; position:relative; }
.drive-tools193 > .row { gap:8px; }
.drive-more193 { display:none; }
@media(max-width:700px) {
 .drive-tools193 { width:100%; }
 .drive-tools193 > .row { flex-wrap:nowrap; overflow-x:auto; padding:2px 0 4px; scrollbar-width:thin; }
 .drive-tools193 > .row > * { flex-shrink:0; min-height:44px; }
 .drive-icon193 { min-width:44px; padding:10px!important; justify-content:center; }
 .drive-icon193 > span { display:none; }
 .drive-icon193 svg { width:21px; height:21px; }
 .drive-more193:not([hidden]) { display:block; position:absolute; right:0; top:2px; height:44px; width:32px; border:0; color:var(--muted); background:linear-gradient(to right,transparent,var(--surface) 35%); font-size:27px; cursor:pointer; }
 .content-tools193 { gap:8px; }
 .more-actions193[open] { flex-basis:100%; }
 .reader-search180 { flex-wrap:wrap; }
 .reader-search180 label { min-width:0; flex:1 1 180px; }
}
/* 0.19.4: geschlossene Fachbereichsauswahl belegt nur eine Zeile. */
#area-filters { min-width:0; max-width:100%; }
.area-picker194 { position:relative; max-width:100%; }
.area-picker194 > summary { display:flex; gap:12px; justify-content:space-between; list-style:none; cursor:pointer; max-width:100%; }
.area-picker194 > summary::-webkit-details-marker { display:none; }
.area-value194 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.area-popup194 { position:absolute; z-index:30; top:calc(100% + 6px); left:0; width:330px; max-width:calc(100vw - 48px); padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); box-shadow:0 8px 24px #0005; }
.area-popup194 label { display:flex; flex-direction:column; gap:6px; font-size:13px; }
.area-options194 { display:flex; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto; margin-top:10px; }
.area-option194 { justify-content:flex-start; text-align:left; white-space:normal; overflow-wrap:anywhere; flex-shrink:0; }
.area-option194[aria-pressed=true] { border-color:var(--accent); }

.area-picker194.opens-up194 .area-popup194 { top:auto; bottom:calc(100% + 6px); }
/* 0.19.5: Symbolleiste auf allen Geräten und klare Abstände. */
.drive-icon193 > span { display:none; }
.drive-icon193 { min-width:44px; min-height:44px; padding:10px!important; justify-content:center; }
.drive-icon193 svg { width:21px; height:21px; }
.message-back195 { margin:18px 0; }
.line-editor195 { border-top:1px solid var(--border); padding-top:16px; margin-top:4px; }
.line-fields195 { margin-top:12px; }
.line-fields195[hidden] { display:none; }
.line-fields195 textarea { width:100%; }
.line-fields195 details { margin:12px 0; }
.line-preview195 { max-height:260px; overflow:auto; overflow-wrap:anywhere; }
.line-presets195 .actionbar192 { gap:8px; }

/* Tastaturziel bleibt auch bei unveränderter Mehrfachauswahl erkennbar. */
.drive-entry.keyboard-current198 { outline: 2px solid var(--accent); outline-offset: -2px; }
.preset-list198 { display: grid; gap: 12px; max-height: 55vh; overflow: auto; }
.preset-list198 li { overflow-wrap: anywhere; }

/* 0.19.9: image variants and readable review differences. */
.image-toggle199 {display:flex;flex-direction:column;align-items:flex-start;gap:.6rem;margin:.75rem 0;max-width:100%}
.image-toggle199 > span {display:block;max-width:100%}
.image-toggle199 img {max-width:100%;height:auto}
.image-stage1910 {display:grid!important;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;overflow-anchor:none}
.image-panel1910 {display:block;grid-area:1/1;align-self:start;min-width:0;max-width:100%}
.image-panel1910 img {display:block;max-width:100%;height:auto}
.image-toggle199 > small:empty {display:none}
.change-view1910 {margin-bottom:1rem;min-width:0}
.change-content1910 {margin-top:1rem;overflow-wrap:anywhere}
.change-block1910 {padding:.6rem;margin:.6rem 0;border-radius:.3rem;min-width:0}
.change-added1910 {background:color-mix(in srgb,#2e9b54 18%,var(--surface));border-left:4px solid #47b769;padding:.6rem}
.change-removed1910 {background:color-mix(in srgb,#d35353 18%,var(--surface));border-left:4px solid #e57272;padding:.6rem}
.change-label1910 {display:block;font-size:.8rem;margin-bottom:.3rem}
.change-content1910[hidden] {display:none}
.plan-owner190 {display:flex;align-items:center;gap:.4rem}
/* 0.19.11: kompakte Auswahl und Bildansichten. */
.page-picker1911 {width:min(700px,94vw)}
.page-picker-list1911 {display:grid;gap:.4rem;height:45vh;overflow:auto;margin-top:.8rem;align-content:start}
.picker-entry1911 {text-align:left;justify-content:flex-start;white-space:normal}
.image-large1911 {width:94vw;max-width:1600px;max-height:94dvh;padding:1rem}
.image-large-scroll1911 {overflow:auto;max-height:78dvh;margin-top:.8rem;text-align:center}
.image-large-scroll1911 img {max-width:100%;max-height:75dvh;object-fit:contain}
.image-large-scroll1911.original1911 img {max-width:none;max-height:none}
.prose img[role="button"] {cursor:zoom-in}
.prose img {max-width:100%}
.image-enlarge1911 {display:block;margin:.35rem 0}
.plan-detail190 details {margin:.6rem 0;padding:.65rem;border:1px solid var(--border);border-radius:.5rem}
.plan-detail190 summary {cursor:pointer;font-weight:600}
.plan-detail190 .plan-history190 {max-height:35vh;overflow:auto;margin-top:.7rem}
.thumbnail1911 {width:44px;height:44px;display:grid;place-items:center}
.thumbnail1911 > * {grid-area:1/1}
.thumbnail1911 img {display:block;width:44px;height:44px;opacity:0;object-fit:contain}
.thumbnail-ready1911 img {opacity:1}
.thumbnail-ready1911 > :not(img) {display:none}
/* Feste helle Vergleichsflächen verhindern unsichtbare Hervorhebung in eigenen Themes. */
.change-added1910,.diff-added199 {background:#e1f3e5!important;border-left:4px solid #28743b!important;color:#12351c!important}
.change-removed1910,.diff-removed199 {background:#fbe6e5!important;border-left:4px solid #a23434!important;color:#501c1c!important}
.change-added1910 *,.change-removed1910 * {color:inherit!important;text-shadow:none!important;-webkit-text-stroke:0!important}
.change-added1910 button,.change-removed1910 button {background:#fff!important;border-color:currentColor!important}
.change-added1910 :is(pre,code,blockquote,th,td),.change-removed1910 :is(pre,code,blockquote,th,td) {background:transparent!important}
.print-logo1911 {height:22px;width:auto;vertical-align:middle}
.print-sources {display:none}
@media print {
  :root {color-scheme:light!important;--bg:#fff;--surface:#fff;--raised:#fff;--text:#111}
  @page {margin:17mm 17mm 23mm;background:white}
  html,body,#app {background:white!important;min-height:0!important;height:auto!important;overflow:visible!important}
  .image-toggle199 button,.image-toggle199 > small,.image-enlarge1911,.print-sources,.side-info,.content-tools193,.change-view1910 {display:none!important}
  .image-panel1910[aria-hidden="true"] {display:none!important}
  .image-stage1910 {display:block!important}
  [data-print-ink1911] {color:var(--print-ink1911)!important;-webkit-text-stroke:0!important;text-shadow:none!important}
  #print-document footer {position:static!important;break-inside:avoid;margin-top:8mm;padding:2mm 0;font-size:8pt;display:flex;align-items:center;gap:6px;background:white;color:#111}
  #print-document footer .print-logo1911 {width:22px;height:22px}
}
.plan-avatar199 {display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px}
.plan-avatar199 .profile-avatar {width:26px;height:26px;min-width:26px;font-size:10px;object-fit:cover}
/* Native date inputs must not widen the planning form, especially in Safari. */
dialog label.field:has(input[type="date"]) {min-width:0;max-width:100%}
dialog input[type="date"] {display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-inline-size:0;max-inline-size:100%;appearance:none;-webkit-appearance:none}
dialog input[type="date"]::-webkit-date-and-time-value {min-width:0;text-align:left}
.review-diff199 {margin-top:1rem}
.diff-lines199 {max-height:28rem;overflow:auto;font-family:monospace;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--border);border-radius:.4rem}
.diff-lines199 > div {padding:.2rem .5rem}
.diff-added199 {background:#d8f3df;color:#143d21;border-left:3px solid #28773a}
.diff-removed199 {background:#f9dede;color:#631919;border-left:3px solid #a63232}

/* Druckkorrektur: auch die SiWis-Druckansicht am Bildschirm ist papierhell. */
#print-document .prose, #print-document .prose * {
  color: #111 !important;
  -webkit-text-fill-color: currentColor !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
#print-document .prose :is(li,span,mark,strong,em,a,blockquote,pre,code,th,td) {
  background-color: transparent !important;
}
#print-document .prose ::marker {color:#111!important}
#print-document :is(.image-enlarge1911,[data-image-switch1910],.image-toggle199 > small) {display:none!important}
.rank-panel1911 {margin-top:20px}
.rank-grants1911 .check > span > small {display:block;margin-top:4px;line-height:1.45;color:var(--muted)}
@media print {
  .prose, .prose * {color:#111!important;-webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important;text-shadow:none!important}
  .prose :is(li,span,mark,strong,em,a,blockquote,pre,code,th,td) {background-color:transparent!important}
  .prose ::marker {color:#111!important}
  .image-enlarge1911,[data-image-switch1910],.image-toggle199 > small {display:none!important}
}
/* 0.20.0 – persönliche Formulare */
#forms200 {display:grid;gap:18px}
#forms-error200:empty {display:none}
.forms-layout200 {display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:20px;align-items:start}
.forms-layout200 > * {min-width:0}
.form-preview-wrap200 {background:#dedede;padding:12px;overflow:auto;border-radius:10px}
#form-preview200 {position:relative;line-height:0;background:#fff}
#form-preview200 canvas {display:block;width:100%;height:auto}
.form-box200 {position:absolute;border:1px dashed #005eaa;background:#00bcff33;color:#002d4e;font:12px sans-serif;overflow:hidden;cursor:pointer;line-height:1.1;padding:1px}
.form-box200.selected {outline:3px solid #b44d00;background:#ffd36a66}
.form-row200 {display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.form-row200 small {display:block;margin-top:4px}
.forms-dialog200 {width:min(850px,94vw);max-height:90vh;overflow:auto;padding:24px}
.forms-dialog200 .field input,.forms-dialog200 .field select,.forms-dialog200 textarea {width:100%;min-width:0;box-sizing:border-box}
.forms-dialog200 textarea {min-height:130px}
.ocr-stage200 {max-height:45vh;overflow:auto;background:#eee}
.ocr-stage200 canvas {width:100%;height:auto;display:block;touch-action:none;cursor:crosshair}
@media(max-width:800px){.forms-layout200{grid-template-columns:1fr}.forms-dialog200{padding:16px}.forms-layout200 .form-grid{grid-template-columns:1fr 1fr}}
/* Lesbare Druckfarben: bewusste Textfarben behalten ihren Farbton. */
#print-document .prose [data-print-ink1911],#print-document .prose [data-print-ink1911] * {color:var(--print-ink1911)!important}
@media print {.prose [data-print-ink1911],.prose [data-print-ink1911] * {color:var(--print-ink1911)!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Formularraster und kompakte persönliche Übersicht */
.form-cards201{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:16px 0}
.form-cards201 .card{margin:0;min-width:0}.form-cards201 small{display:block;margin-bottom:14px}
.grid-widths201{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}
.form-box200{touch-action:none;cursor:move}.form-box200:focus-visible{outline:3px solid #b44d00}
#shared-list201{margin-top:16px}#forms200 .card:has(>details){margin:16px 0}
#forms200 input[type=date]{min-width:0;width:100%;box-sizing:border-box}
@media(max-width:600px){.form-cards201{grid-template-columns:1fr 1fr;gap:8px}.form-cards201 .card{padding:12px}.form-cards201 .row{flex-wrap:wrap}}
.fill-grid201{overflow:auto;max-height:65vh;border:1px solid var(--border);border-radius:8px}
.fill-grid201 table{border-collapse:collapse;min-width:850px;width:100%;table-layout:fixed}
.fill-grid201 td{border:1px solid var(--border);padding:3px;vertical-align:top}
.fill-grid201 label{font-size:0;gap:0;margin:0;display:block}.fill-grid201 label>span{display:none}
.fill-grid201 input,.fill-grid201 textarea,.fill-grid201 select{font-size:13px;min-width:0;width:100%;padding:5px}
/* Formular-Erweiterungen 0.20.2 */
.forms-layout200.direct202,.forms-layout200.schema202{grid-template-columns:minmax(0,1fr)}
.forms-layout200.schema202>.form-preview-wrap200{display:none}
.form-modes202{margin:16px 0;gap:10px}.form-modes202 [aria-pressed=true]{outline:2px solid var(--accent,#efcf10)}
.form-modes202 small{flex-basis:100%}
.form-hit202{position:absolute;border:1px solid #245a9a88;background:#66b3ff19;padding:0;cursor:text;touch-action:manipulation}
.form-hit202:hover,.form-hit202:focus-visible{background:#66b3ff44;outline:2px solid #245a9a;z-index:2}
.form-hit202.automatic202{border-style:dotted;cursor:pointer;background:transparent}
.signature-preview202{display:block;max-width:100%;width:260px;height:auto;background:#fff;border:1px solid var(--border);border-radius:6px}
#signature-pad202{display:block;width:100%;max-width:760px;height:auto;background:#fff;touch-action:none;border:1px solid var(--border);border-radius:8px;cursor:crosshair}
.task-settings202{border-top:1px solid var(--border);padding-top:16px;margin-top:12px}
.fill-grid201 output{font-size:13px;display:block;padding:5px;color:inherit;overflow-wrap:anywhere}
.fill-grid201 .signature-preview202{width:100%;min-width:0}.fill-grid201 .field>small{display:none}
.form-modes202+.form-grid{margin-top:16px}
/* 0.20.3 – Datumsfelder mit eigenem Abstand und kompakte Kontenhinweise */
.form-period203{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px!important;row-gap:16px!important}
.form-period203>.field{margin:0;min-width:0}.account-notice203{margin:16px 0;line-height:1.5}
@media(max-width:600px){.form-period203{grid-template-columns:1fr}}
/* 0.20.4: Formulardialoge verwenden die aktiven Themefarben. */
.leave-dialog204{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:24px}
.leave-dialog204::backdrop{background:rgba(0,0,0,.55)}
.leave-dialog204 .row,.forms-dialog200 .row{gap:12px;flex-wrap:wrap}
.balance-label204{display:flex;flex-wrap:wrap;gap:0 4px}
.work-list204{max-height:50dvh;min-height:100px;overflow:auto;display:flex;flex-direction:column;gap:8px}
.work-list204 .btn{text-align:left;justify-content:flex-start;gap:12px;flex-wrap:wrap}
.preset-list204{max-height:55dvh;overflow:auto}.preset-list204 small{display:block;margin:6px 0 12px}
.forms-dialog200 input[type=radio]{accent-color:var(--accent)}.action-cell204{white-space:normal;text-align:left}
/* Zellgruppen: Farben des aktiven Themes, offene Gruppen bleiben beim Zellwechsel erhalten. */
.cell-section205{border:1px solid var(--border);border-radius:10px;overflow:hidden}
.cell-section205>summary{cursor:pointer;padding:12px 14px;background:var(--raised);font-weight:500}
.cell-section205>.task-settings202{border:0;margin:0;padding:14px}

/* Formular-Karten: auch lange Titel bleiben auf kleinen Displays in ihrer Spalte. */
.form-cards201 .card { overflow-wrap: anywhere; }
.form-cards201 .card > strong { display:block; min-width:0; max-width:100%; }
@media(max-width:600px){.form-cards201{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Formularbereich darf auch durch lange Vorlagen- und Auswahlnamen nicht breiter werden. */
#forms200 { min-width:0; grid-template-columns:minmax(0,1fr); }
#forms200 > *, #forms200 .field { min-width:0; }
#forms200 .form-row200 > div { min-width:0; max-width:100%; overflow-wrap:anywhere; }

/* Schnelle Zellverwaltung: dieselben Themefarben wie die übrigen Dialoge. */
.cell-menu214 { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.cell-menu214::backdrop { background: #0008; }
.cell-menu214 h3 { margin: 0 0 14px; overflow-wrap: anywhere; }
.cell-menu214 .btn { display: flex; width: 100%; margin-top: 8px; justify-content: flex-start; }

/* Leere Formular-Fehlerfelder dürfen keinen roten Rahmen anzeigen. */
.forms-dialog200 .error:empty,
.cell-menu214 .error:empty,
.editor-dialog .error:empty,
#forms200 .error:empty { display: none; }
.cell-menu214.at-cursor215 { position: fixed; inset: auto; margin: 0; box-sizing: border-box; }
.date-input215 { display: flex; align-items: stretch; min-width: 0; background: var(--raised); border: 1px solid var(--border); border-radius: 7px; }
.date-input215:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.date-input215 input[type="date"] { flex: 0 1 11em; width: 11em; min-width: 0; border: 0; background: transparent; outline: none; box-shadow: none; }
.date-input215:not(.native-date215) input::-webkit-calendar-picker-indicator { display: none; }
.date-open215 { display: flex; flex: 1; justify-content: flex-end; align-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 0 7px 7px 0; background: transparent; color: var(--text); cursor: pointer; }
.date-open215:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.date-input215.native-date215 input[type="date"] { flex: 1; width: 100%; }

/* Formular-Toolbox: verwandte Aktionen zusammen, bestehende Themefarben verwenden. */
#form-toolbox216 { display: grid; gap: 10px; min-width: 0; }
.tool-group216 { border: 1px solid var(--border); border-radius: 9px; min-width: 0; }
.tool-group216 > summary { padding: 10px 12px; font-weight: 500; cursor: pointer; }
.tool-group-body216 { display: grid; gap: 8px; padding: 0 10px 12px; min-width: 0; }
.tool-group-body216 .btn { justify-content: flex-start; text-align: left; white-space: normal; gap: 8px; font-size: 13px; font-weight: 400; }
.tool-group-body216 .btn svg { flex-shrink: 0; width: 17px; height: 17px; }
.tool-group-body216 .field { min-width: 0; }
.tool-group-body216 .check { font-size: 12px; align-items: flex-start; }
.template-options216 { padding: 0; min-width: 0; }
.template-options216 fieldset { min-width: 0; }
.cell-heading216 { margin: 2px 0 0; font-size: 15px; }
#field-config200 .btn { gap: 7px; }
#field-config200 .btn svg { width: 17px; height: 17px; flex-shrink: 0; }
/* Desktop bewusst kompakter; grobe Zeiger behalten ausreichend große Trefferflächen. */
.cell-menu214 { width: 275px; padding: 10px; border-radius: 9px; }
.cell-menu214 h3 { font-size: 14px; margin: 0 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-menu214 .btn { min-height: 30px; padding: 6px 8px; margin-top: 3px; gap: 7px; font-size: 12px; font-weight: 400; }
.cell-menu214 .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.cell-menu214 hr { border: 0; border-top: 1px solid var(--border); margin: 7px 0; }
@media (pointer:coarse), (max-width:600px) {
  .cell-menu214 { width: min(320px, calc(100vw - 32px)); padding: 12px; }
  .cell-menu214 .btn { min-height: 44px; padding: 10px; font-size: 14px; }
}

.bulk-date217 { border: 1px solid var(--border); border-radius: 8px; }
.bulk-date217 > summary { padding: 10px 12px; cursor: pointer; }
.bulk-date217 > .stack { padding: 0 12px 12px; }
.night-date218 { display: block; color: var(--muted); font-size: 12px; }
.night-date218 > span { display: inline-block; white-space: pre-line; vertical-align: top; color: var(--text); }

.action-cell204.night-action218 { white-space: pre-line; }
.time-wheels219 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.time-wheels219 select { min-height: 140px; padding: 4px; }
.time-wheels219 option { padding: 7px 10px; text-align: center; }

/* Formular-Modi: Themefarben für Werkzeugleiste und Ziehpunkte. */
#form-modes221 {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;margin-bottom:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);line-height:1.4}
#form-modes221 button {display:grid;place-items:center;width:40px;min-width:40px;height:40px;padding:8px}
#form-modes221 button[aria-pressed="true"] {background:var(--accent);color:var(--onaccent);border-color:var(--accent)}
#form-modes221 small {color:var(--muted);flex:1 1 180px}
#form-preview200[data-mode221="create"] canvas {cursor:crosshair}
#form-preview200[data-mode221="resize"] .form-box200,#form-preview200[data-mode221="create"] .form-box200 {cursor:pointer}
.resize-frame221 {position:absolute;z-index:10;border:1px solid var(--accent);pointer-events:none;overflow:visible}
.resize-grip221 {position:absolute;display:block;width:16px;height:16px;min-width:0;min-height:0;padding:0;border:2px solid var(--surface);border-radius:3px;background:var(--accent);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}
.resize-grip221[data-edge221="n"] {left:50%;top:0;cursor:ns-resize}
.resize-grip221[data-edge221="ne"] {left:100%;top:0;cursor:nesw-resize}
.resize-grip221[data-edge221="e"] {left:100%;top:50%;cursor:ew-resize}
.resize-grip221[data-edge221="se"] {left:100%;top:100%;cursor:nwse-resize}
.resize-grip221[data-edge221="s"] {left:50%;top:100%;cursor:ns-resize}
.resize-grip221[data-edge221="sw"] {left:0;top:100%;cursor:nesw-resize}
.resize-grip221[data-edge221="w"] {left:0;top:50%;cursor:ew-resize}
.resize-grip221[data-edge221="nw"] {left:0;top:0;cursor:nwse-resize}
@media(pointer:coarse) {.resize-grip221{width:24px;height:24px}}
@media print {#form-modes221,.resize-frame221{display:none!important}}

/* 0.20.23: kompakte Zellwerkzeuge und farbige Aktualisierung im aktuellen Theme. */
#cell-tools223 {display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-left:1px solid var(--border);padding-left:8px}
#cell-tools223 button span {display:none}
#form-modes221 button:disabled {cursor:not-allowed}
#cell-lock223[aria-pressed="true"] {background:var(--accent);color:var(--onaccent)}
.basic-section223>.stack {padding:12px}
#field-config200 [hidden] {display:none!important}
.cell-update-overlay223 {position:absolute;pointer-events:none;z-index:3;border-radius:2px}
.cell-updated223 {animation:cell-updated223 6s linear both;animation-delay:var(--update-delay223,0ms)}
@keyframes cell-updated223 {
  0%,83.333333% {background-color:color-mix(in srgb,var(--accent) 32%,transparent);box-shadow:inset 0 0 0 2px var(--accent)}
  100% {background-color:transparent;box-shadow:inset 0 0 0 2px transparent}
}
@media print {.cell-update-overlay223{display:none!important}.cell-updated223{animation:none!important}}

/* Lupe: echte Vergrößerung der Arbeitsfläche, keine Änderung der gespeicherten Maße. */
.form-viewport224 {width:100%;padding:12px;overflow:auto;position:relative}
.form-viewport224[data-zoomed224="true"] {max-height:75vh;overscroll-behavior:contain}
.form-viewport224>#form-preview200 {max-width:none}
#clipboard-tools224 {display:flex;gap:8px;border-left:1px solid var(--border);padding-left:8px}
#loupe224 {position:relative;flex:none}
#loupe224>summary {display:grid;place-items:center;list-style:none;width:40px;height:40px;border:1px solid var(--border);border-radius:8px;background:var(--raised);cursor:pointer}
#loupe224>summary::-webkit-details-marker {display:none}
#loupe224[open]>summary {color:var(--accent)}
.loupe-panel224 {position:absolute;right:0;top:46px;z-index:30;width:270px;max-width:calc(100vw - 48px);display:grid;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 25px #0005;line-height:1.5}
.loupe-panel224 label {display:flex;justify-content:space-between;gap:12px}
#form-modes221 .loupe-panel224 button {width:auto;min-width:44px;height:44px;display:block}
.loupe-panel224 input {width:100%}
.loupe-panel224>span,#copy-note224 {font-size:12px;color:var(--muted)}
#copy-note224 {flex-basis:100%}
#copy-note224[hidden] {display:none}
@media print {#clipboard-tools224,#loupe224,#copy-note224{display:none!important}}

.form-viewport224[data-pan224="true"],.form-viewport224[data-pan224="true"] .form-box200 {cursor:grab;touch-action:none}
.form-viewport224[data-pan224="true"] .resize-frame221 {display:none}
#pan224 {width:auto;flex:none}

.loupe-panel224 {max-height:calc(100vh - 24px);overflow:auto}
.forms-layout200>.form-preview-wrap200:has(>.form-viewport224) {overflow:visible}

/* Formular-Menüband: vorhandene Themefarben, kompakte Gruppen wie in Office. */
#form-ribbon225{padding:0;margin-bottom:14px;min-width:0}
.ribbon-tabs225{display:flex;gap:4px;padding:6px 10px;border-bottom:1px solid var(--border);overflow-x:auto}
.ribbon-tabs225 button{background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent;padding:9px 15px;cursor:pointer;font:inherit;white-space:nowrap}
.ribbon-tabs225 button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}
#form-ribbon225 [role=tabpanel]{padding:12px;min-width:0}
#form-ribbon225 [role=tabpanel][hidden]{display:none!important}
#form-ribbon225 #form-modes221{margin:0;border:0;padding:0;background:transparent;flex-wrap:wrap;position:relative;top:auto}
#form-ribbon225 .tool-group-body216{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#form-ribbon225 .template-options216{flex:1 1 100%;min-width:0}
#form-ribbon225 .ribbon-format225{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-inline:10px;border-inline:1px solid var(--border)}
.ribbon-format225>div{display:flex;gap:3px}
.ribbon-format225 button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
#form-ribbon225 .ribbon-size225{display:flex;gap:6px;align-items:center;font-size:12px;margin:0}
#form-ribbon225 .ribbon-size225 input{width:72px;min-width:0;padding:7px}
.ribbon-layout225{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}
@media(max-width:800px){.ribbon-layout225{grid-template-columns:minmax(0,1fr)}#form-ribbon225 [role=tabpanel]{padding:9px}#form-ribbon225 .ribbon-format225{padding:6px 0;border:0;flex-basis:100%}.ribbon-tabs225 button{padding:8px 11px}}

/* Seitenbewertungen und Rückkehrhinweis */
.mobile-rating226{display:none}.rating-stars226{display:flex;gap:10px;flex-wrap:wrap}
.rating-stars226 label{display:flex;gap:4px;align-items:center;cursor:pointer}
.rating-stars226 label>span[aria-hidden]{font-size:30px;color:var(--muted)}
.rating-stars226 label:has(input:checked)>span[aria-hidden]{color:var(--accent)}
.rating-dialog226{width:min(520px,calc(100vw - 32px));box-sizing:border-box}
.rating-dialog226 .error[hidden]{display:none!important}
#return-notice226{margin-bottom:20px;border-inline-start:3px solid var(--accent)}
#return-notice226 h2{margin:0}#return-settings226,#rating-overview226{margin-top:20px}
#return-settings226 textarea{min-height:180px}.rating-list226{max-height:420px;overflow:auto}
.rating-list226>.row{padding:12px 0;border-bottom:1px solid var(--border);gap:12px}
@media(max-width:800px){.mobile-rating226{display:inline-flex}.rating-stars226{gap:8px}}
@media print{#return-notice226,.mobile-rating226{display:none!important}}
.footer-rating226{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.footer-rating226:hover{color:var(--accent)}
.rating-dialog226{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:20px}
.rating-dialog226 fieldset{min-width:0;border:1px solid var(--border);border-radius:8px;padding:12px}
.rating-stars226{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.rating-stars226 label{position:relative;display:flex;justify-content:center;padding:6px;border:1px solid var(--border);border-radius:7px;margin:0;min-width:0}
.rating-stars226 input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.rating-stars226 label:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.rating-stars226 label:has(input:checked),.rating-stars226 label:has(~ label input:checked){background:var(--active)}
.rating-stars226 label:has(input:checked)>span[aria-hidden],.rating-stars226 label:has(~ label input:checked)>span[aria-hidden]{color:var(--accent)}

/* 0.20.27 – einheitliche Kopfleiste und Hinweise */
.rating-dialog226::backdrop{background:rgba(0,0,0,.38)}
.footer-rating226{display:inline-flex;align-items:center;gap:6px}
.footer-rating226 svg{flex:none;width:18px;height:18px;vertical-align:middle}
#return-settings226 label.field,#notice-settings227 label.field{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0}
#return-settings226 textarea,#notice-settings227 textarea{width:100%;box-sizing:border-box;min-height:160px}
#general-notice227{margin-bottom:20px}
.account-loading227 .main{visibility:hidden}
@media(max-width:900px){
 .topbar{padding-inline:8px;gap:4px;justify-content:space-between}
 .topbar>.breadcrumbs,.topbar>.breadcrumb{display:none}
 .topbar .top-actions{gap:4px;min-width:0;margin-left:auto}
 .topbar>.btn,.topbar .top-actions>.btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;gap:0;font-size:0;box-sizing:border-box}
 .topbar>.btn svg,.topbar .top-actions>.btn svg{display:block;width:21px;height:21px;flex:none}
 .topbar .mobile-rating226{display:inline-flex}
}
@media print{#general-notice227{display:none!important}}

/* 0.20.29: Footer-Aktionen auf derselben Grundlinie. */
.footer-rating226,.footer-help110{vertical-align:middle;line-height:1.4}
.footer>span:last-child>a{display:inline-block;vertical-align:middle;line-height:1.4}
.activity-help229{position:relative}
.activity-help229 summary{cursor:help}
.activity-help229 p{font-weight:400;max-width:38rem;line-height:1.5;margin:.5rem 0}
.plan-trash-note229{margin:.75rem 0}
.footer>span:last-child{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}
