.card,
.attachment-thumb,
.attachment-preview,
.attachment-visual,
.subcard,
.edit-follow-up-card,
.edit-subcard,
.inline-form,
.archive-entry,
.related-content-link,
.scheduling-option-row,
.poll-option-row,
.scheduling-response-row,
.info-chip,
.message-list li,
details.secondary-actions,
.free-table-builder.is-fullscreen,
.free-table-detail-shell.is-fullscreen,
.calendar-popover-card {
  border: none;
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 2rem;
  border-radius: var(--radius-surface);
  background: var(--surface-card);
}

.compact-card {
  padding: 1.35rem 1.45rem;
}

.subcard,
.edit-follow-up-card,
.edit-subcard,
.inline-form,
.scheduling-option-row,
.poll-option-row,
.scheduling-response-row,
.info-chip,
.archive-entry,
.list-entry-card,
.related-content-link,
.message-list li,
details.secondary-actions {
  background: var(--surface);
}

.list-entry-card,
.archive-entry {
  border: 1px solid var(--border-soft-strong);
  box-shadow: var(--shadow-card-inset-soft);
}

.global-message-list li {
  border: 1px solid var(--global-message-border, color-mix(in srgb, var(--type-initiative) 24%, var(--line)));
  border-left: 6px solid var(--global-message-accent, var(--type-initiative));
  background: var(--global-message-surface, color-mix(in srgb, var(--type-initiative) 6%, var(--surface)));
  box-shadow: var(--shadow-card-inset-soft);
}

.type-pill,
.related-content-icon,
.nav-count-badge,
.attachment-file-icon,
.mini-calendar .calendar-day-has-events a,
.mini-calendar .calendar-day-has-events span,
.mini-calendar .calendar-day-has-events summary,
.mini-calendar .calendar-day-deadline a,
.mini-calendar .calendar-day-deadline span,
.mini-calendar .calendar-day-deadline summary {
  border: none;
  color: var(--ink-inverse);
  background: var(--type-event);
  box-shadow: var(--shadow-inset-light);
}

.inline-form button {
  border: 2px solid var(--button-link-accent, #206223);
  background: var(--surface);
  box-shadow: none;
  color: var(--type-neutral);
  font-family: var(--font-body);
  font-size: var(--font-size-ui-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-ui);
}

.inline-form input:not([type="checkbox"], [type="radio"]),
.inline-form select,
.inline-form textarea,
.mini-rich-surface,
.free-table-builder-table textarea,
.link-picker-search {
  border: 1px solid var(--field-border-soft);
  background: var(--field-surface);
  box-shadow: var(--field-shadow);
}

.inline-form input:focus,
.inline-form select:focus,
.inline-form textarea:focus,
.mini-rich-surface:focus,
.link-picker-search:focus {
  outline: none;
  border-color: var(--field-border-focus);
  background: var(--field-surface-focus);
  box-shadow: var(--field-shadow-focus);
}

.card > .card.section-gap,
.card > .detail-related-card,
.card > .detail-actions-card {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.card > .card.detail-primary-card {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
