.phase-two-page {
  --phase-red: #d9192e;
  --phase-red-dark: #8d1020;
  --phase-ink: #080808;
  --phase-panel: #111;
  --phase-panel-2: #171717;
  --phase-line: #303030;
  --phase-muted: #aaa;
  min-height: 70vh;
  color: #f5f5f5;
  background:
    radial-gradient(circle at 85% 0, rgba(217, 25, 46, .1), transparent 28rem),
    #080808;
}

.phase-two-page *,
.phase-two-page *::before,
.phase-two-page *::after {
  box-sizing: border-box;
}

.phase-two-page a {
  color: inherit;
}

.phase-two-page [hidden] {
  display: none !important;
}

.phase-two-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(44px, 7vw, 92px) max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--phase-line);
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .98) 0%, rgba(8, 8, 8, .88) 58%, rgba(82, 7, 17, .55) 100%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, .02) 18px 19px);
}

.phase-two-hero > div {
  max-width: 860px;
}

.phase-two-hero span,
.phase-section-heading span,
.phase-roster header span,
.calendar-subscriptions > span {
  display: block;
  margin-bottom: 10px;
  color: #ff5265;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.phase-two-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.phase-two-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #c0c0c0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.phase-two-hero nav {
  display: grid;
  gap: 9px;
  min-width: 180px;
}

.phase-two-hero nav a {
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.phase-two-hero nav a:hover,
.phase-two-hero nav a:focus-visible {
  border-color: var(--phase-red);
  background: rgba(217, 25, 46, .12);
}

.phase-two-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) 0 80px;
}

.phase-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--phase-line);
  border-top: 3px solid var(--phase-red);
  background: #121212;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .3);
}

.phase-search label,
.phase-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.phase-search input,
.phase-search select,
.phase-form input,
.phase-form select,
.phase-form textarea,
.attendance-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #383838;
  border-radius: 2px;
  outline: 0;
  background: #080808;
  color: #fff;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  letter-spacing: normal;
}

.phase-search input:focus,
.phase-search select:focus,
.phase-form input:focus,
.phase-form select:focus,
.phase-form textarea:focus,
.attendance-form select:focus {
  border-color: var(--phase-red);
  box-shadow: 0 0 0 3px rgba(217, 25, 46, .14);
}

.phase-form textarea {
  min-height: 92px;
  resize: vertical;
}

.phase-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #464646;
  border-radius: 2px;
  background: #151515;
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.phase-button:hover,
.phase-button:focus-visible {
  border-color: #777;
  background: #222;
}

.phase-button.primary {
  border-color: #ec263d;
  background: var(--phase-red);
}

.phase-button.primary:hover,
.phase-button.primary:focus-visible {
  background: #ef2b42;
}

.phase-button.danger {
  border-color: #b5162a;
  background: #6e0c18;
}

.phase-button.subtle {
  background: #0c0c0c;
}

.phase-button.text {
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 5px 8px;
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.phase-button[disabled],
.phase-form.is-submitting .phase-button {
  cursor: wait;
  opacity: .55;
}

.phase-create-panel {
  margin-top: 20px;
  border: 1px solid var(--phase-line);
  background: #101010;
}

.phase-create-panel > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
}

.phase-create-panel > summary::-webkit-details-marker {
  display: none;
}

.phase-create-panel > summary > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #5a1720;
  background: #27070c;
  color: #ff5265;
  font-size: 24px;
  line-height: 1;
}

.phase-create-panel > summary div {
  display: grid;
  gap: 3px;
}

.phase-create-panel > summary strong {
  font-size: 17px;
  text-transform: uppercase;
}

.phase-create-panel > summary small {
  color: var(--phase-muted);
  font-size: 13px;
}

.phase-create-panel[open] > summary {
  border-bottom: 1px solid var(--phase-line);
}

.phase-create-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.phase-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.phase-form .rich-editor {
  border-color: #343434;
  background: #080808;
}

.phase-form .rich-editable {
  min-height: 130px;
  background: #080808 !important;
  color: #fff !important;
}

.phase-form .rich-toolbar {
  max-width: 100%;
  background: #101010;
}

.phase-form-status {
  min-height: 18px;
  margin: 0;
  color: #b7b7b7;
  font-size: 13px;
}

.phase-form-status.error {
  color: #ff6575;
}

.phase-form-status.success {
  color: #71d697;
}

.phase-auth-callout {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #38242a;
  background: linear-gradient(90deg,#151010,#111);
}

.phase-auth-callout strong {
  font-size: 17px;
  text-transform: uppercase;
}

.phase-auth-callout p {
  flex: 1;
  margin: 0;
  color: var(--phase-muted);
  line-height: 1.5;
}

.phase-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 50px 0 18px;
}

.phase-section-heading h2,
.phase-roster h2,
.calendar-subscriptions h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  text-transform: uppercase;
}

.phase-section-heading > b {
  color: #8e8e8e;
  font-size: 13px;
  text-transform: uppercase;
}

.phase-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phase-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #323232;
  border-radius: 3px;
  background: #121212;
  color: #eee;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.phase-card:hover,
.phase-card:focus-visible {
  border-color: #8b1a29;
  outline: 0;
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0,0,0,.44);
}

.phase-card-cover {
  position: relative;
  min-height: 165px;
  overflow: hidden;
  border-bottom: 1px solid #3d141b;
  background:
    linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.88)),
    linear-gradient(135deg,#7f1321,#28080d);
}

.phase-card-cover::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.82));
  content: "";
}

.phase-card-cover-image {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.phase-card-cover > span {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.82);
  padding: 7px 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 22px 20px 18px;
}

.phase-card-body small {
  overflow: hidden;
  color: #ff4e62;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 8px;
  font-size: 25px;
  line-height: 1.08;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.phase-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #b7b7b7;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.phase-card-meta {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 20px;
  color: #969696;
  font-size: 12px;
}

.phase-card footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  border-top: 1px solid #2d2d2d;
  padding: 12px 18px;
  color: #aaa;
  font-size: 11px;
  text-transform: uppercase;
}

.phase-card footer b {
  color: #fff;
  font-size: 15px;
}

.event-card {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  grid-template-rows: 1fr auto;
  min-height: 330px;
}

.event-card .phase-card-date {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3px;
  padding: 25px 8px;
  border-right: 1px solid #392127;
  background: linear-gradient(180deg,#8d1020,#3d080f);
}

.event-card .phase-card-date strong {
  font-size: 34px;
  line-height: 1;
}

.event-card .phase-card-date span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.event-card footer {
  grid-column: 1 / -1;
}

.phase-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5a5a5a;
  border-radius: 999px;
  background: #111;
  color: #ddd;
  padding: 4px 8px;
  font-size: 9px !important;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-card-cover > .phase-state {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  max-width: none;
}

.state-joined,
.state-going,
.state-host,
.state-attended {
  border-color: #347a51;
  background: #10271a;
  color: #8be4a9;
}

.state-waitlisted,
.state-requested,
.state-invited,
.state-maybe {
  border-color: #8a681c;
  background: #2d2108;
  color: #f1c75a;
}

.phase-empty {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  border: 1px dashed #383838;
  background: #101010;
  padding: 28px;
}

.phase-empty > img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3f0b13;
  object-fit: contain;
  padding: 5px;
}

.phase-empty strong {
  font-size: 18px;
  text-transform: uppercase;
}

.phase-empty p,
.phase-empty-inline,
.phase-more-note {
  margin: 5px 0 0;
  color: #999;
  line-height: 1.55;
}

.phase-detail-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid #3c161c;
  background:
    linear-gradient(135deg,#5e0d19,#111);
}

.phase-detail-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg,#080808 0%,rgba(8,8,8,.91) 48%,rgba(8,8,8,.55) 100%);
  content: "";
}

.phase-detail-cover-image {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.phase-detail-hero > div {
  position: relative;
  z-index: 2;
  width: min(1240px,calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.phase-detail-hero > div > a {
  display: inline-block;
  margin-bottom: 34px;
  color: #bbb;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.phase-detail-hero > div > span {
  display: block;
  margin-bottom: 10px;
  color: #ff5367;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.phase-detail-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px,7vw,84px);
  line-height: .92;
  text-transform: uppercase;
}

.phase-detail-hero h1 + p {
  margin: 18px 0;
  color: #c2c2c2;
  font-size: 16px;
}

.phase-host-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phase-host-line > small {
  color: #888;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.phase-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 22px;
}

.phase-main-card,
.phase-roster,
.calendar-subscriptions {
  border: 1px solid var(--phase-line);
  background: #111;
}

.phase-main-card {
  --phase-card-inset: clamp(20px, 4vw, 36px);
  min-width: 0;
  padding: var(--phase-card-inset);
}

.phase-stat-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin:
    calc(0px - var(--phase-card-inset))
    calc(0px - var(--phase-card-inset))
    28px;
  border-bottom: 1px solid #303030;
  background: #0b0b0b;
}

.phase-stat-strip span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  padding: 16px 22px;
  border-right: 1px solid #303030;
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
}

.phase-stat-strip span:last-child {
  border-right: 0;
}

.phase-stat-strip b {
  color: #fff;
  font-size: 25px;
}

.phase-detail-meta {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.phase-detail-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #2b2b2b;
  background: #0b0b0b;
  padding: 14px;
  color: #8c8c8c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.phase-detail-meta strong {
  overflow-wrap: anywhere;
  color: #eee;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.phase-description {
  margin: 28px 0;
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.72;
}

.phase-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
}

.phase-rsvp-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-rsvp-bar label {
  display: grid;
  flex: 1 0 100%;
  gap: 7px;
  color: #ccc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.phase-rsvp-bar textarea {
  min-height: 76px;
  border: 1px solid #383838;
  border-radius: 2px;
  outline: 0;
  background: #080808;
  color: #fff;
  padding: 11px 12px;
  resize: vertical;
}

.phase-rsvp-bar textarea:focus {
  border-color: var(--phase-red);
  box-shadow: 0 0 0 3px rgba(217, 25, 46, .14);
}

.phase-rsvp-bar .phase-form-status {
  flex-basis: 100%;
}

.phase-member-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left: 3px solid var(--phase-red);
  background: #0b0b0b;
  padding: 14px 16px;
}

.phase-manage-panel {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #393939;
  background: #0b0b0b;
}

.phase-manage-panel > summary {
  padding: 14px 16px;
  color: #eee;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.phase-manage-panel > div {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  border-top: 1px solid #333;
  padding: 18px;
}

.phase-review-controls {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.phase-form {
  display: grid;
  gap: 12px;
}

.phase-roster {
  align-self: start;
  min-width: 0;
  overflow: hidden;
}

.phase-roster header {
  border-bottom: 1px solid #303030;
  padding: 20px;
  background: linear-gradient(135deg,#191111,#111);
}

.phase-roster h2 {
  font-size: 26px;
}

.phase-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 16px;
  border-bottom: 1px solid #292929;
}

.phase-person > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #5a0e19;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.phase-person > div {
  min-width: 0;
  flex: 1;
}

.phase-person .member-identity {
  max-width: 100%;
}

.phase-person .member-identity-trigger {
  justify-content: start;
  max-width: 100%;
}

.phase-person .member-identity-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-person small {
  display: block;
  margin-top: 3px;
  color: #929292;
  font-size: 10px;
  text-transform: uppercase;
}

.phase-person > b {
  color: #f0c664;
  font-size: 12px;
}

.attendance-form {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.attendance-form select {
  min-height: 32px;
  padding: 5px 7px;
  font-size: 11px;
}

.attendance-form input {
  min-width: 120px;
  flex: 1 1 150px;
  border: 1px solid #383838;
  background: #080808;
  color: #fff;
  padding: 7px 8px;
  font-size: 11px;
}

.attendance-form .phase-form-status {
  display: none;
}

.phase-requests {
  margin-top: 28px;
  border-top: 1px solid #303030;
  padding-top: 24px;
}

.phase-requests h2 {
  font-size: 24px;
  text-transform: uppercase;
}

.phase-request-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #303030;
  background: #0b0b0b;
  padding: 14px;
}

.phase-request-row + .phase-request-row {
  margin-top: 8px;
}

.phase-request-row p {
  margin: 4px 0 0;
  color: #aaa;
}

.phase-request-row form {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.phase-request-row .phase-form-status {
  flex-basis: 100%;
}

.phase-location {
  border-left: 3px solid #4b4b4b;
  background: #0b0b0b;
  padding: 13px 15px;
  color: #b4b4b4;
}

.phase-location strong {
  color: #fff;
}

.phase-location a {
  margin-left: 10px;
  color: #ff6576;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 22px;
}

.calendar-layout .phase-section-heading {
  margin-top: 0;
}

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

.calendar-row {
  display: grid;
  grid-template-columns: 94px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  border: 1px solid #303030;
  background: #111;
  padding: 12px 16px 12px 0;
  text-decoration: none;
}

.calendar-row:hover,
.calendar-row:focus-visible {
  border-color: #741522;
  background: #151111;
}

.calendar-row > time {
  display: grid;
  align-content: center;
  align-self: stretch;
  justify-items: center;
  border-right: 1px solid #3b2024;
  background: #29080d;
}

.calendar-row > time strong {
  font-size: 17px;
  text-transform: uppercase;
}

.calendar-row > time span {
  color: #aaa;
  font-size: 10px;
}

.calendar-row > div {
  min-width: 0;
}

.calendar-row small {
  color: #f34b5f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.calendar-row h3 {
  overflow: hidden;
  margin: 5px 0;
  font-size: 19px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-row p {
  overflow: hidden;
  margin: 0;
  color: #999;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-subscriptions {
  align-self: start;
  padding: 22px;
}

.calendar-subscriptions > p {
  color: #a6a6a6;
  line-height: 1.55;
}

.calendar-token-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.calendar-token-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #303030;
  background: #0b0b0b;
  padding: 11px;
}

.calendar-token-row div {
  min-width: 0;
}

.calendar-token-row strong,
.calendar-token-row small {
  display: block;
}

.calendar-token-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-token-row small {
  margin-top: 3px;
  color: #858585;
  font-size: 10px;
}

.calendar-token-output {
  overflow-wrap: anywhere;
  border: 1px solid #6f1722;
  background: #090909;
  padding: 13px;
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.calendar-token-output strong {
  display: block;
  margin-bottom: 5px;
  color: #ff5d6f;
  font-family: inherit;
}

.phase-more-note {
  text-align: right;
}

@media (max-width: 1040px) {
  .phase-card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .phase-form-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .phase-detail-grid,
  .calendar-layout {
    grid-template-columns: minmax(0,1fr);
  }

  .phase-roster,
  .calendar-subscriptions {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .phase-two-hero {
    grid-template-columns: minmax(0,1fr);
    gap: 25px;
  }

  .phase-two-hero nav {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .phase-search {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .phase-search > label:first-child {
    grid-column: 1 / -1;
  }

  .phase-detail-hero {
    min-height: 310px;
  }
}

@media (max-width: 620px) {
  .phase-two-shell,
  .phase-detail-hero > div {
    width: min(100% - 24px,1240px);
  }

  .phase-two-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .phase-two-hero nav,
  .phase-search,
  .phase-card-grid,
  .phase-form-grid,
  .phase-detail-meta,
  .phase-manage-panel > div {
    grid-template-columns: minmax(0,1fr);
  }

  .phase-search > label:first-child {
    grid-column: auto;
  }

  .phase-auth-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .phase-card {
    min-height: 390px;
  }

  .event-card {
    grid-template-columns: 68px minmax(0,1fr);
    min-height: 310px;
  }

  .phase-card-body {
    padding: 18px 15px;
  }

  .phase-card footer {
    flex-wrap: wrap;
  }

  .phase-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .phase-stat-strip {
    grid-template-columns: 1fr;
  }

  .phase-stat-strip span {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid #303030;
  }

  .phase-member-state {
    align-items: stretch;
    flex-direction: column;
  }

  .phase-request-row {
    grid-template-columns: minmax(0,1fr);
  }

  .phase-request-row form {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .calendar-row {
    grid-template-columns: 72px minmax(0,1fr);
    padding-right: 10px;
  }

  .calendar-row > .phase-state {
    grid-column: 2;
    justify-self: start;
  }

  .calendar-token-row {
    align-items: stretch;
    flex-direction: column;
  }

  .phase-action-row,
  .phase-rsvp-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .phase-action-row > *,
  .phase-rsvp-bar .phase-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase-card {
    transition: none;
  }
}
