/* ── Reset & Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1628;
  --surface: #132035;
  --surface-high: #1b2e47;
  --surface-elevated: #213550;
  --primary: #00cfaa;
  --primary-dim: #009e82;
  --text: #eef2f7;
  --text-muted: #6b7a8d;
  --radius: 14px;
  --font-display: 'Lexend', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

input {
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── App wrapper ── */
#app {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Header ── */
#app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(13, 22, 40, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  border-radius: 10px;
  transition: background 0.15s;
}

.header-btn:hover,
.header-btn:active {
  background: var(--surface-high);
}

/* ── Main ── */
#main-content {
  padding: 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Section title ── */
.section-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

/* ── Hero card ── */
.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -2px;
}

.hero-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.08;
  pointer-events: none;
}

/* ── Mini cards ── */
.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.mini-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mini-value-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.mini-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.mini-unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mini-unit:hover {
  color: var(--primary);
}

/* ── Week rows ── */
.week-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week-row {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.week-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface-high);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.week-text {
  flex: 1;
  min-width: 0;
}

.week-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.week-value-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.week-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.week-unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.week-unit:hover {
  color: var(--primary);
}

.week-decoration {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.5;
}

/* ── Breakdown section ── */
.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.period-toggle {
  display: flex;
  background: var(--surface);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.period-btn {
  flex: 1;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.period-btn.active {
  background: var(--primary);
  color: var(--bg);
}

/* ── Breakdown list ── */
#breakdown-list {
  display: flex;
  flex-direction: column;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-left {
  flex: 1;
  min-width: 0;
}

.breakdown-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breakdown-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

.breakdown-right {
  flex-shrink: 0;
  text-align: right;
}

.breakdown-time {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.breakdown-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
}

.breakdown-badge.strength {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.15);
}

.breakdown-badge.volume {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.breakdown-badge.focus {
  color: var(--primary);
  background: rgba(0, 207, 170, 0.12);
}

.breakdown-badge.endurance {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
}

/* ── Empty state ── */
.empty-state {
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  padding: 40px 0;
}

/* ── Bottom nav ── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(13, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 20px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 50;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color 0.2s;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.nav-btn.fab {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: var(--bg);
  border-radius: 18px;
  width: 64px;
  height: 64px;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 207, 170, 0.35);
  margin-top: -24px;
  font-size: 9px;
}

.nav-btn.fab span {
  font-size: 9px;
}

/* ── Modal ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 12px 24px 40px;
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modal-overlay.open #modal-sheet {
  transform: translateY(0);
}

.drag-handle {
  width: 40px;
  height: 4px;
  background: var(--surface-high);
  border-radius: 100px;
  margin: 0 auto 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

/* ── Form fields ── */
.form-field {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--surface-high);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-input:focus {
  border-bottom-color: var(--primary);
}

/* ── Unit toggle (modal) ── */
.unit-toggle {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.unit-btn {
  flex: 1;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-high);
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.unit-btn.active {
  background: var(--primary);
  color: var(--bg);
}

/* ── Unilateral row ── */
.unilateral-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.unilateral-label {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}

/* ── Log button ── */
.log-btn {
  width: 100%;
  background: linear-gradient(135deg, #006666, #005959);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  padding: 18px;
  border-radius: 14px;
  margin-top: 24px;
  letter-spacing: -0.2px;
  transition: opacity 0.2s, transform 0.1s;
}

.log-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.log-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Exercise dropdown ── */
#exercise-input-wrap {
  position: relative;
}

#dropdown-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface-elevated);
  border-radius: 12px;
  overflow: hidden;
  z-index: 300;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}

#dropdown-list.open {
  display: block;
}

.dropdown-item {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: var(--surface-high);
}

.dropdown-item.add-new {
  color: var(--primary);
  font-weight: 600;
}

.dropdown-empty {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Toast ── */
#toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  text-align: center;
}

#toast.show {
  opacity: 1;
}

/* ── Loading overlay ── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#loading-overlay.visible {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface-high);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Number input — hide arrows ── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ── Scrollbar styling (subtle) ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-high);
  border-radius: 100px;
}

/* ── Focus visible (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Prevent body scroll when modal open ── */
body.modal-open {
  overflow: hidden;
}

/* ── Authentication ── */
.auth-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.auth-brand {
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: var(--bg);
  font: 700 30px/1 var(--font-display);
  box-shadow: 0 12px 32px rgba(0, 207, 170, 0.24);
}

.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.auth-kicker {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.auth-card h1 {
  font: 600 30px/1.15 var(--font-display);
  letter-spacing: -.7px;
}

.auth-copy {
  margin: 10px 0 24px;
  color: #9aa7b8;
  font-size: 14px;
  line-height: 1.55;
}

.auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--surface-elevated);
  border-radius: 11px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 207, 170, .12);
}

.auth-primary,
.auth-secondary,
.account-action {
  width: 100%;
  min-height: 50px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}

.auth-primary {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: var(--bg);
}

.auth-primary:disabled,
.auth-secondary:disabled { opacity: .5; cursor: not-allowed; }

.auth-secondary {
  margin-top: 10px;
  color: var(--primary);
}

.auth-secondary:hover { background: rgba(0, 207, 170, .08); }
.turnstile-wrap { min-height: 12px; margin-top: 14px; }
.auth-message { min-height: 20px; margin-top: 14px; color: #aeb9c7; font-size: 13px; line-height: 1.45; }
.auth-message.error { color: #ff8794; }
.code-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--surface-high); }
.code-input { text-align: center; font: 600 24px var(--font-display); letter-spacing: .35em; }
.auth-state-card { text-align: center; }
.auth-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(0, 207, 170, .12);
  color: var(--primary);
}
.auth-state-card .auth-kicker { margin-bottom: 10px; }
.auth-state-card .auth-copy { margin-bottom: 14px; }
.auth-state-card .auth-copy strong { color: var(--text); overflow-wrap: anywhere; }
.auth-hint { margin-bottom: 24px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.auth-secondary-bordered { border: 1px solid var(--surface-elevated); }

/* ── Account and invitation sheets ── */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.account-sheet {
  width: 100%;
  max-width: 480px;
  padding: 12px 24px max(32px, calc(20px + env(safe-area-inset-bottom)));
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.sheet-overlay.open .account-sheet { transform: translateY(0); }
.account-identity { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; color: #b6c0cd; }
.role-badge { padding: 5px 9px; border-radius: 999px; background: rgba(0, 207, 170, .12); color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.account-action { margin-top: 10px; background: var(--surface-high); }
.account-action.danger { color: #ff8794; }
.menu-sheet { padding-bottom: max(34px, calc(22px + env(safe-area-inset-bottom))); }
.menu-action {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
}
.menu-action:hover { background: var(--surface-high); }
.history-sheet { max-height: 92dvh; overflow-y: auto; }
.sheet-kicker { margin-bottom: 4px; color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.history-controls {
  position: sticky;
  top: -1px;
  z-index: 2;
  margin: 18px -4px 0;
  padding: 8px 4px 12px;
  background: var(--surface);
}
.history-toggle { width: 100%; }
.history-toggle .period-btn { flex: 1; }
.history-range { margin-top: 10px; color: var(--text-muted); text-align: center; font-size: 11px; font-weight: 600; }
.history-list { margin-top: 10px; padding-bottom: 4px; }
.history-summary-card {
  margin-bottom: 12px;
  padding: 17px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--bg);
}
.history-summary-card.current { border-color: rgba(0, 207, 170, .3); }
.history-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-summary-heading h4 { color: var(--text); font: 600 15px/1.3 var(--font-display); }
.history-current-badge { padding: 4px 7px; border-radius: 999px; background: rgba(0, 207, 170, .12); color: var(--primary); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.history-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.history-metrics div { min-width: 0; }
.history-metrics span { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.history-metrics strong { display: block; overflow-wrap: anywhere; color: var(--text); font: 600 16px/1.25 var(--font-display); }
.history-metrics small { color: var(--text-muted); font: 600 10px var(--font-body); text-transform: uppercase; }
.history-trends { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.history-trends span { padding: 5px 7px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.history-trends .up { background: rgba(0, 207, 170, .12); color: var(--primary); }
.history-trends .down { background: rgba(255, 255, 255, .05); color: #9aa7b8; }
.history-trends .neutral { background: var(--surface-high); color: var(--text-muted); }
.history-load-more { margin: 14px 0 8px; }
.history-day {
  margin: 22px 2px 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.history-day:first-child { margin-top: 0; }
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
}
.history-name { color: var(--text); font-size: 14px; font-weight: 700; }
.history-details { margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.history-time { flex-shrink: 0; color: #9aa7b8; font-size: 12px; }
.admin-sheet { max-height: 88dvh; overflow-y: auto; }
.admin-heading { display: flex; justify-content: space-between; align-items: start; }
.close-text-btn { color: var(--primary); font-weight: 700; padding: 5px; }
.invite-form { display: grid; grid-template-columns: 1fr 110px; gap: 10px; margin-bottom: 24px; }
.invite-form .auth-primary { grid-column: 1 / -1; margin-top: 0; }
.invite-role { appearance: none; }
.invitation-list { display: flex; flex-direction: column; gap: 10px; }
.invitation-row { padding: 14px; border-radius: 12px; background: var(--bg); }
.invitation-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.invitation-meta { margin-top: 5px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; }
.invitation-actions { display: flex; gap: 8px; margin-top: 10px; }
.invitation-actions button { padding: 7px 10px; border-radius: 8px; background: var(--surface-high); color: var(--primary); font-size: 12px; font-weight: 700; }
.invitation-actions .revoke-btn { color: #ff8794; }

[hidden] { display: none !important; }
