:root {
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.72);
  --accent: #e8ecff;
  --accent-text: #3b2f6b;
  --danger: #ff8a9b;
  --ok: #7dffb2;
  --card-bg: rgba(18, 14, 38, 0.55);
  --card-border: rgba(255, 255, 255, 0.18);
  --sidebar-bg: rgba(10, 8, 26, 0.72);
  --sidebar-width: 248px;
  --input-bg: rgba(8, 6, 22, 0.55);
  --btn-radius: 9px;
  --btn-danger-bg: #a63d4d;
  --btn-danger-bg-hover: #c24a5c;
  --btn-danger-border: rgba(255, 150, 165, 0.45);
}
* { box-sizing: border-box; }
.app-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(35deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}
.app-layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0 1rem;
}
.sidebar-brand {
  padding: 0 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}
.sidebar-brand-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: block;
}
.sidebar-brand-link:hover { color: #fff; }
.sidebar-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 1rem 1.1rem 0.35rem;
}
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.5rem;
}
.sidebar-nav-group--export {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin-bottom: 0.15rem;
}
.sidebar-link-nested {
  margin-left: 0.85rem;
  padding: 0.38rem 0.75rem 0.38rem 0.65rem;
  font-size: 0.84rem;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 8px 8px 0;
}
.sidebar-link-nested:hover {
  border-left-color: rgba(255, 255, 255, 0.25);
}
.sidebar-bottom {
  padding: 1rem 0.5rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  margin-left: 0.25rem;
}
.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sidebar-link-logout {
  margin-top: 0.35rem;
  color: rgba(255, 180, 190, 0.95);
}
.sidebar-link-logout:hover {
  color: #fff;
  background: rgba(201, 74, 90, 0.35);
}
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-inner {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}
.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.card-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1rem;
}
.card-actions-row__label {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0.15rem 0 0;
}
.card-actions-row form.form--inline {
  display: inline-flex;
  margin: 0;
  padding: 0;
  align-items: center;
}
.card-actions-row__spacer {
  flex: 1 1 auto;
  min-width: 0.25rem;
}
.card-actions-row a.btn,
.card-actions-row a.btn:visited {
  text-decoration: none;
}
.card-actions-row a.btn-secondary,
.card-actions-row a.btn-secondary:visited {
  color: var(--text);
}
.card-actions-row a.btn-primary,
.card-actions-row a.btn-primary:visited {
  color: var(--accent-text);
}
.card-actions-row a.btn-export-dashboard,
.card-actions-row a.btn-export-dashboard:visited,
.card-actions-row button.btn-export-dashboard {
  color: var(--accent-text);
}
.card-actions-row button.btn {
  font-family: inherit;
  margin: 0;
}
/* Übersicht: Export als klarer Call-to-Action (Link oder Button) */
.btn-export-dashboard {
  min-width: 8.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(118, 98, 210, 0.55) 42%,
    var(--accent) 100%
  );
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(59, 47, 107, 0.28);
}
.btn-export-dashboard:hover {
  filter: brightness(1.05);
  border-color: rgba(255, 255, 255, 0.48);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.48) inset,
    0 3px 10px rgba(0, 0, 0, 0.22),
    0 8px 22px rgba(59, 47, 107, 0.32);
}
.btn-export-dashboard:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn-export-dashboard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1 { font-size: 1.35rem; margin: 0 0 1rem; font-weight: 650; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
th { color: var(--muted); font-weight: 600; }
/* Dashboard / Export: > 0,01 € grün; 0,00 € rot; Selbstlogin neutral */
tbody tr.row-amount-zero {
  background: rgba(140, 48, 62, 0.42);
}
tbody tr.row-amount-zero td {
  color: #ffd0d6;
  border-bottom-color: rgba(180, 70, 85, 0.35);
}
tbody tr.row-amount-ok {
  background: rgba(38, 108, 72, 0.38);
}
tbody tr.row-amount-ok td {
  color: #c8f5dc;
  border-bottom-color: rgba(60, 130, 95, 0.32);
}
tbody tr.row-amount-zero:hover,
tbody tr.row-amount-ok:hover {
  filter: brightness(1.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.52rem 1.1rem;
  min-height: 2.5rem;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary {
  background: linear-gradient(180deg, #f2f4ff 0%, var(--accent) 100%);
  color: var(--accent-text);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(59, 47, 107, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 3px 10px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(59, 47, 107, 0.28);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 1px 4px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.1);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: translateY(0);
}
.btn-danger {
  background: linear-gradient(180deg, var(--btn-danger-bg-hover) 0%, var(--btn-danger-bg) 100%);
  color: #fff;
  border-color: var(--btn-danger-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 2px 8px rgba(0, 0, 0, 0.25);
}
.btn-danger:hover {
  background: linear-gradient(180deg, #d4586a 0%, #c24a5c 100%);
  border-color: rgba(255, 180, 190, 0.55);
  transform: translateY(-1px);
}
.btn-danger:active {
  transform: translateY(0);
}
.btn-copy {
  background: rgba(255, 210, 225, 0.12);
  color: #f0b8cc;
  border-color: rgba(255, 182, 203, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 228, 236, 0.1) inset,
    0 2px 8px rgba(80, 20, 50, 0.12);
}
.btn-copy:hover {
  background: rgba(255, 210, 225, 0.2);
  color: #ffd8e8;
  border-color: rgba(255, 182, 203, 0.48);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 228, 236, 0.14) inset,
    0 4px 14px rgba(80, 20, 50, 0.18);
}
.btn-copy:active {
  transform: translateY(0);
  background: rgba(255, 210, 225, 0.16);
}
.btn-copy.is-copied {
  color: #ffe8f2;
  border-color: rgba(255, 200, 220, 0.55);
  background: rgba(255, 210, 225, 0.26);
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  min-height: 2rem;
  font-size: 0.8125rem;
  border-radius: 8px;
}
.toolbar .btn {
  align-self: flex-end;
  min-height: 2.65rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.table-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  vertical-align: middle;
}
.table-actions > a.btn,
.table-actions > form,
.table-actions > button.btn {
  flex: 0 0 auto;
}
.table-actions a.btn,
.table-actions a.btn:visited {
  color: var(--text);
  text-decoration: none;
}
.table-actions button.btn {
  font-family: inherit;
  margin: 0;
}
.table-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  width: auto;
  min-width: 0;
  border: none;
  background: none;
  align-items: center;
}
.table-actions-skip {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}
th.table-col-action {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
td.table-actions-cell,
td:has(.table-actions) {
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  min-width: 11.5rem;
}
.form-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.form-actions--tight {
  margin-top: 0.75rem;
}
label { display: block; margin: 0.5rem 0 0.25rem; color: var(--muted); font-size: 0.85rem; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.toolbar .toolbar-field {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}
.toolbar .toolbar-field label {
  display: block;
  margin: 0 0 0.25rem;
}
.toolbar .search-input {
  width: 100%;
  max-width: none;
}
table thead th a {
  color: inherit;
  text-decoration: none;
}
table thead th a:hover {
  text-decoration: underline;
}
input[type="search"] {
  width: 100%;
  max-width: 420px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--text);
}
input[type="file"] {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}
/* CSV-Bulk-Import (profiles.php) */
.import-bulk-hint {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.import-bulk-hint strong {
  color: rgba(248, 250, 255, 0.95);
  font-weight: 600;
}
.import-bulk-hint code {
  font-size: 0.84em;
}
.import-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.1rem;
}
.import-bulk-form {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.15rem;
}
.import-bulk-form__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(248, 250, 255, 0.92);
}
input[type="text"], input[type="password"], input[type="date"], input[type="number"],
input[type="email"], input[type="tel"], input[type="url"], select {
  width: 100%;
  max-width: 420px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--text);
}
input::placeholder { color: rgba(244, 246, 251, 0.45); }
.msg { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; }
.msg.ok { background: rgba(125, 255, 178, 0.18); color: var(--ok); }
.msg.err { background: rgba(255, 138, 155, 0.2); color: #ffe0e5; }
.scrape-status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  background: rgba(232, 236, 255, 0.12);
  border: 1px solid rgba(232, 236, 255, 0.35);
  color: var(--text);
}
.scrape-status-banner--running { border-color: rgba(125, 255, 178, 0.35); }
.scrape-status-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--ok);
  border-radius: 50%;
  animation: scrape-spin 0.8s linear infinite;
  margin-left: auto;
}
@keyframes scrape-spin {
  to { transform: rotate(360deg); }
}
.login-wrap {
  max-width: 400px;
  margin: 3rem auto;
}
html.login-page {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
body.login-page.app-body {
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  background-attachment: scroll;
}
.login-page .login-wrap.login-card {
  margin: 0;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  border-radius: 18px;
  padding: 1.85rem 1.65rem 1.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}
.login-header {
  margin-bottom: 1.35rem;
}
.login-product {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.login-tag {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 246, 251, 0.5);
}
.login-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
}
.login-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.login-page .login-msg {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.86rem;
}
.login-form {
  text-align: left;
}
.login-page .login-form label {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.login-page .login-form label:first-of-type {
  margin-top: 0;
}
.login-page .login-form input[type="text"],
.login-page .login-form input[type="password"] {
  max-width: none;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 4, 18, 0.45);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-page .login-form input[type="text"]:focus,
.login-page .login-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(232, 236, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35);
}
.login-page .login-form .login-form-actions {
  margin-top: 1.35rem;
  justify-content: stretch;
}
.login-page .login-submit {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 11px;
  font-size: 0.92rem;
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.modal-backdrop.is-open {
  display: flex;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 5vh auto 2rem;
}
.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a.export-btn {
  margin-right: 0.35rem;
  margin-bottom: 0.3rem;
  text-align: center;
  min-width: 4.5rem;
}
.export-team-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.export-team-links__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.export-team-links__name {
  flex: 1 1 7rem;
  min-width: 5rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.export-team-links__cnt {
  color: var(--muted);
  font-weight: 400;
}
.export-days-table td {
  vertical-align: top;
}
@media (max-width: 900px) {
  .app-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 0.75rem 0.5rem;
  }
  .sidebar-brand {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0 0.75rem 0 0;
    flex: 1;
    min-width: 140px;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 2 1 200px;
    padding: 0;
    gap: 0.2rem;
  }
  .sidebar-nav-group--export {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
  }
  .sidebar-link-nested {
    margin-left: 0;
    border-left: none;
    padding: 0.4rem 0.55rem;
    font-size: 0.8rem;
  }
  .sidebar-section {
    display: none;
  }
  .sidebar-link {
    margin-left: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
  }
  .sidebar-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
    padding: 0.5rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-inner { padding: 1rem 0.9rem; }
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  background: rgba(8, 6, 22, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
.profile-tab {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.profile-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.profile-tab.is-active {
  color: var(--accent-text);
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

/* —— API Konfig —— */
.api-konfig__lead {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42rem;
}
.api-konfig__form {
  display: block;
}
.api-konfig-provider {
  border-color: rgba(232, 236, 255, 0.22);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(118, 75, 162, 0.12) inset;
  overflow: hidden;
}
.api-konfig-provider__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.api-konfig-provider__mark {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  background: linear-gradient(145deg, var(--accent) 0%, rgba(180, 170, 255, 0.8) 100%);
  box-shadow: 0 4px 16px rgba(59, 47, 107, 0.32);
}
.api-konfig-provider__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.api-konfig-provider__vendor {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  letter-spacing: 0.02em;
}
.api-konfig-provider__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 720px) {
  .api-konfig-provider__grid {
    grid-template-columns: 1fr;
  }
}
.api-konfig-panel {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: rgba(8, 6, 22, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.api-konfig-panel__head {
  margin-bottom: 0.85rem;
}
.api-konfig-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
}
.api-konfig-panel__hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.api-konfig-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.api-konfig-input {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.api-konfig-input:focus {
  outline: none;
  border-color: rgba(232, 236, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.32);
}
.api-konfig-input--mono {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.api-konfig-code {
  font-size: 0.78em;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
}
.api-konfig-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.api-konfig-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.api-konfig-status--ok {
  background: rgba(125, 255, 178, 0.12);
  border: 1px solid rgba(125, 255, 178, 0.35);
  color: var(--ok);
}
.api-konfig-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(125, 255, 178, 0.7);
}
.dashboard-month-groups {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dashboard-month-group {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.dashboard-month-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background 0.15s ease;
}
.dashboard-month-group summary::-webkit-details-marker {
  display: none;
}
.dashboard-month-group summary::before {
  content: "▸ ";
  display: inline-block;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.dashboard-month-group[open] summary::before {
  transform: rotate(90deg);
}
.dashboard-month-group summary:hover {
  background: rgba(255, 255, 255, 0.05);
}
.dashboard-month-group__meta {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}
.dashboard-month-group__body {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-month-group__body table {
  margin-top: 0.5rem;
}
.dashboard-month-group__day {
  font-size: 0.98rem;
  margin: 1rem 0 0.5rem;
}
.dashboard-month-group__day:first-child {
  margin-top: 0.65rem;
}

.api-konfig-replace {
  margin-top: 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.api-konfig-replace summary {
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.api-konfig-replace summary::-webkit-details-marker {
  display: none;
}
.api-konfig-replace summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.api-konfig-replace[open] summary::before {
  transform: rotate(90deg);
}
.api-konfig-replace summary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.api-konfig-replace__body {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.api-konfig-provider__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* —— Service-Zugänge / Portal —— */
.app-body--portal .portal-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  width: 100%;
}
.svc-optional {
  font-weight: 400;
  color: var(--muted);
}
.svc-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 1rem;
  background: rgba(8, 6, 22, 0.28);
}
.svc-fieldset legend {
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0 0.35rem;
}
.svc-fieldset-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.svc-portal-login-row {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.svc-portal-login-local {
  flex: 1 1 8rem;
  min-width: 6rem;
}
.svc-portal-login-domain {
  flex: 1 1 10rem;
  min-width: 8rem;
}
.svc-portal-at {
  padding-bottom: 0.55rem;
  font-weight: 700;
  color: var(--muted);
}
.svc-portal-pw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.svc-portal-pw-row input[type="text"] {
  flex: 1 1 12rem;
  min-width: 10rem;
}
.svc-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  cursor: pointer;
}
.badge {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.badge--ok {
  background: rgba(72, 187, 120, 0.2);
  color: #9ae6b4;
}
.svc-check-block {
  display: block;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

/* LC Profil-Editor: Autosave, KI-Generator, Hinweise */
.svc-autosave-status {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.svc-autosave-status--pending { color: #e8c97a; }
.svc-autosave-status--saving { color: #b8c4ff; }
.svc-autosave-status--ok { color: var(--ok); font-weight: 600; }
.svc-autosave-status--err { color: var(--danger); font-weight: 600; }
.svc-field-locked {
  background: rgba(8, 6, 22, 0.65);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  opacity: 0.88;
}
.svc-lc-similarity-hint {
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(166, 61, 77, 0.22);
  border: 1px solid rgba(255, 138, 155, 0.32);
  color: #ffc4ce;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.svc-lc-gen-block {
  margin: 0.85rem 0 1rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 6, 22, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.svc-lc-gen-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent);
}
.svc-lc-gen-block label {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.svc-lc-gen-block .js-lc-gen-prompt,
.svc-lc-gen-block .js-lc-kuss-gen-prompt,
.svc-lc-gen-block .js-mdh-gen-prompt {
  min-height: 4.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.svc-lc-gen-block .js-lc-gen-prompt:focus,
.svc-lc-gen-block .js-lc-kuss-gen-prompt:focus,
.svc-lc-gen-block .js-mdh-gen-prompt:focus {
  outline: 2px solid rgba(232, 236, 255, 0.32);
  outline-offset: 1px;
  border-color: rgba(232, 236, 255, 0.26);
}
.svc-lc-gen-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 182, 193, 0.12);
}
.svc-lc-gen-headline {
  margin: 0;
  flex: 1 1 12rem;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e8a4bc;
  background: rgba(255, 210, 225, 0.1);
  border: 1px solid rgba(255, 182, 203, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 228, 236, 0.08);
}
.svc-lc-gen-actions .js-lc-generate-btn,
.svc-lc-gen-actions .js-lc-kuss-generate-btn,
.svc-lc-gen-actions .js-mdh-generate-btn {
  flex-shrink: 0;
}

/* Benutzer (users.php) */
.user-role-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.user-role-admin {
  background: rgba(220, 80, 100, 0.18);
  color: #ffb8c6;
  border-color: rgba(220, 80, 100, 0.28);
}
.user-role-user {
  background: rgba(120, 160, 255, 0.14);
  color: #b8ccff;
  border-color: rgba(120, 160, 255, 0.24);
}
.user-role-moderator {
  background: rgba(255, 200, 80, 0.14);
  color: #ffd98a;
  border-color: rgba(255, 200, 80, 0.26);
}
.users-cred-copy-block {
  margin: 0.35rem 0 0.85rem;
  padding: 0.85rem 0.95rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 182, 203, 0.18);
  background: rgba(255, 210, 225, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 228, 236, 0.06);
}
.users-cred-copy-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0b8cc;
  background: rgba(255, 182, 203, 0.14);
  border: 1px solid rgba(255, 182, 203, 0.22);
}
.users-cred-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.users-cred-row input[type="password"] {
  flex: 1 1 14rem;
  min-width: 10rem;
  max-width: 100%;
  margin: 0;
}
.users-cred-row .btn-copy {
  align-self: center;
  white-space: nowrap;
}
.users-cred-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(232, 210, 220, 0.78);
}
.users-page .table-actions .btn-copy {
  min-width: 5.75rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 236, 0.12),
    0 2px 10px rgba(80, 20, 50, 0.14);
}
.users-page .table-actions--icons {
  gap: 0.4rem;
}
.users-page .table-actions .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  min-height: 2.05rem;
  padding: 0;
  border-radius: 9px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.users-page .table-actions .btn-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  pointer-events: none;
}
.users-page .table-actions .btn-icon-edit {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f6ff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.users-page .table-actions .btn-icon-edit:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  transform: translateY(-1px);
}
.users-page .table-actions .btn-icon-danger {
  background: rgba(194, 74, 92, 0.28);
  color: #ffc8d2;
  border: 1px solid rgba(255, 140, 160, 0.38);
}
.users-page .table-actions .btn-icon-danger:hover {
  background: rgba(194, 74, 92, 0.42);
  border-color: rgba(255, 160, 175, 0.55);
  color: #fff;
  transform: translateY(-1px);
}
.users-access-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #f4f6ff;
  font-size: 0.82rem;
  font-weight: 650;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 10px rgba(18, 8, 40, 0.16);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}
.users-access-count:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 14px rgba(18, 8, 40, 0.22);
}
.users-access-count:active {
  transform: translateY(0);
}
.users-access-count:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.users-accesses-modal-panel {
  max-width: 380px;
}
.users-accesses-modal-user {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}
.users-accesses-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.users-accesses-list li {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  line-height: 1.4;
}

.svc-portal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ok);
  margin: 0 0 0.5rem;
}
.svc-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
}
.svc-billing-span2 {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .svc-billing-grid {
    grid-template-columns: 1fr;
  }
}
/* —— Allin-Bot-Zugang —— */
.allinbot-page {
  max-width: 72rem;
}
.allinbot-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.allinbot-page__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.allinbot-page__back {
  margin: 0;
  font-size: 0.88rem;
}
.allinbot-page__back a {
  color: var(--muted);
}
.allinbot-page__seed {
  margin: 0;
}
.allinbot-page__hint,
.allinbot-page__warn {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.allinbot-page__hint {
  background: rgba(72, 187, 120, 0.12);
  border: 1px solid rgba(125, 255, 178, 0.35);
}
.allinbot-page__warn {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
}
.allinbot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .allinbot-layout {
    grid-template-columns: 1fr;
  }
}
.allinbot-card__title {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 650;
}
.allinbot-list-card .table-wrap {
  overflow-x: auto;
}
.allinbot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.allinbot-table th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.allinbot-table td {
  padding: 0.65rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
.allinbot-table__row.is-selected {
  background: rgba(125, 140, 255, 0.12);
}
.allinbot-table__row.is-locked {
  opacity: 0.72;
}
.allinbot-table__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
.allinbot-table__actions {
  white-space: nowrap;
  text-align: right;
}
.allinbot-inline-form {
  display: inline;
  margin-left: 0.25rem;
}
.allinbot-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
}
.allinbot-badge--ok {
  background: rgba(72, 187, 120, 0.2);
  color: #9ae6b4;
}
.allinbot-badge--locked {
  background: rgba(229, 62, 62, 0.2);
  color: #feb2b2;
}
.allinbot-badge--bot {
  background: rgba(99, 179, 237, 0.25);
  color: #90cdf4;
  font-weight: 700;
}
.allinbot-table__row.is-bot-pick {
  background: rgba(99, 179, 237, 0.1);
  box-shadow: inset 3px 0 0 #63b3ed;
}
.allinbot-muted {
  color: var(--muted);
  font-size: 0.82rem;
}
.allinbot-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.allinbot-fieldset {
  margin: 0;
  border: none;
  padding: 0;
  background: transparent;
}
.allinbot-form-card .svc-profile-form label {
  margin-top: 0.75rem;
}
.allinbot-form-card .svc-profile-form label:first-of-type {
  margin-top: 0;
}
.allinbot-form-card input[type="text"],
.allinbot-form-card input[type="password"] {
  width: 100%;
  max-width: 100%;
}

.svc-password-flash {
  border-color: rgba(125, 255, 178, 0.45);
  background: rgba(72, 187, 120, 0.1);
}
.svc-password-flash code {
  font-size: 0.95rem;
  word-break: break-all;
}
.svc-password-flash__preview {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
  background: rgba(8, 6, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.svc-portal-pw-tools {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 32rem;
}
.svc-portal-pw-input {
  width: 100%;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.9rem;
}
.svc-portal-pw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.svc-portal-copy-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ok);
  font-weight: 600;
}
.modal-panel--wide {
  max-width: 42rem;
  width: calc(100vw - 2rem);
  max-height: 92vh;
  overflow-y: auto;
}
.svc-portal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.svc-portal-welcome {
  margin: 0;
  font-size: 0.95rem;
}
.svc-readonly-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  vertical-align: middle;
}
.svc-portal-dl {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.svc-portal-dl dt {
  color: var(--muted);
  margin: 0;
}
.svc-portal-dl dd {
  margin: 0;
}
.svc-portal-section-title {
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
}
.svc-portal-row-active td {
  background: rgba(255, 255, 255, 0.06);
}
.bot-dash-status {
  color: var(--muted);
}
.bot-dash-status--on {
  color: var(--ok);
  font-weight: 600;
}
.bot-dash-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.bot-dash-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.bot-dash-tab.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}
.bot-dash-empty {
  color: var(--muted);
  margin: 0;
}
.mdh-ausw-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mdh-ausw-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.15);
}
.mdh-ausw-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.mdh-ausw-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.mdh-ausw-sent {
  color: var(--ok);
  margin-left: 0.35rem;
}
.mdh-ausw-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}
.mdh-ausw-dl dt {
  color: var(--muted);
}
.mdh-ausw-block {
  margin-top: 0.5rem;
}
.mdh-ausw-block summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.mdh-ausw-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.45rem 0 0;
  padding: 0.65rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  max-height: 280px;
  overflow: auto;
}
.mdh-ausw-pre--reply {
  border-left: 3px solid var(--ok);
}
.mdh-ausw-pre--reason {
  border-left: 3px solid #7eb8da;
}
.mdh-ausw-pre--eval {
  border-left: 3px solid #c9a227;
}
.mdh-ausw-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0.2rem;
}
.mdh-ausw-ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
}
.svc-portal-login-card .svc-portal-login-row {
  margin-bottom: 0.75rem;
}
.dashboard-herkunft-filter {
  margin-bottom: 0.75rem;
}
.dashboard-herkunft-filter .toolbar-field {
  min-width: 12rem;
}

/* —— Prompt-Ideen —— */
.prompt-ideen-lead {
  margin: -0.35rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 40rem;
}
.prompt-ideen-admin-form {
  margin-bottom: 1.25rem;
  border-color: rgba(232, 236, 255, 0.22);
}
.prompt-ideen-admin-form__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.prompt-ideen-form textarea {
  min-height: 9rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}
.prompt-ideen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.prompt-note {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    165deg,
    rgba(22, 18, 48, 0.72) 0%,
    rgba(12, 10, 28, 0.55) 100%
  );
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(118, 75, 162, 0.12) inset;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.prompt-note:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 236, 255, 0.28);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(118, 75, 162, 0.2) inset;
}
.prompt-note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.prompt-note__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
  flex: 1 1 8rem;
}
.prompt-note__admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.prompt-note__delete-form {
  margin: 0;
  display: inline;
}
.prompt-note__body {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.85rem 1rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(244, 246, 251, 0.92);
  word-break: break-word;
  max-height: 14rem;
  overflow-y: auto;
}
.prompt-note__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}
.prompt-note__copy {
  min-width: 6.5rem;
}
.prompt-note__copied {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ok);
}
.prompt-ideen-empty {
  text-align: center;
  padding: 2rem 1.25rem;
}

textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

/* —— Botplan (Benutzer → Botplan) —— */
.botplan-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .botplan-layout {
    grid-template-columns: 1fr;
  }
}
.botplan-side-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.botplan-side-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.botplan-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.botplan-user-link {
  display: block;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.botplan-user-link:hover {
  background: rgba(255, 255, 255, 0.07);
}
.botplan-user-link.is-active {
  border-color: var(--accent);
  background: rgba(118, 75, 162, 0.18);
}
.botplan-lf-login {
  display: block;
  font-size: 0.88rem;
  margin-top: 0.2rem;
  color: var(--accent-text);
}
.botplan-lf-user {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.botplan-status {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(118, 75, 162, 0.12);
  border: 1px solid rgba(118, 75, 162, 0.35);
}
.botplan-stop-form {
  margin-left: 0.5rem;
}
.botplan-hours-label {
  margin-top: 1rem;
}
.botplan-hours-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}
@media (max-width: 700px) {
  .botplan-hours-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.botplan-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.botplan-hour:hover {
  border-color: var(--accent);
}
.botplan-hour.is-selected {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
}
.botplan-hour-num {
  font-size: 1.05rem;
  line-height: 1.1;
}
.botplan-hour-suffix {
  font-size: 0.68rem;
  opacity: 0.85;
}
.botplan-test {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
}
.botplan-test-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.botplan-test-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.botplan-test-status {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}
.botplan-test-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.botplan-test-logpath {
  font-size: 0.82rem;
}
.botplan-test-log {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.botplan-running-card {
  margin-bottom: 1rem;
}
.botplan-running-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.botplan-running-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}
.botplan-running-empty {
  margin: 0;
}
.botplan-running-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.botplan-running-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}
.botplan-running-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}
.botplan-running-kind {
  font-size: 0.85rem;
}
.botplan-running-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}
.botplan-running-meta dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.botplan-running-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}
.botplan-running-stop {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
@media (max-width: 520px) {
  .botplan-running-item {
    grid-template-columns: 1fr;
  }
  .botplan-running-stop {
    grid-column: 1;
    grid-row: auto;
  }
}
.botplan-intro {
  line-height: 1.5;
  margin-bottom: 1rem;
}
.botplan-schedule-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
}
.botplan-schedule-step {
  flex: 1 1 10rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 8.5rem;
}
.botplan-schedule-step-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.botplan-schedule-arrow {
  align-self: center;
  font-size: 1.25rem;
  color: var(--muted);
  opacity: 0.7;
}
@media (max-width: 640px) {
  .botplan-schedule-arrow {
    display: none;
  }
}
.botplan-upcoming-table th,
.botplan-upcoming-table td {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.main-inner.lcdesktop-page {
  max-width: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.lcdesktop-frame-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #0f172a;
}
.lcdesktop-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f172a;
}

/* MeinArbeitsplatz Vollbild: Seitenleiste ausblenden, RDP als Vollflaeche */
body.workspace-fullscreen { overflow: hidden; }
body.workspace-fullscreen .app-layout {
  min-height: 100vh;
  height: 100vh;
}
body.workspace-fullscreen .sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}
body.workspace-fullscreen.ws-sidebar-open .sidebar {
  transform: translateX(0);
}
body.workspace-fullscreen .app-main {
  width: 100%;
}
body.workspace-fullscreen .main-inner.lcdesktop-page {
  min-height: 100vh;
  height: 100vh;
}
body.workspace-fullscreen .lcdesktop-frame-wrap {
  height: 100vh;
}

.ws-sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1300;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: left 0.22s ease, background 0.2s ease;
}
.ws-sidebar-toggle:hover {
  background: rgba(15, 23, 42, 0.95);
}
.ws-sidebar-toggle svg {
  transition: transform 0.22s ease;
}
body.ws-sidebar-open .ws-sidebar-toggle {
  left: calc(var(--sidebar-width) + 12px);
}
body.ws-sidebar-open .ws-sidebar-toggle svg {
  transform: rotate(180deg);
}

.ws-sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
body.ws-sidebar-open .ws-sidebar-scrim {
  opacity: 1;
  visibility: visible;
}

.workspace-open-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
}
.workspace-open-bar .btn {
  color: #e2e8f0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}
.workspace-tile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  max-width: 260px;
}
.workspace-tile__head {
  min-height: 2.5rem;
}
.workspace-tile__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.workspace-tile__desc {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  line-height: 1.35;
}
.workspace-tile__preview {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.workspace-tile__iframe {
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
  background: #0f172a;
}
.workspace-tile__preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}
.workspace-tile__creds {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.workspace-tile__cred-line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8rem;
}
.workspace-tile__cred-line code {
  word-break: break-all;
  font-size: 0.78rem;
}
.workspace-tile__copied {
  font-size: 0.8rem;
  color: #15803d;
}
.workspace-tile__assign {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
}
.workspace-tile__assign label {
  font-size: 0.8rem;
  margin: 0;
}
.workspace-tile__assign select {
  width: 100%;
  font-size: 0.85rem;
}
.workspace-tile__assigned {
  margin: 0;
  font-size: 0.78rem;
}
.workspace-tile__actions {
  margin-top: 0.15rem;
}

/* Neuigkeiten / Workspace-Pflichtbestätigung */
.neuigkeiten-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 52rem;
}
.neuigkeiten-admin-form__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.neuigkeiten-form textarea {
  min-height: 14rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.neuigkeiten-plain-text {
  white-space: normal;
  line-height: 1.55;
  font-size: 0.95rem;
}
.neuigkeiten-user-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.neuigkeiten-user-item--editing {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.neuigkeiten-admin-preview {
  margin-top: 0.5rem;
}
.svc-readonly-kuenstler {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.svc-readonly-kuenstler__label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.svc-readonly-kuenstler__value {
  display: block;
  font-size: 1.05rem;
}
.svc-readonly-kuenstler__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.neuigkeiten-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--btn-radius);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.neuigkeiten-fieldset legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 1rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}
.neuigkeiten-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.35rem 0.75rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.neuigkeiten-recipient-item {
  font-size: 0.88rem;
}
.neuigkeiten-reset-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.neuigkeiten-list .table-actions {
  white-space: nowrap;
}
.inline-form {
  display: inline;
}
.badge-warn {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
  vertical-align: middle;
}
.workspace-announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(8px);
}
.workspace-announcement-panel {
  width: 100%;
  max-width: 42rem;
  margin: 4vh auto 2rem;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.workspace-announcement-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.3;
}
.workspace-announcement-body {
  max-height: min(58vh, 34rem);
  overflow-y: auto;
  padding-right: 0.35rem;
  line-height: 1.55;
  font-size: 0.95rem;
}
.workspace-announcement-body h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
}
.workspace-announcement-body p {
  margin: 0.55rem 0;
}
.workspace-announcement-body ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.25rem;
}
.workspace-announcement-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 1rem 0;
}
.workspace-announcement-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.workspace-announcement-ok {
  min-width: 12rem;
  font-weight: 600;
}
.workspace-announcement-more {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}
.neuigkeiten-user-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.neuigkeiten-user-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.neuigkeiten-user-item__title {
  margin: 0;
  font-size: 1.1rem;
}
.neuigkeiten-user-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.82rem;
}
.neuigkeiten-user-item__body {
  max-height: none;
}
.workspace-ack-err {
  position: relative;
  z-index: 5001;
  margin: 1rem;
}

/* LC Inaktiv-Overlay (Dashboard, global für alle eingeloggten Nutzer) */
.lc-idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  background: rgba(120, 18, 28, 0.82);
  backdrop-filter: blur(8px);
}
.lc-idle-overlay__panel {
  width: 100%;
  max-width: 36rem;
  margin: 8vh auto 2rem;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lc-idle-overlay__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #fff;
}
.lc-idle-overlay__message {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 600;
}
.lc-idle-overlay__meta {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.lc-idle-overlay__hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.lc-idle-overlay__actions {
  margin-top: 0.5rem;
}
.lc-idle-overlay__ack {
  min-width: 14rem;
  font-weight: 600;
}
.lc-idle-overlay__more {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}
.lc-idle-overlay__err {
  margin-top: 0.75rem;
}

/* ---------------------------------------------------------------- Promptest */
.promptest-lead {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.promptest-quota {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text);
}
.promptest-quota--admin {
  background: rgba(125, 255, 178, 0.15);
  border-color: rgba(125, 255, 178, 0.4);
}
.promptest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.promptest-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  font-size: 0.88rem;
  font-weight: 550;
}
.promptest-tab:hover { color: var(--text); }
.promptest-tab.is-active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: rgba(255, 255, 255, 0.4);
}
.promptest-h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.promptest-hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 0.9rem;
}
.promptest-hint--inline { margin: 0; }
.promptest-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.promptest-field { display: flex; flex-direction: column; }
.promptest-select { margin-bottom: 0.5rem; }
.promptest-inline-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.5rem 0 0.35rem;
  cursor: pointer;
}
.promptest-inline-check input { width: auto; margin: 0; }
.promptest-save-title { margin-top: 0.5rem; }
.promptest-save-note { margin: 0.3rem 0 0; font-size: 0.75rem; color: var(--muted); }
.promptest-models { border: 1px solid var(--card-border); border-radius: 10px; padding: 0.85rem; margin: 1rem 0; }
.promptest-models legend { padding: 0 0.4rem; color: var(--muted); font-size: 0.85rem; }
.promptest-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.promptest-model-group__head {
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.promptest-model-group__nokey {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--danger);
  border: 1px solid rgba(255, 138, 155, 0.5);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}
.promptest-model {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "chk name" "chk id" "chk desc";
  gap: 0.1rem 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.promptest-model:hover { background: rgba(255, 255, 255, 0.08); }
.promptest-model input { grid-area: chk; align-self: start; margin-top: 0.2rem; width: auto; }
.promptest-model__name { grid-area: name; font-weight: 600; font-size: 0.88rem; }
.promptest-model__id { grid-area: id; font-size: 0.72rem; color: var(--muted); font-family: ui-monospace, monospace; }
.promptest-model__desc { grid-area: desc; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.promptest-results { margin-top: 1rem; }
.promptest-io {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.promptest-io__block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.promptest-io__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.promptest-io__text {
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.promptest-outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.promptest-output {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
}
.promptest-output--err { border-color: rgba(255, 138, 155, 0.45); background: rgba(140, 48, 62, 0.22); }
.promptest-output__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.4rem;
}
.promptest-output__model { font-weight: 650; font-size: 0.9rem; }
.promptest-output__meta { font-size: 0.72rem; color: var(--muted); font-family: ui-monospace, monospace; }
.promptest-output__body {
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 26rem;
  overflow: auto;
}
.promptest-output__error { font-size: 0.85rem; color: #ffd0d6; }
.promptest-lib-list { display: flex; flex-direction: column; gap: 0.6rem; }
.promptest-lib-item {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.8rem;
}
.promptest-lib-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.promptest-lib-item__title { font-weight: 600; font-size: 0.92rem; }
.promptest-lib-item__actions { display: inline-flex; gap: 0.4rem; align-items: center; }
.promptest-lib-item__body { font-size: 0.82rem; color: var(--muted); line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.promptest-history { display: flex; flex-direction: column; gap: 0.5rem; }
.promptest-history__item {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.promptest-history__item > summary {
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
  font-size: 0.85rem;
}
.promptest-history__date { color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.8rem; }
.promptest-history__user {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.78rem;
}
.promptest-history__snippet { flex: 1 1 12rem; min-width: 8rem; }
.promptest-history__meta { color: var(--muted); font-size: 0.78rem; }
.promptest-history__body { padding: 0 0.8rem 0.8rem; }

/* OnlyChat Profil-Fotos / Analyse-Modal */
.oc-photo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 0.75rem;
}
.oc-photo-overlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.oc-photo-overlay-toggle input {
  width: auto;
  margin: 0;
}
.oc-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}
.oc-photo-grid.overlays-hidden .oc-photo-overlay {
  display: none;
}
.oc-photo-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-height: 200px;
  height: 200px;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.oc-photo-thumb:hover {
  border-color: rgba(114, 105, 239, 0.75);
  transform: translateY(-1px);
}
.oc-photo-thumb.is-ready {
  border-color: rgba(72, 199, 142, 0.75);
}
.oc-photo-thumb.is-pending {
  border-color: rgba(255, 152, 64, 0.75);
}
.oc-photo-thumb img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.oc-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.oc-photo-thumb.is-ready .oc-photo-overlay {
  background: rgba(72, 199, 142, 0.42);
}
.oc-photo-thumb.is-pending .oc-photo-overlay {
  background: rgba(255, 140, 40, 0.48);
}
.oc-photo-overlay-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.oc-photo-modal-panel.modal-panel--wide {
  max-width: min(1100px, calc(100vw - 1.5rem));
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.oc-photo-modal-panel > .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(92vh - 2rem);
  overflow: hidden;
}
.oc-photo-modal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.oc-photo-modal-preview {
  position: sticky;
  top: 0;
  align-self: start;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  height: 400px;
  max-height: 400px;
}
.oc-photo-preview-hit {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.oc-photo-modal-preview img {
  width: 100%;
  height: 400px;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: #111;
  pointer-events: none;
}
.oc-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.oc-photo-lightbox.is-open {
  display: flex;
}
.oc-photo-lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  background: #0a0a0a;
  cursor: zoom-out;
}
.oc-photo-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.oc-photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.oc-photo-modal-form {
  max-height: min(72vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.4rem;
  min-height: 0;
  scrollbar-gutter: stable;
}
.oc-photo-form-actions {
  position: sticky;
  bottom: 0;
  background: var(--card);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.oc-photo-section {
  margin: 1rem 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3rem;
}
.oc-photo-section:first-child { margin-top: 0; }
.oc-photo-field {
  margin-bottom: 0.75rem;
}
.oc-photo-field > label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}
.oc-photo-field input[type="text"],
.oc-photo-field textarea,
.oc-photo-field select {
  width: 100%;
  box-sizing: border-box;
}
.oc-photo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.oc-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 0;
  font-size: 0.74rem;
  line-height: 1.3;
  overflow: hidden;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.oc-chip:hover {
  background: rgba(114, 105, 239, 0.28);
  border-color: rgba(114, 105, 239, 0.55);
}
.oc-chip-pick {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.18rem 0.35rem 0.18rem 0.55rem;
  font: inherit;
  cursor: pointer;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oc-chip-remove {
  appearance: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted, #9aa3b2);
  padding: 0.18rem 0.4rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.oc-chip-remove:hover {
  color: #ff8a8a;
  background: rgba(255, 80, 80, 0.12);
}
.oc-photo-bulk-form {
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 0.25rem;
}
@media (max-width: 820px) {
  .oc-photo-modal-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .oc-photo-modal-preview {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: 280px;
    max-height: 280px;
  }
  .oc-photo-modal-preview img {
    height: 280px;
    max-height: 280px;
  }
  .oc-photo-modal-form {
    max-height: min(55vh, 480px);
  }
}
