html:not(.account-ready) main { display:none; }
.account-bar { margin:12px auto; padding:12px 18px; max-width:1500px; background:#172338; color:#e5edf8; border:1px solid #526078; border-radius:10px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; font:15px system-ui,sans-serif; }
.account-bar p { flex-basis:100%; margin:0; }
.account-bar a,.account-panel a { color:#8cc7ff; }
.account-bar button,.account-bar select,.account-panel button,.account-panel select { font:inherit; background:#243751; color:#fff; border:1px solid #7890ad; border-radius:6px; padding:8px 12px; cursor:pointer; }
.account-panel { font:16px/1.5 system-ui,sans-serif; color:#e5edf8; background:#111d30; border:1px solid #526078; border-radius:12px; padding:22px; margin:20px auto; max-width:850px; box-sizing:border-box; }
dialog.account-panel { max-width:min(650px,95vw); }
dialog::backdrop { background:#000a; }
.account-panel form { display:grid; gap:14px; margin:20px 0; }
.account-panel label { display:block; }
.account-panel input:not([type=checkbox]),.account-panel textarea { display:block; width:100%; box-sizing:border-box; font:inherit; padding:10px; color:#fff; background:#0b1423; border:1px solid #7890ad; border-radius:6px; margin:6px 0; }
.account-panel textarea { min-height:100px; }
.account-panel button { margin:4px; }
.account-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; padding:10px 0; border-bottom:1px solid #526078; }
.error { color:#ffbfad; }
[hidden] { display:none !important; }

/* Astro account UI v0.9.12 */
.account-bar a.account-nav-link,.account-panel a.account-nav-link {
  display:inline-flex;align-items:center;justify-content:center;min-height:38px;
  padding:7px 12px;border:1px solid #7890ad;border-radius:7px;
  background:#243751;color:#fff;text-decoration:none;font-weight:600;
}
.account-bar a.account-nav-link:hover,.account-panel a.account-nav-link:hover {
  background:#355478;border-color:#a9c1dd;
}
.account-bar a.account-nav-link:focus-visible,.account-panel a.account-nav-link:focus-visible {
  outline:2px solid #f0bc65;outline-offset:2px;
}
.account-bar a.account-nav-link[aria-current="page"] {
  background:#304865;border-bottom:3px solid #f0bc65;padding-bottom:5px;
}
.section-navigation {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;}
.section-navigation + h1 {margin-top:0;}
.detail-navigation {
  position:sticky;top:8px;z-index:5;display:flex;flex-wrap:wrap;
  align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;margin:0 0 15px;background:#172338;
  border:1px solid #526078;border-radius:9px;box-shadow:0 4px 14px #07101e99;
}
.detail-navigation-status {display:flex;flex-direction:column;line-height:1.25;}
.detail-navigation-status small {color:#cbd8e8;margin-top:3px;}
.detail-navigation-actions {display:flex;flex-wrap:wrap;gap:6px;}
.detail-navigation-actions button {margin:0;padding:6px 8px;min-height:36px;font-size:.9rem;}
.detail-navigation-actions button:focus-visible {outline:2px solid #f0bc65;outline-offset:2px;}
.detail-navigation-actions button:disabled {opacity:.45;cursor:default;}
.account-bar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}
.account-bar > p {
  flex-basis:100%;
}
.account-profile {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  white-space:nowrap;
}
.account-profile-label {
  display:inline-block;
  font-weight:600;
}
.account-profile select {
  margin:0;
}
.account-note-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:8px;
}
.account-note-state {
  margin:8px 0 0;
  color:#cbd8e8;
  font-size:0.9rem;
}
.account-panel .danger-button {
  border-color:#b87a7a;
  background:#3a2630;
}
.account-panel .secondary-danger-button {
  border-color:#8d7a55;
  background:#332d20;
}
.account-help {
  margin-bottom:14px;
}
.account-empty {
  padding:12px 14px;
  background:#172338;
  border:1px solid #526078;
  border-radius:8px;
  color:#cbd8e8;
}
.account-grant-row {
  gap:12px;
}
.account-grant-name {
  min-width:120px;
}
.account-grant-control {
  display:inline-flex !important;
  align-items:center;
  gap:8px;
}
@media (max-width:760px) {
  .account-profile {
    margin-left:0;
    flex-basis:100%;
    justify-content:flex-start;
  }
  .account-profile select {
    min-width:0;
    max-width:100%;
  }
  .account-grant-row {
    align-items:flex-start;
  }
  .account-grant-name,
  .account-grant-control {
    flex-basis:100%;
  }
}

/* Kontext-Hilfe v0.9.12: unsichtbar bis Mouse-over oder Tastaturfokus. */
.astro-help-tooltip {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  max-width: min(380px, calc(100vw - 16px));
  padding: 9px 11px;
  border: 1px solid #7f94ae;
  border-radius: 7px;
  background: #111d30;
  color: #eef5ff;
  box-shadow: 0 8px 24px #020817cc;
  font: 13px/1.4 system-ui, sans-serif;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}
.astro-help-tooltip[hidden] { display: none !important; }
