#workspace-view #together {
  background: var(--st-paper);
  color: var(--st-text);
  max-inline-size: 75rem;
  padding: var(--st-space-5) 0 0;
  border: 0;
}

.together-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--st-space-4);
  padding-block-end: var(--st-space-4);
}

#together-title {
  font: var(--st-section-weight) 2.125rem/var(--st-section-leading) var(--st-font);
  letter-spacing: var(--st-display-tracking);
}

.together-header p {
  margin-block-start: var(--st-space-2);
  max-inline-size: 55ch;
  color: var(--st-text-muted);
}

#together:has(#together-invitation:not([hidden])) .together-header p {
  display: none;
}

#together-refresh {
  flex: 0 0 auto;
  min-block-size: var(--st-tap-target);
  padding-inline: var(--st-space-3);
}

#together :focus-visible,
#together-sign-in :focus-visible {
  outline: var(--st-focus-width) solid var(--st-focus);
  outline-offset: 3px;
}

.together-plans-layout {
  display: grid;
  gap: var(--st-space-5);
  margin-block-start: var(--st-space-3);
  align-items: start;
}

.together-plan-index,
.together-plans-layout > #together-detail {
  min-inline-size: 0;
}

#together-plans-title {
  padding-block-end: var(--st-space-3);
  font: var(--st-ticket-title-weight) 1.125rem/1.3 var(--st-font);
  border-block-end: 1px solid var(--st-rule);
}

#together-plans {
  max-inline-size: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

#together-plans > li {
  border-block-end: 1px solid var(--st-rule);
}

#together .together-plan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-2) var(--st-space-4);
  padding: var(--st-space-3);
}

#together .together-plan-row:has(button[aria-expanded="true"]) {
  background: var(--st-stock);
  box-shadow: inset 0 -2px 0 var(--st-deep-teal);
}

.together-plan-summary {
  flex: 1 1 10rem;
  min-inline-size: 0;
}

.together-plan-summary h4 {
  margin: 0;
  font: var(--st-ticket-title-weight) 1.0625rem/1.26 var(--st-font);
}

.together-plan-summary > p:not(.guest-tag) {
  margin-block-start: var(--st-space-1);
  color: var(--st-text-muted);
}

.together-plan-summary > .guest-tag {
  margin-block-start: var(--st-space-2);
}

#together .together-plan-row > .button {
  min-block-size: var(--st-tap-target);
  padding-inline: var(--st-space-3);
}

#together-plans > :is(.field-help, .together-empty) {
  padding: var(--st-space-3) 0;
  margin: 0;
}

.together-empty > p:first-child {
  font-weight: var(--st-action-weight);
}

.together-empty > .text-button {
  display: inline-flex;
  align-items: center;
  color: var(--st-action);
}

#workspace-view #together #together-detail {
  margin: 0;
  padding: var(--st-space-4);
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
}

#together-plan-title {
  inline-size: fit-content;
  font: var(--st-ticket-title-weight) 1.625rem/1.15 var(--st-font);
  letter-spacing: -.025em;
}

.together-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 var(--st-space-4);
  margin-block-start: var(--st-space-2);
}

.together-plan-facts .field-help {
  margin-block-start: var(--st-space-1);
}

.together-organizer {
  margin-block: var(--st-space-4);
  padding: var(--st-space-4);
  background: var(--st-stock);
  border-block: 1px solid var(--st-rule);
}

.together-invite-form {
  margin: 0;
}

.together-invite-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-2);
}

.together-invite-fields input {
  flex: 1 1 12rem;
  min-inline-size: 0;
  border-color: var(--st-control-boundary);
  background: var(--st-paper);
}

.together-invite-fields .button {
  min-block-size: var(--st-tap-target);
}

.together-link-receipt {
  margin-block-start: var(--st-space-4);
  padding-block-start: var(--st-space-4);
  border-block-start: 1px solid var(--st-rule);
}

#together .invitation-list > li[data-invitation-status] {
  border-color: var(--st-rule);
}

#together .invitation-list [data-invitation-status="joined"] .row-description {
  color: var(--st-success-text);
}

#together .invitation-list [data-invitation-status="pending"] .row-description {
  color: var(--st-attention-text);
}

#workspace-view #together #together-invitation {
  margin-block: var(--st-space-2) var(--st-space-6);
  max-inline-size: 62rem;
  padding: 0;
  border: 1px solid var(--st-rule);
  border-radius: 12px;
}

.together-invitation-body {
  display: grid;
  min-inline-size: 0;
}

.together-invitation-summary {
  min-inline-size: 0;
  padding: var(--st-space-4);
}

#together-invitation-title {
  margin: 0;
  font: var(--st-section-weight) 1.75rem/1.08 var(--st-font);
  letter-spacing: -.03em;
  text-wrap: balance;
}

.together-invitation-venue {
  margin-block-start: var(--st-space-2);
  font-weight: var(--st-action-weight);
}

.together-invitation-summary .together-invitation-sender {
  margin-block: var(--st-space-1) 0;
  color: var(--st-text-muted);
  font-size: .9375rem;
}

.together-invitation-body .together-invitation-deadline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-1) var(--st-space-2);
  align-items: baseline;
  inline-size: auto;
  margin: 0;
  padding: var(--st-space-3) var(--st-space-4);
  background: var(--st-memory-wash);
  color: var(--st-text-on-aqua-stub);
  border-block-start: 1px dashed var(--st-control-boundary);
}

.together-invitation-deadline > span {
  font-size: .875rem;
  font-weight: var(--st-nav-weight);
}

.together-invitation-deadline time {
  font-size: 1rem;
  font-weight: var(--st-action-weight);
  font-variant-numeric: tabular-nums;
}

.together-invitation-response {
  padding: var(--st-space-4);
  border-block-start: 1px solid var(--st-rule);
}

.together-invitation-response > p {
  color: var(--st-text-muted);
}

.together-invitation-response > .together-invitation-actions {
  margin-block-start: var(--st-space-3);
  gap: var(--st-space-2);
}

.together-invitation-actions > .button {
  min-block-size: var(--st-tap-target);
  padding-inline: var(--st-space-4);
}

.together-invitation-support,
#together-invitation > .together-invitation-handoff {
  padding: 0 var(--st-space-4) var(--st-space-3);
}

.together-invitation-handoff {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-1) var(--st-space-4);
  align-items: center;
  padding-block-start: var(--st-space-2);
  border-block-start: 1px solid var(--st-rule);
}

.together-invitation-handoff > :first-child {
  flex: 1 1 15rem;
  margin: 0;
  color: var(--st-text-muted);
}

.together-invitation-handoff > .button {
  min-block-size: var(--st-tap-target);
}

.together-invitation-handoff > p[role="status"],
.together-invitation-handoff > div {
  flex-basis: 100%;
}

.together-invitation-handoff > div:empty {
  display: none;
}

.together-invitation-handoff > p[role="status"]:empty,
#together #together-sharing-message:empty {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#together-sign-in {
  max-inline-size: 39rem;
  margin: var(--st-space-5) auto 0;
  padding: var(--st-space-5);
  color: var(--st-text);
  background: var(--st-stock);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
}

#together-sign-in-title {
  font: var(--st-section-weight) 1.75rem/1.1 var(--st-font);
  letter-spacing: -.03em;
}

#together-sign-in > .text-button {
  display: inline-flex;
  align-items: center;
  color: var(--st-action);
}

@media (min-width: 760px) {
  #together-title {
    font-size: 3rem;
  }

  .together-plans-layout:has(> #together-detail:not([hidden])) {
    grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.65fr);
    gap: var(--st-space-6);
  }

  .together-plans-layout:not(:has(> #together-detail:not([hidden]))) {
    max-inline-size: 46rem;
  }

  .together-invitation-body:has(> .together-invitation-deadline) {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 29%);
  }

  .together-invitation-summary {
    padding: var(--st-space-5);
  }

  #together-invitation-title {
    font-size: 2.375rem;
  }

  .together-invitation-body .together-invitation-deadline {
    display: grid;
    align-content: center;
    border-block-start: 0;
    border-inline-start: 1px dashed var(--st-control-boundary);
    border-start-end-radius: 11px;
    padding-inline: var(--st-space-5);
  }

  .together-invitation-deadline time {
    font-size: 1.125rem;
  }

  .together-invitation-response {
    padding-inline: var(--st-space-5);
  }

  .together-invitation-support,
  #together-invitation > .together-invitation-handoff {
    padding-inline: var(--st-space-5);
  }
}

@media (min-width: 920px) {
  #main:has(> #together-sign-in:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 0 var(--st-space-5);
  }

  #main:has(> #together-sign-in:not([hidden])) > :not(#together-sign-in, #auth-view) {
    grid-column: 1 / -1;
  }

  #together-sign-in {
    margin-block-start: var(--st-space-7);
  }
}

@media (max-width: 759px) {
  .together-header {
    gap: var(--st-space-2);
  }

  #together-refresh {
    font-size: .875rem;
  }

  .together-invite-fields > .button {
    flex: 1 0 100%;
  }
}
