:root {
  --ink: #1f2a24;
  --muted: #69756f;
  --line: #dce3dd;
  --surface: #f7f8f4;
  --panel: #ffffff;
  --accent: #315b37;
  --accent-dark: #1f3f26;
  --accent-soft: #e8f0e6;
  --danger: #9b2d20;
  --warning: #886516;
  --shadow: 0 18px 40px rgba(31, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-main {
  width: min(1680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 44px;
}

.login-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.login-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.public-link-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.staff-access-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.admin-header,
.toolbar,
.editor-header,
.editor-actions,
.admin-summary,
.listing-card__actions,
.preview-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-header {
  margin-bottom: 22px;
}

.admin-lead {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Bitter, Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.04rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  color: #fff;
  background: var(--accent);
}

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

.button--muted {
  color: var(--ink);
  background: #e8ede6;
}

.button--warning {
  color: #5d3d1f;
  background: #eadcca;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 700;
}

.status-pill.is-error {
  color: var(--danger);
  background: #f8e8e5;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.alert.is-error {
  border-color: var(--danger);
}

.alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

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

.agent-choice {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.agent-choice img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.agent-choice div {
  display: grid;
  gap: 2px;
}

.agent-choice span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.toolbar {
  align-items: end;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.form-field__label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rich-editor:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(49, 91, 55, 0.12);
}

.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f2;
}

.rich-editor__toolbar button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--ink);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
}

.rich-editor__toolbar button:hover,
.rich-editor__toolbar button:focus-visible {
  border-color: var(--line);
  background: #fff;
}

.rich-editor__separator {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--line);
}

.rich-editor__surface {
  min-height: 190px;
  padding: 12px;
  color: var(--ink);
  line-height: 1.6;
  outline: none;
  overflow-wrap: anywhere;
}

.rich-editor__surface--compact {
  min-height: 108px;
}

.rich-editor__surface p {
  margin: 0 0 0.8em;
}

.rich-editor__surface p:last-child {
  margin-bottom: 0;
}

.rich-editor__surface ul,
.rich-editor__surface ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.rich-editor__surface a {
  color: var(--accent);
  text-decoration: underline;
}

small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.search-field {
  flex: 1 1 420px;
  min-width: min(100%, 280px);
}

.toolbar > label:not(.search-field) {
  flex: 1 1 150px;
  min-width: 140px;
}

.admin-summary {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.admin-summary p {
  margin: 0;
}

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

.listing-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}

.listing-card--empty {
  grid-column: 1 / -1;
}

.listing-card--low-priority {
  background: #f1f0eb;
  border-color: #d2d3cc;
}

.listing-card--sold {
  border-left: 5px solid #8c5f30;
}

.listing-card--off-market {
  border-left: 5px solid #7d7d75;
}

.listing-card--low-priority .listing-card__image {
  filter: saturate(0.62);
  opacity: 0.78;
}

.listing-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: #d9ded8;
}

.listing-card__title {
  margin-bottom: 6px;
  line-height: 1.18;
}

.listing-card__meta {
  margin: 0;
  color: var(--muted);
}

.listing-card__excerpt {
  display: -webkit-box;
  min-height: 3.5em;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge--sold {
  color: #5d3d1f;
  background: #eadcca;
}

.badge--off-market {
  color: #4f514e;
  background: #dfdfda;
}

.listing-card__actions {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr;
}

.quick-status {
  display: grid;
  gap: 8px;
}

.quick-status__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.editor-dialog,
.preview-dialog,
.confirm-dialog,
.agent-manager-dialog,
.auction-manager-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.editor-dialog {
  width: min(1180px, calc(100vw - 32px));
}

.editor-dialog::backdrop,
.preview-dialog::backdrop,
.confirm-dialog::backdrop,
.agent-manager-dialog::backdrop,
.auction-manager-dialog::backdrop {
  background: rgba(23, 35, 28, 0.62);
}

.editor-form,
.preview-panel,
.agent-manager-panel,
.auction-manager-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.agent-manager-dialog {
  width: min(1100px, calc(100vw - 32px));
}

.auction-manager-dialog {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.auction-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: end;
}

.auction-manager-toolbar .step-note {
  margin: 0 0 10px;
}

.auction-manager-sections,
.auction-order-preview-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auction-manager-section,
.auction-order-preview-columns section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f7f9f5;
}

.auction-manager-section__heading h3,
.auction-manager-section__heading p,
.auction-order-preview-columns h3 {
  margin: 0;
}

.auction-manager-section__heading h3 span {
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
}

.auction-manager-list {
  display: grid;
  gap: 10px;
  min-height: 108px;
  margin-top: 12px;
  padding: 4px;
  border: 2px dashed transparent;
  border-radius: 8px;
}

.auction-manager-list.is-drop-target {
  border-color: var(--accent);
  background: #eef5ea;
}

.auction-manager-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auction-manager-row {
  display: grid;
  grid-template-columns: auto 74px minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.auction-manager-row.is-dragging {
  opacity: 0.4;
}

.auction-manager-row__drag {
  cursor: grab;
  color: var(--muted);
  font-weight: 800;
}

.auction-manager-row__image {
  width: 74px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf1eb;
}

.auction-manager-row__identity strong,
.auction-manager-row__identity span {
  display: block;
}

.auction-manager-row__identity span {
  color: var(--muted);
  font-size: 0.9rem;
}

.auction-manager-row__controls {
  display: grid;
  grid-template-columns: 72px repeat(3, auto);
  gap: 6px;
  align-items: end;
}

.auction-manager-row__controls label span {
  font-size: 0.76rem;
}

.auction-manager-row__controls input {
  min-width: 0;
}

.auction-manager-row button:disabled,
.auction-manager-row input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.auction-order-preview-columns ol {
  margin: 10px 0 0;
  padding-left: 28px;
}

.auction-order-preview-columns li + li {
  margin-top: 6px;
}

.agent-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  gap: 12px;
  align-items: end;
}

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

.agent-manager-row {
  display: grid;
  grid-template-columns: auto 56px minmax(180px, 1fr) minmax(150px, 0.7fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.agent-manager-row.is-inactive {
  opacity: 0.68;
  background: #f1f2ef;
}

.agent-manager-row.is-dragging {
  opacity: 0.4;
}

.agent-manager-row__drag {
  cursor: grab;
  font-weight: 800;
  color: var(--muted);
}

.agent-manager-row__photo {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf1eb;
}

.agent-manager-row__identity strong,
.agent-manager-row__identity span {
  display: block;
}

.agent-manager-row__identity span,
.agent-manager-row__contact {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.agent-manager-row__order {
  width: 76px;
}

.agent-manager-row__moves {
  display: flex;
  gap: 6px;
}

.agent-headshot-preview {
  width: 120px;
  height: 150px;
}

.agent-headshot-preview img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.editor-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #e8ede6;
  font-weight: 800;
}

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

.step-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.step-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.step-tab.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.editor-step {
  display: none;
  gap: 14px;
}

.editor-step.is-active {
  display: grid;
}

.step-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.presentation-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.presentation-controls {
  display: grid;
  gap: 14px;
}

.presentation-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.presentation-group legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.presentation-group > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.presentation-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.presentation-choice {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.presentation-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(49, 91, 55, 0.13);
  background: var(--accent-soft);
}

.presentation-choice:has(input:focus-visible),
.focal-point-grid label:has(input:focus-visible) {
  outline: 3px solid rgba(49, 91, 55, 0.3);
  outline-offset: 2px;
}

.presentation-choice input,
.focal-point-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.presentation-choice strong {
  font-size: 0.9rem;
}

.presentation-choice small {
  line-height: 1.25;
}

.hero-choice-preview {
  position: relative;
  height: 62px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #66786b, #b6a78e);
}

.hero-choice-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(18, 23, 19, 0.72));
}

.hero-choice-preview i {
  position: absolute;
  z-index: 1;
  width: 44%;
  height: 5px;
  border-radius: 4px;
  background: #fffaf4;
}

.hero-choice-preview--classic i {
  left: 8px;
  bottom: 10px;
}

.hero-choice-preview--centered i {
  left: 28%;
  bottom: 15px;
}

.hero-choice-preview--framed i {
  left: 13px;
  bottom: 15px;
  box-shadow: 0 0 0 9px rgba(18, 23, 19, 0.58);
}

.focal-point-grid {
  display: grid;
  grid-template-columns: repeat(3, 38px);
  gap: 5px;
  width: max-content;
  padding: 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, #cbd5cc, #e5d8c5);
}

.focal-point-grid label {
  position: relative;
  width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 42, 36, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.focal-point-grid span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.focal-point-grid label:has(input:checked) {
  border-color: var(--accent-dark);
  background: var(--accent);
}

.focal-point-grid label:has(input:checked) span {
  background: #fff;
}

.presentation-choice--accent {
  grid-template-columns: 28px 1fr;
  align-items: center;
}

.accent-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.accent-swatch--green { background: #1e6b5c; }
.accent-swatch--gold { background: #d8a14b; }
.accent-swatch--earth { background: #8c6745; }

.presentation-highlight-fields {
  display: grid;
  gap: 10px;
}

.card-choice-preview {
  height: 46px;
  border: 1px solid #d8ddd7;
  border-radius: 6px;
  background: linear-gradient(90deg, #c9d2c9 34%, #fff 34%);
}

.card-choice-preview--highlighted {
  border: 2px solid #1e6b5c;
  box-shadow: inset 0 4px #1e6b5c;
}

.presentation-preview-panel {
  position: sticky;
  top: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f4f6f2;
}

.presentation-preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.segmented-control button {
  min-height: 32px;
  border: 0;
  padding: 5px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.segmented-control button.is-active {
  background: var(--accent);
  color: #fff;
}

.presentation-preview-stage {
  min-height: 430px;
  display: grid;
  place-items: start center;
  overflow: auto;
  border-radius: 7px;
  padding: 10px;
  background: #dde3dd;
}

.presentation-preview-stage.is-mobile > div {
  width: 260px;
}

.presentation-preview-stage:not(.is-mobile) > div {
  width: 100%;
}

.presentation-preview-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.presentation-live-page,
.presentation-live-card {
  --preview-accent: #1e6b5c;
  --preview-accent-dark: #0f4f43;
  overflow: hidden;
  border-radius: 8px;
  background: #fffaf4;
  color: #1f2521;
  box-shadow: 0 12px 30px rgba(31, 42, 36, 0.16);
}

.presentation-accent--gold { --preview-accent: #d8a14b; --preview-accent-dark: #6d4814; }
.presentation-accent--earth { --preview-accent: #8c6745; --preview-accent-dark: #5b4732; }

.presentation-live-hero {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #25332b;
}

.presentation-live-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presentation-live-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 10%, rgba(18, 23, 19, 0.82));
}

.presentation-live-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  color: #fffaf4;
}

.presentation-live-hero-copy span,
.presentation-live-hero-copy strong,
.presentation-live-hero-copy small {
  display: block;
}

.presentation-live-hero-copy span {
  color: #e5d6bf;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-live-hero-copy strong {
  margin-top: 5px;
  font-family: Bitter, Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.presentation-live-hero-copy small {
  margin-top: 8px;
  color: rgba(255, 250, 244, 0.86);
}

.presentation-live-page.is-centered .presentation-live-hero-copy {
  text-align: center;
}

.presentation-live-page.is-framed .presentation-live-hero-copy {
  width: calc(100% - 34px);
  margin: 0 17px 17px;
  padding: 15px;
  border-left: 4px solid var(--preview-accent);
  border-radius: 6px;
  background: rgba(18, 23, 19, 0.76);
}

.presentation-live-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.presentation-live-lines,
.presentation-live-lines::before,
.presentation-live-lines::after {
  display: block;
  height: 6px;
  border-radius: 8px;
  background: #d8ddd6;
}

.presentation-live-lines {
  width: 92%;
}

.presentation-live-lines::before,
.presentation-live-lines::after {
  content: "";
  margin-top: 7px;
}

.presentation-live-lines::before { width: 76%; }
.presentation-live-lines::after { width: 84%; }

.presentation-live-highlight {
  border-left: 5px solid var(--preview-accent);
  border-radius: 6px;
  padding: 11px;
  background: color-mix(in srgb, var(--preview-accent) 10%, white);
}

.presentation-live-highlight strong,
.presentation-live-highlight span {
  display: block;
}

.presentation-live-highlight strong { color: var(--preview-accent-dark); }
.presentation-live-highlight span { margin-top: 4px; font-size: 0.78rem; line-height: 1.35; }

.presentation-live-card {
  position: relative;
  width: min(310px, 100%);
}

.presentation-live-card.is-highlighted {
  border: 2px solid var(--preview-accent);
  box-shadow: inset 0 5px var(--preview-accent), 0 12px 30px rgba(31, 42, 36, 0.16);
}

.presentation-live-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.presentation-live-card-copy {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.presentation-live-card-copy span { color: #8c6745; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.presentation-live-card-copy strong { font-family: Bitter, Georgia, serif; font-size: 1.1rem; }
.presentation-live-card-copy p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }

.presentation-live-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--preview-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.repeater,
.feature-list,
.gallery-section-list,
.gallery-image-list {
  display: grid;
  gap: 10px;
}

.repeater-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.gallery-section-editor {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcf8;
}

.danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d6a39e;
  border-left: 5px solid var(--danger);
  border-radius: 8px;
  padding: 16px;
  background: #fff8f6;
}

.danger-zone h3,
.danger-zone p {
  margin: 0;
}

.danger-zone p:last-child {
  color: var(--muted);
  font-weight: 700;
}

.danger-zone__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-warning {
  border: 1px solid #d6a39e;
  border-left: 5px solid var(--danger);
  border-radius: 8px;
  padding: 14px;
  background: #fff8f6;
}

.danger-warning strong,
.danger-warning p {
  margin: 0;
}

.danger-warning p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.image-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #edf1eb;
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.checkbox-inline input {
  width: auto;
}

.editor-actions {
  position: sticky;
  bottom: -24px;
  margin: 0 -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.preview-impact {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.preview-change {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.preview-change span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-change strong {
  display: block;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .presentation-editor {
    grid-template-columns: 1fr;
  }

  .presentation-preview-panel {
    position: static;
  }

  .list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-header,
  .toolbar,
  .admin-summary,
  .header-actions,
  .editor-header,
  .editor-actions,
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-manager-toolbar,
  .agent-manager-row,
  .auction-manager-toolbar,
  .auction-manager-sections,
  .auction-order-preview-columns,
  .auction-manager-row {
    grid-template-columns: 1fr;
  }

  .agent-manager-row__moves {
    flex-wrap: wrap;
  }

  .auction-manager-row__drag {
    display: none;
  }

  .auction-manager-row__image {
    width: 100%;
    height: 150px;
  }

  .auction-manager-row__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .danger-zone__actions {
    justify-content: stretch;
  }

  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .step-tabs {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .list-grid {
    grid-template-columns: 1fr;
  }
}
