.account { position: relative; }
.account summary { cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-chevron { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: #717182; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.account[open] .account-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .account-chevron { transition: none; } }
.account-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.account-menu a, .account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: white;
  text-align: left;
  border-radius: 6px;
}
.account-menu a:hover, .account-menu button:hover { background: var(--soft); }
.account-menu img, .account-menu svg { width: 17px; height: 17px; flex: 0 0 17px; }
.account-menu svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  align-items: end;
  gap: 14px;
}
.panel-filters > a { align-self: center; font-size: 13px; }
.form-panel { width: min(100%, 760px); }
.base-block form > .filter-field { margin-block: 10px 15px; }
.registry-filters .panel-filters > .filter-field { margin: 0; }
.filter-field { font-size: 13px; }
.filter-field:has(input[type=checkbox]) { display: flex; align-items: center; }
.settings-input, .settings-row > .field-text { max-width: 150px; }
.empty-state-cell { text-align: center; color: var(--muted); height: 140px; }
.inline { display: inline-block; }
.section-title + p, .section-title + .table-scroll { margin-top: 14px; }
.profile-layout p + form, .profile-layout form + form { margin-top: 12px; }
.table tr > td:only-child { text-align: center; color: var(--muted); }
.ld-header__right { min-width: 0; }
.account summary { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .user-trigger { font-size: 12px; }
  .ld-header__right { max-width: 40%; }
}

.panel-dialog {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 26px;
  width: min(500px, 92vw);
  color: inherit;
}
.panel-dialog::backdrop { background: #0006; }
.panel-dialog > form[method=dialog] { float: right; }
.panel-dialog .filter-field, .panel-dialog p { margin-block: 12px; }
.panel-dialog form + form, .panel-dialog h2 + form { margin-top: 12px; }
@media (max-width: 440px) {
  .ld-header__right { display: flex; }
}
.period-control a { border-radius: 7px; padding: 6px 11px; font-size: 12px; }
.period-control a[aria-current] { background: white; font-weight: 700; box-shadow: 0 1px 4px #0002; }
