.settings-link {
  width: auto;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9f6;
  color: var(--muted);
  transition: .18s;
}

.settings-link:hover,
.settings-link.active {
  border-color: #9ebbad;
  background: var(--mint);
  color: var(--green);
}

.settings-link.active {
  border-color: #7457ff;
  background: #fff;
  color: #7457ff;
  box-shadow: inset 0 -3px #7457ff;
}

.settings-link svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-label {
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .settings-link {
    width: 40px;
    padding: 0;
  }

  .settings-label {
    display: none;
  }
}

/* Landing-page visual system for authenticated Settings pages. */
.settings-page-body {
  --ink: #121212;
  --muted: #625f68;
  --line: #121212;
  --paper: #fffdf4;
  --green: #7457ff;
  --mint: #eee9ff;
  background: var(--paper);
  color: var(--ink);
}

.settings-page-body .app-header {
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 244, .94);
  backdrop-filter: blur(12px);
}

.settings-page-body .app-header .logo span {
  color: var(--ink);
}

.settings-page-body .app-header a:not(.logo) {
  color: #514e57;
}

.settings-page-body .app-header a:hover:not(.logo),
.settings-page-body .app-header a.active:not(.logo) {
  color: var(--ink);
}

.settings-page-body .app-header .settings-link {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #eee9ff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.settings-page-body .app-header .settings-link:hover {
  background: #d8ff63;
  color: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.settings-page-body .app-header .settings-link.active {
  border-color: #7457ff;
  background: #fff;
  color: #7457ff;
  transform: none;
  box-shadow: inset 0 -3px #7457ff;
}

.settings-page-body main {
  max-width: none;
  padding: 48px max(5vw, 28px) 110px;
}

.settings-page-body .flash,
.settings-shell {
  width: min(100%, 1040px);
  margin-right: auto;
  margin-left: auto;
}

.settings-page-body .flash {
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.settings-page-body .settings-nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 46px;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #eee9ff;
  box-shadow: 4px 4px 0 var(--ink);
}

.settings-page-body .settings-nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: #514e57;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.settings-page-body .settings-nav a:hover {
  border-color: var(--ink);
  background: #ffd84f;
  color: var(--ink);
}

.settings-page-body .settings-nav a.active {
  border-color: var(--ink);
  background: #7457ff;
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.settings-shell .result-head {
  max-width: 780px;
  margin: 0 0 32px;
}

.settings-shell .result-head .eyebrow {
  margin-bottom: 12px;
  color: #7457ff;
  font: 500 11px/1.2 "DM Mono", monospace;
  letter-spacing: .11em;
}

.settings-shell .result-head h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}

.settings-shell .result-head .lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.settings-shell .review-form {
  max-width: none;
  margin: 0;
  padding: 30px;
  gap: 26px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
}

.settings-shell .review-card h2 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.settings-shell input:not([type="checkbox"]):not([type="radio"]),
.settings-shell textarea,
.settings-shell select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: #fffef9;
  color: var(--ink);
  font: 14px/1.55 Manrope, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.settings-shell textarea {
  line-height: 1.65;
}

.settings-shell input::placeholder,
.settings-shell textarea::placeholder {
  color: #77727e;
  opacity: 1;
}

.settings-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.settings-shell textarea:focus,
.settings-shell select:focus {
  outline: 0;
  border-color: #7457ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(116, 87, 255, .18);
}

.settings-shell button,
.settings-shell .button,
.settings-page-body .page-footer button,
.settings-page-body .page-footer .button {
  min-height: 46px;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #7457ff;
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.settings-shell button:hover,
.settings-shell .button:hover,
.settings-page-body .page-footer button:hover,
.settings-page-body .page-footer .button:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.settings-shell .soft,
.settings-page-body .page-footer .soft {
  background: #ffd84f;
  color: var(--ink);
}

.settings-shell .danger {
  background: #ff6e65;
  color: var(--ink);
}

.settings-page-body .page-footer {
  border-top: 2px solid var(--ink);
  background: rgba(255, 253, 244, .96);
  box-shadow: 0 -7px 0 rgba(116, 87, 255, .12);
}

.settings-page-body .page-footer-inner {
  max-width: 1096px;
  padding: 13px 28px;
}

/* Company and content forms */
.settings-shell .review-form.settings-form {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}

.settings-shell .settings-section {
  padding: 30px;
  border-bottom: 2px solid var(--ink);
  background: #fff;
}

.settings-shell .settings-section:last-child {
  border-bottom: 0;
}

.settings-shell .settings-section-head {
  margin-bottom: 20px;
}

.settings-shell .settings-section-head h2 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.settings-shell .settings-section-head p,
.settings-shell .field-help,
.settings-shell .setting-toggle small {
  color: var(--muted);
}

.settings-shell .settings-grid {
  gap: 18px;
}

.settings-shell .settings-section:first-child .toggle-field {
  grid-column: 1 / -1;
}

.settings-shell .settings-field {
  padding: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
}

.settings-shell .settings-field h3,
.settings-shell .image-theme-field h3,
.settings-shell .featured-image-controls h3 {
  color: var(--ink);
  font-weight: 800;
}

.settings-shell .settings-form .settings-field select {
  margin-top: 12px;
  border-color: var(--ink);
  background-color: #fff;
}

.settings-shell .multi-select {
  gap: 10px;
}

.settings-shell .multi-select span {
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

.settings-shell .multi-select input:checked + span {
  border-color: var(--ink);
  background: #7457ff;
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.settings-shell .setting-toggle > i {
  border: 1.5px solid var(--ink);
  background: #dedbe3;
}

.settings-shell .setting-toggle input:checked + i {
  border-color: var(--ink);
  background: #7457ff;
}

.settings-shell .multi-select input:focus-visible + span,
.settings-shell .theme-option input:focus-visible + .theme-preview,
.settings-shell .featured-style-option input:focus-visible + .featured-style-preview,
.settings-shell .setting-toggle input:focus-visible + i {
  outline: 3px solid rgba(116, 87, 255, .28);
  outline-offset: 2px;
}

.settings-shell .theme-preview,
.settings-shell .featured-style-preview {
  border-color: var(--ink);
  border-radius: 14px;
}

.settings-shell .theme-option:hover .theme-preview,
.settings-shell .theme-option input:checked + .theme-preview,
.settings-shell .featured-style-option:hover .featured-style-preview,
.settings-shell .featured-style-option input:checked + .featured-style-preview {
  border-color: #7457ff;
  box-shadow: 3px 3px 0 var(--ink);
}

.settings-shell .theme-option input:checked ~ .theme-name,
.settings-shell .featured-style-option input:checked ~ .theme-name {
  color: #7457ff;
}

.settings-shell .featured-image-controls {
  border-top: 1.5px solid var(--ink);
}

/* Author management */
.settings-shell .authors-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px;
  margin-top: 0;
}

.settings-shell .author-panel {
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.settings-shell .author-panel h2 {
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.settings-shell .author-form {
  gap: 24px;
}

.settings-shell .author-form-grid {
  gap: 20px 18px;
}

.settings-shell .author-form label {
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
}

.settings-shell .author-form label small,
.settings-shell .author-list-head p,
.settings-shell .author-list-card small,
.settings-shell .author-assigned-list small,
.settings-shell .author-muted,
.settings-shell .author-empty p {
  color: var(--muted);
}

.settings-shell .author-photo-field input[type="file"] {
  padding: 7px;
  background: var(--paper);
}

.settings-shell input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #eee9ff;
  color: var(--ink);
  font: 800 12px Manrope, sans-serif;
  cursor: pointer;
}

.settings-shell .author-form > button {
  justify-self: start;
}

.settings-shell .author-list-card {
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--paper);
}

.settings-shell .author-list-card:hover {
  border-color: var(--ink);
  background: #eee9ff;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.settings-shell .author-avatar {
  background: #ffd84f;
  color: var(--ink);
}

.settings-shell .author-list-card > b,
.settings-shell .author-assigned-list > a > b {
  color: #7457ff;
}

.settings-shell .author-empty {
  border: 1.5px dashed var(--ink);
  background: var(--paper);
}

.settings-shell .author-assigned-list > a {
  border-color: #d8d3db;
}

.settings-shell .author-delete-form {
  border-color: var(--ink);
}

/* Publishing */
.settings-shell .publishing-steps {
  margin: 0 0 26px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: 4px 4px 0 #7457ff;
}

.settings-shell .publishing-steps > div {
  padding: 22px;
  background: #fff;
}

.settings-shell .publishing-steps span {
  color: #7457ff;
  font-weight: 800;
}

.settings-shell .publishing-card {
  max-width: none;
  margin: 0;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.settings-shell .publishing-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.settings-shell .publishing-card > p {
  color: var(--muted);
}

.settings-shell .publishing-form {
  max-width: 720px;
  gap: 18px;
  margin: 26px 0 22px;
}

.settings-shell .publishing-form > label:not(.integration-toggle) {
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.settings-shell .integration-toggle {
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #eee9ff;
}

.settings-shell .integration-toggle input {
  accent-color: #7457ff;
}

.settings-shell .integration-toggle small {
  color: var(--muted);
}

/* Miscellaneous settings */
.settings-shell .misc-settings-card {
  max-width: none;
  margin-top: 0;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.settings-shell .misc-settings-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.settings-shell .misc-settings-card p {
  font-size: 14px;
}

.settings-shell .misc-settings-card .danger,
.settings-shell .misc-settings-card .danger:hover {
  background: #ff6e65;
}

.settings-shell .misc-settings-actions {
  min-width: 176px;
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.settings-shell .misc-settings-actions form {
  display: flex;
  justify-content: stretch;
}

.settings-shell .misc-settings-actions .danger {
  width: 100%;
}

.settings-shell .misc-settings-actions .reset-onboarding,
.settings-shell .misc-settings-actions .reset-onboarding:hover {
  width: 100%;
  min-height: auto;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

.settings-shell .misc-settings-actions .reset-onboarding:hover {
  color: #7457ff;
}

@media (max-width: 900px) {
  .settings-page-body main {
    padding-top: 38px;
  }

  .settings-shell .authors-layout {
    grid-template-columns: 1fr;
  }

  .settings-shell .publishing-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .settings-page-body .workspace-nav {
    justify-content: flex-start;
    gap: 12px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .settings-page-body .workspace-nav > .logo {
    display: inline-flex;
    margin-right: auto;
  }

  .settings-page-body .workspace-nav > a:not(.logo):not(.settings-link):not(.profile-link) {
    display: none;
  }

  .settings-page-body main {
    padding: 30px 18px 100px;
  }

  .settings-page-body .settings-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 36px;
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 3px 3px 0 var(--ink);
    scrollbar-width: none;
  }

  .settings-page-body .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-page-body .settings-nav a {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 9px 13px;
  }

  .settings-shell .result-head {
    margin-bottom: 26px;
  }

  .settings-shell .result-head h1 {
    font-size: 34px;
  }

  .settings-shell .result-head .lede {
    font-size: 15px;
  }

  .settings-shell .review-form,
  .settings-shell .settings-section,
  .settings-shell .author-panel,
  .settings-shell .publishing-card,
  .settings-shell .misc-settings-card {
    padding: 22px;
    border-radius: 17px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .settings-shell .review-form.settings-form {
    padding: 0;
  }

  .settings-shell .author-form-grid,
  .settings-shell .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-shell .author-wide {
    grid-column: auto;
  }

  .settings-shell .theme-options,
  .settings-shell .featured-style-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-shell .misc-settings-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-shell .misc-settings-actions {
    width: 100%;
  }

  .settings-page-body .page-footer-inner {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 480px) {
  .settings-shell .theme-options,
  .settings-shell .featured-style-options {
    grid-template-columns: 1fr;
  }

  .settings-shell .misc-settings-card form,
  .settings-shell .misc-settings-card button,
  .settings-shell .author-form > button {
    width: 100%;
  }
}

.settings-nav {
  width: fit-content;
  height: auto;
  display: flex;
  gap: 5px;
  margin-bottom: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef2ee;
}

.settings-nav a {
  padding: 8px 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.settings-nav a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 34, 31, .1);
}

.settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: var(--line);
}

.settings-form .review-card {
  min-width: 0;
  padding: 22px;
  background: #fff;
}

.settings-form select {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #cbd5ce;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: 14px Manrope, sans-serif;
}

.field-help {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.multi-select label,
.theme-option {
  cursor: pointer;
}

.multi-select input,
.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.multi-select span {
  display: block;
  padding: 9px 12px;
  border: 1px solid #cbd5ce;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: .18s ease;
}

.multi-select input:checked + span {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green);
}

.multi-select input:focus-visible + span,
.theme-option input:focus-visible + .theme-preview {
  outline: 3px solid rgba(18, 116, 81, .2);
  outline-offset: 2px;
}

.settings-form .content-type-row,
.settings-form .image-theme-row,
.settings-form .title-image-row {
  grid-column: 1 / -1;
}

.toggle-card {
  display: flex;
  align-items: center;
}

.setting-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.setting-toggle > span {
  display: grid;
  flex: 1;
  gap: 4px;
}

.setting-toggle strong {
  font-size: 16px;
}

.setting-toggle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.setting-toggle input,
.featured-style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.setting-toggle > i {
  position: relative;
  width: 44px;
  height: 25px;
  flex: 0 0 44px;
  border: 1px solid #aeb9b2;
  border-radius: 999px;
  background: #dfe5e0;
  transition: .18s ease;
}

.setting-toggle > i::after {
  position: absolute;
  width: 19px;
  height: 19px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 34, 31, .24);
  content: "";
  transition: .18s ease;
}

.setting-toggle input:checked + i {
  border-color: var(--green);
  background: var(--green);
}

.setting-toggle input:checked + i::after {
  transform: translateX(19px);
}

.setting-toggle input:focus-visible + i {
  outline: 3px solid rgba(18, 116, 81, .2);
  outline-offset: 2px;
}

.title-image-toggle {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.featured-style-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.featured-style-option {
  min-width: 0;
  cursor: pointer;
}

.featured-style-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 130px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f3eee5;
  transition: .18s ease;
}

.featured-style-option:hover .featured-style-preview,
.featured-style-option input:checked + .featured-style-preview {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 116, 81, .1);
}

.featured-style-option input:focus-visible + .featured-style-preview {
  outline: 3px solid rgba(18, 116, 81, .2);
  outline-offset: 2px;
}

.featured-style-preview b {
  position: relative;
  z-index: 2;
  color: #17221f;
  font: 800 18px/1.05 Georgia, serif;
  text-align: center;
}

.featured-style-preview i,
.featured-style-preview::before,
.featured-style-preview::after {
  position: absolute;
  content: "";
}

.featured-style-preview-1 {
  background: #f9eee8;
}

.featured-style-preview-1::before,
.featured-style-preview-1::after {
  width: 74px;
  height: 74px;
  border: 2px solid #d6526f;
  transform: rotate(18deg);
}

.featured-style-preview-1::before { top: -34px; left: -25px; }
.featured-style-preview-1::after { right: -22px; bottom: -35px; }

.featured-style-preview-2 {
  background: linear-gradient(140deg, #ffd04f, #fff5db 38%, #efa53f 76%, #fff);
}

.featured-style-preview-2 i {
  width: 150%;
  height: 44px;
  left: -25%;
  top: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transform: rotate(-8deg);
}

.featured-style-preview-3 {
  background: linear-gradient(120deg, #f0eee9 0 68%, #8153de 68%);
}

.featured-style-preview-3::before {
  width: 44px;
  height: 70px;
  left: 10px;
  bottom: -15px;
  border-radius: 50% 50% 12px 12px;
  background: #d8b49f;
}

.featured-style-preview-4 {
  background: linear-gradient(135deg, #e1f3e8, #f8ead7);
}

.featured-style-preview-4::before,
.featured-style-preview-4::after {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(18, 116, 81, .22);
}

.authors-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 20px;
  align-items: start;
  margin-top: 30px;
}

.author-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.author-panel h2 { margin-bottom: 18px; }
.author-form { display: grid; gap: 20px; }
.author-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.author-form label { display: grid; gap: 7px; color: #495750; font-size: 12px; font-weight: 800; }
.author-form label small { color: var(--muted); font-weight: 500; }
.author-wide { grid-column: 1 / -1; }
.author-photo-field { justify-items: start; }
.author-photo-preview { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; }
.author-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.author-list-head p { margin: -12px 0 16px; color: var(--muted); font-size: 12px; }
.author-list { display: grid; gap: 8px; }
.author-list-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none; }
.author-list-card:hover { border-color: #9ebbad; background: #f8faf8; }
.author-list-card img,.author-avatar { width: 48px; height: 48px; border-radius: 50%; }
.author-list-card img { object-fit: cover; }
.author-avatar { display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 18px; font-weight: 800; }
.author-list-card>span:not(.author-avatar) { display: grid; }
.author-list-card small,.author-assigned-list small { color: var(--muted); font-size: 11px; }
.author-list-card>b { color: var(--green); }
.author-empty { padding: 24px; }
.author-empty p,.author-muted { margin: 0; color: var(--muted); }
.author-assigned-list { display: grid; }
.author-assigned-list>a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.author-assigned-list>a>span { display: grid; }
.author-assigned-list>a>b { color: var(--green); font-size: 12px; }
.author-delete-form { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.author-delete-form .danger { background: #a33d35; }
.author-delete-form button:disabled { cursor: not-allowed; opacity: .45; }
.author-delete-form small { color: var(--muted); }

.misc-settings-card {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.misc-settings-card h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.misc-settings-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.misc-settings-card form { flex: 0 0 auto; }
.misc-settings-card .danger { background: #a33d35; }
.misc-settings-card .danger:hover { background: #8f332d; }

@media(max-width:800px) {
  .authors-layout { grid-template-columns: 1fr; }
}

@media(max-width:560px) {
  .settings-nav { width: 100%; overflow-x: auto; }
  .settings-nav a { flex: none; }
  .author-form-grid { grid-template-columns: 1fr; }
  .author-wide { grid-column: auto; }
  .misc-settings-card { align-items: flex-start; flex-direction: column; }
}

.featured-style-preview-4::before { top: -18px; right: -10px; }
.featured-style-preview-4::after { bottom: -20px; left: -12px; }

.custom-preset-field {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.custom-preset-field small {
  color: var(--muted);
  font-weight: 500;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.theme-option {
  min-width: 0;
}

.theme-preview {
  position: relative;
  display: block;
  height: 118px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #e8eee9;
  box-shadow: inset 0 0 0 1px rgba(23, 34, 31, .09);
  transition: .18s ease;
}

.theme-option:hover .theme-preview,
.theme-option input:checked + .theme-preview {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 116, 81, .1);
}

.theme-name {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.theme-preview::before,
.theme-preview::after,
.theme-preview i {
  position: absolute;
  content: "";
  display: block;
}

.theme-preview-1 {
  background: linear-gradient(145deg, #f3e8cf, #d9e9df);
}

.theme-preview-1::before {
  width: 76px;
  height: 76px;
  top: 21px;
  left: 22px;
  border-radius: 18px 42px 20px 38px;
  background: #167451;
  transform: rotate(-9deg);
}

.theme-preview-1::after {
  width: 62px;
  height: 62px;
  right: 18px;
  bottom: -14px;
  border-radius: 50%;
  background: #ec9d65;
}

.theme-preview-1 i {
  width: 42px;
  height: 6px;
  top: 28px;
  right: 22px;
  border-radius: 4px;
  background: #17221f;
  box-shadow: 0 14px 0 #17221f, 0 28px 0 #17221f;
}

.theme-preview-2 {
  background: #f6f7f3;
}

.theme-preview-2::before {
  width: 74px;
  height: 74px;
  top: 21px;
  left: calc(50% - 37px);
  border: 2px solid #17221f;
  border-radius: 50%;
}

.theme-preview-2::after {
  width: 90px;
  height: 44px;
  left: calc(50% - 45px);
  bottom: 19px;
  border: 2px solid #167451;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.theme-preview-2 i {
  width: 7px;
  height: 7px;
  top: 45px;
  left: calc(50% - 3px);
  border-radius: 50%;
  background: #ec9d65;
}

.theme-preview-3 {
  background: linear-gradient(180deg, #b9d6dc 0 55%, #738b64 55%);
}

.theme-preview-3::before {
  width: 68px;
  height: 68px;
  right: 20px;
  top: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff5c9 0 8%, #e9bd6c 9% 100%);
  box-shadow: 0 8px 22px rgba(45, 54, 38, .25);
}

.theme-preview-3::after {
  left: -10%;
  right: -10%;
  bottom: -35px;
  height: 80px;
  border-radius: 50% 50% 0 0;
  background: #425c3d;
}

.theme-preview-3 i {
  left: 18px;
  bottom: 28px;
  width: 18px;
  height: 35px;
  border-radius: 12px 12px 3px 3px;
  background: #d7c2a0;
}

.theme-preview-4 {
  background: linear-gradient(135deg, #e8dfff, #c9edf0 48%, #ffe8cf);
}

.theme-preview-4::before {
  width: 90px;
  height: 90px;
  top: -22px;
  left: -14px;
  border-radius: 50%;
  background: rgba(132, 102, 205, .45);
  filter: blur(2px);
}

.theme-preview-4::after {
  width: 88px;
  height: 88px;
  right: -10px;
  bottom: -30px;
  border-radius: 50%;
  background: rgba(244, 143, 111, .5);
}

.theme-preview-4 i {
  width: 54px;
  height: 54px;
  left: calc(50% - 27px);
  top: 32px;
  border: 1px solid rgba(23, 34, 31, .35);
  border-radius: 16px;
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(8px);
}

@media (max-width: 560px) {
  .app-header { gap: 14px; }
  .profile-link small { display: none; }
  .settings-form { grid-template-columns: 1fr; }
  .field-help { min-height: 0; }
  .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Grouped content settings */
.review-form.settings-form {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.settings-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section-head {
  margin-bottom: 18px;
}

.settings-section-head h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.3px;
}

.settings-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.settings-field {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce3dd;
  border-radius: 9px;
  background: #fbfcfa;
}

.settings-field h3,
.image-theme-field h3,
.featured-image-controls h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.15px;
}

.settings-form .field-help {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.settings-form .settings-field select {
  margin-top: 10px;
}

.toggle-field {
  display: flex;
  align-items: center;
}

.setting-toggle.is-disabled {
  cursor: not-allowed;
  opacity: .62;
}

.multi-select {
  margin-top: 0;
}

.multi-select input:checked + span::before {
  margin-right: 6px;
  content: '\2713';
}

.image-count-field {
  max-width: calc(50% - 8px);
  margin-bottom: 24px;
}

.image-theme-field {
  padding-top: 2px;
}

.theme-option input:checked ~ .theme-name,
.featured-style-option input:checked ~ .theme-name {
  color: var(--green);
}

.theme-option input:checked ~ .theme-name::before,
.featured-style-option input:checked ~ .theme-name::before {
  margin-right: 5px;
  content: '\2713';
}

.featured-image-section .title-image-toggle {
  padding-bottom: 0;
  border-bottom: 0;
}

.featured-image-controls {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.featured-style-options {
  margin-top: 12px;
}

.custom-preset-field[hidden],
.featured-image-controls[hidden] {
  display: none;
}

.settings-form .multi-select input,
.settings-form .theme-option input,
.settings-form .setting-toggle input,
.settings-form .featured-style-option input {
  width: 1px;
  height: 1px;
  margin: 0;
}

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

  .settings-section {
    padding: 20px;
  }

  .image-count-field {
    max-width: none;
  }
}
