:root {
  --navy: #0a2342;
  --navy-deep: #061730;
  --gold: #c9a44c;
  --gold-dark: #a9862f;
  --gold-soft: #e4c973;
  --paper: #f5f6f8;
  --white: #ffffff;
  --ink: #10243f;
  --muted: #627086;
  --line: #dfe4eb;
  --danger: #a84234;
  --shadow: 0 22px 48px rgba(10, 35, 66, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 1px solid var(--line);
  background: #fff;
  padding: 2px 6px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 164, 76, 0.28);
}

.admin-brand {
  flex: 0 0 auto;
}

.admin-topbar img {
  display: block;
  width: 160px;
  height: auto;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.admin-topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.admin-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.admin-menu-open .admin-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.admin-menu-open .admin-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.admin-menu-open .admin-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.admin-topbar nav a,
.admin-topbar button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.admin-topbar nav a {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 2px;
}

.admin-topbar nav a.active,
.admin-topbar nav a:hover,
.admin-topbar button:hover {
  color: #fff;
}

.admin-topbar nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}

.admin-view-site {
  border: 1px solid rgba(201, 164, 76, 0.8) !important;
  color: var(--gold-soft) !important;
  padding: 0 14px !important;
}

.admin-shell {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 54px 0 90px;
}

.admin-auth,
.admin-card,
.admin-table-wrap,
.admin-form {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-auth {
  width: min(100%, 620px);
  margin: 8vh auto 0;
  padding: clamp(28px, 5vw, 54px);
}

.admin-auth img {
  width: 190px;
  height: auto;
  margin-bottom: 26px;
}

.admin-card {
  padding: 28px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-deep);
  line-height: 1.05;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
}

h3 {
  margin-top: 26px;
  font-size: 16px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-login-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.admin-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-btn.secondary {
  background: transparent;
  color: var(--navy);
}

.admin-btn.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.admin-card-note {
  max-width: 680px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.admin-alert,
.form-error {
  border: 1px solid rgba(168, 66, 52, 0.32);
  background: rgba(168, 66, 52, 0.08);
  color: var(--danger);
  padding: 12px 14px;
}

.admin-dev-link a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 22px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  white-space: nowrap;
}

.admin-actions a,
.admin-actions button {
  display: inline-block;
  margin-right: 12px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0;
  text-transform: uppercase;
}

.admin-pill {
  display: inline-flex !important;
  width: fit-content;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 8px;
  color: var(--navy) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-pill.published {
  border-color: rgba(62, 125, 86, 0.35);
  background: rgba(62, 125, 86, 0.1);
}

.admin-pill.cancelled {
  border-color: rgba(168, 66, 52, 0.35);
  background: rgba(168, 66, 52, 0.1);
}

.admin-pill.pending,
.admin-pill.failed,
.admin-pill.refunded,
.admin-pill.no_show {
  border-color: rgba(168, 66, 52, 0.35);
  background: rgba(168, 66, 52, 0.08);
}

.admin-pill.paid,
.admin-pill.free,
.admin-pill.attended,
.admin-pill.registered {
  border-color: rgba(62, 125, 86, 0.35);
  background: rgba(62, 125, 86, 0.1);
}

.admin-stat-grid,
.admin-dashboard-grid,
.admin-detail-grid {
  display: grid;
  gap: 18px;
}

.admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.admin-dashboard-grid,
.admin-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.admin-stat-card {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.admin-stat-card:hover {
  border-color: rgba(201, 164, 76, 0.75);
  transform: translateY(-2px);
}

.admin-stat-card strong {
  color: var(--navy);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-stat-card.warn {
  border-color: rgba(168, 66, 52, 0.35);
}

.admin-panel {
  min-height: 260px;
}

.admin-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.admin-list li,
.admin-list a {
  display: grid;
  gap: 4px;
}

.admin-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-list strong {
  color: var(--navy);
}

.admin-list span {
  color: var(--muted);
  font-size: 13px;
}

.compact-list {
  margin-top: 14px;
}

.admin-sessions-card .admin-card-note {
  margin: 14px 0 22px;
}

.admin-session-list {
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.admin-session-list li {
  padding: 18px 0;
}

.admin-session-list li:first-child {
  border-top: 0;
}

.admin-session-list strong {
  font-size: 18px;
}

.admin-session-list span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.admin-session-action {
  margin-top: 22px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  padding: 18px;
}

.admin-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-filter-bar button {
  min-height: 44px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.admin-grid-form.compact,
.admin-form.stacked {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.account-profile-form,
.admin-invite-form {
  grid-template-columns: 1fr;
}

.admin-form.stacked {
  display: grid;
  gap: 16px;
}

.admin-form-section {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.admin-form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-form-section span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-picker-field {
  display: grid;
  gap: 8px;
}

.admin-picker-label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-form input {
  min-width: 0;
}

.admin-form textarea {
  resize: vertical;
}

.admin-picker {
  position: relative;
  width: 100%;
}

.admin-picker-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 12px 14px;
  text-align: left;
  text-transform: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-picker-trigger:hover,
.admin-picker-trigger:focus-visible,
.admin-picker.is-open .admin-picker-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 76, 0.16);
  outline: 0;
}

.admin-picker-trigger:hover {
  transform: translateY(-1px);
}

.admin-picker.is-invalid .admin-picker-trigger {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(176, 74, 57, 0.14);
}

.admin-picker-trigger svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-picker-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, calc(100vw - 48px));
  border: 1px solid rgba(201, 164, 76, 0.55);
  background: #fff;
  box-shadow: 0 26px 70px rgba(10, 35, 66, 0.18);
  padding: 18px;
}

.admin-picker-popover[hidden] {
  display: none;
}

.admin-date-popover {
  width: min(380px, calc(100vw - 48px));
}

.admin-date-head,
.admin-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-date-head {
  margin-bottom: 16px;
}

.admin-date-head strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.admin-picker-icon-btn,
.admin-picker-link,
.admin-time-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-picker-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.admin-picker-icon-btn:hover,
.admin-picker-icon-btn:focus-visible,
.admin-picker-link:hover,
.admin-picker-link:focus-visible,
.admin-time-chip:hover,
.admin-time-chip:focus-visible {
  border-color: var(--gold);
  outline: 0;
  transform: translateY(-1px);
}

.admin-date-weekdays,
.admin-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-date-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.admin-date-weekdays span {
  padding: 8px 0;
}

.admin-date-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.admin-date-day:hover,
.admin-date-day:focus-visible {
  border-color: var(--gold);
  background: rgba(201, 164, 76, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.admin-date-day.is-muted {
  color: rgba(101, 114, 135, 0.58);
}

.admin-date-day.is-today:not(.is-selected) {
  border-color: rgba(201, 164, 76, 0.7);
}

.admin-date-day.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.admin-picker-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-picker-link {
  min-height: 38px;
  padding: 0 14px;
  color: var(--gold-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-time-popover {
  width: min(460px, calc(100vw - 48px));
}

.admin-time-readout {
  border: 1px solid rgba(201, 164, 76, 0.42);
  background: var(--navy);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 16px;
}

.admin-time-quick,
.admin-time-grid {
  display: grid;
  gap: 8px;
}

.admin-time-quick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.admin-time-section {
  margin-top: 16px;
}

.admin-time-section-title {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-time-grid.hours {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-time-grid.minutes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-time-grid.meridiem {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-time-chip {
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.admin-time-chip.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form.wide {
  align-items: end;
}

.inline-form.wide select {
  min-width: 220px;
}

.inline-form button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-dialog {
  width: min(100% - 36px, 560px);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 32px 90px rgba(6, 23, 48, 0.28);
}

.admin-dialog::backdrop {
  background: rgba(6, 23, 48, 0.66);
  backdrop-filter: blur(3px);
}

.admin-dialog-close {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
}

.admin-dialog-close button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.admin-dialog-body {
  padding: 12px clamp(24px, 5vw, 42px) clamp(26px, 5vw, 42px);
}

.admin-dialog-body h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.admin-dialog-body p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.admin-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.admin-dialog-actions form {
  margin: 0;
}

.admin-email-preview {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  padding: 22px;
}

.admin-email-preview p {
  margin: 0 0 16px;
}

.admin-email-frame {
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-meta-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.admin-meta-list div,
.admin-readonly {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-meta-list dt,
.admin-readonly strong {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-meta-list dd,
.admin-readonly span {
  margin: 6px 0 0;
  color: var(--ink);
}

.admin-cancel-options {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.admin-cancel-options input {
  margin-right: 8px;
}

.admin-address-suggestions {
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  box-shadow: 0 18px 36px rgba(10, 35, 66, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.admin-address-suggestions button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  text-align: left;
}

.admin-address-suggestions button:hover,
.admin-address-suggestions button:focus {
  background: var(--paper);
  outline: 0;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.admin-menu-open {
    overflow: hidden;
  }

  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 84px;
    padding: 14px 18px;
  }

  .admin-topbar img {
    width: 144px;
  }

  .admin-menu-toggle {
    display: inline-flex;
  }

  .admin-topbar nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 74px);
    gap: 0;
    overflow-y: auto;
    padding: 20px 28px 28px;
    background: var(--navy-deep);
    border-top: 1px solid rgba(201, 164, 76, 0.28);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    visibility: hidden;
  }

  body.admin-menu-open .admin-topbar nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .admin-topbar nav a,
  .admin-topbar nav button {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  .admin-topbar nav form {
    margin: 0;
  }

  .admin-view-site {
    justify-content: center !important;
    margin: 10px 0 !important;
  }

  .admin-shell {
    width: min(100% - 28px, 1180px);
    padding: 28px 0 96px;
  }

  .admin-grid-form {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .admin-form label {
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .admin-picker-label {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .admin-form input,
  .admin-form select,
  .admin-form textarea,
  .inline-form select {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
    text-align: left;
  }

  .admin-form input[type="date"],
  .admin-form input[type="time"] {
    text-align: left;
  }

  .admin-picker-trigger {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .admin-picker-popover {
    position: fixed;
    right: 14px;
    bottom: 18px;
    left: 14px;
    top: auto;
    width: auto;
    max-height: calc(100dvh - 128px);
    overflow-y: auto;
    padding: 16px;
  }

  .admin-date-popover,
  .admin-time-popover {
    width: auto;
  }

  .admin-time-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-time-grid.hours {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-form-section {
    padding-top: 16px;
  }

  .admin-stat-grid,
  .admin-dashboard-grid,
  .admin-detail-grid,
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-head-actions,
  .admin-email-actions,
  .admin-dialog-actions,
  .inline-form.wide {
    width: 100%;
  }

  .admin-head-actions .admin-btn,
  .admin-email-actions .admin-btn,
  .admin-dialog-actions .admin-btn,
  .admin-dialog-actions form,
  .inline-form.wide select,
  .inline-form.wide button {
    width: 100%;
  }

  .admin-card {
    padding: 22px 18px;
  }

  .admin-stat-card {
    min-height: 104px;
    gap: 12px;
    padding: 22px;
  }

  .admin-stat-card strong {
    font-size: clamp(42px, 16vw, 64px);
  }

  .admin-stat-card span {
    font-size: 12px;
    line-height: 1.35;
  }

  .admin-dashboard-stats {
    display: none;
  }

  .admin-card,
  .admin-form,
  .admin-table-wrap {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .admin-auth {
    width: min(100% - 28px, 620px);
    margin-top: 28px;
  }

  .admin-auth img {
    width: 156px;
  }

  .admin-login-form input {
    font-size: 16px;
  }

  .admin-table-wrap {
    overflow: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 34px rgba(10, 35, 66, 0.08);
    padding: 0;
  }

  .admin-table td {
    border-bottom: 0;
    padding: 12px 16px;
    overflow-wrap: anywhere;
  }

  .admin-table td:first-child {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(245, 246, 248, 0.78), rgba(255, 255, 255, 0));
    padding: 16px;
  }

  .admin-table td strong {
    display: block;
    line-height: 1.25;
    font-size: 20px;
  }

  .admin-table td span {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .admin-actions {
    white-space: normal;
  }

  .admin-actions a,
  .admin-actions button,
  .admin-actions form {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    margin: 4px 10px 4px 0;
  }

  .admin-table td:last-child {
    padding-top: 16px;
  }

  .admin-section-head {
    flex-direction: column;
  }
}
