:root {
  --ink: #2e2a24;
  --ink-soft: #6d6458;
  --cream: #f7f2e9;
  --guide: #eee5d7;
  --paper: #fffcf7;
  --line: #e4d9c6;
  --line-strong: #cdbfa8;
  --black: #111111;
  --green: #1e7b45;
  --green-dark: #155f34;
  --blue: #2255cc;
  --blue-dark: #173e9b;
  --red: #b3261e;
  --red-dark: #8f1c16;
  --amber: #8a5a00;
  --amber-pale: #fff1c7;
  --blue-pale: #e7efff;
  --green-pale: #dff3e7;
  --shadow: 0 18px 50px rgb(68 53 29 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

button,
a,
input,
select,
textarea,
[tabindex] {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #f0a928;
}

button {
  touch-action: manipulation;
}

.demo-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 64px);
  color: #f8f4ec;
  background: var(--black);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-lockup strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: 0.01em;
}

.brand-lockup span {
  margin-top: 4px;
  color: #bdb8af;
  font-size: 12px;
}

.demo-disclaimer {
  margin: 0;
  color: #d8d3ca;
  font-size: 13px;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-actions a {
  color: #e9e3d9;
  font-size: 13px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.header-actions a:hover {
  color: #ffffff;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(-1px);
}

.button:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
  color: #7d7971;
  border-color: #d4d0c9;
  background: #e4e2dd;
  cursor: default;
  transform: none;
}

.button-gated {
  color: #6f6a62;
  border-color: #c9c4bb;
  background: #e4e2dd;
}

.button-gated:hover {
  background: #d9d6d0;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
}

.button-primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button-secondary {
  color: #ffffff;
  background: var(--blue);
}

.button-secondary:hover:not(:disabled) {
  background: var(--blue-dark);
}

.button-danger {
  color: #ffffff;
  background: var(--red);
}

.button-danger:hover:not(:disabled) {
  background: var(--red-dark);
}

.button-neutral,
.button-light {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper);
}

.button-neutral:hover:not(:disabled),
.button-light:hover:not(:disabled) {
  background: #f4ede1;
}

.button-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.tour-progress {
  position: relative;
  z-index: 2;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  scrollbar-width: thin;
}

.tour-progress ol {
  width: max-content;
  min-width: 100%;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 17px clamp(18px, 3vw, 48px) 15px;
  list-style: none;
}

.tour-step {
  position: relative;
  min-width: 92px;
  flex: 0 1 112px;
  text-align: center;
}

.tour-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 1px;
  background: var(--line-strong);
}

.tour-step.is-complete:not(:last-child)::after {
  background: var(--green);
}

.step-marker {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.tour-step.is-current .step-marker {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-pale);
}

.tour-step.is-complete .step-marker {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
}

.step-nav-button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.step-nav-button:not(:disabled) {
  cursor: pointer;
}

.step-nav-button:disabled {
  color: #aaa397;
  background: transparent;
}

.tour-step.is-current .step-nav-button,
.tour-step.is-complete .step-nav-button:not(:disabled) {
  color: var(--ink);
}

.demo-layout {
  min-height: calc(100vh - 165px);
  display: grid;
  grid-template-columns: minmax(360px, 2fr) minmax(570px, 3fr);
}

.guide-column {
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 28%) 0, transparent 44%),
    var(--guide);
}

.guide-inner {
  position: sticky;
  top: 0;
  min-height: calc(100vh - 165px);
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 72px) clamp(26px, 5vw, 68px) 32px;
}

.step-kicker,
.section-label,
.file-number,
.mini-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-column h1 {
  max-width: 620px;
  margin: 10px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.step-copy {
  max-width: 660px;
  color: #494239;
  font-size: clamp(16px, 1.45vw, 18px);
}

.step-copy p {
  margin: 0 0 12px;
}

.action-card {
  max-width: 680px;
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 0;
}

.action-card .section-label,
.why-card .section-label {
  margin-bottom: 11px;
}

.action-copy {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.field-stack {
  display: flex;
  min-width: 150px;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 5px;
}

.field-stack label,
.field-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
}

textarea {
  min-height: 78px;
  resize: vertical;
}

input[readonly] {
  color: var(--ink-soft);
  background: #f2ede4;
}

.why-card {
  max-width: 680px;
  margin-top: 26px;
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 17px;
}

.why-card p:last-child {
  margin: 0;
  color: #514a40;
  font-size: 14px;
}

.guide-navigation {
  max-width: 680px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 38px;
}

.next-group {
  display: flex;
  max-width: 330px;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}

.next-reason {
  min-height: 18px;
  color: var(--ink-soft);
  font-size: 12px;
}

.file-column {
  min-width: 0;
  padding: clamp(22px, 3vw, 48px);
  background:
    radial-gradient(circle at 100% 0, rgb(255 255 255 / 80%), transparent 34%),
    var(--cream);
}

.notice {
  max-width: 1020px;
  margin: 0 auto 14px;
  border: 1px solid #e2bd5b;
  border-radius: 8px;
  padding: 11px 14px;
  color: #5f4306;
  background: var(--amber-pale);
  font-size: 13px;
}

.event-file {
  max-width: 1020px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.file-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.file-heading h2 {
  margin: 3px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 400;
  line-height: 1.1;
}

.file-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.file-header-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pill-new {
  color: #173d83;
  background: var(--blue-pale);
}

.pill-waiting {
  color: #744a00;
  background: var(--amber-pale);
}

.pill-done {
  color: #135b31;
  background: var(--green-pale);
}

.file-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  background: #fbf6ef;
}

.file-tab {
  min-height: 51px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 14px 8px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.file-tab[aria-selected="true"] {
  border-bottom-color: var(--green);
  color: var(--ink);
}

.file-panel {
  min-height: 540px;
  padding: clamp(22px, 3vw, 34px);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h3,
.record-card h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.panel-heading h3 {
  font-size: 26px;
}

.record-card h4 {
  font-size: 19px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(24px, 1fr));
  gap: 5px;
  margin: 4px 0 25px;
}

.status-node {
  position: relative;
  min-width: 0;
  padding-top: 19px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.status-node::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #cfc7ba;
  box-shadow: 0 0 0 1px #cfc7ba;
  transform: translateX(-50%);
}

.status-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 7px);
  right: calc(-50% + 7px);
  height: 1px;
  background: #d8d0c4;
}

.status-node.is-past {
  color: #3e7253;
}

.status-node.is-past::before {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.status-node.is-past:not(:last-child)::after {
  background: var(--green);
}

.status-node.is-active {
  color: var(--ink);
  font-weight: 800;
}

.status-node.is-active::before {
  background: #d59a22;
  box-shadow: 0 0 0 2px #f6dfaa;
}

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

.record-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fffdf9;
}

.record-card.wide {
  grid-column: 1 / -1;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(105px, 0.75fr) minmax(130px, 1.25fr);
  gap: 9px 16px;
  margin: 15px 0 0;
}

.detail-list dt {
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.capacity-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e0d4;
}

.capacity-bar span {
  display: block;
  width: 88.46%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.contract-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fffefa;
}

.contract-preview p {
  margin: 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.payment-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.payment-table th,
.payment-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.payment-table tr:last-child td {
  border-bottom: 0;
}

.payment-table th {
  color: var(--ink-soft);
  background: #f5eee4;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-table th:first-child,
.payment-table th:nth-child(2),
.payment-table td:first-child,
.payment-table td:nth-child(2) {
  text-align: left;
}

.payment-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.payment-table .amount-input {
  width: 100px;
  min-height: 36px;
  text-align: right;
}

.payment-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.payment-actions,
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.inline-reason {
  color: var(--ink-soft);
  font-size: 12px;
}

.payments-log {
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.payments-log h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.payments-log ul,
.history-list,
.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.payments-log li {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eee6da;
  font-size: 12px;
}

.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.total-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #f8f2e9;
}

.total-box span {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.total-box strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.checkout-ledger {
  margin-bottom: 21px;
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.ledger-row span {
  color: var(--ink-soft);
}

.ledger-row.total-row {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.deposit-decision {
  margin: 19px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbf6ef;
}

.deposit-decision p {
  margin: 0 0 11px;
  font-weight: 750;
}

.withhold-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.history-list li {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.history-time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.history-action {
  font-size: 13px;
}

.history-author {
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--ink-soft);
  background: #eee7dc;
  font-size: 10px;
  font-weight: 800;
}

.guest-counter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.guest-counter strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.guide-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.guide-done {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.office-requests,
.portal-extras {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.office-request-row,
.portal-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
}

.client-portal {
  border: 1px solid #bfd0c5;
  border-radius: 12px;
  padding: clamp(20px, 3vw, 30px);
  background: #f3f8f4;
}

.client-portal-locked {
  min-height: 250px;
}

.portal-lock-message {
  margin-top: 26px;
  border: 1px dashed #9db7a5;
  border-radius: 10px;
  padding: 34px 20px;
  color: var(--ink-soft);
  background: #ffffff;
  text-align: center;
}

.client-portal-heading {
  margin-bottom: 20px;
  border-bottom: 1px solid #cbd9cf;
  padding-bottom: 18px;
}

.client-portal-heading h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 400;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-summary-grid > div {
  border: 1px solid #d2ddd5;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.portal-summary-grid span,
.portal-summary-grid strong {
  display: block;
}

.portal-summary-grid span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.portal-summary-grid strong {
  margin-top: 3px;
  font-size: 13px;
}

.portal-section {
  margin-top: 18px;
  border: 1px solid #d2ddd5;
  border-radius: 10px;
  padding: 17px;
  background: #ffffff;
}

.portal-section h4 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.portal-section .guest-counter h4 {
  margin-bottom: 5px;
}

.portal-account-table th:nth-child(2),
.portal-account-table td:nth-child(2) {
  text-align: right;
}

.portal-request-status {
  color: #744a00;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.portal-link-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.summary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-block {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 17px;
  background: rgb(255 252 247 / 65%);
}

.summary-block h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.summary-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 20px;
  color: #4d463d;
  font-size: 13px;
}

.summary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.closing-copy {
  margin-top: 18px;
}

.closing-copy p {
  margin: 7px 0;
}

.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 18px 0;
}

.closing-links a {
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink-soft);
  text-align: center;
}

.noscript-message {
  margin: 0;
  padding: 20px;
  color: #ffffff;
  background: var(--red);
  text-align: center;
}

@media (max-width: 1120px) {
  .demo-header {
    grid-template-columns: 1fr 1fr;
  }

  .demo-disclaimer {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .demo-layout {
    grid-template-columns: minmax(330px, 2fr) minmax(500px, 3fr);
  }

  .guide-inner {
    padding-left: 34px;
    padding-right: 34px;
  }
}

@media (max-width: 899px) {
  .demo-header {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .demo-disclaimer {
    grid-column: auto;
    grid-row: auto;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .demo-layout {
    display: block;
  }

  .guide-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-inner {
    position: static;
    min-height: auto;
    padding: 40px clamp(20px, 6vw, 56px) 30px;
  }

  .guide-column h1 {
    font-size: clamp(35px, 8vw, 54px);
  }

  .guide-navigation {
    margin-top: 5px;
  }

  .file-column {
    padding: 28px clamp(14px, 4vw, 36px) 50px;
  }

  .file-panel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .detail-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-list dd {
    margin-bottom: 8px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .tour-progress ol {
    justify-content: flex-start;
  }

  .tour-step {
    min-width: 82px;
  }

  .file-header {
    display: block;
    padding: 21px;
  }

  .file-header-status {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .file-tabs {
    padding: 0 8px;
  }

  .file-tab {
    padding-left: 10px;
    padding-right: 10px;
  }

  .file-panel {
    padding: 21px 16px;
  }

  .status-strip {
    grid-template-columns: repeat(11, 49px);
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .status-node:not(:last-child)::after {
    left: calc(50% + 7px);
    right: -32px;
  }

  .record-grid,
  .summary-columns,
  .portal-summary-grid,
  .payment-meta {
    grid-template-columns: 1fr;
  }

  .record-card.wide {
    grid-column: auto;
  }

  .payment-table th,
  .payment-table td {
    padding: 9px 7px;
  }

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

  .history-list li,
  .payments-log li {
    grid-template-columns: 52px 1fr;
  }

  .history-author,
  .payments-log li strong {
    grid-column: 2;
    justify-self: start;
  }

  .guide-navigation {
    align-items: stretch;
  }

  .next-group {
    align-items: stretch;
  }

  .next-group .button {
    width: 100%;
  }

  .office-request-row,
  .portal-extra-row,
  .portal-section .guest-counter {
    align-items: flex-start;
    flex-direction: column;
  }
}

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