/* Signed-in dashboard, stage 2 — admin pages (scoped to body.is-dash): Profile, App
   access, Hunters & dogs, Privacy & safety, Reported content, the Feedback log, the
   feedback dialog and the club rules gate. Flat panels and paged tables: no list on
   these pages grows past one page of rows. */

/* Shared: padded blocks inside flush panels, muted copy, row buttons, the actions column. */
.is-dash .adm-page .panel > .pill { justify-self: start; }
.is-dash .adm-pad { display: grid; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--d-border); }
.is-dash .adm-pad > .field-error { margin: 0; }
.is-dash .adm-editor-slot:empty, .is-dash .adm-invite-slot:empty { display: none; }
.is-dash .adm-sub { margin: 0; max-width: 80ch; color: var(--d-muted); font-size: 13px; line-height: 1.55; }
.is-dash .adm-btn { min-height: 28px; padding: 0 10px; font-size: 12px; }
.is-dash .adm-page .d-table td { height: 37px; padding-top: 4px; padding-bottom: 4px; }
.is-dash .adm-page .d-table .adm-col-act { width: 1%; text-align: right; }
.is-dash .adm-actions { display: inline-flex; justify-content: flex-end; gap: 6px; }
.is-dash .d-table a.adm-btn:hover { text-decoration: none; }
.is-dash .adm-page .d-table-empty { padding: 16px; }

/* A person in a table cell: initials avatar (or dog mark) and the name. */
.is-dash .adm-member { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; vertical-align: middle; }
.is-dash .adm-member-text { display: grid; min-width: 0; }
.is-dash .adm-member-name { max-width: 30ch; overflow: hidden; color: var(--d-text); font-weight: 500; text-overflow: ellipsis; }
.is-dash .adm-member-sub { display: none; max-width: 30ch; overflow: hidden; color: var(--d-muted); font-size: 12px; text-overflow: ellipsis; }
.is-dash .adm-member-status { display: none; }
.is-dash .adm-dog {
  display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid var(--d-border-strong);
  border-radius: 50%; background: var(--d-raised); color: var(--d-text-2);
}
.is-dash .adm-dog .icon { width: 14px; height: 14px; }

/* Two panels side by side from 1280px (Hunters & dogs, Privacy & safety). */
.is-dash .adm-pair, .is-dash .adm-grid { display: grid; align-items: start; gap: 16px; }
@media (min-width: 1280px) {
  .is-dash .adm-pair, .is-dash .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Profile: the account panel, then the section menu (two across from 1280px). */
.is-dash .panel.adm-account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.is-dash .adm-account-text { display: grid; flex: 1 1 220px; gap: 2px; min-width: 0; }
.is-dash .adm-account-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.is-dash .adm-account .identity-name { font: 600 16px/1.35 var(--d-sans); overflow-wrap: anywhere; }
.is-dash .adm-account .identity-email { color: var(--d-muted); font-size: 13px; overflow-wrap: anywhere; }
.is-dash .adm-menu .menu-list { display: grid; gap: 8px; }
@media (min-width: 1280px) {
  .is-dash .adm-menu .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.is-dash .adm-menu .menu-row {
  display: flex; align-items: center; gap: 12px; height: 100%; min-height: 0; padding: 12px 14px; border: 1px solid var(--d-border);
  border-radius: var(--d-radius-lg); background: var(--d-panel); color: var(--d-text); text-decoration: none;
}
.is-dash .adm-menu .menu-row:hover { background: var(--d-hover); border-color: var(--d-border-strong); color: var(--d-text); }
.is-dash .adm-menu .menu-row:active { background: var(--d-selected); }
.is-dash .adm-menu .menu-row .icon { color: var(--d-faint); }
.is-dash .adm-menu .menu-row:hover > .icon { color: var(--d-text-2); }
.is-dash .adm-menu-icon {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--d-border);
  border-radius: var(--d-radius); background: var(--d-raised);
}
.is-dash .adm-menu .adm-menu-icon .icon { color: var(--d-text-2); }
.is-dash .adm-menu .menu-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.is-dash .adm-menu .menu-title { font-size: 14px; font-weight: 600; }
.is-dash .adm-menu .menu-sub { color: var(--d-muted); font-size: 12px; }

/* App access: members left, invite form and pending invites in a 340px column; one
   column under 1100px with the invite form (when open) above the members. */
.is-dash .adm-access-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 16px; }
.is-dash .adm-access-side { display: grid; align-content: start; gap: 16px; min-width: 0; }
@media (max-width: 1099.98px) {
  .is-dash .adm-access-grid { grid-template-columns: minmax(0, 1fr); }
  .is-dash .adm-access-side { display: contents; }
  .is-dash .adm-invite-slot { order: -1; }
}
.is-dash .adm-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--d-border); }
.is-dash .adm-search { position: relative; flex: 1 1 auto; max-width: 360px; }
.is-dash .adm-search .icon {
  position: absolute; top: 50%; left: 10px; width: 14px; height: 14px; color: var(--d-muted); transform: translateY(-50%); pointer-events: none;
}
.is-dash .adm-search .field-input { width: 100%; min-height: 32px; padding-left: 30px; }
.is-dash .adm-access .adm-col-name .adm-member-name { max-width: 24ch; }
.is-dash .adm-access .adm-col-email .d-cell-trunc { max-width: 28ch; }
/* Pending invites: the email takes what the badge leaves and truncates there. */
.is-dash .adm-access-side .d-table td:first-child { width: 100%; max-width: 0; }
.is-dash .adm-access-side .adm-invite-email { display: block; max-width: 100%; }
.is-dash .panel.adm-invite { gap: 10px; }
.is-dash .adm-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.is-dash .adm-inline-form .form-field { gap: 6px; }
.is-dash .adm-inline-form .pill { min-height: 36px; }

/* Hunters & dogs: description and Add on one line, the inline add / rename form. */
.is-dash .adm-roster-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.is-dash .adm-roster-bar .adm-sub { flex: 1 1 260px; }
.is-dash .roster-editor {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; padding: 12px;
  border: 1px solid var(--d-border); border-radius: var(--d-radius); background: var(--d-bg);
}
.is-dash .roster-editor .form-field { gap: 6px; }
.is-dash .roster-editor .actions-row { flex-wrap: nowrap; }
.is-dash .roster-editor .pill { min-height: 36px; }

/* Privacy & safety: a compact switch, the delete panel edged in rose. */
.is-dash .adm-page .switch-row { gap: 16px; font-size: 14px; font-weight: 500; }
.is-dash .adm-page .switch { width: 36px; height: 20px; }
.is-dash .adm-page .switch::after { top: 2px; left: 2px; width: 16px; height: 16px; }
.is-dash .adm-page .switch:checked::after { transform: translateX(16px); }
.is-dash .panel.adm-danger { border-color: var(--d-rose-border); }

/* Reported content and the Feedback log. */
.is-dash .adm-reported .d-table td.adm-col-what { min-width: 220px; padding-top: 8px; padding-bottom: 8px; white-space: normal; }
.is-dash .adm-reported .adm-col-what .adm-note { max-width: 60ch; }
.is-dash .adm-page .adm-col-who .d-cell-trunc { max-width: 18ch; }
.is-dash .adm-page td.adm-col-when { color: var(--d-muted); }
.is-dash .adm-feedback .d-table td.adm-col-note { width: 100%; min-width: 260px; padding-top: 8px; padding-bottom: 8px; white-space: normal; }
.is-dash .adm-note { display: block; max-width: 90ch; color: var(--d-text); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.is-dash .adm-note.is-folded { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.is-dash .adm-note-cell { display: grid; justify-items: start; gap: 2px; }
.is-dash .adm-more { padding: 0; font-size: 12px; }

/* The feedback dialog: head with a close button, the note, then log link and Submit. */
.is-dash .app-dialog.feedback-dialog { width: min(560px, calc(100% - 32px)); padding: 0; }
.is-dash .feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--d-border); }
.is-dash .feedback-head .dialog-title { margin: 0; }
.is-dash .feedback-form { display: grid; gap: 12px; padding: 16px 20px 20px; }
.is-dash .feedback-form .dialog-body { margin: 0; }
.is-dash .feedback-form .field-area { min-height: 160px; resize: vertical; }
.is-dash .feedback-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.is-dash .feedback-foot .pill[hidden] { display: none; }
.is-dash .feedback-log-link { width: auto; margin: 0 0 0 -10px; }
.is-dash .feedback-status { gap: 4px; padding: 10px 12px; font-size: 13px; }
.is-dash .feedback-status .pill { justify-self: start; margin-top: 4px; }

/* Phones: fewer columns (role, the full email and status sit under the name), tighter cells. */
@media (max-width: 639.98px) {
  .is-dash .adm-access .adm-col-email, .is-dash .adm-access .adm-col-role, .is-dash .adm-access .adm-col-status { display: none; }
  .is-dash .adm-access .adm-member-sub { display: block; max-width: none; white-space: normal; overflow-wrap: anywhere; }
  .is-dash .adm-access .adm-member-status { display: block; margin-top: 4px; }
  .is-dash .adm-access .adm-col-name .adm-member-name { max-width: 18ch; }
  .is-dash .adm-search { max-width: none; }
  .is-dash .adm-page .d-table th, .is-dash .adm-page .d-table td { padding-left: 8px; padding-right: 8px; }
  .is-dash .roster-editor { grid-template-columns: minmax(0, 1fr); }
  .is-dash .adm-feedback .d-table td.adm-col-note { min-width: 200px; }
  .is-dash .adm-feedback .adm-col-status { display: none; }
  .is-dash .feedback-head { padding-left: 16px; }
  .is-dash .feedback-form { padding: 14px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-dash .adm-page .switch, .is-dash .adm-page .switch::after { transition: none; }
}

/* Dog careers (#18) on Hunters & dogs: the note under the table, inside the flush panel. */
.is-dash .d-dogs-note { margin: 0; padding: 10px 16px 12px; }
