.admin-main {
  padding: 32px 0 60px;
}
.portal-header { min-height: 120px; }
.portal-header img { width: 120px; }
.admin-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-actions-menu { position: relative; }
.admin-actions-menu summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 3px; font-weight: 800; list-style: none; cursor: pointer; }
.admin-actions-menu summary::-webkit-details-marker { display: none; }
.admin-header-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-actions-menu summary svg { width: 16px; height: 16px; }
.admin-actions-menu[open] summary svg { transform: rotate(180deg); }
.admin-actions-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; width: min(320px, calc(100vw - 28px)); padding: 6px; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 28px #0009; }
.admin-actions-dropdown a{display:block;padding:12px;color:var(--cream);font-size:14px;font-weight:700;text-decoration:none}
.admin-actions-dropdown a:hover{color:var(--gold);background:#302a1d}
.admin-actions-dropdown a:focus-visible{outline:3px solid #73cafa;outline-offset:-3px}
.admin-header-actions .admin-actions-dropdown button { display: block; width: 100%; padding: 12px; color: var(--cream); background: transparent; text-align: left; font-size: 14px; font-weight: 700; }
.admin-header-actions .admin-actions-dropdown button:hover:not(:disabled) { color: var(--gold); background: #302a1d; }
.admin-header-actions .admin-icon-button { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; padding: 10px; }
.admin-actions-menu summary:focus-visible { outline: 3px solid #73cafa; outline-offset: 3px; }
.admin-login {
  max-width: 560px;
  margin: 40px auto;
}
.admin-login h1 {
  font-size: clamp(48px, 7vw, 78px);
}
.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}
.admin-toolbar h1 {
  margin: 0;
  font-size: 48px;
}
.admin-header-actions button,
.editor button,
.password-dialog button,
.bulk-dialog button,
.bulk-status button {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 3px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}
.bulk-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.bulk-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.bulk-dialog h2 { margin-top: 0; font-size: 32px; }
.bulk-include { display: flex; align-items: flex-start; gap: 12px; }
.bulk-include input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; }
.bulk-warning { color: var(--muted); font-size: 0.9rem; }
.bulk-status { margin: 0 0 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.bulk-status progress { display: block; width: 100%; margin-bottom: 14px; accent-color: var(--gold); }
.bulk-dialog .secondary-button,
.password-dialog .secondary-button,
.admin-header-actions .secondary-button,
.bulk-status .secondary-button { color: var(--cream); background: transparent; border: 1px solid var(--line); }
.admin-main button:disabled, .admin-header-actions button:disabled, .editor-dialog button:disabled, .password-dialog button:disabled { opacity: 0.55; cursor: not-allowed; }
.account-directory { min-width: 0; }
.editor {
  background: var(--panel);
  padding: 28px;
}
.account-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.directory-search { max-width: 390px; }
.alphabet-filter { display: flex; flex-wrap: wrap; gap: 3px; margin: 22px 0 8px; }
.alphabet-filter button { flex: 1 0 32px; min-height: 44px; padding: 5px; color: var(--gold); background: transparent; border: 0; border-radius: 3px; font-size: 14px; font-weight: 800; cursor: pointer; }
.alphabet-filter button:first-child { flex-basis: 48px; }
.alphabet-filter button[aria-pressed="true"] { color: #111; background: var(--gold); }
.alphabet-filter button:disabled { opacity: 0.35; }
.alphabet-filter button:hover:not(:disabled):not([aria-pressed="true"]) { background: #302a1d; }
.alphabet-filter button:focus-visible, .account-card button:focus-visible, .account-card a:focus-visible, .admin-header-actions button:focus-visible, .editor button:focus-visible { outline: 3px solid #73cafa; outline-offset: 3px; }
.account-search {
  display: block;
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
}
#account-search {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
}
#account-search:focus-visible {
  outline: 3px solid #73cafa;
  outline-offset: 3px;
}
.account-count, .account-empty {
  color: var(--muted);
  font-size: 0.85rem;
}
.account-count {
  margin: 12px 0;
}
.account-card { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; background: var(--panel); border: 1px solid #49483f; border-radius: 4px; }
.account-card-header { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #38392f; }
.account-card h2 { min-width: 0; max-width: 100%; margin: 0; color: var(--gold); font: 700 18px/1.4 Arial, Helvetica, sans-serif; text-transform: none; }
.account-email { margin: 18px 18px; font-size: 15px; }
.account-status-dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #d2d2cd; cursor: help; }
.account-status-dot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.account-status-dot--registered { color: #65ce80; }
.account-status-dot--invited { color: #f4aa4f; }
.account-status-dot--not-invited { color: #ef7d71; }
.account-status-dot:focus-visible { outline: 2px solid #73cafa; outline-offset: 2px; }
.account-status-tooltip { position: absolute; z-index: 2; top: 100%; right: 0; width: max-content; max-width: 160px; padding: 6px 9px; border: 1px solid #777970; border-radius: 3px; background: #080909; color: var(--cream); font: 400 12px/1.4 Arial, Helvetica, sans-serif; visibility: hidden; }
.account-status-dot:not([data-dismissed]):is(:hover, :focus) .account-status-tooltip { visibility: visible; }
.status-pill { display: inline-flex; align-self: flex-start; align-items: center; width: fit-content; padding: 4px 9px; border: 1px solid; border-radius: 999px; font: 700 12px/1.4 Arial, Helvetica, sans-serif; text-transform: none; }
.status-pill.status-pill--registered { color: #b9efc6; background: #173522; border-color: #528a61; }
.status-pill.status-pill--invited { color: #ffd095; background: #422b12; border-color: #ac793b; }
.status-pill.status-pill--not-invited { color: #ffc2bb; background: #421d1b; border-color: #b06960; }
.status-pill.status-pill--disabled { color: #d2d2cd; background: #30312c; border-color: #777970; }
.account-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding: 0 18px 18px; }
.account-card-actions button, .account-card-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; color: var(--cream); background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.account-card-actions button:hover, .account-card-actions a:hover { color: var(--gold); border-color: var(--gold); }
.account-card-actions button[aria-current="true"] { border-color: var(--gold); }
.editor-dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.editor-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.editor-dialog[data-mode="add"] { width: min(560px, calc(100% - 32px)); }
.edit-only-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.booking-editor { margin-top: 24px; padding-block: 20px; border-block: 1px solid #49483f; }
.booking-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.booking-editor h3 { margin: 0; font-size: 18px; }
.booking-editor-heading button { margin: 0; }
.editor .booking-reload { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 10px; }
.booking-reload svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking-identity { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.booking-editor [data-booking-save] { margin-top: 16px; }
.booking-editor .form-message { font-size: 14px; }
.booking-editor .form-message:empty, .booking-identity:empty { display: none; }
.booking-logistics { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); column-gap: 18px; margin-top: 22px; padding-top: 4px; border-top: 1px solid #49483f; }
.booking-logistics > button { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
.booking-keywords { margin-top: 22px; padding-top: 4px; border-top: 1px solid #49483f; }
.booking-keywords button { margin-top: 8px; }
body:has(.editor-dialog[open], .bulk-dialog[open], .password-dialog[open]) { overflow: hidden; }
.password-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.password-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.password-dialog h2 { margin: 0; font-size: 28px; }
.password-dialog p { line-height: 1.5; }
.password-account { overflow-wrap: anywhere; color: var(--gold); }
.password-dialog label { display: block; margin-block: 16px 8px; font-weight: 700; }
.password-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.password-copy-row input { width: 100%; min-width: 0; padding: 10px; color: #111; background: #fff; border: 1px solid #aaa; border-radius: 2px; font: 15px/1.5 monospace; }
.password-dialog .password-copy { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 10px; }
.password-copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.password-dialog :is(button, input):focus-visible { outline: 3px solid #73cafa; outline-offset: 3px; }
.password-dialog .editor-actions { flex-wrap: wrap; }
.editor-heading-actions { display: flex; align-items: flex-start; gap: 12px; }
.editor .dialog-close { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; margin: 0; }
.dialog-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.editor h2 {
  font-size: 38px;
  overflow-wrap: anywhere;
}
.account-status {
  height: max-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.editor label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 800;
}
.editor input:not([type="checkbox"]),
.editor select,
.editor textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px;
  color: #111;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 2px;
  font: inherit;
}
.editor textarea {
  resize: vertical;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.editor small {
  color: var(--muted);
  font-weight: normal;
}
.sheet-source-note {
  margin: 14px 0 22px;
  padding: 12px 14px;
  color: var(--muted);
  background: #20221f;
  border-left: 3px solid var(--gold);
}
.disable-account {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.disable-account input {
  width: 20px;
  height: 20px;
}
.editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.editor-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 900;
  text-decoration: none;
}
.editor .secondary-button {
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
}
.admin-message {
  position: sticky;
  bottom: 15px;
  padding: 12px;
  background: #241e14;
  border-left: 4px solid var(--gold);
}
.admin-message:empty, [data-editor-message]:empty { display: none; }
@media (max-width: 1000px) {
  .account-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .booking-logistics { grid-template-columns: minmax(0, 1fr); }
  .portal-header { padding-block: 16px; gap: 18px; }
  .admin-header-actions { gap: 8px; }
  .admin-header-actions button { margin: 0; font-size: 13px; padding: 8px 12px; }
  .editor { padding: 20px; }
  .editor-heading { flex-wrap: wrap; }
  .editor h2 { font-size: 30px; }
  .editor-heading-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .account-list { grid-template-columns: minmax(0, 1fr); }
  .portal-header { align-items: flex-start; gap: 12px; }
  .portal-header img { width: 80px; }
  .admin-header-actions { max-width: 230px; }
  .admin-header-actions { flex-wrap: nowrap; }
  .admin-actions-menu summary { padding-inline: 10px; font-size: 13px; gap: 6px; }
  .admin-actions-dropdown { right: -108px; }
  .admin-toolbar h1 { font-size: 40px; }
}
