:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #24211e;
  --muted: #6d665f;
  --muted-strong: #4f4943;
  --border: #ddd5ca;
  --border-strong: #c8bdad;
  --primary: #231408;
  --primary-container: #3a281b;
  --primary-hover: #2d1f15;
  --success: #3f6b55;
  --success-bg: #edf5ef;
  --warning: #b47a2b;
  --warning-bg: #fff4df;
  --error: #9b3f3f;
  --error-bg: #fff0ef;
  --radius: 8px;
  --radius-tight: 4px;
  --shadow: 0 1px 2px rgba(58, 40, 27, 0.05);
  --headline-font: "EB Garamond", Georgia, "Times New Roman", serif;
  --body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: #5a402e;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--primary);
  font-family: var(--headline-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-section {
  display: grid;
  gap: 8px;
}

.sidebar-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--primary-container);
  border-radius: var(--radius);
  background: var(--primary-container);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}

.sidebar-primary:hover {
  background: var(--primary-hover);
}

.sidebar-label {
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 650;
}

button.nav-item,
.nav-action {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.nav-item:hover .nav-hint,
.nav-item.is-active .nav-hint {
  color: rgba(255, 255, 255, 0.76);
}

.nav-icon {
  width: 20px;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  flex: 0 0 auto;
}

.nav-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-main {
  min-width: 0;
}

.content {
  width: min(1180px, calc(100vw - 248px - 64px));
  margin: 0 auto;
  padding: 0 0 58px;
}

.page-header {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 28px;
  padding: 28px 0 16px;
  border-bottom: 1px solid rgba(221, 213, 202, 0.55);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(8px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--muted-strong);
  text-decoration: none;
}

.breadcrumbs span + span::before,
.breadcrumbs span + a::before,
.breadcrumbs a + span::before,
.breadcrumbs a + a::before {
  content: "/";
  margin-right: 8px;
  color: #a89b8c;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--headline-font);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.18;
}

h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
}

.stack-spacer {
  height: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover,
button:hover {
  border-color: #9d8c7b;
}

.button.primary,
button.primary {
  border-color: var(--primary-container);
  background: var(--primary-container);
  color: #fff;
}

.button.primary:hover,
button.primary:hover {
  background: var(--primary-hover);
}

button:disabled,
button:disabled:hover {
  border-color: var(--border);
  background: #e7e1d8;
  color: #897d71;
  cursor: not-allowed;
}

.button.subtle,
button.subtle {
  background: transparent;
}

.button.small,
button.small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}

.button.danger,
button.danger {
  border-color: rgba(155, 63, 63, 0.35);
  color: var(--error);
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.message {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted-strong);
}

.message.success {
  border-color: rgba(63, 107, 85, 0.35);
  background: var(--success-bg);
}

.message.error {
  border-color: rgba(155, 63, 63, 0.35);
  background: var(--error-bg);
}

.message.warning {
  border-color: rgba(180, 122, 43, 0.35);
  background: var(--warning-bg);
}

.content-grid,
.dashboard-grid,
.workspace-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: repeat(12, 1fr);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.workspace-grid {
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  align-items: start;
}

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.card-body {
  min-width: 0;
  padding: 18px;
}

.card-footer {
  padding: 0 18px 18px;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-12 {
  grid-column: span 12;
}

.stat-card {
  display: grid;
  gap: 4px;
  min-height: 110px;
  padding: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.stat-value {
  color: var(--primary);
  font-family: var(--headline-font);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
}

.stat-value.compact {
  font-size: 22px;
}

.stat-note {
  color: var(--muted);
  font-size: 13px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-success {
  border-color: rgba(63, 107, 85, 0.3);
  background: var(--success-bg);
  color: var(--success);
}

.status-warning {
  border-color: rgba(180, 122, 43, 0.32);
  background: var(--warning-bg);
  color: #7c5018;
}

.status-error {
  border-color: rgba(155, 63, 63, 0.32);
  background: var(--error-bg);
  color: var(--error);
}

.row-list {
  display: grid;
}

.row-item {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.row-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.row-title {
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.row-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.structured-table {
  width: 100%;
  border-collapse: collapse;
}

.structured-table th,
.structured-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.structured-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.structured-table tr:first-child th,
.structured-table tr:first-child td {
  border-top: 0;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border: 1px solid var(--border);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checkmark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.checkmark.is-complete {
  border-color: rgba(63, 107, 85, 0.3);
  background: var(--success-bg);
  color: var(--success);
}

.summary-media {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.portrait-thumb {
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--headline-font);
  font-size: 28px;
}

.portrait-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.definition-list {
  display: grid;
  gap: 12px;
}

.definition-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.definition-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.definition-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.guestbook-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.publication-actions,
.guestbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attention-list {
  display: grid;
  gap: 10px;
}

.attention-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tight);
  background: var(--surface-soft);
}

.attention-item strong {
  font-size: 14px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.form-card {
  max-width: none;
}

.form-single {
  max-width: 920px;
}

.form-layout {
  display: grid;
  gap: 18px;
}

.form-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.form-sidebar {
  display: grid;
  gap: 14px;
}

.sidebar-note-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-note-list li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar-note-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-section-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.form-field {
  display: grid;
  gap: 6px;
}

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

.form-field label {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-help-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.inline-help-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.form-field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.button:focus-visible,
button:focus-visible,
.nav-item:focus-visible {
  outline: 3px solid rgba(180, 122, 43, 0.28);
  outline-offset: 2px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: rgba(155, 63, 63, 0.65);
}

.form-field--checkbox {
  align-self: end;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--ink);
}

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

.radio-fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-fieldset legend {
  padding: 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
}

.template-card-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.form-field .template-card-option {
  position: relative;
  display: grid;
  min-height: 300px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.form-field .template-card-option:hover {
  border-color: var(--primary-container);
  background: var(--surface-soft);
}

.form-field .template-card-option:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: #fffcf7;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.form-field .template-card-option:has(input[type="radio"]:focus-visible) {
  outline: 3px solid rgba(180, 122, 43, 0.28);
  outline-offset: 2px;
}

.form-field .template-card-option input[type="radio"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-field .template-card-option input[type="radio"]:focus {
  outline: 0;
}

.template-card-option__body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.template-card-option__preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-tight);
  background: var(--surface-soft);
}

.template-card-option__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card-option__header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.template-card-option__title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
}

.template-card-option__category {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.template-card-option__description {
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.45;
}

.template-card-option__swatches {
  display: flex;
  gap: 5px;
}

.template-card-option__swatch {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(58, 40, 27, 0.22);
  border-radius: 50%;
  background: var(--swatch-color);
}

.template-card-option__id {
  align-self: end;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.errorlist,
.errors {
  margin: 0;
  padding-left: 18px;
  color: var(--error);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  background: transparent;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.guestbook-column {
  display: grid;
  gap: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.invite-body,
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: var(--bg);
}

.login-shell,
.invite-shell {
  width: min(100%, 540px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.login-wordmark {
  color: var(--ink);
  font-family: var(--headline-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.login-card-header {
  text-align: center;
}

.login-card-header h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.login-card-header p,
.invite-brand p,
.invite-copy,
.login-footer {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.login-footer {
  text-align: center;
}

.login-remember {
  justify-content: flex-start;
  min-height: auto;
  color: var(--muted-strong);
  font-size: 12px;
}

.standalone-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.standalone-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.standalone-panel.soft {
  background: var(--surface-soft);
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card form,
.standalone-panel form,
.invite-card form {
  display: grid;
  gap: 13px;
}

.login-card form p,
.standalone-panel form p {
  margin: 0;
}

.login-card label,
.standalone-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
}

.login-card input,
.standalone-panel input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-tight);
}

.invite-shell {
  width: min(100%, 560px);
}

.invite-brand {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.invite-card {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.invite-card h1 {
  max-width: 440px;
  justify-self: center;
  margin-bottom: 0;
  font-size: clamp(24px, 5vw, 30px);
  text-align: center;
}

.invite-copy {
  max-width: 440px;
  justify-self: center;
  text-align: center;
}

.invite-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tight);
  background: var(--surface-soft);
}

.invite-summary div > strong,
.invite-summary div > span {
  display: block;
}

.invite-summary div > span {
  color: var(--muted);
  font-size: 12px;
}

.invite-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-tight);
  background: var(--surface);
  color: var(--primary);
  font-weight: 800;
}

.invite-card-secondary {
  padding: 24px;
}

.next-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.next-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: steps;
}

.next-steps li::before {
  content: counter(steps);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  grid-row: 1 / span 2;
}

.next-steps strong,
.next-steps span {
  display: block;
  grid-column: 2;
}

.next-steps span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }

  .content {
    width: min(100% - 32px, 1180px);
    padding-top: 22px;
  }

  .page-title-row,
  .dashboard-layout,
  .workspace-grid,
  .guestbook-layout,
  .standalone-shell,
  .form-page-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-12 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .dashboard-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-card-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-body {
    overflow-x: auto;
  }

  .structured-table {
    min-width: 540px;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-12 {
    grid-column: span 1;
  }

  .row-item,
  .checklist-item,
  .summary-media,
  .definition-row {
    grid-template-columns: 1fr;
  }

  .content {
    width: min(100% - 24px, 1180px);
  }

  .card-header,
  .standalone-panel,
  .login-card,
  .invite-card {
    padding: 18px;
  }

  .invite-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .invite-summary .status-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
