.mobile-navigation {
  display: none;
}
/* A brand lockup must obey its container, including narrow sidebars and zoom. */
.brand,
.brand > div {
  min-width: 0;
  max-width: 100%;
}
.brand > div {
  flex: 1;
}
.brand small {
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  line-height: 1.65;
  letter-spacing: 0.65px;
}
.sidebar .brand {
  gap: 10px;
  margin-inline: 0;
}
.sidebar .brand small {
  font-size: 9px;
  letter-spacing: 0.35px;
  direction: ltr;
  text-align: right;
  max-width: 100%;
}
.sidebar .workspace-switch,
.sidebar .workspace-switch select {
  min-width: 0;
  max-width: 100%;
}
.sidebar nav a {
  min-width: 0;
}
.sidebar nav a > svg {
  flex: 0 0 auto;
}
.sidebar nav a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-guest-links {
  margin: 20px 0;
}
.account-guest-links .btn {
  margin-bottom: 8px;
}
.couple-access-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.couple-access-list strong {
  font-size: 13px;
  display: block;
}
.couple-access-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.couple-access > h3 {
  margin-top: 26px;
}
.couple-access > p {
  font-size: 13px;
}
.meta-readiness {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0;
}
.meta-fields > label {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.meta-fields > label > span {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 6px;
}
.meta-fields > label > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.meta-fields input {
  min-width: 0;
  font-size: 11px;
  flex: 1;
}
.meta-fields p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.meta-fields .btn {
  flex-shrink: 0;
}
.legal-preview-links,
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  font-size: 11px;
  margin-top: 18px;
}
.legal-preview-links a,
.legal-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-main .legal-footer {
  justify-content: center;
  font-size: 10px;
  margin-top: 9px;
}
.guest-rsvp-disclosure {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin: 22px 0;
}
.guest-rsvp-disclosure > summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  color: var(--accent);
}
.guest-rsvp-disclosure > summary > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.guest-rsvp-disclosure .att-guest-rsvp {
  border: 0;
  margin: 0;
  box-shadow: none;
}
.guest-account-bar {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.guest-account-bar a {
  color: var(--accent);
}
@media (max-width: 600px) {
  .sidebar nav {
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .sidebar nav a {
    flex: 1 0 68px;
    min-width: 0;
  }
  .sidebar nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 63px;
  }
  .meta-fields > label > div {
    flex-wrap: wrap;
  }
  .meta-fields input {
    flex-basis: 100%;
  }
  .couple-access-list article {
    align-items: flex-start;
  }
  .couple-access-list .btn {
    font-size: 10px;
    padding: 7px;
    flex-shrink: 0;
  }
  .guest-rsvp-disclosure > summary {
    padding: 14px;
  }
}
/* Shared refinements: keep the approved palette while making dense screens easier to use. */
.wa-delivery-block {
  margin-bottom: 22px;
  border-color: var(--accent);
}
.wa-delivery-block h2 {
  margin-bottom: 10px;
}
.wa-delivery-block p {
  max-width: 76ch;
}
.page-heading:has(a[href^="#event-map/"]) {
  display: block;
}
.page-heading:has(a[href^="#event-map/"]) .heading-actions {
  justify-content: flex-start;
  margin-top: 20px;
  gap: 8px;
}
.page-heading:has(a[href^="#event-map/"]) .heading-actions .btn {
  min-height: 39px;
}
@media (min-width: 701px) {
  .sidebar {
    height: 100dvh;
    padding-top: 24px;
  }
  .sidebar .brand {
    margin-bottom: 23px;
    flex-shrink: 0;
  }
  .sidebar .workspace-switch {
    margin-bottom: 17px;
    flex-shrink: 0;
  }
  .sidebar nav {
    min-height: 110px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    gap: 4px;
    margin-bottom: 16px;
  }
  .sidebar nav a {
    flex-shrink: 0;
    padding: 10px;
  }
  .sidebar-profile {
    flex-shrink: 0;
    margin-top: auto;
  }
  .sidebar-note {
    flex-shrink: 0;
    margin-top: 10px;
    margin-bottom: 17px;
  }
}
@media (min-width: 701px) and (max-height: 900px) {
  .sidebar-note {
    display: none;
  }
}
@media (max-width: 600px) {
  .page-heading:has(a[href^="#event-map/"]) .heading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .page-heading:has(a[href^="#event-map/"]) .heading-actions .btn {
    width: 100%;
    font-size: 11px;
    padding: 9px 6px;
    white-space: normal;
  }
  .guest-rsvp-disclosure > summary {
    min-height: 48px;
  }
  .guest-rsvp-disclosure > summary > small {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.modal-error {
  border: 1px solid var(--accent);
  border-inline-start: 4px solid var(--accent);
  background: var(--soft);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.7;
}
.modal-error[hidden] {
  display: none;
}
button[aria-busy="true"] {
  cursor: progress;
}
/* Seat states use labels and symbols in addition to color. */
.guest-shell .legend {
  font-size: 12px;
  gap: 9px 16px;
  color: var(--ink);
}
.guest-shell .legend i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.seat.mine rect {
  fill: #d1fae5;
  stroke: #087f5b;
  stroke-width: 2;
}
.seat.mine text {
  fill: #065f46;
  font-weight: 700;
}
.legend .mine {
  background: #d1fae5;
  border-color: #087f5b;
}
.seat.selected rect {
  stroke-width: 2.5;
}
.seat.selected text {
  font-weight: 700;
}
.seat.held rect,
.seat.otherTab rect {
  fill: #ffe6a7;
  stroke: #976209;
  stroke-width: 2;
}
.legend .held {
  background: #ffe6a7;
  border-color: #976209;
  border-style: dashed;
}
.legend .restricted {
  background: var(--line);
  border-color: var(--muted);
  border-style: dashed;
}
.seat.restricted rect {
  stroke: var(--muted);
  stroke-dasharray: 3 3;
}
.guest-map-hint {
  font-size: 12px;
  padding: 0 22px 12px;
  margin: 0;
  color: var(--muted);
}
.guest-shell .table-focus {
  flex-wrap: wrap;
}
.guest-shell .table-focus select {
  min-width: 0;
  flex: 1;
}
.guest-shell .table-focus .btn {
  flex: none;
}
.guest-selection-shortcut {
  display: none;
}
.guest-shell .selection-card {
  scroll-margin-top: 16px;
}
@media (max-width: 650px) {
  .guest-shell .map-toolbar .icon-btn {
    min-width: 42px;
    min-height: 42px;
  }
  .guest-shell .legend {
    font-size: 11px;
    padding: 12px 14px;
    gap: 10px 13px;
  }
  .guest-map-hint {
    font-size: 11px;
    padding: 0 14px 12px;
    line-height: 1.6;
  }
  .guest-shell .table-focus {
    padding: 12px 14px;
    gap: 8px;
  }
  .guest-shell .table-focus label {
    flex-basis: 100%;
  }
  .guest-shell .table-focus select {
    font-size: 14px;
    min-height: 44px;
  }
  .guest-selection-shortcut:not([hidden]) {
    display: block;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    z-index: 25;
    padding: 5px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 5px 24px #25203f25;
  }
  .guest-selection-shortcut .btn {
    min-height: 46px;
    font-size: 13px;
  }
  .guest-shell.has-pending-seats {
    padding-bottom: 90px;
  }
  .guest-shell .seat-list-item {
    min-height: 52px;
    font-size: 13px;
  }
  .guest-shell .chosen-seat select {
    font-size: 16px;
  }
}
/* One line per navigation item. Full menu stays available at every viewport. */
.sidebar nav a {
  min-width: 0;
  white-space: nowrap;
}
.sidebar nav a svg {
  flex: 0 0 21px;
}
.sidebar nav a span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile > div {
  min-width: 0;
}
.sidebar-profile strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.navigation-dialog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.navigation-dialog a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.navigation-dialog a svg {
  flex-shrink: 0;
  color: var(--accent);
}
.navigation-dialog a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navigation-dialog a.active {
  background: var(--soft);
  color: var(--accent);
  border-color: var(--accent2);
}
@media (min-width: 961px) {
  .sidebar {
    width: 256px;
    padding-inline: 17px;
  }
  .sidebar nav a {
    gap: 10px;
    font-size: 13px;
  }
  .sidebar nav {
    flex: 1;
    min-height: 0;
  }
  .sidebar-note {
    display: none;
  }
  .sidebar-profile {
    flex-shrink: 0;
  }
}
@media (max-width: 960px) {
  .app-shell {
    display: block;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .app-shell > .sidebar {
    display: none;
  }
  .mobile-navigation {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 20px #28145408;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    gap: 3px;
  }
  .mobile-navigation a,
  .mobile-navigation button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 4px;
    min-height: 54px;
    background: none;
    border: 0;
    border-radius: 12px;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
  }
  .mobile-navigation span {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
  }
  .mobile-navigation .active {
    background: var(--soft);
    color: var(--accent);
  }
  .topbar {
    height: 60px;
  }
  .main-shell main {
    padding: 24px 18px 36px;
  }
}
@media (max-width: 440px) {
  .navigation-dialog {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  .mobile-navigation {
    display: none;
  }
}
/* Shared product typography and control hierarchy. Theme choice remains per workspace. */
.app-shell .page-heading {
  margin-bottom: 24px;
}
.app-shell .page-heading h1 {
  font-weight: 750;
  letter-spacing: -0.7px;
}
.app-shell .page-heading p {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 8px;
}
.app-shell .eyebrow {
  letter-spacing: 0.8px;
  font-size: 11px;
}
.app-shell .heading-actions {
  min-width: 0;
  flex-wrap: wrap;
}
.app-shell .btn svg {
  flex-shrink: 0;
}
.app-shell .btn.primary {
  box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 15%, transparent);
}
.app-shell .btn:active {
  transform: translateY(0);
}
.app-shell .stat {
  padding: 20px;
  border-radius: 16px;
}
.app-shell .stat > span {
  font-size: 13px;
  font-weight: 500;
}
.app-shell .stat > small {
  font-size: 12px;
  line-height: 1.6;
  display: block;
}
.app-shell .stat-icon {
  opacity: 1;
}
.app-shell .field > span {
  font-size: 13px;
  font-weight: 600;
}
.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.app-shell select,
.app-shell textarea {
  font-size: 14px;
}
.app-shell .tabs button {
  font-size: 14px;
  min-height: 44px;
  white-space: nowrap;
}
.app-shell .topbar {
  height: 64px;
  padding-inline: 30px;
  background: var(--surface);
}
.app-shell .topbar-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.app-shell .topbar-right {
  flex-shrink: 0;
}
.sidebar .brand {
  font-size: 28px;
  font-weight: 800;
}
.sidebar .workspace-switch {
  background: var(--bg);
  padding: 12px;
}
.sidebar nav a {
  color: var(--muted);
  font-weight: 550;
  min-height: 44px;
}
.sidebar nav a.active {
  color: var(--accent);
  position: relative;
}
.sidebar nav a.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 3px;
  height: 20px;
  border-radius: 4px;
  background: var(--accent);
}
.sidebar nav a:hover {
  color: var(--ink);
}
.sidebar .sidebar-profile strong {
  font-size: 13px;
}
[data-theme="midnight"] .danger,
[data-theme="midnight"] .btn.danger,
[data-theme="midnight"] .form-error {
  color: #ffa5b4;
}
dialog .field > span {
  font-size: 13px;
}
dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
dialog select,
dialog textarea {
  font-size: 15px;
}
@media (min-width: 961px) {
  .main-shell main:not(.has-editor) {
    padding: 30px 32px 56px;
  }
  .sidebar {
    padding-top: 26px;
  }
}
@media (max-width: 960px) {
  .app-shell .topbar {
    padding-inline: 18px;
    height: 58px;
  }
  .app-shell .page-heading {
    align-items: flex-start;
  }
  body:has(.app-shell) #toasts {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  body.studio-focus #toasts {
    bottom: 18px;
  }
}
@media (max-width: 600px) {
  .app-shell .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .app-shell .page-heading h1 {
    font-size: 28px;
  }
  .app-shell .heading-actions {
    flex-shrink: 1;
    width: 100%;
  }
  .app-shell .heading-actions .btn {
    font-size: 13px;
    min-height: 44px;
  }
  .app-shell .stats {
    gap: 10px;
  }
  .app-shell .stat {
    padding: 16px;
  }
  .app-shell .stat > strong {
    font-size: 28px;
  }
  .app-shell .stat > span {
    font-size: 12px;
    padding-inline-end: 20px;
  }
  .app-shell .stat > small {
    font-size: 11px;
  }
  .app-shell
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .app-shell select,
  .app-shell textarea {
    font-size: 16px;
  }
  .app-shell .tabs {
    overflow-x: auto;
    max-width: 100%;
  }
  .app-shell .tabs button {
    flex: 0 0 auto;
  }
  .mobile-navigation span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  dialog select,
  dialog textarea {
    font-size: 16px;
  }
}
@media (max-width: 440px) {
  dialog .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
