.accounts-page {
  display: block;
  background: radial-gradient(ellipse at top, #102e26, transparent 70%), #040e0d;
  font-size: max(16px, 1rem);
}
@media (min-width: 901px) {
  .accounts-shell { display: grid; }
}
.accounts-main {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
  padding-block: clamp(1rem, 4vw, 3rem);
}
.accounts-hero, .accounts-card {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
}
.accounts-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.15rem 2rem;
  background: linear-gradient(100deg, #041914f5 15%, #041914d9 80%), url("/rio.jpg") center / cover, #041914;
}
.accounts-brand { padding: 0; }
.accounts-heading { min-width: 0; overflow-wrap: anywhere; }
.accounts-heading h1 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); line-height: 1.1; }
.accounts-heading p, .accounts-description { color: var(--muted); margin-top: .4rem; }
.accounts-card {
  background: linear-gradient(135deg, #102e2a, #041715 85%);
}
.accounts-card h2 { font-size: 1.2rem; }
.accounts-main--login {
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100% - 2rem, 59rem);
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: .85rem;
}
.accounts-main--login .accounts-hero {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
}
.accounts-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-block: 1rem;
}
.accounts-tabs a, .accounts-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: max(44px, 2.75rem);
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #09241f;
  color: inherit;
  font: inherit;
}
.accounts-tabs a:hover { background: #164437; text-decoration: none; }
.accounts-tabs [aria-current="page"] {
  color: var(--green);
  border-color: #4d995e;
  background: #0c3124;
  font-weight: 700;
}
.accounts-pagination { margin-bottom: 0; color: var(--muted); }
.accounts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}
.accounts-form { display: grid; gap: .85rem; align-content: center; }
.accounts-card > .accounts-form { margin-top: .85rem; }
.accounts-form--standalone { max-width: 34rem; }
.accounts-form > div { display: grid; gap: .35rem; min-width: 0; }
.accounts-form label { font-weight: 650; }
.accounts-form :is(input:not([type="checkbox"]):not([type="hidden"]), select) {
  width: 100%;
  min-width: 0;
  min-height: max(44px, 2.75rem);
  padding: .55rem .7rem;
  border: 1px solid #4b8275;
  border-radius: .55rem;
  background: #061e1a;
  color: inherit;
  font: inherit;
}
.accounts-form input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  margin: .25rem 0;
  accent-color: var(--green);
}
.accounts-form button {
  cursor: pointer;
  border-color: var(--green);
  background: var(--green);
  color: #102710;
  font-weight: 750;
}
.accounts-form button:hover { background: #a2ff70; }
.accounts-form--delete { margin-top: 1rem; }
.accounts-form--delete button {
  border-color: var(--bad);
  background: #351a20;
  color: var(--bad);
}
.accounts-form--delete button:hover { background: #53252f; }
.accounts-form .errorlist {
  margin: 0;
  padding: .65rem .75rem .65rem 1.7rem;
  border: 1px solid #9c5358;
  border-radius: .5rem;
  background: #351a20;
  color: var(--bad);
}
.accounts-form .helptext { color: var(--muted); font-size: .9em; }
.accounts-form .helptext ul { margin: .35rem 0 0; padding-inline-start: 1.3em; }
.accounts-table { overflow-x: auto; margin-top: .85rem; }
.accounts-table table { border-collapse: collapse; width: 100%; text-align: left; font-size: .92em; }
.accounts-table :is(th, td) {
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.accounts-table th { color: var(--muted); background: #09241f; }
.accounts-table th[scope="row"] { color: inherit; background: transparent; }
.accounts-cell-label { display: none; }
.accounts-table tbody tr:hover { background: #10332d; }
.accounts-table td a { display: inline-flex; align-items: center; min-height: 44px; }
.accounts-state[data-active="true"] { color: var(--green); }
.accounts-state[data-active="false"] { color: var(--muted); }
@media (max-width: 980px) {
  .accounts-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .accounts-main { width: calc(100% - 1.25rem); }
  .accounts-main--login { grid-template-columns: minmax(0, 1fr); }
  .accounts-main--login .accounts-hero { gap: 1rem; }
  .accounts-table :is(th, td) { padding: .55rem .35rem; }
  .accounts-users, .accounts-users tbody { display: grid; gap: .65rem; }
  .accounts-users thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .accounts-users tbody tr {
    display: grid;
    padding: .5rem .65rem;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: #09241f;
  }
  .accounts-users tbody :is(th, td) { border: 0; padding: .35rem 0; }
  .accounts-users tbody th { font-size: 1.1em; }
  .accounts-users td {
    display: grid;
    grid-template-columns: minmax(5rem, max-content) minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
  }
  .accounts-cell-label { display: inline; color: var(--muted); }
}
#conta-painel form button { width: 100%; }
