:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #657168;
  --line: #d8dfd5;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --forest: #214c3f;
  --mint: #b8f4d4;
  --coral: #ef725f;
  --gold: #f2b84b;
  --teal: #2f9b9a;
  --shadow: 0 24px 60px rgba(23, 33, 27, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(239, 114, 95, 0.18), transparent 25rem),
    linear-gradient(135deg, #e7f0e7 0%, #f5e7d5 48%, #dfecea 100%);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 24px;
}

button {
  border: 0;
  font: inherit;
}

.phone-shell {
  width: min(100%, 420px);
  max-width: 100vw;
}

.app-screen {
  position: relative;
  width: 100%;
  min-height: 820px;
  max-height: 900px;
  overflow: hidden;
  border: 10px solid #101612;
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 20px 18px 28px;
}

.topbar,
.section-heading,
.ride-stats,
.quick-actions,
.metric-row,
.member-row,
.event-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 14px;
}

.topbar > div:not(.menu-wrap):not(.top-actions) {
  min-width: 0;
}

.menu-wrap {
  position: relative;
  z-index: 5;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 23px;
  line-height: 1.05;
}

h2 {
  max-width: 250px;
  font-size: 30px;
  line-height: 1;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 15px;
  line-height: 1.2;
}

.icon-button,
.avatar-button,
.user-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: var(--panel);
  color: var(--forest);
  box-shadow: 0 8px 24px rgba(33, 76, 63, 0.12);
}

.user-avatar {
  border-radius: 50%;
  border: 0;
  overflow: hidden;
  padding: 0;
  background: var(--coral);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.user-avatar img,
.user-avatar svg,
.member-avatar img,
.picture-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button svg,
.menu-item svg,
.action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu {
  position: absolute;
  top: 54px;
  left: 0;
  width: 190px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid rgba(216, 223, 213, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(33, 76, 63, 0.2);
  backdrop-filter: blur(12px);
}

.app-menu[hidden] {
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.menu-item[hidden] {
  display: none;
}

.menu-group[hidden] {
  display: none;
}

.menu-group {
  display: grid;
  gap: 2px;
}

.menu-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.menu-group-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.menu-group-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.menu-group-items[hidden] {
  display: none;
}

.menu-subitem {
  padding-left: 22px;
  min-height: 38px;
}

.menu-item.primary {
  background: var(--forest);
  color: white;
}

.menu-item.inactive {
  color: #9aa39c;
  cursor: not-allowed;
  opacity: 0.58;
}

button.inactive {
  cursor: not-allowed;
  opacity: 0.58;
}

.menu-user {
  min-width: 0;
  margin: 2px 2px 8px;
  padding: 10px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.menu-user strong {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-card {
  padding: 16px;
  border: 1px solid rgba(216, 223, 213, 0.86);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(33, 76, 63, 0.08);
}

#auth-panel,
#join-panel,
#reset-panel,
#verify-panel,
#profile-panel,
#app-about-panel,
#event-panel,
#contact-panel,
#routes-panel,
#about-panel,
#about-admin-panel,
#admin-panel,
#sponsor-admin-panel,
#rules-panel,
#rules-admin-panel,
#sponsors-panel,
#crew-panel {
  max-height: calc(100vh - 182px);
  overflow-y: auto;
  padding: 18px 0 118px;
  scrollbar-color: var(--forest) transparent;
}

#event-panel {
  max-height: calc(100vh - 284px);
  margin: 18px 0 78px;
  padding-top: 0;
  padding-bottom: 18px;
}

.auth-heading {
  align-items: flex-start;
  margin-top: 0;
}

.auth-heading p,
.join-prompt p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

#profile-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding: 24px 0 18px;
}

.profile-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 0 0;
  scrollbar-color: var(--forest) transparent;
}

#profile-back {
  flex: 0 0 auto;
  margin-top: 0;
}

#route-event-title:empty {
  display: none;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.login-form input,
.login-form select,
.login-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
}

.login-form input,
.login-form select {
  height: 48px;
  padding: 0 12px;
}

.login-form textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  line-height: 1.35;
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(184, 244, 212, 0.7);
}

.login-form input.invalid,
.login-form select.invalid,
.login-form textarea.invalid {
  border-color: var(--coral);
}

.login-form small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.login-form input[hidden] {
  display: none;
}

.captcha-field {
  display: grid;
  min-height: 65px;
  align-items: center;
  justify-items: center;
}

.phone-verification {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f2;
}

.phone-verification-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.phone-verification-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.phone-verification-status.verified {
  color: var(--forest);
}

.ride-leader-options {
  display: grid;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  box-shadow: 0 10px 22px rgba(33, 76, 63, 0.1);
}

.ride-leader-options[hidden] {
  display: none;
}

.ride-leader-options button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid rgba(216, 223, 213, 0.8);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  padding: 8px 10px;
}

.ride-leader-options button:last-child {
  border-bottom: 0;
}

.ride-leader-options button:active {
  background: #eef7f1;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--forest);
  transform: translateY(-50%);
}

.password-toggle::before {
  content: "";
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-toggle.visible::before {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 3l18 18M10.6 10.6A3 3 0 0 0 14 14M9.9 4.4A10 10 0 0 1 12 4c6.5 0 10 8 10 8a18.4 18.4 0 0 1-3.2 4.4M6.1 6.1C3.4 8 2 12 2 12s3.5 8 10 8a9.7 9.7 0 0 0 4.1-.9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.member-options {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.member-options legend {
  padding: 0 4px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.member-options label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.member-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.recurrence-options {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.recurrence-options[hidden] {
  display: none;
}

.recurrence-options legend {
  padding: 0 4px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.recurrence-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.recurrence-weekdays[hidden],
.recurrence-detail[hidden] {
  display: none;
}

.recurrence-weekdays > span {
  flex: 0 0 100%;
}

.recurrence-weekdays label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.recurrence-weekdays input {
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
}

.event-scope-options {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.event-scope-options[hidden] {
  display: none;
}

.event-scope-options legend {
  padding: 0 4px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.event-scope-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.event-scope-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
}

.picture-field {
  align-items: start;
}

.picture-field input {
  height: auto;
  padding: 10px 12px;
}

.picture-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: #eef5ef;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.rules-list {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 16px 0;
}

#about-panel.active,
#app-about-panel.active,
#contact-panel.active,
#join-panel.active,
#about-admin-panel.active,
#rules-panel.active,
#rules-admin-panel.active,
#routes-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

#about-panel .rules-list,
#app-about-panel .app-about-card,
#rules-panel .rules-list {
  flex: 1;
  min-height: 0;
}

#about-panel .rules-list,
#rules-panel .rules-list {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--forest) transparent;
}

#contact-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.contact-message-field {
  flex: 1;
  grid-template-rows: auto minmax(160px, 1fr);
  min-height: 0;
}

.contact-message-field textarea {
  min-height: 160px;
  resize: none;
}

.about-admin-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 4px 18px 0;
  scrollbar-color: var(--forest) transparent;
}

#join-panel .about-admin-scroll {
  padding-top: 4px;
}

.about-admin-form {
  margin-top: 0;
}

.about-admin-list {
  display: grid;
  gap: 12px;
}

.about-admin-row {
  display: grid;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}

.about-admin-row:last-child {
  border-bottom: 0;
}

.about-admin-actions-divider {
  height: 1px;
  margin: 8px 0 4px;
  background: var(--line);
}

.rules-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rules-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rules-list h4 {
  font-weight: 900;
}

.rules-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rules-list a {
  color: var(--forest);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
}

.admin-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-section h4 {
  color: var(--forest);
  font-weight: 900;
}

.admin-image-list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--forest) transparent;
}

#admin-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

#event-summary-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

#admin-panel .admin-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

#admin-panel .admin-image-list {
  flex: 1;
  min-height: 0;
  align-content: start;
}

.event-summary-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 4px 96px 0;
  scrollbar-color: var(--forest) transparent;
}

.event-summary-table-wrap {
  min-width: 680px;
}

.event-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  color: var(--ink);
  font-size: 11px;
}

.event-summary-table th {
  padding: 0 8px 2px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.event-summary-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  vertical-align: top;
  line-height: 1.35;
}

.event-summary-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  white-space: nowrap;
}

.event-summary-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.event-summary-table span {
  color: var(--muted);
}

.summary-status {
  display: inline-block;
  min-width: 68px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.summary-status.upcoming {
  background: #e5f7ed;
  color: var(--forest);
}

.summary-status.past {
  background: #eef0ec;
  color: #657168;
}

.summary-status.canceled {
  background: #fff0ed;
  color: #a23b2d;
}

#event-summary-back {
  flex: 0 0 auto;
  margin-top: 12px;
}

.admin-image-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  overflow: hidden;
}

.admin-image-row img {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-image-row span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-row button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.admin-image-row button:disabled {
  background: #eef1ea;
  color: #8d978f;
}

#admin-back {
  margin-top: 12px;
  flex: 0 0 auto;
}

#sponsor-admin-panel.active,
#sponsors-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

.sponsor-form {
  flex: 0 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sponsor-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sponsor-image-preview {
  overflow: hidden;
  border: 1px solid rgba(216, 223, 213, 0.8);
  border-radius: 8px;
  background: #f7faf5;
}

.sponsor-image-preview img {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: cover;
}

.sponsor-admin-scroll {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 4px 18px 0;
  scrollbar-color: var(--forest) transparent;
}

.sponsor-admin-list {
  display: grid;
  gap: 10px;
}

.sponsor-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--forest) transparent;
}

.sponsor-admin-row,
.sponsor-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(216, 223, 213, 0.8);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(33, 76, 63, 0.08);
}

.sponsor-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 166px;
  overflow: hidden;
}

.sponsor-admin-details {
  min-width: 0;
}

.sponsor-admin-row h4,
.sponsor-row h4 {
  color: var(--ink);
  font-weight: 900;
}

.sponsor-admin-row p,
.sponsor-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sponsor-admin-row p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-admin-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  width: 78px;
}

.sponsor-admin-actions button {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.sponsor-admin-actions button[data-delete-sponsor-id] {
  background: #fff0ed;
  color: #9a3024;
}

.sponsor-row {
  display: grid;
  gap: 2px;
}

.sponsor-row a {
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#sponsors-back {
  margin-top: 12px;
  flex: 0 0 auto;
}

#sponsor-admin-back {
  margin-top: 0;
}

.password-rules {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.form-message {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.form-message.active {
  display: block;
}

.form-message.error {
  background: #fff0ed;
  color: #9a3024;
}

.form-message.success {
  background: #e5f7ed;
  color: var(--forest);
}

.app-toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 86px;
  z-index: 8;
  padding: 12px 14px;
  border-radius: 8px;
  background: #173c33;
  color: #fff;
  box-shadow: 0 14px 30px rgb(23 60 51 / 24%);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.app-toast[hidden] {
  display: none;
}

.app-toast.error {
  background: #9a3024;
}

.text-button {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.submit-button,
.cancel-button,
.danger-button,
.secondary-button,
.join-prompt button {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.submit-button {
  margin-top: 4px;
  background: var(--forest);
  color: white;
}

.cancel-button {
  border: 1px solid #b65a1d;
  background: #fff6e8;
  color: #9b4618;
}

.cancel-button[hidden] {
  display: none;
}

.danger-button {
  border: 1px solid #9a3024;
  background: #fff0ed;
  color: #9a3024;
}

.danger-button[hidden] {
  display: none;
}

.secondary-button {
  border: 1px solid var(--forest);
  background: #eef5ef;
  color: var(--forest);
}

.submit-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.join-prompt {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.join-prompt button {
  border: 1px solid var(--forest);
  background: #eef5ef;
  color: var(--forest);
}

.auth-divider {
  height: 1px;
  margin: 16px 0 12px;
  background: var(--line);
}

.login-now {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.avatar-button {
  background: var(--forest);
  color: white;
  font-weight: 900;
}

.user-avatar {
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: var(--coral);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.hero-ride {
  position: relative;
  height: 238px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 8px;
  background: #193c35;
  color: white;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ride-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #7ccbc2 0%, #f3c16d 48%, #235344 49%, #172b25 100%);
}

.sun {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffe18a;
  box-shadow: 0 0 42px rgba(255, 225, 138, 0.72);
}

.ridge {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 58px;
  height: 112px;
  clip-path: polygon(0 78%, 15% 52%, 30% 72%, 45% 36%, 63% 66%, 78% 30%, 100% 70%, 100% 100%, 0 100%);
}

.ridge-back {
  background: #4f8a79;
  opacity: 0.88;
}

.ridge-front {
  bottom: 22px;
  background: #1d463b;
  transform: scaleX(1.1);
}

.road {
  position: absolute;
  left: 50%;
  bottom: -90px;
  width: 180px;
  height: 230px;
  background: linear-gradient(90deg, #13241f, #2b3935 48%, #13241f);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.route-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 118px;
  background: repeating-linear-gradient(180deg, white 0 16px, transparent 16px 29px);
  opacity: 0.72;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 20, 17, 0.12) 42%, rgba(12, 20, 17, 0.7) 100%);
}

.status-chip {
  align-self: flex-start;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ride-stats {
  gap: 8px;
  flex-wrap: wrap;
}

.ride-stats span,
.metric-row span {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.ride-stats strong {
  font-size: 16px;
}

.quick-actions {
  gap: 10px;
  margin: 0;
}

.action {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 48px;
  flex: 1;
  border-radius: 8px;
  background: var(--panel);
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(33, 76, 63, 0.08);
}

.action.active {
  background: var(--forest);
  color: white;
}

.panel {
  display: none;
  animation: rise 180ms ease-out;
}

.panel.active {
  display: block;
}

.app-screen.auth-mode .hero-ride,
.app-screen.auth-mode .quick-actions {
  display: none;
}

.section-heading {
  justify-content: space-between;
  margin: 18px 0 10px;
}

.section-heading button {
  color: var(--forest);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.events-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.events-title-row select {
  width: 104px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--forest);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0 8px;
}

.calendar-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--forest);
  padding: 0;
}

.calendar-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.calendar-year-select {
  flex: 0 0 auto;
  width: 116px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--forest);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0 8px;
}

.members-heading {
  align-items: flex-start;
  gap: 10px;
}

.member-filters {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.member-filters input[type="search"] {
  width: auto;
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 0 9px;
}

.member-role-filters {
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
}

.member-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.event-row,
.member-row,
.route-card {
  background: var(--panel);
  border: 1px solid rgba(216, 223, 213, 0.8);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(33, 76, 63, 0.08);
}

.member-row[data-edit-member-email] {
  cursor: pointer;
}

.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 82px;
  margin-bottom: 10px;
  padding: 12px;
}

.event-row.canceled {
  overflow: hidden;
}

.event-row.shared-event {
  outline: 3px solid #d9a441;
  outline-offset: 3px;
}

.canceled-stamp {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 3;
  padding: 6px 18px;
  border: 4px solid rgba(154, 48, 36, 0.82);
  border-radius: 8px;
  color: rgba(154, 48, 36, 0.88);
  font-size: clamp(24px, 8vw, 42px);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-13deg);
  pointer-events: none;
}

.event-details {
  min-width: 0;
  padding-right: 34px;
}

.event-details .map-link {
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.event-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.event-status {
  display: grid;
  gap: 7px;
  justify-items: start;
  min-width: 0;
}

.event-status-group {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
}

.going-count {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rsvp-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 4px;
  max-width: 100%;
}

.rsvp-toggle button {
  min-height: 30px;
  padding: 0 7px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.rsvp-toggle button.active {
  background: var(--forest);
  color: white;
}

.rsvp-toggle button:disabled {
  background: #eef1ea;
  color: #8d978f;
}

.completed-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.completed-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--forest);
}

.completed-toggle.disabled {
  color: #8d978f;
  background: #eef1ea;
}

.event-card-actions {
  display: flex;
  align-self: end;
  justify-self: end;
  gap: 6px;
}

.event-route,
.event-edit {
  align-self: end;
  justify-self: end;
  min-height: 30px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.event-share,
.event-copy-details {
  position: absolute;
  right: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(33, 76, 63, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  box-shadow: 0 8px 18px rgb(33 76 63 / 12%);
}

.event-share {
  top: 8px;
}

.event-copy-details {
  top: 44px;
}

.event-share svg,
.event-copy-details svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-share-menu {
  position: absolute;
  top: 44px;
  right: 8px;
  z-index: 6;
  display: grid;
  min-width: 148px;
  overflow: hidden;
  border: 1px solid rgba(33, 76, 63, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgb(33 76 63 / 20%);
}

.event-share-menu[hidden] {
  display: none;
}

.event-share-menu button {
  padding: 10px 12px;
  background: #fff;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.event-share-menu button + button {
  border-top: 1px solid rgba(33, 76, 63, 0.12);
}

.event-edit {
  border: 1px solid var(--forest);
  background: #eef5ef;
  color: var(--forest);
}

.event-edit:disabled {
  border-color: #d8dfd5;
  background: #eef1ea;
  color: #8d978f;
}

.event-route:disabled {
  background: #d8dfd5;
  color: #6f7a72;
}

.route-links {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

#routes-panel .route-links {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--forest) transparent;
}

#route-back {
  margin-top: 12px;
  flex: 0 0 auto;
}

#about-back,
#app-about-back,
#rules-back {
  margin-top: 12px;
  flex: 0 0 auto;
}

.app-about-card {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(33, 76, 63, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 14%, rgba(242, 184, 75, 0.72), transparent 7rem),
    radial-gradient(circle at 8% 24%, rgba(47, 155, 154, 0.44), transparent 9rem),
    linear-gradient(145deg, #112f2b 0%, #1f5a4a 58%, #17362f 100%);
  box-shadow: 0 20px 48px rgba(23, 33, 27, 0.24);
  padding: 22px;
}

.app-about-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  border: 18px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.studio-mark {
  position: relative;
  z-index: 1;
  display: block;
}

.paceline-logo {
  display: block;
  width: min(100%, 264px);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.app-about-copy,
.app-meta-grid,
.app-copyright {
  position: relative;
  z-index: 1;
}

.app-about-copy {
  max-width: 300px;
}

.app-about-copy .eyebrow {
  color: #f2b84b;
  margin-bottom: 6px;
}

.app-about-copy h4 {
  margin: 0 0 8px;
  color: white;
  font-size: 23px;
  line-height: 1.04;
}

.app-about-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
}

.app-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-meta-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
}

.app-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.app-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.app-copyright {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  padding: 10px;
}

.route-token-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.route-token-form label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.route-token-form input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.route-link {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--forest);
}

.route-link-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.route-link-header span {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.route-link a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  text-decoration: none;
}

.route-link a span {
  font-size: 12px;
  font-weight: 900;
}

.route-link strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.route-link .route-link-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.route-link > em {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.event-list {
  display: grid;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
  scrollbar-color: var(--forest) transparent;
}

#calendar-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

#event-info-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

.calendar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 4px 96px 0;
  scrollbar-color: var(--forest) transparent;
}

.event-info-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 4px 96px 0;
  scrollbar-color: var(--forest) transparent;
}

.event-info-list {
  max-height: none;
}

.event-info-list .event-row {
  margin-bottom: 0;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.upcoming {
  background: var(--forest);
}

.legend-dot.past {
  background: #9ba79f;
}

.legend-dot.canceled {
  background: var(--coral);
}

.calendar-list {
  display: grid;
  gap: 12px;
}

.calendar-month {
  background: var(--panel);
  border: 1px solid rgba(216, 223, 213, 0.8);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(33, 76, 63, 0.08);
}

.calendar-month h4 {
  color: var(--forest);
  font-size: 15px;
  font-weight: 900;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(54px, auto);
  gap: 4px;
}

.calendar-weekdays {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  min-height: 54px;
  min-width: 0;
  border: 1px solid rgba(216, 223, 213, 0.75);
  border-radius: 7px;
  background: #fbfcf8;
  padding: 4px;
  overflow: hidden;
}

.calendar-day.empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day > span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.calendar-event {
  display: block;
  width: 100%;
  min-height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  padding: 3px 4px;
  overflow: hidden;
  color: white;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.upcoming {
  background: var(--forest);
}

.calendar-event.past {
  background: #9ba79f;
  color: #f9fbf8;
}

.calendar-event.canceled {
  background: #fff0ed;
  border: 1px solid rgba(239, 114, 95, 0.75);
  color: #a23b2d;
  text-decoration: line-through;
}

#calendar-back {
  flex: 0 0 auto;
  margin-top: 12px;
}

#event-info-back {
  flex: 0 0 auto;
  margin-top: 12px;
}

.event-row p,
.member-row p,
.route-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.member-row a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.member-details,
.member-details h4,
.member-details p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-email-line {
  min-width: 0;
}

.member-email {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  flex: 0 0 52px;
  border-radius: 8px;
  background: #e5f7ed;
  color: var(--forest);
}

.date-badge.alt {
  background: #fff2ce;
}

.date-badge span {
  font-size: 10px;
  font-weight: 900;
}

.date-badge strong {
  font-size: 22px;
  line-height: 1;
}

.route-card {
  padding: 12px;
}

.route-map {
  height: 154px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 33, 27, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 33, 27, 0.05) 1px, transparent 1px),
    #eaf1e8;
  background-size: 24px 24px;
}

.route-map svg {
  width: 100%;
  height: 100%;
}

.map-street {
  fill: none;
  stroke: #c6d0c4;
  stroke-width: 18;
  stroke-linecap: round;
}

.map-route {
  fill: none;
  stroke: var(--coral);
  stroke-width: 7;
  stroke-linecap: round;
}

.route-map circle {
  fill: var(--forest);
  stroke: white;
  stroke-width: 3;
}

.route-card h4 {
  margin-top: 12px;
  font-size: 17px;
}

.route-card p {
  margin: 6px 0 12px;
}

.metric-row {
  gap: 8px;
}

.metric-row span {
  background: #eef5ef;
  color: var(--forest);
  font-weight: 900;
}

.member-list {
  display: grid;
  grid-auto-rows: 86px;
  gap: 10px;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
  scrollbar-color: var(--forest) transparent;
}

.member-list:has(.empty-members) {
  grid-auto-rows: auto;
}

#crew-panel.active {
  display: flex;
  flex-direction: column;
  height: min(718px, calc(100vh - 182px));
  overflow: hidden;
  padding-bottom: 18px;
}

#crew-panel .member-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}

#members-back {
  margin-top: 12px;
  flex: 0 0 auto;
}

.member-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
  height: 86px;
  padding: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.member-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.empty-members {
  min-height: 120px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.empty-members p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
}

.member-avatar.teal {
  background: var(--teal);
}

.member-avatar.gold {
  background: var(--gold);
  color: #3d2a08;
}

.member-avatar.coral {
  background: var(--coral);
}

.member-row strong {
  justify-self: end;
  color: var(--forest);
  white-space: nowrap;
}

.member-role-controls {
  display: grid;
  gap: 5px;
  justify-self: end;
  width: 84px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.member-role-controls label {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  justify-items: start;
  gap: 6px;
  min-height: 18px;
  white-space: nowrap;
}

.member-role-controls input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--forest);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 460px) {
  body {
    padding: 0;
    background: var(--paper);
  }

  .phone-shell {
    width: 100%;
  }

  .app-screen {
    min-height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .event-list {
    max-height: calc(100vh - 406px);
  }
}
