.account-panel {
  padding: clamp(1rem, 3vw, 1.8rem);
  border-radius: 1rem;
  border: 1px solid var(--line, #d9e2ee);
  background: var(--surface, #fff);
  margin-block: 1rem;
  min-width: 0;
}

.account-auth {
  max-width: 36rem;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.account-auth > button, .account-stack > button, .account-form > button,
.account-list-item > button { justify-self: start; }
.account-stack, .account-form, .account-list-item, .account-invitation {
  display: grid;
  gap: .8rem;
}
.account-panel details form { margin-block: .9rem; }
.account-panel summary {
  padding-block: .7rem;
  font-weight: 700;
  cursor: pointer;
}
.account-field, .account-permission { display: grid; gap: .35rem; min-width: 0; font-weight: 650; }
.account-panel :is(input:not([type=checkbox]), select) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line, #aebdd2);
  border-radius: .6rem;
  padding: .55rem .7rem;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-weight: 400;
}
.account-panel :is(a, select, input, summary):focus-visible {
  outline: 3px solid var(--blue, #4266a8);
  outline-offset: 2px;
}
.account-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .85rem;
  border: 1px solid var(--line, #d9e2ee);
  margin: 0;
  border-radius: .65rem;
  padding: .85rem;
  min-width: 0;
}
.account-permissions legend { font-weight: 750; padding-inline: .25rem; }
.account-sharing-action {
  border: 1px solid var(--line, #d9e2ee);
  border-radius: .65rem;
  padding-inline: .85rem;
}
.account-role-rights > button { margin-top: .75rem; }
.account-issued:empty { display: none; }
.account-muted { color: var(--muted, #475b75); }
.account-error { color: #8b2630; }
.account-notice { color: var(--blue, #263f78); }
.account-error:empty, .account-notice:empty { display: none; }
.account-command { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-list-item { border-block-start: 1px solid var(--line, #d9e2ee); padding-block: .8rem; }
.account-invitation {
  border: 1px solid var(--line, #d9e2ee);
  border-radius: .65rem;
  padding: 1rem;
}
.account-invitation h4 { margin: 0; }
.account-check {
  display: flex;
  gap: .75rem;
  align-items: center;
  min-height: 44px;
}
.account-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue, #263f78); flex-shrink: 0; }
.account-link { color: var(--blue, #263f78); display: inline-block; padding-block: .5rem; justify-self: start; }
.account-print { display: none; }

@media print {
  body:has(.account-print) > :not(.account-print) { display: none !important; }
  .account-print { display: block; color: black; font: 11pt/1.4 system-ui, sans-serif; }
  .account-print h1 { font-size: 19pt; margin-bottom: .6cm; }
  .account-print-day { break-inside: avoid; border-top: 1px solid #bbb; padding-block: .22cm; }
  .account-print-day h2 { font-size: 13pt; margin: 0; }
  .account-print-day ul { margin: .1cm 0; padding-inline-start: .55cm; }
  .account-print-day small { display: block; }
}
