/* === Course edit specific styles === */

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: #ffffff;
  border-bottom: 1px solid #ebe7df;
  position: sticky;
  top: 0;
  z-index: 30;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6f7c74;
}
.crumbs a {
  color: #1f6b52;
  text-decoration: none;
  font-weight: 500;
}
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { color: #c9c4b8; }
.crumb-current { color: #2a3530; font-weight: 500; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== Global topbar (matches base.html .topbar.topbar-student) ===== */
.topbar-student {
  padding: 14px 28px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-student .topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #14543f;
  margin: 0;
  letter-spacing: -0.01em;
}
.topbar-student .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-iconbtn {
  width: 38px; height: 38px;
  border: 1px solid #e3e6df;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a5650;
  position: relative;
  transition: all 0.15s;
}
.topbar-iconbtn:hover {
  border-color: #c8d4cc;
  color: #14543f;
  background: #f7faf6;
}
.topbar-iconbtn svg { width: 18px; height: 18px; }
.topbar-iconbtn .bell-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d4a657;
  border: 2px solid #fff;
}
.topbar-divider {
  width: 1px;
  height: 26px;
  background: #e3e6df;
  margin: 0 4px;
}
.topbar-logout { display: inline-flex; margin: 0; }
.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid #e3e6df;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
}
.topbar-user:hover {
  border-color: #c8d4cc;
  background: #f7faf6;
}
.topbar-user .user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6b52, #2e8a6b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(20, 84, 63, 0.25);
}
.topbar-user .user-avatar svg { width: 18px; height: 18px; }
.topbar-user .user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.topbar-user .user-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a2520;
}
.topbar-user .user-role {
  font-size: 11px;
  color: #7a8278;
  margin-top: 1px;
}

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e0d4;
  background: #fff;
  color: #4a5650;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:hover { border-color: #1f6b52; color: #1f6b52; }
.icon-dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d4a657;
  box-shadow: 0 0 0 2px #fff;
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid #ebe7df;
  background: #fff;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6b52, #14543f);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
}
.user-info { line-height: 1.15; }
.user-name { font-size: 13px; font-weight: 600; color: #2a3530; }
.user-role { font-size: 11px; color: #8a948e; }

.btn-logout {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #1f6b52;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout:hover { background: #14543f; }

/* Page hero */
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px 18px;
  background: linear-gradient(180deg, #f4efe4 0%, #faf7ee 100%);
  border-bottom: 1px solid #ebe7df;
}
.hero-left { flex: 1; min-width: 0; }
.page-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #1f6b52;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: #14543f;
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.meta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e0d4;
  font-size: 12.5px;
  color: #2a3530;
  font-weight: 500;
}
.meta-tag.meta-muted { color: #6f7c74; }
.meta-tag svg { color: #8a948e; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: #2e8a6b; box-shadow: 0 0 0 3px rgba(46,138,107,0.18); }
.dot-ochre { background: #d4a657; box-shadow: 0 0 0 3px rgba(212,166,87,0.20); }

.hero-right {
  display: flex; gap: 10px; flex-shrink: 0;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: #1f6b52;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 6px 16px -8px rgba(31,107,82,0.6);
}
.btn-primary:hover { background: #14543f; transform: translateY(-1px); }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: #fff;
  color: #1f6b52;
  border: 1px solid #cfe0d6;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost-light:hover { border-color: #1f6b52; background: #f3f9f6; }
.btn-ghost {
  padding: 10px 18px;
  background: transparent;
  color: #4a5650;
  border: 1px solid #e0dccf;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { color: #1f6b52; border-color: #1f6b52; }

/* Tabs */
.edit-tabs {
  display: flex; gap: 4px;
  padding: 0 40px;
  border-bottom: 1px solid #ebe7df;
  background: #faf7ee;
}
.tab {
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6f7c74;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: #1f6b52; }
.tab.active {
  color: #14543f;
  border-bottom-color: #1f6b52;
}
.tab-count {
  background: #e6efe9;
  color: #1f6b52;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.tab.active .tab-count { background: #1f6b52; color: #fff; }

/* Edit grid */
.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 24px 40px 32px;
  align-items: start;
}

/* Cards */
.card, .side-card {
  background: #ffffff;
  border: 1px solid #ebe7df;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #14543f;
  margin: 0 0 4px;
}
.card-sub {
  font-size: 12.5px;
  color: #8a948e;
  margin: 0;
}
.card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: #6f7c74;
  background: #f4efe4;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.card-tag.tag-saved {
  background: #e6efe9;
  color: #1f6b52;
  font-weight: 500;
}

/* Cover */
.cover-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: stretch;
}
.cover-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebe7df;
  aspect-ratio: 1.6 / 1;
}
.cover-image {
  width: 100%; height: 100%;
}
.cover-image svg { width: 100%; height: 100%; display: block; }
.cover-overlay {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(20,84,63,0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cover-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.dropzone {
  flex: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed #cfe0d6;
  border-radius: 12px;
  background: #f6fbf8;
  cursor: pointer;
  transition: all 0.15s;
}
.dropzone:hover { border-color: #1f6b52; background: #eef6f2; }
.dz-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #1f6b52;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dz-text { display: flex; flex-direction: column; line-height: 1.35; }
.dz-text strong { font-size: 13.5px; color: #14543f; font-weight: 600; }
.dz-text span { font-size: 12px; color: #8a948e; }

.btn-link-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  color: #b85a4a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  padding: 4px 8px;
}
.btn-link-ghost:hover { color: #944232; }

/* Fields */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 12.5px;
  color: #4a5650;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field input[type="text"],
.field input[type="number"],
.field textarea,
.select-wrap select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #2a3530;
  padding: 11px 14px;
  border: 1px solid #e0dccf;
  border-radius: 10px;
  background: #fff;
  transition: all 0.15s;
  box-sizing: border-box;
}
.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-color: #1f6b52;
  box-shadow: 0 0 0 3px rgba(31,107,82,0.12);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.field-hint {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11.5px;
  color: #8a948e;
  margin-top: 6px;
}
.char-count { color: #b6b0a3; flex-shrink: 0; }

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #6f7c74;
  border-bottom: 2px solid #6f7c74;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { appearance: none; padding-right: 36px; cursor: pointer; }

.field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

/* Toggles */
.toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.toggle {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ebe7df;
  border-radius: 12px;
  background: #faf7ee;
  cursor: pointer;
  transition: all 0.15s;
}
.toggle:hover { border-color: #cfe0d6; background: #f6fbf8; }
.toggle input { display: none; }
.toggle-track {
  position: relative;
  width: 36px; height: 20px;
  background: #d8d2c2;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-track { background: #1f6b52; }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }
.toggle-text { display: flex; flex-direction: column; line-height: 1.35; }
.toggle-text strong { font-size: 13.5px; color: #14543f; font-weight: 600; }
.toggle-text em { font-size: 12px; color: #8a948e; font-style: normal; margin-top: 2px; }

.price-field { margin-top: 4px; }
.input-affix {
  position: relative;
  display: flex; align-items: center;
  border: 1px solid #e0dccf;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.input-affix:focus-within {
  border-color: #1f6b52;
  box-shadow: 0 0 0 3px rgba(31,107,82,0.12);
}
.affix-prefix {
  padding: 0 12px;
  border-right: 1px solid #ebe7df;
  color: #1f6b52;
  font-weight: 600;
  font-size: 14px;
  align-self: stretch;
  display: flex; align-items: center;
  background: #f6fbf8;
}
.input-affix input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 11px 14px !important;
}
.input-affix input:disabled { color: #b6b0a3; }
.affix-suffix {
  padding: 0 14px;
  font-size: 12px;
  color: #8a948e;
}

/* Modules */
.module-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ebe7df;
  border-radius: 12px;
  background: #faf7ee;
  transition: all 0.15s;
}
.module-row:hover { border-color: #cfe0d6; background: #f6fbf8; }
.module-handle {
  background: transparent;
  border: none;
  color: #b6b0a3;
  cursor: grab;
  padding: 4px;
  border-radius: 6px;
}
.module-handle:hover { color: #4a5650; background: #ebe7df; }
.module-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: #1f6b52;
  background: #e6efe9;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module-num-ghost {
  background: transparent;
  color: #b6b0a3;
  border: 1.5px dashed #d8d2c2;
}
.module-input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  color: #2a3530;
  padding: 9px 12px;
  border: 1px solid #e0dccf;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.module-input:focus { outline: none; border-color: #1f6b52; box-shadow: 0 0 0 3px rgba(31,107,82,0.12); }

.module-meta {
  display: flex; gap: 6px;
  flex-shrink: 0;
}
.meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px;
  color: #6f7c74;
  background: #fff;
  border: 1px solid #ebe7df;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 500;
}
.meta-pill svg { color: #8a948e; }

.module-actions {
  display: flex; gap: 6px;
  flex-shrink: 0;
}
.icon-btn-sm {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid #cfe0d6;
  background: #fff;
  color: #1f6b52;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.icon-btn-sm:hover { background: #1f6b52; color: #fff; border-color: #1f6b52; }
.icon-btn-sm.danger { color: #b85a4a; border-color: #f0d4cd; }
.icon-btn-sm.danger:hover { background: #b85a4a; color: #fff; border-color: #b85a4a; }

.module-add { background: #fff; border-style: dashed; }
.btn-add-module {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #1f6b52;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-add-module:hover { background: #14543f; }

.btn-ai-modules {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #faf2dd, #f4e2b8);
  color: #6b4f1d;
  border: 1px solid #e8d5a8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ai-modules:hover { background: linear-gradient(135deg, #f5e8c4, #ecd29d); }
.ai-spark {
  display: inline-flex;
  color: #d4a657;
}

/* Form bottom bar */
.form-bottom-bar {
  position: sticky;
  bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #ebe7df;
  border-radius: 14px;
  box-shadow: 0 -8px 24px -16px rgba(20,84,63,0.18);
  margin-top: 6px;
}
.bottom-left {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: #6f7c74;
}
.bottom-right { display: flex; gap: 10px; }

/* Side panels */
.side-card { padding: 18px 20px; }
.side-card .card-head { margin-bottom: 14px; }
.side-card .card-title { font-size: 15px; }

.state-row {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px;
}
.state-tile {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e6efe9;
}
.state-tile-soft { background: #faf2dd; }
.state-tile div { display: flex; flex-direction: column; line-height: 1.35; }
.state-tile strong { font-size: 13px; color: #14543f; font-weight: 600; }
.state-tile-soft strong { color: #6b4f1d; }
.state-tile em { font-size: 11.5px; color: #6f7c74; font-style: normal; }
.state-tile .dot { margin-top: 5px; }

.btn-soft-full {
  width: 100%;
  padding: 9px;
  background: #fff;
  color: #1f6b52;
  border: 1px solid #cfe0d6;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-soft-full:hover { background: #1f6b52; color: #fff; }

.progress-pct {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #1f6b52;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #ebe7df;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2e8a6b, #1f6b52);
  border-radius: 999px;
}
.checklist {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: #4a5650;
}
.checklist .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #1f6b52;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checklist .check-empty {
  background: transparent;
  border: 1.5px dashed #d8d2c2;
}
.checklist li:not(.done) { color: #8a948e; }

/* Info panel (hint) */
.panel-info {
  position: relative;
  background: linear-gradient(135deg, #1f6b52, #14543f);
  color: #fff;
  border: none;
  padding: 18px 20px 18px 22px;
}
.panel-info .info-dot {
  position: absolute;
  left: -6px; top: 22px;
  width: 12px; height: 12px;
  background: #d4a657;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212,166,87,0.25);
}
.panel-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.panel-info p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}
.info-link {
  font-size: 12px;
  color: #f4d99c;
  text-decoration: none;
  font-weight: 500;
}
.info-link:hover { color: #fff; }

/* Related rows */
.related-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0ebde;
  transition: all 0.15s;
}
.related-row:last-child { border-bottom: none; }
.related-row:hover { background: #faf7ee; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.related-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #e6efe9;
  color: #1f6b52;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.related-text { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.related-text strong { font-size: 13px; color: #2a3530; font-weight: 600; }
.related-text em { font-size: 11.5px; color: #8a948e; font-style: normal; margin-top: 2px; }
.related-arrow { color: #b6b0a3; flex-shrink: 0; }
.related-row:hover .related-arrow { color: #1f6b52; }

/* Danger card */
.danger-card {
  border: 1px solid #f0d4cd;
  background: #fdf5f3;
}
.danger-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #8e3a2a;
  margin: 0 0 6px;
  font-weight: 600;
}
.danger-card p {
  font-size: 12.5px;
  color: #8a6a64;
  line-height: 1.5;
  margin: 0 0 12px;
}
.btn-danger-soft {
  width: 100%;
  padding: 9px;
  background: #fff;
  color: #b85a4a;
  border: 1px solid #f0d4cd;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-danger-soft:hover { background: #b85a4a; color: #fff; border-color: #b85a4a; }

/* Footer */
.page-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  border-top: 1px solid #ebe7df;
  font-size: 12px;
  color: #8a948e;
  background: #faf7ee;
}
.foot-links { display: flex; gap: 16px; }
.foot-links a {
  color: #6f7c74;
  text-decoration: none;
}
.foot-links a:hover { color: #1f6b52; }

/* Responsive */
@media (max-width: 1180px) {
  .edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar, .page-hero, .edit-tabs, .edit-grid, .page-foot { padding-left: 20px; padding-right: 20px; }
  .page-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .toggle-row { grid-template-columns: 1fr; }
  .cover-row { grid-template-columns: 1fr; }
  .user-info { display: none; }
}
