:root {
  --ivory: #f5f2eb;
  --paper: #fcfaf6;
  --paper-deep: #ebe6dc;
  --ink: #1b1a18;
  --ink-soft: #45423d;
  --muted: #6d685f;
  --line: #d8d2c8;
  --line-dark: #bbb3a7;
  --gold: #9a7b45;
  --gold-light: #d9c598;
  --green: #66756a;
  --green-light: #dfe5df;
  --oxide: #9a5d4a;
  --oxide-light: #f1dfd9;
  --white: #ffffff;
  --shadow-soft: 0 16px 44px rgba(37, 32, 25, 0.08);
  --shadow-float: 0 24px 70px rgba(22, 19, 15, 0.18);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  color-scheme: light;
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  padding: 4px;
  background: var(--ink);
}

.brand__mark span {
  display: block;
  width: 4px;
  background: var(--gold-light);
}

.brand__mark span:nth-child(1) { height: 11px; }
.brand__mark span:nth-child(2) { height: 17px; }
.brand__mark span:nth-child(3) { height: 8px; }

.brand__name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.brand__tagline {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  color: inherit;
  font-size: 12px;
  opacity: 0.65;
}

.brand--compact .brand__mark {
  width: 24px;
  height: 24px;
}

.brand--compact .brand__name {
  font-size: 21px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.button--primary:hover:not(:disabled) {
  border-color: #836535;
  background: #836535;
}

.button--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button--dark:hover:not(:disabled) {
  background: #34312d;
}

.button--secondary {
  border-color: var(--line-dark);
  background: var(--paper);
  color: var(--ink);
}

.button--secondary:hover:not(:disabled) {
  border-color: var(--ink-soft);
}

.button--text {
  min-height: 34px;
  padding: 0 8px;
  color: var(--gold);
}

.button--large {
  min-height: 52px;
  padding-right: 22px;
  padding-left: 22px;
  font-size: 15px;
}

.button--compact {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.button--wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-soft);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.icon-button:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.icon-button--danger:hover {
  border-color: var(--oxide);
  background: var(--oxide-light);
  color: var(--oxide);
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.field > span,
.attendance-choice > legend {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea,
.guest-row select,
.compact-field input,
.link-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 98px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-dark);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 123, 69, 0.1);
  outline: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa297;
}

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

.field--wide,
.button--wide,
.form-footnote {
  grid-column: 1 / -1;
}

.form-footnote {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/* Creation experience */
.onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  min-height: 100vh;
  background: var(--paper);
}

.onboarding__visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #38342e;
}

.onboarding__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
}

.onboarding__visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4.5vw, 66px);
  background: rgba(23, 20, 16, 0.36);
  color: var(--white);
}

.onboarding__visual .brand__mark,
.rsvp-visual .brand__mark {
  background: rgba(20, 18, 15, 0.9);
}

.onboarding__statement {
  max-width: 620px;
  padding: 28px 0;
}

.onboarding__statement .eyebrow {
  color: #e3d2ae;
}

.onboarding__statement h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 70px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.onboarding__statement > p:last-child {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
}

.onboarding__privacy {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.onboarding__form-wrap {
  align-self: center;
  width: min(100%, 600px);
  max-height: 100vh;
  margin: 0 auto;
  padding: 42px clamp(32px, 5vw, 76px);
  overflow-y: auto;
}

.onboarding__form-head {
  margin-bottom: 30px;
}

.onboarding__form-head h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.25;
}

.onboarding__form-head > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.mobile-brand {
  display: none;
}

.recent-event {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ivory);
  text-align: left;
}

.recent-event:hover {
  border-color: var(--gold);
}

.recent-event__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--ink);
  color: var(--gold-light);
}

.recent-event span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.recent-event small {
  color: var(--muted);
  font-size: 11px;
}

.recent-event strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.or {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 11px;
}

.or::before,
.or::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.or span {
  padding: 0 12px;
}

.account-strip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 18px;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.account-strip__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--serif);
}

.account-strip > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.account-strip small {
  color: var(--muted);
  font-size: 9px;
}

.account-strip strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-heading {
  margin-bottom: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.auth-tabs button {
  position: relative;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.auth-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.auth-tabs button.is-active {
  color: var(--ink);
}

.auth-tabs button.is-active::after {
  background: var(--gold);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing-note {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  margin-top: 24px;
  padding: 17px 0;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-note > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-note strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.pricing-note small {
  color: var(--gold);
  font-size: 9px;
}

.pricing-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* Workspace */
.app-shell {
  min-height: 100vh;
  background: var(--ivory);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(18px);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.save-state {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.save-state svg {
  width: 14px;
  height: 14px;
}

.workspace {
  width: min(100% - 36px, 1320px);
  margin: 0 auto;
  padding: 50px 0 86px;
}

.event-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 120px;
  gap: 32px;
}

.event-heading h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.18;
}

.event-heading > div:first-child > p:last-child {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.event-heading > div:first-child > p:last-child svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.event-code {
  display: flex;
  min-width: 120px;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 5px;
  gap: 4px;
}

.event-code span {
  color: var(--muted);
  font-size: 10px;
}

.event-code strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
}

.unlock-banner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 28px;
  padding: 17px 18px;
  gap: 14px;
  border: 1px solid #cfc09f;
  border-radius: 5px;
  background: #f3ecdd;
}

.unlock-banner__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--gold-light);
}

.unlock-banner > div {
  min-width: 0;
}

.unlock-banner strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 14px;
}

.unlock-banner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 38px 0 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.metric-strip > div {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  min-width: 0;
  min-height: 88px;
  padding: 21px clamp(14px, 2.3vw, 30px);
  gap: 7px;
  border-right: 1px solid var(--line);
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.metric-strip strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.metric-strip small {
  color: var(--muted);
  font-size: 11px;
}

.workspace-tabs {
  display: flex;
  min-height: 58px;
  margin-top: 22px;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.workspace-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0 18px;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.workspace-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: transparent;
  content: "";
}

.workspace-tab:hover,
.workspace-tab.is-active {
  color: var(--ink);
}

.workspace-tab.is-active::after {
  background: var(--gold);
}

.workspace-content {
  padding-top: 40px;
}

.section-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}

.section-toolbar h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.section-toolbar .section-kicker {
  margin-bottom: 6px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 16px;
}

.filter-row > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-deep);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  gap: 7px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.segmented button.is-active {
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(31, 27, 22, 0.1);
  color: var(--ink);
}

.segmented small {
  color: var(--gold);
  font-size: 10px;
}

.guest-list {
  border-top: 1px solid var(--line-dark);
}

.guest-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) 88px minmax(126px, 0.78fr) minmax(120px, 0.78fr) minmax(100px, 1fr) 42px;
  align-items: center;
  min-height: 72px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.guest-row--head {
  min-height: 40px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.guest-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.guest-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.guest-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.guest-identity strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-identity small,
.guest-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-row select {
  height: 36px;
  padding: 0 9px;
  font-size: 11px;
}

.status-select--attending {
  border-color: #aab6ac !important;
  background: var(--green-light) !important;
  color: #3f5144 !important;
}

.status-select--declined {
  border-color: #d7bcb4 !important;
  background: var(--oxide-light) !important;
  color: #784738 !important;
}

.compact-field {
  position: relative;
  display: block;
  width: 72px;
}

.compact-field input {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 9px;
  font-size: 11px;
}

.compact-field span {
  position: absolute;
  top: 11px;
  right: 9px;
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}

.empty-state {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--gold);
}

.empty-state__icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 22px;
}

.empty-state p {
  max-width: 420px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Seating */
.unassigned-zone {
  margin-bottom: 28px;
  padding: 18px 20px 20px;
  border: 1px dashed var(--line-dark);
  border-radius: 6px;
  background: rgba(252, 250, 246, 0.62);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.unassigned-zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}

.unassigned-zone__head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.unassigned-zone__head span {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 650;
}

.unassigned-zone__head strong {
  color: var(--gold);
  font-size: 11px;
}

.unassigned-zone__head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.guest-chip-lane {
  display: flex;
  min-height: 52px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.all-seated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
}

.guest-chip {
  display: grid;
  grid-template-columns: 17px minmax(70px, 1fr) auto 28px;
  align-items: center;
  min-width: 188px;
  max-width: 260px;
  min-height: 48px;
  padding: 5px 6px 5px 3px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(39, 34, 28, 0.04);
  cursor: grab;
  transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.guest-chip:hover {
  border-color: var(--gold);
  box-shadow: 0 5px 16px rgba(39, 34, 28, 0.08);
}

.guest-chip.is-dragging {
  opacity: 0.45;
}

.guest-chip__handle {
  color: var(--line-dark);
}

.guest-chip__handle svg {
  width: 15px;
  height: 15px;
}

.guest-chip__name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.guest-chip__name strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-chip__name small,
.guest-chip__count {
  color: var(--muted);
  font-size: 9px;
}

.guest-chip__move {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
}

.guest-chip__move:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.guest-chip__move svg {
  width: 15px;
  height: 15px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.table-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.table-card.is-drag-over,
.unassigned-zone.is-drag-over {
  border-color: var(--gold);
  background: #f3ecdd;
  box-shadow: 0 0 0 3px rgba(154, 123, 69, 0.1);
}

.table-card--over {
  border-color: #c88d7c;
}

.table-card__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.table-card__head h3 {
  overflow: hidden;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-card__head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 9px;
}

.table-card__head .icon-button {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.table-card__head .icon-button svg {
  width: 15px;
  height: 15px;
}

.table-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--gold);
  background: #f7f0df;
  color: var(--gold);
}

.table-symbol--round {
  border-radius: 50%;
}

.table-symbol--long {
  width: 40px;
  height: 30px;
  border-radius: 2px;
}

.table-symbol span {
  font-family: var(--serif);
  font-size: 11px;
}

.capacity-line {
  height: 3px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--paper-deep);
}

.capacity-line span {
  display: block;
  height: 100%;
  background: var(--green);
}

.table-card--over .capacity-line span {
  background: var(--oxide);
}

.table-card__occupancy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 13px;
  color: var(--muted);
  font-size: 9px;
}

.table-card__occupancy strong {
  color: var(--oxide);
  font-size: 9px;
}

.table-card__guests {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  gap: 6px;
}

.table-card__guests .guest-chip {
  width: 100%;
  max-width: none;
  min-height: 44px;
}

.drop-hint {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--line);
  color: #9b948a;
  font-size: 10px;
}

.drop-hint svg {
  width: 14px;
  height: 14px;
}

/* Share */
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 42px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.share-link-block {
  max-width: 720px;
}

.share-link-block h3,
.print-preview h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 23px;
}

.share-link-block > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.link-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin: 22px 0 12px;
}

.link-field input {
  height: 42px;
  padding: 0 12px;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.link-field .icon-button {
  width: 42px;
  height: 42px;
  border-radius: 0 4px 4px 0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-link-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.admin-link-note > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--paper-deep);
  color: var(--gold);
}

.admin-link-note > p {
  display: flex;
  margin-bottom: 0;
  flex-direction: column;
  gap: 3px;
}

.admin-link-note strong {
  font-size: 11px;
}

.admin-link-note small {
  color: var(--muted);
  font-size: 9px;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.qr-frame {
  display: grid;
  width: 196px;
  height: 196px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.qr-block strong {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 15px;
}

.qr-block > span {
  max-width: 210px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-preview {
  padding-top: 36px;
}

.locked-feature {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 22px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}

.locked-feature__mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.locked-feature__mark svg {
  width: 26px;
  height: 26px;
}

.locked-feature h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
}

.locked-feature > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.locked-feature__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
  gap: 8px 18px;
}

.locked-feature__features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.locked-feature__features svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.print-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.print-preview__head h3 {
  margin-bottom: 0;
}

.print-preview__head > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.mini-table-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.mini-table-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 58px;
  align-items: start;
  padding: 15px 12px 13px 0;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.mini-table-list article:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.mini-table-list article:nth-child(even) {
  padding-left: 24px;
}

.mini-table-list strong {
  font-family: var(--serif);
  font-size: 12px;
}

.mini-table-list span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* Modal */
.modal {
  width: min(92vw, 560px);
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(20, 18, 15, 0.58);
  backdrop-filter: blur(5px);
}

.modal__panel {
  display: flex;
  max-height: min(88vh, 760px);
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.modal__panel--wide {
  width: min(92vw, 680px);
}

.modal__panel > header,
.modal__panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 12px;
}

.modal__panel > header {
  border-bottom: 1px solid var(--line);
}

.modal__panel > header h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 23px;
}

.modal__panel > header .eyebrow {
  margin-bottom: 4px;
}

.modal__panel > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.modal__body {
  padding: 24px 22px;
  overflow-y: auto;
}

.modal-hint {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal--payment {
  width: min(92vw, 520px);
}

.payment-offer,
.payment-qr,
.payment-unavailable {
  padding: 5px 4px;
  text-align: center;
}

.payment-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 4px 0 13px;
  color: var(--ink);
}

.payment-price span {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.payment-price strong {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}

.payment-offer > p:not(.eyebrow),
.payment-unavailable p {
  max-width: 400px;
  margin-right: auto;
  margin-bottom: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.payment-offer ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 16px 0 0;
  gap: 10px;
  border-top: 1px solid var(--line);
  list-style: none;
  text-align: left;
}

.payment-offer li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
}

.payment-offer li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.payment-unavailable > span {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 4px auto 18px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--gold);
}

.payment-unavailable > span svg {
  width: 24px;
  height: 24px;
}

.payment-unavailable h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 21px;
}

.payment-qr__frame {
  display: grid;
  width: 236px;
  height: 236px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.payment-qr__amount {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.payment-qr__amount strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
}

.payment-waiting {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  gap: 7px;
  color: var(--green);
  font-size: 10px;
}

.payment-waiting svg {
  width: 14px;
  height: 14px;
}

/* Public RSVP */
.rsvp-page {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(480px, 1.18fr);
  min-height: 100vh;
  background: var(--paper);
}

.rsvp-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #37332e;
}

.rsvp-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 37% center;
}

.rsvp-visual__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4.5vw, 62px);
  background: rgba(23, 20, 16, 0.42);
  color: var(--white);
}

.rsvp-visual__overlay > div:last-child {
  padding-bottom: 7vh;
}

.rsvp-visual__overlay .eyebrow {
  color: #ead8b2;
}

.rsvp-visual__overlay h1 {
  max-width: 550px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.22;
}

.rsvp-visual__overlay span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.rsvp-form-wrap {
  align-self: center;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 64px clamp(34px, 7vw, 100px);
}

.rsvp-intro {
  margin-bottom: 30px;
  text-align: center;
}

.rsvp-intro h2 {
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.3vw, 45px);
  font-weight: 600;
}

.rsvp-intro > p:last-child {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

.rsvp-details {
  margin-bottom: 30px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.rsvp-details > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  min-height: 70px;
  padding: 16px 0;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.rsvp-details > div:last-child {
  border-bottom: 0;
}

.rsvp-details > div > svg {
  margin-top: 3px;
  color: var(--gold);
}

.rsvp-details span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.rsvp-details small {
  color: var(--muted);
  font-size: 9px;
}

.rsvp-details strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.rsvp-details em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.6;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.attendance-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}

.attendance-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.attendance-choice label {
  display: block;
}

.attendance-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.attendance-choice input:checked + span {
  border-color: var(--gold);
  background: #f6efdf;
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(154, 123, 69, 0.08);
}

.rsvp-success,
.error-screen,
.loading-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--ivory);
  text-align: center;
}

.rsvp-success__mark,
.error-screen > div > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.rsvp-success__mark svg,
.error-screen > div > span svg {
  width: 28px;
  height: 28px;
}

.rsvp-success h1,
.error-screen h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
}

.rsvp-success > p:not(.eyebrow),
.error-screen p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.error-screen > .brand {
  position: absolute;
  top: 30px;
  left: 30px;
}

.loading-screen {
  justify-content: flex-start;
}

.loading-screen > .brand {
  align-self: flex-start;
}

.loading-screen__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.loading-screen__body svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.print-sheet {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--ink-soft);
  border-radius: 4px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  color: var(--white);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-tone="success"] {
  border-color: var(--green);
  background: #344239;
}

.toast[data-tone="error"] {
  border-color: var(--oxide);
  background: #5d352c;
}

.spin {
  animation: spin 800ms linear infinite;
}

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

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

  .guest-row {
    grid-template-columns: minmax(190px, 1.4fr) 78px minmax(110px, 0.8fr) minmax(105px, 0.8fr) 42px;
  }

  .guest-row > .guest-note,
  .guest-row--head > span:nth-child(5) {
    display: none;
  }
}

@media (max-width: 900px) {
  .onboarding {
    display: block;
  }

  .onboarding__visual {
    min-height: 330px;
    height: 38vh;
  }

  .onboarding__visual-overlay {
    padding: 24px;
  }

  .onboarding__visual-overlay > .brand,
  .onboarding__privacy,
  .onboarding__statement > p:last-child {
    display: none;
  }

  .onboarding__statement {
    align-self: flex-end;
    padding: 0 0 10px;
  }

  .onboarding__statement h1 {
    margin-bottom: 0;
    font-size: clamp(30px, 7vw, 46px);
  }

  .onboarding__form-wrap {
    max-height: none;
    padding: 28px 24px 52px;
    overflow: visible;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 38px;
  }

  .rsvp-page {
    display: block;
  }

  .rsvp-visual {
    position: relative;
    height: 48vh;
    min-height: 360px;
  }

  .rsvp-visual__overlay {
    padding: 28px 24px;
  }

  .rsvp-visual__overlay > div:last-child {
    padding-bottom: 2vh;
  }

  .rsvp-form-wrap {
    padding: 48px 28px 70px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 58px;
    padding: 0 14px;
  }

  .topbar .brand__name {
    font-size: 19px;
  }

  .topbar__actions .save-state,
  .topbar__actions .button span:not(.lucide) {
    display: none;
  }

  .topbar__actions .button {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .workspace {
    width: min(100% - 28px, 1320px);
    padding-top: 32px;
  }

  .event-heading {
    display: block;
    min-height: auto;
  }

  .event-heading h1 {
    font-size: 34px;
  }

  .event-code {
    display: none;
  }

  .unlock-banner {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .unlock-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .metric-strip > div:nth-child(2) {
    border-right: 0;
  }

  .metric-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .metric-strip > div {
    min-height: 74px;
    padding: 15px 16px;
  }

  .workspace-tabs {
    position: sticky;
    z-index: 12;
    top: 58px;
    min-height: 52px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 8px;
    background: rgba(245, 242, 235, 0.96);
    backdrop-filter: blur(16px);
  }

  .workspace-tab {
    min-width: 0;
    flex: 1;
    padding: 0 8px;
  }

  .workspace-content {
    padding-top: 30px;
  }

  .section-toolbar {
    align-items: flex-start;
  }

  .section-toolbar h2 {
    font-size: 24px;
  }

  .toolbar-actions .button {
    min-width: 40px;
    padding: 0 11px;
  }

  .filter-row {
    align-items: flex-start;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1 0 auto;
  }

  .filter-row > p {
    display: none;
  }

  .guest-list {
    display: grid;
    gap: 8px;
    border-top: 0;
  }

  .guest-row--head {
    display: none;
  }

  .guest-row {
    grid-template-columns: minmax(0, 1fr) 118px;
    min-height: 0;
    padding: 14px;
    gap: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--paper);
  }

  .guest-row > *::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
  }

  .guest-identity {
    grid-column: 1;
  }

  .guest-identity::before,
  .guest-row > .icon-button::before {
    display: none;
  }

  .guest-row > label[data-label="回执"],
  .guest-row > label[data-label="桌位"] {
    grid-column: span 1;
  }

  .guest-row > label[data-label="桌位"] {
    grid-column: 2;
  }

  .guest-row > .icon-button {
    grid-column: 1;
    align-self: end;
  }

  .compact-field {
    grid-column: 2;
    justify-self: end;
    width: 72px;
  }

  .table-grid {
    grid-template-columns: 1fr;
  }

  .unassigned-zone__head {
    display: block;
  }

  .unassigned-zone__head p {
    margin-top: 5px;
  }

  .guest-chip {
    max-width: none;
    flex: 1 1 190px;
  }

  .share-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .qr-block {
    width: 270px;
    max-width: 100%;
  }

  .admin-link-note {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-link-note .button {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }

  .mini-table-list {
    grid-template-columns: 1fr;
  }

  .mini-table-list article:nth-child(odd),
  .mini-table-list article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .onboarding__visual {
    height: 34vh;
    min-height: 270px;
  }

  .onboarding__statement h1 {
    font-size: 29px;
  }

  .onboarding__form-head h2 {
    font-size: 32px;
  }

  .event-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .event-form .field,
  .form-grid .field {
    grid-column: 1;
  }

  .section-toolbar {
    display: block;
  }

  .section-toolbar .toolbar-actions {
    justify-content: flex-start;
    margin-top: 17px;
  }

  .section-toolbar .toolbar-actions .button {
    flex: 1;
  }

  .workspace-tab svg {
    width: 16px;
    height: 16px;
  }

  .workspace-tab span {
    font-size: 11px;
  }

  .share-actions .button {
    width: 100%;
  }

  .print-preview__head {
    display: block;
  }

  .print-preview__head > p {
    margin-top: 8px;
  }

  .modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .modal__panel,
  .modal__panel--wide {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .modal__panel > header,
  .modal__panel > footer,
  .modal__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rsvp-visual {
    height: 44vh;
    min-height: 320px;
  }

  .rsvp-visual__overlay h1 {
    font-size: 34px;
  }

  .rsvp-form-wrap {
    padding: 42px 20px 64px;
  }

  .attendance-choice {
    grid-template-columns: 1fr;
  }

  .pricing-note {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .payment-offer ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 13mm;
  }

  body {
    background: #fff;
  }

  body > *:not(#app),
  #app > *:not(.print-sheet),
  .app-shell,
  .modal,
  .toast {
    display: none !important;
  }

  #printSheet.print-sheet {
    display: block !important;
    color: #111;
    font-family: var(--sans);
  }

  .print-sheet > header {
    margin-bottom: 9mm;
    padding-bottom: 5mm;
    border-bottom: 1px solid #222;
    text-align: center;
  }

  .print-sheet > header p {
    margin-bottom: 2mm;
    font-size: 7pt;
  }

  .print-sheet > header h1 {
    margin-bottom: 2mm;
    font-family: var(--serif);
    font-size: 22pt;
    font-weight: 600;
  }

  .print-sheet > header span {
    font-size: 8pt;
  }

  .print-sheet__tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5mm;
  }

  .print-sheet__tables article {
    padding: 4mm;
    break-inside: avoid;
    border: 1px solid #888;
  }

  .print-sheet__tables h2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3mm;
    padding-bottom: 2mm;
    border-bottom: 1px solid #bbb;
    font-family: var(--serif);
    font-size: 11pt;
  }

  .print-sheet__tables h2 small {
    font-family: var(--sans);
    font-size: 7pt;
    font-weight: 400;
  }

  .print-sheet__tables ol {
    margin: 0;
    padding-left: 5mm;
  }

  .print-sheet__tables li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5mm;
    gap: 3mm;
    font-size: 8pt;
  }

  .print-sheet__tables li small {
    color: #555;
    font-size: 7pt;
  }

  .print-sheet__tables .print-empty {
    color: #777;
  }

  .print-sheet > footer {
    margin-top: 8mm;
    color: #777;
    font-size: 6pt;
    text-align: center;
  }
}
